1 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
4 (Qchinese_big5_cdp): Deleted.
5 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
6 (complex_vars_of_mule_charset): Delete coded-charset
9 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
10 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
11 `CHARSET_ID_OFFSET - n' for private CCS.
12 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
13 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
14 of `MIN_LEADING_BYTE'.
15 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
16 `(CHARSET_ID_OFFSET - 97)'.
17 (MIN_CHAR_BIG5_CDP): Deleted.
18 (MAX_CHAR_BIG5_CDP): Deleted.
20 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
22 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
24 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
26 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
27 (vars_of_mule): Add new variable `utf-2000-version' [moved from
30 * chartab.c (Vutf_2000_version): Moved to mule.c.
31 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
33 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
35 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
36 when HAVE_CHISE_CLIENT is not defined.
38 * mule.c (vars_of_mule): Provide feature `chise' when
39 HAVE_CHISE_CLIENT is defined.
41 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
43 * config.h.in (UTF2000): Add comment.
44 (HAVE_CHISE_CLIENT): New macro.
46 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
48 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
50 (Fput_char_attribute): Likewise.
51 (char_attribute_system_db_file): Encode file-name of attribute.
52 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
55 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
57 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
58 (Fsave_charset_mapping_table): Use
59 `char_attribute_system_db_file'.
60 (load_char_decoding_entry_maybe): Likewise.
62 * chartab.h (Qsystem_char_id): New external variable.
63 (char_attribute_system_db_file): New prototype.
65 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
66 (char_attribute_system_db_file): New function.
67 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
68 (Freset_char_attribute_table): Likewise.
69 (load_char_attribute_maybe): Likewise.
70 (Fload_char_attribute_table): Likewise.
71 (syms_of_chartab): Add new symbol `system-char-id'.
73 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
75 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
76 `XCHARSET_GRAPHIC(ccs)'.
78 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
80 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
82 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
84 * chartab.c (Q_ucs_variants): New variable.
85 (syms_of_chartab): Add new symbol `->ucs-variants'.
86 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
87 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
88 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
90 * mule-charset.c (load_char_decoding_entry_maybe): New function.
92 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
93 `HAVE_DATABASE' is defined.
94 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
95 `HAVE_DATABASE' is defined.
97 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
99 * chartab.c (Fsave_char_attribute_table): Don't clear internal
101 (Freset_char_attribute_table): New function.
102 (syms_of_chartab): Add new builtin function
103 `reset-char-attribute-table'.
105 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
107 * chartab.c (load_char_attribute_maybe): Don't make directories.
109 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
111 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
113 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
116 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
118 * mule-charset.c (Fsave_charset_mapping_table): Use
119 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
121 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
122 instead of `XCHARSET_CHARS'.
124 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
126 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
127 (XCHARSET_BYTE_SIZE): Likewise.
129 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
131 (XCHARSET_BYTE_SIZE): Likewise.
133 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
135 * chartab.c (Fput_char_attribute): Use exec-directory instead of
136 data-directory to store database.
137 (Fsave_char_attribute_table): Likewise.
138 (load_char_attribute_maybe): Likewise.
139 (Fload_char_attribute_table): Likewise.
141 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
143 * mule-charset.c (Fsave_charset_mapping_table): New function.
144 (syms_of_mule_charset): Add new builtin function
145 `save-charset-mapping-table'.
147 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
149 * char-ucs.h (decoding_table_check_elements): Delete prototype.
150 (get_ccs_octet_table): New inline function.
151 (put_ccs_octet_table): Likewise.
152 (decoding_table_put_char): Use `get_ccs_octet_table' and
153 `put_ccs_octet_table'.
154 (decoding_table_remove_char): Use `decoding_table_put_char'.
155 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
157 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
159 (make_charset): Use Qunbound instead Qnil as initial value of
162 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
164 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
165 element is Qunloaded.
166 (map_over_uint16_byte_table): Likewise.
167 (map_over_byte_table): Likewise.
168 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
169 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
170 database support, load encoding-table of the specified
171 coded-charset if it is not loaded yet.
172 (save_uint8_byte_table): New function of UTF-2000 with external
174 (save_uint16_byte_table): Likewise.
175 (save_byte_table): Likewise.
176 (Fput_char_attribute): Don't store value into external database
177 even if the external database feature is supported in UTF-2000;
178 set `attribute' as name of char-table if the external database
179 feature is supported.
180 (Fsave_char_attribute_table): New function in UTF-2000.
181 (syms_of_chartab): Add new builtin function
182 `save-char-attribute-table' in UTF-2000.
184 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
186 * chartab.c (char_attribute_table_to_put): New variable in
188 (Qput_char_table_map_function): Likewise.
189 (value_to_put): Likewise.
190 (Fput_char_table_map_function): New function in UTF-2000.
191 (put_char_table): Use `Fmap_char_attribute' for
192 CHARTAB_RANGE_CHARSET in UTF-2000.
193 (Fput_char_attribute): Store symbol instead of string in
194 `XCHAR_TABLE_NAME (table)'.
195 (load_char_attribute_maybe): Likewise.
196 (syms_of_chartab): Add new symbol/function
197 `put-char-table-map-function'.
199 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
201 * database.h: Add new EXFUN for `Fmap_database'.
203 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
204 (syms_of_database): Likewise.
206 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
208 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
209 (XCHAR_TABLE_UNLOADED): Likewise.
211 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
212 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
213 HAVE_DATABASE is defined.
214 (char_attribute_table_to_load): New variable of UTF-2000 with
215 external database support.
216 (Qload_char_attribute_table_map_function): Likewise.
217 (Fload_char_attribute_table_map_function): New function of
218 UTF-2000 with external database support.
219 (Fload_char_attribute_table): New function of UTF-2000.
220 (Fmap_char_attribute): Call Fload_char_attribute_table if
221 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
222 (syms_of_chartab): Add new symbol and function
223 `load-char-attribute-table-map-function' in UTF-2000 with external
224 database support; add new function `load-char-attribute-table' in
227 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
229 * chartab.h (load_char_attribute_maybe): New prototype for
230 UTF-2000 with DATABASE support.
231 (get_char_id_table): Use `load_char_attribute_maybe' if
232 HAVE_DATABASE is defined.
234 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
235 with DATABASE support.
237 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
239 * chartab.c (Fput_char_attribute): Use S-expression as key of
242 * chartab.h (get_char_id_table): Use S-expression as key of
245 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
247 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
248 if an element is not loaded, load the corresponding attributes
249 from an external database.
250 (map_over_uint16_byte_table): Likewise.
251 (map_over_byte_table): Likewise.
252 (map_char_table): Modify for `map_over_uint8_byte_table',
253 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
254 element is not loaded, load the corresponding attributes from an
256 (Fput_char_attribute): Change initial values to Qunloaded.
258 * chartab.h (get_char_id_table): If a character attribute is not
259 loaded and the attribute value is not found in an external
260 database, store Qunbound as the attribute value.
262 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
264 * chartab.c (BT_UINT8_unloaded): New macro.
265 (UINT8_VALUE_P): Accept Qunloaded.
266 (UINT8_ENCODE): Likewise.
267 (UINT8_DECODE): Likewise.
268 (BT_UINT16_unloaded): New macro.
269 (UINT16_VALUE_P): Accept Qunloaded.
270 (UINT16_ENCODE): Likewise.
271 (UINT16_DECODE): Likewise.
272 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
274 (mark_char_table): Mark `ct->name' in UTF-2000.
275 (char_table_description): Add `name' in UTF-2000.
276 (Fmake_char_table): Initialize `ct->name'.
277 (Fcopy_char_table): Copy `ct->name'.
278 (Fput_char_attribute): Store value into an external database if
279 HAVE_DATABASE is defined.
281 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
283 (CHAR_TABLE_NAME): New macro in UTF-2000.
284 (XCHAR_TABLE_NAME): New macro in UTF-2000.
285 (get_char_id_table): Try to read an external database if Qunloaded
286 is stored in a table.
288 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
291 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
293 * database.h: Add EXFUN definitions for Fopen_database,
294 Fput_database, Fget_database and Fclose_database.
296 * data.c (Qunloaded): New variable in UTF-2000.
298 * lisp.h (Qunloaded): New variable in UTF-2000.
300 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
302 * mule-charset.c (put_char_ccs_code_point): Modify for
303 `decoding_table_remove_char' and `decoding_table_put_char'.
304 (remove_char_ccs): Modify for `decoding_table_remove_char'.
306 * char-ucs.h (decoding_table_remove_char): Change arguments to
307 hide decoding_table vector.
308 (decoding_table_put_char): Likewise.
310 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
312 * mule-charset.c (decoding_table_remove_char): Moved to
314 (decoding_table_put_char): Likewise.
316 * char-ucs.h (decoding_table_check_elements): New prototype [moved
317 from mule-charset.c].
318 (decoding_table_remove_char): New inline function [moved from
320 (decoding_table_put_char): Likewise.
322 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
324 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
327 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
329 * mule-charset.c (decode_builtin_char): Support mother charsets.
331 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
333 * mule-charset.c (Q94x94x60): New variable.
334 (charset_code_point): Support conversion `94x94x60'.
335 (Fmake_charset): Likewise.
336 (syms_of_mule_charset): Add new symbol `94x94x60'.
338 * char-ucs.h (CONVERSION_94x94x60): New macro.
340 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
342 * mule-charset.c (charset_code_point): Unify code about
345 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
347 * mule-charset.c (charset_code_point): Merge code about builtin
348 characters into code about mother charsets; don't use
349 `range_charset_code_point'.
350 (range_charset_code_point): Deleted.
352 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
354 * mule-charset.c (Qcode_offset): New variable.
355 (Fmake_charset): Use `XUINT' to get value of `min-code' and
356 `max-code'; accept new property `code-offset'.
357 (syms_of_mule_charset): Add new symbol `code-offset'.
359 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
361 * mule-charset.c (range_charset_code_point): Fixed.
363 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
365 * mule-charset.c (decode_builtin_char): Change semantics of
366 code-offset of coded-charset.
367 (charset_code_point): Likewise.
368 (range_charset_code_point): Likewise.
369 (complex_vars_of_mule_charset): Modify for the change.
371 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
373 * mule-charset.c (Fencode_char): Reverse arguments.
375 * mule-charset.c (charset_code_point): Fixed.
377 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
379 * mule-charset.c (Vcharset_mojikyo): Deleted.
380 (Vcharset_mojikyo_2022_1): Deleted.
381 (Vcharset_mojikyo_pj_{1..21}): Deleted.
382 (Qmin_code): New variable in UTF-2000.
383 (Qmax_code): Likewise.
385 (Qconversion): Likewise.
388 (Qmojikyo_2022_1): Deleted.
389 (Qmojikyo_pj_{1..22}): Deleted.
390 (mark_charset): Mark `cs->mother'.
391 (charset_description): Add description for `mother'.
392 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
393 new arguments `mother' and `conversion'; use
394 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
395 (charset_code_point): Moved from char-ucs.h; support `mother'
397 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
398 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
399 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
400 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
401 allow 2 as the value of `graphic' in UTF-2000; add new properties
402 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
403 require `final' in UTF-2000; modify for `make_charset'.
404 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
405 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
406 (Fcharset_property): Support `mother', `min-code' and `max-code'.
407 (Fencode_char): New function.
408 (syms_of_mule_charset): Add new builtin function `encode-char' in
409 UTF-2000; add new symbols `min-code', `max-code', `mother',
410 `conversion' and `94x60'; delete symbols `mojikyo',
411 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
412 (complex_vars_of_mule_charset): Modify for `make_charset' change;
413 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
414 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
416 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
417 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
419 * char-ucs.h (Vcharset_mojikyo): Deleted.
420 (Vcharset_mojikyo_2022_1): Deleted.
421 (LEADING_BYTE_MOJIKYO): Deleted.
422 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
423 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
424 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
425 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
426 add new member `mother'; add new member `conversion'.
427 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
428 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
429 (CHARSET_MOTHER): New macro.
430 (CHARSET_CONVERSION): New macro.
431 (CONVERSION_IDENTICAL): New macro.
432 (CONVERSION_94x60): New macro.
433 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
434 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
435 (XCHARSET_MOTHER): New macro.
436 (XCHARSET_CONVERSION): New macro.
437 (MIN_CHAR_MOJIKYO): Deleted.
438 (MAX_CHAR_MOJIKYO): Deleted.
439 (DECODE_MOJIKYO_2022): Deleted.
440 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
441 (charset_code_point): Changed to non-inline function.
442 (encode_char_1): Use `charset_code_point'.
443 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
445 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
447 * lread.c (read_compiled_function): Fix prototype.
448 (read_vector): Likewise.
450 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
452 * lrecord.h (struct lrecord_header): Delete `older'.
453 (set_lheader_implementation): Delete code for `older'.
454 (set_lheader_older_implementation): Deleted.
455 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
456 (OLDER_RECORD_P): Deleted.
457 (OLDER_RECORD_HEADER_P): Deleted.
458 (alloc_older_lcrecord): Deleted.
459 (alloc_older_lcrecord_type): Deleted.
461 * alloc.c (all_older_lcrecords): Deleted.
462 (alloc_older_lcrecord): Deleted.
463 (disksave_object_finalization_1): Delete code for older objects.
464 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
465 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
467 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
469 * mule-charset.c (decoding_table_put_char): Use `make_vector'
470 instead of `make_older_vector'.
471 (put_char_ccs_code_point): Likewise.
472 (mark_charset): Mark `cs->decoding_table'.
473 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
475 * lisp.h (make_older_vector): Deleted.
476 (make_vector_newer): Deleted.
478 * config.h.in (HAVE_GGC): Deleted.
480 * alloc.c (make_older_vector): Deleted.
481 (make_vector_newer_1): Deleted.
482 (make_vector_newer): Deleted.
484 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
486 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
487 (Qideograph_daikanwa_2): New variable.
488 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
489 (complex_vars_of_mule_charset): Add new coded-charset
490 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
491 `LEADING_BYTE_DAIKANWA'.
493 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
494 (LEADING_BYTE_DAIKANWA_1): New macro.
495 (LEADING_BYTE_DAIKANWA_2): New macro.
496 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
498 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
500 * mule-charset.c (complex_vars_of_mule_charset): Change
501 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
502 the second revised version.
504 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
506 * mule-charset.c (Vcharset_ucs_smp): New variable.
507 (Vcharset_ucs_sip): New variable.
508 (Qucs_smp): New variable.
509 (Qucs_sip): New variable.
510 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
511 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
512 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
513 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
514 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
515 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
517 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
518 (LEADING_BYTE_UCS_SIP): New macro.
519 (MIN_CHAR_SMP): New macro.
520 (MAX_CHAR_SMP): New macro.
521 (MIN_CHAR_SIP): New macro.
522 (MAX_CHAR_SIP): New macro.
524 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
526 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
529 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
531 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
532 value; don't store value into `encoding_table' of `Lisp_Charset'.
533 (mark_charset): `encoding_table' was deleted.
534 (charset_description): Likewise.
535 (make_charset): Likewise.
536 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
537 `put_char_ccs_code_point'.
539 * chartab.h (Fput_char_attribute): New EXFUN.
541 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
542 is unified with normal symbol space.
543 (Fget_char_attribute): Likewise.
544 (Fput_char_attribute): Likewise; behavior of
545 `put_char_ccs_code_point' is changed.
547 * char-ucs.h: Include "elhash.h".
548 (Vchar_attribute_hash_table): New external variable.
549 (struct Lisp_Charset): Delete `encoding_table'.
550 (CHARSET_ENCODING_TABLE): New implementation; refer
551 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
554 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
556 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
559 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
561 * text-coding.c (char_encode_big5): Prefer charset-g1 than
564 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
566 * chartab.c (uint8_byte_table_description): New constant.
567 (uint8-byte-table): Use `uint8_byte_table_description'.
568 (uint16_byte_table_description): New constant.
569 (uint16-byte-table): Use `uint16_byte_table_description'.
571 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
573 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
574 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
576 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
578 * mule-charset.c (Vcharset_ucs_ks): New variable.
579 (Qucs_ks): New variable.
580 (syms_of_mule_charset): Add new symbol `ucs-ks'.
581 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
583 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
585 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
587 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
588 (Fdecode_char): Likewise.
590 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
592 (Fdefine_char): Modify for Fdecode_char.
593 (Ffind_char): Likewise.
595 * mule-charset.c (Fdecode_char): Add new optional argument
597 (Fdecode_builtin_char): Modify for `Fdecode_char'.
599 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
601 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
602 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
603 (allocate_coding_system): Initialize initial-charsets of
604 CODESYS_BIG5 in XEmacs UTF-2000.
605 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
606 CODESYS_BIG5 in XEmacs UTF-2000.
607 (decode_coding_big5): Use initial-charset-g0 and -g1 of
608 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
610 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
612 (Qideograph_hanziku_{1 .. 12}): Likewise.
613 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
615 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
616 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
617 `ideograph-hanziku-{1 .. 12}'.
619 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
620 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
621 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
622 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
623 (DECODE_DEFINED_CHAR): New inline function.
624 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
626 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
628 * mule-charset.c (Vcharset_china3_jef): Renamed from
629 `Vcharset_japanese_jef_china3'.
630 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
631 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
632 `{MIN|MAX}_CHAR_JEF_CHINA3'..
633 (syms_of_mule_charset): Rename `china3-jef' from
634 `japanese-jef-china3'.
635 (complex_vars_of_mule_charset): Likewise; rename
636 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
638 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
639 `LEADING_BYTE_JEF_CHINA3'.
640 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
641 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
643 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
645 * mule-charset.c (encode_builtin_char_1): Comment out special code
646 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
648 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
649 (MAX_CHAR_MOJIKYO_0): Comment out.
650 (MIN_CHAR_CBETA): Changed to 0x00E20000.
651 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
652 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
653 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
655 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
657 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
658 (Qideograph_cbeta): New variable.
659 (encode_builtin_char_1): Comment out special code for
660 coded-charset `mojikyo' and `japanese-jef-china3'.
661 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
662 (complex_vars_of_mule_charset): Add new coded-charset
665 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
666 (MIN_CHAR_CBETA): New macro.
667 (MAX_CHAR_CBETA): New macro.
669 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
671 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
672 (LEADING_BYTE_JEF_CHINA3): New macro.
673 (MIN_CHAR_JEF_CHINA3): New macro.
674 (MAX_CHAR_JEF_CHINA3): Likewise.
675 (DECODE_CHAR): Fixed.
677 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
679 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
680 (Qjapanese_jef_china3): New variable.
681 (encode_builtin_char_1): Support `japanese-jef-china3'.
682 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
683 (complex_vars_of_mule_charset): Add new coded-charset
684 `japanese-jef-china3'.
686 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
688 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
689 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
690 94^4, 96^3, 96^4, 128^n and 256^n set.
691 (put_char_table): Use `XCHARSET_CELL_RANGE'.
692 (map_char_table): Likewise.
694 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
696 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
699 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
701 * chartab.h (get_char_id_table): New inline function.
703 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
706 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
708 * chartab.h (decode_char_table_range): New prototype in XEmacs
710 (put_char_id_table): New inline function in XEmacs UTF-2000.
712 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
714 (decode_char_table_range): Delete static declaration in XEmacs
717 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
719 * chartab.c (put_char_id_table): Use `put_char_table'.
721 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
723 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
724 (map_over_uint16_byte_table): Likewise.
725 (map_over_byte_table): Likewise.
726 (map_char_table): Modify for `map_over_uint8_byte_table',
727 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
730 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
732 * chartab.c (struct map_char_table_for_charset_arg): New
734 (map_char_table_for_charset_fun): New function.
735 (map_char_table): Use `map_char_table' for encoding_table of
738 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
740 * chartab.c (map_char_table): Check a character is found in
741 range->charset instead of non default value is defined in
742 char-table when range is CHARTAB_RANGE_ROW.
744 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
746 * chartab.c (map_char_id_table): Deleted.
747 (Fmap_char_attribute): Use `map_char_table' instead of
750 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
752 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
754 (update_syntax_table): Deleted in XEmacs UTF-2000.
756 * syntax.c (find_defun_start): Use `syntax_table' instead of
757 `mirror_syntax_table' in XEmacs UTF-2000.
758 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
760 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
762 (Fmatching_paren): Likewise.
763 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
765 (find_start_of_comment): Likewise.
766 (find_end_of_comment): Likewise.
767 (Fforward_comment): Likewise.
768 (scan_lists): Likewise.
769 (char_quoted): Likewise.
770 (Fbackward_prefix_chars): Likewise.
771 (scan_sexps_forward): Likewise.
772 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
773 (update_syntax_table): Likewise.
775 * search.c (skip_chars): Use `syntax_table' instead of
776 `mirror_syntax_table' in XEmacs UTF-2000.
778 (Freplace_match): Likewise.
780 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
781 `mirror_syntax_table' in XEmacs UTF-2000.
782 (WORDCHAR_P_UNSAFE): Likewise.
783 (re_match_2_internal): Likewise.
785 * font-lock.c (find_context): Use `buf->syntax_table' instead of
786 `buf->mirror_syntax_table' in XEmacs UTF-2000.
788 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
789 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
791 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
794 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
796 (print_char_table): Print `default_value' in XEmacs UTF-2000.
797 (char_table_description): Delete `mirror_table' in XEmacs
799 (fill_char_table): Don't call `update_syntax_table' in XEmacs
801 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
802 (Fcopy_char_table): Likewise.
803 (put_char_table): Don't call `update_syntax_table' in XEmacs
806 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
807 `buf->mirror_syntax_table' in XEmacs UTF-2000.
808 (casify_region_internal): Likewise.
810 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
812 * buffer.c (common_init_complex_vars_of_buffer): Don't use
813 `mirror_syntax_table' in XEmacs UTF-2000.
815 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
816 `buf->mirror_syntax_table' in XEmacs UTF-2000.
817 (Fexpand_abbrev): Likewise.
819 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
821 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
823 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
825 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
826 (map_over_uint16_byte_table): Likewise.
827 (map_over_byte_table): Likewise.
828 (get_char_id_table): Refer `cit->default_value'.
829 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
830 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
831 of character-id ranges.
832 (mark_char_table): Mark `ct->default_value'.
833 (char_table_description): Add `default_value'.
834 (fill_char_table): Use `default_value'.
835 (decode_char_table_range): Decode `nil' as
836 `CHARTAB_RANGE_DEFAULT'.
837 (get_char_id_table): Refer `cit->default_value'.
838 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
839 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
840 temporary hack; check value of char-table is bound or not.
841 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
843 * chartab.h (struct Lisp_Char_Table): Add new member
844 `default_value' in XEmacs UTF-2000.
845 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
846 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
849 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
851 * chartab.h (Lisp_Char_ID_Table): Deleted.
853 * chartab.c (char_table_description): Fix typo.
854 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
855 `Lisp_Char_ID_Table'.
857 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
859 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
862 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
865 * chartab.h (XCHAR_ID_TABLE): Deleted.
866 (XSETCHAR_ID_TABLE): Deleted.
867 (CHAR_ID_TABLE_P): Deleted.
869 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
871 (Fget_composite_char): Likewise.
872 (put_char_table): Likewise.
873 (add_char_attribute_alist_mapper): Fixed.
874 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
876 (Fget_char_attribute): Likewise.
877 (Fget_char_attribute): Likewise.
878 (Fmap_char_attribute): Likewise.
880 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
882 (encode_char_1): Likewise.
884 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
886 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
889 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
890 instead of `XCHAR_ID_TABLE'.
891 (remove_char_ccs): Likewise.
893 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
895 (Fget_composite_char): Likewise.
896 (Fchar_variants): Likewise.
897 (put_char_table): Likewise.
898 (add_char_attribute_alist_mapper): Likewise.
899 (Fchar_attribute_alist): Likewise.
900 (Fget_char_attribute): Likewise.
901 (Fput_char_attribute): Likewise.
902 (Fmap_char_attribute): Likewise.
903 (Fmap_char_attribute): Likewise.
905 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
907 (encode_char_1): Likewise.
909 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
911 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
912 `Lisp_Char_ID_Table'.
913 (mark_char_id_table): Deleted.
914 (print_char_id_table): Likewise.
915 (char_id_table_equal): Likewise.
916 (char_id_table_hash): Likewise.
917 (char_id_table_description): Likewise.
918 (char_id_table): Likewise.
919 (make_char_id_table): Use `Fmake_char_table' and
921 (get_char_id_table): Use `Lisp_Char_Table' instead of
922 `Lisp_Char_ID_Table'.
923 (put_char_id_table): Likewise.
924 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
926 (Fremove_char_attribute): Likewise.
927 (syms_of_chartab): Don't define type `char-id-table'.
929 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
930 (char_id_table): Likewise.
931 (GC_CHAR_ID_TABLE_P): Likewise.
932 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
933 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
934 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
935 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
936 (get_char_id_table): Use `Lisp_Char_Table' instead of
937 `Lisp_Char_ID_Table'.
938 (put_char_id_table_0): Likewise.
939 (put_char_id_table): Likewise.
941 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
943 * chartab.h: Lisp_Byte_Table related codes are moved from
946 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
948 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
950 * chartab.h: Don't include "chartab.h".
951 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
952 (Lisp_Char_ID_Table): Likewise.
953 (char_id_table): Likewise.
954 (XCHAR_ID_TABLE): Likewise.
955 (XSETCHAR_ID_TABLE): Likewise.
956 (CHAR_ID_TABLE_P): Likewise.
957 (GC_CHAR_ID_TABLE_P): Likewise.
958 (get_char_id_table): Likewise.
960 * char-ucs.h: Include "chartab.h".
961 (struct Lisp_Char_ID_Table): Moved to chartab.h.
962 (Lisp_Char_ID_Table): Likewise.
963 (char_id_table): Likewise.
964 (XCHAR_ID_TABLE): Likewise.
965 (XSETCHAR_ID_TABLE): Likewise.
966 (CHAR_ID_TABLE_P): Likewise.
967 (GC_CHAR_ID_TABLE_P): Likewise.
968 (get_char_id_table): Likewise.
970 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
972 * chartab.c (copy_uint8_byte_table): New function.
973 (copy_uint16_byte_table): New function.
974 (copy_byte_table): New function.
975 (map_over_uint8_byte_table): Modify to avoid huge numbers of
977 (map_over_uint16_byte_table): Likewise.
978 (map_over_byte_table): Likewise.
979 (get_byte_table): Move prototype to chartab.h.
980 (put_byte_table): Likewise.
981 (put_char_id_table_0): Moved to chartab.h.
982 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
983 (char_table_entry_equal): Likewise.
984 (char_table_entry_hash): Likewise.
985 (char_table_entry_description): Likewise.
986 (char_table_entry): Likewise.
987 (make_char_table_entry): Likewise.
988 (copy_char_table_entry): Likewise.
989 (get_non_ascii_char_table_value): Likewise.
990 (map_over_charset_ascii): Likewise.
991 (map_over_charset_control_1): Likewise.
992 (map_over_charset_row): Likewise.
993 (map_over_other_charset): Likewise.
994 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
995 (print_char_table): Likewise.
996 (char_table_equal): Likewise.
997 (char_table_hash): Likewise.
998 (char_table_description): Likewise.
999 (fill_char_table): Likewise.
1000 (Fcopy_char_table): Likewise.
1001 (get_char_table): Likewise.
1002 (Fget_range_char_table): Likewise.
1003 (put_char_table): Likewise.
1004 (map_char_table): Likewise.
1005 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1008 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1010 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1011 `Vauto_fill_chars' in XEmacs UTF-2000.
1013 * chartab.h (get_byte_table): New prototype [moved from
1015 (put_byte_table): Likewise [moved from chartab.c].
1016 (put_char_id_table_0): New inline function [moved from chartab.c].
1017 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1018 (Lisp_Char_Table_Entry): Likewise.
1019 (char_table_entry): Likewise.
1020 (XCHAR_TABLE_ENTRY): Likewise.
1021 (XSETCHAR_TABLE_ENTRY): Likewise.
1022 (CHAR_TABLE_ENTRYP): Likewise.
1023 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1024 (NUM_ASCII_CHARS): Likewise.
1025 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1026 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1028 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030 * chartab.c (get_char_id_table): Change interface.
1031 (put_char_id_table_0): New function.
1032 (put_char_id_table): Change interface; new implementation.
1033 (Fget_composite_char): Modify for interface change of
1034 `get_char_id_table'.
1035 (Fchar_variants): Likewise.
1036 (add_char_attribute_alist_mapper): Likewise.
1037 (Fchar_attribute_alist): Likewise.
1038 (Fget_char_attribute): Likewise.
1039 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1040 as same as character as the first argument like `put-char-table';
1041 modify for interface change of `put_char_id_table'.
1042 (Fremove_char_attribute): Modify for interface change of
1043 `put_char_id_table'.
1045 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1047 * text-coding.c: Sync up with XEmacs 21.2.41.
1048 (COMPOSE_ADD_CHAR): Modify for interface change of
1049 `get_char_id_table'.
1051 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1052 change of `put_char_id_table'.
1053 (remove_char_ccs): Likewise.
1055 * chartab.h (put_char_id_table): Change interface.
1057 * char-ucs.h (get_char_id_table): Change interface.
1058 (charset_code_point): Modify for interface change of
1059 `get_char_id_table'.
1060 (encode_char_1): Likewise.
1062 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1066 (map_over_uint16_byte_table): Likewise.
1067 (map_over_byte_table): Likewise.
1068 (map_char_id_table): Add new argument `range' like
1070 (Fmap_char_attribute): Add new argument `range' like
1073 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1075 * chartab.c (map_over_uint8_byte_table): Change interface of
1076 mapping function to use struct chartab_range instead of Emchar.
1077 (map_over_uint16_byte_table): Likewise.
1078 (map_over_byte_table): Likewise.
1079 (map_char_id_table): Likewise.
1080 (struct slow_map_char_id_table_arg): Deleted.
1081 (slow_map_char_id_table_fun): Deleted.
1082 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1083 function `slow_map_char_table_fun' instead of struct
1084 `slow_map_char_id_table_arg' and function
1085 `slow_map_char_id_table_fun'.
1087 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1089 * mule-charset.c: Move char-it-table related codes to chartab.c.
1090 (Vutf_2000_version): Moved to chartab.c.
1091 (Fdefine_char): Likewise.
1092 (Ffind_char): Likewise.
1093 (syms_of_mule_charset): Move types `uint8-byte-table',
1094 `uint16-byte-table', `byte-table' and `char-id-table' to
1095 chartab.c; move functions `char_attribute_list,
1096 `find_char_attribute_table, `char_attribute_alist,
1097 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1098 `map_char_attribute, `define_char, `find_char, `char_variants and
1099 `get_composite_char to chartab.c; move symbols `=>ucs',
1100 `->decomposition', `compat', `isolated', `initial', `medial',
1101 `final', `vertical', `noBreak', `fraction', `super', `sub',
1102 `circle', `square', `wide', `narrow', `small' and `font' to
1104 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1105 setting codes for `Vcharacter_composition_table' and
1106 `Vcharacter_variant_table' to chartab.c.
1107 (complex_vars_of_mule_charset): Move setting code for
1108 `Vchar_attribute_hash_table' to chartab.c.
1110 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1111 (make_char_id_table): New prototype.
1112 (put_char_id_table): Likewise.
1113 (Fget_char_attribute): Likewise.
1115 * chartab.c: Move char-id-table related code from mule-charset.c.
1116 (Vutf_2000_version): Moved from mule-charset.c.
1118 * char-ucs.h (Qucs): New external variable.
1119 (put_char_ccs_code_point): New prototype.
1120 (remove_char_ccs): Likewise.
1122 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1124 * mule-charset.c (Vcharset_ucs_jis): New variable.
1125 (Qucs_jis): Likewise.
1126 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1127 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1129 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1131 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1133 * mule-charset.c (map_over_uint8_byte_table): New function.
1134 (map_over_uint16_byte_table): Likewise.
1135 (map_over_byte_table): Likewise.
1136 (map_char_id_table): Likewise.
1137 (slow_map_char_id_table_fun): Likewise.
1138 (Fmap_char_attribute): Likewise.
1139 (syms_of_mule_charset): Add new function `map-char-attribute'.
1141 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1143 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1144 (syms_of_mule_charset): Add new function `find-char'.
1146 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1148 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1150 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1151 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1153 (complex_vars_of_mule_charset): Add new coded-charset
1154 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1155 `ideograph-gt-pj-*'.
1157 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1159 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1161 * mule-charset.c (encode_builtin_char_1): Purge codes about
1162 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1163 {MIN|MAX}_CHAR_HEBREW.
1164 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1165 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1167 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1168 (MAX_CHAR_GREEK): Purged.
1169 (MIN_CHAR_CYRILLIC): Purged.
1170 (MAX_CHAR_CYRILLIC): Purged.
1171 (MIN_CHAR_HEBREW): Commented out.
1172 (MAX_CHAR_HEBREW): Likewise.
1174 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1176 * mule-charset.c (Qto_ucs): New variable.
1177 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1178 (Fdefine_char): Likewise.
1179 (syms_of_mule_charset): Add new symbol `=>ucs'.
1181 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1183 * mule-charset.c (Fdecode_char): Fixed.
1185 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1187 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1188 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1191 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193 * mule-charset.c (Vcharset_ucs_big5): New variable.
1194 (Qucs_big5): Likewise.
1195 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1196 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1198 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1200 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1202 * mule-charset.c (decode_builtin_char): Check Big5 code range
1203 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1205 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1207 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1208 (Qchinese_gb12345): Likewise.
1209 (Fdecode_builtin_char): Fixed.
1210 (syms_of_mule_charset): Add `chinese-gb12345'.
1211 (complex_vars_of_mule_charset): Add coded-charset
1214 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1215 (LEADING_BYTE_CHINESE_GB12345): New macro.
1217 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1219 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1220 and `latin-viscii-upper' for `latin-viscii'.
1222 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224 * mule-charset.c (Fdecode_builtin_char): Comment out
1225 regularization code for ISO-IR GR representation.
1227 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229 * mule-charset.c (decode_builtin_char): New function; renamed from
1230 `make_builtin_char'; return -1 instead of signal.
1231 (Fdecode_builtin_char): Use `decode_builtin_char'.
1233 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1234 `make_builtin_char'.
1235 (DECODE_CHAR): Use `decode_builtin_char' instead of
1236 `make_builtin_char'; use mapping table of `chinese-big5' for
1237 `chinese-big5-{1,2}'.
1239 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1241 * text-coding.c (char_encode_big5): New function.
1242 (char_finish_big5): Likewise.
1243 (reset_encoding_stream): Use `char_encode_big5' and
1244 `char_finish_big5' for CODESYS_BIG5.
1245 (mule_encode): Don't use `encode_coding_big5'.
1246 (encode_coding_big5): Deleted.
1248 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1250 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1251 0x81- in XEmacs UTF-2000.
1252 (detect_coding_big5): Likewise.
1254 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1256 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1257 generate character-id if the CCS property does not have
1258 corresponding predefined character.
1259 (make_builtin_char): Return -1 if corresponding predefined
1260 character is not found.
1261 (Fdecode_char): Return nil if corresponding character is not
1263 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1264 don't map to builtin ucs space.
1266 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1268 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1269 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1271 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1273 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1274 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1275 (Qideograph_gt): Likewise.
1276 (Qideograph_gt_pj_{1..11}): Likewise.
1277 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1278 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1279 `ideograph-gt-pj-11'.
1280 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1281 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1282 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1284 * char-ucs.h (LEADING_BYTE_GT): New macro.
1285 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1286 (MIN_CHAR_GT): Likewise.
1287 (MAX_CHAR_GT): Likewise.
1289 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1291 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1292 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1294 * doprnt.c (unsigned_int_converters): Add `c'.
1295 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1297 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1298 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1300 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1301 (MAX_CHAR_MOJIKYO_0): New macro.
1302 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1304 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1306 * mule-charset.c (Fdefine_char): Delete cemented out code.
1307 (encode_builtin_char_1): Modify for new allocation of builtin
1310 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1312 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1314 * mule-charset.c (Vcharset_ucs_cns): New variable.
1315 (Qucs_cns): New variable.
1316 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1317 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1319 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1321 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1323 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1325 * search.c (search_buffer): Make `charset_base_code' as
1326 character-id >> 6 to eliminate the corresponding last byte in
1327 UTF-8 representation [I'm not sure it is right thing].
1328 (boyer_moore): Likewise.
1330 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1332 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1333 representation in MULE.
1335 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337 * text-coding.c (Fmake_coding_system): Use
1338 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1339 `EXTERNAL_PROPERTY_LIST_LOOP'.
1341 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1343 * text-coding.c (decode_output_utf8_partial_char): New function.
1344 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1346 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348 * text-coding.c (decode_coding_utf8): Output original byte
1349 sequence if it is broken; change order of conditions.
1351 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1354 * mb-multibyte.h (BYTE_ASCII_P):
1355 Use bit ops for char-signedness safety.
1356 (BYTE_C0_P): Use bit ops for char-signedness safety.
1357 (BYTE_C1_P): Use bit ops for char-signedness safety.
1359 * character.h: (XCHAR_OR_CHAR_INT):
1360 Always use inline function.
1361 Remove redundant type checking assert() - XINT will abort quite
1364 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1366 * text-coding.c: (Fencode_shift_jis_char):
1367 (Fencode_big5_char):
1368 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1369 Replace 0 with '\0' when working with bytes.
1370 Replace initial "(" with "\(" in docstrings.
1372 (Fmake_coding_system):
1373 When type is ccl and value is vector, register it with a proper
1374 symbol. And checks whether the given ccl program is valid.
1375 (mule_decode): When calling ccl_driver, if src indicates
1376 NULL pointer, set an empty string instead.
1377 (mule_encode): Likewise.
1380 (detect_coding_sjis):
1381 (decode_coding_sjis):
1382 (detect_coding_big5):
1383 (decode_coding_big5):
1384 (detect_coding_ucs4):
1385 (decode_coding_ucs4):
1386 (detect_coding_utf8):
1387 (decode_coding_utf8):
1388 (detect_coding_iso2022):
1389 (decode_coding_iso2022):
1390 (decode_coding_no_conversion):
1392 Make all detecting and decoding functions take an Extbyte * arg.
1393 (text_encode_generic):
1394 (encode_coding_big5):
1395 (encode_coding_no_conversion):
1397 Make all encoding functions take a Bufbyte * arg.
1398 Use size_t instead of unsigned int for memory sizes.
1399 Only cast to unsigned char whenever dereferencing Extbyte *.
1401 (struct lrecord_description fcd_description_1): Use countof.
1402 (complex_vars_of_file_coding):
1403 Use countof instead of sizeof.
1404 Use CHECK_NATNUM instead of CHECK_INT.
1406 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408 * mule-charset.c (Fget_char_attribute): Add new optional argument
1410 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1411 (remove_char_ccs): Likewise.
1413 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1415 * text-coding.c (char_encode_shift_jis): New implementation in
1417 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1420 * mule-charset.c (Vcharset_chinese_big5): New variable in
1422 (Qchinese_big5): New variable in UTF-2000.
1423 (BIG5_SAME_ROW): New macro in UTF-2000.
1424 (make_builtin_char): Use builtin characters of
1425 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1426 characters of `Vcharset_chinese_big5'.
1427 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1428 (complex_vars_of_mule_charset): Add new coded-charset
1429 `chinese-big5' in UTF-2000.
1431 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1432 (Vcharset_chinese_big5): New external variable declaration.
1433 (Vcharset_japanese_jisx0208_1990): Likewise.
1435 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1439 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1441 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1444 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1445 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1448 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1450 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1452 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1454 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1457 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1460 for `CHARSET_BY_ATTRIBUTES'.
1461 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1462 `CHARSET_BY_ATTRIBUTES'.
1464 * text-coding.c (struct decoding_stream): Rename member `CH' to
1466 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1467 (decode_coding_sjis): Likewise.
1468 (decode_coding_big5): Likewise.
1469 (decode_coding_ucs4): Likewise.
1470 (decode_coding_utf8): Likewise.
1471 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1472 `CHARSET_BY_ATTRIBUTES'.
1473 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1474 `str->counter'; decode 3, 4 bytes sets.
1475 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1477 (decode_coding_no_conversion): Use `str->cpos' instead of
1480 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1481 (Qmojikyo_2022_1): New variable.
1482 (make_charset): Don't use `CHARSET_TYPE_*'.
1483 (range_charset_code_point): Support coded-charset
1485 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1486 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1487 `CHARSET_BY_ATTRIBUTES'.
1488 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1489 `CHARSET_BY_ATTRIBUTES'.
1490 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1491 (complex_vars_of_mule_charset): Add new coded-charset
1494 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1495 interface; changed to inline function.
1497 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1498 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1499 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1500 (CHARSET_TYPE_94): Deleted.
1501 (CHARSET_TYPE_94X94): Deleted.
1502 (CHARSET_TYPE_96): Deleted.
1503 (CHARSET_TYPE_96X96): Deleted.
1504 (CHARSET_TYPE_128): Deleted.
1505 (CHARSET_TYPE_128X128): Deleted.
1506 (CHARSET_TYPE_256): Deleted.
1507 (CHARSET_TYPE_256X256): Deleted.
1508 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1510 (DECODE_MOJIKYO_2022): New inline function.
1511 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1512 `Vcharset_mojikyo_2022_1'.
1514 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1516 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1518 (put_byte_table): Likewise.
1519 (char_id_table_equal): Use `get_byte_table' [new implementation].
1521 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1523 * mule-charset.c: Include <limits.h> in UTF-2000.
1524 (BT_UINT8_MIN): New macro in UTF-2000.
1525 (BT_UINT8_MAX): New macro in UTF-2000.
1526 (BT_UINT8_t): New macro in UTF-2000.
1527 (BT_UINT8_nil): New macro in UTF-2000.
1528 (BT_UINT8_unbound): New macro in UTF-2000.
1529 (INT_UINT8_P): New inline function in UTF-2000.
1530 (UINT8_VALUE_P): New inline function in UTF-2000.
1531 (UINT8_ENCODE): New inline function in UTF-2000.
1532 (UINT8_DECODE): New inline function in UTF-2000.
1533 (mark_uint8_byte_table): New function in UTF-2000.
1534 (print_uint8_byte_table): New function in UTF-2000.
1535 (uint8_byte_table_equal): New function in UTF-2000.
1536 (uint8_byte_table_hash): New function in UTF-2000.
1537 (make_uint8_byte_table): New function in UTF-2000.
1538 (uint8_byte_table_same_value_p): New function in UTF-2000.
1539 (BT_UINT16_MIN): New macro in UTF-2000.
1540 (BT_UINT16_MAX): New macro in UTF-2000.
1541 (BT_UINT16_t): New macro in UTF-2000.
1542 (BT_UINT16_nil): New macro in UTF-2000.
1543 (BT_UINT16_unbound): New macro in UTF-2000.
1544 (INT_UINT16_P): New inline function in UTF-2000.
1545 (UINT16_VALUE_P): New inline function in UTF-2000.
1546 (UINT16_ENCODE): New inline function in UTF-2000.
1547 (UINT16_DECODE): New inline function in UTF-2000.
1548 (UINT8_TO_UINT16): New inline function in UTF-2000.
1549 (mark_uint16_byte_table): New function in UTF-2000.
1550 (print_uint16_byte_table): New function in UTF-2000.
1551 (uint16_byte_table_equal): New function in UTF-2000.
1552 (uint16_byte_table_hash): New function in UTF-2000.
1553 (make_uint16_byte_table): New function in UTF-2000.
1554 (uint16_byte_table_same_value_p): New function in UTF-2000.
1555 (print_byte_table): New function in UTF-2000.
1556 (byte-table): Use `print_byte_table' as printer.
1557 (make_byte_table): Delete second argument `older'.
1558 (byte_table_same_value_p): New function in UTF-2000.
1559 (copy_byte_table): Deleted.
1560 (get_byte_table): New function in UTF-2000.
1561 (put_byte_table): New function in UTF-2000.
1562 (print_char_id_table): New function in UTF-2000.
1563 (char-id-table): Use `print_char_id_table' as printer.
1564 (make_char_id_table): Delete second argument `older'.
1565 (get_char_id_table): Use `get_byte_table [new implementation].
1566 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1568 (Ffind_char_attribute_table): New function in UTF-2000.
1569 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1570 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1571 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1572 (syms_of_mule_charset): Add new function
1573 `find-char-attribute-table' in UTF-2000.
1575 * lrecord.h (enum lrecord_type): Add
1576 `lrecord_type_uint16_byte_table' and
1577 `lrecord_type_uint8_byte_table'.
1579 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1580 (Lisp_Uint8_Byte_Table): New type.
1581 (XUINT8_BYTE_TABLE): New macro.
1582 (XSETUINT8_BYTE_TABLE): New macro.
1583 (UINT8_BYTE_TABLE_P): New macro.
1584 (GC_UINT8_BYTE_TABLE_P): New macro.
1585 (struct Lisp_Uint16_Byte_Table): New structure.
1586 (Lisp_Uint16_Byte_Table): New type.
1587 (XUINT16_BYTE_TABLE): New macro.
1588 (XSETUINT16_BYTE_TABLE): New macro.
1589 (UINT16_BYTE_TABLE_P): New macro.
1590 (GC_UINT16_BYTE_TABLE_P): New macro.
1592 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1594 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1595 (Vcharacter_ideographic_strokes_table): Deleted.
1596 (Vcharacter_total_strokes_table): Deleted.
1597 (Vcharacter_morohashi_daikanwa_table): Deleted.
1598 (Vcharacter_decomposition_table): Deleted.
1599 (Qname): Deleted because it is duplicated.
1600 (Qideographic_radical): Deleted.
1601 (Qideographic_strokes): Deleted.
1602 (Qtotal_strokes): Deleted.
1603 (Qmorohashi_daikanwa): Deleted.
1604 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1605 `ideographic-radical', `ideographic-strokes', `total-strokes',
1606 `morohashi-daikanwa' and `->decomposition'.
1607 (Fget_char_attribute): Likewise.
1608 (Fput_char_attribute): Likewise; use `make-vector' instead of
1609 `make_older_vector' for `->decomposition' value.
1610 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1611 `ideograph-daikanwa'.
1612 (syms_of_mule_charset): Delete builtin symbols `name',
1613 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1614 `morohashi-daikanwa'.
1615 (vars_of_mule_charset): Don't setup
1616 `Vcharacter_ideographic_radical_table',
1617 `Vcharacter_ideographic_strokes_table',
1618 `Vcharacter_total_strokes_table',
1619 `Vcharacter_morohashi_daikanwa_table' and
1620 `Vcharacter_decomposition_table'.
1622 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1624 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1625 `make_older_vector', `make_vector_newer_1' and
1626 `make_vector_newer'.
1628 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1629 `make_older_vector' and `make_vector_newer'.
1631 * config.h.in (HAVE_GGC): New macro.
1633 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1635 * mule-charset.c (struct char_attribute_list_closure): New
1636 structure in UTF-2000.
1637 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1638 (Fchar_attribute_list): Likewise.
1639 (Fset_charset_mapping_table): Use `make_vector_newer'.
1640 (Fdecode_builtin_char): New function in UTF-2000.
1641 (syms_of_mule_charset): Add new function `char-attribute-list' and
1642 `decode-builtin-char' in UTF-2000.
1644 * lisp.h (make_vector_newer): New prototype.
1646 * alloc.c (make_vector_newer_1): New function.
1647 (make_vector_newer): New function.
1649 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1651 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1654 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1656 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1657 (Vcharacter_attribute_table): Deleted.
1658 (Vcharacter_name_table): Deleted.
1659 (put_char_attribute): Deleted.
1660 (remove_char_attribute): Deleted.
1661 (struct char_attribute_alist_closure): New structure.
1662 (add_char_attribute_alist_mapper): New function.
1663 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1664 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1665 (Fget_char_attribute): Likewise.
1666 (Fput_char_attribute): Likewise.
1667 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1668 of `remove_char_attribute'.
1669 (Fdefine_char): Return character.
1670 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1671 and `Vcharacter_name_table'.
1672 (complex_vars_of_mule_charset): Likewise
1673 `Vchar_attribute_hash_table'.
1675 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1677 * character.h (CHARC_CHARSET): New macro.
1678 (CHARC_CHARSET_ID): New macro.
1679 (CHARC_CODE_POINT): New macro.
1680 (CHARC_COLUMNS): New macro.
1681 (CHARC_TO_CHAR): New inline function.
1682 (CHARC_EQ): New inline function.
1683 (CHARC_ASCII_EQ): New inline function.
1684 (CHARC_IS_SPACE): New inline function.
1685 (ASCII_TO_CHARC): New inline function.
1687 * char-ucs.h (encode_char_2): Deleted.
1688 (ENCODE_CHAR): Use `encode_char_1' again.
1689 (breakup_char_1): Likewise.
1690 (CHAR_TO_CHARC): New inline function.
1692 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1694 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1696 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1697 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1698 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1699 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1700 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1702 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1704 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1706 (x_output_display_block): Use `CHARC_CHARSET' and
1709 * redisplay-tty.c (tty_output_display_block): Use
1711 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1713 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1715 * insdel.c (find_charsets_in_charc_string): Use
1717 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1718 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1719 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1720 (convert_charc_string_into_malloced_string): Likewise.
1722 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1724 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1725 instead of <Emchar_dynarr *> for buf; use
1726 `convert_bufbyte_string_into_charc_dynarr' instead of
1727 `convert_bufbyte_string_into_emchar_dynarr'; use
1728 `find_charsets_in_charc_string' instead of
1729 `find_charsets_in_emchar_string'.
1732 - Include "character.h".
1733 (struct rune): New member `cglyph'; delete member `chr'.
1735 * redisplay.c (redisplay_text_width_charc_string): New function;
1736 delete `redisplay_text_width_emchar_string'.
1737 (rtw_charc_dynarr): New variable; renamed from
1738 `rtw_emchar_dynarr'.
1739 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1740 `rtw_emchar_dynarr'; use
1741 `convert_bufbyte_string_into_charc_dynarr' instead of
1742 `convert_bufbyte_string_into_emchar_dynarr'; use
1743 `redisplay_text_width_charc_string' instead of
1744 `redisplay_text_width_emchar_string'.
1745 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1746 instead of `rtw_emchar_dynarr'; use
1747 `convert_bufbyte_string_into_charc_dynarr' instead of
1748 `convert_bufbyte_string_into_emchar_dynarr'.
1749 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1750 `redisplay_text_width_charc_string' instead of
1751 `redisplay_text_width_emchar_string'.
1752 (create_text_block): Modify for <struct rune> change.
1753 (generate_formatted_string_db): Likewise.
1754 (create_string_text_block): Likewise.
1755 (pixel_to_glyph_translation): Likewise.
1757 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1758 instead of <const Emchar *>.
1759 (x_text_width): Likewise.
1760 (x_output_display_block): Use <Charc_dynarr *> instead
1761 <Emchar_dynarr *>; modify for <structure rune> change.
1762 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1765 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1766 <const Emchar *>; use `charc_string_displayed_columns' instead of
1767 `emchar_string_displayed_columns'.
1768 (tty_output_display_block): Use <Charc_dynarr *> instead of
1769 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1770 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1771 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1772 `tty_output_emchar_dynarr_dynarr'.
1773 (tty_output_charc_dynarr): New function; delete
1774 `tty_output_charc_dynarr'.
1776 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1777 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1778 <Emchar_dynarr *> for buf; use
1779 `convert_bufbyte_string_into_charc_dynarr' instead of
1780 `convert_bufbyte_string_into_emchar_dynarr'.
1782 * frame.c (title_string_charc_dynarr): New variable; renamed from
1783 `title_string_emchar_dynarr'.
1784 (generate_title_string): Use `title_string_charc_dynarr' instead
1785 of `title_string_emchar_dynarr'; use
1786 `convert_charc_string_into_malloced_string' instead of
1787 `convert_emchar_string_into_malloced_string'.
1788 (init_frame): Use `title_string_charc_dynarr' instead of
1789 `title_string_emchar_dynarr'.
1792 - Include "character.h".
1793 (struct console_methods): Use <const Charc *> instead of <const
1794 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1795 <Emchar_dynarr *> in output_string_method.
1797 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1800 * console-stream.c (stream_text_width): Use <const Charc *>
1801 instead of <const Emchar *>.
1803 * character.h (Charc_dynarr): New type.
1805 * char-ucs.h (structure Charc): New structure; define new type
1808 * char-lb.h (DECODE_CHAR): New inline function.
1809 (encode_char_1): New inline function.
1810 (ENCODE_CHAR): New macro.
1811 (structure Charc): New structure; define new type `Charc'.
1813 * char-1byte.h (Vcharset_control_1): New macro.
1814 (Vcharset_latin_iso8859_1): New macro.
1815 (DECODE_CHAR): New inline function.
1816 (encode_char_1): New inline function.
1817 (ENCODE_CHAR): New macro.
1818 (structure Charc): New structure; define new type `Charc'.
1820 * insdel.c (find_charsets_in_charc_string): New function; delete
1821 `find_charsets_in_emchar_string'.
1822 (charc_string_displayed_columns): New function; delete
1823 `emchar_string_displayed_columns'.
1824 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1825 `convert_bufbyte_string_into_emchar_dynarr'.
1826 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1827 `convert_charc_string_into_bufbyte_dynarr'.
1828 (convert_charc_string_into_malloced_string): New function; delete
1829 `convert_charc_string_into_malloced_string'.
1831 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1832 `find_charsets_in_emchar_string'.
1833 (charc_string_displayed_columns): New prototype; delete
1834 `emchar_string_displayed_columns'.
1835 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1836 `convert_charc_string_into_bufbyte_dynarr'.
1837 (convert_charc_string_into_malloced_string): New prototype; delete
1838 `convert_charc_string_into_malloced_string'.
1840 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1844 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1848 * char-ucs.h: Use <short> for <Charset_ID>.
1850 * mule-charset.h, char-1byte.h: Use <unsigned char> for
1853 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1855 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1858 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1860 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1862 (Qmorohashi_daikanwa): New variable.
1863 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1864 for `morohashi-daikanwa' attribute.
1865 (Fget_char_attribute): Likewise.
1866 (Fput_char_attribute): Likewise.
1867 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1868 has the same value of `ideograph-daikanwa'.
1869 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1870 (vars_of_mule_charset): Setup
1871 `Vcharacter_morohashi_daikanwa_table'.
1873 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1875 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1877 (add_charset_to_list_mapper): Add `key' instead of
1878 `XCHARSET_NAME (value)' to return aliases.
1880 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1882 * mule-charset.c (Vcharacter_ideographic_radical_table): New
1884 (Vcharacter_ideographic_strokes_table): New variable.
1885 (Qideographic_radical): New variable.
1886 (Qideographic_strokes): New variable.
1887 (Fchar_attribute_alist): Use
1888 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1889 attribute; use `Vcharacter_ideographic_strokes_table' for
1890 `ideographic-strokes' attribute.
1891 (Fget_char_attribute): Likewise.
1892 (Fput_char_attribute): Likewise.
1893 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1894 `ideographic-strokes'.
1895 (vars_of_mule_charset): Setup
1896 `Vcharacter_ideographic_radical_table' and
1897 `Vcharacter_ideographic_strokes_table'.
1899 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1901 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1902 (Qtotal_strokes): New variable.
1903 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1904 `total-strokes' attribute.
1905 (Fget_char_attribute): Likewise.
1906 (Fput_char_attribute): Likewise.
1907 (syms_of_mule_charset): Add new symbol `total-strokes'.
1908 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1910 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1912 * mule-charset.c (Vcharacter_decomposition_table): New variable.
1913 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1915 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1916 `->decomposition' attribute.
1917 (Fput_char_attribute): Likewise.
1918 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1920 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922 * mule-charset.c (decoding_table_check_elements): New function.
1923 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1925 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1927 * mule-charset.c (Fset_charset_mapping_table): Use
1928 `put_char_ccs_code_point'.
1930 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1932 * mule-charset.c (decoding_table_put_char): New inline function.
1933 (put_char_ccs_code_point): Use `decoding_table_put_char'.
1935 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1937 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1938 (XCHARSET_BYTE_SIZE): New macro.
1939 (decoding_table_remove_char): New inline function.
1940 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1941 `decoding_table_remove_char'.
1942 (remove_char_ccs): Use `decoding_table_remove_char'.
1943 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1945 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1947 * mule-charset.c (Vcharacter_name_table): New variable.
1948 (Qname): New variable.
1949 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1951 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1952 `Vcharacter_name_table' for `name' attribute.
1953 (Fremove_char_attribute): Use function `remove_char_ccs'.
1954 (put_char_ccs_code_point): New function.
1955 (remove_char_ccs): New function.
1956 (syms_of_mule_charset): Add new symbol `name'.
1957 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1959 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961 * mule-charset.c (make_byte_table): Add new argument `older'.
1962 (make_char_id_table): Likewise.
1963 (copy_char_id_table): Comment out because it is not used.
1964 (put_char_id_table): Modify for `make_byte_table'.
1965 (Fput_char_attribute): Make encoding_table as older object;
1966 inherit older bit of `Vcharacter_composition_table'.
1967 (mark_charset): Don't mark `cs->encoding_table'.
1968 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1969 normal object; make `Vcharacter_composition_table' as an older
1970 object; delete staticpro for `Vcharacter_composition_table'; make
1971 `Vcharacter_variant_table' as a normal object.
1973 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1974 (mark_object): Don't check older object in UTF-2000.
1976 * lrecord.h (struct lrecord_header): Add new member `older' in
1978 (set_lheader_implementation): Setup `SLI_header->older' in
1980 (set_lheader_older_implementation): New macro in UTF-2000.
1981 (OLDER_RECORD_P): New macro in UTF-2000.
1982 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1983 (alloc_older_lcrecord): New prototype in UTF-2000.
1984 (alloc_older_lcrecord_type): New macro in UTF-2000.
1986 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1988 * mule-charset.c (byte_table_description): Use
1989 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1990 (char_id_table_description): Delete bogus `, 1'.
1991 (Fget_char_attribute): Refer encoding_table of each coded-charset
1992 to get value of coded-charset attribute of a character.
1993 (Fput_char_attribute): Use `make_older_vector' instead of
1994 `make_vector'; use encoding_table of each coded-charset to store
1995 value of coded-charset attribute of a character.
1996 (Fremove_char_attribute): Use encoding_table of each coded-charset
1997 to store value of coded-charset attribute of a character.
1998 (mark_charset): Mark `cs->encoding_table'; don't mark
1999 `cs->decoding_table'.
2000 (charset_description): Add description of new member
2002 (make_charset): Initialize `encoding_table'.
2004 * char-ucs.h (struct Lisp_Charset): Add new member
2006 (CHARSET_ENCODING_TABLE): New macro.
2007 (XCHARSET_ENCODING_TABLE): New macro.
2008 (charset_code_point): New implementation.
2009 (encode_char_1): Likewise.
2011 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2012 (disksave_object_finalization_1): Call finalizers of
2013 `all_older_lcrecords' in UTF-2000.
2014 (make_older_vector): New function in UTF-2000.
2015 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2018 * lisp.h (make_older_vector): New prototype in UTF-2000.
2020 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2022 * lrecord.h (enum lrecord_type): Rename
2023 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2025 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2026 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2027 `get_char_code_table'.
2029 * mule-charset.c (mark_char_id_table): Renamed from
2030 `mark_char_code_table'.
2031 (char_id_table_equal): Renamed from `char_code_table_equal'.
2032 (char_id_table_hash): Renamed from `char_code_table_hash'.
2033 (make_char_id_table): Renamed from `make_char_code_table'.
2034 (copy_char_id_table): Renamed from `copy_char_code_table'.
2035 (get_char_id_table): Renamed from `get_char_code_table'.
2036 (put_char_id_table): Renamed from `put_char_code_table'.
2037 (to_char_id): Renamed from `to_char_code'.
2039 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2040 `Lisp_Char_Code_Table'.
2041 (char_id_table): Renamed from `char_code_table'.
2042 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2043 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2044 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2045 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2046 (get_char_id_table): Renamed from `get_char_code_table'.
2048 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2050 * lrecord.h (enum lrecord_type): Rename
2051 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2053 * mule-charset.c (mark_byte_table): Renamed from
2054 `mark_char_byte_table'.
2055 (byte_table_equal): Renamed from `char_byte_table_equal'.
2056 (byte_table_hash): Renamed from `byte_table_hash'.
2057 (make_byte_table): Renamed from `make_byte_table'.
2058 (copy_byte_table): Renamed from `copy_char_byte_table'.
2060 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2061 `Lisp_Char_Byte_Table'.
2062 (byte_table): Renamed from `char_byte_table'.
2063 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2064 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2065 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2066 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2068 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2070 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2071 (dfc_convert_to_internal_format): Likewise.
2073 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2074 * text-coding.c (Fcoding_system_alias_p): New function.
2075 * text-coding.c (Fcoding_system_aliasee): New function.
2076 * text-coding.c (append_suffix_to_symbol): New function.
2077 * text-coding.c (dangling_coding_system_alias_p): New function.
2078 * text-coding.c (Ffind_coding_system):
2079 * text-coding.c (Fcopy_coding_system):
2080 * text-coding.c (encode_coding_no_conversion):
2081 * text-coding.c (syms_of_file_coding):
2082 * text-coding.c (vars_of_file_coding):
2083 Rewrite coding system alias code.
2084 Allow nested aliases, like symbolic links.
2085 Allow redefinition of coding system aliases.
2086 Prevent existence of dangling coding system aliases.
2087 Eliminate convert_to_external_format.
2088 Eliminate convert_to_internal_format.
2090 * text-coding.c: Change enum eol_type to eol_type_t.
2092 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2095 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2097 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2098 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2100 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2102 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2103 `ideograph-daikanwa'.
2105 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2106 (Vcharset_ucs_bmp): Likewise.
2107 (Vcharset_mojikyo): Add new extern variable definition.
2108 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2109 (Vcharset_latin_iso8859_3): Likewise.
2110 (Vcharset_latin_iso8859_4): Likewise.
2111 (Vcharset_latin_iso8859_9): Likewise.
2112 (Vcharset_latin_viscii_lower): Likewise.
2113 (Vcharset_latin_viscii_upper): Likewise.
2114 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2115 `mojikyo' code-point is used to decode.
2116 (encode_char_2): New function [to convert `mojikyo' code-point to
2117 Mojikyo font encoding].
2118 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2119 (breakup_char_1): Likewise.
2120 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2122 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2124 * text-coding.c (Fmake_coding_system): Add document about
2125 `disable-composition' property.
2127 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2129 * text-coding.c (Qdisable_composition): New variable; delete
2131 (Fmake_coding_system): Add new property `disable-composite';
2132 delete property `composite'.
2133 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2134 instead of `!CODING_SYSTEM_COMPOSITE'.
2135 (syms_of_file_coding): Add new symbol `disable-composition';
2136 delete symbol `composite'.
2138 * file-coding.h (struct Lisp_Coding_System): Add
2139 `disable_composition'; delete `enable_composition'.
2140 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2141 `CODING_SYSTEM_COMPOSITE'.
2142 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2143 `XCODING_SYSTEM_COMPOSITE'.
2145 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2147 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2150 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152 * text-coding.c (Qcomposite): New variable.
2153 (Fmake_coding_system): Add new property `composite'.
2154 (struct decoding_stream): Add `combined_char_count',
2155 `combined_chars' and `combining_table' in UTF-2000.
2156 (COMPOSE_FLUSH_CHARS): New macro.
2157 (COMPOSE_ADD_CHAR): New macro.
2158 (reset_decoding_stream): Reset `str->combined_char_count' and
2159 `str->combining_table' in UTF-2000.
2160 (decode_coding_iso2022): Modify for character-decomposition.
2161 (syms_of_file_coding): Add new symbol `composite'.
2163 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2165 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2166 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2167 of `Vcharacter_composition_table' if `->decomposition' property
2169 (Qlatin_tcvn5712): New variable.
2170 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2171 (complex_vars_of_mule_charset): Add new coded-charset
2174 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2176 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2178 * file-coding.h (struct Lisp_Coding_System): Add
2179 `enable_composition'.
2180 (CODING_SYSTEM_COMPOSITE): New macro.
2181 (XCODING_SYSTEM_COMPOSITE): New macro.
2183 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2185 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2187 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2189 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2190 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2192 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2194 * mule-charset.c (Vcharset_mojikyo): New variable.
2195 (Fdefine_char): Don't use coded-charset which does not have
2196 non-builtin character range to allocate character-id.
2197 (Qmojikyo): New variable.
2198 (syms_of_mule_charset): Add new symbol `mojikyo'.
2199 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2201 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2202 (LEADING_BYTE_MOJIKYO): New macro.
2203 (MIN_CHAR_MOJIKYO): New macro.
2204 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2205 (MAX_CHAR_MOJIKYO): New macro.
2207 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2209 * mule-charset.c (remove_char_attribute): Fixed.
2211 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2213 * mule-charset.c (remove_char_attribute): New function.
2214 (Fremove_char_attribute): New function.
2215 (encode_builtin_char_1): Comment out builtin-support for
2216 greek-iso8859-7 and cyrillic-iso8859-5.
2217 (Fdecode_char): Check `code' is an integer.
2218 (syms_of_mule_charset): Add `remove-char-attribute'.
2219 (MIN_CHAR_GREEK): Deleted.
2220 (MAX_CHAR_GREEK): Likewise.
2221 (MIN_CHAR_CYRILLIC): Likewise.
2222 (MAX_CHAR_CYRILLIC): Likewise.
2223 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2224 MAX_CHAR_GREEK for `greek-iso8859-7'.
2226 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2227 (MAX_CHAR_GREEK): Likewise.
2228 (MIN_CHAR_CYRILLIC): Likewise.
2229 (MAX_CHAR_CYRILLIC): Likewise.
2231 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2233 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2234 format is used without `ucs' property.
2235 (Fdecode_char): Fix problem with GR representation.
2236 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2237 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2239 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2241 * mule-charset.c (make_builtin_char): New function.
2242 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2243 (Fset_charset_mapping_table): Modify for new representation of
2245 (Fdecode_char): New function.
2246 (syms_of_mule_charset): Add new builtin function `decode-char' in
2249 * char-ucs.h (make_builtin_char): New prototype.
2250 (DECODE_CHAR): New inline function.
2251 (MAKE_CHAR): Use `DECODE_CHAR'.
2253 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2255 * text-coding.c (parse_charset_conversion_specs): Use
2256 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2258 (iso2022_designate): Likewise.
2260 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2261 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2263 * mule-charset.c (Vcharset_ucs): New variable.
2264 (print_charset): Change design; use `CHARSET_CHARS' and
2265 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2266 (make_charset): Change signature to specify `chars' and
2267 `dimension' instead of `type'.
2268 (range_charset_code_point): Modify for 256^n-set.
2269 (encode_builtin_char_1): Encode as `ucs' in default.
2270 (Fmake_charset): Modify for `make_charset'.
2271 (Fmake_reverse_direction_charset): Likewise.
2272 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2274 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2277 * char-ucs.h (Vcharset_ucs): New variable.
2278 (LEADING_BYTE_UCS): New macro.
2279 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2280 and `chars' to `unsigned short' from `unsigned int'.
2281 (CHARSET_TYPE): Deleted.
2282 (XCHARSET_TYPE): Deleted.
2284 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2286 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2288 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2289 (ENCODE_CHAR): New macro.
2291 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2293 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2294 to 0.14 (Kawachi-Katakami).
2296 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2298 * text-coding.c (char_encode_shift_jis): Modify for
2299 `charset_code_point'.
2300 (char_encode_iso2022): Likewise.
2302 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2303 (integer) instead of list of <Lisp_Object>s (integers) as the
2304 format of code-point of a coded-charset.
2305 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2306 (encode_builtin_char_1): New function; delete
2307 `split_builtin_char'.
2308 (charset_code_point): Return <int> instead of <Lisp_Object>.
2309 (Fsplit_char): Don't use `SPLIT_CHAR'.
2311 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2312 prototype for `split_builtin_char'.
2313 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2314 (charset_code_point): Likewise.
2315 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2316 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2318 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2320 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2321 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2323 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2325 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2327 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2328 (MAX_CHAR_OBS_94x94): Deleted.
2330 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2332 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2334 * char-ucs.h (MAX_CHAR_BMP): New macro.
2336 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2338 * text-coding.c: Sync with r21-2-24.
2340 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2342 * file-coding.c: Modify for UTF-2000.
2344 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2346 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2349 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2351 * mule-charset.c (split_builtin_char): Delete builtin support for
2352 `katakana-jisx0201'.
2353 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2354 BMP area in builtin representation.
2356 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2357 `Vcharset_katakana_jisx0201'.
2359 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2361 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2362 (Qisolated): New variable.
2363 (Qinitial): New variable.
2364 (Qmedial): New variable.
2365 (Qfinal): New variable.
2366 (Qvertical): New variable.
2367 (Qsmall): New variable.
2368 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2369 `Qvertical' and `Qsmall'.
2370 (Qmojikyo_pj_[1 .. 21]): New variable.
2371 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2372 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2373 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2376 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2378 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2379 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2380 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2382 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2384 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2385 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2387 (Qjapanese_jisx0208_1990): New variable.
2388 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2389 (complex_vars_of_mule_charset): Add new coded-charset
2390 `japanese-jisx0208-1990'.
2392 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2393 (MIN_CHAR_JIS_X0208_1990): New macro.
2394 (MAX_CHAR_JIS_X0208_1990): New macro.
2396 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2398 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2399 coded-charset is not found.
2401 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2403 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2404 (Fdefine_char): Use `Fmake_char'.
2406 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2408 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2409 (Vcharset_hiragana_jisx0208): Deleted.
2410 (Vcharset_katakana_jisx0208): Deleted.
2411 (Qideograph_daikanwa): New variable.
2412 (Qhiragana_jisx0208): Deleted.
2413 (Qkatakana_jisx0208): Deleted.
2414 (split_builtin_char): Split `ideograph-daikanwa'.
2415 (Fsplit_char): New implementation for UTF-2000.
2416 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2417 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2418 (complex_vars_of_mule_charset): Add new coded-charset
2419 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2420 `katakana-jisx0208'.
2422 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2423 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2424 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2425 (MIN_CHAR_DAIKANWA): New macro.
2426 (MAX_CHAR_DAIKANWA): New macro.
2428 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2430 * data.c (Fstring_to_number): Don't recognize floating point if
2433 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2435 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2437 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2439 * mule-charset.c (Qsquare): New variable.
2440 (to_char_code): Add `Qsquare'.
2441 (syms_of_mule_charset): Add new symbol `square'.
2443 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2445 * mule-charset.c (Qcircle): New variable.
2446 (to_char_code): Add `Qcircle'.
2447 (syms_of_mule_charset): Add new symbol `circle'.
2449 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2451 * mule-charset.c (Qfont): New variable.
2452 (to_char_code): Add `Qfont'.
2453 (syms_of_mule_charset): Add new symbol `font'.
2455 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2457 * mule-charset.c (Qsub): New variable.
2458 (to_char_code): Add `Qsub'.
2459 (syms_of_mule_charset): Add new symbol `sub'.
2461 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2463 * mule-charset.c (Fput_char_attribute): Convert each element of
2464 VALUE to GL position if ATTRIBUTE is a GR-set,
2466 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2468 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2469 coded-charset is a GR-set.
2471 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2473 * mule-charset.c (Fput_char_attribute): Check each element of
2474 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2476 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2478 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2480 (Qethiopic_ucs): New variable in UTF-2000.
2481 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2482 (complex_vars_of_mule_charset): Add new coded-charset
2483 `ethiopic-ucs' in UTF-2000.
2485 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2486 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2488 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2490 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2492 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2494 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2497 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2499 * mule-charset.c (Vcharacter_variant_table): New variable.
2500 (Q_ucs): New variable.
2501 (Fchar_variants): New function.
2502 (Fput_char_attribute): Register `->ucs' value to
2503 `Vcharacter_variant_table'.
2504 (syms_of_mule_charset): Add new function `char-variants' and new
2506 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2508 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2510 * mule-charset.c (get_char_code_table): Allow negative character
2512 (put_char_code_table): Likewise.
2513 (Vcharacter_composition_table): New variable.
2514 (Q_decomposition): New variable.
2515 (Qwide): New variable.
2516 (Qnarrow): New variable.
2517 (Qcompat): New variable.
2518 (QnoBreak): New variable.
2519 (Qsuper): New variable.
2520 (Qfraction): New variable.
2521 (to_char_code): New function.
2522 (Fget_composite_char): New function.
2523 (Fput_char_attribute): Register `->decomposition' value to
2524 `Vcharacter_composition_table'.
2525 (syms_of_mule_charset): Add new function `get-composite-char', new
2526 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2527 `super' and `fraction'.
2528 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2530 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2532 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2533 character; copy the return value.
2535 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2537 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2539 * mule-charset.c (range_charset_code_point): Must use make_int.
2540 (split_builtin_char): New function.
2542 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2544 * mule-charset.c (char_byte_table): Change name from
2545 "char-code-table" to "char-byte-table".
2546 (mark_char_code_table): New function.
2547 (char_code_table_equal): New function.
2548 (char_code_table_hash): New function.
2549 (char_code_table_description): New constant.
2550 (char_code_table): New type.
2551 (make_char_code_table): New function.
2552 (copy_char_code_table): New function.
2553 (get_char_code_table): Modify for `char_code_table' type.
2554 (put_char_code_table): Likewise.
2555 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2558 * char-ucs.h (char_code_table): New type.
2559 (XCHAR_CODE_TABLE): New macro.
2560 (XSETCHAR_CODE_TABLE): New macro.
2561 (CHAR_CODE_TABLE_P): New macro.
2562 (GC_CHAR_CODE_TABLE_P): New macro.
2563 (struct Lisp_Char_Code_Table): New structure.
2565 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2567 * mule-charset.c (Fmake_charset): Setup byte_offset for
2570 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2572 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2575 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2577 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2580 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2582 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2583 charset, it is regarded as a charset.
2584 (put_char_attribute): New function in UTF-2000.
2585 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2586 charset, mapping-table of the charset is modified.
2587 (Fdefine_char): New function in UTF-2000.
2588 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2589 `Fput_char_attribute'.
2590 (syms_of_mule_charset): Add new function `define-char' and new
2591 symbol `ucs' in UTF-2000.
2592 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2594 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2596 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2597 non-UTF-2000 configuration.
2599 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2601 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2602 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2604 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2606 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2607 (Fset_charset_mapping_table): Likewise.
2609 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2610 (CHARSET_ENCODING_TABLE): Delete.
2611 (XCHARSET_ENCODING_TABLE): Delete.
2612 (charset_code_point): New interface.
2614 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2616 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2617 instead of `charset_get_byte1' and `charset_get_byte2'.
2619 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2620 (charset_get_byte2): Deleted.
2622 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2624 * char-ucs.h (SPLIT_CHAR): New inline function.
2625 (breakup_char_1): Use `SPLIT_CHAR'.
2627 * mule-charset.c (range_charset_code_point): New function.
2628 (charset_code_point): New function.
2630 * char-ucs.h (range_charset_code_point): New interface.
2631 (breakup_char_1): Use `range_charset_code_point'.
2633 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2635 * mule-charset.c (Fmake_charset): Delete unused local variable
2638 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2639 (breakup_char_1): Find a charset and code-point in
2640 `Vcharacter_attribute_table'.
2642 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2644 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2647 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2649 * mule-charset.c (Vcharacter_attribute_table): New variable.
2650 (Fchar_attribute_alist): New function.
2651 (Fget_char_attribute): New function.
2652 (Fput_char_attribute): New function.
2653 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2655 (syms_of_mule_charset): Add new function `char-attribute-alist',
2656 `get-char-attribute' and `put-char-attribute'.
2657 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2659 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2661 * mule-charset.c (Fmake_charset): Just use
2662 `get_unallocated_leading_byte'.
2664 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2665 sets; don't use final-byte based number for private sets.
2667 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2669 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2672 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2674 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2677 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2679 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2680 of `CHAR_LEADING_BYTE' in UTF-2000.
2682 * insdel.c (find_charsets_in_bufbyte_string): Use
2683 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2684 (find_charsets_in_emchar_string): Likewise.
2686 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2687 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2689 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2690 (CHAR_CHARSET_ID): New macro.
2692 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2694 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2695 charset-id - MIN_LEADING_BYTE.
2696 (put_char_table): Likewise.
2698 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2700 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2701 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2702 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2703 (CHARSET_ID_OFFSET): New macro.
2704 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2705 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2706 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2707 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2709 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2711 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2712 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2713 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2714 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2715 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2717 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2719 * mule-charset.c (next_allocated_leading_byte): New variable in
2721 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2722 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2723 (get_unallocated_leading_byte): Simply use
2724 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2725 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2728 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2729 (MAX_LEADING_BYTE_PRIVATE): New macro.
2730 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2731 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2733 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2735 * mule-charset.c (Fmake_charset): Allocate final-byte based
2736 charset-id for 94-set, 96-set and 94x94-set.
2738 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2740 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2742 (Fmake_charset): Likewise.
2743 (complex_vars_of_mule_charset): Modify the font registry of
2744 `ucs-bmp' not to match `Ethiopic-Unicode'.
2746 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2748 * mule-charset.c (complex_vars_of_mule_charset): Add font
2749 registory of `ucs-bmp'.
2751 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2753 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2754 coded-charsets in `default-coded-charset-priority-list' when
2755 breaking up a character.
2757 * mule-charset.c (Vcharset_latin_viscii): New variable.
2758 (Qlatin_viscii): New variable.
2759 (make_charset): Don't use `decoding_table'.
2760 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2762 (Fset_charset_mapping_table): New implementation.
2763 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2764 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2765 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2766 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2767 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2768 charset `latin_viscii'.
2770 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2771 (CHARSET_TYPE_94X94): Change to 1 from 2.
2772 (CHARSET_TYPE_96): Change to 2 from 1.
2773 (CHARSET_TYPE_128): New macro.
2774 (CHARSET_TYPE_128X128): Change to 5 from 4.
2775 (CHARSET_TYPE_256): New macro.
2776 (CHARSET_TYPE_256X256): Change to 7 from 5.
2777 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2779 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2781 * text-coding.c (char_encode_shift_jis): Refer
2782 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2783 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2785 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2786 (char_byte_table_equal): New function in UTF-2000.
2787 (char_byte_table_hash): New function in UTF-2000.
2788 (char_byte_table_description): New constant in UTF-2000.
2789 (char_byte_table): New type in UTF-2000.
2790 (make_char_byte_table): New function in UTF-2000.
2791 (copy_char_byte_table): New function in UTF-2000.
2792 (make_char_code_table): New macro in UTF-2000.
2793 (get_char_code_table): New function in UTF-2000.
2794 (put_char_code_table): New function in UTF-2000.
2795 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2796 (charset_description): Add setting in UTF-2000.
2797 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2798 `CHARSET_TO_BYTE1_TABLE(cs)'.
2799 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2800 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2801 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2802 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2803 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2804 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2805 `CHARSET_TO_BYTE2_TABLE(cs)'.
2807 * char-ucs.h (char_byte_table): New type.
2808 (XCHAR_BYTE_TABLE): New macro.
2809 (XSETCHAR_BYTE_TABLE): New macro.
2810 (CHAR_BYTE_TABLE_P): New macro.
2811 (GC_CHAR_BYTE_TABLE_P): New macro.
2812 (struct Lisp_Char_Byte_Table): New structure.
2813 (get_char_code_table): New interface.
2814 (Emchar_to_byte_table): Deleted.
2815 (get_byte_from_character_table): Deleted.
2816 (struct Lisp_Charset): Add `encoding_table'; delete
2817 `to_byte1_table' and `to_byte2_table'.
2818 (CHARSET_ENCODING_TABLE): New macro.
2819 (CHARSET_TO_BYTE1_TABLE): Deleted.
2820 (CHARSET_TO_BYTE2_TABLE): Deleted.
2821 (XCHARSET_ENCODING_TABLE): New macro.
2822 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2823 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2825 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2827 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2828 `vietnamese-viscii-*'.
2830 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2832 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2833 (Qvietnamese_viscii_upper): New variable.
2834 (Fdefine_charset_alias): New function.
2835 (syms_of_mule_charset): Add new function `define-charset-alias'.
2836 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2837 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2840 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2842 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2843 (MAX_CHAR_OBS_94x94): New macro.
2844 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2847 * mule-charset.c (put_byte_from_character_table): Change unit size
2849 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2851 (Fmake_reverse_direction_charset): Modify dummy argument of
2852 `make_charset' for non-UTF-2000 environment.
2854 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2856 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2858 * mule-charset.c (destroy_byte_from_character_table): New macro.
2859 (latin_jisx0201_to_ucs): Deleted.
2860 (latin_iso8859_2_to_ucs): Deleted.
2861 (latin_iso8859_3_to_ucs): Deleted.
2862 (latin_iso8859_4_to_ucs): Deleted.
2863 (latin_iso8859_9_to_ucs): Deleted.
2864 (latin_viscii_lower_to_ucs): Deleted.
2865 (latin_viscii_upper_to_ucs): Deleted.
2866 (mark_charset): Mark `cs->decoding_table'.
2867 (Fcharset_mapping_table): Fix DOC-string.
2868 (Fset_charset_mapping_table): New function.
2869 (syms_of_mule_charset): Add nwe function
2870 `set-charset-mapping-table'.
2871 (complex_vars_of_mule_charset): Don't setup and use
2874 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
2876 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2879 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
2881 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2882 (Vcharset_katakana_jisx0208): New variable.
2883 (Qhiragana_jisx0208): New variable.
2884 (Qkatakana_jisx0208): New variable.
2885 (make_charset): Add new argument `byte_offset'.
2886 (charset_get_byte1): Modify for new coded-charset definition; use
2887 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2888 `XCHARSET_BYTE_OFFSET'.
2889 (Fmake_charset): Modify for `make_charset'.
2890 (Fmake_reverse_direction_charset): Likewise.
2891 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2892 `katakana-jisx0208'.
2893 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2894 `.' in font registry of charset `katakana-jisx0201',
2895 `latin-jisx0201', `vietnamese-viscii-lower' and
2896 `vietnamese-viscii-upper'; modify DOC-string of charset
2897 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2898 registry of charset `japanese-jisx0208' not to use font for JIS
2899 X0208:1990; add new charset `hiragana-jisx0208' and
2900 `katakana-jisx0208'.
2902 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2903 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2904 (struct Lisp_Charset): Add `byte_offset'.
2905 (CHARSET_BYTE_OFFSET): New macro.
2906 (XCHARSET_UCS_MIN): New macro.
2907 (XCHARSET_UCS_MAX): New macro.
2908 (XCHARSET_CODE_OFFSET): New macro.
2909 (XCHARSET_BYTE_OFFSET): New macro.
2910 (MIN_CHAR_HIRAGANA): New macro.
2911 (MAX_CHAR_HIRAGANA): New macro.
2912 (MIN_CHAR_KATAKANA): New macro.
2913 (MAX_CHAR_KATAKANA): New macro.
2914 (MAKE_CHAR): Modify for new coded-charset definition; use
2915 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2916 `XCHARSET_BYTE_OFFSET'.
2918 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2920 * mule-charset.c (CHAR96): Deleted.
2921 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2923 (latin_iso8859_2_to_ucs): Likewise.
2924 (latin_iso8859_3_to_ucs): Likewise.
2925 (latin_iso8859_4_to_ucs): Likewise.
2926 (latin_iso8859_9_to_ucs): Likewise.
2927 (latin_viscii_lower_to_ucs): Likewise.
2928 (latin_viscii_upper_to_ucs): Likewise.
2929 (latin_tcvn5712_to_ucs): Commented out.
2930 (make_charset): Change type of argument `decoding_table' from
2931 <Emchar*> to <Lisp_Object> [vector of characters].
2932 (Fmake_charset): Modify for `make_charset'.
2933 (Fmake_reverse_direction_charset): Likewise.
2934 (Fcharset_mapping_table): New function in UTF-2000.
2935 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2937 (complex_vars_of_mule_charset): Modify for type change of
2938 `*_to_ucs'; modify for `make_charset'.
2940 * char-ucs.h (struct Lisp_Charset): Change type of
2941 `decoding_table' from <Emchar*> to <Lisp_Object>.
2942 (MAKE_CHAR): Modify for new specification of `decoding_table'.
2944 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2946 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2947 error with non-UTF-2000-Mule.
2949 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
2951 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2953 (Vcharset_chinese_cns11643_4): Likewise.
2954 (Vcharset_chinese_cns11643_5): Likewise.
2955 (Vcharset_chinese_cns11643_6): Likewise.
2956 (Vcharset_chinese_cns11643_7): Likewise.
2957 (Qchinese_cns11643_3): Likewise.
2958 (Qchinese_cns11643_4): Likewise.
2959 (Qchinese_cns11643_5): Likewise.
2960 (Qchinese_cns11643_6): Likewise.
2961 (Qchinese_cns11643_7): Likewise.
2962 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2963 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2964 and `chinese-cns11643-7' to lisp/mule/chinese.el.
2965 (complex_vars_of_mule_charset): Likewise.
2967 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2969 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2971 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2972 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2974 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2976 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2978 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2979 (breakup_char_1): Likewise.
2981 * text-coding.c (char_encode_iso2022): Keep designated charsets if
2982 one of them includes the specified character.
2984 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2986 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2988 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2990 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2992 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2994 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2995 definition for non-UTF-2000 Mule.
2996 (latin_iso8859_3_to_ucs): Likewise.
2997 (latin_iso8859_4_to_ucs): Likewise.
2998 (latin_iso8859_9_to_ucs): Likewise.
2999 (latin_jisx0201_to_ucs): Likewise.
3000 (MIN_CHAR_THAI): Likewise.
3001 (MAX_CHAR_THAI): Likewise.
3002 (MIN_CHAR_GREEK): Likewise.
3003 (MAX_CHAR_GREEK): Likewise.
3004 (MIN_CHAR_HEBREW): Likewise.
3005 (MAX_CHAR_HEBREW): Likewise.
3006 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3007 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3008 (MIN_CHAR_CYRILLIC): Likewise.
3009 (MAX_CHAR_CYRILLIC): Likewise.
3011 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3013 * char-ucs.h (breakup_char_1): Use
3014 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3015 thai-tis620 and katakana-jisx0201 area.
3017 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3019 * char-ucs.h (breakup_char_1): Use
3020 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3023 * text-coding.c (reset_encoding_stream): Fixed.
3024 (char_encode_ucs4): Delete `& 255'.
3026 * char-ucs.h (breakup_char_1): Use
3027 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3029 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3031 * file-coding.c (Fmake_coding_system): Don't set up
3032 `codesys->fixed.size'.
3033 (encode_coding_no_conversion): Don't refer
3034 `str->codesys->fixed.size'.
3036 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3038 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3039 (latin_a_char_to_byte1): Deleted.
3040 (latin_a_char_to_byte2): Deleted.
3042 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3044 * mule-charset.c (make_charset): Add new argument `ucs_min',
3045 `ucs_max' and `code_offset'.
3046 (charset_get_byte1): New implementation [delete specific charset
3047 depended implementations].
3048 (Fmake_charset): Modify for `make_charset'.
3049 (Fmake_reverse_direction_charset): Likewise.
3050 (complex_vars_of_mule_charset): Likewise.
3052 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3054 (CHARSET_UCS_MIN): New macro.
3055 (CHARSET_UCS_MAX): New macro.
3056 (CHARSET_CODE_OFFSET): New macro.
3057 (MAKE_CHAR): Delete charset depended definitions [except
3060 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3062 * char-ucs.h (breakup_char_1): Use
3063 `Vdefault_coded_charset_priority_list' for C0-Controls,
3064 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3066 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3068 * char-ucs.h (charset_get_byte1): New function.
3069 (XCHARSET_GET_BYTE1): Deleted.
3070 (charset_get_byte2): New function.
3071 (XCHARSET_GET_BYTE2): Deleted.
3072 (Vdefault_coded_charset_priority_list): New external variable.
3073 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3074 `Vdefault_preferred_coded_charset_list'.
3076 * mule-charset.c (charset_get_byte1): New function.
3077 (charset_get_byte2): New function.
3078 (Vdefault_coded_charset_priority_list): New variable.
3079 (vars_of_mule_charset): Add new variable
3080 `default-coded-charset-priority-list'.
3082 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3084 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3085 (XCHARSET_GET_BYTE2): New inline function.
3086 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3087 `XCHARSET_GET_BYTE2'.
3089 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3091 * mule-charset.c (make_charset): Initialize
3092 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3093 NULL if table is not defined.
3095 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3097 * text-coding.c (char_encode_shift_jis): Use
3098 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3099 `ucs_to_latin_jisx0201'.
3101 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3102 (ucs_to_latin_iso8859_2): Deleted.
3103 (ucs_to_latin_iso8859_3): Deleted.
3104 (ucs_to_latin_iso8859_4): Deleted.
3105 (ucs_to_latin_iso8859_9): Deleted.
3106 (ucs_to_latin_viscii_lower): Deleted.
3107 (ucs_to_latin_viscii_upper): Deleted.
3108 (ucs_to_latin_tcvn5712): Deleted.
3109 (make_charset): Add new argument `decoding_table'; set up
3110 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3111 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3112 `decoding_table' is defined in UTF-2000.
3113 (Fmake_charset): Modify for `make_charset'.
3114 (Fmake_reverse_direction_charset): Likewise.
3115 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3116 and `GENERATE_96_SET'.
3118 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3119 (ucs_to_latin_jisx0201): Deleted.
3120 (latin_iso8859_2_to_ucs): Deleted.
3121 (ucs_to_latin_iso8859_2): Deleted.
3122 (latin_iso8859_3_to_ucs): Deleted.
3123 (ucs_to_latin_iso8859_3): Deleted.
3124 (latin_iso8859_4_to_ucs): Deleted.
3125 (ucs_to_latin_iso8859_4): Deleted.
3126 (latin_iso8859_9_to_ucs): Deleted.
3127 (ucs_to_latin_iso8859_9): Deleted.
3128 (latin_viscii_lower_to_ucs): Deleted.
3129 (ucs_to_latin_viscii_lower): Deleted.
3130 (latin_viscii_upper_to_ucs): Deleted.
3131 (ucs_to_latin_viscii_upper): Deleted.
3132 (struct Lisp_Charset): Renamed `encoding_table' to
3133 `to_byte1_table'; add `to_byte2_table'.
3134 (CHARSET_DECODING_TABLE): New macro.
3135 (CHARSET_TO_BYTE1_TABLE): New macro.
3136 (CHARSET_TO_BYTE2_TABLE): New macro.
3137 (XCHARSET_DECODING_TABLE): New macro.
3138 (XCHARSET_TO_BYTE1_TABLE): New macro.
3139 (XCHARSET_TO_BYTE2_TABLE): New macro.
3140 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3142 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3143 don't use `ucs_to_*' tables.
3145 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3147 * text-coding.c (Fmake_coding_system): Don't set up
3148 `codesys->fixed.size'.
3149 (encode_coding_no_conversion): Use `if' instead of `switch'.
3151 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3153 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3155 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3156 (Fmake_charset): Modify for `make_charset'.
3157 (Fmake_reverse_direction_charset): Likewise.
3158 (complex_vars_of_mule_charset): Likewise.
3160 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3162 * text-coding.c (char_encode_shift_jis): Use table
3163 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3165 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3167 * text-coding.c (text_encode_generic): Use `if' instead of
3169 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3172 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3174 * text-coding.c (encode_coding_sjis): Deleted.
3175 (char_encode_shift_jis): New function.
3176 (char_finish_shift_jis): New function.
3177 (reset_encoding_stream): Set up `encode_char' and `finish' for
3178 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3179 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3180 (char_encode_utf8): Treat `eol_type'.
3182 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3184 * file-coding.c (decode_coding_iso2022): Use
3185 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3187 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3189 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3192 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3194 * char-lb.h (CHAR_COLUMNS): New macro.
3196 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3198 * text-coding.c (char_encode_ucs4): New function.
3199 (char_finish_ucs4): New function.
3200 (encode_coding_ucs4): Deleted.
3201 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3202 (text_encode_generic): Delete local variable `charset' and `half'.
3203 (ucs_to_mule_table): Deleted.
3204 (mule_to_ucs_table): Deleted.
3205 (Fset_ucs_char): Deleted.
3206 (ucs_to_char): Deleted.
3207 (Fucs_char): Deleted.
3208 (Fset_char_ucs): Deleted.
3209 (Fchar_ucs): Deleted.
3210 (decode_ucs4): Deleted.
3211 (mule_char_to_ucs4): Deleted.
3212 (encode_ucs4): Deleted.
3213 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3214 (decode_coding_utf8): Likewise.
3215 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3216 (char_encode_iso2022): Fixed.
3217 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3218 `Fset_char_ucs' and `Fchar_ucs'.
3219 (complex_vars_of_file_coding): Don't initialize
3220 `ucs_to_mule_table'.
3222 * objects-tty.c (tty_initialize_font_instance): Don't use
3225 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3228 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3229 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3231 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3232 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3233 (emchar_string_displayed_columns): Likewise.
3235 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3236 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3237 (string_column_at_point): Likewise.
3238 (Fmove_to_column): Likewise.
3240 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3241 `encoding_table' and `decoding_table'.
3242 (CHARSET_REP_BYTES): Deleted.
3243 (XCHARSET_REP_BYTES): Deleted.
3244 (XCHARSET_COLUMNS): Deleted.
3245 (CHAR_COLUMNS): New macro.
3246 (lookup_composite_char): Deleted unconditionally.
3247 (composite_char_string): Likewise.
3249 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3251 * char-ucs.h (Emchar_to_byte_table): New type.
3252 (get_byte_from_character_table): New function interface.
3253 (Vcharset_latin_jisx0201): New variable.
3254 (latin_jisx0201_to_ucs): New variable.
3255 (ucs_to_latin_jisx0201): New variable.
3256 (Vcharset_latin_iso8859_2): New variable.
3257 (latin_iso8859_2_to_ucs): New variable.
3258 (ucs_to_latin_iso8859_2): New variable.
3259 (Vcharset_latin_iso8859_3): New variable.
3260 (latin_iso8859_3_to_ucs): New variable.
3261 (ucs_to_latin_iso8859_3): New variable.
3262 (Vcharset_latin_iso8859_4): New variable.
3263 (latin_iso8859_4_to_ucs): New variable.
3264 (ucs_to_latin_iso8859_4): New variable.
3265 (Vcharset_latin_iso8859_9): New variable.
3266 (latin_iso8859_9_to_ucs): New variable.
3267 (ucs_to_latin_iso8859_9): New variable.
3268 (Vcharset_latin_viscii_lower): New variable.
3269 (latin_viscii_lower_to_ucs): New variable.
3270 (ucs_to_latin_viscii_lower): New variable.
3271 (Vcharset_latin_viscii_upper): New variable.
3272 (latin_viscii_upper_to_ucs): New variable.
3273 (ucs_to_latin_viscii_upper): New variable.
3274 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3275 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3276 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3277 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3278 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3279 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3280 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3281 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3282 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3283 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3285 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3286 (Vcharset_latin_viscii_upper): New variable.
3287 (make_byte_from_character_table): New function.
3288 (put_byte_from_character_table): New function.
3289 (get_byte_from_character_table): New function.
3290 (CHAR96): New macro.
3291 (ucs_to_latin_jisx0201): New variable.
3292 (latin_jisx0201_to_ucs): New variable.
3293 (ucs_to_latin_iso8859_2): New variable.
3294 (latin_iso8859_2_to_ucs): New variable.
3295 (ucs_to_latin_iso8859_3): New variable.
3296 (latin_iso8859_3_to_ucs): New variable.
3297 (ucs_to_latin_iso8859_4): New variable.
3298 (latin_iso8859_4_to_ucs): New variable.
3299 (ucs_to_latin_iso8859_9): New variable.
3300 (latin_iso8859_9_to_ucs): New variable.
3301 (ucs_to_latin_viscii_lower): New variable.
3302 (latin_viscii_lower_to_ucs): New variable.
3303 (ucs_to_latin_viscii_upper): New variable.
3304 (latin_viscii_upper_to_ucs): New variable.
3305 (ucs_to_latin_tcvn5712): New variable.
3306 (latin_tcvn5712_to_ucs): New variable.
3307 (Qlatin_viscii_lower): New variable.
3308 (Qlatin_viscii_upper): New variable.
3309 (syms_of_mule_charset): Set up new symbol
3310 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3311 (complex_vars_of_mule_charset): Set up new charset
3312 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3313 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3314 `ucs_to_<CHARSET>' tables.
3316 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3318 * text-coding.c: New file.
3320 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3322 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3324 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3325 (MAKE_CHAR): Modify for `ucs-bmp'.
3326 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3327 non-MULE characters of BMP.
3329 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3331 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3334 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3337 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3338 - Include character.h for `CHAR_ASCII_P'.
3340 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3342 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3343 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3345 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3346 (BYTE_C0_P): Likewise.
3347 (BYTE_C1_P): Likewise.
3348 (Lstream_get_emchar_1): Likewise.
3349 (Lstream_fput_emchar): Likewise.
3350 (Lstream_funget_emchar): Likewise.
3351 (copy_internal_to_external): Likewise.
3352 (copy_external_to_internal): Likewise.
3354 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3355 (BYTE_C0_P): Likewise.
3356 (BYTE_C1_P): Likewise.
3357 (Lstream_get_emchar_1): Likewise.
3358 (Lstream_fput_emchar): Likewise.
3359 (Lstream_funget_emchar): Likewise.
3360 (copy_internal_to_external): Likewise.
3361 (copy_external_to_internal): Likewise.
3363 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3364 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3366 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3367 (BYTE_ASCII_P): Moved to mb-1byte.h.
3369 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3371 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3373 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3374 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3375 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3376 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3377 (VALIDATE_CHARPTR_FORWARD): Likewise.
3378 (simple_charptr_emchar): Moved to mb-multibyte.h.
3379 (simple_set_charptr_emchar): Likewise.
3380 (simple_charptr_copy_char): Likewise.
3381 (non_ascii_charptr_emchar): Likewise.
3382 (non_ascii_set_charptr_emchar): Likewise.
3383 (non_ascii_charptr_copy_char): Likewise.
3384 (charptr_emchar): Moved to mb-*byte.h.
3385 (set_charptr_emchar): Likewise.
3386 (charptr_copy_char): Likewise.
3388 * mb-1byte.h, mb-multibyte.h: New files.
3390 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3392 * mb-utf-8.h (MULTIBYTE): New macro.
3393 (MAX_EMCHAR_LEN): Moved from buffer.h.
3394 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3396 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3398 * mb-lb.h, multibyte.h: New files.
3400 * char-1byte.h (Charset_ID): Moved from buffer.h.
3401 (MIN_LEADING_BYTE): Likewise.
3402 (LEADING_BYTE_ASCII): Likewise.
3403 (NUM_LEADING_BYTES): Likewise.
3404 (CHARSETP): Likewise.
3405 (CHARSET_BY_LEADING_BYTE): Likewise.
3406 (XCHARSET_LEADING_BYTE): Likewise.
3407 (XCHARSET_GRAPHIC): Likewise.
3408 (XCHARSET_COLUMNS): Likewise.
3409 (XCHARSET_DIMENSION): Likewise.
3410 (CHAR_CHARSET): Likewise.
3411 (CHAR_LEADING_BYTE): Likewise.
3412 (BREAKUP_CHAR): Likewise.
3413 (Vcharset_ascii): Likewise.
3415 * buffer.h: Include multibyte.h unconditionally.
3416 (VALID_CHARPTR_P): Moved to multibyte.h.
3417 (ASSERT_VALID_CHARPTR): Likewise.
3418 (REAL_INC_CHARPTR): Likewise.
3419 (REAL_INC_CHARBYTIND): Likewise.
3420 (REAL_DEC_CHARPTR): Likewise.
3421 (INC_CHARPTR): Likewise.
3422 (INC_CHARBYTIND): Likewise.
3423 (DEC_CHARPTR): Likewise.
3424 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3425 (VALIDATE_CHARPTR_FORWARD): Likewise.
3426 (charptr_n_addr): Likewise.
3427 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3428 (simple_charptr_emchar): Moved to multibyte.h.
3429 (simple_set_charptr_emchar): Likewise.
3430 (simple_charptr_copy_char): Likewise.
3431 (non_ascii_charptr_emchar): Likewise.
3432 (non_ascii_set_charptr_emchar): Likewise.
3433 (non_ascii_charptr_copy_char): Likewise.
3434 (charptr_emchar): Likewise.
3435 (set_charptr_emchar): Likewise.
3436 (charptr_copy_char): Likewise.
3437 (charptr_emchar_n): Likewise.
3438 (Charset_ID): Moved to char-1byte.h.
3439 (Vcharset_ascii): Likewise.
3440 (CHAR_CHARSET): Likewise.
3441 (CHAR_LEADING_BYTE): Likewise.
3442 (LEADING_BYTE_ASCII): Likewise.
3443 (NUM_LEADING_BYTES): Likewise.
3444 (MIN_LEADING_BYTE): Likewise.
3445 (CHARSETP): Likewise.
3446 (CHARSET_BY_LEADING_BYTE): Likewise.
3447 (XCHARSET_LEADING_BYTE): Likewise.
3448 (XCHARSET_GRAPHIC): Likewise.
3449 (XCHARSET_COLUMNS): Likewise.
3450 (XCHARSET_DIMENSION): Likewise.
3451 (BREAKUP_CHAR): Likewise.
3453 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3455 * character.h: Add document about interface for characters.
3457 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3458 (MAKE_CHAR): Delete comment about
3459 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3460 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3461 (BREAKUP_CHAR): Modify name of arguments.
3462 (CHAR_CHARSET): Modify name of argument.
3464 * buffer.h: Delete document about Emchar accessors.
3466 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3468 * character.h (CHAR_INTP): Moved from buffer.h
3469 (CHAR_OR_CHAR_INTP): Likewise.
3470 (XCHAR_OR_CHAR_INT): Likewise.
3471 (CHECK_CHAR_COERCE_INT): Likewise.
3473 * buffer.h (CHAR_INTP): Moved to character.h
3474 (CHAR_OR_CHAR_INTP): Likewise.
3475 (XCHAR_OR_CHAR_INT): Likewise.
3476 (CHECK_CHAR_COERCE_INT): Likewise.
3478 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3481 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3482 - Include char-1byte.h, char-lb.h or char-ucs.h.
3484 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3486 * buffer.h: Include character unconditionally.
3487 (valid_char_p): Moved to char-*.h.
3488 (non_ascii_valid_char_p): Moved to char-lb.h.
3490 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3492 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3494 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3495 in UTF-2000 because it is not ported yet and not to use
3496 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3497 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3498 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3500 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3501 (CHAR_ASCII_P): Moved from character.h.
3503 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3504 (CHAR_ASCII_P): Likewise.
3505 (CHAR_FIELD1_MASK): Deleted.
3506 (CHAR_FIELD2_MASK): Deleted.
3507 (CHAR_FIELD3_MASK): Deleted.
3508 (MAX_CHAR_BASIC_LATIN): New macro.
3509 (CHAR_FIELD1): Deleted.
3510 (CHAR_FIELD2_INTERNAL): Deleted.
3511 (CHAR_FIELD3_INTERNAL): Deleted.
3512 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3513 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3514 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3515 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3516 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3517 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3518 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3519 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3520 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3521 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3522 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3523 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3524 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3525 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3526 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3527 (MIN_CHAR_COMPOSITION): Deleted.
3528 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3529 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3531 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3533 * buffer.h: Include mb-utf-8.h in UTF-2000.
3535 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3537 * mb-utf-8.h: New file.
3539 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3541 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3544 * mule-charset.h, buffer.h (Charset_ID): New type.
3546 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3548 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3549 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3550 instead of `MULE_CHAR_PRIVATE_OFFSET',
3551 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3552 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3553 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3555 * character.h (Vcharset_japanese_jisx0212): New variable
3558 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3560 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3561 (charset_by_attributes): Delete array about direction.
3562 (latin_a_char_to_charset): New variable in UTF-2000.
3563 (latin_a_char_to_byte1): New variable in UTF-2000.
3564 (latin_a_char_to_byte2): New variable in UTF-2000.
3565 (Qucs_bmp): New variable.
3566 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3568 (next_allocated_2_byte_leading_byte): Likewise.
3569 (non_ascii_set_charptr_emchar): Likewise.
3570 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3571 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3572 `charset_by_attributes'.
3573 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3574 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3575 and `CHARSET_BY_LEADING_BYTE'.
3576 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3577 `utf-2000-version' to `vars_of_mule_charset'.
3578 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3579 define `leading-code-private-11' in UTF-2000; move setting of
3580 `utf-2000-version' from `syms_of_mule_charset'.
3581 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3584 * character.h (Charset_ID): New type.
3585 (LEADING_BYTE_UCS_BMP): New macro.
3586 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3587 (CHARSET_ID_OFFSET_94): New macro.
3588 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3589 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3590 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3592 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3593 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3594 (CHARSET_ID_OFFSET_96): New macro.
3595 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3596 CHARSET_ID_OFFSET_96 and final-byte.
3597 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3598 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3599 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3600 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3601 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3602 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3603 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3604 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3605 (LEADING_BYTE_THAI_TIS620): Likewise.
3606 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3607 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3608 (CHARSET_ID_OFFSET_94x94): New macro.
3609 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3610 CHARSET_ID_OFFSET_94x94 and final-byte.
3611 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3612 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3613 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3614 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3615 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3616 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3617 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3618 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3619 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3620 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3621 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3622 (CHARSET_TYPE_128X128): New macro.
3623 (CHARSET_TYPE_256X256): New macro.
3624 (XCHARSET_PRIVATE_P): Delete unconditionally.
3625 (charset_by_attributes): Delete array about direction.
3626 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3627 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3628 (MIN_CHAR_94): New macro.
3629 (MAX_CHAR_94): New macro.
3630 (MIN_CHAR_96): New macro.
3631 (MAX_CHAR_96): New macro.
3632 (MIN_CHAR_94x94): New macro.
3633 (MAX_CHAR_94x94): New macro.
3634 (MIN_CHAR_96x96): New macro.
3635 (MAX_CHAR_96x96): New macro.
3636 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3637 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3638 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3640 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3641 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3642 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3643 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3644 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3645 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3646 `XCHARSET_LEADING_BYTE' to make code-point.
3647 (latin_a_char_to_charset): New variable.
3648 (latin_a_char_to_byte1): New variable.
3649 (latin_a_char_to_byte2): New variable.
3650 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3651 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3652 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3654 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3655 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3656 (find_charsets_in_emchar_string): Likewise.
3657 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3659 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3661 (decode_coding_iso2022): Likewise.
3663 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3666 * redisplay.c (redisplay_text_width_emchar_string): Use
3667 `Charset_ID' instead of `unsigned char'.
3668 (redisplay_frame_text_width_string): Likewise.
3670 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3673 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3674 instead of `unsigned char'.
3675 (face_cachel_charset_font_metric_info): Likewise.
3677 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3678 (get_non_ascii_char_table_value): Likewise.
3679 (get_char_table): Likewise.
3680 (put_char_table): Likewise.
3681 (map_over_other_charset): Likewise.
3682 (map_char_table): Likewise.
3684 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3685 instead of `unsigned char'.
3687 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3689 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3690 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3692 * mule-charset.c (leading_code_private_11): Don't define in
3695 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3696 in UTF-2000 because it is not ported yet and not to use
3697 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3699 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3701 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3703 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3705 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3708 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3709 of unsigned char to store leading-byte.
3711 * chartab.c (get_non_ascii_char_table_value): Don't use
3712 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3714 * file-coding.c (encode_coding_big5): Delete bogus implementation
3717 * character.h (LEADING_BYTE_*): Delete definition for
3719 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3720 (LEADING_BYTE_PREFIX_P): Deleted.
3721 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3722 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3723 (BUFBYTE_LEADING_BYTE_P): Deleted.
3724 (CHARSET_PRIVATE_P): Deleted unconditionally.
3725 (rep_bytes_by_first_byte): Deleted unconditionally.
3726 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3727 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3728 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3729 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3730 (CHAR_FIELD2): Deleted.
3731 (CHAR_FIELD3): Deleted.
3732 (MAKE_CHAR): Delete definition for non-UTF-2000.
3733 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3734 (breakup_char_1): New implementation.
3735 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3736 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3738 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3740 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3743 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3745 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3746 (CHARSET_PRIVATE_P): Likewise.
3747 (XCHARSET_PRIVATE_P): Likewise.
3748 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3750 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3752 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3754 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3756 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3757 (NUM_LEADING_BYTES): Changed from 128 to 256.
3758 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3759 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3761 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3763 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3765 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3766 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3767 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3768 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3769 (Qchinese_cns11643_3): New variable in UTF2000.
3770 (Qchinese_cns11643_4): New variable in UTF2000.
3771 (Qchinese_cns11643_5): New variable in UTF2000.
3772 (Qchinese_cns11643_6): New variable in UTF2000.
3773 (Qchinese_cns11643_7): New variable in UTF2000.
3774 (syms_of_mule_charset): Define `chinese-cns11643-3',
3775 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3776 and `chinese-cns11643-7' in UTF2000.
3777 (vars_of_mule_charset): Initialize
3778 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3780 (complex_vars_of_mule_charset): Setup charset
3781 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3782 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3784 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3786 * mule-charset.c: Move setting for `leading-code-private-11' from
3787 `syms_of_mule_charset' to `vars_of_mule_charset'.
3789 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3791 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3792 and `NUM_LEADING_BYTES' in assert.
3794 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3796 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3798 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3799 `NUM_LEADING_BYTES' instead of 128.
3801 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3803 * mule-charset.h (charset_by_leading_byte): Use
3804 `NUM_LEADING_BYTES' instead of 128.
3805 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3807 * mule-charset.c (charset_by_leading_byte): Use
3808 `NUM_LEADING_BYTES' instead of 128.
3809 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3811 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3814 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3816 * mule-charset.c (syms_of_mule_charset): Update to
3819 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3821 * file-coding.c (encode_coding_sjis): New implementation for
3822 UTF2000. (decode_coding_sjis): Ditto.
3824 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3826 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3827 Don't define in UTF2000.
3829 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3832 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3833 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3836 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3838 * config.h.in (CHAR_IS_UCS4): New macro.
3840 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3841 conventional MULE representation.
3842 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3844 * mule-charset.h: Reverted to original.
3846 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3847 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3848 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3850 * character.h: New file.
3852 * file-coding.c (Fmake_coding_system): Set 1 to
3853 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3855 (encode_coding_no_conversion): New implementation for UTF2000.
3857 * file-coding.h (struct Lisp_Coding_System): Add new member
3860 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
3862 * file-coding.c (decode_coding_iso2022): Code-point arguments of
3863 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3864 (encode_coding_iso2022): New implementation for UTF2000.
3866 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3868 * mule-canna.c (c2mu): New implementation for UTF2000.
3871 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3873 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3875 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3877 * file-coding.c (reset_encoding_stream): Set 0 to
3878 `str->iso2022.current_char_boundary' in UTF2000.
3879 (encode_utf8): Don't define in UTF2000.
3880 (encode_coding_utf8): New implementation for UTF-8 representation
3882 (complex_vars_of_file_coding): Define coding-system `utf-8'.
3884 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3886 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3888 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3890 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3892 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3894 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3895 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3896 as UTF-8 in UTF2000.
3897 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3898 (non_ascii_valid_char_p): Don't define in UTF2000.
3899 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3900 (Lstream_get_emchar_1): Likewise.
3901 (utf-2000-version): New variable in UTF2000.
3903 * lread.c (read_escape): Add new reader `u'.
3905 * insdel.c (three_to_one_table): Don't define in UTF2000.
3906 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3907 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3909 (bytind_to_bufpos_func): Likewise.
3910 (buffer_mule_signal_inserted_region): Likewise.
3911 (vars_of_insdel): Don't initialize `three_to_one_table'.
3912 (init_buffer_text): Use `buf->text->mule_size' instead of
3913 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3916 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3917 UTF-8 representation in UTF2000.
3918 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3919 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3920 (decode_coding_iso2022): Don't define local variable `lb' in
3921 UTF2000; don't use LEADING_BYTE in UTF2000; use
3922 `DECODE_ADD_UCS_CHAR' in UTF2000.
3923 (convert_to_external_format): Decode as UTF-8 in UTF2000.
3925 * config.h.in (UTF2000): New macro.
3927 * buffer.h (struct buffer_text): Add new member `mule_size' and
3928 don't add `mule_shifter' and `mule_three_p' in UTF2000.
3929 (valid_char_p): Return always 1 in UTF2000.
3930 (MAX_EMCHAR_LEN): 6 in UTF2000.
3931 (three_to_one_table): Don't define in UTF2000.
3932 (real_bufpos_to_bytind): Modify for UTF-8 representation in
3934 (real_bytind_to_bufpos): Likewise.
3936 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3938 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3940 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3941 representation change.
3942 (Vutf_2000_version): New variable.
3943 (leading_code_private_11): New variable.
3944 (syms_of_mule_charset): Add new variables `utf-2000-version' and
3945 `leading-code-private-11'.
3947 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3948 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3949 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3950 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3951 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3952 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3953 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3954 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3955 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3956 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3957 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3958 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3959 (MIN_CHAR_GREEK): New macro.
3960 (MAX_CHAR_GREEK): New macro.
3961 (MIN_CHAR_CYRILLIC): New macro.
3962 (MAX_CHAR_CYRILLIC): New macro.
3963 (MIN_CHAR_HEBREW): New macro.
3964 (MAX_CHAR_HEBREW): New macro.
3965 (MIN_CHAR_THAI): New macro.
3966 (MAX_CHAR_THAI): New macro.
3967 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3968 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3969 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3970 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3971 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3972 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3973 (CHAR_FIELD2): New inline function.
3974 (CHAR_FIELD3): New inline function.
3975 (MULE_CHAR_PRIVATE_OFFSET): New macro.
3976 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3977 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3978 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3979 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3980 (MIN_CHAR_COMPOSITION): Likewise.
3981 (CHAR_LEADING_BYTE): Modified for character representation change.
3982 (MAKE_CHAR): Likewise.
3984 * lisp.h (Vcharset_latin_iso8859_1): New variable.
3985 (Vcharset_greek_iso8859_7): Likewise.
3986 (Vcharset_cyrillic_iso8859_5): Likewise.
3987 (Vcharset_hebrew_iso8859_8): Likewise.
3988 (Vcharset_thai_tis620): Likewise.
3989 (Vcharset_katakana_jisx0201): Likewise.
3991 2001-02-08 Martin Buchholz <martin@xemacs.org>
3993 * XEmacs 21.2.44 "Thalia" is released.
3995 2001-02-06 Martin Buchholz <martin@xemacs.org>
3997 Fixes crashes in kill-emacs on some systems.
3998 * process-unix.c (unix_kill_child_process):
3999 It's OK for kill() to fail with ESRCH.
4001 2001-02-07 Martin Buchholz <martin@xemacs.org>
4003 Contortions to make .gdbinit tricks work on most systems.
4004 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4005 * alloc.c (dbg_valmask): Make non-const.
4006 * alloc.c (dbg_typemask): Make non-const.
4007 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4008 * alloc.c (dbg_valbits): Make non-const.
4009 * alloc.c (dbg_gctypebits): Make non-const.
4010 * .gdbinit (decode_object): Make it work with AIX cc.
4012 2001-02-06 Martin Buchholz <martin@xemacs.org>
4014 * elhash.c (make_general_lisp_hash_table):
4015 Use simpler and more efficient calloc to clear entries.
4017 2001-02-07 Martin Buchholz <martin@xemacs.org>
4019 * window.c (window_scroll): Work around an AIX C compiler bug.
4020 Fixes 'scroll-up' does nothing problem with xlC.
4022 2001-02-05 Martin Buchholz <martin@xemacs.org>
4024 * .gdbinit: Remove obsolete comment.
4026 2001-01-31 Mike Alexander <mta@arbortext.com>
4028 * select.c (Fown_selection_internal): Set owned_p for device
4031 2001-02-01 Martin Buchholz <martin@xemacs.org>
4034 "not" cannot be used as a macro name as it is an operator in C++
4035 * config.h.in: Stop #defining `not'.
4036 * chartab.c (check_category_char): not ==> not_p
4037 * chartab.h: Likewise.
4038 * regex.c (re_match_2_internal): Likewise.
4040 2001-02-02 Martin Buchholz <martin@xemacs.org>
4042 * lisp-disunion.h: Fix up comments.
4044 2001-01-31 Martin Buchholz <martin@xemacs.org>
4046 * keymap.c (define_key_check_and_coerce_keysym):
4048 Support mouse-6 and mouse-7 bindings in the obvious way.
4050 2001-02-01 Martin Buchholz <martin@xemacs.org>
4052 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4054 2001-01-30 Martin Buchholz <martin@xemacs.org>
4056 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4057 Previous patch missed DEFVAR_INT_MAGIC.
4058 Make sure future DEFVAR_foo use correct types.
4059 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4060 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4061 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4062 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4063 * (DEFVAR_INT): Likewise.
4064 * redisplay.c (vertical_clip): Should be of type Fixnum.
4065 * redisplay.c (horizontal_clip): Likewise.
4066 * lisp.h (dump_add_opaque_int): New.
4067 (dump_add_opaque_fixnum): New.
4069 2001-01-29 Andy Piper <andy@xemacs.org>
4071 * glyphs-widget.c (check_valid_int_or_function): allow symbols
4072 since they can be eval'ed
4074 2001-01-29 Martin Buchholz <martin@xemacs.org>
4076 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4077 Oops, XEmacs redefines `class'. Use `typename' instead.
4079 2001-01-28 Martin Buchholz <martin@xemacs.org>
4081 * dumper.c: Fix C++ compile errors.
4083 2001-01-29 Martin Buchholz <martin@xemacs.org>
4085 * tparam.c: Use correct prototypes.
4087 2001-01-28 Martin Buchholz <martin@xemacs.org>
4089 * sysproc.h: #include util.h for NetBSD's openpty.
4091 2001-01-27 Martin Buchholz <martin@xemacs.org>
4093 More 64-bit correctness.
4094 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4095 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4097 This finally finishes the 64-bit SGI port.
4098 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4099 * symbols.c: Fix up comments and type casts.
4100 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4101 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4102 * symeval.h (Fixnum): New type.
4103 * symeval.h (symbol_value_type): Fix up comment.
4119 * mule-canna.c: A million DEFVAR_INTs here...
4120 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4133 s/int/Fixnum/g in DEFVAR_INT declarations.
4135 2001-01-26 Martin Buchholz <martin@xemacs.org>
4137 Port pdump to SGI alignment-sensitive environment.
4138 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4139 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4141 Define and use aligned reading and writing macros.
4142 Use buffered stdio instead of posix i/o for faster dumping.
4143 Eliminate kludgy 256 byte space for header.
4144 Read and write from dump file using structs for alignment safety.
4145 * dumper.c (pdump_align_stream): New.
4146 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4147 * dumper.c (PDUMP_READ_ALIGNED): New.
4148 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4149 * dumper.c (pdump_static_Lisp_Object): New struct.
4150 * dumper.c (pdump_static_pointer): New struct.
4151 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4152 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4153 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4154 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4156 * dumper.c (pdump_backtrace):
4157 * dumper.c (pdump_get_indirect_count):
4158 * dumper.c (pdump_register_object):
4159 * dumper.c (pdump_register_struct):
4160 * dumper.c (pdump_reloc_one):
4161 * dumper.c (pdump_scan_by_alignment):
4162 * dumper.c (pdump_dump_from_root_struct_ptrs):
4163 * dumper.c (pdump_dump_opaques):
4164 * dumper.c (pdump_dump_rtables):
4165 * dumper.c (pdump_dump_from_root_objects):
4167 * dumper.c (pdump_load_finish):
4168 Use aligned reading and writing.
4170 * dumper.c (pdump_free): Make static.
4171 * dumper.c (pdump_hFile): Likewise.
4172 * dumper.c (pdump_hMap): Likewise.
4174 2001-01-26 Martin Buchholz <martin@xemacs.org>
4176 * XEmacs 21.2.43 "Terspichore" is released.
4178 2001-01-25 Martin Buchholz <martin@xemacs.org>
4180 Type fiddling for window_config.saved_windows_count
4181 * window.c (struct window_config):
4182 Make saved_windows_count member unsigned.
4183 * window.c (sizeof_window_config_for_n_windows):
4184 Make parameter unsigned.
4185 * window.c (mark_window_config):
4186 * window.c (window_config_equal):
4187 * window.c (free_window_configuration):
4188 * window.c (Fset_window_configuration):
4189 * window.c (count_windows):
4190 * window.c (Fcurrent_window_configuration):
4191 * window.c (reinit_vars_of_window):
4192 Update all callers and users.
4194 2001-01-25 Martin Buchholz <martin@xemacs.org>
4196 Alignment correctness for flexible arrays.
4197 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4198 Make alignment-correct. Add interesting comments.
4199 * alloc.c (size_vector):
4200 * alloc.c (make_vector_internal):
4201 * alloc.c (make_bit_vector_internal):
4202 * alloc.c (sweep_bit_vectors_1):
4203 * fns.c (size_bit_vector):
4204 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4205 * window.c (sizeof_window_config_for_n_windows):
4206 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4208 2001-01-24 Martin Buchholz <martin@xemacs.org>
4210 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4212 2001-01-23 Andy Piper <andy@xemacs.org>
4214 * select.c (Fown_selection_internal): pass owned_p
4216 * select-msw.c (mswindows_own_selection): New Signature.
4218 * console.h (struct console_methods): add owned_p to
4221 * select-x.c (x_own_selection): pass owned_p
4222 (hack_motif_clipboard_selection): use owned_p
4223 (vars_of_select_x): new variable -
4224 x_selection_strict_motif_ownership.
4226 2001-01-23 Martin Buchholz <martin@xemacs.org>
4228 * specifier.h (specifier_data_offset): Remove pointless parens.
4229 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4231 2001-01-24 Martin Buchholz <martin@xemacs.org>
4233 Make Lisp_Object sizeof methods be alignment-correct.
4234 pdump must restore objects to the same alignment as the C compiler
4235 assumes. It really matters on SGIs.
4236 * lstream.c (aligned_sizeof_lstream): New.
4237 (sizeof_lstream): Use aligned_sizeof_lstream.
4238 (Lstream_new): Likewise.
4239 * opaque.c (aligned_sizeof_opaque): New.
4240 (sizeof_opaque): Use aligned_sizeof_opaque.
4241 (make_opaque): Likewise.
4242 * specifier.c (aligned_sizeof_specifier): New.
4243 (sizeof_specifier): Use aligned_sizeof_specifier.
4244 (make_specifier_internal): Likewise.
4246 2001-01-23 Martin Buchholz <martin@xemacs.org>
4248 * lstream.h (struct lstream): Use max_align_t for trailing data.
4249 * specifier.h (struct Lisp_Specifier): Likewise.
4251 2001-01-22 Martin Buchholz <martin@xemacs.org>
4253 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4254 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4255 (CCL_SUSPEND): Likewise.
4256 (CCL_INVALID_CMD): Likewise.
4257 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4258 (ccl_driver): Likewise.
4259 (CCL_WRITE_CHAR): Macro hygiene.
4260 (CCL_WRITE_STRING): Macro hygiene.
4262 2001-01-22 Martin Buchholz <martin@xemacs.org>
4264 Port "portable" dumper to SunOS 4 and HP-UX.
4265 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4266 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4267 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4269 2001-01-22 Martin Buchholz <martin@xemacs.org>
4271 * lisp.h (ALIGNOF): A better definition for C++.
4273 2001-01-20 Martin Buchholz <martin@xemacs.org>
4276 Fix printf warnings: int format, long int arg.
4277 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4278 (PUSH_FAILURE_POINT): Use correct printf formats.
4279 (POP_FAILURE_POINT): Use correct printf formats.
4280 Use do {...} while (0)
4282 2001-01-20 Martin Buchholz <martin@xemacs.org>
4284 * XEmacs 21.2.42 "Poseidon" is released.
4286 2001-01-20 Martin Buchholz <martin@xemacs.org>
4288 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4290 2001-01-19 Martin Buchholz <martin@xemacs.org>
4292 De-kludgify FIXED_TYPE free list frobbing.
4293 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4294 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4295 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4296 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4297 * alloc.c (LRECORD_FREE_P): New.
4298 * alloc.c (MARK_LRECORD_AS_FREE): New.
4299 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4300 * alloc.c (STRUCT_FREE_P): Deleted.
4301 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4302 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4303 * alloc.c (STRING_CHARS_FREE_P): New.
4304 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4305 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4306 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4307 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4308 * alloc.c (resize_string): Use new definitions.
4309 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4310 * alloc.c (verify_string_chars_integrity): Use new definitions.
4311 * alloc.c (compact_string_chars): Use new definitions.
4312 * alloc.c: Update monster comments.
4313 * lrecord.h (lrecord_type): Add some new lrecord types for
4316 2001-01-18 Martin Buchholz <martin@xemacs.org>
4318 Improve alignment hackery.
4319 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4320 (max_align_t): Moved from opaque.h - general purpose.
4321 (ALIGN_PTR): Use size_t, not long.
4322 * opaque.h (max_align_t): Move to lisp.h.
4324 2001-01-18 Norbert Koch <nk@LF.net>
4326 * gui.h: Fix and add prototypes to fix build problems.
4328 2001-01-18 Martin Buchholz <martin@xemacs.org>
4330 temacs is going away, so `dump-temacs' is now a bad name.
4331 * .dbxrc (dump-temacs): Rename to `dmp'.
4332 * .gdbinit (dump-temacs): Rename to `dmp'.
4334 2001-01-17 Andy Piper <andy@xemacs.org>
4336 * glyphs.c (print_image_instance): comment to make martin happy.
4338 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4341 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4343 (mswindows_tab_control_redisplay): warning suppression.
4345 * glyphs-widget.c (widget_update): re-write to cope with updated
4347 (widget_instantiate): use new gui_item functions.
4348 (tab_control_update): deleted.
4349 (progress_gauge_update): deleted.
4350 (image_instantiator_progress_guage): take out update reference.
4351 (image_instantiator_tree_view): ditto.
4352 (image_instantiator_tab_control): ditto.
4354 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4356 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4357 return whether anything was changed.
4358 (update_gui_item_keywords): as it sounds.
4360 * gui.h: declare widget_gui_parse_item_keywords.
4362 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4363 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4365 2001-01-17 Martin Buchholz <martin@xemacs.org>
4367 * XEmacs 21.2.41 "Polyhymnia" is released.
4369 2001-01-16 Didier Verna <didier@xemacs.org>
4371 * glyphs.c (image_instantiate): don't use fallbacks when
4372 instantiating a face's background pixmap by inheritance.
4374 2001-01-14 Mike Sperber <mike@xemacs.org>
4376 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4377 Conditionalize accordingly.
4379 2001-01-16 Martin Buchholz <martin@xemacs.org>
4381 * dumper.c (pdump_file_get): Fix a compiler warning.
4383 2001-01-15 Martin Buchholz <martin@xemacs.org>
4385 Make Purify happy when pdumping.
4386 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4387 iniitalizing all bits of new lisp object memory.
4388 * symbols.c (Fmake_local_variable): Likewise.
4389 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4390 * symbols.c (Fdefvaralias): Likewise.
4391 * mule-charset.c (vars_of_mule_charset): Likewise.
4393 2001-01-15 Martin Buchholz <martin@xemacs.org>
4394 Add the `-nd' flag when running pre-dump operations under the debugger.
4395 * .dbxrc (run-temacs): Add `-nd'.
4396 * .dbxrc (update-elc): Likewise.
4397 * .dbxrc (dump-temacs): Likewise.
4398 * .gdbinit (run-temacs): Likewise.
4399 * .gdbinit (check-temacs): Likewise.
4400 * .gdbinit (update-elc): Likewise.
4401 * .gdbinit (dump-temacs): Likewise.
4403 2001-01-14 Martin Buchholz <martin@xemacs.org>
4405 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4406 export OBJECT_MODE=64
4407 configure --pdump --use-union-type=no
4408 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4409 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4411 * miscplay.c (sndcnv8U_2mono):
4412 Avoid two uses of `++' in the same expression.
4413 Suppresses a GCC warning.
4415 2001-01-13 Martin Buchholz <martin@xemacs.org>
4417 Make sure future compilers don't miscompile alloc.c.
4419 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4420 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4422 2001-01-12 Martin Buchholz <martin@xemacs.org>
4424 * dumper.c: A little post-pdump-rename comment fixup.
4426 2001-01-09 Jerry James <james@eecs.ku.edu>
4428 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4430 2001-01-13 Martin Buchholz <martin@xemacs.org>
4432 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4436 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4439 replace_symbol pdump_wire_lists pdump_weak_object_chains
4440 replace_symbol pdump_wire_list dump_add_weak_object_chain
4442 replace_symbol pdump_wires pdump_root_objects
4443 replace_symbol pdump_wire dump_add_root_object
4445 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4446 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4448 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4449 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4450 replace_symbol dumpstructinfo pdump_root_struct_ptr
4451 replace_symbol dumpstruct dump_add_root_struct_ptr
4453 replace_symbol dumpopaque dump_add_opaque
4454 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4455 replace_symbol dumpopaqueinfos pdump_opaques
4456 replace_symbol dumpopaqueinfo pdump_opaque
4458 replace_symbol nb_structdump nb_root_struct_ptrs
4459 replace_symbol nb_opaquedump nb_opaques
4461 replace_symbol align_table pdump_align_table
4462 replace_symbol dump_header pdump_header
4464 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4465 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4468 2001-01-12 Martin Buchholz <martin@xemacs.org>
4470 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4471 optimizing bytecount_to_charcount().
4473 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4476 (HAVE_DLFCN_H): Removed.
4477 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4479 2001-01-06 Martin Buchholz <martin@xemacs.org>
4481 Portable dumper maintainability improvements.
4482 * alloc.c (staticpro):
4483 * alloc.c (staticpro_nodump):
4484 * alloc.c (garbage_collect_1):
4485 * alloc.c (reinit_alloc_once_early):
4486 * alloc.c (init_alloc_once_early):
4487 * alloc.c: Move dumper functions to alloc.c.
4488 * dumper.c (pdump_backtrace):
4489 * dumper.c (pdump_dump_structs):
4490 * dumper.c (pdump_dump_opaques):
4491 * dumper.c (pdump_dump_rtables):
4492 * dumper.c (pdump_dump_wired):
4494 * dumper.c (pdump_load_check):
4495 * dumper.c (pdump_load_finish):
4496 * dumper.c (pdump_file_unmap):
4497 * dumper.c (pdump_file_get):
4498 * dumper.c (pdump_resource_free):
4499 * dumper.c (pdump_resource_get):
4500 * dumper.c (pdump_file_free):
4501 * dumper.c (pdump_file_try):
4502 * dumper.c (pdump_load):
4503 Remove fixed size limits on staticpro(), staticpro_nodump(),
4504 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4505 Remove custom code for dumping lrecord_implementations_table - use
4507 Remove (most of the) custom code for dumping staticpros - dump it
4508 like any other dynarr.
4510 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4511 * dumper.c: Moved functions from alloc.c.
4512 * alloc.c (dumpstruct): Moved to dumper.c.
4513 * alloc.c (dumpopaque): Likewise.
4514 * alloc.c (pdump_wire): Likewise.
4515 * alloc.c (pdump_wire_list): Likewise.
4517 * lisp.h (Dynarr_sizeof): New.
4518 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4519 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4520 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4522 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4523 * lisp.h (dumpopaque): ditto.
4524 * lisp.h (pdump_wire): ditto.
4525 * lisp.h (pdump_wire_list): ditto.
4527 2001-01-09 Martin Buchholz <martin@xemacs.org>
4529 * make-src-depend (PrintPatternDeps):
4530 Use `sort' to make output independent of perl version.
4532 2001-01-08 Martin Buchholz <martin@xemacs.org>
4535 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4536 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4538 2001-01-03 Didier Verna <didier@xemacs.org>
4540 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4541 that `focus_frame' is alive before thinking of calling
4542 `redisplay_redraw_cursor' on it.
4544 2001-01-08 Martin Buchholz <martin@xemacs.org>
4546 * XEmacs 21.2.40 is released.
4548 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4550 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4552 2001-01-06 Martin Buchholz <martin@xemacs.org>
4554 * alloc.c (dbg_valmask): Make const.
4555 * alloc.c (dbg_typemask): Make const.
4556 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4557 * alloc.c (dbg_valbits): Make const.
4558 * alloc.c (dbg_gctypebits): Make const.
4560 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4562 * redisplay-x.c (x_bevel_area):
4563 redisplay.h (struct rune):
4564 Typo fixes in comments.
4566 2001-01-05 Andy Piper <andy@xemacs.org>
4568 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4571 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4573 2001-01-05 Martin Buchholz <martin@xemacs.org>
4575 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4577 * mule-ccl.c (stack_idx_of_map_multiple):
4578 Non const global data must not be initialized!
4579 Found by MIYASHITA Hisashi.
4581 2001-01-02 Andy Piper <andy@xemacs.org>
4583 * frame.c (change_frame_size): make sure frame size is always
4586 * glyphs.c (image_instance_layout): minor code reuse.
4588 * window.c (Fcurrent_window_configuration): revert previous
4591 2001-01-02 Martin Buchholz <martin@xemacs.org>
4594 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4596 2000-12-31 Andy Piper <andy@xemacs.org>
4598 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4599 when widget gets unmapped.
4601 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4602 function. Make sure widgets losing focus don't just drop it.
4603 (handle_focus_event_1): record the widget with focus.
4605 2000-12-31 Andy Piper <andy@xemacs.org>
4607 * window.c (allocate_window): use
4608 make_image_instance_cache_hash_table.
4609 (make_dummy_parent): ditto.
4610 (Fset_window_configuration): ditto.
4612 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4614 * glyphs.c (process_image_string_instantiator): use
4616 (get_image_instantiator_governing_domain): ditto.
4617 (normalize_image_instantiator): ditto.
4618 (instantiate_image_instantiator): ditto.
4619 (make_image_instance_1): ditto.
4620 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4621 (instantiator_eq_equal): new function for use with instance hash
4623 (instantiator_eq_hash): ditto.
4624 (make_image_instance_cache_hash_table): create a suitable hash
4625 table for storing image instances.
4627 * elhash.h (hash_table_weakness): new internal weakness type
4628 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4629 declare new functions.
4631 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4632 another weakness type for glyphs.
4633 (make_standard_lisp_hash_table): new function split out from
4634 make_general_lisp_hash_table.
4635 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4636 (hash_table_instantiate): ditto.
4637 (Fmake_hash_table): ditto.
4639 2000-12-31 Martin Buchholz <martin@xemacs.org>
4641 * XEmacs 21.2.39 is released.
4643 2000-12-29 Andy Piper <andy@xemacs.org>
4645 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4647 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4648 the frame has changed so that we pick up geometry changes such as
4651 2000-12-28 Andy Piper <andy@xemacs.org>
4653 * lastfile.c (my_ebss): make a char array so we can pad the
4654 bss. Fixes cygwin unexec.
4656 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4658 2000-12-26 Andy Piper <andy@xemacs.org>
4660 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4661 comments and try and be more precise about a non-/SIGIO world.
4662 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4665 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4666 we don't normalize to zero width or height.
4668 2000-12-24 Andy Piper <andy@xemacs.org>
4670 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4672 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4674 * s/sco5.h: SCO 5 has pty support.
4676 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4678 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4679 input-method-xlib.c contains whole contents of input-method-xfs.c,
4680 so we can use input-method-xlib.c's code for USE_XFONTSET
4682 * input-method-xfs.c: removed.
4684 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4686 * file-coding.h (enum coding_category_type): reorder enumerators to
4687 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4688 (now one greater than largest real coding_category_type enumerator).
4689 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4690 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4691 Fcoding_category_list, Fset_coding_priority_list,
4692 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4693 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4695 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4697 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4698 * redisplay-output.c (redisplay_output_window): Clear top of window
4699 when face is changed.
4700 * redisplay-x.c (x_redraw_exposed_window): Call
4701 redisplay_clear_top_of_window.
4702 * redisplay.h: Publish redisplay_clear_top_of_window.
4704 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4706 * buffer.c (Fkill_buffer): Map over all devices.
4707 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4708 (list_windows): New function.
4709 (list_all_windows): Ditto.
4710 (Freplace_buffer_in_windows): Use them.
4712 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4714 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4715 (Fopen_database): Use `db_create' instead of `db_open'.
4716 (syms_of_database): Initialize Qqueue.
4718 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4720 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4721 buffer_local_face_property.
4722 * buffer.h (struct buffer): New member buffer_local_face_property.
4723 * window.c (Fset_window_buffer): Mark window's face as changed
4724 when buffer has buffer local face.
4725 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4726 * objects.c (color_after_change): Set buffer_local_face_property
4727 when locale of face specifier is buffer.
4728 * objects.c (font_after_change): Ditto.
4729 * objects.c (face_boolean_after_change): Ditto.
4730 * glyphs.c (image_after_change): Ditto.
4732 2000-12-09 Dan Holmsand <dan@eyebee.com>
4734 * nt.c (mswindows_fstat): Report file permissions, volume serial
4735 number, etc. Code adapted from FSF Emacs 20.7.
4737 2000-12-09 Dan Holmsand <dan@eyebee.com>
4739 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4740 of stat when we don't have symbolic links, to make sure
4741 mswindows_stat is called on mswindows.
4743 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4745 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4747 2000-12-12 Martin Buchholz <martin@xemacs.org>
4749 * doprnt.c (emacs_doprnt_1): More printing fixes.
4750 Make printing of numbers compatible with libc and FSF Emacs.
4751 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4752 Use the system printf to do most of the hard work of formatting,
4753 instead of doprnt_1().
4754 Calculate memory to allocate for format string.
4755 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4756 (doprnt_1): Cleaner code and documentation.
4758 2000-12-01 Jerry James <james@eecs.ukans.edu>
4760 * Makefile.in.in: Use the loop variable to install headers.
4762 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4764 * window.c (Fsplit_window): Don't invalidate face cache.
4766 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4768 * minibuf.c (Fall_completions): Undo the previous change
4769 which removed checking elements start with space.
4771 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4773 * mule-canna.c: Didier suppression.
4775 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4777 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4778 (warning suppression). Add English comment translations.
4780 2000-12-05 Martin Buchholz <martin@xemacs.org>
4782 * unexelfsgi.c (unexec): Better test for mmap failure.
4784 2000-12-05 Martin Buchholz <martin@xemacs.org>
4786 * XEmacs 21.2.38 is released.
4788 2000-12-05 Martin Buchholz <martin@xemacs.org>
4790 * redisplay.c (bar-cursor): Make a user variable.
4792 * symsinit.h: Add init_postgresql_from_environment.
4794 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4796 * regex.c: Convert to clean C.
4798 2000-12-05 Dan Holmsand <dan@eyebee.com>
4801 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4803 (sys_readlink): renamed to system_readlink to avoid conflict with
4804 the other sys_readlink.
4806 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4808 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4810 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4812 * postgresql.c (init_postgresql_from_environment): new function.
4813 (vars_of_postgresql): Move code initializing Lisp variables out and
4814 into init_postgresql_from_environment.
4815 emacs.c (main_1): Call init_postgresql_from_environment if and only
4816 if running a dumped XEmacs.
4818 2000-08-31 Dan Holmsand <dan@eyebee.com>
4820 * buffer.c: Make find-file-compare-truenames default to true on
4823 * realpath.c (win32_abs_start):
4825 (win32_readlink): New functions.
4826 (xrealpath): Return really real filenames on windows.
4828 * fileio.c (Ffile_truename): Make file-truename work on windows.
4830 2000-11-29 Didier Verna <didier@xemacs.org>
4832 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4833 * faces.c (update_face_cachel_data): use it.
4834 * faces.c (add_face_cachel): use it. Complete background pixmap
4835 frobbing in face cache if `update_face_cachel_data' has not done so.
4837 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
4839 * search.c (string_match_1): Don't set last_thing_searched
4842 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
4844 * buffer.c: Include casetab.h
4845 (common_init_complex_vars_of_buffer): Use new case-table object.
4846 * buffer.h: Include casetab.h
4847 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4848 (DOWNCASE_TABLE_OF): Ditto.
4849 * bufslots.h: Remove char-tables and add case-table.
4850 * casetab.c: Include casetab.h
4851 (CASE_TABLE_P): Removed.
4852 (mark_case_table): New function.
4853 (allocate_case_table): New function.
4854 (Fcase_table_p): Use new case-table.
4855 (case_table_char): New function.
4856 (Fget_case_table): Ditto.
4857 (Fput_case_table): Ditto.
4858 (Fput_case_table_pair): Ditto.
4859 (Fcopy_case_table): Ditto.
4860 (Fcurrent_case_table): Return case-table.
4861 (Fstandard_case_table): Return case-table.
4862 (Fset_case_table): Fix doc-string.
4863 (set_case_table): Use case-table
4864 (syms_of_casetab): DEFSUBR new functions.
4865 (complex_vars_of_casetab): Set up standard case-table.
4866 * casetab.h: New file.
4867 * editfns.c: Include casetab.h
4868 (Fcompare_buffer_substrings): Use case-table.
4869 * inline.c: Include casetab.h
4870 * lisp.h: Remove bogus extern.
4871 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4872 * search.c: Include casetab.h
4873 (TRANSLATE_ASCII): Removed.
4874 (TRANSLATE): Unconditionally translate character.
4875 (looking_at_1): Use case-table.
4876 (string_match_1): Ditto.
4877 (fast_string_match): Ditto.
4878 (search_command): Ditto.
4879 (search_buffer): Separate boyer_moore. Check whether
4880 boyer_moore is possible.
4881 (simple_search): New function.
4882 (boyer_moore): Separated from search_buffer. Translate char.
4884 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
4886 * regex.c (RE_TR_ASCII): Removed.
4887 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4888 (PATFETCH): Call PATFETCH_RAW.
4889 (PATFETCH_RAW): Fetch Emchar.
4890 (PATUNFETCH): Decrement charptr.
4891 (GET_BUFFER_SPACE): Rename b to buf_end.
4893 (BUF_PUSH_2): Ditto.
4894 (BUF_PUSH_3): Ditto.
4895 (EXTEND_BUFFER): Ditto.
4896 (SET_LIST_BIT): Ditto.
4897 (regex_compile): Ditto. Translate non ASCII char.
4898 (compile_range): Ditto.
4899 (re_search_2): Ditto.
4900 (re_match_2_internal): Compare Emchar.
4901 (bcmp_translate): Ditto.
4903 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
4905 * lisp.h (basic char/int typedefs): comment improvement.
4907 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
4909 * emacs.c (main_1): unconditional pdump unstomping; don't save and
4910 unstomp inhibit_site_lisp. Improve comments.
4912 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
4914 * mule-charset.c (Fcharset_property): improve type checking, comments.
4916 2000-11-28 Andy Piper <andy@xemacs.org>
4918 * redisplay-output.c (redisplay_output_subwindow): make sure we do
4919 clipped display for windows in the gutter also.
4920 (redisplay_display_boxes_in_window_p): change semantics of return
4921 codes to be more intuitive.
4923 * gutter.h: declare display_boxes_in_gutter_p.
4925 * gutter.c (display_boxes_in_gutter_p): new function for
4928 2000-11-22 Andy Piper <andy@xemacs.org>
4930 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4933 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
4935 * callproc.c (Fold_call_process_internal):
4936 * gpm.c (Freceive_gpm_event):
4937 (tty_get_foreign_selection): Might be just warning supression.
4938 * fileio.c (Fwrite_region_internal):
4939 (Fset_visited_file_modtime):
4940 * keymap.c (event_matches_key_specifier_p):
4941 Initialize GCPROed variable.
4943 * menubar-x.c (command_builder_find_menu_accelerator):
4944 Initialize before use.
4946 2000-11-23 Andy Piper <andy@xemacs.org>
4948 * unexcw.c (unexec): make the resulting executable executable.
4950 2000-11-21 Martin Buchholz <martin@xemacs.org>
4952 * doc.c (get_doc_string):
4953 Use size_t, not int, for result of XSTRING_LENGTH.
4955 * cmds.c (Fdelete_char):
4956 * cmds.c (Fpoint_at_eol):
4957 * cmds.c (Fself_insert_command):
4958 Use EMACS_INT, not int, for result of XINT.
4959 Someday, someone will want to insert more than 2**31 identical characters.
4961 * cmds.c (Fdelete_char):
4962 * cmds.c (Fdelete_backward_char):
4963 * syntax.c (Fforward_word):
4964 * syntax.c (Fforward_comment):
4965 Make COUNT argument optional, for consistency with forward-char et al.
4967 2000-11-22 Martin Buchholz <martin@xemacs.org>
4970 * print.c (long_to_string):
4971 Return a useful value: the pointer at end of data written.
4974 Use `static const char * const' for constant strings.
4975 (union printf_arg): Delete `i', `ui' members.
4978 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4979 Do all printf-ing via the `l' specifier.
4980 Use EMACS_INT instead of int.
4983 2000-11-20 Didier Verna <didier@xemacs.org>
4985 * faces.c (update_face_cachel_data): don't frob the background
4986 pixmap when the window is being created. The face is needed but
4989 2000-11-20 Andy Piper <andy@xemacs.org>
4991 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4992 messing with a debug environment.
4994 2000-11-20 Martin Buchholz <martin@xemacs.org>
4996 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4998 2000-11-20 Martin Buchholz <martin@xemacs.org>
5000 * casetab.c (Fcase_table_p): Fix compile error and crash.
5002 2000-11-18 Philip Aston <philipa@mail.com>
5004 * s/cygwin32.h: Cygwin has SVR4-like pty support.
5006 2000-11-18 Martin Buchholz <martin@xemacs.org>
5008 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
5009 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5011 2000-11-17 Martin Buchholz <martin@xemacs.org>
5013 * config.h.in: Define HAVE_ELF_H if elf.h exists.
5014 * unexelf.c: Use HAVE_ELF_H.
5015 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5016 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5017 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5018 Greg Harrington <greg_harrington@hotmail.com> provided a machine
5020 So this is an unexelfsgi.c from a different line of development.
5022 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5024 * regex.c (RE_TR_ASCII): New function.
5025 (RE_TRANSLATE): Call it.
5027 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5029 * buffer.h (TRT_TABLE_OF): Remove assert.
5030 (IN_TRT_TABLE_DOMAIN): Removed.
5032 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
5034 * free-hook.c (log_gcpro):
5035 (show_gcprohist): Add support for GCPRO5.
5037 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
5039 * emacs.c (main_1): Improve -sd error message when --pdump=no.
5041 2000-11-16 Olivier Galibert <galibert@xemacs.org>
5043 * symeval.h: Declare flush_all_buffer_local_cache.
5045 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5046 (flush_buffer_local_cache): Added.
5047 (flush_all_buffer_local_cache): Added.
5049 * lrecord.h: Remove unused XD_LO_RESET_NIL.
5051 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5052 (pdump_dump_data): Ditto.
5053 (pdump_reloc_one): Ditto.
5054 (pdump): Remove unused pdump_qnil. Flush buffer local caches
5058 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5060 * buffer.c: Remove if 0'ed entry.
5061 * buffer.h: Rewrite TRT to use char-table.
5062 * bufslots.h: Remove mirror tables.
5063 * casetab.c: Remove mirror tables.
5064 (CASE_TABLE_P): New macro.
5065 (Fcase_table_p): Element of a case table is string or char-table.
5066 (make_mirror_trt_table): Removed.
5067 (set_case_table): Setup char-table from strings for backward
5069 * dired.c (Fdirectory_files):
5070 * dired-msw.c: (mswindows_get_files):
5071 * lisp.h: Change prototype of re_pattern_buffer.
5072 * regex.c: (RE_TRANSLATE): New macro.
5073 (TRANSLATE_P): Ditto.
5074 Change translate to type RE_TRANSLATE_TYPE.
5075 * regex.h: Define RE_TRANSLATE_TYPE
5076 * search.c (TRANSLATE): New macro.
5077 (TRANSLATE_ASCII): New macro.
5078 Translate table is changed to Lisp_Object.
5079 (signal_failure): Inhibit return.
5081 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5088 Do UNGCPRO before return.
5090 2000-11-14 Martin Buchholz <martin@xemacs.org>
5092 * XEmacs 21.2.37 is released.
5094 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5096 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5097 Add comments about discarded return value.
5099 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5102 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5104 2000-10-27 Andy Piper <andy@xemacs.org>
5106 * gutter.c (Fset_default_gutter_position): default left and right
5108 (calculate_gutter_size): calculate resonable heuristic for left
5109 and right gutter sizes.
5110 (specifier_vars_of_gutter): change left and right gutter sizes to
5112 (calculate_gutter_size_from_display_lines): new function.
5113 (output_gutter): check for resizing on left and right gutters.
5114 (clear_gutter): don't special case top and left gutters.
5115 (specifier_vars_of_gutter): use new signature for
5116 set_specifier_caching.
5118 * glyphs-x.c (x_redisplay_widget): spelling fix.
5119 * glyphs.c (specifier_vars_of_glyphs):
5120 * menubar.c (specifier_vars_of_menubar):
5121 * redisplay.c (specifier_vars_of_redisplay):
5122 * toolbar.c (specifier_vars_of_toolbar):
5123 * window.c (specifier_vars_of_window):
5124 * scrollbar.c (specifier_vars_of_scrollbar):
5125 (complex_vars_of_scrollbar): use new signature for
5126 set_specifier_caching.
5128 * specifier.c (set_specifier_caching): include recompute flag.
5129 (recompute_one_cached_specifier_in_window): always recompute if
5131 (recompute_one_cached_specifier_in_frame): ditto.
5133 * specifier.h (struct specifier_caching): add recompute flag.
5135 2000-10-24 Andy Piper <andy@xemacs.org>
5137 * unexcw.c (copy_executable_and_dump_data_section): add new
5138 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5141 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5143 * console-x.h (x_device): New member modifier_release_time.
5144 * event-Xt.c (x_handle_sticky_modifiers):
5145 Bound interval modifier keys are sticky.
5146 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5147 * events.h: extern it.
5149 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5151 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5153 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5155 * event-stream.c (execute_command_event): Preserve current_events
5156 and the like when event is misc-user-event.
5157 Inhibit quit during the call to maybe_echo_keys.
5159 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5161 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5162 symlink when buffer is killed.
5163 (inhibit_clash_detection): New variable.
5165 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5167 * console.c (Fset_input_method): Trigger redisplay on tty.
5169 2000-11-07 Martin Buchholz <martin@xemacs.org>
5171 * process.c (Fprocess_status): Revert to previous behavior:
5172 (process-status "nosuchprocess") ==> nil
5174 2000-11-06 Martin Buchholz <martin@xemacs.org>
5176 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5177 Work around another GCC 2.95.2 optimizer bug.
5179 2000-11-02 Martin Buchholz <martin@xemacs.org>
5181 * process.c (Fget_process): Use LIST_LOOP_2.
5182 (kill_buffer_processes): Use LIST_LOOP_2.
5184 * minibuf.c (Fall_completions):
5185 Delete old non-functional code for FSF fourth argument.
5187 * frame.c (frame_matches_frame_spec):
5188 Renamed from `frame_matches_frametype'. Update all callers.
5189 (device_matches_device_spec):
5190 Renamed from 'device_matches_console_spec'. Update all callers.
5192 * doc.c (Fsubstitute_command_keys):
5193 Remove buffer overflow crash. Small code cleanups.
5195 * casetab.c (check_case_table): Simpler code.
5197 * window.c (Freplace_buffer_in_windows):
5198 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5199 (and similar implementation) as Fdelete_windows_on.
5202 * alloc.c (Fmake_list):
5203 * alloc.c (make_vector):
5204 * alloc.c (Fmake_vector):
5205 * alloc.c (make_bit_vector):
5206 * alloc.c (Fmake_bit_vector):
5207 * alloc.c (Fbit_vector):
5208 * alloc.c (Fmake_string):
5209 * alloc.c (Fpurecopy):
5210 * alloc.c (Fmemory_limit):
5212 * buffer.c (Fget_buffer):
5213 * buffer.c (Fkill_buffer):
5214 * buffer.c (complex_vars_of_buffer):
5215 * bytecode.c (Fcompiled_function_stack_depth):
5216 * callint.c (Fprefix_numeric_value):
5218 * event-stream.c (Fread_key_sequence):
5220 * casetab.c (Fcase_table_p):
5221 * casetab.c (check_case_table):
5222 * casetab.c (Fset_case_table):
5223 * casetab.c (Fset_standard_case_table):
5225 * chartab.c (Fchar_table_type):
5226 * chartab.c (Freset_char_table):
5227 * chartab.c (Fget_char_table):
5228 * chartab.c (Fget_range_char_table):
5229 * chartab.c (Fput_char_table):
5230 * chartab.c (Fmap_char_table):
5231 * chartab.c (Fcategory_table_p):
5232 * chartab.c (Fcheck_category_at):
5233 * chartab.c (Fchar_in_category_p):
5234 * chartab.c (Fcategory_table):
5235 * chartab.c (Fcopy_category_table):
5236 * chartab.c (Fset_category_table):
5237 * chartab.c (Fcategory_designator_p):
5238 * chartab.c (Fcategory_table_value_p):
5239 * cmds.c (Fdelete_char):
5240 * cmds.c (Fdelete_backward_char):
5241 * cmds.c (Fself_insert_command):
5242 * cmds.c (Fself_insert_internal):
5243 * console.c (Fvalid_console_type_p):
5244 * console.c (Fcdfw_console):
5245 * console.c (Fconsole_type):
5246 * console.c (Fconsole_name):
5247 * console.c (Fconsole_device_list):
5248 * console.c (Fconsole_on_window_system_p):
5252 * data.c (Fsubr_interactive):
5253 * data.c (Fchar_to_int):
5254 * data.c (Fint_to_char):
5257 * data.c (Fnumber_to_string):
5258 * data.c (Fstring_to_number):
5260 * database.c (mark_database):
5261 * database.c (finalize_database):
5262 * database.c (Fdatabase_live_p):
5263 * database.c (Fdatabasep):
5264 * device-x.c (Fx_get_resource):
5265 * device.c (Fdfw_device):
5267 * dired.c (Ffile_name_completion):
5268 * dired.c (Ffile_name_all_completions):
5269 * dired.c (Fuser_name_completion):
5270 * dired.c (Fuser_name_completion_1):
5271 * dired.c (Fuser_name_all_completions):
5272 * doc.c (Fdocumentation):
5273 * doc.c (Fdocumentation_property):
5274 * doc.c (Fsubstitute_command_keys):
5276 * editfns.c (Fchar_to_string):
5277 * editfns.c (Fstring_to_char):
5278 * editfns.c (Ftemp_directory):
5279 * editfns.c (Finsert_char):
5280 * editfns.c (Fbuffer_substring_no_properties):
5281 * editfns.c (Fnarrow_to_region):
5282 * editfns.c (Fchar_equal):
5283 * editfns.c (Fchar_Equal):
5284 * editfns.c (Ftranspose_regions):
5285 * emacs.c (Fdump_emacs):
5287 * eval.c (Fcommand_execute):
5288 * eval.c (Fautoload):
5289 * eval.c (Fbacktrace):
5290 * eval.c (Fbacktrace_frame):
5292 * events.c (Fcopy_event):
5293 * events.c (Fcharacter_to_event):
5294 * events.c (Fevent_button):
5295 * events.c (Fevent_process):
5297 * extents.c (Fnext_extent_change):
5298 * extents.c (Fextent_property):
5300 * faces.c (Fmake_face):
5302 * file-coding.c (Fencode_shift_jis_char):
5303 * file-coding.c (Fencode_big5_char):
5304 * fileio.c (Ffile_name_directory):
5305 * fileio.c (Ffile_name_nondirectory):
5306 * fileio.c (Ffile_name_as_directory):
5307 * fileio.c (Fdirectory_file_name):
5308 * fileio.c (Ffile_truename):
5309 * fileio.c (Fsubstitute_in_file_name):
5310 * fileio.c (Ffile_modes):
5311 * fileio.c (Fset_file_modes):
5312 * fileio.c (Fset_default_file_modes):
5313 * fileio.c (Fverify_visited_file_modtime):
5314 * floatfns.c (Facos):
5315 * floatfns.c (Fasin):
5316 * floatfns.c (Fatan):
5317 * floatfns.c (Fcos):
5318 * floatfns.c (Fsin):
5319 * floatfns.c (Ftan):
5320 * floatfns.c (Fbessel_j0):
5321 * floatfns.c (Fbessel_j1):
5322 * floatfns.c (Fbessel_jn):
5323 * floatfns.c (Fbessel_y0):
5324 * floatfns.c (Fbessel_y1):
5325 * floatfns.c (Fbessel_yn):
5326 * floatfns.c (Ferf):
5327 * floatfns.c (Ferfc):
5328 * floatfns.c (Flog_gamma):
5329 * floatfns.c (Fexp):
5330 * floatfns.c (Fexpt):
5331 * floatfns.c (Flog):
5332 * floatfns.c (Flog10):
5333 * floatfns.c (Fsqrt):
5334 * floatfns.c (Fcube_root):
5335 * floatfns.c (Facosh):
5336 * floatfns.c (Fasinh):
5337 * floatfns.c (Fatanh):
5338 * floatfns.c (Fcosh):
5339 * floatfns.c (Fsinh):
5340 * floatfns.c (Ftanh):
5341 * floatfns.c (Fabs):
5342 * floatfns.c (Ffloat):
5343 * floatfns.c (Flogb):
5344 * floatfns.c (Fceiling):
5345 * floatfns.c (Ffloor):
5346 * floatfns.c (Fround):
5347 * floatfns.c (Ftruncate):
5348 * floatfns.c (Ffceiling):
5349 * floatfns.c (Fffloor):
5350 * floatfns.c (Ffround):
5351 * floatfns.c (Fftruncate):
5352 * fns.c (Fstring_equal):
5353 * fns.c (Fstring_lessp):
5358 * fns.c (Fsubstring):
5360 * fns.c (Fold_assoc):
5361 * fns.c (assoc_no_quit):
5363 * fns.c (Fold_assq):
5364 * fns.c (assq_no_quit):
5366 * fns.c (Fold_rassoc):
5368 * fns.c (Fold_rassq):
5369 * fns.c (rassq_no_quit):
5370 * fns.c (Fremassoc):
5371 * fns.c (remassoc_no_quit):
5373 * fns.c (remassq_no_quit):
5374 * fns.c (Fremrassoc):
5375 * fns.c (Fremrassq):
5376 * fns.c (remrassq_no_quit):
5378 * fns.c (Fplist_get):
5379 * fns.c (Fplist_put):
5380 * fns.c (Fplist_remprop):
5381 * fns.c (Fplist_member):
5382 * fns.c (Flax_plist_get):
5383 * fns.c (Flax_plist_put):
5384 * fns.c (Flax_plist_remprop):
5385 * fns.c (Flax_plist_member):
5387 * fns.c (Fold_equal):
5389 * fns.c (Fbase64_encode_region):
5390 * fns.c (Fbase64_encode_string):
5391 * fns.c (Fbase64_decode_region):
5393 * frame.c (frame_matches_frame_spec):
5394 * frame.c (device_matches_device_spec):
5395 * frame.c (next_frame):
5396 * frame.c (previous_frame):
5397 * frame.c (Fnext_frame):
5398 * frame.c (Fprevious_frame):
5399 * frame.c (Fframe_property):
5400 * frame.c (Fset_frame_height):
5401 * frame.c (Fset_frame_size):
5405 * glyphs.c (decode_error_behavior_flag):
5406 * glyphs.c (Fmake_image_instance):
5407 * indent.c (Findent_to):
5408 * intl.c (Fignore_defer_gettext):
5409 * keymap.c (Fkeymapp):
5410 * keymap.c (Flookup_key):
5412 * lread.c (Fload_internal):
5413 * lread.c (Feval_buffer):
5414 * lread.c (Feval_region):
5415 * macros.c (Fexecute_kbd_macro):
5416 * marker.c (set_marker_internal):
5417 * marker.c (Fset_marker):
5418 * marker.c (set_marker_restricted):
5419 * marker.c (Fcopy_marker):
5420 * marker.c (noseeum_copy_marker):
5422 * menubar.c (Fpopup_menu):
5424 * mule-charset.c (Fcharset_name):
5425 * mule-charset.c (Fchar_charset):
5426 * mule-charset.c (Fchar_octet):
5427 * mule-charset.c (Fsplit_char):
5428 * mule-wnnfns.c (Fwnn_open):
5429 * mule-wnnfns.c (Fwnn_dict_comment):
5430 * mule-wnnfns.c (Fwnn_quit_henkan):
5431 * mule-wnnfns.c (Fwnn_word_toroku):
5432 * mule-wnnfns.c (Fwnn_word_sakujo):
5433 * mule-wnnfns.c (Fwnn_word_use):
5434 * mule-wnnfns.c (Fwnn_hindo_set):
5436 * objects.c (Fmake_color_instance):
5437 * objects.c (Fmake_font_instance):
5438 * print.c (Fwrite_char):
5440 * process.c (mark_process):
5441 * process.c (print_process):
5442 * process.c (get_process_from_usid):
5443 * process.c (Fprocessp):
5444 * process.c (Fprocess_live_p):
5445 * process.c (Fget_process):
5446 * process.c (Fget_buffer_process):
5447 * process.c (get_process):
5448 * process.c (Fprocess_id):
5449 * process.c (Fprocess_name):
5450 * process.c (Fprocess_command):
5451 * process.c (init_process_io_handles):
5452 * process.c (start_process_unwind):
5453 * process.c (Fstart_process_internal):
5454 * process.c (Fopen_multicast_group_internal):
5455 * process.c (Fset_process_window_size):
5456 * process.c (read_process_output):
5457 * process.c (send_process):
5458 * process.c (Fprocess_tty_name):
5459 * process.c (Fset_process_buffer):
5460 * process.c (Fprocess_buffer):
5461 * process.c (Fprocess_mark):
5462 * process.c (set_process_filter):
5463 * process.c (Fset_process_filter):
5464 * process.c (Fprocess_filter):
5465 * process.c (Fprocess_send_region):
5466 * process.c (Fprocess_send_string):
5467 * process.c (exec_sentinel):
5468 * process.c (Fset_process_sentinel):
5469 * process.c (Fprocess_sentinel):
5470 * process.c (status_notify):
5471 * process.c (Fprocess_status):
5472 * process.c (Fprocess_exit_status):
5473 * process.c (process_send_signal):
5474 * process.c (Fprocess_send_eof):
5475 * process.c (deactivate_process):
5476 * process.c (remove_process):
5477 * process.c (Fdelete_process):
5478 * process.c (kill_buffer_processes):
5479 * process.c (Fprocess_kill_without_query):
5480 * process.c (Fprocess_kill_without_query_p):
5482 * rangetab.c (Fget_range_table):
5483 * rangetab.c (Fput_range_table):
5484 * rangetab.c (Fremove_range_table):
5485 * rangetab.c (Fclear_range_table):
5487 * search.c (Fskip_chars_forward):
5488 * search.c (Fskip_chars_backward):
5489 * search.c (Fskip_syntax_forward):
5490 * search.c (Fskip_syntax_backward):
5491 * search.c (search_command):
5492 * search.c (Freplace_match):
5493 * search.c (Fregexp_quote):
5494 * select.c (Fown_selection_internal):
5495 * select.c (Fselection_owner_p):
5496 * select.c (Fselection_exists_p):
5497 * select.c (Fget_selection_internal):
5500 * symbols.c (Fintern):
5501 * symbols.c (Fintern_soft):
5502 * symbols.c (Funintern):
5503 * symbols.c (Fapropos_internal):
5504 * symbols.c (Fset_default):
5506 * syntax.c (Fsyntax_table_p):
5507 * syntax.c (Fcopy_syntax_table):
5508 * syntax.c (Fset_syntax_table):
5509 * syntax.c (Fchar_syntax):
5510 * syntax.c (syntax_match):
5511 * syntax.c (Fmatching_paren):
5512 * syntax.c (Fforward_word):
5513 * syntax.c (scan_lists):
5514 * syntax.c (Fscan_lists):
5515 * syntax.c (Fscan_sexps):
5516 * syntax.c (Fparse_partial_sexp):
5517 * toolbar.c (Fcheck_toolbar_button_syntax):
5520 * window.c (Fwindowp):
5521 * window.c (Fwindow_live_p):
5522 * window.c (Fwindow_point):
5523 * window.c (Fdelete_window):
5524 * window.c (Fnext_window):
5525 * window.c (Fprevious_window):
5526 * window.c (Fother_window):
5527 * window.c (window_loop):
5528 * window.c (Fget_lru_window):
5529 * window.c (Fsplit_window):
5530 * window.c (Fenlarge_window):
5531 * window.c (Fenlarge_window_pixels):
5532 * window.c (Fshrink_window):
5533 * window.c (Fshrink_window_pixels):
5534 * window.c (change_window_height):
5535 * window.c (Fwindow_configuration_p):
5536 * window.c (Fcurrent_window_configuration):
5538 * casefiddle.c (casify_object):
5539 * casefiddle.c (Fupcase):
5540 * casefiddle.c (Fdowncase):
5541 * casefiddle.c (Fcapitalize):
5542 * casefiddle.c (Fupcase_initials):
5543 * casefiddle.c (casify_region_internal):
5544 * casefiddle.c (casify_region):
5545 * casefiddle.c (Fupcase_region):
5546 * casefiddle.c (Fdowncase_region):
5547 * casefiddle.c (Fcapitalize_region):
5548 * casefiddle.c (Fupcase_initials_region):
5549 * casefiddle.c (Fupcase_word):
5550 * casefiddle.c (Fdowncase_word):
5551 * casefiddle.c (Fcapitalize_word):
5552 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5553 Replace 0 with '\0' when working with bytes.
5554 Replace initial "(" with "\(" in docstrings.
5556 2000-11-01 Martin Buchholz <martin@xemacs.org>
5558 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5560 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5562 2000-10-31 Martin Buchholz <martin@xemacs.org>
5564 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5566 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5568 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5571 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5573 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5574 (inhibit_auto_save_session): New variable.
5575 (vars_of_fileio): Declare and initialize them.
5576 * fileio.c (Fdo_auto_save): Don't create session file if
5577 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5579 2000-10-31 Martin Buchholz <martin@xemacs.org>
5581 * sgiplay.c (play_internal): C++ compilability.
5582 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5583 * callproc.c (Fold_call_process_internal):
5584 Remove unused vars `env', `first'.
5585 * scrollbar.c (update_scrollbar_instance):
5586 #### unused var `current_window'.
5587 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5588 etc. within #ifdef NOT_YET.
5589 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5590 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5591 * specifier.c (specifier_instance):
5592 #### unused var `tag'.
5593 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5595 2000-10-27 Martin Buchholz <martin@xemacs.org>
5598 * fns.c (list_sort):
5599 * fns.c (Ffillarray):
5600 * fns.c (bytecode_nconc2):
5603 * fns.c (Fmapconcat):
5604 Be pedantically 64-bit correct. For the time when someone will
5605 want to have a list with length > 2**32.
5607 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5608 Work around MIPSpro compiler bug.
5610 * process-unix.c (unix_kill_child_process): Add snarky comment.
5611 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5613 * config.h.in: Oops, _getpt ==> _getpty
5615 2000-10-26 Martin Buchholz <martin@xemacs.org>
5619 Use void*, not char*, as return type of alloca().
5621 * alloc.c (free_marker): Side effect inside assert expression!
5623 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5625 * mule-charset.c (Fset_charset_ccl_program): To check
5626 if the given ccl program is valid, use setup_ccl_program()
5627 instead of CHECK_VECTOR().
5628 (Fmake_charset): Likewise.
5630 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5632 * faces.c (get_extent_fragment_face_cache_index):
5633 Fix cachel.merged_faces memory leak.
5635 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5637 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5638 Reset MSB of octets obtained by DECODE_SJIS
5639 because of the incompatibility with Emacs.
5640 (ccl_driver)<CCL_ENCODE_SJIS>:
5641 Set MSB of octets before passing them to
5642 ENCODE_SJIS because of the incompatibility
5645 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5647 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5648 (DECLARE_LRECORD): Undo the last change.
5649 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5651 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5653 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5654 the implementation to lrecord_implementations_table.
5656 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5658 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5659 initial value of `lrecord_type_##c_name' and
5660 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5661 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5662 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5663 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5664 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5666 2000-10-17 Martin Buchholz <martin@xemacs.org>
5668 * miscplay.c (sndcnv8S_2mono):
5669 (sndcnv2monounsigned):
5670 (sndcnvULaw_2linear):
5672 Remove implementation-defined behavior.
5674 2000-10-12 Martin Buchholz <martin@xemacs.org>
5676 * input-method-xlib.c: Warning suppression.
5678 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5680 * mule-ccl.c: Sync up with Emacs 21.0.90.
5681 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5683 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5685 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5686 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5687 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5688 leading char belongs to official 2-dimensional charset.
5689 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5690 write the given character as is. Otherwise,
5691 if it is a multibyte char, convert it by
5692 non_ascii_set_charptr_emchar, then write it.
5693 (CCL_WRITE_STRING): Likewise.
5694 (ccl_get_compiled_code): New function.
5695 (setup_ccl_program): When ccl_prog is invalid,
5697 (Fregister_code_conversion_map): New function.
5698 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5700 * mule-ccl.h: Sync up with Emacs 21.0.90.
5701 (Fregister_ccl_program): export it.
5703 * redisplay-msw.c (separate_textual_runs):
5704 If ccl program is not valid, don't do ccl conversion.
5706 * redisplay-x.c (separate_textual_runs): Ditto.
5708 * file-coding.c (Fmake_coding_system):
5709 When type is ccl and value is vector, register it
5710 with a proper symbol. And checks whether the
5711 given ccl program is valid.
5712 (mule_decode): When calling ccl_driver, if src indicates
5713 NULL pointer, set an empty string instead.
5714 (mule_encode): Likewise.
5716 2000-10-11 Martin Buchholz <martin@xemacs.org>
5718 The following large batch of changes gets us back to a state of
5719 C++ compilability. Extbyte is now a char, which means that
5720 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5722 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5724 * sound.c (Fplay_sound): Type correctness.
5726 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5727 (x_get_window_property): Type correctness.
5728 (receive_incremental_selection): unsigned char ==> Extbyte
5729 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5730 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5731 (Fx_store_cutbuffer_internal): Type correctness.
5733 * process-unix.c (try_to_initialize_subtty): Type correctness.
5735 * objects-x.c (x_print_color_instance): Type correctness.
5736 (x_print_font_instance): Type correctness.
5737 (x_list_fonts): SExtbyte ==> Extbyte.
5738 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5739 (x_find_charset_font): SExtbyte ==> Extbyte.
5740 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5741 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5742 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5745 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5746 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5747 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5748 (BYTE_C0_P): Use bit ops for char-signedness safety.
5749 (BYTE_C1_P): Use bit ops for char-signedness safety.
5750 (CHARSET_BY_LEADING_BYTE):
5751 (CHARSET_BY_ATTRIBUTES):
5752 Always use inline function.
5753 Use type_checking_assert.
5756 * mule-charset.c (non_ascii_charptr_copy_char):
5757 Modify to work with both ASCII and non-ASCII characters.
5758 Improve docs and variable names.
5759 Replace over-clever fall-through switch with a simple loop.
5760 (Lstream_get_emchar_1):
5761 Replace over-clever fall-through switch with a simple loop.
5763 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5764 Warning suppression.
5766 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5767 the return value of Lstream_getc, which could be EOF as well.
5769 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5771 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5772 APIs can be used on Extbytes without casts. Risky!
5776 * input-method-xlib.c (XIM_init_device):
5777 Use Xlib.h instead of IntrinsicP.h.
5778 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5779 which will break in X11R7.
5780 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5781 to call XRegisterIMInstantiateCallback with correct types.
5783 * gui-x.c (button_item_to_widget_value): Type correctness.
5785 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5787 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5788 (xbm_instantiate_1): Type correctness.
5789 (BUILD_GLYPH_INST): Type correctness.
5791 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5794 (decode_coding_sjis):
5795 (decode_coding_big5):
5796 (decode_coding_ucs4):
5797 (decode_coding_utf8):
5798 (decode_coding_iso2022):
5799 (decode_coding_no_conversion):
5800 Make all decoding functions take an Extbyte * arg.
5801 (encode_coding_sjis):
5802 (encode_coding_big5):
5803 (encode_coding_ucs4):
5804 (encode_coding_utf8):
5805 (encode_coding_iso2022):
5806 (encode_coding_no_conversion):
5807 Make all encoding functions take a Bufbyte * arg.
5808 Use size_t instead of unsigned int for memory sizes.
5809 Only cast to unsigned char whenever dereferencing Extbyte *.
5811 * doc.c (unparesseuxify_doc_string): Type correctness.
5813 * console-x.c (split_up_display_spec):
5814 Rewrite without using details of internal string representation.
5815 (x_semi_canonicalize_device_connection): Type correctness.
5818 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5819 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5820 (HAVE_XFREE386): Removed.
5822 * buffer.h (DEC_CHARPTR): `const' correctness.
5823 (bufbyte_strcmp): New.
5824 (bufbyte_memcmp): New.
5826 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5828 * buffer.h (XCHAR_OR_CHAR_INT):
5829 Always use inline function.
5830 Remove redundant type checking assert() - XINT will abort quite nicely.
5832 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5834 * search.c (Freplace_match): Set newtext to an empty string.
5836 2000-10-10 Martin Buchholz <martin@xemacs.org>
5838 * s/decosf1-3.h: Remove #include of stropts.h
5839 * s/ptx.h: Remove #include of stropts.h
5840 * s/usg5-4.h: Remove #include of stropts.h
5843 Use stropts.h, not sys/stropts.h.
5844 Use strtio.h, not sys/strtio.h.
5846 2000-10-04 Martin Buchholz <martin@xemacs.org>
5848 * XEmacs 21.2.36 is released.
5850 2000-09-21 Andy Piper <andy@xemacs.org>
5852 * glyphs-x.c (x_redisplay_widget): make sure non-structural
5853 changes still involve copying the widget tree.
5854 (update_widget_face): make sure a change is register in the widget
5855 tree. Call update_tab_widget_face appropriately.
5856 (update_tab_widget_face): ditto.
5857 (x_tab_control_redisplay): make sure non-structural changes still
5858 involve copying the widget tree.
5860 2000-08-31 Daiki Ueno <ueno@unixuser.org>
5862 * lread.c (locate_file): Check the path element is non-nil.
5864 2000-10-02 Martin Buchholz <martin@xemacs.org>
5866 * lisp.h: Warning suppression for SCO compilers.
5868 * redisplay-tty.c (reset_tty_modes): Fix crash.
5869 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5871 2000-09-27 Martin Buchholz <martin@xemacs.org>
5873 Big signal/process handling overhaul. Bugs fixed:
5874 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5875 M-x comint-kill-subjob should work for both values nil and t of
5876 process-connection-type. It was broken on most platforms.
5877 Testing on Irix and Cygwin still needed. Other plaforms tested.
5878 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
5879 * process-unix.c: Signal/Process handling overhaul.
5880 (pty_name): make 64 bytes, as `expect' does, for paranoia.
5881 (allocate_pty): Use all available modern methods of allocating
5882 ptys, falling back to old style BSD allocation as a last resort.
5883 Use allegedly more secure Unix98 pty allocation by default.
5884 (allocate_pty_the_old_fashioned_way): New. the last resort.
5885 (unix_create_process): Push ptem, ldterm, ttcompat where
5886 available. Autoconfiscate.
5887 (try_to_initialize_subtty): New.
5888 (unix_kill_child_process): Proper signal handling for ptys on most
5889 platforms, using special knowledge of AIX, BSD, etc...
5890 (unix_create_process): Always disconnect_controlling_terminal() for
5891 subprocesses, whether using ptys or not.
5892 * process.h: Remove old getpt-dependent PTY code.
5893 * process.c (Fprocess_send_signal): New, obvious generic function.
5894 (decode_signal): New.
5895 (Finterrupt_process):
5899 (Fcontinue_process):
5900 (Fsignal_process): Use decode_signal.
5901 (process_send_signal):
5902 Many docstring corrections.
5903 Allow any signal to be sent to a process object.
5904 * config.h.in: Add symbols for big signal/process overhaul.
5905 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5906 * sysproc.h: Include process-related headers, where available:
5907 sys/stropts.h sys/strtio.h pty.h libutil.h
5915 Remove old S&M pty stuff.
5916 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5917 * systty.h: Simplify cpp hackery, improve comments.
5918 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5920 * editfns.c (Fformat_time_string):
5921 Be a little more paranoid with the return value of ctime.
5923 * fileio.c (check_executable):
5925 Use symbolic constants X_OK, W_OK.
5927 * console-x.c (split_up_display_spec): Fix a warning.
5929 2000-10-02 Martin Buchholz <martin@xemacs.org>
5931 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5932 * ntproc.c (sys_spawnve): make_string ==> build_string
5933 Small clarity improvements.
5935 2000-09-30 Martin Buchholz <martin@xemacs.org>
5937 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5939 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5941 * config.h.in (HAVE_STRCASECMP): Remove.
5943 2000-09-29 Martin Buchholz <martin@xemacs.org>
5945 * redisplay-output.c (redisplay_output_pixmap):
5946 Cleaner and possibly more 64-bit correct code.
5948 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5950 * dumper.c (pdump_load_finish): move restoration of
5951 `noninteractive1' to emacs.c (main_1).
5952 * emacs.c (main_1): protect LISP-visible command-line flags
5955 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
5957 * Makefile.in.in (versionclean): Use EXE_TARGET and
5958 DUMP_TARGET instead of literal program names.
5960 2000-09-20 Martin Buchholz <martin@xemacs.org>
5962 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5964 2000-09-19 Martin Buchholz <martin@xemacs.org>
5966 * *: Spelling mega-patch
5968 2000-09-19 Martin Buchholz <martin@xemacs.org>
5970 * fns.c (bad_bad_turtle):
5971 Delete "Eek!" comment, since we fixed the bug to which it refers.
5973 2000-09-16 Martin Buchholz <martin@xemacs.org>
5975 * alloca.c: Replace REGISTER with register.
5977 2000-09-16 Daiki Ueno <ueno@unixuser.org>
5979 * file-coding.c (ucs_to_char): Use countof.
5981 2000-09-16 Martin Buchholz <martin@xemacs.org>
5983 * file-coding.c: (ucs_to_char):
5984 (complex_vars_of_file_coding):
5985 Use countof instead of sizeof.
5986 Use CHECK_NATNUM instead of CHECK_INT.
5988 * sysdep.c (strcasecmp): Remove.
5989 * device-x.c (ascii_strcasecmp): New.
5990 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5991 Avoid using non-standard non-portable strcasecmp.
5993 2000-09-16 Martin Buchholz <martin@xemacs.org>
5995 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5996 * font-lock.c: remove reference to emacsfns.h.
5997 * search.c: small doc improvement.
5998 * event-Xt.c: correct file names in comments.
5999 * console-x.h Correct file names in comments.
6000 * frame.c: Correct file names in comments.
6001 * event-stream.c: remove Energize from comments.
6003 2000-09-15 Martin Buchholz <martin@xemacs.org>
6005 * symeval.h (DEFERROR_STANDARD):
6008 (DEFSYMBOL_NO_DUMP):
6009 (DEFSYMBOL_MULTIWORD_PREDICATE):
6010 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6012 The construct &##name is not sensible C.
6013 Fixes compilation errors with Unixware native compiler.
6015 2000-09-14 Martin Buchholz <martin@xemacs.org>
6017 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6018 (next_frame_internal): Removed. We now just have next_frame.
6020 Write a simpler and cleaner one-pass algorithm.
6021 Remove called_from_delete_device arg and #ifdefed-out code.
6023 Renamed from prev_frame. Update callers.
6024 Cleaned up to have an analogous implementation to next_frame.
6025 (other_visible_frames_internal): Remove the
6026 called_from_delete_device bogus arg, and hence, remove this
6027 function. Just use other_visible_frames().
6029 * window.c (Fnext_window):
6031 Since next_frame() is guaranteed to return a frame, remove check
6032 for nil inserted in previous patch.
6035 Make code look more like Fnext_window.
6037 Respect the `console' arg when iterating through windows.
6038 Fixes bug: (get-buffer-window buffer t device) not respecting
6040 This function needs more work, as others have pointed out.
6042 * frame.h: Rename prev_frame to previous_frame.
6043 device_matches_console_spec no longer takes a `frame' arg.
6048 Use EMACS_BLOCK_SIGNAL instead of sigblock.
6049 From "Golubev I. N." <gin@mo.msk.ru>.
6051 * make-src-depend: Fix typo.
6053 2000-09-13 Martin Buchholz <martin@xemacs.org>
6055 * window.c (Fnext_window):
6056 next_frame() might return nil, not a frame.
6058 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6060 * frame.c (next_frame_internal):
6061 We've passed a frame if we've passed its device.
6063 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6064 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6066 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
6068 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6069 Allow option to suppress accelerators in menu/dialog items.
6070 (populate_or_checksum_helper): Pass dialog title through above.
6072 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
6074 * event-msw.c (mswindows_key_to_emacs_keysym):
6075 Add "pause" key, fix "menu" key.
6077 2000-09-09 Martin Buchholz <martin@xemacs.org>
6079 * eval.c (reinit_vars_of_eval):
6080 Increase max_lisp_eval_depth to 1000,
6081 required for thai-xtis.el to byte-compile under some circumstances.
6083 2000-09-04 Martin Buchholz <martin@xemacs.org>
6085 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6088 2000-09-01 Martin Buchholz <martin@xemacs.org>
6090 * make-src-depend: Make the generated Makefiles smaller.
6092 * s/hpux.h (SETUP_SLAVE_PTY):
6093 Provide a %d in the format string for the errno argument.
6095 * editfns.c (Ftemp_directory):
6097 Avoid buffer overrun on very long file name.
6099 * input-method-xlib.c (XIM_init_device):
6100 6th parameter of XRegisterIMInstantiateCallback has different
6101 pointer types on different OSes, so simply cast to (void *).
6103 * unexhp9k800.c: Warning fixes. Fiddly changes.
6105 * sysdll.c (dll_open):
6106 shl_load will hang hard if passed a NULL filename.
6107 Simply return NULL for compatibility with dlopen.
6108 * sysdll.c: Conform to XEmacs coding standards.
6110 * sysdep.c (get_pty_max_bytes):
6111 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6113 2000-08-31 Martin Buchholz <martin@xemacs.org>
6115 * tooltalk.c: Add #include <syssignal.h>
6117 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6119 * s/hpux.h: Don't use undefined function sigunblock().
6121 2000-08-31 Martin Buchholz <martin@xemacs.org>
6123 * config.h.in: Add HAVE_BALLOON_HELP.
6124 * emacs.c: Use HAVE_BALLOON_HELP.
6125 * Makefile.in.in (x_objs):
6126 Make Balloon Help conditional on finding shape.h.
6128 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6130 * syntax.c (regex_emacs_buffer_p): New variable.
6131 * syntax.h (regex_emacs_buffer_p): extern.
6132 * search.c (looking_at_1):
6134 (fast_string_match):
6135 (search_buffer): Set regex_emacs_buffer_p.
6136 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6137 when before_dot, at_dot, after_dot.
6139 2000-08-23 Andy Piper <andy@xemacs.org>
6141 * gui-x.c (popup_selection_callback): Only set action_occurred
6142 when we really have an image instance.
6143 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6145 2000-08-23 Andy Piper <andy@xemacs.org>
6147 * gui-msw.c (mswindows_handle_gui_wm_command): set
6149 * gui-x.c (popup_selection_callback): ditto.
6151 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6152 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6153 (struct Lisp_Image_Instance): add action_occurred flag.
6155 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6156 (image_instance_changed): ditto.
6157 (reset_frame_subwindow_instance_cache): only unmap windows - do
6158 not remove them from the cache also.
6160 * glyphs-widget.c (tab_control_update): better debug.
6161 (progress_gauge_update): ditto.
6162 (layout_update): ditto.
6163 (layout_instantiate): ditto.
6164 (tab_control_order_only_changed): cope with null pending items.
6166 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6167 debug. Force selection of an item when an action occurred. Cope
6168 with null pending_items.
6169 (mswindows_progress_gauge_redisplay): better debug.
6170 * glyphs-x.c (x_tab_control_redisplay): ditto.
6172 * redisplay.c (redisplay_frame): reset the frame cache if the
6175 * window.c (Fset_window_configuration): potentially re-enable
6177 (window_unmap_subwindows): need to finalize instances here since
6178 it is only used in mark_window_as_deleted.
6180 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6182 * nas.c (SndOpenDataForReading):
6183 nas.c (WaveOpenDataForReading):
6184 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6185 Somehow escaped from the 2000-08-14 patch.
6187 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6189 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6190 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6192 2000-08-21 Andy Piper <andy@xemacs.org>
6194 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6195 window if it is not already displayed.
6197 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6198 it is not already displayed.
6200 * window.c (Fset_window_configuration): don't reset the frame
6203 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6204 instances from the frame cache if we are actually finalizing them.
6205 (reset_frame_subwindow_instance_cache): reset frame cache only
6206 after unmapping everything.
6207 (map_subwindow): set displayed flag after mapping.
6209 2000-08-21 Martin Buchholz <martin@xemacs.org>
6211 * data.c (indirect_function):
6212 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6214 * eval.c (function_argcount):
6215 Use original function when signaling errors.
6217 2000-08-18 Andy Piper <andy@xemacs.org>
6219 * frame.c (delete_frame_internal): use new
6220 free_frame_subwindow_instances name.
6222 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6223 (add_tab_item): make return type correct.
6224 (mswindows_tab_control_instantiate): assert index of tab.
6225 (mswindows_tab_control_redisplay): Re-code to use
6226 gui_item_equal_sans_selected and gui_item_list_find_selected.
6228 * glyphs-widget.c (tab_control_update): Correct comment.
6230 * window.c (window_unmap_subwindows): use new
6231 unmap_subwindow_instance_cache_mapper.
6232 (window_unmap_subwindows_cache_mapper): deleted.
6233 (Fset_window_configuration): comparisons should now be with
6234 EQ. Preserve the subwindow instance cache across configuration
6236 (allocate_window): ditto.
6237 (make_dummy_parent): ditto.
6239 * glyphs.c (free_frame_subwindow_instances): rename from
6240 free_frame_subwindow_instance_cache. finalize all instances rather
6241 than just those in the display cache.
6242 (finalize_all_subwindow_instances): walk windows unmapping and
6243 finalizing subwindows.
6244 (unmap_subwindow_instance_cache_mapper): moved from
6245 window.c. Allow finalization as well as unmapping.
6247 * gui.c (gui_item_list_find_selected): new function.
6249 * gui.h (gui_item_list_find_selected): declare.
6251 * glyphs-x.c (x_tab_control_redisplay): pick tab
6252 explicitly. Re-code to use gui_item_equal_sans_selected and
6253 gui_item_list_find_selected.
6255 * glyphs-x.h: add lwlib-utils.h
6257 * buffer.c (Frecord_buffer): undo previous change.
6259 2000-08-09 Vin Shelton <acs@xemacs.org>
6261 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6262 possible. Create temporary files more securely. The patch was
6263 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6264 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6265 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6268 2000-08-07 Ben Wing <ben@xemacs.org>
6270 * getloadavg.c: remove duplicate (and windows-breaking)
6271 includes of fcntl.h and sys/file.h.
6273 * nt.c: remove duplicate getloadavg() definition.
6275 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6278 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6280 * eval.c (function_argcount): If function needs to be autoloaded
6281 actually use the loaded definition.
6284 2000-08-05 Ben Wing <ben@xemacs.org>
6286 * getloadavg.c: add prototype for getloadavg(). remove
6287 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6288 of the code). remove duplicate header includes.
6290 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6292 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6293 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6294 useful load average.
6296 * alloc.c (reinit_alloc_once_early): removed references to
6297 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6298 the lisp vars are the only things referencing the malloc_sbrk_*
6299 vars, and they were already if 0'd out. these vars only exist
6300 in the older malloc.c, which is basically unused, and they're
6301 only for informational purposes.
6303 * m\*.h: removed useless VIRT_ADDR_VARIES.
6305 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6307 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6309 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6310 color if the image is a mono pixmap.
6312 2000-07-30 Ben Wing <ben@xemacs.org>
6314 * Makefile.in.in (release):
6317 * buffer.c (directory_is_current_directory):
6318 * dired-msw.c (mswindows_get_files):
6320 * dired.c (Fdirectory_files):
6321 * dired.c (file_name_completion_stat):
6322 * dired.c (Ffile_attributes):
6323 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6324 preprocessor tricks, to avoid problems on some machines
6327 * callproc.c (egetenv): GC docs.
6330 * console-msw.h (struct mswindows_dialog_id):
6331 * lrecord.h (lrecord_type):
6332 New object for use with MSW dialogs.
6334 * console.h (struct console_methods):
6335 New enable/disable frame methods, for proper modal dialogs.
6337 * device-msw.c (msprinter_default_printer): Fix to follow
6338 proper Mule conventions.
6341 * device-msw.c (signal_open_printer_error):
6342 * device-msw.c (msprinter_init_device):
6343 * device-msw.c (ensure_not_printing):
6344 * device-msw.c (plist_get_margin):
6345 * device-msw.c (Fmsprinter_select_settings):
6346 * device-msw.c (finalize_devmode):
6347 * device-msw.c (Fmsprinter_settings_despecialize):
6348 * device-msw.c (signal_enum_priner_error):
6349 * extents.c (decode_extent):
6350 * extents.c (decode_map_extents_flags):
6351 * extents.c (decode_extent_at_flag):
6352 * extents.c (Fextent_at):
6353 * extents.c (Fextents_at):
6354 * extents.c (symbol_to_glyph_layout):
6355 [[[[2]]]] Use structured errors.
6358 * dialog-msw.c (mswindows_is_dialog_msg):
6359 * dialog-msw.c (mark_mswindows_dialog_id):
6360 * dialog-msw.c (dialog_proc):
6361 * dialog-msw.c (handle_question_dialog_box):
6362 * dialog-msw.c (syms_of_dialog_mswindows):
6363 Define new object to clean up marking; use it as a dialog identifier.
6364 Call new delete-dialog-box-hook.
6366 * dialog-x.c (dbox_selection_callback):
6367 * dialog-x.c (dbox_descriptor_to_widget_value):
6368 * dialog-x.c (x_make_dialog_box_internal):
6369 Call new delete-dialog-box-hook.
6373 * dialog.c (syms_of_dialog):
6374 * dialog.c (vars_of_dialog):
6375 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6378 * eval.c (signal_call_debugger):
6379 when noninteractive, output stack traces on the console instead
6380 of in a (never-seen) buffer.
6382 * eval.c (signal_type_error):
6383 * eval.c (invalid_argument_2):
6385 new funs for use w/structured errors.
6388 * event-Xt.c (x_to_emacs_keysym):
6389 * event-Xt.c (describe_event):
6390 * event-Xt.c (emacs_Xt_event_handler):
6391 * event-Xt.c (vars_of_event_Xt):
6393 * event-msw.c (mswindows_wnd_proc):
6394 * event-msw.c (vars_of_event_mswindows):
6395 rename {x,mswindows}-debug-events to debug-{}-events for
6396 consistency with other debug-foo variables.
6399 document next-event more clearly.
6401 * fileio.c (Ffile_name_directory):
6402 * fileio.c (Ffile_name_nondirectory):
6403 * fileio.c (Funhandled_file_name_directory):
6404 * fileio.c (file_name_as_directory):
6405 * fileio.c (Ffile_name_as_directory):
6406 * fileio.c (directory_file_name):
6407 * fileio.c (Fdirectory_file_name):
6408 * fileio.c (Fmake_temp_name):
6409 * fileio.c (Ffile_truename):
6410 * fileio.c (Fsubstitute_in_file_name):
6411 * fileio.c (expand_and_dir_to_file):
6412 * fileio.c (barf_or_query_if_file_exists):
6413 * fileio.c (check_executable):
6414 * fileio.c (Ffile_exists_p):
6415 * fileio.c (Ffile_writable_p):
6416 * fileio.c (Ffile_directory_p):
6417 * fileio.c (Ffile_regular_p):
6418 * fileio.c (Ffile_modes):
6419 * fileio.c (Ffile_newer_than_file_p):
6420 * fileio.c (Fverify_visited_file_modtime):
6421 * fileio.c (Fset_visited_file_modtime):
6422 * fileio.c (auto_save_1):
6427 * frame-msw.c (mswindows_init_frame_1):
6428 * frame-msw.c (mswindows_enable_frame):
6429 * frame-msw.c (error_frame_unsizable):
6430 * frame-msw.c (msprinter_init_frame_1):
6431 * frame-msw.c (msprinter_init_frame_3):
6432 * frame-msw.c (console_type_create_frame_mswindows):
6434 implement new enable/disable frame methods.
6437 * frame-x.c (x_enable_frame):
6438 * frame-x.c (console_type_create_frame_x):
6439 implement new enable/disable frame methods.
6442 * frame.c (Fdisable_frame):
6443 * frame.c (syms_of_frame):
6444 * frame.h (struct frame):
6445 implement new enable/disable frame methods/functions.
6450 * glyphs-msw.c (mswindows_widget_instantiate):
6451 comment that initial-focus should be implemented.
6454 * glyphs-widget.c (check_valid_instantiator):
6455 * glyphs-widget.c (check_valid_orientation):
6456 * glyphs-widget.c (check_valid_tab_orientation):
6457 * glyphs-widget.c (check_valid_justification):
6458 * glyphs-widget.c (check_valid_border):
6459 * glyphs-widget.c (check_valid_callback):
6460 * glyphs-widget.c (check_valid_int_or_function):
6461 * glyphs-widget.c (check_valid_string_or_vector):
6462 * glyphs-widget.c (check_valid_item_list_1):
6463 * glyphs-widget.c (widget_validate):
6464 * glyphs-widget.c (combo_box_validate):
6465 * glyphs-widget.c (widget_instantiate):
6466 * glyphs-widget.c (syms_of_glyphs_widget):
6467 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6468 * glyphs-widget.c (image_instantiator_combo_box):
6469 * glyphs-widget.c (image_instantiator_scrollbar):
6470 * glyphs-widget.c (image_instantiator_tab_control):
6471 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6473 support (unimplemented) keyword initial-focus.
6474 reindent long macros.
6476 * glyphs-x.c (x_redisplay_widget):
6477 * glyphs-x.c (x_button_instantiate):
6478 * glyphs-x.c (x_button_redisplay):
6479 * glyphs-x.c (x_progress_gauge_instantiate):
6480 * glyphs-x.c (x_edit_field_instantiate):
6481 * glyphs-x.c (x_combo_box_instantiate):
6482 * glyphs-x.c (x_tab_control_instantiate):
6483 * glyphs-x.c (x_label_instantiate):
6485 * gui-x.c (button_item_to_widget_value):
6486 * gui-x.c (gui_items_to_widget_values_1):
6487 * gui-x.c (gui_item_children_to_widget_values):
6488 * gui-x.c (gui_items_to_widget_values):
6490 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6491 add new flag to gui-parsing routines to indicate whether
6492 accelerator specs should be supported.
6494 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6496 * glyphs.h (struct Lisp_Image_Instance):
6497 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6498 add initial-focus flag.
6501 * gui.c (syms_of_gui):
6502 * gui.c (vars_of_gui):
6503 clean up menu-no-selection-hook.
6506 support delete-dialog-box-hook.
6508 * lread.c (Fload_internal):
6509 * lread.c (locate_file_in_directory_mapper):
6513 * lrecord.h (struct toolbar_button):
6514 * lrecord.h (syms_of_toolbar):
6515 document how to create a new object.
6517 * menubar-msw.c (mswindows_char_is_accelerator):
6518 may be called on frames w/o menus.
6520 * menubar.c (vars_of_menubar):
6521 clean up :filter docs.
6528 * process-nt.c (validate_signal_number):
6529 * process-nt.c (signal_cannot_launch):
6530 * process-nt.c (nt_create_process):
6531 * process-nt.c (nt_send_process):
6532 * process-nt.c (nt_kill_child_process):
6533 * process-nt.c (nt_open_network_stream):
6534 * process-nt.c (syms_of_process_nt):
6536 delete quote-handling. call new lisp code that does it better.
6538 * process-unix.c (connect_to_file_descriptor):
6539 * process-unix.c (allocate_pty):
6540 * process-unix.c (unix_send_process):
6541 * process-unix.c (unix_kill_child_process):
6542 * process-unix.c (unix_open_network_stream):
6543 * process-unix.c (unix_open_multicast_group):
6547 * process.c (Fstart_process_internal):
6548 (2). need to canonicalize process path even if absolute.
6550 * select-msw.c (symbol_to_ms_cf):
6551 * select-msw.c (ms_cf_to_symbol):
6552 * select-msw.c (cf_is_autofreed):
6553 * select-msw.c (mswindows_destroy_selection):
6555 * select.c (syms_of_select):
6557 support dibv5, fix bugs. (from Mike Alexander)
6559 * select.c (Fget_selection_internal):
6560 * select.c (select_convert_out):
6563 * sysdep.c (xemacs_stat):
6568 but keep original stat() here because we provide encapsulation
6572 * sysfile.h (fstat):
6573 remove stat garbage.
6577 don't include tchar.h. it's inappropriate because it makes
6578 compile-time distinctions when we want runtime distinctions.
6579 (we provide our own tchar replacements)
6582 use default object printer for toolbar-button.
6585 make sure we don't encapsulate.
6587 * window.c (vars_of_window):
6588 emphasize that temp-buffer-show-hook is obsolete.
6590 2000-08-05 Martin Buchholz <martin@xemacs.org>
6592 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6593 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6595 * events.c (Fevent_timestamp_lessp):
6596 Not 64-bit clean. Use EMACS_INT, not int.
6598 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6600 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6601 unsigned int and changed the last enum to
6602 lrecord_type_last_built_in_type.
6603 (lrecord_implementations_table): changed prototype to know how
6604 long the array is supposed to be.
6605 (lrecord_type_count): new unsigned int to keep track of the
6606 current number of lisp lrecord types.
6607 (DEFINE_EXTERNAL_LRECORD):
6608 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6609 dynamic-modules to declare new lisp types. They are the same
6610 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6611 int for each new type, and increment lrecord_type_count by 1.
6613 * alloc.c (lrecord_implementations_table): Changed to reference
6614 lrecord_type_last_built_in_type for the size of the array.
6615 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6617 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6619 * glyphs.h (check_valid_item_list): Renamed from
6620 check_valid_item_list_1.
6622 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6624 * select.c (Qselect_coerce): New.
6625 * select.c (Vselection_coercion_alist): New.
6626 * select.c (syms_of_select): Declare.
6627 * select.c (get-selection-internal): Use it.
6628 Use the new select-coerce functionality.
6630 * select.c (select_coerce): New.
6631 * select.h (select_coerce): Declare.
6632 New function to coerce one type of data into another.
6634 2000-08-03 Martin Buchholz <martin@xemacs.org>
6636 * callproc.c (Fcall_process_internal):
6637 (Fcall_process_internal):
6638 * process-unix.c (unix_create_process):
6639 Save and restore the value of errno, so that error messages are accurate.
6641 2000-08-01 Martin Buchholz <martin@xemacs.org>
6643 * elhash.c (print_hash_table):
6644 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6645 Prettify docstrings and indentation.
6647 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6649 * window.c (Fwindow_pixel_edges): Subtract frame border and
6652 2000-07-31 Andy Piper <andy@xemacs.org>
6654 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6655 will acknowledge the change.
6657 * glyphs.h: declare tab_control_order_only_changed.
6659 * glyphs-x.c (x_tab_control_redisplay): use
6660 tab_control_order_only_changed.
6662 * glyphs-widget.c (tab_control_order_only_changed): new function.
6664 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6665 tab_control_order_only_changed.
6667 * gui.c (gui_item_equal_sans_selected): new function.
6668 (gui_item_equal): use it.
6670 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6671 :properties in favor of :items..
6673 * glyphs-widget.c (check_valid_item_list): rename from
6674 check_valid_item_list_1.
6675 (check_valid_item_list_1): renamed.
6676 (combo_box_validate): deprecate :properties in favor of :items.
6677 (widget_instantiate): ditto.
6678 (tab_control_update): ditto.
6679 (image_instantiator_combo_box): ditto.
6680 (image_instantiator_tree_view): ditto.
6681 (image_instantiator_tab_control): ditto.
6682 (layout_post_instantiate): remove dead code.
6684 * print.c (debug_print_no_newline): only write to debugger if in
6687 * elhash.c (Fmake_hash_table): update doc string.
6689 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6690 messages whilst in GC. This at least stops XEmacs crashing but has
6691 the potential for wierd behaviour.
6693 2000-07-31 Martin Buchholz <martin@xemacs.org>
6696 Make existence of s&m files optional.
6698 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6699 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6700 * s/gnu.h: Remove HAVE_GETLOADAVG.
6701 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6702 * s/sol2.h: Remove HAVE_GETLOADAVG.
6703 * lisp.h: Remove getloadavg() declaration.
6705 Include <sys/loadavg.h> if available.
6706 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6707 * config.h.in: Group together getloadavg()-related macros.
6708 Use only configure-time tests to detect getloadavg().
6710 2000-07-30 Martin Buchholz <martin@xemacs.org>
6712 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6714 2000-07-25 Andy Piper <andy@xemacs.org>
6716 * syswindows.h: add tchar.h for native builds.
6718 * frame.c (syms_of_frame): remove set-glyph-image.
6720 * general-slots.h: add Qset_glyph_image.
6722 * glyphs-widget.c (layout_update): add domain arg to
6724 (syms_of_glyphs_widget): remove set-glyph-image.
6726 2000-07-23 Ben Wing <ben@xemacs.org>
6728 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6731 2000-07-22 Andy Piper <andy@xemacs.org>
6733 * symsinit.h: add syms_of_win32().
6735 * gui-msw.c (syms_of_gui_mswindows): remove
6736 Fmswindows_shell_execute.
6737 (Fmswindows_shell_execute): moved to win32.c.
6739 * emacs.c (main_1): add syms_of_win32 ().
6741 * win32.c (init_potentially_nonexistent_functions): rewrite in
6742 compiler-friendly terms.
6743 (Fmswindows_shell_execute): move here from gui-msw.c.
6744 (syms_of_win32): new.
6746 * device-msw.c (Fmswindows_printer_list): clean up args to
6748 Don't include tchar under cygwin or mingw.
6749 (msprinter_default_printer): make cygwin-friendly.
6751 2000-07-21 Andy Piper <andy@xemacs.org>
6753 * glyphs-widget.c (image_instantiator_tree_view): use tab
6754 control's update function.
6755 (layout_property): new function. Retrieve items.
6757 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6758 function. Re-populate the tree view from the pending items.
6760 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6761 is designated the parent if the domain is an image instance. This
6762 is needed so that dirtiness can be cascade up the hierarchy and
6763 thus for layout children to be redisplayed correctly.
6764 (allocate_image_instance): rename glyph -> parent.
6766 * redisplay.h: change redisplay_output_layout signature.
6768 * redisplay-msw.c (mswindows_output_display_block): use domain
6771 * redisplay-x.c (x_output_display_block): use domain arg.
6773 2000-07-10 Andy Piper <andy@xemacs.org>
6775 * window.c (Fset_window_configuration): add comment.
6777 * redisplay-output.c (compare_runes):
6778 (redisplay_output_subwindow): redisplay rather than update subwindow.
6779 (redisplay_output_layout): ditto.
6781 * redisplay-msw.c (mswindows_frame_output_end):
6782 (mswindows_frame_output_end): make defer window pos optional.
6784 * lisp.h: add Flast.
6786 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6787 normalize method. Change update method to be for changed
6788 instantiators. Add redisplay method. Change signature of layout
6790 (struct Lisp_Image_Instance): add instantiator.
6791 (IMAGE_INSTANCE_INSTANTIATOR): new.
6792 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6793 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6794 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6797 (find_instantiator_differences): new function.
6798 (Fset_instantiator_property): new convenience function.
6799 (check_image_instance_structure): strictly check for vector
6801 (normalize_image_instantiator): make non-static.
6802 (instantiate_image_instantiator): pass on dest_mask and use new
6803 signatures for image_instance_layout and friends.
6804 (mark_image_instance): mark the instantiator. Mark the subwindow
6805 face not the widget face.
6806 (image_instance_equal): add instantiator.
6807 (image_instance_hash): ditto.
6808 (allocate_image_instance): ditto.
6809 (Fset_image_instance_property): removed.
6810 (Fimage_instance_file_name): ditto.
6811 (Fcolorize_image_instance): ditto.
6812 (image_instance_layout): add offsets to be set.
6813 (update_image_instance): new function. update an image instance
6814 from its changed instantiator.
6815 (inherit_normalize): add dest_mask.
6816 (xbm_normalize): ditto.
6817 (xface_normalize): ditto.
6818 (xpm_normalize): ditto.
6819 (text_update): set_property -> update.
6820 (image_instantiate): use the glyph identity as a hash key, not the
6822 (glyph_width): use new image_instance_layout signature.
6823 (glyph_ascent): ditto.
6824 (glyph_descent): ditto.
6825 (glyph_height): ditto.
6826 (glyph_query_geometry): ressurrect.
6827 (glyph_layout): ditto.
6828 (redisplay_subwindow): update -> redisplay.
6829 (syms_of_glyphs): add Fset_instantiator_property.
6830 (image_instantiator_format_create): set_property -> update.
6833 (autodetect_normalize): add dest_maks to signature.
6834 (x_redisplay_subwindow): update -> redisplay.
6835 (x_redisplay_widget): ditto.
6836 (x_button_redisplay): ditto.
6837 (x_progress_gauge_redisplay): ditto.
6838 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6840 (console_type_create_glyphs_x): update -> redisplay.
6841 (image_instantiator_format_create_glyphs_x): ditto.
6844 (check_valid_instantiator): disallow glyphs in the instantiator,
6845 they must now be vectors.
6846 (check_valid_instantiator_list): ditto.
6847 (glyph_instantiator_to_glyph): use internal symbol rather than
6849 (widget_update): renamed from widget_set_property. Call cascaded
6851 (redisplay_widget): renamed from update_widget.
6852 (widget_layout): image_instance_layout now takes position as well
6854 (widget_normalize): ditto.
6855 (widget_instantiate): ditto.
6856 (tab_control_query_geometry) ditto.:
6857 (tab_control_update): renamed from tab_control_set_property.
6858 (progress_gauge_update): set_property -> update.
6859 (layout_normalize): rewrite so that child instantiators are
6861 (layout_update): new function. Create glyphs from the normalized
6862 children and cope with any other layout keywords. We do not
6863 instantiate children here that will be take care of by
6864 redisplay_output_layout.
6865 (layout_instantiate): call layout_update and not much else.
6866 (layout_post_instantiate): not sure whether this is needed
6868 (layout_query_geometry): query glyph geometry rather than
6869 image_instance geometry.
6870 (layout_layout): set offsets from pass in parameters. Use glyph
6871 geometry and layout functions rather than image instance ones.
6872 (native_layout_layout): ditto.
6873 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6874 (image_instantiator_widget): set_property -> update.
6875 (image_instantiator_buttons): ditto.
6876 (image_instantiator_progress_guage): ditto.
6877 (image_instantiator_tab_control): ditto.
6878 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6879 (image_instantiator_layout): add update method.
6881 * glyphs-msw.c (bmp_normalize):
6882 (mswindows_resource_normalize): add dest_mask so that it can be
6883 proprogated by layout_normalize.
6884 (begin_defer_window_pos): make optional because it may not be the
6885 right thing to do and it introduces differences with X.
6886 (mswindows_unmap_subwindow): ditto.
6887 (mswindows_map_subwindow): ditto.
6888 (mswindows_redisplay_subwindow): renamed from
6889 mswindows_update_subwindow.
6890 (mswindows_redisplay_widget): ditto.
6891 (mswindows_button_redisplay): renamed from
6892 mswindows_button_update. Update is now what the instantiation
6893 function does for a changed instantiator.
6894 (mswindows_progress_gauge_instantiate): set the progress value
6895 here if appropriate.
6896 (mswindows_tab_control_redisplay): cope with re-ordering of the
6897 members of the tab widget by simply selecting the new top
6898 widget. This makes things appear ok if you click on a tab.
6899 (mswindows_combo_box_instantiate): image_instance_layout now takes
6900 position as well as size.
6901 (mswindows_progress_gauge_redisplay): renamed from
6902 mswindows_progress_gauge_update.
6903 (console_type_create_glyphs_mswindows): fix update -> redisplay.
6904 (image_instantiator_format_create_glyphs_mswindows): ditto.
6906 * glyphs-eimage.c (jpeg_normalize):
6909 (tiff_normalize): add dest_mask so that it can be proprogated by
6914 (hash_table_weakness_validate):
6915 (decode_hash_table_weakness):
6916 (Fhash_table_weakness):
6918 (syms_of_elhash): use Ben's naming scheme for hashtable types..
6920 * console.h (struct console_methods): move update_* to
6923 2000-07-20 Ben Wing <ben@xemacs.org>
6925 * *.[ch] (XSETOBJ): remove unused middle argument.
6926 lisp-disunion.h: correct wrap_object() to one argument.
6928 2000-07-15 Ben Wing <ben@xemacs.org>
6931 * s/cygwin32.h (CYGWIN_CONV_PATH):
6932 Add missing logb prototype for v1.1.
6933 Use post-b20 names and alias to pre-b20 names when pre-b20.
6935 * s/windowsnt.h: [5].
6937 2000-07-15 Ben Wing <ben@xemacs.org>
6939 * Makefile.in.in (x_objs):
6940 * Makefile.in.in (sheap_objs):
6941 * Makefile.in.in (objs):
6942 added win32.o, cosmetic cleanups.
6944 * alloc.c (Fmake_byte_code):
6945 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6946 etc. macros which declare their own args now.
6948 * alloc.c (syms_of_alloc):
6949 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6952 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6954 * buffer.c (Fget_file_buffer):
6955 Fixed GCPRO problem.
6957 * buffer.c (get_truename_buffer):
6958 Fixed comment about GC checking.
6960 * buffer.c (syms_of_buffer):
6961 Undeclared those dedicated frame funs.
6965 Define convenience macros for internal/external conversions.
6966 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6967 and Qenvironment_variable_encoding for cleaner code.
6970 Remove dedicated-frame; in lisp.
6972 * bytecode.c (funcall_compiled_function):
6975 * bytecode.c (syms_of_bytecode):
6979 * console-msw.c (mswindows_show_console): Rewrote.
6981 * console-msw.c (Fmswindows_debugging_output): New.
6982 Sends to OutputDebugString (special MSWin debugger interface).
6984 * console-msw.c (Fmswindows_message_box):
6985 Fixed stupid bugs so it works when called from kill-emacs.
6987 * console-msw.c (syms_of_console_mswindows):
6988 Declare Fmswindows_debugging_output.
6991 New MSWin prototypes.
6993 * console-msw.h (struct mswindows_frame):
6994 New entry last-click-mods for improved button-modifier support.
6996 * console-msw.h (FRAME_MSWINDOWS_POPUP):
6997 New struct entry `popup' with corresponding accessor.
7000 * console-x.c (split_up_display_spec):
7001 * console-x.c (get_display_arg_connection):
7002 * console-x.c (x_semi_canonicalize_console_connection):
7003 * console-x.c (x_canonicalize_device_connection):
7004 [[[6]]]: Change char to more specific type.
7005 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7007 * console-x.c (x_semi_canonicalize_console_connection):
7008 * console-x.c (x_canonicalize_device_connection):
7009 [[[9]]]: Fix up error signalling to use new structured error system.
7012 [[[4]]]: Define codesys aliases:
7013 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7014 Qx_color_name_encoding, Qx_display_name_encoding.
7016 * console.h (struct console_methods):
7017 New method make_dialog_box_internal supersedes older
7018 popup_dialog_box method.
7021 Define many new errors, part of new structured errors.
7023 * data.c (init_errors_once_early):
7024 * data.c (syms_of_data):
7027 * device-msw.c (mswindows_init_device):
7028 [[[5]]]: Cleanup to support NT 3.51.
7030 * device-msw.c (decode_devmode): Cleanup.
7032 * device-msw.c (mswindows_handle_print_setup_dialog_box):
7033 * device-msw.c (mswindows_handle_print_dialog_box):
7034 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7035 * device-msw.c (syms_of_device_mswindows):
7036 Delete the dialog box primitives recently introduced by Kirill and
7037 instead interface to general dialog box interface.
7040 * device-x.c (compute_x_app_name):
7041 * device-x.c (x_init_device):
7042 * device-x.c (Fx_valid_keysym_name_p):
7043 * device-x.c (Fx_set_font_path):
7047 * device.h (wrap_device): New.
7048 First of its kind; meant to replace XSETDEVICE.
7050 * dialog-msw.c: Many file-dialog symbols.
7052 * dialog-msw.c (mswindows_register_popup_frame): New.
7053 * dialog-msw.c (mswindows_is_dialog_msg): New.
7054 For supporting kbd traversal in dialog boxes.
7056 * dialog-msw.c (dialog_proc):
7057 Support hitting ESC in dialogs.
7059 * dialog-msw.c (struct):
7060 Common dialog box errors.
7062 * dialog-msw.c (handle_file_dialog_box): New.
7063 Add file dialog code.
7065 * dialog-msw.c (handle_question_dialog_box):
7066 Redo existing code to support new question dialog syntax.
7068 * dialog-msw.c (console_type_create_dialog_mswindows):
7069 We support new dialog console method.
7071 * dialog-msw.c (syms_of_dialog_mswindows):
7072 * dialog-msw.c (vars_of_dialog_mswindows):
7073 New file dialog symbols, vars.
7076 * dialog-x.c (maybe_run_dbox_text_callback):
7077 * dialog-x.c (dbox_descriptor_to_widget_value):
7078 * dialog-x.c (x_make_dialog_box_internal):
7079 * dialog-x.c (console_type_create_dialog_x):
7080 Mule-ize entire file.
7081 Redo to support question dialog syntax.
7085 * dialog.c (Fmake_dialog_box_internal):
7086 * dialog.c (syms_of_dialog):
7087 Kill old popup-dialog-box, replace with new primitive.
7088 Just call device method or signal error.
7090 * eldap.c (Fldap_open):
7091 * eldap.c (Fldap_search_basic):
7092 * eldap.c (Fldap_add):
7093 * eldap.c (Fldap_modify):
7098 * emacs.c (make_arg_list_1):
7099 * emacs.c (make_arg_list):
7100 Mule-ize call to dll_init().
7104 * emacs.c (make_argc_argv):
7105 * emacs.c (free_argc_argv):
7106 * emacs.c (init_cmdargs):
7108 * emacs.c (Fkill_emacs):
7109 * emacs.c (Fdump_emacs):
7110 Update comments about what can be used in syms_* etc.
7111 Call init_win32() when necessary.
7112 Fix up MS Win dialog box in kill-buffer to actually work right.
7123 * eval.c (condition_case_3):
7125 * eval.c (function_argcount):
7126 * eval.c (funcall_lambda):
7129 * eval.c (type_error): New.
7130 * eval.c (maybe_type_error): New.
7131 * eval.c (continuable_type_error): New.
7132 * eval.c (maybe_continuable_type_error): New.
7133 * eval.c (type_error_with_frob): New.
7134 * eval.c (maybe_type_error_with_frob): New.
7135 * eval.c (continuable_type_error_with_frob): New.
7136 * eval.c (maybe_continuable_type_error_with_frob): New.
7137 New functions for use with structured errors.
7140 * event-Xt.c (x_event_to_emacs_event):
7141 Buttons are now modifiers too.
7143 * event-Xt.c (emacs_Xt_current_event_timestamp):
7144 Implement new event method.
7145 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7148 * event-msw.c (ntpipe_shove_writer): [5].
7149 * event-msw.c (mswindows_enqueue_mouse_button_event):
7150 * event-msw.c (mswindows_drain_windows_queue):
7151 * event-msw.c (mswindows_wnd_proc): [7].
7152 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7153 * event-msw.c (mswindows_modifier_state):
7154 Throughout: support new button modifiers.
7156 * event-msw.c (emacs_mswindows_current_event_timestamp):
7157 Implement new event method.
7158 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7161 * event-stream.c (event_stream_current_event_timestamp): New.
7162 * event-stream.c (maybe_kbd_translate): New functionality.
7163 * event-stream.c (vars_of_event_stream):
7164 Document new kbd-translate-table functionality.
7166 * event-stream.c (Fcurrent_event_timestamp): New.
7167 New primitive for use in fabricated events.
7168 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7170 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7173 * events.c (Fmake_event):
7174 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7178 * events.c (format_event_object): fix gcc warnings.
7180 * events.c (Fevent_timestamp): Document new primitives.
7182 * events.c (TIMESTAMP_HALFSPACE): New.
7184 * events.c (Fevent_timestamp_lessp): New. New primitive for
7185 comparing timestamps correctly (half-space algorithm).
7187 * events.c (Fevent_modifier_bits): Doc fix.
7189 * events.c (Fevent_modifiers): Major doc addition.
7190 * events.c (event_x_y_pixel_internal): Typo fix.
7191 * events.c (syms_of_events): Declare new primitives.
7194 Update long comment for button modifiers, timestamps.
7196 * events.h (struct event_stream):
7197 New current_event_timestamp method.
7200 * extents.c (extent_in_region_p):
7201 * extents.c (decode_extent):
7202 * extents.c (Fset_extent_parent):
7203 * extents.c (decode_map_extents_flags):
7207 * extents.c (struct extent_at_arg):
7208 * extents.c (decode_extent_at_flag):
7209 * extents.c (extent_at_mapper):
7210 * extents.c (extent_at_bytind):
7211 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7212 * extents.c (Fextents_at): New primitive. [9].
7213 * extents.c (symbol_to_glyph_layout): [9].
7214 Support new primitive `extents-at'.
7217 * extents.c (get_text_property_bytind):
7218 extent_at_bytind has another arg.
7221 * extents.c (syms_of_extents): New primitive.
7223 * file-coding.c (Fmake_coding_system): [1].
7224 * file-coding.c (subsidiary_coding_system): fix gcc warning
7225 * file-coding.c (syms_of_file_coding): [2].
7227 * fileio.c (Fexpand_file_name):
7228 * fileio.c (Fsysnetunam):
7229 * fileio.c (Ffile_exists_p):
7230 * fileio.c (Ffile_executable_p):
7231 * fileio.c (Fverify_visited_file_modtime):
7234 * fileio.c (syms_of_fileio): [2].
7236 * filelock.c (lock_file_1):
7237 * filelock.c (current_lock_owner):
7238 * filelock.c (lock_if_free):
7239 * filelock.c (lock_file):
7240 * filelock.c (unlock_file):
7243 * fns.c (concat): Fix gcc warning.
7246 * fns.c (Fold_member):
7248 * fns.c (Fold_memq):
7249 * fns.c (memq_no_quit):
7251 * fns.c (Fold_assoc):
7253 * fns.c (Fold_assq):
7254 * fns.c (assq_no_quit):
7256 * fns.c (Fold_rassoc):
7258 * fns.c (Fold_rassq):
7259 * fns.c (rassq_no_quit):
7261 * fns.c (Fold_delete):
7263 * fns.c (Fold_delq):
7264 * fns.c (delq_no_quit):
7265 * fns.c (Fremassoc):
7267 * fns.c (remassq_no_quit):
7268 * fns.c (Fremrassoc):
7269 * fns.c (Fremrassq):
7270 * fns.c (remrassq_no_quit):
7275 * frame-msw.c (mswindows_init_frame_1):
7276 * frame-msw.c (mswindows_delete_frame):
7277 Register popups with dialog code so keyboard traversing works.
7279 * frame-tty.c (tty_raise_frame_no_select): [1].
7282 * frame-x.c (x_set_frame_text_value):
7283 * frame-x.c (x_set_frame_properties):
7284 * frame-x.c (x_create_widgets):
7288 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7290 * frame.h (wrap_frame): New.
7291 Macro like wrap_device.
7294 * general.c (SYMBOL):
7295 * general.c (syms_of_general):
7296 Major reorg. This is now just a wrapper and symbols themselves
7297 are listed in general-slots.h.
7299 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7300 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7302 * glyphs-msw.c (mswindows_native_layout_instantiate):
7303 Add DS_CONTROL so keyboard traversal will work.
7306 * glyphs-widget.c (syms_of_glyphs_widget):
7307 Move some symbols to general-slots.h.
7310 * glyphs-x.c (xbm_instantiate_1):
7311 * glyphs-x.c (x_xbm_instantiate):
7312 * glyphs-x.c (x_xface_instantiate):
7313 * glyphs-x.c (autodetect_instantiate):
7314 * glyphs-x.c (cursor_font_instantiate):
7315 * glyphs-x.c (x_update_widget):
7316 * glyphs-x.c (x_widget_instantiate):
7317 * glyphs.c (bitmap_to_lisp_data):
7318 * glyphs.c (pixmap_to_lisp_data):
7321 * glyphs.c (syms_of_glyphs):
7325 * gui-x.c (print_widget_value):
7326 * gui-x.c (menu_separator_style_and_to_external):
7327 * gui-x.c (add_accel_and_to_external):
7328 * gui-x.c (button_item_to_widget_value):
7329 * gui-x.c (gui_items_to_widget_values_1):
7330 * gui-x.c (gui_items_to_widget_values):
7331 * gui-x.c (syms_of_gui_x):
7332 * gui-x.c (vars_of_gui_x):
7333 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7337 Muleize, prototype changes matching gui-x.c.
7340 * gui.c (separator_string_p):
7341 * gui.c (gui_item_add_keyval_pair):
7342 * gui.c (make_gui_item_from_keywords_internal):
7343 * gui.c (signal_too_long_error):
7344 * gui.c (parse_gui_item_tree_item):
7345 * gui.c (syms_of_gui):
7346 * gui.c (vars_of_gui):
7348 menu-no-selection-hook moved here (used by MSWin).
7349 Move some symbols to general-slots.h.
7353 * insdel.c (get_buffer_pos_char):
7354 * insdel.c (get_buffer_range_char):
7357 * keymap.c (keymap_lookup_directly):
7358 * keymap.c (keymap_store):
7359 * keymap.c (ensure_meta_prefix_char_keymapp):
7360 * keymap.c (describe_map):
7362 Support new button modifiers.
7364 * lisp-disunion.h (wrap_object):
7365 * lisp-disunion.h (XSETOBJ):
7366 Rename make_obj to wrap_object.
7369 * lisp-union.h (make_int):
7370 * lisp-union.h (make_char):
7371 Support wrap_object.
7374 * lisp.h (LIST_LOOP):
7375 * lisp.h (EXTERNAL_LIST_LOOP):
7376 * lisp.h (LIST_LOOP_2):
7377 * lisp.h (EXTERNAL_LIST_LOOP_1):
7378 * lisp.h (EXTERNAL_LIST_LOOP_2):
7379 * lisp.h (EXTERNAL_LIST_LOOP_3):
7380 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7381 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7382 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7383 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7384 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7385 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7386 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7387 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7388 * lisp.h (struct Lisp_Symbol):
7389 * lisp.h (maybe_continuable_error_with_frob):
7390 Fix up section comments.
7391 Add new types for char to indicate usage.
7392 Delete symbols auto-generated from general-slots.h.
7393 Add prototypes for structured error functions.
7394 Add long comments describing looping macros and change interface
7395 so that lvalues are automatically declared.
7396 Add NO_DECLARE macro in case callers want to declare lvalues
7399 * lread.c (read_syntax_error):
7400 * lread.c (continuable_read_syntax_error):
7401 * lread.c (read_structure):
7402 * lread.c (sequence_reader):
7403 * lread.c (read_list_conser):
7404 * lread.c (read_compiled_function):
7405 Rename syntax_error and continuable_syntax_error to avoid clash
7406 with same-named structured error functions.
7408 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7409 * menubar-msw.c (populate_menu_add_item):
7410 * menubar-msw.c (populate_or_checksum_helper):
7415 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7416 Mule-ize whole file.
7418 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7420 * mule-charset.c (Fmake_charset):
7421 * mule-wnnfns.c (Fwnn_set_param):
7424 * ntproc.c (create_child):
7425 * ntproc.c (Fwin32_set_current_locale):
7426 Add comments portending doom.
7429 * objects-msw.c (old_font_enum_callback_2):
7430 * objects-msw.c (font_enum_callback_1):
7431 * objects-msw.c (mswindows_enumerate_fonts):
7435 * objects-x.c (allocate_nearest_color):
7436 * objects-x.c (x_parse_nearest_color):
7437 * objects-x.c (x_initialize_color_instance):
7438 * objects-x.c (x_print_color_instance):
7439 * objects-x.c (x_finalize_color_instance):
7440 * objects-x.c (x_valid_color_name_p):
7441 * objects-x.c (x_initialize_font_instance):
7442 * objects-x.c (x_print_font_instance):
7443 * objects-x.c (valid_x_font_name_p):
7444 * objects-x.c (truename_via_FONT_prop):
7445 * objects-x.c (truename_via_random_props):
7446 * objects-x.c (truename_via_XListFonts):
7447 * objects-x.c (x_font_truename):
7448 * objects-x.c (x_font_instance_truename):
7449 * objects-x.c (x_font_instance_properties):
7450 * objects-x.c (x_list_fonts):
7451 * objects-x.c (x_find_charset_font):
7452 Mule-ize entire file.
7459 * print.c (std_handle_out_external):
7460 * print.c (debug_print_no_newline):
7461 * print.c (syms_of_print):
7462 Output to all debugger kinds in debug-print.
7463 Fix console-output code under MSWin to actually work.
7465 * process-nt.c (send_signal):
7466 * process-nt.c (nt_create_process):
7467 Use newer Unicode macros.
7469 * process-unix.c (unix_create_process):
7470 * process-unix.c (unix_canonicalize_host_name):
7471 * process-unix.c (unix_open_network_stream):
7477 * search.c (syms_of_search):
7480 * select-msw.c (mswindows_destroy_selection):
7483 * select-x.c (symbol_to_x_atom):
7486 * select.c (syms_of_select):
7489 * sound.c (Fplay_sound_file):
7493 * specifier.c (decode_specifier_type):
7494 * specifier.c (Fvalid_specifier_locale_type_p):
7495 * specifier.c (check_valid_locale_or_locale_type):
7496 * specifier.c (decode_locale):
7497 * specifier.c (decode_locale_type):
7498 * specifier.c (decode_locale_list):
7499 * specifier.c (check_valid_domain):
7500 * specifier.c (decode_specifier_tag_set):
7501 * specifier.c (Fcanonicalize_tag_set):
7502 * specifier.c (Fdefine_specifier_tag):
7503 * specifier.c (Fspecifier_tag_predicate):
7504 * specifier.c (check_valid_inst_list):
7505 * specifier.c (check_valid_spec_list):
7506 * specifier.c (decode_how_to_add_specification):
7507 * specifier.c (check_modifiable_specifier):
7508 * specifier.c (specifier_add_spec):
7509 * specifier.c (boolean_validate):
7510 * specifier.c (display_table_validate):
7513 * specifier.c (syms_of_specifier):
7514 Move some symbols to general-slots.h.
7518 * symbols.c (Fmapatoms):
7519 * symbols.c (Fapropos_internal):
7522 * symbols.c (set_default_buffer_slot_variable):
7523 * symbols.c (set_default_console_slot_variable):
7526 * symbols.c (defsymbol_massage_name_1):
7527 * symbols.c (defkeyword_massage_name):
7528 * symbols.c (deferror_1):
7529 * symbols.c (deferror):
7530 * symbols.c (deferror_massage_name_and_message):
7532 * symeval.h (DEFSYMBOL):
7533 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7535 * symbols.c (syms_of_symbols):
7539 * symsinit.h (init_win32): New.
7540 Also new is syms_of_dialog_mswindows.
7543 Add new Unicode macros, missing Cygwin wide-char functions,
7544 convenience conversion macros for Qmswindows_tstr, macros for
7545 encapsulating required MSWin <-> Cygwin filename conversions,
7546 prototype for dynamically-extracted (not in NT 3.51) functions.
7551 * tooltalk.c (Fadd_tooltalk_message_arg):
7552 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7553 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7556 * tooltalk.c (syms_of_tooltalk):
7560 * unexnt.c (unexec):
7561 Fix up headers, declaration of unexec() to be more standard.
7563 2000-07-20 Martin Buchholz <martin@xemacs.org>
7565 * offix.h: Revert change to guard macros - they're used in offix.c!
7567 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7569 * lisp.h: Defsubred Fdelete.
7571 * console-msw.h: (msprinter_default_printer): Added.
7573 * console-msw.c (msprinter_canonicalize_console_connection):
7574 (msprinter_canonicalize_device_connection): Added.
7576 * device-msw.c (msprinter_default_printer):
7577 (Fmswingows_get_default_printer):
7578 (signal_enum_priner_error):
7579 (Fmswingows_printer_list): Added.
7581 2000-07-19 Martin Buchholz <martin@xemacs.org>
7583 * XEmacs 21.2.35 is released.
7585 2000-07-19 Martin Buchholz <martin@xemacs.org>
7587 * select-x.c (x_handle_selection_request):
7588 Text selected in xemacs and pasted into xterm failed to appear.
7589 Spelling fixes and cosmetic changes.
7591 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7593 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7594 XEmacs frame (fix for doubling chars in dialog boxes).
7596 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7598 * select.c (select_convert_in, select_convert_out):
7599 Don't call intern() every time.
7601 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7602 * select.c (vars_of_select): Initialise them.
7604 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7606 * select.c (selection-coercible-types): New.
7608 * select.c (own-selection-internal):
7609 * select.c (get-selection-internal):
7610 MULE bug fix - these should default to COMPOUND_TEXT and not
7611 STRING for MULE. I think.
7613 * select.c (select_convert_out): Use selection-coercible-types
7614 to find types that we can attempt to perform coercions on.
7616 2000-07-18 Martin Buchholz <martin@xemacs.org>
7620 Add coding: cookie to identify encoding.
7622 * mule-canna.c (CANNA_mode_keys): make static.
7623 Use proper prototypes, even for functions of no arguments.
7624 Remove external prototype for Fding().
7626 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7628 * select.c (syms_of_select): Add missing DEFSUBR.
7630 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7632 * select.c (get_selection_internal, own_selection_internal):
7633 Make the type default to STRING, rather than placing a nil type
7634 into Vselection_alist.
7636 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7638 * gpmevent.c (tty_selection_exists_p):
7639 * gpmevent.c (tty_own_selection):
7640 Updated parameter lists.
7642 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7644 * select.h (selection-alist): Removed declaration.
7646 * select.h (get_local_selection):
7647 * select.c (get_local_selection):
7650 * select.h (convert_selection): Removed declaration.
7651 * select.c (convert_selection): Removed.
7652 This function belongs in Lisp.
7654 * select.h (select_convert_in): Declare.
7655 * select.h (select_convert_out): Declare.
7656 * select.c (select_convert_in): New.
7657 * select.c (select_convert_out): New.
7658 New conversion functions for other files to call.
7660 * select.h (select_notify_buffer_kill): Declare.
7661 * select.c (select_notify_buffer_kill): New.
7662 New functions that get called from kill-buffer.
7664 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7665 X-specific lisp code.
7667 * select.h: Declare some of the lisp-visible functions for
7670 * select.c (clean_local_selection_data): Removed. This was
7671 a disgusting function, and previously should have been in
7672 select-x.c in any case. The functionality is now provided
7673 in select-convert-from-integer (select.el).
7675 * select.c (available-selection-types): Fixed stupidity where
7676 INTEGER and ATOM got added twice. Also add STRING when we see an
7679 * select.c (get-selection-internal): Removed symbol stripping. No
7680 longer causes conversion when data comes from the internal cache.
7682 * select.c (syms_of_select): Added new functions.
7684 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7685 error checking - previously this called abort!
7687 * select-x.c (x_own_selection): Changed comment.
7689 * select-x.c (x_handle_selection_request): Use select_convert_out.
7690 Don't mess with selection-alist; it's an internal variable of select.c.
7692 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7694 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7695 rather than messing with selection-alist.
7697 * select-msw.c (mswindows_get_foreign_selection):
7698 Use TO_INTERNAL_FORMAT rather than hacking.
7700 2000-07-14 Martin Buchholz <martin@xemacs.org>
7702 * process-unix.c (unix_open_multicast_group):
7703 (unix_open_multicast_group): Remove useless casts.
7705 2000-07-13 Martin Buchholz <martin@xemacs.org>
7707 * sound.c (Fplay_sound): Fix `unused variable' warning.
7709 * emacs.c (main): Use correct type for _environ on SCO5.
7711 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7713 * console.h (own_selection_method):
7714 * console.h (selection_exists_p_method):
7715 * console.h (available_selection_types_method): New.
7716 * console.h (register_selection_data_type_method): New.
7717 * console.h (selection_data_type_name): New.
7719 * console-msw.h (mswindows_destroy_selection): Declare it. New
7720 function & alist to track GlobalAlloc()'d handles that need
7721 releasing when the clipboard data gets replaced or emptied.
7723 * event-msw.c (mswindows_wnd_proc): Call it.
7725 * lisp.h, general.c (Qappend): New symbol representing a
7728 * select.c (own-selection-internal):
7729 * select.c (selection-exists-p):
7730 * select.c (available-selection-types): New.
7731 * select.c (register-selection-data-type): New.
7732 * select.c (selection-data-type-name): New. New functions to deal
7733 with device-specific selection data formats.
7734 * select.c (selection-converter-out-alist): Renamed.
7735 * select.c (selection-converter-in-alist): New.
7736 * select.c (selection-appender-alist): New. Added new alists.
7737 * select.c (syms_of_select, vars_of_select): Added new symbols &
7739 * select.c (get_local_selection): Split.
7740 * select.c: Removed spurious type checking - selections may now be
7741 of any type, not just strings.
7742 * select.c (own-selection-internal):
7744 * select.h, select.c (convert_selection): New. Created
7745 convert_selection() function based on get_local_selection().
7746 * select.h, select.c (QCF_*): New symbols representing mswindows
7748 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7749 symbols representing `how-to-add' modes.
7751 * select-msw.c (x_sym_p): New.
7752 * select-msw.c (symbol_to_ms_cf): New.
7753 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7754 symbols & clipboard formats. Can also handle string names.
7755 * select-msw.c (mswindows_own_selection):
7756 * select-msw.c (mswindows_selection_exists_p):
7757 Added `data-type' parameter. Use it.
7758 * select-msw.c (mswindows_available_selection_types): New.
7759 * select-msw.c (mswindows_register_selection_data_type): New.
7760 * select-msw.c (mswindows_selection_data_type_name): New.
7761 * select-msw.c (mswindows_own_selection):
7762 * select-msw.c (mswindows_get_foreign_selection):
7763 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7764 * select-msw.c (console_create_select_mswindows): Added new methods.
7765 * select-msw.c (mswindows_destroy_selection): New.
7766 * select-msw.c (Vhandle_alist): New list.
7767 * select-msw.c (mswindows_own_selection):
7769 * select-x.c (x_own_selection):
7770 * select-x.c (x_selection_exists_p):
7771 * select-x.c: Added some comments about maybe using new
7773 * select-x.c (x_own_selection):
7775 * specifier.c: Remove definition of Qappend (now in general.c)
7776 * specifier.c (syms_of_specifier): Remove Qappend.
7778 2000-07-12 Martin Buchholz <martin@xemacs.org>
7780 * config.h.in: Add socklen_t.
7782 * s/decosf4-0.h: No special compiler flags needed or desired.
7783 In particular, undefine _BSD for DEC OSF 4.0.
7785 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7787 * redisplay-msw.c (msprinter_frame_output_end): Added.
7788 (console_type_create_redisplay_mswindows): Referred the above.
7790 * frame.c (setup_frame_without_minibuffer): Do not create a
7791 default minibuffer frame on a printer device.
7793 * frame-msw.c (apply_dc_geometry): Added.
7794 (msprinter_start_page):
7795 (msprinter_init_frame_3):
7796 (msprinter_eject_page): Use it.
7798 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7799 and removed residual duplex and orientation properties.
7801 2000-07-11 Martin Buchholz <martin@xemacs.org>
7803 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7805 * unexalpha.c: Remove system prototypes from C sources!
7807 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7809 * eval.c: Remove references to M-x edit-options in DEFUNs for
7810 `defvar' and `defconst'.
7812 2000-07-09 Martin Buchholz <martin@xemacs.org>
7814 * config.h.in: Remove SMART_INCLUDE hackery.
7817 * config.h.in: Don't use SMART_INCLUDE.
7819 * postgresql.h: Include libpq-fe.h here. Fix typo.
7820 * inline.c: Simply #include "postgresql.h"
7822 - Don't use SMART_INCLUDE
7823 - Use simply "const".
7824 - Use standard doc string conventions.
7825 - Use correct type for result of PQstatus.
7827 2000-07-09 Martin Buchholz <martin@xemacs.org>
7829 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7831 C++ compilation changes.
7832 * config.h.in (EXTERN_C): Define.
7833 * config.h.in (not): This is also a C++ keyword.
7834 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7835 * cm.c: Use EXTERN_C.
7836 * redisplay-tty.c: Use EXTERN_C.
7837 * sysdep.c: Use EXTERN_C. Remove Gould support.
7839 2000-07-09 Martin Buchholz <martin@xemacs.org>
7841 * general.c: Remove duplicate definition for Qfunction.
7843 2000-07-08 Ben Wing <ben@xemacs.org>
7845 * device-msw.c (msprinter_init_device):
7846 * device-msw.c (sync_printer_with_devmode):
7847 * device-msw.c (handle_devmode_changes):
7848 * device-msw.c (print_dialog_worker):
7849 * device-msw.c (Fmsprinter_apply_settings):
7850 * device-msw.c (hash_devmode):
7851 * device-msw.c (Fmsprinter_settings_despecialize):
7852 use Qmswindows_tstr, not Qctext.
7854 * vm-limit.c (check_memory_limits):
7855 avoid infinite loop printing warning messages.
7857 2000-07-05 Craig Lanning <lanning@scra.org>
7859 * Makefile.in.in: Add support for including the Windows resources
7860 when building with the cygwin and mingw targets.
7862 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7863 not set or not correct.
7864 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7865 (init_initial_directory): Don't try to use $PWD on the
7866 WIN32_NATIVE target.
7869 [[Add -mwindows to eliminate console window.]] not required --ben
7870 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7871 (MAIL_USE_POP): removed; now handled by configure.
7873 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7874 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7875 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7876 (MAIL_USE_POP): removed; now handled by configure.
7877 (ENCAPSULATE_STAT): from Dan Holmsand, added.
7878 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7879 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7881 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7882 up from <winsock.h> via systime.h.
7883 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7884 (getpagesize): from Dan Holmsand, added.
7885 Added #endif which was left dangling by Ben's mega patch; added
7886 comment to help prevent this in the future.
7888 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7890 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7892 * console-msw.h (struct mswindows_device): Removed unnecessary
7893 cached device geometry values.
7894 Added update_tick and an accessor macro.
7895 (Lisp_Devmode): Added lrecord declaration.
7896 (struct msprinter_device): Contain devmode as a Lisp object.
7897 Added mswindows_get_selected_frame_hwnd();
7899 * console.h (struct console_methods): Indentation nitpicking.
7901 * device-msw.c (mswindows_init_device): Do not initialize geometry
7902 cache. Initialize update tick.
7903 (mswindows_device_system_metrics): Ask the device for its geometry.
7904 (global_free_2_maybe):
7905 (devmode_to_hglobal):
7906 (handle_printer_changes):
7907 (ensure_not_printing):
7908 (print_dialog_worker):
7909 (Fmsprinter_print_setup_dialog):
7910 (Fmsprinter_print_dialog):
7913 (Fmsprinter_page_setup_dialog): Added functions.
7914 (sync_printer_with_devmode):
7915 (handle_devmode_changes):
7916 (Fmsprinter_get_settings):
7917 (Fmsprinter_select_settings):
7918 (Fmsprinter_apply_settings):
7920 (Fmsprinter_settings_copy):
7921 (Fmsprinter_settings_despecialize):
7925 (hash_devmode): Added functions
7926 (syms_of_device_mswindows): Init devmode lrecord class.
7928 * device.h: Added an exfun for find-device.
7930 * event-msw.c (mswindows_wnd_proc): Do not update the cached
7931 geometry; although, recreate the device compatible DC.
7933 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7934 (msprinter_init_frame_3):
7935 (msprinter_frame_property):
7936 (msprinter_internal_frame_property_p):
7937 (msprinter_frame_properties):
7938 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7939 print job properties (will move to device settings).
7941 * lisp.h: Added symbols.
7943 * general.c (syms_of_general): Declared them.
7945 * hash.c (string_hash): Added.
7947 * lrecord.h (lrecord_type): Added devmode lrecord type.
7949 2000-07-02 Mike Sperber <mike@xemacs.org>
7951 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7954 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
7956 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7959 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
7961 * data.c (Fstring_to_number): Don't recognize floating point if
7964 2000-06-22 Martin Buchholz <martin@xemacs.org>
7966 * glyphs-widget.c (tab_control_query_geometry):
7967 (widget_query_geometry):
7968 (button_query_geometry):
7969 * glyphs.c (text_query_geometry):
7970 Enforce type correctness.
7972 2000-06-18 Martin Buchholz <martin@xemacs.org>
7974 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7975 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7977 2000-06-17 Martin Buchholz <martin@xemacs.org>
7979 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7980 conflicts with gcc's fixincluded version of FOO.h.
7982 * glyphs.h (image_instance_geometry): Remove trailing `,'
7984 2000-06-08 Mike Alexander <mta@arbortext.com>
7986 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7987 (shove_thread): Don't write the same output twice
7988 (make_ntpipe_output_stream): Increase priority of shove thread
7989 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7991 (ntpipe_shove_closer): Don't delete the pipe until we're done with
7994 2000-06-12 Ben Wing <ben@xemacs.org>
7996 * s\mingw32.h (sigset):
7997 * s\windowsnt.h (sigset):
7998 rename msw_ to mswindows_ for consistency with general convention.
8000 2000-06-12 Ben Wing <ben@xemacs.org>
8003 * console-msw.c (mswindows_get_console_hwnd):
8004 * console-msw.c (mswindows_ensure_console_allocated):
8005 * console-msw.c (mswindows_hide_console):
8006 * console-msw.c (mswindows_show_console):
8007 * console-msw.c (mswindows_ensure_console_buffered):
8008 * console-msw.c (mswindows_output_console_string):
8009 * console-msw.c (mswindows_windows9x_p):
8011 * device-msw.c (mswindows_get_workspace_coords):
8012 * device-msw.c (mswindows_device_system_metrics):
8013 * dialog-msw.c (mswindows_popup_dialog_box):
8014 * event-msw.c (mswindows_wnd_proc):
8015 * frame-msw.c (mswindows_size_frame_internal):
8016 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8017 * menubar-msw.c (displayable_menu_item):
8018 * menubar-msw.c (mswindows_char_is_accelerator):
8020 * nt.c (mswindows_sigset):
8021 * nt.c (mswindows_sigrelse):
8022 * nt.c (mswindows_sigpause):
8023 * nt.c (mswindows_raise):
8024 * nt.c (timer_proc):
8026 * ntproc.c (find_child_console):
8027 * ntproc.c (sys_kill):
8029 * print.c (std_handle_out_external):
8030 * process-nt.c (find_child_console):
8031 * process-nt.c (send_signal_the_95_way):
8032 * process-nt.c (ensure_console_window_exists):
8033 * process-nt.c (nt_create_process):
8035 rename msw_ to mswindows_ for consistency with general convention.
8039 include nt.h, not syswindows.h.
8041 * nt.c (mswindows_fstat):
8042 * nt.c (mswindows_stat):
8043 prefix mswindows_ instead of attempting to directly override the
8044 library functions. fix declarations.
8047 include syswindows.h. move some sysdep.h stuff here.
8050 include syswindows.h, not <windows.h>.
8058 * sysdep.c (sys_fstat):
8059 * sysdep.c (sys_stat):
8060 call mswindows versions when appropriate.
8063 move mswin decls to nt.h.
8066 add long comment describing appropriate use of the various windows
8069 2000-06-11 Ben Wing <ben@xemacs.org>
8071 * device-x.c: Correct doc string for sixth arg of x-get-resource.
8073 2000-06-10 Ben Wing <ben@xemacs.org>
8075 * Makefile.in.in (release):
8076 Correction to make sure xemacs.exe always dumped when correct.
8080 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8082 * buffer.c (set_buffer_internal):
8083 [[[[2]]]]: Remove HAVE_FEP code.
8085 * buffer.c (init_initial_directory):
8089 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8093 * callproc.c (call_process_cleanup):
8094 * callproc.c (Fold_call_process_internal):
8095 * callproc.c (child_setup):
8096 * callproc.c (getenv_internal):
8097 * callproc.c (init_callproc):
8098 * callproc.c (vars_of_callproc):
8099 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8100 __CYGWIN32__ -> CYGWIN.
8101 DOS_NT -> WIN32_NATIVE.
8102 Remove MSDOS support/references, converting to WIN32_NATIVE
8104 __MINGW32__ -> MINGW.
8105 Fix windows.h includes.
8106 Remove bogus HAVE_NTGUI.
8112 mswindows_message_outputted added for use in allowing startup
8113 errors on the console to be seen.
8115 * console-msw.c (msw_ensure_console_allocated):
8116 * console-msw.c (msw_output_console_string):
8117 * console-msw.c (DHEADER):
8118 * console-msw.c (DOPAQUE_DATA):
8119 * console-msw.c (DEVENT):
8120 * console-msw.c (DCONS):
8121 * console-msw.c (DCONSCDR):
8122 * console-msw.c (DSTRING):
8123 * console-msw.c (DVECTOR):
8124 * console-msw.c (DSYMBOL):
8125 * console-msw.c (DSYMNAME):
8128 * console-stream.c (stream_init_console):
8129 Fix text/binary problems.
8132 * device-msw.c (mswindows_finish_init_device):
8133 * device-msw.c (mswindows_delete_device):
8136 * device.c (handle_asynch_device_change):
8140 * dgif_lib.c (DGifOpenFileName):
8141 * dgif_lib.c (DGifOpenFileHandle):
8142 * dgif_lib.c (DGifGetLine):
8143 * dgif_lib.c (DGifGetPixel):
8144 Added config.h/lisp.h, fix up includes.
8151 * dired.c (file_name_completion):
8152 * dired.c (Ffile_attributes):
8153 * dired.c (syms_of_dired):
8157 * dumper.c (pdump_file_unmap):
8158 * dumper.c (pdump_load):
8162 * editfns.c (Ftemp_directory):
8163 * editfns.c (user_login_name):
8164 * editfns.c (Fuser_real_login_name):
8165 * editfns.c (get_home_directory):
8168 * elhash.c (finish_marking_weak_hash_tables):
8169 [[[[5]]]]: Fix GCC warnings.
8172 * emacs.c (mswindows_handle_hardware_exceptions):
8173 * emacs.c (make_arg_list_1):
8175 * emacs.c (Fkill_emacs):
8176 * emacs.c (Fdump_emacs):
8178 Fix problems with nested crashes, add long comment.
8180 * event-Xt.c (init_event_Xt_late):
8184 * event-msw.c (mswindows_dde_callback):
8185 * event-msw.c (mswindows_handle_sticky_modifiers):
8186 * event-msw.c (mswindows_wnd_proc):
8190 * events.c (character_to_event):
8194 * fileio.c (Ffile_name_directory):
8195 * fileio.c (Ffile_name_nondirectory):
8196 * fileio.c (directory_file_name):
8197 * fileio.c (Fexpand_file_name):
8198 * fileio.c (Fsubstitute_in_file_name):
8199 * fileio.c (Ffile_name_absolute_p):
8200 * fileio.c (check_executable):
8201 * fileio.c (Ffile_readable_p):
8202 * fileio.c (Ffile_accessible_directory_p):
8203 * fileio.c (Ffile_modes):
8204 * fileio.c (Funix_sync):
8205 * fileio.c (vars_of_fileio):
8208 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8210 Expand getdefdir defn.
8211 Fix bogus rename() comment.
8213 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8214 to use standard XEmacs include files, e.g. sysfile.h, rather
8215 than system-specific includes.
8221 * frame.c (vars_of_frame):
8225 * getloadavg.c (getloadavg):
8227 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8228 (We don't use it elsewhere in the code; just add a comment.)
8235 * glyphs-msw.c (mswindows_resource_instantiate):
8238 * glyphs-x.c (x_native_layout_instantiate):
8241 * gui-msw.c (Fmswindows_shell_execute):
8250 * lread.c (locate_file_in_directory_mapper):
8257 * mem-limits.h (get_lim_data):
8269 * nt.c (rva_to_section):
8270 * nt.c (mswindows_executable_type):
8272 Fix closedir() defn.
8275 [[[[8]]]]: *_OK defs moved to sysfile.h.
8284 * print.c (std_handle_out_external):
8288 * process-nt.c (nt_create_process):
8290 try to fix process quoting somewhat.
8292 * process-unix.c (unix_create_process):
8296 * process.c (vars_of_process):
8303 * realpath.c (xrealpath):
8306 * redisplay-tty.c (init_tty_for_redisplay):
8316 * sheap.c (more_static_core):
8317 * sheap.c (report_sheap_usage):
8321 * signal.c (alarm_signal):
8328 * strftime.c (zone_name):
8331 * symsinit.h (init_sunpro):
8335 commctrl.h not in Cygwin b20.1.
8339 * sysdep.c (sys_subshell):
8340 * sysdep.c (init_baud_rate):
8341 * sysdep.c (emacs_get_tty):
8342 * sysdep.c (emacs_set_tty):
8343 * sysdep.c (tty_init_sys_modes_on_device):
8344 * sysdep.c (init_system_name):
8345 * sysdep.c (sys_open):
8346 * sysdep.c (interruptible_open):
8347 * sysdep.c (sys_fopen):
8348 * sysdep.c (sys_mkdir):
8349 * sysdep.c (sys_rename):
8350 * sysdep.c (get_process_times_1):
8357 * sysdir.h (DIRENTRY_NONEMPTY):
8360 * sysdll.c (dll_init):
8366 added text/binary defs.
8372 * sysproc.h (EDESTADDRREQ):
8373 * sysproc.h (poll_fds_for_input):
8390 Always define WIN32_LEAN_AND_MEAN.
8392 * unexcw.c (unexec):
8396 * unexec.c (copy_text_and_data):
8397 * unexec.c (adjust_lnnoptrs):
8401 * unexnt.c (_start):
8404 2000-06-07 Ben Wing <ben@xemacs.org>
8406 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8407 was used only as a model. We've long since extracted any useful
8408 logic or code out of this. (I just did an exhaustive search.)
8410 * s\msdos.h: Removed.
8412 * s\windows95.h: Removed.
8414 2000-06-10 Ben Wing <ben@xemacs.org>
8418 Don't use extern with fun defs.
8422 Remove nt\inc include.
8423 Remove getdisk, getdefdir. (The former is unused, the latter
8424 expanded in fileio.h.)
8427 * s\windowsnt.h (WIN32_NATIVE):
8428 * s\windowsnt.h (HAVE_STRCASECMP):
8430 Add long comment about preprocessor changes.
8431 Remove getdisk, getdefdir. (The former is unused, the latter
8432 expanded in fileio.h.)
8434 2000-06-10 Ben Wing <ben@xemacs.org>
8443 Remove bogus/unused NO_SOCK_SIGIO.
8445 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8447 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8450 2000-06-04 Mike Sperber <mike@xemacs.org>
8452 * casetab.c (set_case_table): For `set-standard-case-table',
8453 actually deposit the new case tables where the rest of XEmacs can
8456 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8458 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8460 2000-06-05 Ben Wing <ben@xemacs.org>
8462 * callproc.c (child_setup): Don't do close_load_descs() under
8463 MS Windows. Put in a comment explaining why.
8465 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8467 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8468 Toolkit shell" which breaks `kill-compilation' on Windows NT
8469 native, retaining STDERR handling improvements.
8471 2000-06-01 Andreas Jaeger <aj@suse.de>
8473 * s/s390.h: Support for S390, based on a patch by Martin
8474 Schwidefsky <schwidefsky@de.ibm.com>.
8476 2000-05-30 Andy Piper <andy@xemacs.org>
8478 * window.c (allocate_window):
8479 (make_dummy_parent):
8480 (Fset_window_configuration): use new hashtable type.
8482 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8483 (struct image_instantiator_methods):
8484 (struct Lisp_Image_Instance): make instance geometry signed.
8486 * glyphs.c (instantiate_image_instantiator):
8487 (image_instance_query_geometry):
8488 (image_instance_layout):
8489 (image_instance_layout):
8490 (query_string_geometry):
8491 (text_query_geometry):
8492 (image_instantiate):
8493 (image_instantiate):
8494 (cache_subwindow_instance_in_frame_maybe):
8495 (subwindow_query_geometry): make instance geometry signed.
8497 * glyphs-widget.c (widget_query_geometry):
8499 (button_query_geometry):
8500 (tree_view_query_geometry):
8501 (tab_control_query_geometry):
8502 (layout_query_geometry):
8504 (native_layout_layout): make instance geometry signed.
8506 2000-05-29 Olivier Galibert <galibert@pobox.com>
8508 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8511 * general.c (syms_of_general): Add Qfull_assoc symbol.
8513 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8515 (decode_weak_list_type): Decode full-assoc type.
8516 (encode_weak_list_type): Encode full-assoc type.
8517 (Fmake_weak_list): Update doc string.
8519 2000-05-30 Andy Piper <andy@xemacs.org>
8521 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8523 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8524 (decode_hash_table_weakness): ditto.
8525 (Fhash_table_weakness): ditto.
8526 (Fhash_table_type): ditto.
8527 (finish_marking_weak_hash_tables): ditto.
8528 (hash_table_weakness_validate): ditto.
8529 (syms_of_elhash): ditto.
8531 2000-05-28 Martin Buchholz <martin@xemacs.org>
8533 * XEmacs 21.2.34 is released.
8535 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8537 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8539 (updating_line_start_cache): Gone.
8540 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8541 generic code to force a minimum of 1 line laid out in the
8544 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8546 * glyphs.c (instantiate_image_instantiator): Check for initialized
8547 height & width no longer special cases IMAGE_NOTHING.
8548 (nothing_instantiate): Set height and width of instance.
8550 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8552 * unexelf.c (unexec): Search for ".data" section.
8553 Initialize new_data2_offset from old_data_index.
8554 Remove redundant check for ElfW.
8556 2000-05-23 Andy Piper <andy@xemacs.org>
8558 * glyphs.c (get_image_instantiator_governing_domain): allow more
8559 specific domains as the governing domain rather than expecting an
8560 exact match. This fixes problems with layouts.
8562 2000-05-22 Andy Piper <andy@xemacs.org>
8564 * redisplay-output.c (compare_runes): check for non-images
8566 * glyphs.c (set_glyph_dirty_p): ditto.
8567 (update_glyph_cachel_data): ditto.
8569 * glyphs-widget.c (layout_post_instantiate): ditto.
8570 (layout_post_instantiate): ditto.
8572 * event-msw.c (mswindows_wnd_proc): warning removal.
8574 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8576 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8578 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8580 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8582 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8583 (mswindows_executable_type): mingw32 now has enough headers for
8586 2000-05-20 Andy Piper <andy@xemacs.org>
8588 * console-msw.c (mswindows_output_last_error): ; -> ,
8590 2000-05-12 Andy Piper <andy@xemacs.org>
8592 * console-msw.c (FROB): compare ints with ints.
8594 2000-05-11 Andy Piper <andy@xemacs.org>
8596 * glyphs-x.c (x_finalize_image_instance): make minimal build
8599 2000-05-20 Ben Wing <ben@xemacs.org>
8602 * event-Xt.c (vars_of_event_Xt):
8603 move modifier-keys-are-sticky to event-stream.c.
8606 * event-msw.c (mswindows_enqueue_mouse_button_event):
8607 * event-msw.c (key_needs_default_processing_p):
8608 * event-msw.c (XEMSW_LCONTROL):
8609 * event-msw.c (mswindows_handle_sticky_modifiers):
8610 * event-msw.c (FROB):
8611 * event-msw.c (clear_sticky_modifiers):
8612 * event-msw.c (output_modifier_keyboard_state):
8613 * event-msw.c (output_alt_keyboard_state):
8614 * event-msw.c (mswindows_wnd_proc):
8615 * event-msw.c (mswindows_modifier_state):
8616 * event-msw.c (emacs_mswindows_handle_magic_event):
8617 implement sticky modifiers.
8620 * event-stream.c (vars_of_event_stream):
8621 move modifier-keys-are-sticky here.
8627 implement map-range-table.
8630 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8632 * redisplay-tty.c (reset_tty_modes):
8633 (tty_redisplay_shutdown): Adjust argument type to
8634 tty_frame_output_end.
8636 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8638 * eval.c (Fbacktrace): Don't output a line with only right
8641 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8643 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8644 (Fpq_reset_poll): Ditto.
8646 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8648 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8650 2000-05-16 Ben Wing <ben@xemacs.org>
8653 * buffer.c (dfc_convert_to/from_internal_format):
8654 * buffer.c (reinit_vars_of_buffer):
8655 Fix conversion functions to allow reentrancy.
8658 * console-msw.c (mswindows_output_last_error):
8659 New fun, generally useful -- output a human-readable
8660 version of GetLastError() on the console.
8663 * console-msw.h (struct mswindows_frame):
8664 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8666 * console-stream.c (stream_output_begin):
8667 * console-stream.c (stream_output_end):
8668 * console-stream.c (stream_output_vertical_divider):
8669 * console-stream.c (stream_clear_region):
8670 * console-stream.c (stream_flash):
8671 * console-stream.c (console_type_create_stream):
8672 Delete blank stream methods, not needed.
8674 * console.h (struct console_methods):
8675 Split begin/end methods into window and frame.
8678 * event-msw.c (mswindows_handle_paint):
8679 * event-msw.c (output_alt_keyboard_state):
8680 * event-msw.c (mswindows_wnd_proc):
8681 * event-msw.c (vars_of_event_mswindows):
8682 Comment about problems with ignored-expose.
8683 Define mswindows-debug-events; not really implemented.
8685 * frame-msw.c (mswindows_init_frame_1):
8689 * glyphs-msw.c (begin_defer_window_pos):
8690 * glyphs-msw.c (mswindows_unmap_subwindow):
8691 * glyphs-msw.c (mswindows_map_subwindow):
8692 * glyphs-msw.c (mswindows_resize_subwindow):
8693 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8695 * glyphs.c (make_image_instance_1):
8698 * gutter.c (Fredisplay_gutter_area):
8699 Use new begin/end methods.
8701 * lisp.h (Dynarr_new2):
8705 * redisplay-msw.c (mswindows_frame_output_begin):
8706 * redisplay-msw.c (mswindows_frame_output_end):
8707 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8708 New begin/end methods -- handle DeferWindowPos.
8710 * redisplay-output.c (redisplay_move_cursor):
8711 * redisplay-output.c (redraw_cursor_in_window):
8712 * redisplay-output.c (redisplay_update_line):
8713 * redisplay-output.c (redisplay_output_window):
8714 New begin/end methods.
8717 * redisplay-tty.c (tty_frame_output_begin):
8718 * redisplay-tty.c (tty_frame_output_end):
8719 * redisplay-tty.c (console_type_create_redisplay_tty):
8720 New begin/end methods.
8723 * redisplay-x.c (x_window_output_begin):
8724 * redisplay-x.c (x_window_output_end):
8725 * redisplay-x.c (console_type_create_redisplay_x):
8726 New begin/end methods.
8728 * redisplay.c (redisplay_frame):
8729 * redisplay.c (Fredisplay_echo_area):
8730 New begin/end methods.
8731 use MAYBE_DEVMETH for clear_frame; it may not exist.
8733 * window.h (WINDOW_XFRAME):
8734 WINDOW_XFOO macros -- get locale and decode struct pointer.
8737 2000-05-12 Ben Wing <ben@xemacs.org>
8740 * emacs.c (ensure_no_quitting_from_now_on):
8741 * emacs.c (fatal_error_signal):
8742 * emacs.c (mswindows_handle_hardware_exceptions):
8744 * emacs.c (Fkill_emacs):
8745 * emacs.c (shut_down_emacs):
8746 * emacs.c (assert_failed):
8747 various improvements in fatal error handling.
8750 move preparing_for_armageddon to emacs.c.
8753 declare fatal_error_in_progress.
8756 * print.c (std_handle_out_external):
8757 * print.c (std_handle_out_va):
8758 * print.c (stderr_out):
8759 * print.c (stdout_out):
8760 use console under mswin when no standard output.
8761 don't do code conversion during fatal error.
8763 * scrollbar.c (Fscrollbar_page_up):
8764 * scrollbar.c (Fscrollbar_page_down):
8765 fix missing else. reindent.
8767 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8771 * glyphs.h (GLYPH_CACHEL_DESCENT):
8772 (GLYPH_CACHEL_DESCENT):
8773 (GLYPH_CACHEL_DESCENT):
8774 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8775 used in case these are inline functions.
8776 Use more absurd values to error check.
8778 include window.h for error check functions.
8780 2000-05-11 Ben Wing <ben@xemacs.org>
8782 * cmdloop.c (Freally_early_error_handler):
8783 Display message box under windows; otherwise, message will disappear
8784 before it can be viewed.
8787 * console-msw.c (Fmswindows_message_box):
8788 * console-msw.c (FROB):
8789 * console-msw.c (syms_of_console_mswindows):
8790 Define new fun `mswindows-message-box'.
8791 #### I will merge this into `popup-dialog-box'; just give me
8795 * general.c (syms_of_general):
8796 Some new symbols used in `mswindows-message-box'.
8799 * glyphs.c (Fset_image_instance_property):
8800 put warning in this fun.
8803 * glyphs.h (GLYPH_CACHEL_WIDTH):
8804 * glyphs.h (GLYPH_CACHEL_ASCENT):
8805 * glyphs.h (GLYPH_CACHEL):
8806 * glyphs.h (GLYPH_CACHEL_GLYPH):
8807 define error-checking versions to try to catch a bug i've seen --
8808 redisplay gets in an infinite loop because the glyph width of the
8809 continuation glyph is 65535.
8812 Extern message-box stuff.
8814 * window.c (allocate_window):
8815 * window.c (make_dummy_parent):
8816 * window.c (Fset_window_configuration):
8817 Use EQUAL not EQ for subwindow caches to make them work a bit
8818 better. (Something is still very broken.)
8821 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8823 * glyphs.c (image_instantiate): Suppress gcc warnings.
8824 (Fmake_image_instance): Fix doc string.
8825 * specifier.c (Fmake_specifier): Ditto.
8827 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
8829 * paths.h.in (PATH_LOCK): Removed.
8830 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8831 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8833 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8835 * fns.c (Ffeaturep): Update e-mail address in doc-string.
8836 Document (featurep '(and xemacs 21.02)).
8838 2000-05-09 Ben Wing <ben@xemacs.org>
8840 * buffer.c (complex_vars_of_buffer):
8841 update modeline-format doc.
8844 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8847 timeline of all released versions of Emacs, for use in creating
8848 authorship comments and in synching up.
8850 * glyphs-widget.c (image_instantiator_buttons):
8851 * glyphs-widget.c (image_instantiator_edit_fields):
8852 * glyphs-widget.c (image_instantiator_combo_box):
8853 * glyphs-widget.c (image_instantiator_scrollbar):
8854 * glyphs-widget.c (image_instantiator_progress_guage):
8855 * glyphs-widget.c (image_instantiator_tree_view):
8856 * glyphs-widget.c (image_instantiator_tab_control):
8857 * glyphs-widget.c (image_instantiator_labels):
8858 * glyphs-widget.c (image_instantiator_layout):
8859 * glyphs-widget.c (image_instantiator_native_layout):
8860 rename decode_domain method to governing_domain.
8863 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8864 * glyphs.c (add_entry_to_device_ii_format_list):
8865 make sure we don't put an entry more than once into the list.
8866 * glyphs.c (check_instance_cache_mapper):
8867 *************************************************************
8868 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8870 *************************************************************
8871 * glyphs.c (get_image_instantiator_governing_domain):
8872 clean up, expand on new concept of governing domain.
8873 * glyphs.c (instantiate_image_instantiator):
8874 * glyphs.c (allocate_image_instance):
8875 use governing_domain instead of cache_domain in naming.
8876 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8877 * glyphs.c (make_image_instance_1):
8878 * glyphs.c (Fmake_image_instance):
8879 allow for any domain (not just device), and process the
8880 governing domain correctly. very big doc fix.
8881 * glyphs.c (Fimage_instance_domain):
8882 new primitive, to retrieve the governing domain of an image instance.
8883 * glyphs.c (image_instantiate):
8884 use new governing_domain stuff. this fixes a crash you could get
8885 by instantiating certain widget glyphs in frame locales. (should
8886 signal an error instead of crashing.)
8887 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8888 * glyphs.c (Fglyphp): clean up doc.
8889 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8890 * glyphs.c (syms_of_glyphs):
8891 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8892 * glyphs.c (image_instantiator_format_create): add some comments about
8894 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8895 for current-display-table. (Apparently Hrjove implemented in 1998 a
8896 design I wrote up in 1996, but didn't update the doc string.)
8898 * glyphs.h: clean up a doc string.
8899 * glyphs.h (governing_domain):
8900 * glyphs.h (struct image_instantiator_methods):
8901 changes for governing_domain stuff.
8904 * gutter.c (Fgutter_specifier_p):
8905 * gutter.c (Fgutter_size_specifier_p):
8906 * gutter.c (Fgutter_visible_specifier_p):
8908 * objects.c (Fcolor_specifier_p):
8909 * objects.c (Ffont_specifier_p):
8910 * objects.c (Fface_boolean_specifier_p):
8911 doc strings moved to make-*-specifier.
8913 * redisplay.c (add_disp_table_entry_runes_1):
8914 * redisplay.c (generate_fstring_runes):
8915 * redisplay.c (screen):
8916 add random comments and doc strings.
8919 * specifier.c (Fmake_specifier):
8920 major overhaul of this doc string.
8922 * specifier.c (Fvalid_specifier_domain_p):
8923 comment about the bogosity of image instances being domains.
8924 * specifier.c (decode_domain):
8925 now non-static, used in glyphs.c.
8926 * specifier.c (specifier_instance):
8927 comment about the bogosity of image instances being domains.
8928 * specifier.c (Fgeneric_specifier_p):
8929 move doc string to make-generic-specifier.
8930 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8934 * specifier.h (DOMAIN_FRAME):
8935 * specifier.h (DOMAIN_LIVE_P):
8936 * specifier.h (DOMAIN_XDEVICE):
8938 add comments about problems with these macros.
8939 prototype for decode_domain.
8942 * toolbar.c (Ftoolbar_specifier_p):
8943 move doc string to `make-toolbar-specifier'.
8945 * window.c (window_unmap_subwindows_cache_mapper):
8946 *************************************************************
8947 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8949 *************************************************************
8951 2000-05-09 Andy Piper <andy@xemacs.org>
8953 * glyphs.h: declare reset_frame_subwindow_instance_cache.
8955 * window.c (Fset_window_configuration): reset the frame subwindow
8956 cache and re-initialize the window subwindow caches.
8958 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8960 2000-05-09 Ben Wing <ben@xemacs.org>
8962 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8965 2000-04-26 Mike Woolley <mike@bulsara.com>
8967 * ntheap.c: Changed recreate_heap to limit the amount reserved
8968 for the heap to that which is actually available. Also now
8969 displays a message box (with some dignostics) in the event that
8970 it still can't start.
8972 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
8974 * callproc.c (Fold_call_process_internal): GCPRO path
8976 2000-05-08 Jan Vroonhof <jan@xemacs.org>
8978 Patch by Bill Perry.
8980 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8981 back data instead of #ifdef.
8982 (Fscrollbar_page_down): ditto.
8984 2000-05-07 Ben Wing <ben@xemacs.org>
8987 Kludge for defining Qmswindows_tstr.
8990 * nt.c (open_input_file):
8991 * nt.c (open_output_file):
8992 * nt.c (rva_to_section):
8993 * nt.c (mswindows_executable_type):
8994 Move all memory-mapped-file routines here (some were in unexnt.c,
8995 which is bad because they are used by process-nt.c, and unexnt
8996 won't be around when portable dumping). Synched the above routines
9000 Removed ifdef'd out bogus code.
9001 Fixed some prototypes.
9004 * nt.h (OFFSET_TO_RVA):
9005 * nt.h (RVA_TO_OFFSET):
9006 * nt.h (RVA_TO_PTR):
9007 Moved the memory-mapped-file structures, macros and prototypes
9008 here, to parallel nt.c. ntheap.h should really be removed
9009 entirely, and it's a non-portable-dumper specific file.
9011 * ntheap.h (round_to_next):
9012 Moved the memory-mapped-file structures, macros and prototypes
9015 * ntproc.c (compare_env):
9016 Moved rva_to_section and mswindows_executable_type to nt.c.
9017 Moved compare_env to process-nt.c.
9018 ntproc.c will die, one day.
9020 * ntproc.c (sys_spawnve):
9021 Account for win32_ -> mswindows_.
9024 * process-nt.c (struct nt_process_data):
9025 * process-nt.c (ensure_console_window_exists):
9026 * process-nt.c (compare_env):
9027 * process-nt.c (nt_create_process):
9028 * process-nt.c (nt_kill_process_by_pid):
9029 * process-nt.c (syms_of_process_nt):
9030 * process-nt.c (vars_of_process_nt):
9031 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9032 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9033 changes). Eliminate our old `nt-quote-process-args' mechanism.
9034 Synch up nt_create_process with FSF 20.6 sys_spawnve.
9035 Move compare_env here from ntproc.c.
9037 * process.c (Fprocess_send_region):
9038 Takes an optional fourth argument, BUFFER, which should fix some
9039 problems with call-process.
9042 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9045 Move ICC_BAR_CLASSES to syscommctrl.h.
9046 Add preliminary macros for MSWindows/Mule. More to come.
9049 * unexnt.c (unexec):
9050 open_output_file moved to nt.c.
9053 2000-05-05 Andy Piper <andy@xemacs.org>
9055 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9056 instance from the frame cache also since GC may catch up too late
9057 to make frame deletion sane.
9059 2000-05-04 Andy Piper <andy@xemacs.org>
9061 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9062 (x_finalize_image_instance): ungcpro on deletion.
9064 * glyphs.c (image_instantiator_format_create): give pointers a
9065 query geometry method so that the geometry is at least set.
9067 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9068 initialize layouts if using widgets.
9070 2000-05-03 Andy Piper <andy@xemacs.org>
9072 * nt.c: remove bogus reference to sysmmsystem.h
9074 * gui-x.c (popup_selection_callback): fix no selection abort.
9076 2000-05-02 Andy Piper <andy@xemacs.org>
9078 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9079 (mswindows_widget_instantiate): ditto.
9081 * glyphs-widget.c (initialize_widget_image_instance): initialize
9083 (widget_instantiate): cope with children and items in the same
9086 * glyphs.c (mark_image_instance): cope with children as a first
9088 (image_instance_equal): ditto.
9089 (image_instance_hash): ditto.
9090 (image_instance_changed): ditto.
9092 2000-04-30 Andy Piper <andy@xemacs.org>
9094 * glyphs.c (subwindow_query_geometry): new function. Return some
9096 (subwindow_instantiate): don't assign dimensions if none have been
9098 (image_instantiator_format_create): add subwindow_query_geometry.
9099 (print_image_instance): cope with layouts as widgets.
9101 2000-04-29 Andy Piper <andy@xemacs.org>
9103 * frame.c (delete_frame_internal): call
9104 free_frame_subwindow_instance_cache so that all subwindows are
9105 finalized before their parent.
9106 (mark_frame): remove subwindow_cachels.
9107 (Fmake_frame): remove subwindow_cachel manipulation.
9108 (allocate_frame_core): subwindow_instance_cache is a weak list.
9109 (delete_frame_internal): set subwindow_instance_cache to nil.
9111 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9113 (mswindows_finalize_image_instance): use the device
9114 not the domain as the domain may have died already.
9116 * glyphs-x.c (x_finalize_image_instance): ditto.
9117 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9120 * redisplay-output.c (redisplay_unmap_subwindows): update for
9121 subwindow instance cache as a weak list.
9122 (redisplay_unmap_subwindows_maybe): ditto.
9123 (redisplay_unmap_subwindows_except_us): ditto.
9125 * glyphs.c (unmap_subwindow): error checking will check the domain
9126 so don't deal with it here. Don't use cachels anymore.
9127 (map_subwindow): ditto.
9128 (update_subwindow_cachel_data): remove old accessor names.
9129 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9130 (Fresize_subwindow): don't update cachel.
9131 (mark_subwindow_cachels):
9132 (update_subwindow_cachel_data):
9133 (add_subwindow_cachel):
9134 (get_subwindow_cachel_index):
9135 (update_subwindow_cachel):
9136 (reset_subwindow_cachels):
9137 (mark_subwindow_cachels_as_not_updated): deleted.
9138 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9139 subwindow instance to the frame cache.
9140 (find_matching_subwindow): update for subwindow instance cache as
9142 (update_widget_instances): ditto.
9143 (image_instance_type_to_mask):inlined.
9144 (free_frame_subwindow_instance_cache): new function. finalize all
9145 subwindows that are instantiated.
9147 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9148 of cachel information.
9149 (IMAGE_INSTANCE_DISPLAY_X):
9150 (IMAGE_INSTANCE_DISPLAY_Y):
9151 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9152 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9153 (XIMAGE_INSTANCE_DISPLAY_X):
9154 (XIMAGE_INSTANCE_DISPLAY_Y):
9155 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9156 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9157 remove subwindow_cachel structure and function references.
9158 (image_instance_type_to_mask): inline from glyphs.c
9160 * redisplay.c (redisplay_frame): remove subwindow_cachel
9163 * frame.h (struct frame): remove subwindow_cachels.
9164 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9166 * frameslots.h: add subwindow_instance_cache.
9168 * window.c (replace_window): check subwindow cache of replacement.
9169 (window_unmap_subwindows_cache_mapper):
9170 (window_unmap_subwindows): new functions. Unmap all subwindows
9171 cached on this window.
9172 (mark_window_as_deleted): unmap all subwindows.
9174 2000-04-27 Andy Piper <andy@xemacs.org>
9176 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9178 * glyphs-widget.c (widget_layout): return something.
9179 (layout_layout): return something. Fail if not initialized.
9180 (layout_query_geometry): ditto.
9181 (image_instantiator_native_layout): new function. Initialized the
9183 (widget_instantiate): don't do layout stuff here.
9185 * glyphs.c (instantiate_image_instantiator): reorded calling or
9186 instantiate and post_instantiate with layout in between.
9187 (image_instance_layout): be more selective about deciding whether
9188 the layout has been done or not.
9190 * glyphs.h (struct image_instantiator_methods): return a value
9193 2000-04-26 Andy Piper <andy@xemacs.org>
9195 * glyphs.c (allocate_image_instance): make initial width and
9196 height unspecified. Set initialized to 0.
9198 * syscommctrl.h new file. Encapsulates commctrl.h.
9200 * syswindows.h new file. Encapsulates windows.h.
9202 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9204 * console-msw.h: ditto.
9206 * redisplay-tty.c (tty_output_display_block): remove layout references.
9208 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9209 window handle rather than just the frame.
9211 * glyphs.c (mark_image_instance): remove layout references.
9212 (print_image_instance): ditto.
9213 (image_instance_equal): ditto.
9214 (image_instance_hash): ditto.
9215 (decode_image_instance_type): ditto.
9216 (encode_image_instance_type): ditto.
9217 (image_instantiate): ditto.
9218 (allocate_glyph): ditto.
9219 (Fimage_instance_height): ditto.
9220 (Fimage_instance_width): ditto.
9221 (update_subwindow): ditto.
9223 * redisplay-x.c (x_output_display_block): recode for layouts as
9226 * redisplay-output.c (redisplay_output_layout): recode for layouts
9228 (compare_runes): remove layout references.
9230 * redisplay-msw.c (mswindows_output_display_block): recode for
9233 * glyphs-widget.c (image_instantiator_layout): remove
9234 layout_possible_dest_types.
9235 (layout_possible_dest_types): deleted.
9237 * glyphs.h (image_instance_type): remove layout references.
9238 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9239 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9240 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9242 2000-04-25 Andy Piper <andy@xemacs.org>
9244 * glyphs-widget.c (image_instantiator_buttons):
9245 (image_instantiator_edit_fields):
9246 (image_instantiator_combo_box):
9247 (image_instantiator_scrollbar):
9248 (image_instantiator_progress_guage):
9249 (image_instantiator_tree_view):
9250 (image_instantiator_tab_control):
9251 (image_instantiator_labels):
9252 (image_instantiator_layout): call default post_instantiate method.
9253 (widget_post_instantiate): new function. Simply lays out the
9256 * glyphs.h (struct image_instantiator_methods): add
9257 post_instantiate method.
9259 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9262 2000-04-23 Andy Piper <andy@xemacs.org>
9264 * glyphs.h (struct image_instantiator_methods): add
9265 decode_domain_method.
9266 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9267 derived from the domain.
9268 (IMAGE_INSTANCE_FRAME): new accessor.
9269 (XIMAGE_INSTANCE_FRAME): ditto.
9271 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9272 instead of _SUBWINDOW_FRAME.
9273 (finalize_image_instance): ditto.
9274 (Fimage_instance_foreground): ditto.
9275 (Fimage_instance_background): ditto.
9276 (image_instantiate): ditto.
9277 (update_subwindow_cachel): ditto.
9278 (update_subwindow): ditto.
9279 (unmap_subwindow): ditto.
9280 (map_subwindow): ditto
9281 (subwindow_instantiate): ditto.
9282 * glyphs-msw.c (mswindows_update_widget): ditto.
9283 (mswindows_progress_gauge_instantiate): ditto.
9284 (mswindows_tab_control_update): ditto.
9285 * glyphs-x.c (x_update_widget): ditto.
9286 (x_widget_instantiate): ditto.
9287 (x_tab_control_instantiate): ditto.
9288 (x_tab_control_update): ditto.
9289 * event-msw.c (mswindows_wnd_proc): ditto
9291 * glyphs-widget.c (image_instantiator_layout): use
9292 subwindow_decode_domain.
9293 (image_instantiator_buttons): ditto.
9294 (image_instantiator_edit_fields): ditto.
9295 (image_instantiator_combo_box): ditto.
9296 (image_instantiator_scrollbar): ditto.
9297 (image_instantiator_progress_guage): ditto.
9298 (image_instantiator_tree_view): ditto.
9299 (image_instantiator_tab_control): ditto.
9300 (image_instantiator_labels): ditto.
9301 (image_instantiator_layout): ditto.
9303 * glyphs.c: add instance error checking to many functions.
9304 (instantiate_image_instantiator): decode device from cache_domain.
9305 (image_instantiate): partially rewrite by using
9306 decode_image_instantiator_domain to determine what domain the
9307 instance needs to be cached in.
9308 (decode_image_instantiator_domain): new function. Determine what
9309 domain the image needs to be cached in.
9310 (check_window_subwindow_cache): new error checking function.
9311 (check_instance_cache_mapper): ditto.
9312 (check_image_instance_structure): ditto.
9313 (subwindow_decode_domain): new function. Encodes a window as a
9314 subwindow's cache domain.
9315 (image_instantiator_format_create): use it for text and
9318 2000-04-21 Andy Piper <andy@xemacs.org>
9320 * glyphs.c (image_instance_device): new function.
9321 (image_instance_frame): new function.
9322 (image_instance_window): new function.
9323 (image_instance_live_p): new function.
9325 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9328 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9329 (IMAGE_INSTANCE_DOMAIN): new accessor.
9330 (XIMAGE_INSTANCE_DOMAIN): ditto.
9332 * glyphs-x.c (x_finalize_image_instance): device->domain.
9334 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9335 (mswindows_finalize_image_instance): ditto.
9337 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9338 (gif_instantiate): ditto.
9339 (png_instantiate): ditto.
9340 (tiff_instantiate): ditto.
9342 * glyphs.c (instantiate_image_instantiator): use domain rather
9344 (mark_image_instance): device -> domain.
9345 (print_image_instance): ditto.
9346 (finalize_image_instance): ditto.
9347 (image_instance_equal): ditto.
9348 (allocate_image_instance): ditto.
9349 (Fcolorize_image_instance): ditto.
9350 (query_string_geometry): ditto.
9351 (image_instantiate): ditto
9352 (query_string_font): ditto.
9353 (image_instantiate): ditto.
9354 (update_subwindow): ditto.
9355 (unmap_subwindow): ditto.
9356 (map_subwindow): ditto.
9357 (subwindow_instantiate): ditto.
9359 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9360 (DOMAIN_FRAME): ditto.
9361 (DOMAIN_WINDOW): ditto.
9362 (DOMAIN_LIVE_P): ditto.
9363 (XDOMAIN_DEVICE): ditto.
9364 (XDOMAIN_FRAME): ditto.
9365 (XDOMAIN_WINDOW): ditto.
9367 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9368 a valid specifier domain.
9370 2000-04-19 Andy Piper <andy@xemacs.org>
9372 * glyphs-widget.c (syms_of_glyphs_widget): remove
9373 widget-callback-current-channel.
9374 (vars_of_glyphs_widget): ditto.
9377 * gui.c (get_gui_callback): revert to previous behaviour.
9379 2000-04-18 Andy Piper <andy@xemacs.org>
9381 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9382 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9383 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9385 * glyphs.c (image_instance_equal): add margin_width.
9386 (image_instance_hash): ditto.
9388 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9389 (layout_query_geometry): ditto.
9390 (layout_layout): ditto.
9391 (syms_of_glyphs_widget): add margin-width.
9392 (image_instantiator_layout): allow margin-width.
9394 * glyphs.c (update_widget_instances): make a normal function.
9395 (syms_of_glyphs): remove Qupdate_widget_instances.
9398 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9399 so that we don't corrupt ideas about the last event or
9400 command. Remove widget-callback-current-channel fiddling.
9401 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9403 2000-05-01 Martin Buchholz <martin@xemacs.org>
9405 * XEmacs 21.2.33 is released.
9407 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9409 * make-src-depend: Allow dots in header file name.
9411 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9413 * mule-charset.h (struct charset_lookup): Add
9414 next_allocated_1_byte_leading_byte and
9415 next_allocated_2_byte_leading_byte.
9416 * mule-charset.c: Move above two variables so that those values
9419 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9421 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9422 when string length is zero.
9423 (find_charsets_in_emchar_string): Ditto.
9425 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9427 * lisp.h: extern Qdialog and Qmenubar.
9429 * gui-x.c: added events.h.
9430 also fixed typo which made the file uncompilable.
9432 * general.c: Added Qmenubar and Qdialog
9434 2000-04-28 Ben Wing <ben@xemacs.org>
9436 * frame-msw.c (mswindows_init_frame_1):
9437 * frame-msw.c (mswindows_mark_frame):
9438 * event-msw.c (mswindows_enqueue_dispatch_event):
9440 * console-msw.h (struct mswindows_frame):
9441 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9442 there are now three hash tables for callbacks.
9443 mswindows_enqueue_dispatch_event is no longer static.
9445 * dialog-x.c (maybe_run_dbox_text_callback):
9446 * dialog-x.c (dbox_descriptor_to_widget_value):
9447 switch to new cons3 form for callbacks.
9449 * glyphs-msw.c (mswindows_register_gui_item):
9450 * glyphs-msw.c (mswindows_widget_instantiate):
9451 * glyphs-msw.c (add_tree_item):
9452 * glyphs-msw.c (add_tab_item):
9453 new image instance parameter, so it can be passed to callback-ex.
9454 respect :callback-ex as well as :callback.
9456 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9459 * glyphs.c (print_image_instance):
9460 prettify, e.g. now prints widget type.
9463 certain funs have new image instance parameter.
9466 * gui.c (get_gui_callback):
9467 * gui.c (gui_item_add_keyval_pair):
9468 * gui.c (gui_item_init):
9469 * gui.c (gui_add_item_keywords_to_plist):
9470 * gui.c (mark_gui_item):
9471 * gui.c (gui_item_hash):
9472 * gui.c (gui_item_equal):
9473 * gui.c (copy_gui_item):
9474 * gui.c (syms_of_gui):
9475 recognize callback-ex in a number of places.
9476 also, fix the annoying "can't get out of yes-no dialog" bug.
9479 * gui.h (struct Lisp_Gui_Item):
9480 recognize callback-ex in a number of places.
9482 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9483 new parameter in button_item_to_widget_value.
9485 * glyphs-x.c (x_update_widget):
9486 * glyphs-x.c (x_button_instantiate):
9487 * glyphs-x.c (x_button_update):
9488 * glyphs-x.c (x_progress_gauge_instantiate):
9489 * glyphs-x.c (x_edit_field_instantiate):
9490 * glyphs-x.c (x_combo_box_instantiate):
9491 * glyphs-x.c (x_tab_control_instantiate):
9492 * glyphs-x.c (x_label_instantiate):
9493 new image instance parameter in various places.
9496 * event-Xt.c (enqueue_Xt_dispatch_event):
9497 this fun gets exported.
9500 * gui-msw.c (mswindows_handle_gui_wm_command):
9501 handle both :callback and :callback-ex, and generate our own
9502 event because it's one of the callback-ex arguments.
9505 * gui-x.c (popup_selection_callback):
9506 handle both :callback and :callback-ex, and generate our own
9507 event because it's one of the callback-ex arguments.
9508 * gui-x.c (button_item_to_widget_value):
9509 * gui-x.c (gui_items_to_widget_values_1):
9510 * gui-x.c (gui_item_children_to_widget_values):
9511 * gui-x.c (gui_items_to_widget_values):
9512 new image instance parameter in various places.
9514 * fns.c (Freplace_list):
9515 fix small typo in doc string.
9518 declare enqueue_Xt_dispatch_event.
9520 2000-04-28 Ben Wing <ben@xemacs.org>
9523 * buffer.c (Frecord_buffer):
9524 * buffer.c (syms_of_buffer):
9525 delete record-buffer-hook.
9528 * fns.c (Freplace_list):
9529 * fns.c (syms_of_fns):
9530 new primitive replace-list.
9533 slot for old buffer-alist.
9539 * redisplay.c (redisplay_frame):
9540 * redisplay.c (syms_of_redisplay):
9541 * redisplay.c (vars_of_redisplay):
9542 new hook buffer-list-changed-hook.
9545 2000-04-27 Ben Wing <ben@xemacs.org>
9547 * extents.h: extern in_modeline_generation.
9549 * redisplay.c (generate_formatted_string_db): set
9550 in_modeline_generation.
9552 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9553 flags if in modeline generation. otherwise frame-modified-tick
9554 is ticked far too often.
9555 Declare in_modeline_generation.
9557 2000-04-26 Ben Wing <ben@xemacs.org>
9559 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9561 (vars_of_emacs): add quick-build as an error-checking option.
9562 A bit kludgy, but there doesn't seem much point in creating
9563 a real var for this.
9565 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9567 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9569 * redisplay.h (struct display_line): Add a new variable,
9572 * redisplay.c (create_text_block): Set dl->line_continuation if
9574 (create_string_text_block): Ditto.
9575 (regenerate_window_incrementally): Use line_continuation instead
9576 of searching continuation glyph.
9577 (add_margin_runes): Call add_glyph_rune.
9578 (add_glyph_rune): Handle margin glyph.
9580 2000-04-20 Martin Buchholz <martin@xemacs.org>
9582 * filelock.c (fill_in_lock_file_name):
9584 Check for IS_ANY_SEP instead of '/'.
9586 Avoid generating gratuitous garbage. Call user_login_name() directly.
9587 Never check errno without first seeing that system call failed.
9588 (unlock_file): Add GCPRO.
9589 (Flock_buffer): Fix docstring.
9590 (Ffile_locked_p): Fix docstring. Add GCPRO.
9592 2000-04-19 Martin Buchholz <martin@xemacs.org>
9594 * sysdep.c (get_pty_max_bytes):
9595 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9596 strings longer than 252 bytes.
9598 * md5.c: Unconditionally include ANSI header <limits.h>
9600 * glyphs-x.c (convert_EImage_to_XImage):
9601 * lisp-union.h (union Lisp_Object):
9602 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9604 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9606 * filelock.c (current_lock_owner): Remove unused variable o, p.
9608 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9610 * callint.c: Remove multiply defined symbol Qlet
9611 (syms_of_callint): ditto.
9613 2000-04-14 Andy Piper <andy@xemacs.org>
9615 * general.c (syms_of_general): add last-command, this-command, let
9618 * lisp.h: declare various symbols.
9620 * glyphs.h: declare Qwidget_callback_current_channel;
9622 * glyphs-widget.c (syms_of_glyphs_widget): add
9623 Qgui_callback_current_channel.
9624 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9626 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9627 widget-callback-current-channel when invoking the interactive
9628 arg. Also bind last-command and next-command when invoking the
9630 * gui-x.c (popup_selection_callback): ditto.
9632 * gui.c (get_gui_callback): massage args so that we are always
9633 calling eval. This allows us to add our own variable bindings
9636 * glyphs-x.c (x_button_instantiate): use
9637 gui_items_to_widget_values since this is GC safe.
9638 (x_progress_gauge_instantiate): ditto.
9639 (x_edit_field_instantiate): ditto.
9640 (x_label_instantiate): ditto.
9642 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9643 (emacs_Xt_event_widget_focus_out): new function
9644 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9646 (emacs_Xt_event_add_widget_actions): new function. add focus
9647 functions as actions.
9648 (init_event_Xt_late): use it.
9650 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9652 * event-stream.c (Fdispatch_event): Doc fix.
9654 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9656 * postgresql.c: Remove all references to PQsetenv*.
9658 * postgresql.h: Remove references to PGsetenvHandler object.
9659 * lrecord.h (lrecord_type): Ditto.
9661 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9663 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9664 real_heigh and real_width members, and accessor macros for these.
9666 * glyphs-msw.c (init_image_instance_geometry): New function.
9667 (init_image_instance_from_dibitmap): Use it.
9668 (mswindows_resource_instantiate): Use it.
9669 (init_image_instance_from_xbm_inline): Use it.
9670 (mswindows_initialize_image_instance_mask): Use real bitmap
9672 (mswindows_create_resized_bitmap): Ditto.
9673 (mswindows_create_resized_mask): Ditto.
9675 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9676 and bitmap to their surface size.
9678 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9680 * process-unix.c (unix_send_process): Guard against process MIA
9681 after Faccept_process_output.
9683 2000-04-11 Ben Wing <ben@xemacs.org>
9685 * eval.c (unbind_to_hairy): fix brokenness introduced by
9686 nanosecond speed improvements.
9688 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9690 * sunplay.c (init_device): To play sounds correctly, the device
9691 apparently needs to be initialized at least once by XEmacs. Make
9694 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9696 * redisplay.c (add_margin_runes): Add text image glyph
9699 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9701 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9702 gcc is newer than 2.5.
9704 2000-04-06 Colin Rafferty <colin@xemacs.org>
9706 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9708 * fns.c (size_bit_vector):
9709 * alloc.c (size_vector):
9710 (make_vector_internal):
9711 (make_bit_vector_internal):
9712 (sweep_bit_vectors_1):
9713 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9715 2000-04-06 Andy Piper <andy@xemacs.org>
9717 * gmalloc.c (malloc): undo previous change.
9722 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9724 * line-number.c (buffer_line_number): Revert to former version.
9726 2000-04-06 Andy Piper <andy@xemacs.org>
9728 * gmalloc.c (malloc): add error checking.
9733 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9734 button_item_to_widget_value arg.
9736 * glyphs-x.c (x_button_instantiate): add extra
9737 button_item_to_widget_value arg.
9738 (x_progress_gauge_instantiate): ditto.
9739 (x_edit_field_instantiate): ditto.
9740 (x_label_instantiate): ditto.
9742 * gui-x.c (gui_items_to_widget_values_1): add extra
9743 button_item_to_widget_value arg.
9744 (button_item_to_widget_value): add extra menu_item_p arg.
9746 * gui-x.h: change signature of button_item_to_widget_value.
9748 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9749 button_item_to_widget_value arg.
9751 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9753 * buffer.h (struct buffer): auto_save_modified should be long.
9755 2000-04-05 Andy Piper <andy@xemacs.org>
9757 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9759 (button_query_geometry): give a little more room so that athena
9762 2000-04-05 Andy Piper <andy@xemacs.org>
9764 * faces.c (complex_vars_of_faces): The widget face should inherit
9765 the font of the gui-element face.
9767 2000-04-04 Andy Piper <andy@xemacs.org>
9769 * glyphs-x.c (x_button_update): new function. unconditionally
9770 update a button's state when the instance is dirty.
9771 (image_instantiator_format_create_glyphs_x): add x_button_update.
9772 (x_widget_instantiate): remove old resize cruft.
9774 2000-04-02 Andy Piper <andy@xemacs.org>
9776 * frame.c (change_frame_size_1): The introduction of gutters means
9777 that we need to allow 0 as a potential frame dimension.
9779 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9781 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9782 image glyph if allow_cursor.
9783 (add_hscroll_rune): Don't allow cursor to border glyph.
9784 (create_text_block): Ditto.
9786 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9788 (redisplay_output_layout): Call ensure_face_cachel_complete for
9792 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9794 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9796 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9799 * redisplay-tty.c (tty_output_display_block): Delete the routine
9800 for text image glyph
9801 * redisplay-x.c (x_output_display_block): ditto
9802 * redisplay-msw.c (mswindows_output_display_block): ditto
9804 2000-02-02 Mike Alexander <mta@arbortext.com>
9806 Note: Some of these were committed by accident as part of other
9809 * regex.c (regex_compile): Avoid compiler warnings.
9811 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9813 * nt.h: Declare term_ntproc correctly.
9815 * nt.c: Remove incorrect declaration of get_home_directory which
9816 is declared correctly in lisp.h.
9818 * keymap.c (get_keyelt): Avoid compiler warnings.
9819 (raw_lookup_key_mapper): Avoid compiler warnings.
9821 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9823 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9825 * filemode.c (mode_string): Avoid compiler warnings.
9827 * file-coding.c (Fcoding_system_aliasee): Add return statement to
9830 * events-mod.h: Undef some things that winuser.h defines differently.
9832 * data.c (Faset): Avoid compiler warnings.
9834 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9836 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9838 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9839 Fall through to simple beep on error.
9840 Replace "extern" by real header file.
9842 * linuxplay.c: Use nativesound.h
9843 (play_sound_data): Return error code. Be less verbose on error.
9845 * sunplay.c: Use nativesound.h
9846 (play_sound_data): Return error code. Be less verbose on error.
9848 * ntplay.c: Use nativesound.h
9849 (play_sound_data): Return fake error code
9851 * sgiplay.c: Use nativesound.h
9852 (play_sound_data): Return error code
9854 * hpplay.c: Use nativesound.h, partially implement
9855 new error code. Break compilation until finished.
9856 (play_sound_data): error code.
9858 * nativesound.h (play_sound_file):
9859 (play_sound_data): Prototype in new header.
9861 2000-03-31 Andy Piper <andy@xemacs.org>
9863 * glyphs-widget.c: (button_query_geometry): new function. Adjust
9864 for toggle and radio buttons.
9865 (image_instantiator_buttons): use it.
9867 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9869 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9870 (x_update_horizontal_scrollbar_callback): Return if no mirror was
9871 found. Scrollbar event probably belonged to some old config.
9873 2000-03-31 Andy Piper <andy@xemacs.org>
9875 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9877 (initialize_widget_image_instance): default layout to
9878 LAYOUT_HORIZONTAL rather than 0.
9879 (widget_instantiate): reverse the item list at the end rather than
9881 (layout_layout): re-code for the border text at the front of the
9882 item list rather than at the end.
9883 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9884 provided by the user.
9885 (widget_query_geometry): comment.
9887 2000-03-30 Andy Piper <andy@xemacs.org>
9889 * glyphs-widget.c (image_instantiator_layout): allow standard
9890 widget keywords in layouts.
9892 * gutter.c (output_gutter): cope with nil gutter contents.
9894 * frame.c (Fset_frame_properties): add gutter docs.
9896 2000-03-29 Andy Piper <andy@xemacs.org>
9898 * toolbar-msw.c (TBSTYLE_FLAT): add.
9899 (mswindows_output_toolbar): minor fiddling.
9901 2000-03-29 Andy Piper <andy@xemacs.org>
9903 * gutter.c (output_gutter): force gutter size recalculation if
9904 what we are trying to display won't fit.
9905 (update_gutter_geometry): new function. A per-gutter version of
9906 update_frame_gutter_geometry.
9907 (update_frame_gutter_geometry): use it.
9908 (redraw_exposed_gutter): add extra debugging output.
9910 2000-03-28 Mike Alexander <mta@arbortext.com>
9912 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9913 (pdump_file_unmap): Implement it on Windows
9914 (pdump_file_get): Save alocated handles for pdump_file_unmap
9916 2000-03-28 Andy Piper <andy@xemacs.org>
9918 * gui.c (get_gui_callback): treat Quit specially.
9920 2000-03-27 Andy Piper <andy@xemacs.org>
9922 * glyphs.c (image_instantiate): be careful to check in the same
9925 2000-03-27 Didier Verna <didier@xemacs.org>
9927 * config.h.in: define the proper SMART_INCLUDE macro.
9928 handle renaming of `foo_h_path' to `foo_h_file'.
9930 * database.c: ditto.
9934 * linuxplay.c: ditto.
9936 * terminfo.c: ditto.
9938 * tooltalk.h: ditto.
9940 2000-03-27 Andy Piper <andy@xemacs.org>
9942 * glyphs-msw.c (mswindows_update_widget): make sure the widget
9943 gets updated whenever the face might have changed.
9945 2000-03-26 Mike Alexander <mta@arbortext.com>
9947 * dumper.c (pdump_resource_free): Fix the comment.
9949 2000-03-21 Olivier Galibert <galibert@pobox.com>
9951 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9953 2000-03-22 Mike Alexander <mta@arbortext.com>
9955 * dumper.c: Include Windows headers on Windows
9956 (pdump_resource_free): Add a body to the function
9957 (pdump_load): exe_name -> exe_path and add some comments.
9959 2000-03-25 Mike Alexander <mta@arbortext.com>
9961 * gui.c (copy_gui_item_tree): Return a value in all cases
9963 2000-03-21 Didier Verna <didier@xemacs.org>
9965 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9967 (SMART_INCLUDE): new macro.
9968 (POSTGRES_INCLUDE): new macro to include postgresql headers from
9969 the proper location.
9971 * postgresql.c: use it.
9975 2000-03-24 Andy Piper <andy@xemacs.org>
9977 * gutter.c (redraw_exposed_gutters): must be "in display" when we
9980 2000-03-24 Andy Piper <andy@xemacs.org>
9982 * redisplay-output.c (compare_runes): use image_instance_changed
9983 to detect changes. Do not depend on glyphs_changed, only depend on
9985 (redisplay_output_layout): add debug messages.
9986 (compare_runes): ditto.
9988 * glyphs.h: declare new functions.
9989 (struct Lisp_Image_Instance): remove percent and associated
9992 * gui.h: declare new copying functions.
9994 * gui.c (copy_gui_item_tree): new function.
9995 (copy_gui_item): new function.
9996 (gui_item_id_hash): revert to standard hash.
9997 (gui_item_hash): ditto.
9998 (gui_item_hash_internal): deleted.
9999 (mark_gui_item): mark value.
10000 (gui_item_add_keyval_pair): add value.
10001 (gui_item_init): ditto.
10002 (gui_add_item_keywords_to_plist): ditto.
10003 (gui_item_equal): ditto.
10004 (syms_of_gui): add Q_value.
10006 * glyphs-x.c (x_progress_gauge_update): use pending items and
10007 value for setting the state.
10008 (x_update_widget): don't set items from pending here.
10010 * glyphs-widget.c (update_widget): update items here.
10011 (progress_gauge_set_property): use items for storing value. Put
10012 new value in pending items.
10014 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10015 items for new value. Convert percent -> value.
10016 (mswindows_tab_control_update): don't update items here.
10018 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10019 (update_subwindow): ditto.
10020 (image_instance_changed): new function. Compare hash values and
10021 past and present widget items.
10022 (image_instantiate): We more careful about where we instantiate
10024 (image_instantiate): add error checking.
10026 * gutter.c (syms_of_gutter): use -hook.
10028 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
10030 * console-tty.c (Fset_console_tty_input_coding_system): Use
10032 (Fset_console_tty_output_coding_system): Use Qterminal.
10033 (tty_init_console): Use Qkeyboard and Qterminal.
10035 2000-03-21 Ben Wing <ben@xemacs.org>
10037 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10038 From Mike Alexander <mta@arbortext.com>.
10040 2000-03-21 Ben Wing <ben@xemacs.org>
10042 * event-msw.c (mswindows_need_event): Horrible kludge to fix
10043 process brokenness. Proper implementation to come.
10045 Rename call-process-internal to old-call-process-internal.
10046 New impl. in process.el.
10048 2000-03-21 Martin Buchholz <martin@xemacs.org>
10050 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10052 2000-03-20 Andy Piper <andy@xemacs.org>
10054 * glyphs.c (full_list_hash): make hashes of the same elements in
10055 different orders return different values.
10057 2000-03-20 Martin Buchholz <martin@xemacs.org>
10059 * XEmacs 21.2.32 is released.
10061 2000-03-20 Martin Buchholz <martin@xemacs.org>
10063 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10064 (DFC_MALLOC_USE_CONVERTED_DATA):
10065 Add aliasing-safe casts to allow use with char* or unsigned char*
10068 * eldap.c (Fldap_open):
10069 (Fldap_search_basic):
10072 Make C++-compilable.
10073 Make sure GCPRO'ed variables are initialized.
10074 Use temp variables to avoid repeated calls to Flength.
10076 2000-03-16 Martin Buchholz <martin@xemacs.org>
10079 Make sure PATH_MAX is always defined.
10080 Include limits.h for PATH_MAX.
10081 Deprecate use of MAXPATHLEN.
10083 2000-03-10 Martin Buchholz <martin@xemacs.org>
10085 * emacs.c: Add reinit_vars_of_fileio.
10086 * symsinit.h: Add reinit_vars_of_fileio.
10087 * fileio.c (reinit_vars_of_fileio): New.
10088 * fileio.c (Fmake_temp_name):
10089 Initialize temp_name random number from microseconds to make
10090 collisions even less likely. Initialize always at process startup
10091 time. (make-temp-name) used to return the same file name twice in
10093 Random stylistic fiddling.
10096 2000-03-20 Andy Piper <andy@xemacs.org>
10098 * glyphs.c (image_instantiate): allow text glyphs to be
10099 instantiated in the minibuffer window.
10101 2000-03-19 Andy Piper <andy@xemacs.org>
10103 * glyphs.c (image_instance_hash): be careful about which items we
10106 * glyphs-widget.c (tab_control_set_property): record into pending
10107 items rather than the actual items.
10109 * glyphs-x.c (x_update_widget): use pending items to update with.
10111 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10114 * glyphs.c (mark_image_instance): mark pending items.
10116 * window.c (Fset_window_configuration): record the buffer.
10117 (Fselect_window): totally revert previous change which breaks many
10120 2000-03-18 Andy Piper <andy@xemacs.org>
10122 * glyphs-msw.c (mswindows_tab_control_update): force selected
10125 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10126 window domain cache, otherwise we get inconsistencies at
10127 startup. There is something fishy at startup which can lead to the
10128 minibuffer being the selected window when the gutter content is
10131 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10133 (parse_gui_item_tree_children): ditto.
10134 (parse_gui_item_tree_item): ditto.
10136 * glyphs.c (Fupdate_widget_instances): return something.
10138 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10140 * window.c (Fselect_window): Undo 2000-03-17 change.
10142 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10144 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10145 against v7.0 libraries. Insta-coredump city until the postgres
10148 2000-03-17 Andy Piper <andy@xemacs.org>
10150 * faces.c (complex_vars_of_faces): don't give the widget face an
10151 inherited background pixmap.
10153 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10156 * event-stream.c (Fdispatch_non_command_events): return something.
10158 * gutter.c (output_gutter): use widget face.
10159 (clear_gutter): ditto.
10161 * NEWS: adjust again.
10163 * window.c (Fselect_window): make sure this runs to completion to
10164 avoid oddities with Fset_window_configuration.
10165 (Fcurrent_window_configuration): in general do not save the
10166 minibuffer as the selected window.
10168 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10170 2000-03-16 Olivier Galibert <galibert@pobox.com>
10172 * emacs.c (Frunning_temacs_p): Revert previous patch.
10173 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10175 2000-03-16 Andy Piper <andy@xemacs.org>
10177 * glyphs-x.c (x_tab_control_update): if no widget values then
10180 * NEWS: update for new features.
10182 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10183 synthetic event to the native system.
10184 (reinit_vars_of_event_Xt): set force_event_pending to
10185 emacs_Xt_force_event_pending.
10187 * events.h (struct event_stream): add force_event_pending.
10189 * specifier.c (recompute_one_cached_specifier_in_window): add
10192 * redisplay.c (redisplay_frame): don't call
10193 update_frame_subwindows. Reset subwindow cachels when
10194 subwindows_changed, removing this was an optimization too far.
10196 * redisplay-output.c (compare_runes): reorganize so that we catch
10197 glyph changes when we want them. Set optimize_output when this
10198 would help layouts.
10199 (redisplay_output_layout): remove frame_really_changed, use
10200 optimize_output instead.
10202 * redisplay-msw.c (mswindows_output_display_block): reset
10203 optimize_output after outputting a glyph.
10204 * redisplay-x.c (x_output_display_block): ditto.
10205 * redisplay-tty.c (tty_output_display_block): ditto.
10207 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10209 (gutter_specs_changed): do specific gutter positions.
10210 (top_gutter_specs_changed): new function. Only update the
10211 specified gutter specs.
10212 (bottom_gutter_specs_changed): ditto.
10213 (left_gutter_specs_changed): ditto.
10214 (right_gutter_specs_changed): ditto.
10216 * gui.c (gui_item_hash_internal): new function, does a real hash.
10217 (gui_item_id_hash): use it.
10218 (gui_item_hash): hash the eval'ed gui_item.
10220 * gui-x.c (popup_selection_callback): send an eval event to call
10221 Fupdate_widget_instances.
10223 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10224 to call Fupdate_widget_instances.
10226 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10227 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10229 * glyphs.c: (update_frame_subwindows): deleted.
10230 (Fupdate_widget_instances): new function for updating the dirty
10231 state of widgets that might have changed.
10232 (syms_of_glyphs): add Qupdate_widget_instances.
10233 (full_list_hash): hash a list completely.
10234 (image_instance_hash): use it for items and properties.
10236 * frame-msw.c (mswindows_size_frame_internal): remove unused
10239 * faces.h (struct face_cachel): fix comment.
10241 * event-stream.c (Fdispatch_non_command_events): new
10242 function. Process non-command events, forcing an event cycle
10244 (syms_of_event_stream): declare.
10245 (event_stream_force_event_pending): new function. Force an event
10246 on the native event queue so that an event cycle will occur next
10250 (struct ntpipe_shove_stream):
10251 (mswindows_enqueue_dispatch_event):
10252 (mswindows_dequeue_dispatch_event):
10253 (mswindows_cancel_dispatch_event):
10254 (mswindows_pump_outstanding_events):
10255 (mswindows_drain_windows_queue):
10256 (mswindows_handle_paint):
10257 (mswindows_wnd_proc):
10258 (mswindows_key_to_emacs_keysym):
10259 (get_process_input_waitable):
10260 (emacs_mswindows_delete_stream_pair): re-indent file.
10261 (mswindows_need_event): do not process further fds if the windows
10262 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10263 fixes the 100% cpu problem.
10264 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10266 2000-03-15 Olivier Galibert <galibert@pobox.com>
10272 * emacs.c: Moved dump file searching to dumper.c.
10273 (Frunning_temacs_p): Fixed.
10275 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10276 last_lrecord_type_index_assigned.
10278 2000-02-20 Olivier Galibert <galibert@pobox.com>
10280 * symsinit.h: Added reinit parameter to init_console_stream
10283 * lisp.h: Added file parameter to pdump_load declaration.
10285 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10286 support. Added dump file searching.
10288 * config.h.in: Added EMACS_PROGNAME.
10290 * console-stream.c (init_console_stream): Fix reinitialisation
10291 when running from temacs.
10293 * alloc.c (pdump): Add id support.
10294 (pdump_load): Add file parameter and signature/id support.
10296 * Makefile.in.in: Add full pdump support.
10298 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10300 * postgresql.c: Update documentation to reflect latest code
10302 (print_result): Show tuple counts in printed representation when
10304 (Fpq_put_nbytes): MULE-ize.
10305 (Fpq_get_line_async): Ditto.
10307 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10309 * postgresql.c (Fpq_lo_import): Fix return value.
10310 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10312 2000-03-13 Ben Wing <ben@xemacs.org>
10314 * alloc.c (pdump_load):
10315 Fix compile warning under mswin.
10317 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10319 * postgresql.c: Mule-ization, bug fixes.
10320 Use PG_CODING to encapsulate coding system name changes.
10321 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10322 (pg-coding-system): Create.
10324 (Fpq_conn_defaults): Mule-ize.
10325 (Fpq_connectdb): Mule-ize & bug fix.
10326 (Fpq_connect_start): Mule-ize.
10327 (Fpq_set_client_encoding): Mule-ize.
10328 (Fpq_finish): Document `DEAD' connection status.
10329 (Fpq_clear): Ditto.
10330 (Fpq_pgconn): Mule-ize.
10331 (Fpq_exec): Mule-ize & bug fix.
10332 (Fpq_send_query): Ditto.
10333 (Fpq_get_result): Ditto.
10334 (Fpq_res_status): Mule-ize.
10335 (Fpq_result_error_message): Mule-ize.
10336 (Fpq_ntuples): fix comments.
10337 (Fpq_fname): Mule-ize.
10338 (Fpq_fnumber): Mule-ize.
10339 (Fpq_ftype): fix comments.
10340 (Fpq_get_value): Mule-ize.
10341 (Fpq_cmd_status): Ditto.
10342 (Fpq_cmd_tuples): Ditto.
10343 (Fpq_oid_value): Ditto.
10344 (Fpq_notifies): Ditto.
10345 (Fpq_lo_import): Ditto.
10346 (Fpq_lo_export): Ditto.
10347 (Fpq_get_line): Ditto.
10348 (Fpq_put_line): Mule-ize and bug fix.
10349 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10351 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10353 * postgresql.c (vars_of_postgresql): Mule-ize.
10354 (Fpq_conn_defaults): Ditto.
10356 2000-03-12 Ben Wing <ben@xemacs.org>
10358 * alloc.c (Fmake_byte_code):
10359 * alloc.c (debug_string_purity_print):
10360 * alloc.c (pdump_backtrace):
10361 * alloc.c (pdump_get_indirect_count):
10362 * alloc.c (pdump_register_sub):
10363 * alloc.c (pdump_register_object):
10364 * alloc.c (pdump_register_struct):
10365 * alloc.c (pdump_dump_data):
10366 * alloc.c (pdump_reloc_one):
10370 * console-msw.c (GetConsoleHwnd):
10371 * console-msw.c (msw_hide_console):
10372 * console-msw.c (msw_show_console):
10373 * console-msw.c (msw_ensure_console_buffered):
10374 * console-msw.c (msw_output_console_string):
10375 * console-msw.c (console_type_create_mswindows):
10377 a) Added functions to manipulate the console window for use with
10380 b) Added support for writing text to the console, which is now
10381 used under Windows when xemacs is not being run non-interactively,
10382 to write text that would otherwise be destined for stdout because
10383 under these circumstances, text written to stdout tends to
10384 disappear and not be seen.
10388 * event-Xt.c (x_event_to_emacs_event):
10389 * event-Xt.c (describe_event_window):
10390 * events-mod.h (XEMACS_MOD_CONTROL):
10392 * events.c (Fmake_event):
10393 * events.c (character_to_event):
10394 * events.c (event_to_character):
10395 * events.c (format_event_object):
10396 * events.c (Fevent_modifiers):
10398 * events.h (struct key_data):
10399 * events.h (struct button_data):
10400 * events.h (struct misc_user_data):
10401 * frame-x.c (Fcde_start_drag_internal):
10402 * frame-x.c (Foffix_start_drag_internal):
10403 * gpmevent.c (Freceive_gpm_event):
10405 * keymap.c (bucky_sym_to_bucky_bit):
10406 * keymap.c (control_meta_superify):
10407 * keymap.c (make_key_description):
10408 * keymap.c (keymap_lookup_directly):
10409 * keymap.c (create_bucky_submap):
10410 * keymap.c (keymap_store):
10411 * keymap.c (define_key_check_and_coerce_keysym):
10412 * keymap.c (define_key_parser):
10413 * keymap.c (define_key_alternate_name):
10414 * keymap.c (Fdefine_key):
10415 * keymap.c (raw_lookup_key_mapper):
10416 * keymap.c (struct map_keymap_unsorted_closure):
10417 * keymap.c (map_keymap_unsorted_mapper):
10418 * keymap.c (map_keymap_sort_predicate):
10419 * keymap.c (map_keymap_sorted):
10420 * keymap.c (accessible_keymaps_mapper_1):
10421 * keymap.c (where_is_recursive_mapper):
10422 * keymap.c (describe_map_mapper):
10423 * keymap.c (describe_map_sort_predicate):
10424 * keymap.c (describe_map):
10425 * keymap.c (complex_vars_of_keymap):
10426 And a number of other files, the key modifier preprocessor
10427 constants that xemacs uses have names that conflict with constants
10428 defined under MS Windows for other purposes, so they were renamed
10429 to begin with the prefix XEMACS_. The variables that hold such
10430 modifiers were changed to consistently be of type int to fix
10431 various compile warnings.
10433 * console.c (complex_vars_of_console):
10436 * device-msw.c (mswindows_finish_init_device):
10437 * device-msw.c (msw_get_workspace_coords):
10438 * device-msw.c (mswindows_device_system_metrics):
10439 and various other files, added support for a new
10440 device property called offset-workspace which returns the position
10441 of the upper left corner of the workspace area and goes along with
10442 the existing size-workspace property.
10445 * dialog-msw.c (push_bufbyte_string_as_unicode):
10446 * dialog-msw.c (mswindows_popup_dialog_box):
10447 Added support for XEmacs-style accelerator specifications in
10448 button text. Note: I didn't add support for this under X Windows,
10449 and somebody needs to do this.
10452 * dialog.c (Fpopup_dialog_box):
10453 Documented the support for accelerators that was just mentioned.
10455 editfns.c (get_home_directory): Changed behavior under Windows
10456 when HOME not defined; former behavior was irretrievably broken.
10459 * emacs.c (main_1):
10461 * minibuf.c (clear_echo_area_internal):
10462 * minibuf.c (echo_area_append):
10464 * print.c (std_handle_out_external):
10465 * print.c (std_handle_out_va):
10467 * print.c (write_string_to_stdio_stream):
10468 * print.c (output_string):
10469 * print.c (debug_print):
10470 * print.c (debug_backtrace):
10471 * print.c (debug_short_backtrace):
10472 Cleaned up the code that prints text to stdout so that this can be
10473 changed to output into a console window instead under MS Windows,
10474 as described above.
10477 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10478 * eval.c (internal_catch):
10479 * eval.c (unwind_to_catch):
10480 * eval.c (throw_or_bomb_out):
10481 * eval.c (condition_case_1):
10482 * eval.c (signal_1):
10483 * eval.c (check_error_state_sanity):
10484 * eval.c (call_with_suspended_errors_1):
10485 * eval.c (call_with_suspended_errors):
10486 * eval.c (reinit_vars_of_eval):
10487 Added code to catch throw loops and check for a pesky bug that may
10491 * event-msw.c (key_needs_default_processing_p):
10492 * event-msw.c (mswindows_wnd_proc):
10493 * event-msw.c (mswindows_modifier_state):
10494 * event-msw.c (emacs_mswindows_quit_p):
10495 * event-msw.c (vars_of_event_mswindows):
10496 a) Added support for using the alt key to select menu items as is
10497 standard under MS Windows. This is controlled using the variable
10498 menu-accelerator-enabled, just like under X Windows. There is an
10499 option on the options menu to turn this support on. I really
10500 think that it should be on by default under Windows, but I'm not
10501 going to make this change yet.
10503 b) Added support for dynamic display size changes under Windows.
10506 * event-stream.c (maybe_echo_keys):
10507 * event-stream.c (Fnext_event):
10508 * event-stream.c (command_builder_find_leaf):
10509 * event-stream.c (lookup_command_event):
10510 * event-stream.c (execute_command_event):
10511 * event-stream.c (pre_command_hook):
10512 * event-stream.c (post_command_hook):
10513 * event-stream.c (syms_of_event_stream):
10514 * event-stream.c (vars_of_event_stream):
10515 * event-stream.c (complex_vars_of_event_stream):
10516 * events.h (struct command_builder):
10518 a) Tried to clean up a little bit the horribly written x-specific
10519 accelerator code that crept into this file. I moved this code
10520 into menubar-x.c where it belongs. I also needed to move the
10521 command builder structure into the file events.h because it is
10522 accessed directly by this accelerator code. What I didn't do, but
10523 which should be done at some point, is to properly abstract this
10524 code using device methods instead of the kludgy way that it
10525 currently hooks into the event code.
10527 b) Added the lisp variables this-command-properties and
10528 last-command- properties, which should be used to synchronize two
10529 adjacent commands in preference to playing games with the variable
10530 this-command, which is typically what happens.
10532 c) Added some slightly nasty code to hook into the lisp support
10533 for shifted- motion-key selection. This is actually necessary for
10534 somewhat complicated reasons, which are described in
10535 simple.el. (NB: I think the proper thing would be to have the code
10536 that calls the pre and post command hooks also call out to generic
10537 lisp functions in simple.el, where all built-in stuff could be
10538 added. I will think about this more.)
10540 * event-unixoid.c (poll_fds_for_input):
10541 * lread.c (readchar):
10542 * redisplay-tty.c (tty_clear_frame):
10543 * redisplay-x.c (x_get_gc):
10544 * signal.c (interrupt_signal):
10545 And a whole bunch of other files: fixed up places that printed
10546 directly to stderr to instead call the function stderr_out so that
10547 the changes I made under Windows work correctly.
10549 * filemode.c (mode_string):
10553 * frame-msw.c (mswindows_size_frame_internal):
10554 Fixed the computation of frame size and position to keep the frame
10555 within the workspace area, rather than within the physical
10556 dimensions of the screen, so that the frame doesn't overlap window
10557 manager decorations, such as the start menu and toolbar, typically
10558 at the bottom of the screen.
10560 * frame.c (vars_of_frame):
10561 Changed the default frame title format under MS Windows to consist
10562 of buffername-XEmacs, which is standard under MS Windows. I think
10563 it might be a good idea to change this everywhere because I think
10564 it is superior to the current frame title format, but this is the
10565 kind of change that is likely to cause some people to get annoyed,
10566 so I'm not making it.
10568 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10570 * gui-msw.c (mswindows_handle_gui_wm_command):
10571 Fixed compile warnings.
10574 * gui-x.c (strdup_and_add_accel):
10575 * gui-x.c (button_item_to_widget_value):
10577 Added code to automatically put an accelerator onto the beginning
10578 of menu items that don't have one as is now the standard, and is
10579 described more later. Also fixed things so that the menu item
10580 name can be an evaluated expression, again a new standard.
10583 * gui.c (gui_item_add_keyval_pair):
10584 * gui.c (make_gui_item_from_keywords_internal):
10585 * gui.c (gui_add_item_keywords_to_plist):
10586 * gui.c (gui_item_accelerator):
10587 * gui.c (gui_name_accelerator):
10588 * gui.c (gui_item_included_p):
10589 * gui.c (gui_item_display_flush_left):
10590 * gui.c (gui_item_display_flush_right):
10591 * gui.c (parse_gui_item_tree_item):
10592 * gui.c (parse_gui_item_tree_children):
10593 * gui.c (parse_gui_item_tree_list):
10594 Mule-ized. Cleanup. GCPRO addition.
10596 * line-number.c (buffer_line_number):
10598 * lisp.h (EMACS_INT_MAX):
10599 Added the manifest constant EMACS_INT_MIN corresponding to the
10600 existing constant EMACS_INT_MAX. This is partially to fix compile
10601 warnings under Windows, and partly for cleanliness.
10604 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10605 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10606 * menubar-msw.c (displayable_menu_item):
10607 * menubar-msw.c (populate_menu_add_item):
10608 * menubar-msw.c (populate_or_checksum_helper):
10609 * menubar-msw.c (populate_menu):
10610 * menubar-msw.c (update_frame_menubar_maybe):
10611 * menubar-msw.c (prune_menubar):
10612 * menubar-msw.c (msw_char_is_accelerator):
10613 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10614 * menubar-msw.c (mswindows_handle_wm_command):
10615 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10616 * menubar-msw.c (mswindows_handle_wm_initmenu):
10617 * menubar-msw.c (mswindows_update_frame_menubars):
10618 * menubar-msw.c (mswindows_free_frame_menubars):
10619 * menubar-msw.c (mswindows_popup_menu):
10620 Fixed a bug in handling accelerators where an extra character
10621 would be displayed in the menu item. Also generalized the
10622 function displayable_menu_item because it is now used by the
10623 dialog box code as well. And finally, added code in the functions
10624 that create the menubar to extract a list of accelerators for the
10625 top level menubar, which is used in the event code to determine
10626 whether a particular alt-key combination should be used to invoke
10627 a menu item, or should be passed through to access the standard
10628 XEmacs keymap binding for this key combination.
10630 Much needed GCPROing.
10633 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10634 * menubar-x.c (menu_item_descriptor_to_widget_value):
10635 * menubar-x.c (restore_in_menu_callback):
10636 * menubar-x.c (x_popup_menu):
10637 * menubar-x.c (menu_move_up):
10638 * menubar-x.c (menu_move_down):
10639 * menubar-x.c (menu_move_left):
10640 * menubar-x.c (menu_move_right):
10641 * menubar-x.c (menu_select_item):
10642 * menubar-x.c (command_builder_operate_menu_accelerator):
10643 * menubar-x.c (menu_accelerator_junk_on_error):
10644 * menubar-x.c (command_builder_find_menu_accelerator):
10645 * menubar-x.c (Faccelerate_menu):
10647 Moved a whole bunch of code here that was previously in
10648 event-stream.c as described above. There is also code connected
10649 to the new standard of adding an accelerator to the beginning of
10650 menu items that don't have one as described above and below.
10653 * menubar.c (menu_parse_submenu_keywords):
10654 * menubar.c (Fmenu_find_real_submenu):
10655 * menubar.c (Fnormalize_menu_item_name):
10656 * menubar.c (syms_of_menubar):
10657 * menubar.c (vars_of_menubar):
10658 * menubar.c (complex_vars_of_menubar):
10660 a) Cleaned up a bunch of documentation and improved it.
10662 b) XEmacs now automatically adds an accelerator onto the beginning
10663 of any menu items that don't have one. I did this because there
10664 will inevitably be some menu items on the main menubar that don't
10665 have accelerators on them because the package that adds that
10666 particular menu item hasn't yet been fixed up to have accelerators
10667 in them and it looked rather strange to have some items with and
10668 some items without accelerators, especially since even in items
10669 without accelerators, you can, at least under windows, still
10670 access the item through an accelerator corresponding to the first
10671 character in the item's name. If people don't like this behavior,
10672 I can add a variable to turn it off optionally, but I'm not sure
10673 this is a good idea because we really do need to have accelerators
10674 on all of the menu items, and if a package doesn't like the
10675 accelerators being put on the first character, then it should put
10676 the accelerators where they belong.
10678 c) I made a behavior change, which is that the descriptor that
10679 specifies the text of the menu item, which formerly was just a
10680 string, can now also be an evaluated expression. This makes this
10681 descriptor parallel with all of the others, which could also be
10682 evaluated expressions. This also obviates the need for the
10683 keyword :label, which was previously listed in the documentation
10684 as unimplemented, and which was for the same purpose.
10689 * ntproc.c (new_child):
10690 * ntproc.c (sys_spawnve):
10691 * ntproc.c (find_child_console):
10692 * ntproc.c (sys_kill):
10693 Fixed compile warnings. By the way, this file should really go
10694 away entirely, and this will happen as soon as Kirill makes his
10695 final round of process cleanups, which affect the function
10699 * process-nt.c (struct nt_process_data):
10700 * process-nt.c (find_process_from_pid):
10701 * process-nt.c (send_signal_the_nt_way):
10702 * process-nt.c (enable_child_signals):
10703 * process-nt.c (find_child_console):
10704 * process-nt.c (send_signal_the_95_way):
10705 * process-nt.c (nt_finalize_process_data):
10706 * process-nt.c (ensure_console_window_exists):
10707 * process-nt.c (nt_create_process):
10708 * process-nt.c (nt_kill_child_process):
10709 * process-nt.c (nt_kill_process_by_pid):
10710 * process-nt.c (nt_open_network_stream):
10711 * process-nt.c (vars_of_process_nt):
10712 Copied over code from Emacs 20.5 to correctly send signals to sub-
10713 processes under Windows 95. Also added code to automatically
10714 create and hide console window when a sub-process is created under
10715 Windows 95, which obviates the need for the separate runemacs.exe
10716 executable, and finally implemented some variables that were
10717 implemented in Emacs 20.5, but previously not in XEmacs. These
10718 include mswindows- start-process-share-console and
10719 mswindows-start-process-inherit-error-mode. (Both of these only
10720 apply to Windows 95.)
10722 * regex.c (regex_compile): Fixed a compile warning.
10725 * select-msw.c (mswindows_own_selection):
10726 * select-msw.c (mswindows_get_foreign_selection):
10727 * select-msw.c (mswindows_disown_selection):
10728 * select-msw.c (console_type_create_select_mswindows):
10729 * select-msw.c (syms_of_select_mswindows):
10730 Cleaned up the file and implemented the device method
10731 selection_exists_p, which had accidentally been left out. Also
10732 removed four lisp functions that were remnants from before the
10733 time when the selection code was properly device abstracted.
10734 These functions are no longer needed because there are generic
10735 equivalents, and because they were added recently and don't exist
10736 in FSF Emacs, I don't think there's any problem with just deleting
10740 * sysdep.c (sys_subshell):
10741 Fixed a compile warning, although in this case there's probably
10742 something wrong with this code, and it ought to be looked into
10743 more thoroughly by somebody who understands it.
10746 * window.c (Fwindow_text_area_height):
10747 * window.c (Fwindow_width):
10748 * window.c (Fwindow_full_width):
10749 * window.c (Fwindow_pixel_width):
10750 * window.c (debug_print_window):
10751 * window.c (syms_of_window):
10752 Added functions window-text-area-height and window-full-width,
10753 which are functions for returning various width and height
10754 characteristics of a window. (One of these functions is necessary
10755 for making the file dialog box work correctly, and the other one
10756 was added for completeness.) Also added a table to the
10757 documentation for window-height which describes the entire scheme
10758 for accessing width and height characteristics of a window.
10760 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10762 * nt.c (fstat): Added a comment for another problem with
10763 non-encapsulated [f]stat(), reported by Adrian Aichner
10764 <aichner@ecf.teradyne.com>.
10766 2000-03-11 Andy Piper <andy@xemacs.org>
10768 * window.c (make_dummy_parent): initialize subwindow instance
10770 (Fset_window_configuration): zero extent_modiff.
10772 2000-03-10 Andy Piper <andy@xemacs.org>
10774 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10775 more changes can be triggered.
10776 (Fredisplay_frame): ditto.
10777 (Fredraw_device): ditto.
10778 (Fredisplay_device): ditto.
10779 (redisplay_frame): make non-static.
10780 (redisplay_frame): call update_frame_gutter_geometry outside of
10783 * gutter.h: declare update_frame_gutter_geometry.
10785 * redisplay.h: declare redisplay_frame.
10787 * gutter.c (update_frame_gutter_geometry): move geometry changes
10788 in update_frame_gutters here. Geometry changes can only occur
10789 outside of redisplay.
10790 (update_frame_gutters): remove geometry change code.
10791 (Fredisplay_gutter_area): make sure that we are in display when we
10792 update and that we have flushed any size changes.
10794 2000-03-11 Andy Piper <andy@xemacs.org>
10796 * alloc.c (pdump_dump_data): remove i & count shadows.
10798 2000-02-27 Mike Alexander <mta@arbortext.com>
10800 * sysdep.h: Declare pdump_read_file
10802 * sysdep.c (pdump_read_file): New function
10804 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10807 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10809 * lrecord.h: add `lrecord_type_pgsetenv'.
10811 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10813 * symsinit.h: declare (vars|syms)_of* functions.
10814 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10816 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
10818 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10820 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10823 * emacs.c (main_1): Call postgres initialization code.
10825 * postgresql.h: New file. PostgreSQL RDBMS support.
10826 * postgresql.c: New file.
10828 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10830 * redisplay-output.c (redisplay_output_display_block): Disable
10833 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10835 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10836 (Fcanna_henkan_next): Ditto.
10837 (Fcanna_bunsetu_henkou): Ditto.
10838 (Fcanna_henkan_kakutei): Ditto.
10839 (Fcanna_henkan_end): Ditto.
10840 (Fcanna_henkan_quit): Ditto.
10841 (Fcanna_henkan_next): Set retun value correctly.
10842 (c2mu): Use unsigned char instead of signed char.
10844 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10846 * emacs.c (main_1): Always call syms_of_gui.
10847 * inline.c: include gui.h
10849 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10851 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10852 converted to Lisp_Object.
10853 (Qtop_bottom): New variable.
10854 (syms_of_redisplay): Initialize it.
10855 * redisplay.h (Vvisible_bell): Ditto.
10856 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10857 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10858 only flash top and bottom.
10860 2000-03-08 Andy Piper <andy@xemacs.org>
10862 * buffer.c (Frename_buffer): record new buffer name the right way.
10864 2000-03-08 Andy Piper <andy@xemacs.org>
10866 * glyphs.c (update_subwindow): increase hash depth so that widget
10867 items get picked up properly.
10869 * redisplay-output.c (compare_runes): increase hash depth so that
10870 widget items get picked up properly.
10872 2000-03-08 Andy Piper <andy@xemacs.org>
10874 * gutter.c (output_gutter): add some debug.
10876 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10877 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10878 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10880 * redisplay-output.c (compare_runes): use display_hash to
10881 determine if glyphs really are not the same.
10883 * glyphs.c (update_subwindow): check display_hash to see if
10884 anything really needs to be updated. If not then do
10885 nothing. Record the display_hash after updating.
10886 (image_instance_equal): compare the image_instance face also.
10888 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
10890 * redisplay.h: Fix comment style.
10892 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
10894 * consle-msw.h (struct mswindows_frame):
10895 Added new member paint_pending to indicate whether a WM_PAINT
10896 magic event has been queued for this frame.
10898 * event-msw.c (mswindows_drain_windows_queue):
10899 Don't queue a WM_PAINT magic event if one is already queued.
10900 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10902 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10904 2000-03-07 Didier Verna <didier@xemacs.org>
10906 * dired.c: #include `regex.h' after `sysfile.h'.
10908 2000-03-06 Martin Buchholz <martin@xemacs.org>
10910 * sound.c (init_nas_sound): Fix compiler warning.
10912 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10914 (MARK_STRUCT_AS_FREE):
10915 (MARK_STRUCT_AS_NOT_FREE):
10916 Make `gcc -fstrict-aliasing' work properly.
10918 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
10920 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10921 (mswindows_delete_device): Call CoUnnitialize().
10923 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10925 2000-02-25 <CraigL@DyCon.com>
10927 * process-nt.c: MinGW now has <shellapi.h>, but still needs
10930 * sysdep.c: This extern declaration for environ prevents MinGW
10931 from finding the variable in CRTDLL.DLL.
10933 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10935 (SHGFI_EXETYPE): ..
10936 (WM_MOUSEWHEEL): ..
10937 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10939 (MMRESULT): Removed, now defined in cygwin's windows headers.
10941 (uid_t,gid_t,pid_t,ssize_t): ..
10942 (_timeb): Removed, MinGW defines both _timeb and timeb.
10943 (HAVE_H_ERRNO): Added.
10944 (HAVE_TZNAME): Added, configure is not detecting this.
10946 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
10948 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10949 * syntax.c (syntax_match): Use it.
10951 * cmds.c: Import auto-fill-chars from FSF Emacs.
10952 (Vauto_fill_chars): New variables.
10953 (internal_self_insert): Check Vauto_fill_chars.
10955 Declare auto-fill-chars as a Lisp variable and initialize it.
10957 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10959 * fileio.c (Fmake_symbolic_link):
10961 Run handlers even if local machine doesn't have symlinks.
10963 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10965 * event-msw.c (mswindows_drain_windows_queue):
10966 Don't generate paint magic events for non-XEmacs frames.
10968 2000-03-05 Andy Piper <andy@xemacs.org>
10970 * redisplay.c (redisplay_frame): generate_displayable_area and
10971 friends assumes that we are not in GC, we therefore have to make
10972 sure that this doesn't happen.
10974 * gutter.c (calculate_gutter_size): generate_displayable_area
10975 assumes that we are not in GC, we therefore have to make sure that
10976 this doesn't happen.
10978 2000-03-05 Martin Buchholz <martin@xemacs.org>
10980 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10982 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10984 * redisplay.c (regenerate_window): Make sure we set a sane value
10985 for end_pos even if we jump out of the loop.
10986 (regenerate_window): Answer Ben's question :-).
10987 (start_end_of_last_line): Add may_error argument.
10988 (start_of_last_line):
10989 (end_of_last_line): Pass may_error = 0.
10990 (end_of_last_line_may_error): New function.
10991 (pixel_to_glyph_translation): Use it, so we don't crash in
10994 2000-03-04 Andy Piper <andy@xemacs.org>
10996 * window.h (struct window): add gutter_extent_modiff.
10998 * window.c (allocate_window): zero out gutter_extent_modiff.
11000 * redisplay.h: declare sync_display_line_structs.
11002 * redisplay.c (add_glyph_rune): add a better comment.
11004 * redisplay-output.c (sync_display_line_structs): made non-static.
11005 (compare_runes): remove unneccesary glyph cachel access.
11007 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11009 * gutter.c (output_gutter): don't output the gutter if extent
11010 changes only involve extents in buffers. use 4 sets of display
11012 (gutter_extent_signal_changed_region_maybe): new function. Mark
11013 extents in gutters as changed.
11014 (update_frame_gutters): use 4 sets of display lines.
11015 (reset_gutter_display_lines): ditto.
11016 (free_frame_gutters): ditto.
11017 (redraw_exposed_gutter): force output of gutters.
11019 * frame.h (struct frame): add 4 sets of gutter display lines.
11021 * extents.c: (extent_changed_for_redisplay): signal changes to
11022 extents in strings in the gutter as well as extents in buffers.
11024 2000-03-02 Andy Piper <andy@xemacs.org>
11026 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11028 * frame.c (Fmake_frame): make sure the gutters get initialized
11029 after the frame is visible.
11030 (set_frame_selected_window): re-arrange compilation macros a
11032 (change_frame_size_1): mark gutters changed.
11034 * device.c (Fset_device_class): mark gutters changed.
11036 2000-03-01 Andy Piper <andy@xemacs.org>
11038 * window.c (window_top_frame_gutter_height): deleted.
11039 (window_bottom_frame_gutter_height): ditto.
11040 (window_left_frame_gutter_height): ditto.
11041 (window_right_frame_gutter_height): ditto.
11042 (window_top_gutter_height): don't use them.
11043 (window_bottom_gutter_height): ditto.
11044 (window_left_gutter_width): ditto.
11045 (window_right_gutter_width): ditto.
11046 (Fsplit_window): ditto.
11047 (Fwindow_pixel_edges): don't use border dimensions here.
11049 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11050 (update_scrollbar_instance): ditto.
11052 * redisplay.c (generate_modeline): don't take gutters into account.
11053 (generate_modeline): ditto.
11054 (redisplay_frame): small gutter display optimization.
11056 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11058 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11059 gutters into account.
11061 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11062 for window position and type.
11064 * gutter.c (get_gutter_coords): fix for frame gutters.
11065 (update_frame_gutters): update frame geometry if the gutters have
11067 (init_frame_gutters): record current gutter geometries.
11069 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11071 (mswindows_widget_instantiate): ditto.
11073 * frame.h (struct frame): add current_gutter_bounds.
11075 * frame.c (change_frame_size_1): position window and minibuffer
11076 appropriately taking into account the frame gutters.
11078 * frame-x.c: (x_initialize_frame_size): take into account the
11081 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11083 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
11085 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11087 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11089 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11091 * file-coding.c (reset_decoding_stream): Clear previous
11092 detection state when autodetect.
11094 2000-02-29 Didier Verna <didier@xemacs.org>
11096 * extents.c (set_extent_glyph_1): don't require extents to be
11099 2000-02-27 Andy Piper <andy@xemacs.org>
11101 * gutter.c (Fset_default_gutter_position): don't default left and
11102 right gutter visibility to t.
11103 (Fset_default_gutter_position): run
11104 default-gutter-position-changed-hook.
11105 (syms_of_gutter): add default-gutter-position-changed-hook.
11107 2000-02-26 Andy Piper <andy@xemacs.org>
11109 * specifier.c (Fmake_specifier): add gutter references.
11111 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11113 * lisp.h: declare Fvalid_plist_p.
11115 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11117 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11118 well as its visibility so that it gets reconstructed.
11119 (construct_window_gutter_spec): new function. Construct a string
11120 to be displayed in the gutter from a plist of strings. Take care
11121 to only use elements that are declared as visible.
11122 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11124 (gutter_validate): allow plists of strings in the specifier.
11125 (gutter_specs_changed): construct the real_gutter from the gutter
11126 specs using construct_window_gutter_spec.
11127 (gutter_visible_validate): gutter-visible is a new specifier type.
11128 (Fgutter_visible_specifier_p): new function for the new specifier.
11129 (syms_of_gutter): declare gutter-visible and
11130 Fgutter_visible_specifier_p.
11131 (specifier_type_create_gutter): intitalize new gutter-visible
11133 (reinit_specifier_type_create_gutter): ditto.
11134 (specifier_vars_of_gutter): use new specifier type for gutter
11136 (init_frame_gutters): construct real_gutter correctly.
11137 (Fgutter_specifier_p): beef up documentation.
11138 (Fgutter_size_specifier_p): ditto.
11140 * winslots.h: add real_gutter slots.
11142 2000-02-25 Andy Piper <andy@xemacs.org>
11144 * device-msw.c: Be kind to older cygwin versions. From Raymond
11145 Toy <toy@rtp.ericsson.se>.
11147 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11148 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11150 2000-02-25 Martin Buchholz <martin@xemacs.org>
11152 * elhash.c (MARK_OBJ): Practice macro hygiene.
11154 2000-02-24 Martin Buchholz <martin@xemacs.org>
11156 * miscplay.c: s/__inline__/inline/g;
11157 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11158 (get_device_compdc): INLINE ==> static inline
11159 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11160 find -name '*.h' | \
11161 xargs global-replace \
11162 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11164 2000-02-25 Andy Piper <andy@xemacs.org>
11166 * window.c (window_top_frame_gutter_height): new function.
11167 (window_top_window_gutter_height): ditto.
11168 (window_top_gutter_height): use them.
11169 (window_bottom_frame_gutter_height): new function.
11170 (window_bottom_window_gutter_height): ditto.
11171 (window_bottom_gutter_height): use them.
11172 (window_left_window_gutter_width): new function.
11173 (window_left_frame_gutter_width): ditto.
11174 (window_left_gutter_width): use them.
11175 (window_right_window_gutter_width): new function.
11176 (window_right_frame_gutter_width): ditto.
11177 (window_right_gutter_width): use them.
11178 (window_pixel_height): new function. calulate window pixel height
11179 with frame gutter involvement.
11180 (Fsplit_window): calculate new sizes taking frame gutters into
11182 (window_char_height_to_pixel_height): don't include frame gutters.
11183 (window_char_height): use window_pixel_height.
11184 (window_pixheight): rename from window_pixel_height.
11185 (change_window_height): use it.
11186 (window_pixel_height_to_char_height): don't include frame gutters.
11187 (window_char_width_to_pixel_width): ditto.
11189 2000-02-25 Andy Piper <andy@xemacs.org>
11191 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11194 2000-02-24 Martin Buchholz <martin@xemacs.org>
11196 * alloc.c (staticpro):
11197 (staticpro_nodump):
11202 (compact_string_chars):
11203 (pdump_dump_wired):
11204 Convert: if (foo) abort(); ==> assert (! foo);
11206 * eldap.c (Fldap_search_basic):
11210 Fix compiler warnings, and possible crashes if (random) return
11211 value were to be used.
11213 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11215 * device-msw.c: Workaround ResetDC failure.
11217 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11218 applying a devmode.
11220 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11221 (mswindows_text_width): Do not start printer page.
11223 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11225 * glyphs-msw.c: Added image methods to msprinter console and
11226 msprinter-specific image instantiation.
11228 2000-02-20 Mike Alexander <mta@arbortext.com>
11230 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11231 to avoid crashes when selection-sets-clipboard is on
11232 (mswindows_own_selection): ditto
11234 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11237 * redisplay-msw.c (get_frame_dc):
11238 (get_frame_compdc):
11240 * device-msw.c (mswindows_init_device):
11241 (mswindows_delete_device):
11242 (msprinter_init_device):
11243 (msprinter_delete_device):
11244 * frame-msw.c (mswindows_init_frame_1):
11245 (mswindows_delete_frame):
11246 (msprinter_init_frame_3):
11247 (msprinter_delete_frame): Move compatible DC to device object from
11248 frame object, for both mswindows and msprinter. Only one at a time
11249 is needed, it is a real waste to have one per frame!
11251 2000-02-23 Andy Piper <andy@xemacs.org>
11253 * glyphs.c: add dynamic width and height elements.
11254 (image_instance_equal): ditto.
11256 * glyphs-widget.c (widget_query_geometry): calculate width and
11257 height dynamically if required.
11258 (initialize_widget_image_instance): initialize dynamic dimensions.
11259 (widget_instantiate): pick-up dynamic dimensions.
11261 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11262 dynamic determination. Add appropriate macros.
11264 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11266 (WINDOW_GUTTER_SIZE): ditto.
11267 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11269 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11271 (get_frame_dc): ditto.
11273 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11276 2000-02-23 Martin Buchholz <martin@xemacs.org>
11278 * XEmacs 21.2.31 is released.
11280 2000-02-22 Ben Wing <ben@xemacs.org>
11282 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11284 2000-02-22 Andy Piper <andy@xemacs.org>
11286 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11288 2000-02-21 Mike Sperber <mike@xemacs.org>
11292 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11295 2000-02-21 Mike Sperber <mike@xemacs.org>
11297 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11299 2000-02-21 Martin Buchholz <martin@xemacs.org>
11301 * XEmacs 21.2.30 is released.
11303 2000-02-20 Martin Buchholz <martin@xemacs.org>
11305 Performance hacking.
11307 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11308 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11309 * emacs.c (main_1):
11311 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11312 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11313 * symeval.h (DEFVAR_SYMVAL_FWD):
11314 * symbols.c (guts_of_unbound_marker):
11315 Make all c_readonly objects also lisp_readonly and marked for life.
11316 * lrecord.h (struct lrecord_implementation):
11317 Document flags better.
11318 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11319 * lrecord.h (DECLARE_LRECORD):
11320 * lrecord.h (XSETRECORD):
11321 * lrecord.h (RECORDP):
11322 * lrecord.h (RECORD_TYPEP):
11323 * lrecord.h (RECORD_MARKER): New.
11324 * lrecord.h (error_check_*):
11325 * lrecord.h (CONCHECK_NONRECORD):
11326 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11327 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11328 * lrecord.h (set_lheader_implementation):
11329 * lrecord.h (enum lrecord_type): New.
11330 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11331 * alloc.c (disksave_object_finalization_1):
11332 * alloc.c (mark_object):
11333 * alloc.c (lrecord_type_index):
11334 * alloc.c (tick_lcrecord_stats):
11335 * alloc.c (Fgarbage_collect):
11336 * alloc.c (init_alloc_once_early):
11337 * alloc.c (pdump_load):
11338 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11339 * alloc.c (lrecord_type_index): Delete.
11340 Make lisp object type indexes be constant.
11341 Makes (byte-compile) 5% faster.
11342 Put all marker functions into their own array.
11343 Makes (garbage-collect) 5% faster.
11344 Optimize SYMBOL_VALUE_MAGIC_P.
11345 Makes (byte-compile) 2-3% faster.
11346 * config.h.in (gc_checking_assert): New.
11347 * alloc.c: Use gc_checking_assert().
11348 * .dbxrc: Make compatible with new object type implementation.
11349 * .gdbinit: Make compatible with new object type implementation.
11350 * alloc.c: Delete all symbols defined only for debugging, such as
11351 Lisp_Type_Vector and lrecord_charset.
11353 2000-02-21 Andy Piper <andy@xemacs.org>
11355 * gui-msw.c (Fmswindows_shell_execute): fix file location
11358 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11359 unshowing so that set_window_buffer doesn't undo
11360 kill_buffer_hook's hard work.
11362 * glyphs-widget.c (tab_control_query_geometry): don't count the
11363 first item when calculating geometry.
11365 * glyphs.c (map_subwindow): remove redundant code.
11366 (update_frame_subwindows): be more circumspect about when to
11369 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11370 when items haven't changed. Update faces if faces have changed as
11371 well as just the widget face.
11372 (x_tab_control_update): Update faces if faces have changed as well
11373 as just the widget face.
11375 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11377 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11379 (build_syscolor_string): Use mswindows_color_to_string to try to
11381 (mswindows_device_system_metrics): Reverse the foreground and
11382 background colors so that they match the documentation.
11384 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11385 they match the default Windows palette.
11386 (mswindows_color_to_string): New function.
11388 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11390 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11392 2000-02-18 Olivier Galibert <galibert@pobox.com>
11394 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11395 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11397 * symbols.c (init_symbols_once_early): Removed obsolete
11398 DATA_SEG_BITS related kludge.
11399 (defvar_magic): Ditto.
11401 * malloc.c: Removed obsolete DATA_SEG_BITS
11403 * mem-limits.h: Ditto.
11405 * Makefile.in.in: Removed obsolete HAVE_SHM
11408 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11410 * device-msw.c (mswindows_delete_device): Free DDE string
11413 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11415 * keymap.c (get_keyelt):
11416 * unexnt.c (unexec):
11417 * vm-limit.c (memory_warnings):
11418 * ntheap.c (recreate_heap):
11419 * ntheap.h (UNINIT_PTR):
11420 * select-msw.c (Fmswindows_get_clipboard):
11421 (Fmswindows_set_clipboard):
11422 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11424 * menubar-msw.c (displayable_menu_item):
11426 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11427 * sysdep.c (sys_subshell):
11428 * process-nt.c (nt_create_process):
11429 * nt.c (normalize_filename):
11430 (dostounix_filename):
11431 (unixtodos_filename):
11432 * ntproc.c (win32_executable_type):
11433 * ntplay.c (play_sound_data_1):
11435 * editfns.c (get_home_directory):
11436 * event-msw.c (struct winsock_stream):
11437 (mswindows_dde_callback):
11438 * device-msw.c (msprinter_init_device):
11439 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11441 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11442 mswindows_clear_toolbar were swapped!
11444 * objects-msw.c:(colormap_t):
11446 * emacs.c (struct standard_args): Fixed const jumble.
11448 * glyphs-widget.c (update_widget): Fixed comparison notation.
11450 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11452 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11453 __declspec(noreturn) syntax.
11455 2000-02-19 Martin Buchholz <martin@xemacs.org>
11457 * eldap.c (Fldap_open):
11458 (Fldap_search_basic):
11461 Use new coding system conversion macros.
11463 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11465 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11467 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11469 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11470 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11472 * eldap.c (Qadd, Qreplace): New constant symbols
11473 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11474 interruptions by XEmacs signals
11475 Remove unnecessary calls to slow_down_interrupts and
11476 speed_up_interrupts
11477 (Fldap_search_basic): Renamed from Fldap_search_internal
11478 Added new optional parameter VERBOSE that triggers the
11479 display of progress messages
11480 Remove unnecessary calls to slow_down_interrupts and
11481 speed_up_interrupts
11482 LDAP result code analysis rewritten
11483 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11484 (syms_of_eldap): Define the new symbols and functions
11487 2000-02-17 Martin Buchholz <martin@xemacs.org>
11489 * realpath.c: Determine PATH_MAX maximally portably.
11491 * insdel.c (bytecount_to_charcount): Optimize.
11492 The function used to be optimized for entirely ASCII sequences.
11493 Now it is optimized for successive characters from the same
11494 charset. This also wins big for _mostly_ ASCII sequences.
11496 * fileio.c (Ffile_truename): convert return from realpath() using
11497 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11498 - Rewrite GCPROing slightly.
11500 * sysdep.c (sys_open): Do filename conversion, like all other
11501 sys_* functions. Fixes bug:
11502 (let ((file-name-coding-system 'iso-8859-2))
11503 (write-region x y latin2-name))
11504 ==> writes filename using internal encoding.
11506 2000-02-18 Martin Buchholz <martin@xemacs.org>
11508 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11509 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11510 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11511 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11512 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11513 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11514 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11515 (CONST_IF_NOT_DEBUG): Delete.
11516 * alloc.c (this_one_is_unmarkable): Delete.
11517 (mark_object): Don't check for this_one_is_unmarkable. Use the
11518 c_readonly flag instead.
11519 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11521 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11523 * event-msw.c (mswindows_drain_windows_queue):
11524 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11525 away redundant repaint events.
11527 2000-02-17 Andy Piper <andy@xemacs.org>
11529 * redisplay.h: declare mark_redisplay_structs.
11531 * redisplay.c (redisplay_window):
11532 (redisplay_frame): don't check subwindows_state_changed.
11533 (mark_redisplay): mark gutters here.
11535 * glyphs.c: (instantiate_image_instantiator): always layout if we
11536 haven't done so already.
11537 (allocate_image_instance): don't mark as dirty.
11538 (update_subwindow): bind inhibit_quit.
11540 * gutter.c (mark_gutters): new function.
11542 * glyphs-x.c (x_update_widget): Always resize to get round a
11545 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11546 breaking absolutely everything.
11548 * gutter.h: declare mark_gutters.
11550 2000-02-16 Martin Buchholz <martin@xemacs.org>
11552 * XEmacs 21.2.29 is released.
11554 2000-02-15 Olivier Galibert <galibert@pobox.com>
11556 * fns.c (size_bit_vector): Fix computation of the size.
11558 2000-02-15 Martin Buchholz <martin@xemacs.org>
11560 * *.[ch]: Change CONST to const globally.
11561 find -name '*.[ch]' | \
11562 xargs global-replace \
11563 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11564 - Remove vestigial references to CONST_IS_LOSING
11566 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11568 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11569 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11570 events instead of dispatching them directly.
11571 (mswindows_handle_paint): New function to do repainting.
11572 (mswindows_wnd_proc):
11573 (emacs_mswindows_handle_magic_event): Call above function.
11575 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11577 * objects-msw.c (mswindows_create_font_variant): Return the new
11579 (initialize_font_instance): Get font metrics from the underlined
11580 variant of the font to cope with the case where the underlined
11581 font has a bigger descent.
11583 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11585 * gui.c (gui_item_accelerator): Return the first underlined
11586 character in item name.
11588 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11590 * lisp.h: Added Qprinter.
11592 * general.c (syms_of_general): Initialized it.
11594 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11596 (get_frame_compdc): Made inline.
11598 * console.h (struct console_methods): Added eject_page method.
11600 * frame.h: Added FRAME_DISPLAY_P and friends.
11601 Aligned backslahes in many macros in more readable fashion.
11602 Added page_number to struct frame, and an accessor macro
11605 * defice.h: Added DEVICE_DISPLAY_P and friends.
11607 * device.c (Fdevice_printer_p): Used these.
11609 * frame.c (allocate_frame_core): Initialize page number.
11610 (Fprint_job_page_number):
11611 (Fprint_job_eject_page): Implemented.
11613 * frame-msw.c (msprinter_eject_page): Added method.
11614 (msprinter_start_page): Added.
11616 * window.c (Fwindow_truncated_p): Fixed docstring.
11617 (Fwindow_last_line_visible_height): Implemented.
11619 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11621 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11623 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11625 * syntax.c (scan_words): Always advance at least one character.
11627 2000-02-13 Andy Piper <andy@xemacs.org>
11629 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11630 to make sure the glyph is in the cachels.
11632 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11633 global image instance flag.
11634 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11635 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11637 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11638 (Fset_image_instance_property): mark layout as changed.
11639 (invalidate_glyph_geometry_maybe): mark layout as changed.
11640 (glyph_width): use new NEEDS_LAYOUT macro.
11641 (glyph_ascent): ditto.
11642 (glyph_descent): ditto.
11643 (glyph_height): ditto.
11644 (image_instance_layout): mark layout as clean after laying out.
11645 (update_subwindow): don't mark layout as clean here.
11647 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11648 should no longer be needed.
11650 * glyphs-x.c (x_update_widget): sanitize asserts.
11651 (x_finalize_image_instance): sanitize assignment to widgets.
11653 * glyphs-widget.c (widget_instantiate): don't need to clear the
11656 2000-02-13 Martin Buchholz <martin@xemacs.org>
11658 * sysdep.c (getcwd): Use standard prototype.
11659 * sysdep.h (getcwd): Use standard prototype.
11661 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11662 (sequence, start, end).
11663 Remove redundant type checking.
11664 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11665 view of `caller-protects') to avoid a crash where the real fix was
11668 2000-02-12 Martin Buchholz <martin@xemacs.org>
11670 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11672 * s/sol2.h: Remove feature macro initialization.
11674 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11675 (vector_hash): New. Code from internal_hash.
11677 Fix up allocation subsystem comments.
11679 * config.h.in: Add __EXTENSIONS__ for Solaris.
11681 * systime.h (EMACS_GETTIMEOFDAY): New.
11682 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11683 Remove Solaris-specific code.
11684 Use void* for the (ignored) second arg for gettimeofday().
11686 * elhash.c (hash_table_hash): Implement it, finally.
11687 * elhash.c: Use hashcode_t.
11689 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11690 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11692 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11693 * fns.c (size_bit_vector):
11694 * alloc.c (size_vector):
11695 (make_vector_internal):
11696 (make_bit_vector_internal):
11697 (sweep_bit_vectors_1):
11698 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11700 2000-02-10 Martin Buchholz <martin@xemacs.org>
11702 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11703 Include strings.h to avoid warnings for bzero and strcasecmp.
11705 2000-02-10 Olivier Galibert <galibert@pobox.com>
11707 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11708 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11710 * fns.c (size_bit_vector): New. Declare bit vectors as a
11713 2000-02-10 Olivier Galibert <galibert@pobox.com>
11715 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11716 use a value field instead.
11717 (symbol_value_forward_forward): Use value field.
11718 (DEFVAR_SYMVAL_FWD): Use value field.
11719 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11720 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11721 (DEFVAR_CONST_INT): Ditto.
11722 (DEFVAR_BOOL): Ditto.
11723 (DEFVAR_CONST_BOOL): Ditto.
11724 (DEFVAR_INT_MAGIC): Ditto.
11725 (DEFVAR_BOOL_MAGIC): Ditto.
11727 * symbols.c (guts_of_unbound_marker): Use value field.
11728 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11729 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11731 * lisp.h: Declare dumpopaque and noninteractive1.
11733 * alloc.c (dumpopaque): Added.
11734 (pdump_dump_opaquevec): Added.
11735 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11736 (pdump_load): Reload opaque data. Sync noninteractive1 with
11739 2000-02-10 Andy Piper <andy@xemacs.org>
11741 * glyphs.c (image_instance_layout): if the size changes, mark it
11744 * redisplay-output.c (redisplay_output_layout): Update the
11746 (redisplay_output_subwindow): ditto.
11748 * glyphs.c (update_subwindow): make sure we reset flags for
11749 layouts as well as everything else.
11751 * glyphs-widget.c (layout_layout): don't need to set the instances
11754 2000-02-09 Martin Buchholz <martin@xemacs.org>
11756 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11757 not HAVE_DLOPEN, which is a lower-level thing.
11759 * .cvsignore: Ignore gmon.out
11761 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11763 * .cvsignore: Ignore portable dumper xemacs.dmp file
11765 2000-02-09 Andy Piper <andy@xemacs.org>
11767 * redisplay-output.c (redisplay_output_layout): be more clever
11768 about when we output based on the changed flags.
11770 * glyphs.h (struct image_instantiator_methods): add update_method.
11771 (struct Lisp_Image_Instance): add changed flags. Declare new
11772 macros for manipulating them.
11774 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11775 (image_instance_parent_glyph): find an image_instance's parent
11776 glyph or image_instance.
11777 (image_instance_layout): mark the size as changed.
11778 (set_image_instance_dirty_p): new function. mark an image
11779 instance, plus all of its parents, as dirty.
11780 (Fset_image_instance_property): use it.
11781 (Fglyph_animated_timeout_handler): use it.
11782 (update_subwindow): call update_widget and device methods for
11783 update_subwindow. Mark all changed flags as clean.
11784 (Fresize_subwindow): mark size as changed.
11786 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11788 (x_update_subwindow): only resize subwindows here.
11789 (x_update_widget): new function. Update all changed properties of
11791 (x_resize_subwindow): deleted.
11792 (x_widget_set_property): deleted.
11793 (x_progress_gauge_set_property): deleted.
11794 (x_progress_gauge_update): new function. Implement recorded
11796 (x_tab_control_update): ditto.
11797 (x_tab_control_set_property): deleted.
11798 (console_type_create_glyphs_x): declare new functions.
11799 (image_instantiator_format_create_glyphs_x): ditto.
11801 * glyphs-widget.c (widget_set_property): mark text changed.
11802 (update_widget): new function. Update properties of a widget.
11803 (widget_instantiate): for layouts make sure we set their
11804 children's parent correctly.
11805 (tab_control_set_property): new function. Record changes that will
11806 take place under redisplay's control.
11807 (progress_gauge_set_property): ditto.
11808 (image_instantiator_progress_guage): declare new functions.
11809 (image_instantiator_tab_control): ditto.
11811 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11813 (mswindows_update_widget): new function. Update all properties on
11814 a widget that have changed.
11815 (mswindows_button_update): new function. Update a button's set
11817 (mswindows_tab_control_update): new function. Update the items in
11819 (mswindows_tab_control_set_property): deleted.
11820 (mswindows_progress_gauge_update): new function. Update the
11821 progress gauge's progress.
11822 (mswindows_widget_set_property): deleted. This is all done
11823 asynchronously now.
11824 (mswindows_progress_gauge_set_property): ditto.
11825 (console_type_create_glyphs_mswindows): declare new methods.
11826 (image_instantiator_format_create_glyphs_mswindows): ditto.
11828 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11829 (msprinter_set_frame_properties): ditto.
11831 * console.h (struct console_methods): Add update_widget_method.
11833 2000-02-09 Andy Piper <andy@xemacs.org>
11835 * gui-msw.c (Fmswindows_shell_execute): Make
11836 mswindows-shell-execute industrial strength.
11838 2000-02-08 Martin Buchholz <martin@xemacs.org>
11840 * lrecord.h: Make macro argument `props' match member function `plist'.
11843 * fns.c (Fremprop):
11844 * fns.c (Fobject_plist):
11847 Object property list frobbing cleanup.
11848 - Allow any lisp object (compared with `eq'), not just symbols, as
11849 keys in object plists.
11850 - Move symbol plist frobbing into symbols.c, where it belongs.
11851 - Move string plist frobbing into alloc.c, where it belongs.
11852 - Everything's an lrecord now, so no need to test for symbolp, etc.
11853 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11855 * extents.c: Reorder code to remove declarations.
11857 * frame.h (store_in_alist): Remove useless declaration.
11859 2000-02-07 Martin Buchholz <martin@xemacs.org>
11861 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11862 * config.h.in: Add HAVE_XCONVERTCASE.
11864 2000-02-07 Andy Piper <andy@xemacs.org>
11866 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11867 it breaks many things.
11869 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11871 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11872 actually can start a common comment type.
11873 * src/syntax.h (SYNTAX_END_P): ditto for end.
11875 2000-02-07 Martin Buchholz <martin@xemacs.org>
11877 * XEmacs 21.2.28 is released.
11879 2000-02-06 Martin Buchholz <martin@xemacs.org>
11881 * event-Xt.c (x_keysym_to_character): New.
11882 (maybe_define_x_key_as_self_inserting_character): New.
11883 (x_has_keysym): New.
11884 Auto-define all keys on the keyboard as self-insert-key.
11886 2000-02-02 Martin Buchholz <martin@xemacs.org>
11888 * menubar.c (vars_of_menubar): A small code simplification.
11890 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11893 * ExternalClient.c:
11894 * EmacsShell-sub.c:
11897 Use consistent style for specifying X resources.
11899 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11900 This makes (dontusethis-set-symbol-value-handler) actually usable.
11902 * lrecord.h (lrecord_decription_type):
11903 * alloc.c (pdump_register_sub):
11906 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11907 Comply with XEmacs coding style.
11908 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11909 args, and XD_LISP_OBJECT_ARRAY with 3 args.
11911 * keymap.c (Faccessible_keymaps):
11912 Make (accessible-keymaps map "\C-h") do the Right Thing.
11913 Make (accessible-keymaps map []) do the Right Thing.
11914 Make (accessible-keymaps map "") do the Right Thing.
11915 (check_keymap_definition_loop): New function.
11916 (keymap_store_internal): Keep luser from shooting self in foot,
11917 via (define-key ctl-x-4-map "p" global-map).
11918 Remove fullness slot from struct Lisp_Keymap, since hash tables
11920 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11922 2000-01-30 Martin Buchholz <martin@xemacs.org>
11924 * redisplay.c (init_redisplay): Fix small memory leak.
11926 * elhash.c (pdump_reorganize_hash_table):
11927 Rename from reorganize_hash_table. Change prototype.
11928 Reuse the original memory for hentries. Save 100k.
11929 * alloc.c (PDUMP_READ): new macro.
11930 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11931 * alloc.c: No need to #ifndef before #undef.
11933 * print.c: Allow debug_print() to print readably by modifying
11934 debug_print_readably. Use consistent variable names.
11936 * .dbxrc: Try to get things to work even if stopped in a function
11937 without source available by explicitly specifying source files.
11938 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11940 * unexnt.c (_start): Removed bogus code which caused loading heap
11941 from differrent executable file.
11942 Removed bogus assignment to _fmode, which caused inconsistencies.
11944 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11946 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11947 Have spawnve encapsulation regard DONT_ENCAPSULATE.
11948 Do not preliminary `#define signal sigset'.
11950 * systime.h: Do not prototype environ on windows nt and cygwin,
11951 this conflicts with system header.
11953 * syssignal.h: Use correct define for WINDOWSNT
11955 * sysdep.h: Do not prototype environ on windows nt, this conflicts
11956 with system header.
11958 * sysdep.c (near start of file): Fixed commentary and rearranged
11959 ifdefs in readable order.
11960 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11963 (end_of_data): Do not compile in if using PDUMP.
11965 * symsinit.h: Prototyped vars_of_nt().
11967 * ntproc.c (windows9x_p): Added, instead of os_subtype.
11968 (find_child_console): Use it.
11969 (sys_kill): Use it.
11971 * ntheap.h: Do not extern os_subtype.
11973 * ntheap.c (cache_system_info): Do not cache unneeded:
11974 nt_major_version, nt_minor_version and os_subtype.
11975 (recreate_heap): Do not compile in when PDUMPing.
11977 * nt.c (geteuid and friends): Use the new varibale
11978 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11979 (init_user_info): Removed the above mentioned hackery.
11980 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11981 stat has been fixed in the C runtime.
11982 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11984 * file-coding.c (struct file_coding_dump): Do not define
11985 ucs_to_mule_table in the struct if not MULE.
11986 (struct struct lrecord_description fcd_description_1): Do not dump
11989 * emacs.c (main_1): Call vars_of_nt().
11990 (right before Fdump_emacs_data): Don't need lastfile if using both
11991 portabe dumper and system malloc.
11993 * alloc.c (Fmemory_limit): Conditionalized out.
11994 (pdump): Use OPEN_BINARY for the portable dump file.
11995 (pdump_load): Ditto.
11997 2000-02-02 Mike Alexander <mta@arbortext.com>
11999 * nt.c (convert_time): Set tm_isdst before calling mktime and
12000 avoid calling it at all if the compiler supports 64 bit integers.
12001 Also initialize utc_base_ft before using it.
12003 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
12005 * frame.c (change_frame_size_1): Take f->internal_border_width
12006 into consideration when calculating the width of the frame.
12008 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12010 * window.c (frame_min_height):
12011 (frame_size_valid_p):
12012 (frame_pixsize_valid_p): Added.
12013 (check_frame_size): Generalized.
12015 * window.h: Prototyped the above.
12018 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12019 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12020 Deleted Vwin32_* and Vbinary_process_* unused variables.
12022 * device-msw.c (msprinter_init_device): Do not get printer font
12023 list; Added DEVMODE functions.
12025 * frame-msw.c: Added lots of printer code.
12027 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12030 * console-msw.h: Added more msprinter device private slots.
12032 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12034 * event-msw.c (key_needs_default_processing_p): Added.
12035 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12037 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12039 * glyphs.c (image_instance_layout): Mark image instance as clean
12041 (glyph_dirty_p): Removed redundant function.
12042 (invalidate_glyph_geometry_maybe): Added.
12043 (update_glyph_cachel_data): Call it.
12045 * glyphs.h: Prototyped it.
12047 * redisplay.c (add_glyph_rune): Call it.
12048 (redisplay_window): Reset glyphs cachels when frame faces have
12049 changed, thus forcing recomputation of built-in border glyphs.
12051 2000-01-30 Martin Buchholz <martin@xemacs.org>
12053 * Makefile.in.in: Make portable dumper and purify play well together.
12054 Add imperfect, but better than nothing, support for pdump.
12055 Remove xemacs.dmp when temacs is re-generated.
12056 Don't ignore errors when dumping xemacs.
12058 * symbols.c (maybe_call_magic_handler): Remove one magic number.
12060 2000-01-28 Andy Piper <andy@xemacs.org>
12062 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12063 (setup_normal_frame): ditto.
12064 (setup_frame_without_minibuffer): ditto.
12065 (setup_minibuffer_frame): ditto.
12066 (delete_frame_internal): ditto.
12067 (Fmake_frame_invisible): ditto.
12068 (Ficonify_frame): ditto.
12070 * window.h: change Fset_window_buffer signature.
12072 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12073 (Fset_window_buffer): allow recording of buffer if the window is
12074 the selected window.
12075 (window_loop): Use new Fset_window signature.
12077 2000-01-23 Daniel Pittman <daniel@danann.net>
12079 * config.h.in: Added template for `HAVE_ATHENA_3D'
12081 2000-01-29 Andy Piper <andy@xemacs.org>
12083 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12085 * gutter.c (output_gutter): Don't output if the window isn't live.
12087 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12089 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12090 of 01/12/00: Moved SetFocus back here where it belongs.
12092 2000-01-23 Andy Piper <andy@xemacs.org>
12094 * s/cygwin32.h: declare printer things.
12096 2000-01-26 Andy Piper <andy@xemacs.org>
12098 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12101 2000-01-24 Andy Piper <andy@xemacs.org>
12103 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12104 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12106 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12108 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12110 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12112 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12113 (mswindows_output_display_block): Avoid local shadows.
12115 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12116 (mswindows_enqueue_mouse_button_event): ditto.
12117 (mswindows_handle_gui_wm_command): remove declaration.
12119 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12122 * console-msw.h: Avoid shadows.
12123 (mswindows_get_toolbar_button_text):
12124 (emacs_mswindows_create_stream_pair):
12125 (emacs_mswindows_delete_stream_pair):
12126 (mswindows_handle_toolbar_wm_command): declare.
12128 * device-msw.c (build_syscolor_string): Avoid shadows.
12130 2000-01-23 Andy Piper <andy@xemacs.org>
12132 * glyphs-widget.c (widget_instantiate): reverse the items for
12133 layouts so that children are in the expected order.
12135 2000-01-28 Martin Buchholz <martin@xemacs.org>
12137 * ralloc.c: safe_bcopy ==> memmove
12138 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12139 * s/msdos.h: Remove BCOPY macros.
12140 * insdel.c (gap_right): Remove BCOPY conditional code.
12141 * insdel.c (gap_left): Remove BCOPY conditional code.
12142 XEmacs demands a working ANSI C compiler - hence memmove.
12144 * regex.c (regex_compile): Remove accidental use of trigraphs.
12146 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12148 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12151 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12153 * event-msw.c (mswindows_drain_windows_queue): Added the
12155 (mswindows_need_event): Commented the call to
12156 mswindows_drain_windows_queue().
12157 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12160 * console-msw.h: Moved a few function prototypes here from
12163 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12164 parameter from unsigned short to unsigned long.
12165 (Fmswindows_shell_execute): Added return value.
12167 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12169 * sysdep.c (init_system_name):
12170 process-unix.c (unix_canonicalized_host_name):
12171 Don't call freeaddrinfo() if getaddrinfo() fails.
12173 * process-unix.c (unix_open_unix_network_stream):
12174 Moved the code to get a port # into address loop.
12176 2000-01-27 Martin Buchholz <martin@xemacs.org>
12178 * buffer.c (reinit_vars_of_buffer):
12179 The right place to initialize conversion_in_dynarr and
12180 conversion_out_dynarr.
12182 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12184 * process-unix.c (unix_canonicalize_host_name): Muleize.
12185 (unix_open_network_stream): Muleize.
12187 * buffer.h: Fix up prototypes for ralloc.c functions.
12189 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12190 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12191 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12192 instead of gethostbyname()
12193 * process-unix.c: In unix_canonicalize_host_name() and
12194 unix_open_network_stream(), add code to use getaddrinfo()
12195 instead of gethostbyname().
12197 2000-01-27 Daniel Pittman <daniel@danann.net>
12199 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12200 libs when built with flat Athena.
12202 2000-01-27 Martin Buchholz <martin@xemacs.org>
12204 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12205 Use coding standards for function prototypes.
12207 2000-01-25 Martin Buchholz <martin@xemacs.org>
12209 * dialog-msw.c (push_lisp_string_as_unicode):
12210 * doc.c (unparesseuxify_doc_string):
12211 * dired.c (Fuser_name_completion_1):
12212 * dired.c (Fuser_name_all_completions):
12213 * dired.c (free_user_cache):
12214 * dired.c (user_name_completion):
12215 * console-x.c (get_display_arg_connection):
12216 * minibuf.c (clear_echo_area_internal):
12217 * minibuf.c (echo_area_append):
12218 * eldap.c (Fldap_open):
12219 * eldap.c (Fldap_search_internal):
12220 * frame-x.c (x_set_frame_text_value):
12221 * frame-x.c (x_set_frame_properties):
12222 * frame-x.c (x_create_widgets):
12223 * redisplay-tty.c (term_get_fkeys_1):
12224 * objects-x.c (x_parse_nearest_color):
12225 * objects-x.c (x_valid_color_name_p):
12226 * objects-x.c (x_initialize_font_instance):
12227 * objects-x.c (x_list_fonts):
12228 * objects-x.c (x_find_charset_font):
12229 * tooltalk.c (Fadd_tooltalk_message_arg):
12230 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12231 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12232 * process-unix.c (unix_create_process):
12233 * ntproc.c (sys_spawnve):
12234 * sound.c (Fplay_sound_file):
12235 * sound.c (Fplay_sound):
12236 * buffer.c (init_initial_directory):
12237 * buffer.c (init_buffer):
12238 * editfns.c (init_editfns):
12239 * editfns.c (Ftemp_directory):
12240 * editfns.c (Fuser_full_name):
12241 * editfns.c (uncache_home_directory):
12242 * editfns.c (get_home_directory):
12243 * editfns.c (Fuser_home_directory):
12244 * editfns.c (Fformat_time_string):
12245 * editfns.c (Fcurrent_time_string):
12246 * gui-x.c (button_item_to_widget_value):
12247 * database.c (Fopen_database):
12248 * event-Xt.c (x_to_emacs_keysym):
12249 * event-Xt.c (x_event_to_emacs_event):
12250 * event-Xt.c (describe_event_window):
12251 * event-msw.c (mswindows_wnd_proc):
12252 * glyphs-eimage.c (jpeg_instantiate):
12253 * glyphs-eimage.c (gif_instantiate):
12254 * glyphs-eimage.c (png_instantiate):
12255 * glyphs-eimage.c (tiff_instantiate):
12256 * glyphs-x.c (xbm_instantiate_1):
12257 * glyphs-x.c (x_xbm_instantiate):
12258 * glyphs-x.c (x_xface_instantiate):
12259 * glyphs-x.c (autodetect_instantiate):
12260 * glyphs-x.c (cursor_font_instantiate):
12261 * glyphs-x.c (x_widget_instantiate):
12262 * glyphs-x.c (x_widget_set_property):
12263 * glyphs-x.c (x_widget_property):
12264 * glyphs-x.c (BUILD_GLYPH_INST):
12265 * print.c (write_string_to_stdio_stream):
12266 * print.c (output_string):
12267 * print.c (Falternate_debugging_output):
12268 * print.c (Fexternal_debugging_output):
12269 * glyphs-msw.c (extract_xpm_color_names):
12270 * glyphs-msw.c (mswindows_xpm_instantiate):
12271 * glyphs-msw.c (bmp_instantiate):
12272 * glyphs-msw.c (resource_name_to_resource):
12273 * glyphs-msw.c (mswindows_resource_instantiate):
12274 * glyphs-msw.c (xbm_instantiate_1):
12275 * glyphs-msw.c (mswindows_xbm_instantiate):
12276 * glyphs-msw.c (mswindows_xface_instantiate):
12277 * glyphs-msw.c (mswindows_widget_instantiate):
12278 * glyphs-msw.c (add_tree_item):
12279 * glyphs-msw.c (add_tab_item):
12280 * glyphs-msw.c (mswindows_combo_box_instantiate):
12281 * glyphs-msw.c (mswindows_widget_property):
12282 * glyphs-msw.c (mswindows_combo_box_property):
12283 * glyphs-msw.c (mswindows_widget_set_property):
12284 * console.c (stuff_buffered_input):
12285 * objects-msw.c (mswindows_initialize_color_instance):
12286 * objects-msw.c (mswindows_valid_color_name_p):
12287 * objects-msw.c (mswindows_list_fonts):
12288 * objects-msw.c (mswindows_font_instance_truename):
12289 * bytecode.c (optimize_compiled_function):
12290 * select-x.c (symbol_to_x_atom):
12291 * select-x.c (x_atom_to_symbol):
12292 * select-x.c (hack_motif_clipboard_selection):
12293 * select-x.c (selection_data_to_lisp_data):
12294 * select-x.c (lisp_data_to_selection_data):
12295 * select-x.c (Fx_get_cutbuffer_internal):
12296 * select-x.c (Fx_store_cutbuffer_internal):
12297 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12298 * buffer.h (TO_INTERNAL_FORMAT): New function.
12299 * emacs.c (make_arg_list_1):
12300 * emacs.c (make_argc_argv):
12301 * emacs.c (main_1):
12302 * emacs.c (Fdump_emacs):
12303 * emacs.c (split_string_by_emchar_1):
12308 * device-x.c (x_init_device):
12309 * device-x.c (Fx_valid_keysym_name_p):
12310 * device-x.c (Fx_get_font_path):
12311 * device-x.c (Fx_set_font_path):
12312 * glyphs.c (bitmap_to_lisp_data):
12313 * glyphs.c (pixmap_to_lisp_data):
12314 * alloc.c (make_ext_string): Use coding system arguments. Update
12316 * alloc.c (build_string):
12317 * callproc.c (child_setup):
12318 * callproc.c (init_callproc):
12319 * fileio.c (lisp_strerror):
12320 * fileio.c (directory_file_name):
12321 * fileio.c (Fexpand_file_name):
12322 * fileio.c (Ffile_truename):
12323 * fileio.c (Fsysnetunam):
12324 * fileio.c (Fdo_auto_save):
12325 * sysdep.c (sys_readdir):
12326 * tests.c: New file. Allow adding C tests.
12327 Replace GET_* macros with a more comprehensible and flexible
12328 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12330 Any coding system can be used to do format conversion.
12331 Eliminate enum external_data_format.
12332 Eliminate convert_to_external_format.
12333 Eliminate convert_to_internal_format.
12334 Make sure file-name, keyboard, terminal, and ctext are always
12335 defined as coding systems or aliases. Make
12336 file-name-coding-system, terminal-coding-system, and
12337 keyboard-coding-system magical variables that are equivalent to
12338 defining the corresponding coding system aliases.
12340 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12341 * file-coding.c (Fcoding_system_alias_p): New function.
12342 * file-coding.c (Fcoding_system_aliasee): New function.
12343 * file-coding.c (append_suffix_to_symbol): New function.
12344 * file-coding.c (dangling_coding_system_alias_p): New function.
12345 * file-coding.c (Ffind_coding_system):
12346 * file-coding.c (Fcopy_coding_system):
12347 * file-coding.c (encode_coding_no_conversion):
12348 * file-coding.c (syms_of_file_coding):
12349 * file-coding.c (vars_of_file_coding):
12350 Rewrite coding system alias code.
12351 Allow nested aliases, like symbolic links.
12352 Allow redefinition of coding system aliases.
12353 Prevent existence of dangling coding system aliases.
12355 * dired.c (Fuser_name_completion_1):
12356 * dired.c (Fuser_name_all_completions):
12357 A crash would happen if user did QUIT in the middle of building
12358 user_name_cache. Remove redundant code in mainline and unwind_protect.
12361 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12363 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12364 an unsigned char *. Update all callers.
12366 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12368 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12370 2000-01-25 Martin Buchholz <martin@xemacs.org>
12372 * elhash.c (hentry_description): Use more portable definition.
12373 (resize_hash_table): Initialize new hentries using
12374 xnew_array_and_zero, thereby simplifying the code.
12376 * mule-charset.c (make_charset): Make sure entire object is
12377 initialized, to avoid Purify warnings.
12379 * alloc.c (resize_string): Fix unlikely crash with big strings.
12381 2000-01-24 Martin Buchholz <martin@xemacs.org>
12383 * realpath.c (xrealpath):
12384 Don't call getwd().
12386 2000-01-25 Martin Buchholz <martin@xemacs.org>
12388 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12390 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12392 * unexelfsgi.c (unexec): Change the way we decide which segment
12393 should be extended.
12395 Assumption that .bss section should be outside the PT_LOADable
12396 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12397 it's present) is inside the 'data' segment. This would fail the
12398 test which was used to find a segment to grow and cover new
12399 heap. Instead of this assumption, I created another one - on IRIX
12400 the segment to grow should start below .bss and it's address
12401 should extent above the end of .bss. Once this segment is
12402 identified, it's grown to accommodate the new heap and new
12403 zero-length .bss section is added at the end of .data2.
12405 2000-01-25 Martin Buchholz <martin@xemacs.org>
12407 * eval.c (Feval): Wrong number of arguments should use original
12408 function, not the indirect_function version of it.
12410 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12412 * glyphs-x.c (x_button_instantiate): Don't add image if
12413 it is not a pixmap.
12414 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12417 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12419 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12421 (DEFVAR_INT_MAGIC): Ditto.
12422 (DEFVAR_BOOL_MAGIC): Ditto.
12423 * glyphs.h: Reindent backslash.
12425 2000-01-24 Martin Buchholz <martin@xemacs.org>
12427 * glyphs-widget.c (layout_query_geometry):
12428 (layout_layout): Use correct types for gheight, gwidth.
12430 2000-01-24 Martin Buchholz <martin@xemacs.org>
12432 * EmacsManager.c (QueryGeometry): Purified.
12434 2000-01-23 Martin Buchholz <martin@xemacs.org>
12436 * alloc.c (make_float): Make sure entire object is initialized, to
12437 avoid Purify warnings.
12438 (pdump_register_sub): Remove useless assignment.
12439 (pdump): Use xmalloc, not malloc.
12440 (pdump_load): Use xmalloc, not malloc.
12442 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12449 * sysdep.c: Removed redundant #include <windows.h>
12451 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12453 * frame.c (delete_frame_internal): Do not delete device when its
12454 implementation so declares.
12455 (delete_frame_internal): Set device selected frame to nil when
12456 last frame goes away.
12458 * device-msw.c (msprinter_device_system_metrics): Implemented.
12459 (mswindows_device_system_metrics): Added 'device-dpi property.
12461 * device.c: (Fdevice_printer_p): Added.
12462 Added 'offset-workspace device metric.
12464 * console.h (device_metrics): Declared DM_offset_workspace.
12466 2000-01-23 Martin Buchholz <martin@xemacs.org>
12468 * fileio.c (Ffile_truename): Remove pointless and confusing
12469 initialization of elen.
12471 * glyphs-widget.c: Compiler warning fixes.
12473 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12475 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12476 instead of a Lisp_Object as argument to make it consistent with
12477 the other LIVE_P macros.
12478 (CHECK_LIVE_PROCESS): New macro.
12480 * process.c: Declare Qprocess_live_p.
12481 (Fprocess_live_p): New function.
12482 (create_process): Use PROCESS_LIVE_P.
12483 (read_process_output): Ditto.
12484 (set_process_filter): Ditto.
12485 (Fdelete_process): Ditto.
12486 (kill_buffer_processes): Ditto
12487 (process_send_signal): Use CHECK_LIVE_PROCESS.
12488 (Fprocess_input_coding_system): Check whether process is still
12489 alive (fix PR#1061).
12490 (Fprocess_output_coding_system): Ditto.
12491 (Fprocess_coding_system): Ditto.
12492 (Fset_process_input_coding_system): Ditto.
12493 (Fset_process_output_coding_system): Ditto.
12495 2000-01-23 Andy Piper <andy@xemacs.org>
12497 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12500 * glyphs.c (mark_image_instance): take into account changed
12501 image_instance format.
12502 (image_instance_equal): ditto.
12503 (image_instance_hash): ditto.
12505 * glyphs-widget.c (widget_instantiate): Incorporate layout
12506 instantiation here. Delay layout of the layout until later.
12507 (layout_instantiate): deleted.
12508 (layout_query_geometry): new function. get the geometry of a
12510 (layout_layout): layout a layout dynamically.
12511 (image_instantiator_widget): New function - splitting up
12512 image_instantiator_format_create_glyphs_widget for netwinder
12514 (image_instantiator_buttons):
12515 (image_instantiator_edit_fields):
12516 (image_instantiator_combo_box):
12517 (image_instantiator_scrollbar):
12518 (image_instantiator_progress_guage):
12519 (image_instantiator_tree_view):
12520 (image_instantiator_tab_control):
12521 (image_instantiator_labels):
12522 (image_instantiator_layout): ditto.
12523 (image_instantiator_format_create_glyphs_widget): Call preceding
12526 2000-01-22 Martin Buchholz <martin@xemacs.org>
12528 * process.c (Fset_process_coding_system):
12529 * device-x.c (Fx_keysym_hash_table):
12532 * lstream.c (Lstream_write): Return documented value, not 0.
12534 * fileio.c (directory_file_name):
12535 (Fsubstitute_in_file_name):
12536 (Fsubstitute_insert_file_contents_internal):
12537 (Fwrite_region_internal):
12542 Remove vestigial APOLLO-conditional code.
12544 2000-01-21 Martin Buchholz <martin@xemacs.org>
12546 * getpagesize.h: Add guard macros.
12547 * libsst.h: Add guard macros.
12548 * libst.h: Add guard macros.
12549 * line-number.h: Add guard macros.
12550 * ndir.h: Add guard macros.
12551 * sysfloat.h: Add guard macros.
12552 * sysfile.h: Add guard macros.
12553 * sysproc.h: Add guard macros.
12554 * syswait.h: Add guard macros.
12555 * xintrinsic.h: Add guard macros.
12556 * xintrinsicp.h: Add guard macros.
12557 * xmmanager.h: Add guard macros.
12558 * xmmanagerp.h: Add guard macros.
12559 * xmprimitive.h: Add guard macros.
12560 * xmu.h: Add guard macros.
12561 * gpmevent.h: Add copyright statement. Add guard macros.
12562 * miscplay.h: Add guard macros.
12563 * *.h: Use consistent C-standards-approved guard macro names.
12565 * opaque.c (make_opaque): Switch parameter order.
12566 * opaque.h (make_opaque): Switch parameter order.
12567 Update all callers.
12568 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12570 * config.h.in (type_checking_assert): Added.
12571 (bufpos_checking_assert): Added.
12573 2000-01-21 Martin Buchholz <martin@xemacs.org>
12575 * alloc.c: Harmless pdump changes.
12577 - spell alignment correctly.
12578 * sysdep.c: Use countof()
12580 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12582 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12583 initially_selected_for_input() console method, default to 0.
12584 (semi_canonicalize_console_connection): Try to delegate to
12585 canonicalize_console_connection if no such console method.
12586 (canonicalize_console_connection): Vice versa.
12587 (print_console): Do not print nil connection.
12589 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12590 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12591 (XDEVIMPF_FRAMELESS_OK): Added.
12592 (CONSOLE_INHERITS_METHOD): Added.
12594 * console-msw.c (mswindows_canonicalize_console_connection):
12596 (mswindows_canonicalize_device_connection): Added.
12598 * console-msw.h (struct msprinter_device): Added this struct and
12600 (mswindows_device): Made fontlist a lisp object.
12602 * device.c (semi_canonicalize_device_connection): Try to delegate
12603 to canonicalize_device_connection if no such console method.
12604 (canonicalize_device_connection): Vice versa.
12605 (print_device): Do not print nil connection.
12607 * device-msw.c (mswindows_init_device): Call InitCommonControls
12609 (mswindows_delete_device): Removed fontlist deallocation.
12610 (mswindows_mark_device): Added.
12612 * events.c (event_equal): Added abort() at unreached code.
12613 (event_hash): Ditto.
12615 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12616 fallback tags of Windows devices.
12618 * general.c (syms_of_general): Initialized Qmsprinter.
12620 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12621 of fallback tags of Windows devices.
12623 * lisp.h: Declared Qmsprinter.
12625 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12627 (mswindows_list_fonts): Ditto.
12628 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12629 that it can be used by both mswindows and msprinter devices.
12630 (initialize_font_instance): Added.
12631 (mswindows_initialize_font_instance): Use it.
12632 (msprinter_initialize_font_instance): Added.
12634 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12635 and implementation flags check.
12636 (redisplay_without_hooks): Changed the call to the above.
12637 (Fredraw_device): Ditto.
12638 (Fredisplay_device): Ditto.
12640 * redisplay-msw.c (get_frame_dc): Implemented.
12641 (get_frame_compdc): Implemented.
12642 (many functions): Use the two functions above to get device
12643 contexts, ether for a window or a printer.
12645 2000-01-21 Olivier Galibert <galibert@pobox.com>
12647 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12648 initialization here.
12649 (init_symbols_once_early): Call it.
12650 * emacs.c (main_1): Call it.
12651 * symsinit.h: Declare it.
12653 2000-01-19 Olivier Galibert <galibert@pobox.com>
12655 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12657 (pdump_backtrace): Ditto.
12658 (pdump_register_object): Ditto. Cleanup use of the pointers.
12659 (pdump_get_entry): Abort if trying to register a null pointer.
12660 (pdump_dump_data): Cleanup types when relocating.
12661 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12662 (pdump_dump_rtables): Remove bad casts.
12663 (pdump_load): Cleanup relocation w.r.t union type. Use a
12664 Lisp_Object instead of a EMACS_INT for the hashtable
12667 2000-01-20 Martin Buchholz <martin@xemacs.org>
12669 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12671 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12673 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12675 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12677 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12679 * faces.h (FACE_STRIKETHRU_P): Added.
12681 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12684 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12685 (mswindows_set_dc_font): New function, aware of font variants,
12686 separated from mswindows_update_dc.
12688 * objects-msw.h (struct mswindows_font_instance_data): Added
12691 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12692 cached fonts and the data structure.
12693 (mswindows_initialize_font_instance): Added creation of font data
12695 (mswindows_print_font_instance): Print at least something.
12696 (mswindows_create_font_variant): Implemented.
12697 (mswindows_get_hfont): Implemented.
12699 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12701 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12702 prototyping problem with msvc.
12704 * emacs.c (main_1): added syms_of_gui_mswindows() call
12706 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12707 syms_of_gui_mswindows() function
12709 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12711 2000-01-18 Martin Buchholz <martin@xemacs.org>
12713 * XEmacs 21.2.27 is released.
12715 2000-01-18 Martin Buchholz <martin@xemacs.org>
12717 * glyphs-eimage.c (struct tiff_error_struct):
12719 (tiff_warning_func):
12720 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12725 * unexec.c: Remove vestigial Lucid C code.
12729 * libsst.c: Ansify.
12730 Remove declarations of errno and strerror().
12732 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12734 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12736 2000-01-16 Martin Buchholz <martin@xemacs.org>
12738 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12741 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12746 Change enum eol_type to eol_type_t.
12748 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12750 * gui.c (get_gui_callback): Check cons before accessing car.
12752 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12754 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12755 (XSETSPECIFIER_TYPE): Ditto.
12757 2000-01-17 Didier Verna <didier@xemacs.org>
12759 * redisplay.c (generate_fstring_runes): compute string size in
12760 characters, not bytes.
12762 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12764 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12766 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12768 * print.c (print_error_message): Call print_prepare().
12770 2000-01-14 Martin Buchholz <martin@xemacs.org>
12772 * .dbxrc: Renamed from dbxrc.
12774 * events.c (event_to_character):
12775 Use `assert (foo)' instead of `if (!foo) abort()'
12777 * .gdbinit (xtype): Add documentation.
12778 * .gdbinit (check-temacs): New function.
12779 * .gdbinit (check-xemacs): New function.
12780 * dbxrc (check-xemacs): New function.
12781 * dbxrc (check-xemacs): New function.
12783 2000-01-14 Andy Piper <andy@xemacs.org>
12785 * glyphs-widget.c (widget_query_geometry): Make sure that we
12786 calculate default dimensions correctly.
12788 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12790 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12792 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12793 pdump_wire'd variable.
12795 * emacs.c: (main_1): Conditionalized calls to
12796 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12798 2000-01-13 Martin Buchholz <martin@xemacs.org>
12800 * window.c (Fset_window_configuration):
12801 * sysdep.c (_start):
12802 * input-method-motif.c (res):
12803 * event-Xt.c (Xt_process_to_emacs_event):
12804 Simple compiler warning fixes.
12806 * bytecode.c (funcall_compiled_function): Use the original
12807 function symbol on the backtrace list in preference to the
12808 compiled_function object in error messages.
12810 2000-01-13 Andy Piper <andy@xemacs.org>
12812 * glyphs-x.c (update_widget_face): Make sure we update the widget
12813 background as well as foreground.
12815 2000-01-13 Andy Piper <andy@xemacs.org>
12817 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12818 fields to subwindow.
12819 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12820 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12821 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12822 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12824 * glyphs-widget.c (check_valid_tab_orientation): new function.
12825 (initialize_widget_image_instance): zero orientation and
12827 (widget_instantiate): pick up orientation.
12828 (tab_control_query_geometry): return appropriate values for
12831 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12832 appropriate creation flags for left, right and bottom tabs.
12834 * s/cygwin32.h: add tab definitions.
12836 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12838 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12839 frame upon hiding a subwindow.
12840 (mswindows_button_instantiate): Changed the push button style to
12842 (mswindows_button_instantiate): Removed button BS_NOTIFY
12844 (mswindows_button_instantiate): Removed redundant check for
12845 a disabled gui item.
12846 (mswindows_button_instantiate): Made use of WS_TABSTOP
12847 consistent: "operable" controls (edit, button, tree, scroll) have
12848 this style, "display-only" ones (static, progress gauge) do
12849 not. This style is currently ignored by XEmacs though. Also,
12850 removed the WS_EX_CONTROLPARENT style - it is not for children,
12851 it is for their parents!
12852 (mswindows_edit_field_instantiate): Ditto.
12853 (mswindows_progress_gauge_instantiate): Ditto.
12854 (mswindows_tree_view_instantiate): Ditto.
12855 (mswindows_tab_control_instantiate): Ditto.
12856 (mswindows_scrollbar_instantiate): Ditto.
12857 (mswindows_combo_box_instantiate): Ditto.
12858 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12859 style to the "clip" window.
12860 (mswindows_button_instantiate): Removed compilation warning by
12861 equally typing terms of the ?: operator.
12863 2000-01-12 Didier Verna <didier@xemacs.org>
12865 * redisplay.c (generate_fstring_runes): new parameter holding the
12866 last modeline-format extent.
12867 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12868 extent, fill the glyph block with it.
12869 (generate_fstring_runes): handle these parameters.
12870 (generate_formatted_string_db): ditto.
12872 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12873 glyphs'extents in the modeline.
12875 1999-01-11 Mike Woolley <mike@bulsara.com>
12877 * ntheap.c: Reduced the reserved heap space from 1Gb down to
12878 256Mb, as a workaround for the non-starting problem many people
12881 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12883 * console-tty.c (Fset_console_tty_output_coding_system):
12884 Force redrawing tty frame.
12886 2000-01-10 Didier Verna <didier@xemacs.org>
12888 * redisplay.c (generate_fstring_runes): fix size computation bug.
12890 2000-01-09 William M. Perry <wmperry@aventail.com>
12892 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12894 2000-01-09 Andy Piper <andy@xemacs.org>
12896 * glyphs-msw.c: index -> i to avoid shadows.
12897 (xbm_create_bitmap_from_data): make static.
12898 (check_valid_string_or_int): deleted.
12899 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12901 * glyphs-x.c (x_update_subwindow): remove unused args.
12903 * glyphs.c (glyph_image_instance): return the thing. Don't set the
12904 back pointer - this is done in allocate_image_instance.
12905 (query_string_font): return Qnil to make the compiler happy.
12906 (unmap_subwindow): set to ~0 to make the compiler happy.
12907 (glyph_query_geometry): comment out until used.
12908 (glyph_layout): ditto.
12910 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12912 * insdel.c (signal_after_change): Remove extraneous unbind_to().