1 2004-08-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * fns.c (simplify_char_spec): Don't allocate new character-object
4 if specified char_spec does not have any CCS-features.
6 * chartab.h: Add EXFUN for Fdefine_char.
8 * chartab.c: Delete EXFUN for Fdefine_char.
10 2004-08-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
12 * fns.c (simplify_char_spec): Use Fdefine_char instead of
13 Ffind_char for char-spec.
15 2004-07-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
17 * lisp-disunion.h (XCHARVAL): Fix condition about
20 2004-07-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
22 * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
24 (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
25 point; use <Emchar> instead of <int> for character-id.
27 2004-07-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
29 * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
30 (make_char): Likewise.
31 (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
33 (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
34 instead of <int> as the type of return value; use <Lisp_Object>
35 instead of <Emchar> as the type of argument.
36 (XCHARVAL[macro version]): Cast the result into <Emchar>.
38 * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
39 syntaxcode> instead of <int>.
41 2004-07-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
43 * chartab.c (put_char_composition): Use DECODE_CHAR to get
44 character corresponding with UCS code point.
45 (Fput_char_attribute): Likewise.
47 * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
48 character in the UCS decoding-table if the char-id is not equal to
51 2004-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
53 * mule-charset.c (Fsave_charset_properties): Use `true-name' only
54 for aliases; write `description'; write
55 `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
58 2004-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
60 * chartab.c (Fsave_char_attribute_table): Don't use
61 `save_charset_properties'.
63 * mule-charset.c (Fsave_charset_properties): Renamed from
64 `save_charset_properties' and changed to Lisp function again;
65 write property `type' as `CCS'; write properties `final-byte' and
66 `mother' if they exists.
67 (syms_of_mule_charset): Revive builtin function
68 `save-charset-properties' when HAVE_LIBCHISE is defined.
70 2004-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
72 * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
73 instead of Vexec_directory.
74 (char_attribute_system_db_file): Likewise.
76 2004-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
78 * chartab.c (Fsave_char_attribute_table): Use
79 `save_charset_properties' for CCS features when HAVE_LIBCHISE is
82 * mule-charset.c (save_charset_properties): Renamed from
83 `Fsave_charset_properties'; changed to non-Lisp function.
84 (syms_of_mule_charset): Abolish builtin function
85 `save-charset-properties'.
87 2004-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
89 * mule-charset.c (Fsave_charset_properties): New function when
90 HAVE_LIBCHISE is defined.
91 (syms_of_mule_charset): Add new builtin function
92 `save-charset-properties' when HAVE_LIBCHISE is defined.
94 2004-06-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
96 * chartab.c (Fput_char_attribute): Convert char-specs in value of
97 `{<-|->}ancient[^*]*' to characters and put reverse links.
98 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
99 for `{<-|->}ancient[^*]*'.
101 2004-06-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
103 * chartab.c (Fput_char_attribute): Convert char-specs in value of
104 `{<-|->}original[^*]*' to characters and put reverse links.
105 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
106 for `{<-|->}original[^*]*'.
108 2004-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
110 * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
112 2004-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
114 * mule-charset.c (Qsystem_char_id): New variable.
116 * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
117 defined and HAVE_LIBCHISE_LIBCHISE is not defined.
119 2004-05-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
121 * chartab.c (Fput_char_attribute): When processing a reference of
122 a character, put into the end of the reversed reference of each
125 2004-05-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
127 * chartab.c (Q_same): Deleted.
128 (Q_same_of): Deleted.
129 (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
130 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
132 (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
134 2004-05-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
136 * chartab.c (Q_vulgar): Deleted.
137 (Q_vulgar_of): Deleted.
138 (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
139 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
141 (syms_of_chartab): Don't define `{<-|->}vulgar'.
143 2004-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
145 * chartab.c (Fput_char_attribute): Convert char-specs in value of
146 `{<-|->}wrong[^*]*' to characters and put reverse links.
147 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
148 for `{<-|->}wrong[^*]*'.
150 2004-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
152 * chartab.c (Q_vulgar): New variable.
153 (Q_vulgar_of): New variable.
154 (Fput_char_attribute): Convert char-specs in value of
155 `{->|<-}vulgar' to characters and put reverse links.
156 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
158 (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
160 2004-04-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
162 * text-coding.c (decode_add_er_char): Must to quote prefix string
165 2004-04-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
167 * mule-charset.c (put_char_ccs_code_point): Store characters of
168 =ucs whose code_points >= 0xF0000.
170 2004-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
172 * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
174 (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
176 (complex_vars_of_mule_charset): Add new coded-charset
177 `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
178 builtin characters over 0xEFFFF.
180 * chartab.c (syms_of_chartab): Don't define symbol
181 `system-char-id' in every case.
183 * char-ucs.h (Qsystem_char_id): New extern variable.
184 (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
186 2004-04-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
188 * text-coding.c (char_encode_utf8): Try to use entity-references
189 for U-000F0000 ... U-0010FFFF.
191 2004-04-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
193 * text-coding.c (ER_BUF_SIZE): New macro.
194 (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
196 (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
197 (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
199 2004-03-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
201 * chartab.c (find_char_feature_in_family): New function.
202 (Fchar_feature): Use `find_char_feature_in_family' with
203 `->identical', `<-subsumptive' and `<-denotational'.
205 2004-03-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
207 * text-coding.c (char_encode_as_entity_reference): Allow prefix
208 within 8 characters; fix infinite loop.
210 2004-03-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
212 * chartab.c (Q_same): New variable.
213 (Q_same_of): New variable.
214 (Fput_char_attribute): Convert char-specs in value of
215 `{->|<-}same' to characters and put reverse links.
216 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
218 (syms_of_chartab): Add new symbols `{->|<-}same'.
220 2004-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
222 * chartab.c (Q_component): New variable.
223 (Q_component_of): Likewise.
224 (Fput_char_attribute): Convert char-specs in value of
225 `{->|<-}ideographic-component-forms' to characters and put reverse
227 (syms_of_chartab): Add new symbols
228 `{->|<-}ideographic-component-forms'.
230 2004-02-24 MORIOKA Tomohiko <tomo@m17n.org>
232 * chartab.c (Q_identical): New variable.
233 (Q_identical_from): New variable.
234 (Fchar_feature): Regard `->identical' as a feature to find
236 (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
237 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
238 for `{->|<-}identical'.
239 (syms_of_chartab): Add new symbols `{->|<-}identical'.
241 2004-02-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
243 * char-ucs.h (encode_char_2): New inline function.
244 (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
246 2004-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
248 * chartab.c (Fput_char_attribute): Convert char-specs to
249 characters in value of `ideographic-structure'.
250 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
251 for `{<-|->}simplified(@...)'.
252 (Fdefine_char): bTry to use predefined character's id.
254 2004-02-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
256 * fns.c (simplify_char_spec): Try to convert builtin chars to
259 2004-02-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
261 * chartab.c (Fput_char_attribute): Convert char-specs in value of
262 `<-simplified[^*]*' to characters and put reverse links.
264 2004-02-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
266 * chartab.c (Q_subsumptive): Renamed from Q_unified.
267 (Q_subsumptive_from): Renamed from Q_unified_from.
268 (Fchar_feature): Use `Q_subsumptive_from' instead of
270 (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
272 (syms_of_chartab): Rename `->unified' to `->subsumptive' and
273 `<-unified' to `<-subsumptive'.
275 2004-02-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
277 * chartab.c (Fchar_feature): Check `<-denotational' to avoid
278 inheritance itself; fix typo; stop recursive search if cyclic
279 inheritance is found.
281 2004-02-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
283 * chartab.c (Q_denotational): New variable.
284 (Q_denotational_from): New variable.
285 (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
286 (put_char_attribute): New function.
287 (Fput_char_attribute): Use `put_char_attribute'; regard
288 `->denotational' and `<-denotational' as same as `->unified' and
290 (syms_of_chartab): Add new symbols `->denotational' and
293 2004-02-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
295 * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
296 `Fget_char_attribute'.
297 (Fchar_variants): Likewise.
298 (get_char_table): Likewise.
299 (Fchar_feature): New function.
300 (put_char_composition): Use `Fchar_feature' instead of
301 `Fget_char_attribute'.
302 (Fput_char_attribute): Likewise; don't put the target character
303 into its `->unified' value.
304 (syms_of_chartab): Add new builtin function `char-feature'.
306 2004-01-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
308 * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
309 `Fget_char_attribute'.
310 (char_encode_utf8): Likewise.
312 * chartab.h: Add an EXFUN for `Fchar_feature'.
314 2004-01-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
316 * chartab.c (Vnext_defined_char_id): New variable.
317 (Fput_char_attribute): Accept characters in `->unified'.
318 (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
319 new characters which are not related with builtin char-id ranges.
320 (vars_of_chartab): Add new variable `next-defined-char-id'.
322 2004-01-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
324 * chartab.c (Q_unified): New variable.
325 (Q_unified_from): New variable.
326 (Fput_char_attribute): Add code for `->unified'.
327 (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
330 2003-11-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
332 * mule-charset.c (decode_ccs_conversion): New function.
333 (decode_defined_char): Use `decode_ccs_conversion'.
334 (decode_builtin_char): Likewise.
336 2003-11-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
338 * char-ucs.h: Change some charset-ids of private coded-charsets.
340 2003-11-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
342 * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
343 (char_encode_as_entity_reference): Likewise.
344 (decode_coding_big5): Modify for `decode_defined_char' and
346 (decode_coding_utf8): Modify for `decode_defined_char'; modify to
347 avoid compiler warning.
348 (decode_coding_iso2022): Modify for `DECODE_CHAR'.
350 * mule-charset.c (decode_defined_char): Add new argument
351 `without_inheritance'.
352 (Fdecode_char): Add new optional argument `without_inheritance'.
353 (Fdecode_builtin_char): Modify for `Fdecode_char'.
355 * fns.c (ids_format_unit): Modify for `Fdecode_char'.
356 (simplify_char_spec): Likewise.
358 * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
361 * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
362 (map_char_table): Likewise.
363 (Fdefine_char): Use `Fdecode_char' without inheritance.
364 (Ffind_char): Modify for `Fdecode_char'.
366 * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
368 * char-ucs.h (decode_defined_char): Add new argument
369 `without_inheritance'.
370 (DECODE_CHAR): Likewise.
371 (MAKE_CHAR): Modify for `DECODE_CHAR'.
373 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
375 * chartab.c (Vchise_system_db_directory): New variable.
376 (vars_of_chartab): Add new variable `chise-system-db-directory'.
378 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
380 * chartab.c: EXFUN `Fmount_char_attribute_table'.
381 (print_chartab_range): Don't define when `UTF2000' is defined.
382 (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
385 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
387 * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
388 and optional argument `rehash' is specified, call
389 `open_chise_data_source_maybe' before
390 `chise_ds_foreach_char_feature_name' is called.
392 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
394 * chartab.c (char_attribute_list_reset_map_func): New function
395 when HAVE_LIBCHISE is defined.
396 (Fchar_attribute_list): Add new optional argument `rehash' when
397 HAVE_LIBCHISE is defined.
398 (open_chise_data_source_maybe): Use "chise-db" instead of
400 (char_attribute_system_db_file): Likewise.
401 (Fload_char_attribute_table): Use
402 `chise_feature_foreach_char_with_value' instead of
403 `chise_char_feature_value_iterate'.
405 2003-10-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
407 * chartab.c (Vchise_db_directory): New variable.
408 (vars_of_chartab): Add new built-in variable `chise-db-directory'.
410 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
412 * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
413 instead of HAVE_CHISE to specify using with libchise.
415 * config.h.in (HAVE_CHISE_CLIENT): Deleted.
417 * chartab.h: Don't use HAVE_CHISE_CLIENT.
419 * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
420 defined or HAVE_LIBCHISE_LIBCHISE is defined.
421 (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
423 (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
424 HAVE_CHISE to specify using with libchise.
425 (syms_of_chartab): Don't define symbol `system-char-id' when
426 HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
428 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
430 * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
431 specify CHISE DB support.
432 (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
433 of `char_attribute_system_db_file' to check feature DB file.
435 * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
436 HAVE_CHISE_CLIENT to specify CHISE DB support.
438 * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
439 specify CHISE DB support.
440 (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
442 (Freset_char_attribute_table): Use `chise_feature_setup_db'
443 instead of `char_attribute_system_db_file' to check feature DB
446 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
448 * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
451 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
453 * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
454 (Fsave_charset_mapping_table): Don't use
455 `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
457 * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
458 (HAVE_LIBCHISE): New macro.
460 * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
462 * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
463 (Fsave_char_attribute_table): Don't use
464 `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
466 2003-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
468 * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
470 (save_uint16_byte_table): Likewise.
471 (save_byte_table): Likewise.
472 (char_table_get_db): Use `chise_ds_load_char_feature_value'
473 instead of `chise_char_load_feature_value'.
474 (Fsave_char_attribute_table): Use libchise when CHISE is defined.
476 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
478 * chartab.h (struct Lisp_Char_Table): Delete member
479 `feature_table' if CHISE is defined.
481 * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
482 (Fcopy_char_table): Likewise.
483 (char_table_open_db_maybe): Likewise.
484 (char_table_close_db_maybe): Likewise.
485 (char_table_get_db): Likewise.
486 (Fmount_char_attribute_table): Likewise.
487 (Fload_char_attribute_table): Likewise.
489 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
491 * mule-charset.c (load_char_decoding_entry_maybe): Use
492 `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
495 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
497 * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
498 instead of `chise_open_data_source'.
499 (Fclose_char_data_source): Use `CHISE_DS_close' instead of
502 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
504 * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
505 instead of `chise_ds_open_feature_table'.
506 (char_table_close_db_maybe): Don't use `chise_ft_close'.
508 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
510 * mule-charset.c (Fsave_charset_mapping_table): Use
511 `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
512 `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
513 `chise_ccs_sync' instead of `chise_ccst_close'.
514 (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
516 * chartab.c (open_chise_data_source_maybe): Modify for
517 `chise_open_data_source'.
518 (char_table_open_db_maybe): Modify for
519 `chise_ds_open_feature_table'.
521 2003-08-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
523 * mule-charset.c (load_char_decoding_entry_maybe): Use
524 `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
527 2003-08-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
529 * mule-charset.c (Fsave_charset_mapping_table): Use
530 `chise_ds_open_ccs_table', `chise_ccst_put_char' and
531 `chise_ccst_close' instead of `chise_ds_open_decoding_table',
532 `chise_dt_put_char' and `chise_dt_close'.
533 (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
534 `chise_ccs_decode' and `chise_ccst_close' instead of
535 `chise_ds_open_decoding_table', `chise_dt_get_char' and
538 * chartab.c (char_table_get_db): Use
539 `chise_char_load_feature_value' instead of `chise_ft_get_value'.
540 (load_char_attribute_table_map_func): Modify for
541 `chise_char_feature_value_iterate'.
542 (Fload_char_attribute_table): Use
543 `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
545 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
547 * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
549 2003-08-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
551 * chartab.c (put_char_table): Modify for inherited coded-charsets
554 2003-08-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
556 * chartab.c (Fput_char_table_map_function): Fixed.
557 (word_boundary_p): Don't check charset in XEmacs CHISE.
559 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
561 * mule-charset.c (Fsave_charset_mapping_table): Use
562 `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
563 instead of `chise_open_decoding_table'; refer
564 `default_chise_data_source'; use `chise_dt_close' instead of
565 `chise_close_decoding_table'.
566 (load_char_decoding_entry_maybe): Likewise.
568 * chartab.c (default_chise_data_source): New variable when `CHISE'
570 (Fcopy_char_table): `ct->ds' is deleted.
571 (open_chise_data_source_maybe): New function.
572 (Fclose_char_data_source): New function.
573 (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
574 use `chise_ds_open_feature_table' instead of
575 `chise_open_feature_table'.
576 (char_table_close_db_maybe): Use `chise_ft_close' instead of
577 `chise_close_feature_table'; `cit->ds' is deleted.
578 (syms_of_chartab): Add new builtin function
579 `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
581 * chartab.h (default_chise_data_source): New extern variable.
582 (open_chise_data_source_maybe): New prototype.
583 (struct Lisp_Char_Table): Delete `ds'.
585 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
587 * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
590 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
592 * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
593 not defined; add code for non-libchise setting.
594 (char_table_close_db_maybe): Likewise.
595 (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
597 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
598 even if `CHISE' is not defined.
599 (Freset_char_attribute_table): Likewise.
600 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
601 `char_table_close_db_maybe' even if `CHISE' is not defined; use
603 (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
604 `char_table_close_db_maybe' even if `CHISE' is not defined.
606 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
608 * chartab.c (char_table_open_db_maybe): New function.
609 (char_table_close_db_maybe): New function.
610 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
611 (Freset_char_attribute_table): Likewise.
612 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
613 `char_table_close_db_maybe'.
614 (Fload_char_attribute_table): Likewise.
616 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
618 * chartab.c: Don't include <chise.h> because it is included in
620 (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
622 (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
624 (Fmount_char_attribute_table): Initialize `ct->feature_table' when
626 (Fclose_char_attribute_table): Close `ct->feature_table' and
627 `ct->ds' when `CHISE' is defined.
628 (Freset_char_attribute_table): Likewise.
629 (load_char_attribute_maybe): Use `cit->ds' and
630 `cit->feature_table' when `CHISE' is defined.
631 (Fload_char_attribute_table): Likewise.
633 * chartab.h: Include <chise.h> when `CHISE' is defined.
634 (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
635 when `CHISE' is defined.
637 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
639 * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
641 (char_table_description): Likewise.
642 (Fmake_char_table): Likewise.
643 (Fcopy_char_table): Likewise.
644 (Fmount_char_attribute_table): Likewise.
645 (Fclose_char_attribute_table): Likewise.
646 (Freset_char_attribute_table): Likewise.
647 (load_char_attribute_maybe): Likewise.
648 (Fload_char_attribute_table): Likewise.
650 * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
653 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
655 * chartab.c (load_char_attribute_table_map_func): New function
656 when CHISE is defined.
657 (Qload_char_attribute_table_map_function): Don't define when CHISE
659 (Fload_char_attribute_table_map_function): Likewise.
660 (Fload_char_attribute_table): Use libchise when `CHISE' is
662 (syms_of_chartab): Don't define
663 `load-char-attribute-table-map-function' when CHISE is defined.
665 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
667 * chartab.c: Include <chise.h> when `CHISE' is defined.
668 (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
670 2003-07-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
672 * mule-charset.c (charset_code_point): Fix problem when searching
673 in mother CCS fails with `defined_only' mode.
675 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
677 * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
678 (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
679 (put_char_composition): Likewise.
680 (Fput_char_attribute): Likewise.
681 (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
683 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
685 * chartab.c (Q_ucs): Deleted.
686 (Fput_char_attribute): Don't refer `->ucs'.
687 (Fdefine_char): Likewise.
688 (Ffind_char): Likewise.
689 (syms_of_chartab): Delete `->ucs'.
691 2003-04-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
693 * mule-charset.c (Qmap_cns11643_2): Renamed from
694 `Qchinese_cns11643_2'.
695 (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
696 `chinese-cns11643-2'.
697 (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
700 2003-04-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
702 * mule-charset.c (Qmap_cns11643_1): Renamed from
703 `Qchinese_cns11643_1'.
704 (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
705 `chinese-cns11643-1'.
706 (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
709 2003-04-24 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
711 * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
712 (syms_of_mule_charset): Add new symbol `=gb12345' instead of
714 (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
717 2003-04-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
719 * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
720 (syms_of_mule_charset): Add new symbol `=gb2312' instead of
722 (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
725 2003-04-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
727 * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
728 (syms_of_mule_charset): Add new symbol `=big5' instead of
730 (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
732 2003-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
734 * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
735 (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
737 (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
740 2003-04-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
742 * mule-charset.c (Qmap_jis_x0212): Renamed from
743 `Qjapanese_jisx0212'.
744 (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
746 (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
749 2003-04-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
751 * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
752 `Qjapanese_jisx0208'.
753 (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
754 of `japanese-jisx0208'.
755 (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
758 2003-04-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
760 * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
761 `Qjapanese_jisx0208_1978'.
762 (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
763 of `japanese-jisx0208-1978'.
764 (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
767 2003-04-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
769 * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
770 only for XEmacs CHISE.
772 2003-04-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
774 * char-ucs.h: Compact non-ISO-IR charset-ids.
775 (LEADING_BYTE_UCS): Changed to -177.
776 (LEADING_BYTE_CONTROL_1): Changed to -77.
777 (LEADING_BYTE_UCS_BMP): Changed to -176.
778 (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
780 2003-04-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
782 * mule-charset.c (Qiso_ir): New variable.
783 (Fmake_charset): Recognise new property `iso-ir'.
784 (syms_of_mule_charset): Add new symbol `iso-ir'.
786 2003-04-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
788 * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
789 n to -n; charset-id of non ISO-IR sets are changed to positive
792 2003-03-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
794 * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
795 for &MCS-XXXXXXXX; values.
797 2003-03-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
799 * mule.c (Vxemacs_chise_version): Renamed from
801 (vars_of_mule): Add new variable `xemacs-chise-version'; define
802 `utf-2000-version' as an alias for `xemacs-chise-version'.
804 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
806 * mule-charset.c: Include <chise.h> when `CHISE' is defined.
807 (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
810 * config.h.in (CHISE): New macro.
812 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
814 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
816 (Qmap_ucs): New variable.
817 (syms_of_mule_charset): Add new symbol `=ucs'.
818 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
820 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
821 (simplify_char_spec): Likewise.
823 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
825 * char-ucs.h (Qmap_ucs): New extern variable.
827 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
829 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
830 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
831 don't define it when UTF2000 is not defined.
832 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
833 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
834 when UTF2000 is not defined.
835 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
836 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
838 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
840 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
842 * mule-charset.c (Vcharset_ucs_gb): Deleted.
844 (syms_of_mule_charset): Delete `ucs-gb'.
845 (complex_vars_of_mule_charset): Likewise.
847 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
849 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
851 * mule-charset.c (Vcharset_ucs_cns): Deleted.
853 (syms_of_mule_charset): Delete `ucs-cns'.
854 (complex_vars_of_mule_charset): Likewise.
856 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
858 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
860 * mule-charset.c (Vcharset_ucs_jis): Deleted.
862 (syms_of_mule_charset): Delete `ucs-jis'.
863 (complex_vars_of_mule_charset): Likewise.
865 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
867 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
869 * mule-charset.c (Vcharset_ucs_ks): Deleted.
871 (syms_of_mule_charset): Delete `ucs-ks'.
872 (complex_vars_of_mule_charset): Likewise.
874 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
876 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
877 (Qideograph_daikanwa_2): Deleted.
878 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
879 (complex_vars_of_mule_charset): Likewise.
881 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
882 (LEADING_BYTE_DAIKANWA_1): Deleted.
883 (LEADING_BYTE_DAIKANWA_2): Deleted.
884 (MIN_CHAR_DAIKANWA): Deleted.
885 (MAX_CHAR_DAIKANWA): Deleted.
887 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
889 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
890 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
891 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
893 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
894 (Vcharset_ideograph_daikanwa): Deleted.
895 (Qideograph_hanziku_{1..12}): Deleted.
896 (Qideograph_daikanwa): Deleted.
897 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
898 Vcharset_ideograph_daikanwa.
899 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
900 `ideograph-hanziku-{1..12}'.
901 (complex_vars_of_mule_charset): Likewise.
903 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
905 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
907 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
908 (Qideograph_gt_pj_{1..11}): Deleted.
909 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
910 (complex_vars_of_mule_charset): Likewise.
912 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
914 * mule-charset.c (Vcharset_ucs_big5): Deleted.
915 (Vcharset_ideograph_gt): Deleted.
916 (Qucs_big5): Deleted.
917 (Qideograph_gt): Deleted.
918 (syms_of_mule_charset): Delete symbol `ucs-big5' and
920 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
923 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
924 (LEADING_BYTE_GT): Deleted.
925 (MIN_CHAR_GT): Deleted.
926 (MAX_CHAR_GT): Deleted.
928 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
930 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
932 2003-01-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
934 * chartab.c (save_uint8_byte_table): Add new argument `filter'.
935 (save_uint16_byte_table): Likewise.
936 (save_byte_table): Likewise; convert values by it.
937 (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
938 for `ideographic-structure'.
939 (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
940 as the filter for `ideographic-structure'.
942 2003-01-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
944 * chartab.c (put_char_composition): New function.
945 (Fput_char_attribute): Use `put_char_composition'; use
946 `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
948 * fns.c (simplify_char_spec): New function.
949 (char_ref_simplify_spec): New function.
950 (Fchar_refs_simplify_char_specs): New function.
951 (syms_of_fns): Add new builtin function
952 `char-refs-simplify-char-specs'.
954 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
956 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
957 (Qideograph_cbeta): Deleted.
958 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
959 (complex_vars_of_mule_charset): Likewise.
961 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
962 (MIN_CHAR_CBETA): Comment out.
963 (MAX_CHAR_CBETA): Likewise.
965 2002-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
967 * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
968 `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
969 CHISE client feature.
971 2002-12-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
973 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
975 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
977 * mule-charset.c (charset_lookup_description_1): Use
978 `NUM_LEADING_BYTES' in UTF-2000.
980 2002-12-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
982 * char-ucs.h (GC_CHARSETP): Deleted.
984 2002-12-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
986 * char-ucs.h (MAX_CHAR_GT): Updated.
988 2002-12-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
990 * text-coding.c: Sync with XEmacs 21.4.10.
992 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
994 * mule-charset.c (Vcharset_china3_jef): Deleted.
995 (Qchina3_jef): Deleted.
996 (syms_of_mule_charset): Don't define `china3-jef'.
997 (complex_vars_of_mule_charset): Likewise.
999 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1000 (MIN_CHAR_CHINA3_JEF): Comment out.
1001 (MAX_CHAR_CHINA3_JEF): Comment out.
1003 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005 * mule-charset.c (Vcharset_ucs_gb): New variable.
1006 (Qucs_gb): New variable.
1007 (syms_of_mule_charset): Add new symbol `ucs-gb'.
1008 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1010 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1012 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1014 * mule-charset.c (charset_code_point): if a coded-charset has a
1015 final-byte, don't inherit the builtin range of the mother CCS.
1017 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1019 * mule-charset.c (charset_code_point): Fix problem about
1022 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1024 * mule-charset.c (decode_builtin_char): Reorganized.
1026 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1028 * text-coding.c (char_encode_as_entity_reference): Modify for
1029 `charset_code_point'.
1030 (char_encode_shift_jis): Likewise.
1031 (char_encode_big5): Likewise.
1032 (char_encode_utf8): Likewise.
1033 (char_encode_iso2022): Likewise.
1035 * mule-charset.c (charset_code_point): Add new argument
1037 (Fencode_char): Add new optional argument `defined_only'.
1039 * chartab.c (put_char_table): Modify for `charset_code_point'.
1041 * char-ucs.h (charset_code_point): Add new argument
1043 (encode_char_1): Modify for `charset_code_point'.
1045 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1047 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1048 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1050 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1052 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1053 (Qjis_x0208): Likewise.
1054 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1055 XCHARSET_FINAL(charset).
1056 (charset_code_point): Modify condition for final-byte based
1058 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1059 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1060 in UTF-2000; specify `=jis-x0208' as the mother of
1061 `japanese-jisx0208-1978', `japanese-jisx0208' and
1062 `japanese-jisx0208-1990' in UTF-2000.
1064 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1066 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1068 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1070 * text-coding.c (decode_coding_utf16): Support UTF-16.
1071 (char_encode_utf16): Fixed.
1073 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1075 * text-coding.c (Qutf16): New variable in MULE.
1076 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1077 (Fcoding_system_type): Add `utf-16' in MULE.
1078 (struct detection_state): Add a structure for utf16 in MULE.
1079 (detect_coding_type): Setup st->utf16.mask in MULE.
1080 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1082 (reset_encoding_stream): Use `char_encode_utf16' and
1083 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1084 (detect_coding_utf16): New function [incomplete].
1085 (decode_coding_utf16): New function [support only UCS-2].
1086 (char_encode_utf16): New function.
1087 (char_finish_utf16): New function.
1088 (syms_of_file_coding): Add new symbol `utf-16'; setup
1089 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1091 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1093 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1094 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1096 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1098 * chartab.c (put_char_table): When a charset is specified as a
1099 range in UTF-2000, don't support builtin characters.
1101 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1103 * mule-charset.c (decode_defined_char): Don't refer external
1104 database if Qunbound or Qnil are found.
1105 (Fsave_charset_mapping_table): Don't define it if
1106 HAVE_CHISE_CLIENT is not defined.
1107 (Freset_charset_mapping_table): New function.
1108 (load_char_decoding_entry_maybe): Store Qnil if a character is not
1109 found in external database.
1110 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1111 if HAVE_CHISE_CLIENT is not defined; add new builtin function
1112 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1114 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1116 * text-coding.c (decode_coding_utf8): Check CCS is specified or
1119 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1121 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1122 Q_lowercase, Q_uppercase in UTF-2000.
1124 * chartab.c (get_char_table): Add special code for the standard
1125 case table to use character attribute `->downcase' and
1126 `->uppercase' for case operations in UTF-2000.
1128 * casetab.c (Qflippedcase): New variable in UTF-2000.
1129 (Q_lowercase): Likewise.
1130 (Q_uppercase): Likewise.
1131 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1132 and `->uppercase' in UTF-2000.
1133 (complex_vars_of_casetab): Assign attribute name `downcase' to
1134 downcase and CANON table of Vstandard_case_table in UTF-2000;
1135 assign attribute name `flippedcase' to upcase and EQV table of
1136 Vstandard_case_table in UTF-2000.
1138 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1140 * text-coding.c (decode_add_er_char): Support isolated-chars.
1141 (char_encode_as_entity_reference): Likewise.
1143 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1145 * emacs.c (Vutf_2000_lisp_directory): New variable.
1146 (Vconfigure_utf_2000_lisp_directory): Likewise.
1147 (complex_vars_of_emacs): Add new variable
1148 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1150 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1152 * char-ucs.h (DECODE_CHAR): Delete special code for
1153 `chinese-big5-1' and `chinese-big5-2'.
1155 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1156 (Qbig5_2): Likewise.
1157 (decode_defined_char): Support CONVERSION_BIG5_1 and
1159 (decode_builtin_char): Likewise.
1160 (charset_code_point): Likewise.
1161 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1162 'conversion in UTF-2000.
1163 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1164 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1165 `chinese-big5-2' as children of `chinese-big5'.
1167 * char-ucs.h (CONVERSION_BIG5_1): New macro.
1168 (CONVERSION_BIG5_2): New macro.
1170 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1172 * text-coding.c (char_encode_big5): Support entity-reference.
1174 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1176 * text-coding.c (char_encode_as_entity_reference): New function.
1177 (char_encode_utf8): Use `char_encode_as_entity_reference'.
1179 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1181 * text-coding.c (decode_coding_big5): Support entity-reference
1184 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1186 * text-coding.c (allocate_coding_system): Initialize initial
1187 charsets for CODESYS_UTF8.
1188 (Fmake_coding_system): Accept charset-g0, charset-g1 and
1189 charset-g2 for CODESYS_UTF8.
1190 (decode_coding_utf8): Use charset-g0.
1191 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1192 to force variants to map to UCS.
1194 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1196 * text-coding.c (Qutf_8_mcs): New variable.
1197 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1198 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1199 instead of `utf-8' in UTF-2000.
1201 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1203 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1204 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1205 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1206 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1207 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1208 CONVERSION_96x96x96x96 are introduced.
1209 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1210 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1211 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1213 * char-ucs.h (CONVERSION_94): New macro.
1214 (CONVERSION_96): New macro.
1215 (CONVERSION_94x94): New macro.
1216 (CONVERSION_96x96): New macro.
1217 (CONVERSION_94x94x94): New macro.
1218 (CONVERSION_96x96x96): New macro.
1219 (CONVERSION_94x94x94x60): New macro.
1220 (CONVERSION_94x94x94x94): New macro.
1221 (CONVERSION_96x96x96x96): New macro.
1223 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1225 * chartab.c (Vcharacter_variant_table): Deleted.
1226 (Fchar_variants): Use character-attribute `->ucs-variants' instead
1227 of `Vcharacter_variant_table'.
1228 (Fput_char_attribute): Likewise.
1229 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1230 (complex_vars_of_chartab): Likewise.
1232 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1234 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1236 * fns.c (Qideographic_structure): New variable.
1237 (Qkeyword_char): New variable.
1238 (ids_format_unit): New function.
1239 (Fideographic_structure_to_ids): New function.
1240 (syms_of_fns): Add new symbols `ideographic-structure' and
1241 `:char'; add new builtin function `ideographic-structure-to-ids'.
1243 * data.c (Fchar_ref_p): New function.
1244 (syms_of_data): Add new builtin function `char-ref-p'.
1246 * chartab.h: Add an EXFUN for `Ffind_char'.
1248 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1250 * text-coding.c (Vcharacter_composition_table): Deleted.
1251 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1254 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1256 (Vcharacter_composition_table): Deleted.
1257 (Fget_composite_char): Use the implementation for external-DB
1258 support in every UTF-2000.
1259 (Fput_char_attribute): Likewise.
1260 (char_attribute_system_db_file): Don't define if external-DB
1261 feature is not available.
1262 (Fsave_char_attribute_table): Likewise.
1263 (Fmount_char_attribute_table): Likewise.
1264 (Fclose_char_attribute_table): Likewise.
1265 (Freset_char_attribute_table): Likewise.
1266 (Fload_char_attribute_table): Likewise.
1267 (syms_of_chartab): Don't define `save-char-attribute-table',
1268 `mount-char-attribute-table', `reset-char-attribute-table',
1269 `close-char-attribute-table' and `load-char-attribute-table' if
1270 external-DB feature is not available.
1271 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1273 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1275 * text-coding.c (Qcomposition): Add extern if external-DB feature
1277 (Vcharacter_composition_table): Don't add extern if external-DB
1278 feature is supported.
1279 (COMPOSE_ADD_CHAR): Modify for new data-representation of
1280 character composition rule if external-DB feature is supported.
1282 * chartab.c (Vcharacter_composition_table): Don't define if
1283 external-DB feature is supported.
1284 (Qcomposition): New variable.
1285 (Fget_composite_char): New implementation for external-DB support.
1286 (Fput_char_attribute): Use `composition' property of each
1287 character instead of `Vcharacter_composition_table' to store
1288 character-composition rules if external-DB feature is supported.
1289 (syms_of_chartab): Add new symbol `composition'.
1290 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1291 external-DB feature is supported.
1293 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1295 * chartab.c (Vchar_db_stingy_mode): New variable.
1296 (load_char_attribute_maybe): Close database if
1297 Vchar_db_stingy_mode is not NIL.
1298 (Fload_char_attribute_table_map_function): Use
1299 `get_char_id_table_0' instead of `get_char_id_table'.
1300 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1302 * chartab.h (get_char_id_table_0): New inline function.
1303 (get_char_id_table): Use `get_char_id_table_0'.
1305 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1307 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1308 and `COMPOSE_ADD_CHAR'.
1309 (decode_coding_iso2022): Use `decode_flush_er_chars'.
1311 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1313 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1314 instead of `DECODE_ADD_UCS_CHAR'.
1315 (COMPOSE_ADD_CHAR): Likewise.
1317 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1319 * text-coding.c (decode_flush_er_chars): New inline function.
1320 (decode_add_er_char): New function.
1321 (decode_coding_utf8): Use `decode_flush_er_chars' and
1322 `decode_add_er_char'.
1324 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1326 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1327 done before `decode_output_utf8_partial_char'.
1329 * mule-charset.c (complex_vars_of_mule_charset): Specify
1330 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1331 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1333 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1335 * mule-charset.c (decode_defined_char): New function; search
1337 (decode_builtin_char): Don't search mother if
1338 XCHARSET_MAX_CODE(charset) == 0.
1339 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1340 == 0 even if code >= XCHARSET_MAX_CODE(charset).
1341 (Fdecode_char): Use `decode_defined_char' instead of
1342 `DECODE_DEFINED_CHAR'.
1343 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1344 mother of `Vcharset_ucs_jis'.
1346 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1347 instead of `DECODE_DEFINED_CHAR'.
1349 * char-ucs.h (decode_defined_char): Renamed from
1350 `DECODE_DEFINED_CHAR'; changed to normal function.
1351 (DECODE_CHAR): Use `decode_defined_char' instead of
1352 `DECODE_DEFINED_CHAR'.
1354 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1356 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1360 * text-coding.c (Vcoded_charset_entity_reference_alist): New
1362 (Quse_entity_reference): New variable.
1366 (coding_system_description): Add description for
1367 `ccs_priority_list'.
1368 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1369 (allocate_coding_system): Initialize `ccs_priority_list' in
1371 (Fmake_coding_system): Add description about
1372 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1374 (Fcoding_system_property): Accept `disable-composition' and
1375 `use-entity-reference' in UTF-2000.
1376 (struct decoding_stream): Add new member `er_counter' and `er_buf'
1378 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1379 (decode_coding_utf8): Decode entity-reference if
1380 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1381 (char_encode_utf8): Encode non-Unicode characters as
1382 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1384 (syms_of_file_coding): Add new symbols `use-entity-reference',
1386 (vars_of_file_coding): Add new variable
1387 `coded-charset-entity-reference-alist'.
1388 (complex_vars_of_file_coding): Declare `disable-composition' and
1389 `use-entity-reference' to be coding-system-properties in UTF-2000.
1391 * file-coding.h (struct Lisp_Coding_System): Add new member
1392 `use_entity_reference' and `ccs_priority_list'.
1393 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1394 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1395 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1397 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1399 * chartab.c (save_uint8_byte_table): Don't clear the table.
1400 (save_uint16_byte_table): Likewise.
1401 (save_byte_table): Likewise.
1402 (Fmount_char_attribute_table): New function.
1403 (syms_of_chartab): Add new builtin function
1404 `mount-char-attribute-table'.
1406 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408 * mule-charset.c (Fsave_charset_mapping_table): Open database as
1410 (load_char_decoding_entry_maybe): Open database as read-only mode.
1412 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1413 open database as "w+" mode.
1414 (load_char_attribute_maybe): Open database as read-only mode.
1415 (Fload_char_attribute_table): Likewise.
1417 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1419 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1420 (char_table_description): Delete member `db_file'.
1421 (Fmake_char_table): Don't refer `ct->db_file'.
1422 (Fcopy_char_table): Likewise.
1423 (Fsave_char_attribute_table): Likewise.
1424 (Fclose_char_attribute_table): Likewise.
1425 (Freset_char_attribute_table): Likewise.
1426 (load_char_attribute_maybe): Likewise.
1427 (Fload_char_attribute_table): Likewise.
1429 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1431 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1433 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1434 (Fsave_char_attribute_table): Don't check `ct->db_file' if
1436 (load_char_attribute_maybe): Likewise.
1437 (Fload_char_attribute_table): Likewise.
1439 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1441 * chartab.c (Fclose_char_attribute_table): Set Qnil on
1442 `ct->db_file' unconditionally.
1444 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1446 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1448 (char_table_description): Add description for `db_file' and `db'
1450 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1452 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1453 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1454 (Fclose_char_attribute_table): New function.
1455 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1456 (load_char_attribute_maybe): Change interface; use `cit->db_file'
1458 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1459 (syms_of_chartab): Add new builtin function
1460 `Fclose_char_attribute_table'.
1462 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1464 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1466 (load_char_attribute_maybe): Change interface.
1467 (get_char_id_table): Modify for `load_char_attribute_maybe'.
1469 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1471 * database.h: Add an EXFUN for `Fdatabase_live_p'.
1473 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1475 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1476 instead of `DECODE_CHAR' for mother; don't use special code for
1477 chinese-big5 to use code space of chinese-big5-1 and
1479 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1480 `MAX_CHAR_BIG5_CDP' for chinese-big5.
1482 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1483 (MAX_CHAR_BIG5_CDP): Revival.
1485 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1487 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1488 the XLFD registry-encoding name of `chinese-big5'.
1490 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1492 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1493 (Qchinese_big5_cdp): Deleted.
1494 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1495 (complex_vars_of_mule_charset): Delete coded-charset
1498 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1499 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1500 `CHARSET_ID_OFFSET - n' for private CCS.
1501 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1502 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1503 of `MIN_LEADING_BYTE'.
1504 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1505 `(CHARSET_ID_OFFSET - 97)'.
1506 (MIN_CHAR_BIG5_CDP): Deleted.
1507 (MAX_CHAR_BIG5_CDP): Deleted.
1509 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1511 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1513 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1515 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1516 (vars_of_mule): Add new variable `utf-2000-version' [moved from
1519 * chartab.c (Vutf_2000_version): Moved to mule.c.
1520 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1522 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1524 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1525 when HAVE_CHISE_CLIENT is not defined.
1527 * mule.c (vars_of_mule): Provide feature `chise' when
1528 HAVE_CHISE_CLIENT is defined.
1530 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1532 * config.h.in (UTF2000): Add comment.
1533 (HAVE_CHISE_CLIENT): New macro.
1535 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1537 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1539 (Fput_char_attribute): Likewise.
1540 (char_attribute_system_db_file): Encode file-name of attribute.
1541 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1544 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1546 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1547 (Fsave_charset_mapping_table): Use
1548 `char_attribute_system_db_file'.
1549 (load_char_decoding_entry_maybe): Likewise.
1551 * chartab.h (Qsystem_char_id): New external variable.
1552 (char_attribute_system_db_file): New prototype.
1554 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1555 (char_attribute_system_db_file): New function.
1556 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1557 (Freset_char_attribute_table): Likewise.
1558 (load_char_attribute_maybe): Likewise.
1559 (Fload_char_attribute_table): Likewise.
1560 (syms_of_chartab): Add new symbol `system-char-id'.
1562 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1564 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1565 `XCHARSET_GRAPHIC(ccs)'.
1567 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1569 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1571 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1573 * chartab.c (Q_ucs_variants): New variable.
1574 (syms_of_chartab): Add new symbol `->ucs-variants'.
1575 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1576 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1577 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1579 * mule-charset.c (load_char_decoding_entry_maybe): New function.
1581 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1582 `HAVE_DATABASE' is defined.
1583 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1584 `HAVE_DATABASE' is defined.
1586 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1588 * chartab.c (Fsave_char_attribute_table): Don't clear internal
1590 (Freset_char_attribute_table): New function.
1591 (syms_of_chartab): Add new builtin function
1592 `reset-char-attribute-table'.
1594 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1596 * chartab.c (load_char_attribute_maybe): Don't make directories.
1598 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1600 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1602 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1605 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1607 * mule-charset.c (Fsave_charset_mapping_table): Use
1608 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1610 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1611 instead of `XCHARSET_CHARS'.
1613 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1615 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1616 (XCHARSET_BYTE_SIZE): Likewise.
1618 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1620 (XCHARSET_BYTE_SIZE): Likewise.
1622 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1624 * chartab.c (Fput_char_attribute): Use exec-directory instead of
1625 data-directory to store database.
1626 (Fsave_char_attribute_table): Likewise.
1627 (load_char_attribute_maybe): Likewise.
1628 (Fload_char_attribute_table): Likewise.
1630 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1632 * mule-charset.c (Fsave_charset_mapping_table): New function.
1633 (syms_of_mule_charset): Add new builtin function
1634 `save-charset-mapping-table'.
1636 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1638 * char-ucs.h (decoding_table_check_elements): Delete prototype.
1639 (get_ccs_octet_table): New inline function.
1640 (put_ccs_octet_table): Likewise.
1641 (decoding_table_put_char): Use `get_ccs_octet_table' and
1642 `put_ccs_octet_table'.
1643 (decoding_table_remove_char): Use `decoding_table_put_char'.
1644 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1646 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1647 into encoding_table.
1648 (make_charset): Use Qunbound instead Qnil as initial value of
1651 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1653 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1654 element is Qunloaded.
1655 (map_over_uint16_byte_table): Likewise.
1656 (map_over_byte_table): Likewise.
1657 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1658 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1659 database support, load encoding-table of the specified
1660 coded-charset if it is not loaded yet.
1661 (save_uint8_byte_table): New function of UTF-2000 with external
1663 (save_uint16_byte_table): Likewise.
1664 (save_byte_table): Likewise.
1665 (Fput_char_attribute): Don't store value into external database
1666 even if the external database feature is supported in UTF-2000;
1667 set `attribute' as name of char-table if the external database
1668 feature is supported.
1669 (Fsave_char_attribute_table): New function in UTF-2000.
1670 (syms_of_chartab): Add new builtin function
1671 `save-char-attribute-table' in UTF-2000.
1673 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1675 * chartab.c (char_attribute_table_to_put): New variable in
1677 (Qput_char_table_map_function): Likewise.
1678 (value_to_put): Likewise.
1679 (Fput_char_table_map_function): New function in UTF-2000.
1680 (put_char_table): Use `Fmap_char_attribute' for
1681 CHARTAB_RANGE_CHARSET in UTF-2000.
1682 (Fput_char_attribute): Store symbol instead of string in
1683 `XCHAR_TABLE_NAME (table)'.
1684 (load_char_attribute_maybe): Likewise.
1685 (syms_of_chartab): Add new symbol/function
1686 `put-char-table-map-function'.
1688 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1690 * database.h: Add new EXFUN for `Fmap_database'.
1692 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1693 (syms_of_database): Likewise.
1695 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1697 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1698 (XCHAR_TABLE_UNLOADED): Likewise.
1700 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1701 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1702 HAVE_DATABASE is defined.
1703 (char_attribute_table_to_load): New variable of UTF-2000 with
1704 external database support.
1705 (Qload_char_attribute_table_map_function): Likewise.
1706 (Fload_char_attribute_table_map_function): New function of
1707 UTF-2000 with external database support.
1708 (Fload_char_attribute_table): New function of UTF-2000.
1709 (Fmap_char_attribute): Call Fload_char_attribute_table if
1710 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1711 (syms_of_chartab): Add new symbol and function
1712 `load-char-attribute-table-map-function' in UTF-2000 with external
1713 database support; add new function `load-char-attribute-table' in
1716 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1718 * chartab.h (load_char_attribute_maybe): New prototype for
1719 UTF-2000 with DATABASE support.
1720 (get_char_id_table): Use `load_char_attribute_maybe' if
1721 HAVE_DATABASE is defined.
1723 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1724 with DATABASE support.
1726 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1728 * chartab.c (Fput_char_attribute): Use S-expression as key of
1731 * chartab.h (get_char_id_table): Use S-expression as key of
1734 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1736 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1737 if an element is not loaded, load the corresponding attributes
1738 from an external database.
1739 (map_over_uint16_byte_table): Likewise.
1740 (map_over_byte_table): Likewise.
1741 (map_char_table): Modify for `map_over_uint8_byte_table',
1742 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1743 element is not loaded, load the corresponding attributes from an
1745 (Fput_char_attribute): Change initial values to Qunloaded.
1747 * chartab.h (get_char_id_table): If a character attribute is not
1748 loaded and the attribute value is not found in an external
1749 database, store Qunbound as the attribute value.
1751 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1753 * chartab.c (BT_UINT8_unloaded): New macro.
1754 (UINT8_VALUE_P): Accept Qunloaded.
1755 (UINT8_ENCODE): Likewise.
1756 (UINT8_DECODE): Likewise.
1757 (BT_UINT16_unloaded): New macro.
1758 (UINT16_VALUE_P): Accept Qunloaded.
1759 (UINT16_ENCODE): Likewise.
1760 (UINT16_DECODE): Likewise.
1761 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1763 (mark_char_table): Mark `ct->name' in UTF-2000.
1764 (char_table_description): Add `name' in UTF-2000.
1765 (Fmake_char_table): Initialize `ct->name'.
1766 (Fcopy_char_table): Copy `ct->name'.
1767 (Fput_char_attribute): Store value into an external database if
1768 HAVE_DATABASE is defined.
1770 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1772 (CHAR_TABLE_NAME): New macro in UTF-2000.
1773 (XCHAR_TABLE_NAME): New macro in UTF-2000.
1774 (get_char_id_table): Try to read an external database if Qunloaded
1775 is stored in a table.
1777 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1780 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1782 * database.h: Add EXFUN definitions for Fopen_database,
1783 Fput_database, Fget_database and Fclose_database.
1785 * data.c (Qunloaded): New variable in UTF-2000.
1787 * lisp.h (Qunloaded): New variable in UTF-2000.
1789 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1791 * mule-charset.c (put_char_ccs_code_point): Modify for
1792 `decoding_table_remove_char' and `decoding_table_put_char'.
1793 (remove_char_ccs): Modify for `decoding_table_remove_char'.
1795 * char-ucs.h (decoding_table_remove_char): Change arguments to
1796 hide decoding_table vector.
1797 (decoding_table_put_char): Likewise.
1799 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1801 * mule-charset.c (decoding_table_remove_char): Moved to
1803 (decoding_table_put_char): Likewise.
1805 * char-ucs.h (decoding_table_check_elements): New prototype [moved
1806 from mule-charset.c].
1807 (decoding_table_remove_char): New inline function [moved from
1809 (decoding_table_put_char): Likewise.
1811 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1813 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1816 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1818 * mule-charset.c (decode_builtin_char): Support mother charsets.
1820 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1822 * mule-charset.c (Q94x94x60): New variable.
1823 (charset_code_point): Support conversion `94x94x60'.
1824 (Fmake_charset): Likewise.
1825 (syms_of_mule_charset): Add new symbol `94x94x60'.
1827 * char-ucs.h (CONVERSION_94x94x60): New macro.
1829 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1831 * mule-charset.c (charset_code_point): Unify code about
1834 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1836 * mule-charset.c (charset_code_point): Merge code about builtin
1837 characters into code about mother charsets; don't use
1838 `range_charset_code_point'.
1839 (range_charset_code_point): Deleted.
1841 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1843 * mule-charset.c (Qcode_offset): New variable.
1844 (Fmake_charset): Use `XUINT' to get value of `min-code' and
1845 `max-code'; accept new property `code-offset'.
1846 (syms_of_mule_charset): Add new symbol `code-offset'.
1848 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850 * mule-charset.c (range_charset_code_point): Fixed.
1852 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1854 * mule-charset.c (decode_builtin_char): Change semantics of
1855 code-offset of coded-charset.
1856 (charset_code_point): Likewise.
1857 (range_charset_code_point): Likewise.
1858 (complex_vars_of_mule_charset): Modify for the change.
1860 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862 * mule-charset.c (Fencode_char): Reverse arguments.
1864 * mule-charset.c (charset_code_point): Fixed.
1866 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1868 * mule-charset.c (Vcharset_mojikyo): Deleted.
1869 (Vcharset_mojikyo_2022_1): Deleted.
1870 (Vcharset_mojikyo_pj_{1..21}): Deleted.
1871 (Qmin_code): New variable in UTF-2000.
1872 (Qmax_code): Likewise.
1873 (Qmother): Likewise.
1874 (Qconversion): Likewise.
1876 (Qmojikyo): Deleted.
1877 (Qmojikyo_2022_1): Deleted.
1878 (Qmojikyo_pj_{1..22}): Deleted.
1879 (mark_charset): Mark `cs->mother'.
1880 (charset_description): Add description for `mother'.
1881 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1882 new arguments `mother' and `conversion'; use
1883 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1884 (charset_code_point): Moved from char-ucs.h; support `mother'
1886 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1887 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1888 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1889 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1890 allow 2 as the value of `graphic' in UTF-2000; add new properties
1891 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1892 require `final' in UTF-2000; modify for `make_charset'.
1893 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1894 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1895 (Fcharset_property): Support `mother', `min-code' and `max-code'.
1896 (Fencode_char): New function.
1897 (syms_of_mule_charset): Add new builtin function `encode-char' in
1898 UTF-2000; add new symbols `min-code', `max-code', `mother',
1899 `conversion' and `94x60'; delete symbols `mojikyo',
1900 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1901 (complex_vars_of_mule_charset): Modify for `make_charset' change;
1902 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1903 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1905 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1906 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1908 * char-ucs.h (Vcharset_mojikyo): Deleted.
1909 (Vcharset_mojikyo_2022_1): Deleted.
1910 (LEADING_BYTE_MOJIKYO): Deleted.
1911 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1912 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1913 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1914 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1915 add new member `mother'; add new member `conversion'.
1916 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1917 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1918 (CHARSET_MOTHER): New macro.
1919 (CHARSET_CONVERSION): New macro.
1920 (CONVERSION_IDENTICAL): New macro.
1921 (CONVERSION_94x60): New macro.
1922 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1923 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1924 (XCHARSET_MOTHER): New macro.
1925 (XCHARSET_CONVERSION): New macro.
1926 (MIN_CHAR_MOJIKYO): Deleted.
1927 (MAX_CHAR_MOJIKYO): Deleted.
1928 (DECODE_MOJIKYO_2022): Deleted.
1929 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1930 (charset_code_point): Changed to non-inline function.
1931 (encode_char_1): Use `charset_code_point'.
1932 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1934 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1936 * lread.c (read_compiled_function): Fix prototype.
1937 (read_vector): Likewise.
1939 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941 * lrecord.h (struct lrecord_header): Delete `older'.
1942 (set_lheader_implementation): Delete code for `older'.
1943 (set_lheader_older_implementation): Deleted.
1944 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1945 (OLDER_RECORD_P): Deleted.
1946 (OLDER_RECORD_HEADER_P): Deleted.
1947 (alloc_older_lcrecord): Deleted.
1948 (alloc_older_lcrecord_type): Deleted.
1950 * alloc.c (all_older_lcrecords): Deleted.
1951 (alloc_older_lcrecord): Deleted.
1952 (disksave_object_finalization_1): Delete code for older objects.
1953 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1954 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1956 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958 * mule-charset.c (decoding_table_put_char): Use `make_vector'
1959 instead of `make_older_vector'.
1960 (put_char_ccs_code_point): Likewise.
1961 (mark_charset): Mark `cs->decoding_table'.
1962 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1964 * lisp.h (make_older_vector): Deleted.
1965 (make_vector_newer): Deleted.
1967 * config.h.in (HAVE_GGC): Deleted.
1969 * alloc.c (make_older_vector): Deleted.
1970 (make_vector_newer_1): Deleted.
1971 (make_vector_newer): Deleted.
1973 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1976 (Qideograph_daikanwa_2): New variable.
1977 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1978 (complex_vars_of_mule_charset): Add new coded-charset
1979 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1980 `LEADING_BYTE_DAIKANWA'.
1982 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1983 (LEADING_BYTE_DAIKANWA_1): New macro.
1984 (LEADING_BYTE_DAIKANWA_2): New macro.
1985 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1987 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1989 * mule-charset.c (complex_vars_of_mule_charset): Change
1990 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1991 the second revised version.
1993 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1995 * mule-charset.c (Vcharset_ucs_smp): New variable.
1996 (Vcharset_ucs_sip): New variable.
1997 (Qucs_smp): New variable.
1998 (Qucs_sip): New variable.
1999 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2000 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2001 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2002 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2003 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2004 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2006 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2007 (LEADING_BYTE_UCS_SIP): New macro.
2008 (MIN_CHAR_SMP): New macro.
2009 (MAX_CHAR_SMP): New macro.
2010 (MIN_CHAR_SIP): New macro.
2011 (MAX_CHAR_SIP): New macro.
2013 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
2015 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2018 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2021 value; don't store value into `encoding_table' of `Lisp_Charset'.
2022 (mark_charset): `encoding_table' was deleted.
2023 (charset_description): Likewise.
2024 (make_charset): Likewise.
2025 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2026 `put_char_ccs_code_point'.
2028 * chartab.h (Fput_char_attribute): New EXFUN.
2030 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2031 is unified with normal symbol space.
2032 (Fget_char_attribute): Likewise.
2033 (Fput_char_attribute): Likewise; behavior of
2034 `put_char_ccs_code_point' is changed.
2036 * char-ucs.h: Include "elhash.h".
2037 (Vchar_attribute_hash_table): New external variable.
2038 (struct Lisp_Charset): Delete `encoding_table'.
2039 (CHARSET_ENCODING_TABLE): New implementation; refer
2040 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2043 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2045 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2048 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2050 * text-coding.c (char_encode_big5): Prefer charset-g1 than
2053 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2055 * chartab.c (uint8_byte_table_description): New constant.
2056 (uint8-byte-table): Use `uint8_byte_table_description'.
2057 (uint16_byte_table_description): New constant.
2058 (uint16-byte-table): Use `uint16_byte_table_description'.
2060 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2062 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2063 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2065 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067 * mule-charset.c (Vcharset_ucs_ks): New variable.
2068 (Qucs_ks): New variable.
2069 (syms_of_mule_charset): Add new symbol `ucs-ks'.
2070 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2072 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2074 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2076 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2077 (Fdecode_char): Likewise.
2079 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2081 (Fdefine_char): Modify for Fdecode_char.
2082 (Ffind_char): Likewise.
2084 * mule-charset.c (Fdecode_char): Add new optional argument
2086 (Fdecode_builtin_char): Modify for `Fdecode_char'.
2088 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2090 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2091 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2092 (allocate_coding_system): Initialize initial-charsets of
2093 CODESYS_BIG5 in XEmacs UTF-2000.
2094 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2095 CODESYS_BIG5 in XEmacs UTF-2000.
2096 (decode_coding_big5): Use initial-charset-g0 and -g1 of
2097 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2099 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2101 (Qideograph_hanziku_{1 .. 12}): Likewise.
2102 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2104 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2105 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2106 `ideograph-hanziku-{1 .. 12}'.
2108 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2109 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2110 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2111 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2112 (DECODE_DEFINED_CHAR): New inline function.
2113 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2115 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2117 * mule-charset.c (Vcharset_china3_jef): Renamed from
2118 `Vcharset_japanese_jef_china3'.
2119 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2120 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2121 `{MIN|MAX}_CHAR_JEF_CHINA3'..
2122 (syms_of_mule_charset): Rename `china3-jef' from
2123 `japanese-jef-china3'.
2124 (complex_vars_of_mule_charset): Likewise; rename
2125 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2127 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2128 `LEADING_BYTE_JEF_CHINA3'.
2129 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2130 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2132 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2134 * mule-charset.c (encode_builtin_char_1): Comment out special code
2135 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2137 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2138 (MAX_CHAR_MOJIKYO_0): Comment out.
2139 (MIN_CHAR_CBETA): Changed to 0x00E20000.
2140 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2141 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2142 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2144 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2146 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2147 (Qideograph_cbeta): New variable.
2148 (encode_builtin_char_1): Comment out special code for
2149 coded-charset `mojikyo' and `japanese-jef-china3'.
2150 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2151 (complex_vars_of_mule_charset): Add new coded-charset
2154 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2155 (MIN_CHAR_CBETA): New macro.
2156 (MAX_CHAR_CBETA): New macro.
2158 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2161 (LEADING_BYTE_JEF_CHINA3): New macro.
2162 (MIN_CHAR_JEF_CHINA3): New macro.
2163 (MAX_CHAR_JEF_CHINA3): Likewise.
2164 (DECODE_CHAR): Fixed.
2166 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2169 (Qjapanese_jef_china3): New variable.
2170 (encode_builtin_char_1): Support `japanese-jef-china3'.
2171 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2172 (complex_vars_of_mule_charset): Add new coded-charset
2173 `japanese-jef-china3'.
2175 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2177 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2178 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2179 94^4, 96^3, 96^4, 128^n and 256^n set.
2180 (put_char_table): Use `XCHARSET_CELL_RANGE'.
2181 (map_char_table): Likewise.
2183 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2185 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2188 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2190 * chartab.h (get_char_id_table): New inline function.
2192 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2195 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197 * chartab.h (decode_char_table_range): New prototype in XEmacs
2199 (put_char_id_table): New inline function in XEmacs UTF-2000.
2201 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2203 (decode_char_table_range): Delete static declaration in XEmacs
2206 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2208 * chartab.c (put_char_id_table): Use `put_char_table'.
2210 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2212 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2213 (map_over_uint16_byte_table): Likewise.
2214 (map_over_byte_table): Likewise.
2215 (map_char_table): Modify for `map_over_uint8_byte_table',
2216 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2219 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2221 * chartab.c (struct map_char_table_for_charset_arg): New
2223 (map_char_table_for_charset_fun): New function.
2224 (map_char_table): Use `map_char_table' for encoding_table of
2227 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2229 * chartab.c (map_char_table): Check a character is found in
2230 range->charset instead of non default value is defined in
2231 char-table when range is CHARTAB_RANGE_ROW.
2233 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2235 * chartab.c (map_char_id_table): Deleted.
2236 (Fmap_char_attribute): Use `map_char_table' instead of
2237 `map_char_id_table'.
2239 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2241 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2243 (update_syntax_table): Deleted in XEmacs UTF-2000.
2245 * syntax.c (find_defun_start): Use `syntax_table' instead of
2246 `mirror_syntax_table' in XEmacs UTF-2000.
2247 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2249 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2251 (Fmatching_paren): Likewise.
2252 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2254 (find_start_of_comment): Likewise.
2255 (find_end_of_comment): Likewise.
2256 (Fforward_comment): Likewise.
2257 (scan_lists): Likewise.
2258 (char_quoted): Likewise.
2259 (Fbackward_prefix_chars): Likewise.
2260 (scan_sexps_forward): Likewise.
2261 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2262 (update_syntax_table): Likewise.
2264 * search.c (skip_chars): Use `syntax_table' instead of
2265 `mirror_syntax_table' in XEmacs UTF-2000.
2266 (wordify): Likewise.
2267 (Freplace_match): Likewise.
2269 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2270 `mirror_syntax_table' in XEmacs UTF-2000.
2271 (WORDCHAR_P_UNSAFE): Likewise.
2272 (re_match_2_internal): Likewise.
2274 * font-lock.c (find_context): Use `buf->syntax_table' instead of
2275 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2277 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2278 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2280 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2283 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2285 (print_char_table): Print `default_value' in XEmacs UTF-2000.
2286 (char_table_description): Delete `mirror_table' in XEmacs
2288 (fill_char_table): Don't call `update_syntax_table' in XEmacs
2290 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2291 (Fcopy_char_table): Likewise.
2292 (put_char_table): Don't call `update_syntax_table' in XEmacs
2295 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2296 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2297 (casify_region_internal): Likewise.
2299 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2301 * buffer.c (common_init_complex_vars_of_buffer): Don't use
2302 `mirror_syntax_table' in XEmacs UTF-2000.
2304 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2305 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2306 (Fexpand_abbrev): Likewise.
2308 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2310 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2312 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2315 (map_over_uint16_byte_table): Likewise.
2316 (map_over_byte_table): Likewise.
2317 (get_char_id_table): Refer `cit->default_value'.
2318 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2319 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2320 of character-id ranges.
2321 (mark_char_table): Mark `ct->default_value'.
2322 (char_table_description): Add `default_value'.
2323 (fill_char_table): Use `default_value'.
2324 (decode_char_table_range): Decode `nil' as
2325 `CHARTAB_RANGE_DEFAULT'.
2326 (get_char_id_table): Refer `cit->default_value'.
2327 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2328 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2329 temporary hack; check value of char-table is bound or not.
2330 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2332 * chartab.h (struct Lisp_Char_Table): Add new member
2333 `default_value' in XEmacs UTF-2000.
2334 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2335 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2338 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340 * chartab.h (Lisp_Char_ID_Table): Deleted.
2342 * chartab.c (char_table_description): Fix typo.
2343 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2344 `Lisp_Char_ID_Table'.
2346 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2348 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2351 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2354 * chartab.h (XCHAR_ID_TABLE): Deleted.
2355 (XSETCHAR_ID_TABLE): Deleted.
2356 (CHAR_ID_TABLE_P): Deleted.
2358 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2360 (Fget_composite_char): Likewise.
2361 (put_char_table): Likewise.
2362 (add_char_attribute_alist_mapper): Fixed.
2363 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2365 (Fget_char_attribute): Likewise.
2366 (Fget_char_attribute): Likewise.
2367 (Fmap_char_attribute): Likewise.
2369 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2371 (encode_char_1): Likewise.
2373 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2375 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2378 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2379 instead of `XCHAR_ID_TABLE'.
2380 (remove_char_ccs): Likewise.
2382 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2384 (Fget_composite_char): Likewise.
2385 (Fchar_variants): Likewise.
2386 (put_char_table): Likewise.
2387 (add_char_attribute_alist_mapper): Likewise.
2388 (Fchar_attribute_alist): Likewise.
2389 (Fget_char_attribute): Likewise.
2390 (Fput_char_attribute): Likewise.
2391 (Fmap_char_attribute): Likewise.
2392 (Fmap_char_attribute): Likewise.
2394 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2396 (encode_char_1): Likewise.
2398 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2400 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2401 `Lisp_Char_ID_Table'.
2402 (mark_char_id_table): Deleted.
2403 (print_char_id_table): Likewise.
2404 (char_id_table_equal): Likewise.
2405 (char_id_table_hash): Likewise.
2406 (char_id_table_description): Likewise.
2407 (char_id_table): Likewise.
2408 (make_char_id_table): Use `Fmake_char_table' and
2410 (get_char_id_table): Use `Lisp_Char_Table' instead of
2411 `Lisp_Char_ID_Table'.
2412 (put_char_id_table): Likewise.
2413 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2415 (Fremove_char_attribute): Likewise.
2416 (syms_of_chartab): Don't define type `char-id-table'.
2418 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2419 (char_id_table): Likewise.
2420 (GC_CHAR_ID_TABLE_P): Likewise.
2421 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2422 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2423 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2424 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2425 (get_char_id_table): Use `Lisp_Char_Table' instead of
2426 `Lisp_Char_ID_Table'.
2427 (put_char_id_table_0): Likewise.
2428 (put_char_id_table): Likewise.
2430 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2432 * chartab.h: Lisp_Byte_Table related codes are moved from
2435 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2437 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2439 * chartab.h: Don't include "chartab.h".
2440 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2441 (Lisp_Char_ID_Table): Likewise.
2442 (char_id_table): Likewise.
2443 (XCHAR_ID_TABLE): Likewise.
2444 (XSETCHAR_ID_TABLE): Likewise.
2445 (CHAR_ID_TABLE_P): Likewise.
2446 (GC_CHAR_ID_TABLE_P): Likewise.
2447 (get_char_id_table): Likewise.
2449 * char-ucs.h: Include "chartab.h".
2450 (struct Lisp_Char_ID_Table): Moved to chartab.h.
2451 (Lisp_Char_ID_Table): Likewise.
2452 (char_id_table): Likewise.
2453 (XCHAR_ID_TABLE): Likewise.
2454 (XSETCHAR_ID_TABLE): Likewise.
2455 (CHAR_ID_TABLE_P): Likewise.
2456 (GC_CHAR_ID_TABLE_P): Likewise.
2457 (get_char_id_table): Likewise.
2459 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2461 * chartab.c (copy_uint8_byte_table): New function.
2462 (copy_uint16_byte_table): New function.
2463 (copy_byte_table): New function.
2464 (map_over_uint8_byte_table): Modify to avoid huge numbers of
2466 (map_over_uint16_byte_table): Likewise.
2467 (map_over_byte_table): Likewise.
2468 (get_byte_table): Move prototype to chartab.h.
2469 (put_byte_table): Likewise.
2470 (put_char_id_table_0): Moved to chartab.h.
2471 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2472 (char_table_entry_equal): Likewise.
2473 (char_table_entry_hash): Likewise.
2474 (char_table_entry_description): Likewise.
2475 (char_table_entry): Likewise.
2476 (make_char_table_entry): Likewise.
2477 (copy_char_table_entry): Likewise.
2478 (get_non_ascii_char_table_value): Likewise.
2479 (map_over_charset_ascii): Likewise.
2480 (map_over_charset_control_1): Likewise.
2481 (map_over_charset_row): Likewise.
2482 (map_over_other_charset): Likewise.
2483 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2484 (print_char_table): Likewise.
2485 (char_table_equal): Likewise.
2486 (char_table_hash): Likewise.
2487 (char_table_description): Likewise.
2488 (fill_char_table): Likewise.
2489 (Fcopy_char_table): Likewise.
2490 (get_char_table): Likewise.
2491 (Fget_range_char_table): Likewise.
2492 (put_char_table): Likewise.
2493 (map_char_table): Likewise.
2494 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2497 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2499 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2500 `Vauto_fill_chars' in XEmacs UTF-2000.
2502 * chartab.h (get_byte_table): New prototype [moved from
2504 (put_byte_table): Likewise [moved from chartab.c].
2505 (put_char_id_table_0): New inline function [moved from chartab.c].
2506 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2507 (Lisp_Char_Table_Entry): Likewise.
2508 (char_table_entry): Likewise.
2509 (XCHAR_TABLE_ENTRY): Likewise.
2510 (XSETCHAR_TABLE_ENTRY): Likewise.
2511 (CHAR_TABLE_ENTRYP): Likewise.
2512 (CHECK_CHAR_TABLE_ENTRY): Likewise.
2513 (NUM_ASCII_CHARS): Likewise.
2514 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2515 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2517 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2519 * chartab.c (get_char_id_table): Change interface.
2520 (put_char_id_table_0): New function.
2521 (put_char_id_table): Change interface; new implementation.
2522 (Fget_composite_char): Modify for interface change of
2523 `get_char_id_table'.
2524 (Fchar_variants): Likewise.
2525 (add_char_attribute_alist_mapper): Likewise.
2526 (Fchar_attribute_alist): Likewise.
2527 (Fget_char_attribute): Likewise.
2528 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2529 as same as character as the first argument like `put-char-table';
2530 modify for interface change of `put_char_id_table'.
2531 (Fremove_char_attribute): Modify for interface change of
2532 `put_char_id_table'.
2534 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2536 * text-coding.c: Sync up with XEmacs 21.2.41.
2537 (COMPOSE_ADD_CHAR): Modify for interface change of
2538 `get_char_id_table'.
2540 * mule-charset.c (put_char_ccs_code_point): Modify for interface
2541 change of `put_char_id_table'.
2542 (remove_char_ccs): Likewise.
2544 * chartab.h (put_char_id_table): Change interface.
2546 * char-ucs.h (get_char_id_table): Change interface.
2547 (charset_code_point): Modify for interface change of
2548 `get_char_id_table'.
2549 (encode_char_1): Likewise.
2551 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2555 (map_over_uint16_byte_table): Likewise.
2556 (map_over_byte_table): Likewise.
2557 (map_char_id_table): Add new argument `range' like
2559 (Fmap_char_attribute): Add new argument `range' like
2562 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564 * chartab.c (map_over_uint8_byte_table): Change interface of
2565 mapping function to use struct chartab_range instead of Emchar.
2566 (map_over_uint16_byte_table): Likewise.
2567 (map_over_byte_table): Likewise.
2568 (map_char_id_table): Likewise.
2569 (struct slow_map_char_id_table_arg): Deleted.
2570 (slow_map_char_id_table_fun): Deleted.
2571 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2572 function `slow_map_char_table_fun' instead of struct
2573 `slow_map_char_id_table_arg' and function
2574 `slow_map_char_id_table_fun'.
2576 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2578 * mule-charset.c: Move char-it-table related codes to chartab.c.
2579 (Vutf_2000_version): Moved to chartab.c.
2580 (Fdefine_char): Likewise.
2581 (Ffind_char): Likewise.
2582 (syms_of_mule_charset): Move types `uint8-byte-table',
2583 `uint16-byte-table', `byte-table' and `char-id-table' to
2584 chartab.c; move functions `char_attribute_list,
2585 `find_char_attribute_table, `char_attribute_alist,
2586 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2587 `map_char_attribute, `define_char, `find_char, `char_variants and
2588 `get_composite_char to chartab.c; move symbols `=>ucs',
2589 `->decomposition', `compat', `isolated', `initial', `medial',
2590 `final', `vertical', `noBreak', `fraction', `super', `sub',
2591 `circle', `square', `wide', `narrow', `small' and `font' to
2593 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2594 setting codes for `Vcharacter_composition_table' and
2595 `Vcharacter_variant_table' to chartab.c.
2596 (complex_vars_of_mule_charset): Move setting code for
2597 `Vchar_attribute_hash_table' to chartab.c.
2599 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2600 (make_char_id_table): New prototype.
2601 (put_char_id_table): Likewise.
2602 (Fget_char_attribute): Likewise.
2604 * chartab.c: Move char-id-table related code from mule-charset.c.
2605 (Vutf_2000_version): Moved from mule-charset.c.
2607 * char-ucs.h (Qucs): New external variable.
2608 (put_char_ccs_code_point): New prototype.
2609 (remove_char_ccs): Likewise.
2611 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2613 * mule-charset.c (Vcharset_ucs_jis): New variable.
2614 (Qucs_jis): Likewise.
2615 (syms_of_mule_charset): Add new symbol `ucs-jis'.
2616 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2618 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2620 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2622 * mule-charset.c (map_over_uint8_byte_table): New function.
2623 (map_over_uint16_byte_table): Likewise.
2624 (map_over_byte_table): Likewise.
2625 (map_char_id_table): Likewise.
2626 (slow_map_char_id_table_fun): Likewise.
2627 (Fmap_char_attribute): Likewise.
2628 (syms_of_mule_charset): Add new function `map-char-attribute'.
2630 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2633 (syms_of_mule_charset): Add new function `find-char'.
2635 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2637 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2639 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2640 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2642 (complex_vars_of_mule_charset): Add new coded-charset
2643 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2644 `ideograph-gt-pj-*'.
2646 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2648 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2650 * mule-charset.c (encode_builtin_char_1): Purge codes about
2651 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2652 {MIN|MAX}_CHAR_HEBREW.
2653 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2654 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2656 * char-ucs.h (MIN_CHAR_GREEK): Purged.
2657 (MAX_CHAR_GREEK): Purged.
2658 (MIN_CHAR_CYRILLIC): Purged.
2659 (MAX_CHAR_CYRILLIC): Purged.
2660 (MIN_CHAR_HEBREW): Commented out.
2661 (MAX_CHAR_HEBREW): Likewise.
2663 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2665 * mule-charset.c (Qto_ucs): New variable.
2666 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2667 (Fdefine_char): Likewise.
2668 (syms_of_mule_charset): Add new symbol `=>ucs'.
2670 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2672 * mule-charset.c (Fdecode_char): Fixed.
2674 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2676 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2677 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2680 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2682 * mule-charset.c (Vcharset_ucs_big5): New variable.
2683 (Qucs_big5): Likewise.
2684 (syms_of_mule_charset): Add new symbol `ucs-big5'.
2685 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2687 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2689 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2691 * mule-charset.c (decode_builtin_char): Check Big5 code range
2692 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2694 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2696 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2697 (Qchinese_gb12345): Likewise.
2698 (Fdecode_builtin_char): Fixed.
2699 (syms_of_mule_charset): Add `chinese-gb12345'.
2700 (complex_vars_of_mule_charset): Add coded-charset
2703 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2704 (LEADING_BYTE_CHINESE_GB12345): New macro.
2706 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2708 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2709 and `latin-viscii-upper' for `latin-viscii'.
2711 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713 * mule-charset.c (Fdecode_builtin_char): Comment out
2714 regularization code for ISO-IR GR representation.
2716 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718 * mule-charset.c (decode_builtin_char): New function; renamed from
2719 `make_builtin_char'; return -1 instead of signal.
2720 (Fdecode_builtin_char): Use `decode_builtin_char'.
2722 * char-ucs.h (decode_builtin_char): New prototype; renamed from
2723 `make_builtin_char'.
2724 (DECODE_CHAR): Use `decode_builtin_char' instead of
2725 `make_builtin_char'; use mapping table of `chinese-big5' for
2726 `chinese-big5-{1,2}'.
2728 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2730 * text-coding.c (char_encode_big5): New function.
2731 (char_finish_big5): Likewise.
2732 (reset_encoding_stream): Use `char_encode_big5' and
2733 `char_finish_big5' for CODESYS_BIG5.
2734 (mule_encode): Don't use `encode_coding_big5'.
2735 (encode_coding_big5): Deleted.
2737 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2739 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2740 0x81- in XEmacs UTF-2000.
2741 (detect_coding_big5): Likewise.
2743 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2745 * mule-charset.c (Fdefine_char): Don't use a CCS property to
2746 generate character-id if the CCS property does not have
2747 corresponding predefined character.
2748 (make_builtin_char): Return -1 if corresponding predefined
2749 character is not found.
2750 (Fdecode_char): Return nil if corresponding character is not
2752 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2753 don't map to builtin ucs space.
2755 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2757 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2758 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2760 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2762 * mule-charset.c (Vcharset_ideograph_gt): New variable.
2763 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2764 (Qideograph_gt): Likewise.
2765 (Qideograph_gt_pj_{1..11}): Likewise.
2766 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2767 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2768 `ideograph-gt-pj-11'.
2769 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2770 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2771 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2773 * char-ucs.h (LEADING_BYTE_GT): New macro.
2774 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2775 (MIN_CHAR_GT): Likewise.
2776 (MAX_CHAR_GT): Likewise.
2778 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2780 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2781 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2783 * doprnt.c (unsigned_int_converters): Add `c'.
2784 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2786 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2787 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2789 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2790 (MAX_CHAR_MOJIKYO_0): New macro.
2791 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2793 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2795 * mule-charset.c (Fdefine_char): Delete cemented out code.
2796 (encode_builtin_char_1): Modify for new allocation of builtin
2799 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2801 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2803 * mule-charset.c (Vcharset_ucs_cns): New variable.
2804 (Qucs_cns): New variable.
2805 (syms_of_mule_charset): Add new symbol `ucs-cns'.
2806 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2808 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2810 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2812 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
2814 * search.c (search_buffer): Make `charset_base_code' as
2815 character-id >> 6 to eliminate the corresponding last byte in
2816 UTF-8 representation [I'm not sure it is right thing].
2817 (boyer_moore): Likewise.
2819 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
2821 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2822 representation in MULE.
2824 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2826 * text-coding.c (Fmake_coding_system): Use
2827 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2828 `EXTERNAL_PROPERTY_LIST_LOOP'.
2830 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832 * text-coding.c (decode_output_utf8_partial_char): New function.
2833 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2835 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2837 * text-coding.c (decode_coding_utf8): Output original byte
2838 sequence if it is broken; change order of conditions.
2840 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2843 * mb-multibyte.h (BYTE_ASCII_P):
2844 Use bit ops for char-signedness safety.
2845 (BYTE_C0_P): Use bit ops for char-signedness safety.
2846 (BYTE_C1_P): Use bit ops for char-signedness safety.
2848 * character.h: (XCHAR_OR_CHAR_INT):
2849 Always use inline function.
2850 Remove redundant type checking assert() - XINT will abort quite
2853 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2855 * text-coding.c: (Fencode_shift_jis_char):
2856 (Fencode_big5_char):
2857 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
2858 Replace 0 with '\0' when working with bytes.
2859 Replace initial "(" with "\(" in docstrings.
2861 (Fmake_coding_system):
2862 When type is ccl and value is vector, register it with a proper
2863 symbol. And checks whether the given ccl program is valid.
2864 (mule_decode): When calling ccl_driver, if src indicates
2865 NULL pointer, set an empty string instead.
2866 (mule_encode): Likewise.
2869 (detect_coding_sjis):
2870 (decode_coding_sjis):
2871 (detect_coding_big5):
2872 (decode_coding_big5):
2873 (detect_coding_ucs4):
2874 (decode_coding_ucs4):
2875 (detect_coding_utf8):
2876 (decode_coding_utf8):
2877 (detect_coding_iso2022):
2878 (decode_coding_iso2022):
2879 (decode_coding_no_conversion):
2881 Make all detecting and decoding functions take an Extbyte * arg.
2882 (text_encode_generic):
2883 (encode_coding_big5):
2884 (encode_coding_no_conversion):
2886 Make all encoding functions take a Bufbyte * arg.
2887 Use size_t instead of unsigned int for memory sizes.
2888 Only cast to unsigned char whenever dereferencing Extbyte *.
2890 (struct lrecord_description fcd_description_1): Use countof.
2891 (complex_vars_of_file_coding):
2892 Use countof instead of sizeof.
2893 Use CHECK_NATNUM instead of CHECK_INT.
2895 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2897 * mule-charset.c (Fget_char_attribute): Add new optional argument
2899 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2900 (remove_char_ccs): Likewise.
2902 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904 * text-coding.c (char_encode_shift_jis): New implementation in
2906 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2909 * mule-charset.c (Vcharset_chinese_big5): New variable in
2911 (Qchinese_big5): New variable in UTF-2000.
2912 (BIG5_SAME_ROW): New macro in UTF-2000.
2913 (make_builtin_char): Use builtin characters of
2914 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2915 characters of `Vcharset_chinese_big5'.
2916 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2917 (complex_vars_of_mule_charset): Add new coded-charset
2918 `chinese-big5' in UTF-2000.
2920 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2921 (Vcharset_chinese_big5): New external variable declaration.
2922 (Vcharset_japanese_jisx0208_1990): Likewise.
2924 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2926 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2928 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2930 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2932 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2933 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2934 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2937 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2939 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2941 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2943 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2946 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2948 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2949 for `CHARSET_BY_ATTRIBUTES'.
2950 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2951 `CHARSET_BY_ATTRIBUTES'.
2953 * text-coding.c (struct decoding_stream): Rename member `CH' to
2955 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2956 (decode_coding_sjis): Likewise.
2957 (decode_coding_big5): Likewise.
2958 (decode_coding_ucs4): Likewise.
2959 (decode_coding_utf8): Likewise.
2960 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2961 `CHARSET_BY_ATTRIBUTES'.
2962 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2963 `str->counter'; decode 3, 4 bytes sets.
2964 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2966 (decode_coding_no_conversion): Use `str->cpos' instead of
2969 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2970 (Qmojikyo_2022_1): New variable.
2971 (make_charset): Don't use `CHARSET_TYPE_*'.
2972 (range_charset_code_point): Support coded-charset
2974 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2975 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2976 `CHARSET_BY_ATTRIBUTES'.
2977 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2978 `CHARSET_BY_ATTRIBUTES'.
2979 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2980 (complex_vars_of_mule_charset): Add new coded-charset
2983 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2984 interface; changed to inline function.
2986 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2987 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2988 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2989 (CHARSET_TYPE_94): Deleted.
2990 (CHARSET_TYPE_94X94): Deleted.
2991 (CHARSET_TYPE_96): Deleted.
2992 (CHARSET_TYPE_96X96): Deleted.
2993 (CHARSET_TYPE_128): Deleted.
2994 (CHARSET_TYPE_128X128): Deleted.
2995 (CHARSET_TYPE_256): Deleted.
2996 (CHARSET_TYPE_256X256): Deleted.
2997 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2999 (DECODE_MOJIKYO_2022): New inline function.
3000 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3001 `Vcharset_mojikyo_2022_1'.
3003 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3005 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3007 (put_byte_table): Likewise.
3008 (char_id_table_equal): Use `get_byte_table' [new implementation].
3010 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3012 * mule-charset.c: Include <limits.h> in UTF-2000.
3013 (BT_UINT8_MIN): New macro in UTF-2000.
3014 (BT_UINT8_MAX): New macro in UTF-2000.
3015 (BT_UINT8_t): New macro in UTF-2000.
3016 (BT_UINT8_nil): New macro in UTF-2000.
3017 (BT_UINT8_unbound): New macro in UTF-2000.
3018 (INT_UINT8_P): New inline function in UTF-2000.
3019 (UINT8_VALUE_P): New inline function in UTF-2000.
3020 (UINT8_ENCODE): New inline function in UTF-2000.
3021 (UINT8_DECODE): New inline function in UTF-2000.
3022 (mark_uint8_byte_table): New function in UTF-2000.
3023 (print_uint8_byte_table): New function in UTF-2000.
3024 (uint8_byte_table_equal): New function in UTF-2000.
3025 (uint8_byte_table_hash): New function in UTF-2000.
3026 (make_uint8_byte_table): New function in UTF-2000.
3027 (uint8_byte_table_same_value_p): New function in UTF-2000.
3028 (BT_UINT16_MIN): New macro in UTF-2000.
3029 (BT_UINT16_MAX): New macro in UTF-2000.
3030 (BT_UINT16_t): New macro in UTF-2000.
3031 (BT_UINT16_nil): New macro in UTF-2000.
3032 (BT_UINT16_unbound): New macro in UTF-2000.
3033 (INT_UINT16_P): New inline function in UTF-2000.
3034 (UINT16_VALUE_P): New inline function in UTF-2000.
3035 (UINT16_ENCODE): New inline function in UTF-2000.
3036 (UINT16_DECODE): New inline function in UTF-2000.
3037 (UINT8_TO_UINT16): New inline function in UTF-2000.
3038 (mark_uint16_byte_table): New function in UTF-2000.
3039 (print_uint16_byte_table): New function in UTF-2000.
3040 (uint16_byte_table_equal): New function in UTF-2000.
3041 (uint16_byte_table_hash): New function in UTF-2000.
3042 (make_uint16_byte_table): New function in UTF-2000.
3043 (uint16_byte_table_same_value_p): New function in UTF-2000.
3044 (print_byte_table): New function in UTF-2000.
3045 (byte-table): Use `print_byte_table' as printer.
3046 (make_byte_table): Delete second argument `older'.
3047 (byte_table_same_value_p): New function in UTF-2000.
3048 (copy_byte_table): Deleted.
3049 (get_byte_table): New function in UTF-2000.
3050 (put_byte_table): New function in UTF-2000.
3051 (print_char_id_table): New function in UTF-2000.
3052 (char-id-table): Use `print_char_id_table' as printer.
3053 (make_char_id_table): Delete second argument `older'.
3054 (get_char_id_table): Use `get_byte_table [new implementation].
3055 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3057 (Ffind_char_attribute_table): New function in UTF-2000.
3058 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3059 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3060 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3061 (syms_of_mule_charset): Add new function
3062 `find-char-attribute-table' in UTF-2000.
3064 * lrecord.h (enum lrecord_type): Add
3065 `lrecord_type_uint16_byte_table' and
3066 `lrecord_type_uint8_byte_table'.
3068 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3069 (Lisp_Uint8_Byte_Table): New type.
3070 (XUINT8_BYTE_TABLE): New macro.
3071 (XSETUINT8_BYTE_TABLE): New macro.
3072 (UINT8_BYTE_TABLE_P): New macro.
3073 (GC_UINT8_BYTE_TABLE_P): New macro.
3074 (struct Lisp_Uint16_Byte_Table): New structure.
3075 (Lisp_Uint16_Byte_Table): New type.
3076 (XUINT16_BYTE_TABLE): New macro.
3077 (XSETUINT16_BYTE_TABLE): New macro.
3078 (UINT16_BYTE_TABLE_P): New macro.
3079 (GC_UINT16_BYTE_TABLE_P): New macro.
3081 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3083 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3084 (Vcharacter_ideographic_strokes_table): Deleted.
3085 (Vcharacter_total_strokes_table): Deleted.
3086 (Vcharacter_morohashi_daikanwa_table): Deleted.
3087 (Vcharacter_decomposition_table): Deleted.
3088 (Qname): Deleted because it is duplicated.
3089 (Qideographic_radical): Deleted.
3090 (Qideographic_strokes): Deleted.
3091 (Qtotal_strokes): Deleted.
3092 (Qmorohashi_daikanwa): Deleted.
3093 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3094 `ideographic-radical', `ideographic-strokes', `total-strokes',
3095 `morohashi-daikanwa' and `->decomposition'.
3096 (Fget_char_attribute): Likewise.
3097 (Fput_char_attribute): Likewise; use `make-vector' instead of
3098 `make_older_vector' for `->decomposition' value.
3099 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3100 `ideograph-daikanwa'.
3101 (syms_of_mule_charset): Delete builtin symbols `name',
3102 `ideographic-radical', `ideographic-strokes', `total-strokes' and
3103 `morohashi-daikanwa'.
3104 (vars_of_mule_charset): Don't setup
3105 `Vcharacter_ideographic_radical_table',
3106 `Vcharacter_ideographic_strokes_table',
3107 `Vcharacter_total_strokes_table',
3108 `Vcharacter_morohashi_daikanwa_table' and
3109 `Vcharacter_decomposition_table'.
3111 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3113 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3114 `make_older_vector', `make_vector_newer_1' and
3115 `make_vector_newer'.
3117 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3118 `make_older_vector' and `make_vector_newer'.
3120 * config.h.in (HAVE_GGC): New macro.
3122 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3124 * mule-charset.c (struct char_attribute_list_closure): New
3125 structure in UTF-2000.
3126 (add_char_attribute_to_list_mapper): New function in UTF-2000.
3127 (Fchar_attribute_list): Likewise.
3128 (Fset_charset_mapping_table): Use `make_vector_newer'.
3129 (Fdecode_builtin_char): New function in UTF-2000.
3130 (syms_of_mule_charset): Add new function `char-attribute-list' and
3131 `decode-builtin-char' in UTF-2000.
3133 * lisp.h (make_vector_newer): New prototype.
3135 * alloc.c (make_vector_newer_1): New function.
3136 (make_vector_newer): New function.
3138 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3140 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3143 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3145 * mule-charset.c (Vchar_attribute_hash_table): New variable.
3146 (Vcharacter_attribute_table): Deleted.
3147 (Vcharacter_name_table): Deleted.
3148 (put_char_attribute): Deleted.
3149 (remove_char_attribute): Deleted.
3150 (struct char_attribute_alist_closure): New structure.
3151 (add_char_attribute_alist_mapper): New function.
3152 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3153 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3154 (Fget_char_attribute): Likewise.
3155 (Fput_char_attribute): Likewise.
3156 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3157 of `remove_char_attribute'.
3158 (Fdefine_char): Return character.
3159 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3160 and `Vcharacter_name_table'.
3161 (complex_vars_of_mule_charset): Likewise
3162 `Vchar_attribute_hash_table'.
3164 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3166 * character.h (CHARC_CHARSET): New macro.
3167 (CHARC_CHARSET_ID): New macro.
3168 (CHARC_CODE_POINT): New macro.
3169 (CHARC_COLUMNS): New macro.
3170 (CHARC_TO_CHAR): New inline function.
3171 (CHARC_EQ): New inline function.
3172 (CHARC_ASCII_EQ): New inline function.
3173 (CHARC_IS_SPACE): New inline function.
3174 (ASCII_TO_CHARC): New inline function.
3176 * char-ucs.h (encode_char_2): Deleted.
3177 (ENCODE_CHAR): Use `encode_char_1' again.
3178 (breakup_char_1): Likewise.
3179 (CHAR_TO_CHARC): New inline function.
3181 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3183 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3185 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3186 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3187 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3188 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3189 (create_string_text_block): Use `CHARC_ASCII_EQ' and
3191 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3193 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3195 (x_output_display_block): Use `CHARC_CHARSET' and
3198 * redisplay-tty.c (tty_output_display_block): Use
3200 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3202 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3204 * insdel.c (find_charsets_in_charc_string): Use
3206 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3207 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3208 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3209 (convert_charc_string_into_malloced_string): Likewise.
3211 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3213 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3214 instead of <Emchar_dynarr *> for buf; use
3215 `convert_bufbyte_string_into_charc_dynarr' instead of
3216 `convert_bufbyte_string_into_emchar_dynarr'; use
3217 `find_charsets_in_charc_string' instead of
3218 `find_charsets_in_emchar_string'.
3221 - Include "character.h".
3222 (struct rune): New member `cglyph'; delete member `chr'.
3224 * redisplay.c (redisplay_text_width_charc_string): New function;
3225 delete `redisplay_text_width_emchar_string'.
3226 (rtw_charc_dynarr): New variable; renamed from
3227 `rtw_emchar_dynarr'.
3228 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3229 `rtw_emchar_dynarr'; use
3230 `convert_bufbyte_string_into_charc_dynarr' instead of
3231 `convert_bufbyte_string_into_emchar_dynarr'; use
3232 `redisplay_text_width_charc_string' instead of
3233 `redisplay_text_width_emchar_string'.
3234 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3235 instead of `rtw_emchar_dynarr'; use
3236 `convert_bufbyte_string_into_charc_dynarr' instead of
3237 `convert_bufbyte_string_into_emchar_dynarr'.
3238 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3239 `redisplay_text_width_charc_string' instead of
3240 `redisplay_text_width_emchar_string'.
3241 (create_text_block): Modify for <struct rune> change.
3242 (generate_formatted_string_db): Likewise.
3243 (create_string_text_block): Likewise.
3244 (pixel_to_glyph_translation): Likewise.
3246 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3247 instead of <const Emchar *>.
3248 (x_text_width): Likewise.
3249 (x_output_display_block): Use <Charc_dynarr *> instead
3250 <Emchar_dynarr *>; modify for <structure rune> change.
3251 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3254 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3255 <const Emchar *>; use `charc_string_displayed_columns' instead of
3256 `emchar_string_displayed_columns'.
3257 (tty_output_display_block): Use <Charc_dynarr *> instead of
3258 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3259 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3260 (tty_output_charc_dynarr_dynarr): New variable; renamed from
3261 `tty_output_emchar_dynarr_dynarr'.
3262 (tty_output_charc_dynarr): New function; delete
3263 `tty_output_charc_dynarr'.
3265 * redisplay-output.c (compare_runes): Modify for `struct rune'.
3266 (redisplay_output_layout): Use <Charc_dynarr *> instead of
3267 <Emchar_dynarr *> for buf; use
3268 `convert_bufbyte_string_into_charc_dynarr' instead of
3269 `convert_bufbyte_string_into_emchar_dynarr'.
3271 * frame.c (title_string_charc_dynarr): New variable; renamed from
3272 `title_string_emchar_dynarr'.
3273 (generate_title_string): Use `title_string_charc_dynarr' instead
3274 of `title_string_emchar_dynarr'; use
3275 `convert_charc_string_into_malloced_string' instead of
3276 `convert_emchar_string_into_malloced_string'.
3277 (init_frame): Use `title_string_charc_dynarr' instead of
3278 `title_string_emchar_dynarr'.
3281 - Include "character.h".
3282 (struct console_methods): Use <const Charc *> instead of <const
3283 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3284 <Emchar_dynarr *> in output_string_method.
3286 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3289 * console-stream.c (stream_text_width): Use <const Charc *>
3290 instead of <const Emchar *>.
3292 * character.h (Charc_dynarr): New type.
3294 * char-ucs.h (structure Charc): New structure; define new type
3297 * char-lb.h (DECODE_CHAR): New inline function.
3298 (encode_char_1): New inline function.
3299 (ENCODE_CHAR): New macro.
3300 (structure Charc): New structure; define new type `Charc'.
3302 * char-1byte.h (Vcharset_control_1): New macro.
3303 (Vcharset_latin_iso8859_1): New macro.
3304 (DECODE_CHAR): New inline function.
3305 (encode_char_1): New inline function.
3306 (ENCODE_CHAR): New macro.
3307 (structure Charc): New structure; define new type `Charc'.
3309 * insdel.c (find_charsets_in_charc_string): New function; delete
3310 `find_charsets_in_emchar_string'.
3311 (charc_string_displayed_columns): New function; delete
3312 `emchar_string_displayed_columns'.
3313 (convert_bufbyte_string_into_charc_dynarr): New function; delete
3314 `convert_bufbyte_string_into_emchar_dynarr'.
3315 (convert_charc_string_into_bufbyte_dynarr): New function; delete
3316 `convert_charc_string_into_bufbyte_dynarr'.
3317 (convert_charc_string_into_malloced_string): New function; delete
3318 `convert_charc_string_into_malloced_string'.
3320 * buffer.h (find_charsets_in_charc_string): New prototype; delete
3321 `find_charsets_in_emchar_string'.
3322 (charc_string_displayed_columns): New prototype; delete
3323 `emchar_string_displayed_columns'.
3324 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3325 `convert_charc_string_into_bufbyte_dynarr'.
3326 (convert_charc_string_into_malloced_string): New prototype; delete
3327 `convert_charc_string_into_malloced_string'.
3329 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3331 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3333 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3337 * char-ucs.h: Use <short> for <Charset_ID>.
3339 * mule-charset.h, char-1byte.h: Use <unsigned char> for
3342 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3344 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3347 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3349 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3351 (Qmorohashi_daikanwa): New variable.
3352 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3353 for `morohashi-daikanwa' attribute.
3354 (Fget_char_attribute): Likewise.
3355 (Fput_char_attribute): Likewise.
3356 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3357 has the same value of `ideograph-daikanwa'.
3358 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3359 (vars_of_mule_charset): Setup
3360 `Vcharacter_morohashi_daikanwa_table'.
3362 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3364 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3366 (add_charset_to_list_mapper): Add `key' instead of
3367 `XCHARSET_NAME (value)' to return aliases.
3369 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3371 * mule-charset.c (Vcharacter_ideographic_radical_table): New
3373 (Vcharacter_ideographic_strokes_table): New variable.
3374 (Qideographic_radical): New variable.
3375 (Qideographic_strokes): New variable.
3376 (Fchar_attribute_alist): Use
3377 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3378 attribute; use `Vcharacter_ideographic_strokes_table' for
3379 `ideographic-strokes' attribute.
3380 (Fget_char_attribute): Likewise.
3381 (Fput_char_attribute): Likewise.
3382 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3383 `ideographic-strokes'.
3384 (vars_of_mule_charset): Setup
3385 `Vcharacter_ideographic_radical_table' and
3386 `Vcharacter_ideographic_strokes_table'.
3388 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3390 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3391 (Qtotal_strokes): New variable.
3392 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3393 `total-strokes' attribute.
3394 (Fget_char_attribute): Likewise.
3395 (Fput_char_attribute): Likewise.
3396 (syms_of_mule_charset): Add new symbol `total-strokes'.
3397 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3399 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3401 * mule-charset.c (Vcharacter_decomposition_table): New variable.
3402 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3404 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3405 `->decomposition' attribute.
3406 (Fput_char_attribute): Likewise.
3407 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3409 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3411 * mule-charset.c (decoding_table_check_elements): New function.
3412 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3414 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3416 * mule-charset.c (Fset_charset_mapping_table): Use
3417 `put_char_ccs_code_point'.
3419 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3421 * mule-charset.c (decoding_table_put_char): New inline function.
3422 (put_char_ccs_code_point): Use `decoding_table_put_char'.
3424 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3426 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3427 (XCHARSET_BYTE_SIZE): New macro.
3428 (decoding_table_remove_char): New inline function.
3429 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3430 `decoding_table_remove_char'.
3431 (remove_char_ccs): Use `decoding_table_remove_char'.
3432 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3434 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3436 * mule-charset.c (Vcharacter_name_table): New variable.
3437 (Qname): New variable.
3438 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3440 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3441 `Vcharacter_name_table' for `name' attribute.
3442 (Fremove_char_attribute): Use function `remove_char_ccs'.
3443 (put_char_ccs_code_point): New function.
3444 (remove_char_ccs): New function.
3445 (syms_of_mule_charset): Add new symbol `name'.
3446 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3448 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3450 * mule-charset.c (make_byte_table): Add new argument `older'.
3451 (make_char_id_table): Likewise.
3452 (copy_char_id_table): Comment out because it is not used.
3453 (put_char_id_table): Modify for `make_byte_table'.
3454 (Fput_char_attribute): Make encoding_table as older object;
3455 inherit older bit of `Vcharacter_composition_table'.
3456 (mark_charset): Don't mark `cs->encoding_table'.
3457 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3458 normal object; make `Vcharacter_composition_table' as an older
3459 object; delete staticpro for `Vcharacter_composition_table'; make
3460 `Vcharacter_variant_table' as a normal object.
3462 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3463 (mark_object): Don't check older object in UTF-2000.
3465 * lrecord.h (struct lrecord_header): Add new member `older' in
3467 (set_lheader_implementation): Setup `SLI_header->older' in
3469 (set_lheader_older_implementation): New macro in UTF-2000.
3470 (OLDER_RECORD_P): New macro in UTF-2000.
3471 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3472 (alloc_older_lcrecord): New prototype in UTF-2000.
3473 (alloc_older_lcrecord_type): New macro in UTF-2000.
3475 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3477 * mule-charset.c (byte_table_description): Use
3478 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3479 (char_id_table_description): Delete bogus `, 1'.
3480 (Fget_char_attribute): Refer encoding_table of each coded-charset
3481 to get value of coded-charset attribute of a character.
3482 (Fput_char_attribute): Use `make_older_vector' instead of
3483 `make_vector'; use encoding_table of each coded-charset to store
3484 value of coded-charset attribute of a character.
3485 (Fremove_char_attribute): Use encoding_table of each coded-charset
3486 to store value of coded-charset attribute of a character.
3487 (mark_charset): Mark `cs->encoding_table'; don't mark
3488 `cs->decoding_table'.
3489 (charset_description): Add description of new member
3491 (make_charset): Initialize `encoding_table'.
3493 * char-ucs.h (struct Lisp_Charset): Add new member
3495 (CHARSET_ENCODING_TABLE): New macro.
3496 (XCHARSET_ENCODING_TABLE): New macro.
3497 (charset_code_point): New implementation.
3498 (encode_char_1): Likewise.
3500 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3501 (disksave_object_finalization_1): Call finalizers of
3502 `all_older_lcrecords' in UTF-2000.
3503 (make_older_vector): New function in UTF-2000.
3504 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3507 * lisp.h (make_older_vector): New prototype in UTF-2000.
3509 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3511 * lrecord.h (enum lrecord_type): Rename
3512 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3514 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3515 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3516 `get_char_code_table'.
3518 * mule-charset.c (mark_char_id_table): Renamed from
3519 `mark_char_code_table'.
3520 (char_id_table_equal): Renamed from `char_code_table_equal'.
3521 (char_id_table_hash): Renamed from `char_code_table_hash'.
3522 (make_char_id_table): Renamed from `make_char_code_table'.
3523 (copy_char_id_table): Renamed from `copy_char_code_table'.
3524 (get_char_id_table): Renamed from `get_char_code_table'.
3525 (put_char_id_table): Renamed from `put_char_code_table'.
3526 (to_char_id): Renamed from `to_char_code'.
3528 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3529 `Lisp_Char_Code_Table'.
3530 (char_id_table): Renamed from `char_code_table'.
3531 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3532 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3533 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3534 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3535 (get_char_id_table): Renamed from `get_char_code_table'.
3537 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3539 * lrecord.h (enum lrecord_type): Rename
3540 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3542 * mule-charset.c (mark_byte_table): Renamed from
3543 `mark_char_byte_table'.
3544 (byte_table_equal): Renamed from `char_byte_table_equal'.
3545 (byte_table_hash): Renamed from `byte_table_hash'.
3546 (make_byte_table): Renamed from `make_byte_table'.
3547 (copy_byte_table): Renamed from `copy_char_byte_table'.
3549 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3550 `Lisp_Char_Byte_Table'.
3551 (byte_table): Renamed from `char_byte_table'.
3552 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3553 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3554 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3555 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3557 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3559 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3560 (dfc_convert_to_internal_format): Likewise.
3562 * text-coding.c (Fcoding_system_canonical_name_p): New function.
3563 * text-coding.c (Fcoding_system_alias_p): New function.
3564 * text-coding.c (Fcoding_system_aliasee): New function.
3565 * text-coding.c (append_suffix_to_symbol): New function.
3566 * text-coding.c (dangling_coding_system_alias_p): New function.
3567 * text-coding.c (Ffind_coding_system):
3568 * text-coding.c (Fcopy_coding_system):
3569 * text-coding.c (encode_coding_no_conversion):
3570 * text-coding.c (syms_of_file_coding):
3571 * text-coding.c (vars_of_file_coding):
3572 Rewrite coding system alias code.
3573 Allow nested aliases, like symbolic links.
3574 Allow redefinition of coding system aliases.
3575 Prevent existence of dangling coding system aliases.
3576 Eliminate convert_to_external_format.
3577 Eliminate convert_to_internal_format.
3579 * text-coding.c: Change enum eol_type to eol_type_t.
3581 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3583 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3584 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3586 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3587 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3589 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3591 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3592 `ideograph-daikanwa'.
3594 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3595 (Vcharset_ucs_bmp): Likewise.
3596 (Vcharset_mojikyo): Add new extern variable definition.
3597 (Vcharset_latin_iso8859_2): Deleted because it is not used.
3598 (Vcharset_latin_iso8859_3): Likewise.
3599 (Vcharset_latin_iso8859_4): Likewise.
3600 (Vcharset_latin_iso8859_9): Likewise.
3601 (Vcharset_latin_viscii_lower): Likewise.
3602 (Vcharset_latin_viscii_upper): Likewise.
3603 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3604 `mojikyo' code-point is used to decode.
3605 (encode_char_2): New function [to convert `mojikyo' code-point to
3606 Mojikyo font encoding].
3607 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3608 (breakup_char_1): Likewise.
3609 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3611 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3613 * text-coding.c (Fmake_coding_system): Add document about
3614 `disable-composition' property.
3616 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3618 * text-coding.c (Qdisable_composition): New variable; delete
3620 (Fmake_coding_system): Add new property `disable-composite';
3621 delete property `composite'.
3622 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3623 instead of `!CODING_SYSTEM_COMPOSITE'.
3624 (syms_of_file_coding): Add new symbol `disable-composition';
3625 delete symbol `composite'.
3627 * file-coding.h (struct Lisp_Coding_System): Add
3628 `disable_composition'; delete `enable_composition'.
3629 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3630 `CODING_SYSTEM_COMPOSITE'.
3631 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3632 `XCODING_SYSTEM_COMPOSITE'.
3634 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3636 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3639 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3641 * text-coding.c (Qcomposite): New variable.
3642 (Fmake_coding_system): Add new property `composite'.
3643 (struct decoding_stream): Add `combined_char_count',
3644 `combined_chars' and `combining_table' in UTF-2000.
3645 (COMPOSE_FLUSH_CHARS): New macro.
3646 (COMPOSE_ADD_CHAR): New macro.
3647 (reset_decoding_stream): Reset `str->combined_char_count' and
3648 `str->combining_table' in UTF-2000.
3649 (decode_coding_iso2022): Modify for character-decomposition.
3650 (syms_of_file_coding): Add new symbol `composite'.
3652 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3654 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3655 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3656 of `Vcharacter_composition_table' if `->decomposition' property
3658 (Qlatin_tcvn5712): New variable.
3659 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3660 (complex_vars_of_mule_charset): Add new coded-charset
3663 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3665 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3667 * file-coding.h (struct Lisp_Coding_System): Add
3668 `enable_composition'.
3669 (CODING_SYSTEM_COMPOSITE): New macro.
3670 (XCODING_SYSTEM_COMPOSITE): New macro.
3672 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
3674 * mule-canna.c (c2mu): Fix problem with UTF-2000.
3676 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
3678 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3679 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3681 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
3683 * mule-charset.c (Vcharset_mojikyo): New variable.
3684 (Fdefine_char): Don't use coded-charset which does not have
3685 non-builtin character range to allocate character-id.
3686 (Qmojikyo): New variable.
3687 (syms_of_mule_charset): Add new symbol `mojikyo'.
3688 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3690 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3691 (LEADING_BYTE_MOJIKYO): New macro.
3692 (MIN_CHAR_MOJIKYO): New macro.
3693 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3694 (MAX_CHAR_MOJIKYO): New macro.
3696 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
3698 * mule-charset.c (remove_char_attribute): Fixed.
3700 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
3702 * mule-charset.c (remove_char_attribute): New function.
3703 (Fremove_char_attribute): New function.
3704 (encode_builtin_char_1): Comment out builtin-support for
3705 greek-iso8859-7 and cyrillic-iso8859-5.
3706 (Fdecode_char): Check `code' is an integer.
3707 (syms_of_mule_charset): Add `remove-char-attribute'.
3708 (MIN_CHAR_GREEK): Deleted.
3709 (MAX_CHAR_GREEK): Likewise.
3710 (MIN_CHAR_CYRILLIC): Likewise.
3711 (MAX_CHAR_CYRILLIC): Likewise.
3712 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3713 MAX_CHAR_GREEK for `greek-iso8859-7'.
3715 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3716 (MAX_CHAR_GREEK): Likewise.
3717 (MIN_CHAR_CYRILLIC): Likewise.
3718 (MAX_CHAR_CYRILLIC): Likewise.
3720 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
3722 * mule-charset.c (Fdefine_char): Fix problem when new code-point
3723 format is used without `ucs' property.
3724 (Fdecode_char): Fix problem with GR representation.
3725 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3726 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3728 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3730 * mule-charset.c (make_builtin_char): New function.
3731 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3732 (Fset_charset_mapping_table): Modify for new representation of
3734 (Fdecode_char): New function.
3735 (syms_of_mule_charset): Add new builtin function `decode-char' in
3738 * char-ucs.h (make_builtin_char): New prototype.
3739 (DECODE_CHAR): New inline function.
3740 (MAKE_CHAR): Use `DECODE_CHAR'.
3742 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
3744 * text-coding.c (parse_charset_conversion_specs): Use
3745 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3747 (iso2022_designate): Likewise.
3749 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3750 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3752 * mule-charset.c (Vcharset_ucs): New variable.
3753 (print_charset): Change design; use `CHARSET_CHARS' and
3754 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3755 (make_charset): Change signature to specify `chars' and
3756 `dimension' instead of `type'.
3757 (range_charset_code_point): Modify for 256^n-set.
3758 (encode_builtin_char_1): Encode as `ucs' in default.
3759 (Fmake_charset): Modify for `make_charset'.
3760 (Fmake_reverse_direction_charset): Likewise.
3761 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3763 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3766 * char-ucs.h (Vcharset_ucs): New variable.
3767 (LEADING_BYTE_UCS): New macro.
3768 (struct Lisp_Charset): Delete `type'; change type of `dimension'
3769 and `chars' to `unsigned short' from `unsigned int'.
3770 (CHARSET_TYPE): Deleted.
3771 (XCHARSET_TYPE): Deleted.
3773 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
3775 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3777 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3778 (ENCODE_CHAR): New macro.
3780 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3782 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3783 to 0.14 (Kawachi-Katakami).
3785 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3787 * text-coding.c (char_encode_shift_jis): Modify for
3788 `charset_code_point'.
3789 (char_encode_iso2022): Likewise.
3791 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3792 (integer) instead of list of <Lisp_Object>s (integers) as the
3793 format of code-point of a coded-charset.
3794 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3795 (encode_builtin_char_1): New function; delete
3796 `split_builtin_char'.
3797 (charset_code_point): Return <int> instead of <Lisp_Object>.
3798 (Fsplit_char): Don't use `SPLIT_CHAR'.
3800 * char-ucs.h (encode_builtin_char_1): New prototype; delete
3801 prototype for `split_builtin_char'.
3802 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3803 (charset_code_point): Likewise.
3804 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3805 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3807 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
3809 * mule-charset.c (complex_vars_of_mule_charset): Don't define
3810 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3812 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3814 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3816 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3817 (MAX_CHAR_OBS_94x94): Deleted.
3819 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3821 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3823 * char-ucs.h (MAX_CHAR_BMP): New macro.
3825 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3827 * text-coding.c: Sync with r21-2-24.
3829 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3831 * file-coding.c: Modify for UTF-2000.
3833 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3835 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3838 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3840 * mule-charset.c (split_builtin_char): Delete builtin support for
3841 `katakana-jisx0201'.
3842 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3843 BMP area in builtin representation.
3845 * char-ucs.h (MAKE_CHAR): Delete builtin support for
3846 `Vcharset_katakana_jisx0201'.
3848 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
3850 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3851 (Qisolated): New variable.
3852 (Qinitial): New variable.
3853 (Qmedial): New variable.
3854 (Qfinal): New variable.
3855 (Qvertical): New variable.
3856 (Qsmall): New variable.
3857 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3858 `Qvertical' and `Qsmall'.
3859 (Qmojikyo_pj_[1 .. 21]): New variable.
3860 (syms_of_mule_charset): Add new symbols `isolated', `initial',
3861 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3862 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3865 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3867 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3868 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3869 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3871 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3873 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3874 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3876 (Qjapanese_jisx0208_1990): New variable.
3877 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3878 (complex_vars_of_mule_charset): Add new coded-charset
3879 `japanese-jisx0208-1990'.
3881 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3882 (MIN_CHAR_JIS_X0208_1990): New macro.
3883 (MAX_CHAR_JIS_X0208_1990): New macro.
3885 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3887 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3888 coded-charset is not found.
3890 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3892 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3893 (Fdefine_char): Use `Fmake_char'.
3895 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3897 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3898 (Vcharset_hiragana_jisx0208): Deleted.
3899 (Vcharset_katakana_jisx0208): Deleted.
3900 (Qideograph_daikanwa): New variable.
3901 (Qhiragana_jisx0208): Deleted.
3902 (Qkatakana_jisx0208): Deleted.
3903 (split_builtin_char): Split `ideograph-daikanwa'.
3904 (Fsplit_char): New implementation for UTF-2000.
3905 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3906 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3907 (complex_vars_of_mule_charset): Add new coded-charset
3908 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3909 `katakana-jisx0208'.
3911 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3912 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3913 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3914 (MIN_CHAR_DAIKANWA): New macro.
3915 (MAX_CHAR_DAIKANWA): New macro.
3917 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3919 * data.c (Fstring_to_number): Don't recognize floating point if
3922 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3924 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3926 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3928 * mule-charset.c (Qsquare): New variable.
3929 (to_char_code): Add `Qsquare'.
3930 (syms_of_mule_charset): Add new symbol `square'.
3932 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3934 * mule-charset.c (Qcircle): New variable.
3935 (to_char_code): Add `Qcircle'.
3936 (syms_of_mule_charset): Add new symbol `circle'.
3938 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3940 * mule-charset.c (Qfont): New variable.
3941 (to_char_code): Add `Qfont'.
3942 (syms_of_mule_charset): Add new symbol `font'.
3944 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3946 * mule-charset.c (Qsub): New variable.
3947 (to_char_code): Add `Qsub'.
3948 (syms_of_mule_charset): Add new symbol `sub'.
3950 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3952 * mule-charset.c (Fput_char_attribute): Convert each element of
3953 VALUE to GL position if ATTRIBUTE is a GR-set,
3955 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3957 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3958 coded-charset is a GR-set.
3960 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3962 * mule-charset.c (Fput_char_attribute): Check each element of
3963 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3965 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3967 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3969 (Qethiopic_ucs): New variable in UTF-2000.
3970 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3971 (complex_vars_of_mule_charset): Add new coded-charset
3972 `ethiopic-ucs' in UTF-2000.
3974 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3975 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3977 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3979 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3981 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3983 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3986 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3988 * mule-charset.c (Vcharacter_variant_table): New variable.
3989 (Q_ucs): New variable.
3990 (Fchar_variants): New function.
3991 (Fput_char_attribute): Register `->ucs' value to
3992 `Vcharacter_variant_table'.
3993 (syms_of_mule_charset): Add new function `char-variants' and new
3995 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3997 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3999 * mule-charset.c (get_char_code_table): Allow negative character
4001 (put_char_code_table): Likewise.
4002 (Vcharacter_composition_table): New variable.
4003 (Q_decomposition): New variable.
4004 (Qwide): New variable.
4005 (Qnarrow): New variable.
4006 (Qcompat): New variable.
4007 (QnoBreak): New variable.
4008 (Qsuper): New variable.
4009 (Qfraction): New variable.
4010 (to_char_code): New function.
4011 (Fget_composite_char): New function.
4012 (Fput_char_attribute): Register `->decomposition' value to
4013 `Vcharacter_composition_table'.
4014 (syms_of_mule_charset): Add new function `get-composite-char', new
4015 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4016 `super' and `fraction'.
4017 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4019 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4021 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4022 character; copy the return value.
4024 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4026 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4028 * mule-charset.c (range_charset_code_point): Must use make_int.
4029 (split_builtin_char): New function.
4031 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4033 * mule-charset.c (char_byte_table): Change name from
4034 "char-code-table" to "char-byte-table".
4035 (mark_char_code_table): New function.
4036 (char_code_table_equal): New function.
4037 (char_code_table_hash): New function.
4038 (char_code_table_description): New constant.
4039 (char_code_table): New type.
4040 (make_char_code_table): New function.
4041 (copy_char_code_table): New function.
4042 (get_char_code_table): Modify for `char_code_table' type.
4043 (put_char_code_table): Likewise.
4044 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4047 * char-ucs.h (char_code_table): New type.
4048 (XCHAR_CODE_TABLE): New macro.
4049 (XSETCHAR_CODE_TABLE): New macro.
4050 (CHAR_CODE_TABLE_P): New macro.
4051 (GC_CHAR_CODE_TABLE_P): New macro.
4052 (struct Lisp_Char_Code_Table): New structure.
4054 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4056 * mule-charset.c (Fmake_charset): Setup byte_offset for
4059 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
4061 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4064 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4066 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4069 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4071 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4072 charset, it is regarded as a charset.
4073 (put_char_attribute): New function in UTF-2000.
4074 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4075 charset, mapping-table of the charset is modified.
4076 (Fdefine_char): New function in UTF-2000.
4077 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4078 `Fput_char_attribute'.
4079 (syms_of_mule_charset): Add new function `define-char' and new
4080 symbol `ucs' in UTF-2000.
4081 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4083 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4085 * mule-charset.c (Fcharset_name): Define `byte_offset' in
4086 non-UTF-2000 configuration.
4088 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4090 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4091 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4093 * mule-charset.c (mark_charset): `cs->encoding_table' has been
4095 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4096 (Fset_charset_mapping_table): Likewise.
4098 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4099 (CHARSET_ENCODING_TABLE): Delete.
4100 (XCHARSET_ENCODING_TABLE): Delete.
4101 (charset_code_point): New interface.
4103 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4105 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4106 instead of `charset_get_byte1' and `charset_get_byte2'.
4108 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4109 (charset_get_byte2): Deleted.
4111 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4113 * char-ucs.h (SPLIT_CHAR): New inline function.
4114 (breakup_char_1): Use `SPLIT_CHAR'.
4116 * mule-charset.c (range_charset_code_point): New function.
4117 (charset_code_point): New function.
4119 * char-ucs.h (range_charset_code_point): New interface.
4120 (breakup_char_1): Use `range_charset_code_point'.
4122 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4124 * mule-charset.c (Fmake_charset): Delete unused local variable
4127 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4128 (breakup_char_1): Find a charset and code-point in
4129 `Vcharacter_attribute_table'.
4131 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4133 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4136 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4138 * mule-charset.c (Vcharacter_attribute_table): New variable.
4139 (Fchar_attribute_alist): New function.
4140 (Fget_char_attribute): New function.
4141 (Fput_char_attribute): New function.
4142 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4144 (syms_of_mule_charset): Add new function `char-attribute-alist',
4145 `get-char-attribute' and `put-char-attribute'.
4146 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4148 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
4150 * mule-charset.c (Fmake_charset): Just use
4151 `get_unallocated_leading_byte'.
4153 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4154 sets; don't use final-byte based number for private sets.
4156 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4158 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4161 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4163 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4166 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4168 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4169 of `CHAR_LEADING_BYTE' in UTF-2000.
4171 * insdel.c (find_charsets_in_bufbyte_string): Use
4172 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4173 (find_charsets_in_emchar_string): Likewise.
4175 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4176 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4178 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4179 (CHAR_CHARSET_ID): New macro.
4181 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4183 * chartab.c (get_char_table): Don't use type `Charset_ID' for
4184 charset-id - MIN_LEADING_BYTE.
4185 (put_char_table): Likewise.
4187 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4189 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4190 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4191 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4192 (CHARSET_ID_OFFSET): New macro.
4193 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4194 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4195 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4196 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4198 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4200 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4201 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4202 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4203 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4204 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4206 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4208 * mule-charset.c (next_allocated_leading_byte): New variable in
4210 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4211 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4212 (get_unallocated_leading_byte): Simply use
4213 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4214 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4217 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4218 (MAX_LEADING_BYTE_PRIVATE): New macro.
4219 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4220 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4222 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4224 * mule-charset.c (Fmake_charset): Allocate final-byte based
4225 charset-id for 94-set, 96-set and 94x94-set.
4227 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4229 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4231 (Fmake_charset): Likewise.
4232 (complex_vars_of_mule_charset): Modify the font registry of
4233 `ucs-bmp' not to match `Ethiopic-Unicode'.
4235 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4237 * mule-charset.c (complex_vars_of_mule_charset): Add font
4238 registory of `ucs-bmp'.
4240 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4242 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4243 coded-charsets in `default-coded-charset-priority-list' when
4244 breaking up a character.
4246 * mule-charset.c (Vcharset_latin_viscii): New variable.
4247 (Qlatin_viscii): New variable.
4248 (make_charset): Don't use `decoding_table'.
4249 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4251 (Fset_charset_mapping_table): New implementation.
4252 (syms_of_mule_charset): Add new symbol `latin-viscii'.
4253 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4254 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4255 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4256 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4257 charset `latin_viscii'.
4259 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4260 (CHARSET_TYPE_94X94): Change to 1 from 2.
4261 (CHARSET_TYPE_96): Change to 2 from 1.
4262 (CHARSET_TYPE_128): New macro.
4263 (CHARSET_TYPE_128X128): Change to 5 from 4.
4264 (CHARSET_TYPE_256): New macro.
4265 (CHARSET_TYPE_256X256): Change to 7 from 5.
4266 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4268 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4270 * text-coding.c (char_encode_shift_jis): Refer
4271 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4272 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4274 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4275 (char_byte_table_equal): New function in UTF-2000.
4276 (char_byte_table_hash): New function in UTF-2000.
4277 (char_byte_table_description): New constant in UTF-2000.
4278 (char_byte_table): New type in UTF-2000.
4279 (make_char_byte_table): New function in UTF-2000.
4280 (copy_char_byte_table): New function in UTF-2000.
4281 (make_char_code_table): New macro in UTF-2000.
4282 (get_char_code_table): New function in UTF-2000.
4283 (put_char_code_table): New function in UTF-2000.
4284 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4285 (charset_description): Add setting in UTF-2000.
4286 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4287 `CHARSET_TO_BYTE1_TABLE(cs)'.
4288 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4289 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4290 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4291 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4292 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4293 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4294 `CHARSET_TO_BYTE2_TABLE(cs)'.
4296 * char-ucs.h (char_byte_table): New type.
4297 (XCHAR_BYTE_TABLE): New macro.
4298 (XSETCHAR_BYTE_TABLE): New macro.
4299 (CHAR_BYTE_TABLE_P): New macro.
4300 (GC_CHAR_BYTE_TABLE_P): New macro.
4301 (struct Lisp_Char_Byte_Table): New structure.
4302 (get_char_code_table): New interface.
4303 (Emchar_to_byte_table): Deleted.
4304 (get_byte_from_character_table): Deleted.
4305 (struct Lisp_Charset): Add `encoding_table'; delete
4306 `to_byte1_table' and `to_byte2_table'.
4307 (CHARSET_ENCODING_TABLE): New macro.
4308 (CHARSET_TO_BYTE1_TABLE): Deleted.
4309 (CHARSET_TO_BYTE2_TABLE): Deleted.
4310 (XCHARSET_ENCODING_TABLE): New macro.
4311 (XCHARSET_TO_BYTE1_TABLE): Deleted.
4312 (XCHARSET_TO_BYTE2_TABLE): Deleted.
4314 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4316 * mule-charset.c (syms_of_mule_charset): Delete charset alias
4317 `vietnamese-viscii-*'.
4319 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4321 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4322 (Qvietnamese_viscii_upper): New variable.
4323 (Fdefine_charset_alias): New function.
4324 (syms_of_mule_charset): Add new function `define-charset-alias'.
4325 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4326 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4329 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
4331 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4332 (MAX_CHAR_OBS_94x94): New macro.
4333 (breakup_char_1): Support obsolete XEmacs-UCS private code space
4336 * mule-charset.c (put_byte_from_character_table): Change unit size
4338 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4340 (Fmake_reverse_direction_charset): Modify dummy argument of
4341 `make_charset' for non-UTF-2000 environment.
4343 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
4345 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4347 * mule-charset.c (destroy_byte_from_character_table): New macro.
4348 (latin_jisx0201_to_ucs): Deleted.
4349 (latin_iso8859_2_to_ucs): Deleted.
4350 (latin_iso8859_3_to_ucs): Deleted.
4351 (latin_iso8859_4_to_ucs): Deleted.
4352 (latin_iso8859_9_to_ucs): Deleted.
4353 (latin_viscii_lower_to_ucs): Deleted.
4354 (latin_viscii_upper_to_ucs): Deleted.
4355 (mark_charset): Mark `cs->decoding_table'.
4356 (Fcharset_mapping_table): Fix DOC-string.
4357 (Fset_charset_mapping_table): New function.
4358 (syms_of_mule_charset): Add nwe function
4359 `set-charset-mapping-table'.
4360 (complex_vars_of_mule_charset): Don't setup and use
4363 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
4365 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4368 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
4370 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4371 (Vcharset_katakana_jisx0208): New variable.
4372 (Qhiragana_jisx0208): New variable.
4373 (Qkatakana_jisx0208): New variable.
4374 (make_charset): Add new argument `byte_offset'.
4375 (charset_get_byte1): Modify for new coded-charset definition; use
4376 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4377 `XCHARSET_BYTE_OFFSET'.
4378 (Fmake_charset): Modify for `make_charset'.
4379 (Fmake_reverse_direction_charset): Likewise.
4380 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4381 `katakana-jisx0208'.
4382 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4383 `.' in font registry of charset `katakana-jisx0201',
4384 `latin-jisx0201', `vietnamese-viscii-lower' and
4385 `vietnamese-viscii-upper'; modify DOC-string of charset
4386 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4387 registry of charset `japanese-jisx0208' not to use font for JIS
4388 X0208:1990; add new charset `hiragana-jisx0208' and
4389 `katakana-jisx0208'.
4391 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4392 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4393 (struct Lisp_Charset): Add `byte_offset'.
4394 (CHARSET_BYTE_OFFSET): New macro.
4395 (XCHARSET_UCS_MIN): New macro.
4396 (XCHARSET_UCS_MAX): New macro.
4397 (XCHARSET_CODE_OFFSET): New macro.
4398 (XCHARSET_BYTE_OFFSET): New macro.
4399 (MIN_CHAR_HIRAGANA): New macro.
4400 (MAX_CHAR_HIRAGANA): New macro.
4401 (MIN_CHAR_KATAKANA): New macro.
4402 (MAX_CHAR_KATAKANA): New macro.
4403 (MAKE_CHAR): Modify for new coded-charset definition; use
4404 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4405 `XCHARSET_BYTE_OFFSET'.
4407 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4409 * mule-charset.c (CHAR96): Deleted.
4410 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4412 (latin_iso8859_2_to_ucs): Likewise.
4413 (latin_iso8859_3_to_ucs): Likewise.
4414 (latin_iso8859_4_to_ucs): Likewise.
4415 (latin_iso8859_9_to_ucs): Likewise.
4416 (latin_viscii_lower_to_ucs): Likewise.
4417 (latin_viscii_upper_to_ucs): Likewise.
4418 (latin_tcvn5712_to_ucs): Commented out.
4419 (make_charset): Change type of argument `decoding_table' from
4420 <Emchar*> to <Lisp_Object> [vector of characters].
4421 (Fmake_charset): Modify for `make_charset'.
4422 (Fmake_reverse_direction_charset): Likewise.
4423 (Fcharset_mapping_table): New function in UTF-2000.
4424 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4426 (complex_vars_of_mule_charset): Modify for type change of
4427 `*_to_ucs'; modify for `make_charset'.
4429 * char-ucs.h (struct Lisp_Charset): Change type of
4430 `decoding_table' from <Emchar*> to <Lisp_Object>.
4431 (MAKE_CHAR): Modify for new specification of `decoding_table'.
4433 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
4435 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4436 error with non-UTF-2000-Mule.
4438 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
4440 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4442 (Vcharset_chinese_cns11643_4): Likewise.
4443 (Vcharset_chinese_cns11643_5): Likewise.
4444 (Vcharset_chinese_cns11643_6): Likewise.
4445 (Vcharset_chinese_cns11643_7): Likewise.
4446 (Qchinese_cns11643_3): Likewise.
4447 (Qchinese_cns11643_4): Likewise.
4448 (Qchinese_cns11643_5): Likewise.
4449 (Qchinese_cns11643_6): Likewise.
4450 (Qchinese_cns11643_7): Likewise.
4451 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4452 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4453 and `chinese-cns11643-7' to lisp/mule/chinese.el.
4454 (complex_vars_of_mule_charset): Likewise.
4456 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
4458 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4460 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4461 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4463 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4465 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4467 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4468 (breakup_char_1): Likewise.
4470 * text-coding.c (char_encode_iso2022): Keep designated charsets if
4471 one of them includes the specified character.
4473 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4475 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4477 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4479 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4481 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4483 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4484 definition for non-UTF-2000 Mule.
4485 (latin_iso8859_3_to_ucs): Likewise.
4486 (latin_iso8859_4_to_ucs): Likewise.
4487 (latin_iso8859_9_to_ucs): Likewise.
4488 (latin_jisx0201_to_ucs): Likewise.
4489 (MIN_CHAR_THAI): Likewise.
4490 (MAX_CHAR_THAI): Likewise.
4491 (MIN_CHAR_GREEK): Likewise.
4492 (MAX_CHAR_GREEK): Likewise.
4493 (MIN_CHAR_HEBREW): Likewise.
4494 (MAX_CHAR_HEBREW): Likewise.
4495 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4496 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4497 (MIN_CHAR_CYRILLIC): Likewise.
4498 (MAX_CHAR_CYRILLIC): Likewise.
4500 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4502 * char-ucs.h (breakup_char_1): Use
4503 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4504 thai-tis620 and katakana-jisx0201 area.
4506 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4508 * char-ucs.h (breakup_char_1): Use
4509 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4512 * text-coding.c (reset_encoding_stream): Fixed.
4513 (char_encode_ucs4): Delete `& 255'.
4515 * char-ucs.h (breakup_char_1): Use
4516 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4518 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4520 * file-coding.c (Fmake_coding_system): Don't set up
4521 `codesys->fixed.size'.
4522 (encode_coding_no_conversion): Don't refer
4523 `str->codesys->fixed.size'.
4525 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4527 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4528 (latin_a_char_to_byte1): Deleted.
4529 (latin_a_char_to_byte2): Deleted.
4531 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4533 * mule-charset.c (make_charset): Add new argument `ucs_min',
4534 `ucs_max' and `code_offset'.
4535 (charset_get_byte1): New implementation [delete specific charset
4536 depended implementations].
4537 (Fmake_charset): Modify for `make_charset'.
4538 (Fmake_reverse_direction_charset): Likewise.
4539 (complex_vars_of_mule_charset): Likewise.
4541 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4543 (CHARSET_UCS_MIN): New macro.
4544 (CHARSET_UCS_MAX): New macro.
4545 (CHARSET_CODE_OFFSET): New macro.
4546 (MAKE_CHAR): Delete charset depended definitions [except
4549 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
4551 * char-ucs.h (breakup_char_1): Use
4552 `Vdefault_coded_charset_priority_list' for C0-Controls,
4553 Basic-Latin, C1-Controls and Latin-1-Supplement area.
4555 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4557 * char-ucs.h (charset_get_byte1): New function.
4558 (XCHARSET_GET_BYTE1): Deleted.
4559 (charset_get_byte2): New function.
4560 (XCHARSET_GET_BYTE2): Deleted.
4561 (Vdefault_coded_charset_priority_list): New external variable.
4562 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4563 `Vdefault_preferred_coded_charset_list'.
4565 * mule-charset.c (charset_get_byte1): New function.
4566 (charset_get_byte2): New function.
4567 (Vdefault_coded_charset_priority_list): New variable.
4568 (vars_of_mule_charset): Add new variable
4569 `default-coded-charset-priority-list'.
4571 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4573 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4574 (XCHARSET_GET_BYTE2): New inline function.
4575 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4576 `XCHARSET_GET_BYTE2'.
4578 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4580 * mule-charset.c (make_charset): Initialize
4581 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4582 NULL if table is not defined.
4584 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4586 * text-coding.c (char_encode_shift_jis): Use
4587 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4588 `ucs_to_latin_jisx0201'.
4590 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4591 (ucs_to_latin_iso8859_2): Deleted.
4592 (ucs_to_latin_iso8859_3): Deleted.
4593 (ucs_to_latin_iso8859_4): Deleted.
4594 (ucs_to_latin_iso8859_9): Deleted.
4595 (ucs_to_latin_viscii_lower): Deleted.
4596 (ucs_to_latin_viscii_upper): Deleted.
4597 (ucs_to_latin_tcvn5712): Deleted.
4598 (make_charset): Add new argument `decoding_table'; set up
4599 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4600 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4601 `decoding_table' is defined in UTF-2000.
4602 (Fmake_charset): Modify for `make_charset'.
4603 (Fmake_reverse_direction_charset): Likewise.
4604 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4605 and `GENERATE_96_SET'.
4607 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4608 (ucs_to_latin_jisx0201): Deleted.
4609 (latin_iso8859_2_to_ucs): Deleted.
4610 (ucs_to_latin_iso8859_2): Deleted.
4611 (latin_iso8859_3_to_ucs): Deleted.
4612 (ucs_to_latin_iso8859_3): Deleted.
4613 (latin_iso8859_4_to_ucs): Deleted.
4614 (ucs_to_latin_iso8859_4): Deleted.
4615 (latin_iso8859_9_to_ucs): Deleted.
4616 (ucs_to_latin_iso8859_9): Deleted.
4617 (latin_viscii_lower_to_ucs): Deleted.
4618 (ucs_to_latin_viscii_lower): Deleted.
4619 (latin_viscii_upper_to_ucs): Deleted.
4620 (ucs_to_latin_viscii_upper): Deleted.
4621 (struct Lisp_Charset): Renamed `encoding_table' to
4622 `to_byte1_table'; add `to_byte2_table'.
4623 (CHARSET_DECODING_TABLE): New macro.
4624 (CHARSET_TO_BYTE1_TABLE): New macro.
4625 (CHARSET_TO_BYTE2_TABLE): New macro.
4626 (XCHARSET_DECODING_TABLE): New macro.
4627 (XCHARSET_TO_BYTE1_TABLE): New macro.
4628 (XCHARSET_TO_BYTE2_TABLE): New macro.
4629 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4631 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4632 don't use `ucs_to_*' tables.
4634 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4636 * text-coding.c (Fmake_coding_system): Don't set up
4637 `codesys->fixed.size'.
4638 (encode_coding_no_conversion): Use `if' instead of `switch'.
4640 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4642 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4644 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4645 (Fmake_charset): Modify for `make_charset'.
4646 (Fmake_reverse_direction_charset): Likewise.
4647 (complex_vars_of_mule_charset): Likewise.
4649 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4651 * text-coding.c (char_encode_shift_jis): Use table
4652 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4654 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4656 * text-coding.c (text_encode_generic): Use `if' instead of
4658 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4661 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4663 * text-coding.c (encode_coding_sjis): Deleted.
4664 (char_encode_shift_jis): New function.
4665 (char_finish_shift_jis): New function.
4666 (reset_encoding_stream): Set up `encode_char' and `finish' for
4667 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4668 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4669 (char_encode_utf8): Treat `eol_type'.
4671 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4673 * file-coding.c (decode_coding_iso2022): Use
4674 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4676 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4678 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4681 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4683 * char-lb.h (CHAR_COLUMNS): New macro.
4685 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4687 * text-coding.c (char_encode_ucs4): New function.
4688 (char_finish_ucs4): New function.
4689 (encode_coding_ucs4): Deleted.
4690 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4691 (text_encode_generic): Delete local variable `charset' and `half'.
4692 (ucs_to_mule_table): Deleted.
4693 (mule_to_ucs_table): Deleted.
4694 (Fset_ucs_char): Deleted.
4695 (ucs_to_char): Deleted.
4696 (Fucs_char): Deleted.
4697 (Fset_char_ucs): Deleted.
4698 (Fchar_ucs): Deleted.
4699 (decode_ucs4): Deleted.
4700 (mule_char_to_ucs4): Deleted.
4701 (encode_ucs4): Deleted.
4702 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4703 (decode_coding_utf8): Likewise.
4704 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4705 (char_encode_iso2022): Fixed.
4706 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4707 `Fset_char_ucs' and `Fchar_ucs'.
4708 (complex_vars_of_file_coding): Don't initialize
4709 `ucs_to_mule_table'.
4711 * objects-tty.c (tty_initialize_font_instance): Don't use
4714 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4717 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4718 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4720 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4721 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4722 (emchar_string_displayed_columns): Likewise.
4724 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4725 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4726 (string_column_at_point): Likewise.
4727 (Fmove_to_column): Likewise.
4729 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4730 `encoding_table' and `decoding_table'.
4731 (CHARSET_REP_BYTES): Deleted.
4732 (XCHARSET_REP_BYTES): Deleted.
4733 (XCHARSET_COLUMNS): Deleted.
4734 (CHAR_COLUMNS): New macro.
4735 (lookup_composite_char): Deleted unconditionally.
4736 (composite_char_string): Likewise.
4738 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4740 * char-ucs.h (Emchar_to_byte_table): New type.
4741 (get_byte_from_character_table): New function interface.
4742 (Vcharset_latin_jisx0201): New variable.
4743 (latin_jisx0201_to_ucs): New variable.
4744 (ucs_to_latin_jisx0201): New variable.
4745 (Vcharset_latin_iso8859_2): New variable.
4746 (latin_iso8859_2_to_ucs): New variable.
4747 (ucs_to_latin_iso8859_2): New variable.
4748 (Vcharset_latin_iso8859_3): New variable.
4749 (latin_iso8859_3_to_ucs): New variable.
4750 (ucs_to_latin_iso8859_3): New variable.
4751 (Vcharset_latin_iso8859_4): New variable.
4752 (latin_iso8859_4_to_ucs): New variable.
4753 (ucs_to_latin_iso8859_4): New variable.
4754 (Vcharset_latin_iso8859_9): New variable.
4755 (latin_iso8859_9_to_ucs): New variable.
4756 (ucs_to_latin_iso8859_9): New variable.
4757 (Vcharset_latin_viscii_lower): New variable.
4758 (latin_viscii_lower_to_ucs): New variable.
4759 (ucs_to_latin_viscii_lower): New variable.
4760 (Vcharset_latin_viscii_upper): New variable.
4761 (latin_viscii_upper_to_ucs): New variable.
4762 (ucs_to_latin_viscii_upper): New variable.
4763 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4764 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4765 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4766 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4767 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4768 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4769 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4770 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4771 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4772 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4774 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4775 (Vcharset_latin_viscii_upper): New variable.
4776 (make_byte_from_character_table): New function.
4777 (put_byte_from_character_table): New function.
4778 (get_byte_from_character_table): New function.
4779 (CHAR96): New macro.
4780 (ucs_to_latin_jisx0201): New variable.
4781 (latin_jisx0201_to_ucs): New variable.
4782 (ucs_to_latin_iso8859_2): New variable.
4783 (latin_iso8859_2_to_ucs): New variable.
4784 (ucs_to_latin_iso8859_3): New variable.
4785 (latin_iso8859_3_to_ucs): New variable.
4786 (ucs_to_latin_iso8859_4): New variable.
4787 (latin_iso8859_4_to_ucs): New variable.
4788 (ucs_to_latin_iso8859_9): New variable.
4789 (latin_iso8859_9_to_ucs): New variable.
4790 (ucs_to_latin_viscii_lower): New variable.
4791 (latin_viscii_lower_to_ucs): New variable.
4792 (ucs_to_latin_viscii_upper): New variable.
4793 (latin_viscii_upper_to_ucs): New variable.
4794 (ucs_to_latin_tcvn5712): New variable.
4795 (latin_tcvn5712_to_ucs): New variable.
4796 (Qlatin_viscii_lower): New variable.
4797 (Qlatin_viscii_upper): New variable.
4798 (syms_of_mule_charset): Set up new symbol
4799 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4800 (complex_vars_of_mule_charset): Set up new charset
4801 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4802 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4803 `ucs_to_<CHARSET>' tables.
4805 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
4807 * text-coding.c: New file.
4809 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4811 * mule-charset.c (Fmake_char): Fix problem of 256-set.
4813 * char-ucs.h (Vcharset_ucs_bmp): New variable.
4814 (MAKE_CHAR): Modify for `ucs-bmp'.
4815 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4816 non-MULE characters of BMP.
4818 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
4820 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4823 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
4826 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4827 - Include character.h for `CHAR_ASCII_P'.
4829 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4831 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4832 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4834 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4835 (BYTE_C0_P): Likewise.
4836 (BYTE_C1_P): Likewise.
4837 (Lstream_get_emchar_1): Likewise.
4838 (Lstream_fput_emchar): Likewise.
4839 (Lstream_funget_emchar): Likewise.
4840 (copy_internal_to_external): Likewise.
4841 (copy_external_to_internal): Likewise.
4843 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4844 (BYTE_C0_P): Likewise.
4845 (BYTE_C1_P): Likewise.
4846 (Lstream_get_emchar_1): Likewise.
4847 (Lstream_fput_emchar): Likewise.
4848 (Lstream_funget_emchar): Likewise.
4849 (copy_internal_to_external): Likewise.
4850 (copy_external_to_internal): Likewise.
4852 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4853 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4855 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4856 (BYTE_ASCII_P): Moved to mb-1byte.h.
4858 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
4860 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4862 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4863 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4864 (VALID_CHARPTR_P): Moved to mb-*byte.h.
4865 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4866 (VALIDATE_CHARPTR_FORWARD): Likewise.
4867 (simple_charptr_emchar): Moved to mb-multibyte.h.
4868 (simple_set_charptr_emchar): Likewise.
4869 (simple_charptr_copy_char): Likewise.
4870 (non_ascii_charptr_emchar): Likewise.
4871 (non_ascii_set_charptr_emchar): Likewise.
4872 (non_ascii_charptr_copy_char): Likewise.
4873 (charptr_emchar): Moved to mb-*byte.h.
4874 (set_charptr_emchar): Likewise.
4875 (charptr_copy_char): Likewise.
4877 * mb-1byte.h, mb-multibyte.h: New files.
4879 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
4881 * mb-utf-8.h (MULTIBYTE): New macro.
4882 (MAX_EMCHAR_LEN): Moved from buffer.h.
4883 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4885 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4887 * mb-lb.h, multibyte.h: New files.
4889 * char-1byte.h (Charset_ID): Moved from buffer.h.
4890 (MIN_LEADING_BYTE): Likewise.
4891 (LEADING_BYTE_ASCII): Likewise.
4892 (NUM_LEADING_BYTES): Likewise.
4893 (CHARSETP): Likewise.
4894 (CHARSET_BY_LEADING_BYTE): Likewise.
4895 (XCHARSET_LEADING_BYTE): Likewise.
4896 (XCHARSET_GRAPHIC): Likewise.
4897 (XCHARSET_COLUMNS): Likewise.
4898 (XCHARSET_DIMENSION): Likewise.
4899 (CHAR_CHARSET): Likewise.
4900 (CHAR_LEADING_BYTE): Likewise.
4901 (BREAKUP_CHAR): Likewise.
4902 (Vcharset_ascii): Likewise.
4904 * buffer.h: Include multibyte.h unconditionally.
4905 (VALID_CHARPTR_P): Moved to multibyte.h.
4906 (ASSERT_VALID_CHARPTR): Likewise.
4907 (REAL_INC_CHARPTR): Likewise.
4908 (REAL_INC_CHARBYTIND): Likewise.
4909 (REAL_DEC_CHARPTR): Likewise.
4910 (INC_CHARPTR): Likewise.
4911 (INC_CHARBYTIND): Likewise.
4912 (DEC_CHARPTR): Likewise.
4913 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4914 (VALIDATE_CHARPTR_FORWARD): Likewise.
4915 (charptr_n_addr): Likewise.
4916 (MAX_EMCHAR_LEN): Moved to mb-*.h.
4917 (simple_charptr_emchar): Moved to multibyte.h.
4918 (simple_set_charptr_emchar): Likewise.
4919 (simple_charptr_copy_char): Likewise.
4920 (non_ascii_charptr_emchar): Likewise.
4921 (non_ascii_set_charptr_emchar): Likewise.
4922 (non_ascii_charptr_copy_char): Likewise.
4923 (charptr_emchar): Likewise.
4924 (set_charptr_emchar): Likewise.
4925 (charptr_copy_char): Likewise.
4926 (charptr_emchar_n): Likewise.
4927 (Charset_ID): Moved to char-1byte.h.
4928 (Vcharset_ascii): Likewise.
4929 (CHAR_CHARSET): Likewise.
4930 (CHAR_LEADING_BYTE): Likewise.
4931 (LEADING_BYTE_ASCII): Likewise.
4932 (NUM_LEADING_BYTES): Likewise.
4933 (MIN_LEADING_BYTE): Likewise.
4934 (CHARSETP): Likewise.
4935 (CHARSET_BY_LEADING_BYTE): Likewise.
4936 (XCHARSET_LEADING_BYTE): Likewise.
4937 (XCHARSET_GRAPHIC): Likewise.
4938 (XCHARSET_COLUMNS): Likewise.
4939 (XCHARSET_DIMENSION): Likewise.
4940 (BREAKUP_CHAR): Likewise.
4942 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4944 * character.h: Add document about interface for characters.
4946 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4947 (MAKE_CHAR): Delete comment about
4948 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4949 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4950 (BREAKUP_CHAR): Modify name of arguments.
4951 (CHAR_CHARSET): Modify name of argument.
4953 * buffer.h: Delete document about Emchar accessors.
4955 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4957 * character.h (CHAR_INTP): Moved from buffer.h
4958 (CHAR_OR_CHAR_INTP): Likewise.
4959 (XCHAR_OR_CHAR_INT): Likewise.
4960 (CHECK_CHAR_COERCE_INT): Likewise.
4962 * buffer.h (CHAR_INTP): Moved to character.h
4963 (CHAR_OR_CHAR_INTP): Likewise.
4964 (XCHAR_OR_CHAR_INT): Likewise.
4965 (CHECK_CHAR_COERCE_INT): Likewise.
4967 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4970 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4971 - Include char-1byte.h, char-lb.h or char-ucs.h.
4973 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4975 * buffer.h: Include character unconditionally.
4976 (valid_char_p): Moved to char-*.h.
4977 (non_ascii_valid_char_p): Moved to char-lb.h.
4979 * char-1byte.h, char-lb.h, char-ucs.h: New files.
4981 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4983 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4984 in UTF-2000 because it is not ported yet and not to use
4985 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4986 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4987 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4989 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4990 (CHAR_ASCII_P): Moved from character.h.
4992 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4993 (CHAR_ASCII_P): Likewise.
4994 (CHAR_FIELD1_MASK): Deleted.
4995 (CHAR_FIELD2_MASK): Deleted.
4996 (CHAR_FIELD3_MASK): Deleted.
4997 (MAX_CHAR_BASIC_LATIN): New macro.
4998 (CHAR_FIELD1): Deleted.
4999 (CHAR_FIELD2_INTERNAL): Deleted.
5000 (CHAR_FIELD3_INTERNAL): Deleted.
5001 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5002 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5003 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5004 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5005 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5006 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5007 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5008 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5009 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5010 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5011 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5012 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5013 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5014 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5015 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5016 (MIN_CHAR_COMPOSITION): Deleted.
5017 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5018 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5020 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
5022 * buffer.h: Include mb-utf-8.h in UTF-2000.
5024 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5026 * mb-utf-8.h: New file.
5028 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
5030 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5033 * mule-charset.h, buffer.h (Charset_ID): New type.
5035 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
5037 * mule-canna.c (c2mu): Use `MAKE_CHAR',
5038 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5039 instead of `MULE_CHAR_PRIVATE_OFFSET',
5040 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5041 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5042 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5044 * character.h (Vcharset_japanese_jisx0212): New variable
5047 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
5049 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5050 (charset_by_attributes): Delete array about direction.
5051 (latin_a_char_to_charset): New variable in UTF-2000.
5052 (latin_a_char_to_byte1): New variable in UTF-2000.
5053 (latin_a_char_to_byte2): New variable in UTF-2000.
5054 (Qucs_bmp): New variable.
5055 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5057 (next_allocated_2_byte_leading_byte): Likewise.
5058 (non_ascii_set_charptr_emchar): Likewise.
5059 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5060 `CHARSET_TYPE_256X256' in UTF-2000; modify for
5061 `charset_by_attributes'.
5062 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5063 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5064 and `CHARSET_BY_LEADING_BYTE'.
5065 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5066 `utf-2000-version' to `vars_of_mule_charset'.
5067 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5068 define `leading-code-private-11' in UTF-2000; move setting of
5069 `utf-2000-version' from `syms_of_mule_charset'.
5070 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5073 * character.h (Charset_ID): New type.
5074 (LEADING_BYTE_UCS_BMP): New macro.
5075 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5076 (CHARSET_ID_OFFSET_94): New macro.
5077 (MIN_CHARSET_ID_PRIVATE_94): New macro.
5078 (MAX_CHARSET_ID_PRIVATE_94): New macro.
5079 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5081 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5082 (LEADING_BYTE_LATIN_JISX0201): Likewise.
5083 (CHARSET_ID_OFFSET_96): New macro.
5084 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5085 CHARSET_ID_OFFSET_96 and final-byte.
5086 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5087 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5088 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5089 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5090 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5091 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5092 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5093 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5094 (LEADING_BYTE_THAI_TIS620): Likewise.
5095 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5096 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5097 (CHARSET_ID_OFFSET_94x94): New macro.
5098 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5099 CHARSET_ID_OFFSET_94x94 and final-byte.
5100 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5101 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5102 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5103 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5104 (LEADING_BYTE_CHINESE_GB2312): Likewise.
5105 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5106 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5107 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5108 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5109 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5110 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5111 (CHARSET_TYPE_128X128): New macro.
5112 (CHARSET_TYPE_256X256): New macro.
5113 (XCHARSET_PRIVATE_P): Delete unconditionally.
5114 (charset_by_attributes): Delete array about direction.
5115 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5116 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5117 (MIN_CHAR_94): New macro.
5118 (MAX_CHAR_94): New macro.
5119 (MIN_CHAR_96): New macro.
5120 (MAX_CHAR_96): New macro.
5121 (MIN_CHAR_94x94): New macro.
5122 (MAX_CHAR_94x94): New macro.
5123 (MIN_CHAR_96x96): New macro.
5124 (MAX_CHAR_96x96): New macro.
5125 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5126 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5127 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5129 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5130 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5131 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5132 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5133 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5134 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5135 `XCHARSET_LEADING_BYTE' to make code-point.
5136 (latin_a_char_to_charset): New variable.
5137 (latin_a_char_to_byte1): New variable.
5138 (latin_a_char_to_byte2): New variable.
5139 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5140 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5141 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5143 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5144 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5145 (find_charsets_in_emchar_string): Likewise.
5146 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5148 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5150 (decode_coding_iso2022): Likewise.
5152 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5155 * redisplay.c (redisplay_text_width_emchar_string): Use
5156 `Charset_ID' instead of `unsigned char'.
5157 (redisplay_frame_text_width_string): Likewise.
5159 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5162 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5163 instead of `unsigned char'.
5164 (face_cachel_charset_font_metric_info): Likewise.
5166 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5167 (get_non_ascii_char_table_value): Likewise.
5168 (get_char_table): Likewise.
5169 (put_char_table): Likewise.
5170 (map_over_other_charset): Likewise.
5171 (map_char_table): Likewise.
5173 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5174 instead of `unsigned char'.
5176 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
5178 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5179 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5181 * mule-charset.c (leading_code_private_11): Don't define in
5184 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5185 in UTF-2000 because it is not ported yet and not to use
5186 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5188 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
5190 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5192 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
5194 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5197 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5198 of unsigned char to store leading-byte.
5200 * chartab.c (get_non_ascii_char_table_value): Don't use
5201 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5203 * file-coding.c (encode_coding_big5): Delete bogus implementation
5206 * character.h (LEADING_BYTE_*): Delete definition for
5208 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5209 (LEADING_BYTE_PREFIX_P): Deleted.
5210 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5211 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5212 (BUFBYTE_LEADING_BYTE_P): Deleted.
5213 (CHARSET_PRIVATE_P): Deleted unconditionally.
5214 (rep_bytes_by_first_byte): Deleted unconditionally.
5215 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5216 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5217 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5218 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5219 (CHAR_FIELD2): Deleted.
5220 (CHAR_FIELD3): Deleted.
5221 (MAKE_CHAR): Delete definition for non-UTF-2000.
5222 (BREAKUP_CHAR_1_UNSAFE): Deleted.
5223 (breakup_char_1): New implementation.
5224 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5225 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5227 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
5229 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5232 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
5234 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5235 (CHARSET_PRIVATE_P): Likewise.
5236 (XCHARSET_PRIVATE_P): Likewise.
5237 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5239 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5241 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5243 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
5245 * character.h (LEADING_BYTE_*): Changed in UTF2000.
5246 (NUM_LEADING_BYTES): Changed from 128 to 256.
5247 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5248 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5250 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5252 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5254 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5255 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5256 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5257 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5258 (Qchinese_cns11643_3): New variable in UTF2000.
5259 (Qchinese_cns11643_4): New variable in UTF2000.
5260 (Qchinese_cns11643_5): New variable in UTF2000.
5261 (Qchinese_cns11643_6): New variable in UTF2000.
5262 (Qchinese_cns11643_7): New variable in UTF2000.
5263 (syms_of_mule_charset): Define `chinese-cns11643-3',
5264 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5265 and `chinese-cns11643-7' in UTF2000.
5266 (vars_of_mule_charset): Initialize
5267 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5269 (complex_vars_of_mule_charset): Setup charset
5270 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5271 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5273 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5275 * mule-charset.c: Move setting for `leading-code-private-11' from
5276 `syms_of_mule_charset' to `vars_of_mule_charset'.
5278 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5280 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5281 and `NUM_LEADING_BYTES' in assert.
5283 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5285 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5287 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5288 `NUM_LEADING_BYTES' instead of 128.
5290 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
5292 * mule-charset.h (charset_by_leading_byte): Use
5293 `NUM_LEADING_BYTES' instead of 128.
5294 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5296 * mule-charset.c (charset_by_leading_byte): Use
5297 `NUM_LEADING_BYTES' instead of 128.
5298 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5300 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5303 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
5305 * mule-charset.c (syms_of_mule_charset): Update to
5308 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5310 * file-coding.c (encode_coding_sjis): New implementation for
5311 UTF2000. (decode_coding_sjis): Ditto.
5313 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
5315 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5316 Don't define in UTF2000.
5318 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5321 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5322 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5325 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
5327 * config.h.in (CHAR_IS_UCS4): New macro.
5329 * mule-charset.c (rep_bytes_by_first_byte): Modify for
5330 conventional MULE representation.
5331 (syms_of_mule_charset): Update to 0.3 (Imamiya).
5333 * mule-charset.h: Reverted to original.
5335 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5336 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5337 "mule-charset.h" if CHAR_IS_UCS4 is defined.
5339 * character.h: New file.
5341 * file-coding.c (Fmake_coding_system): Set 1 to
5342 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5344 (encode_coding_no_conversion): New implementation for UTF2000.
5346 * file-coding.h (struct Lisp_Coding_System): Add new member
5349 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
5351 * file-coding.c (decode_coding_iso2022): Code-point arguments of
5352 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5353 (encode_coding_iso2022): New implementation for UTF2000.
5355 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5357 * mule-canna.c (c2mu): New implementation for UTF2000.
5360 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5362 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5364 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5366 * file-coding.c (reset_encoding_stream): Set 0 to
5367 `str->iso2022.current_char_boundary' in UTF2000.
5368 (encode_utf8): Don't define in UTF2000.
5369 (encode_coding_utf8): New implementation for UTF-8 representation
5371 (complex_vars_of_file_coding): Define coding-system `utf-8'.
5373 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5375 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5377 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5379 (REP_BYTES_BY_FIRST_BYTE): Likewise.
5381 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5383 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5384 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5385 as UTF-8 in UTF2000.
5386 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5387 (non_ascii_valid_char_p): Don't define in UTF2000.
5388 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5389 (Lstream_get_emchar_1): Likewise.
5390 (utf-2000-version): New variable in UTF2000.
5392 * lread.c (read_escape): Add new reader `u'.
5394 * insdel.c (three_to_one_table): Don't define in UTF2000.
5395 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5396 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5398 (bytind_to_bufpos_func): Likewise.
5399 (buffer_mule_signal_inserted_region): Likewise.
5400 (vars_of_insdel): Don't initialize `three_to_one_table'.
5401 (init_buffer_text): Use `buf->text->mule_size' instead of
5402 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5405 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5406 UTF-8 representation in UTF2000.
5407 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5408 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5409 (decode_coding_iso2022): Don't define local variable `lb' in
5410 UTF2000; don't use LEADING_BYTE in UTF2000; use
5411 `DECODE_ADD_UCS_CHAR' in UTF2000.
5412 (convert_to_external_format): Decode as UTF-8 in UTF2000.
5414 * config.h.in (UTF2000): New macro.
5416 * buffer.h (struct buffer_text): Add new member `mule_size' and
5417 don't add `mule_shifter' and `mule_three_p' in UTF2000.
5418 (valid_char_p): Return always 1 in UTF2000.
5419 (MAX_EMCHAR_LEN): 6 in UTF2000.
5420 (three_to_one_table): Don't define in UTF2000.
5421 (real_bufpos_to_bytind): Modify for UTF-8 representation in
5423 (real_bytind_to_bufpos): Likewise.
5425 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5427 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5429 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5430 representation change.
5431 (Vutf_2000_version): New variable.
5432 (leading_code_private_11): New variable.
5433 (syms_of_mule_charset): Add new variables `utf-2000-version' and
5434 `leading-code-private-11'.
5436 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5437 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5438 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5439 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5440 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5441 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5442 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5443 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5444 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5445 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5446 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5447 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5448 (MIN_CHAR_GREEK): New macro.
5449 (MAX_CHAR_GREEK): New macro.
5450 (MIN_CHAR_CYRILLIC): New macro.
5451 (MAX_CHAR_CYRILLIC): New macro.
5452 (MIN_CHAR_HEBREW): New macro.
5453 (MAX_CHAR_HEBREW): New macro.
5454 (MIN_CHAR_THAI): New macro.
5455 (MAX_CHAR_THAI): New macro.
5456 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5457 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5458 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5459 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5460 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5461 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5462 (CHAR_FIELD2): New inline function.
5463 (CHAR_FIELD3): New inline function.
5464 (MULE_CHAR_PRIVATE_OFFSET): New macro.
5465 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5466 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5467 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5468 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5469 (MIN_CHAR_COMPOSITION): Likewise.
5470 (CHAR_LEADING_BYTE): Modified for character representation change.
5471 (MAKE_CHAR): Likewise.
5473 * lisp.h (Vcharset_latin_iso8859_1): New variable.
5474 (Vcharset_greek_iso8859_7): Likewise.
5475 (Vcharset_cyrillic_iso8859_5): Likewise.
5476 (Vcharset_hebrew_iso8859_8): Likewise.
5477 (Vcharset_thai_tis620): Likewise.
5478 (Vcharset_katakana_jisx0201): Likewise.
5480 2004-02-02 Vin Shelton <acs@xemacs.org>
5482 * XEmacs 21.4.15 is released
5484 2004-01-30 Glynn Clements <glynn.clements@virgin.net>
5486 * device-x.c (x_error_handler): Don't call stderr_out
5488 2003-11-07 Katsumi Yamaoka <yamaoka@jpl.org>
5490 * buffer.c (other-buffer): Clarify documentation of order of
5491 arguments for FSF Emacs.
5493 2003-10-11 Olivier Galibert <galibert@pobox.com>
5495 * window.c (Fdelete_window): Dirty the mirror structure _before_
5496 marking the window deleted.
5498 2003-09-15 Jerry James <james@xemacs.org>
5500 * event-msw.c (debug_mswin_messages): Conditionally compile
5501 messages missing from the Cygwin headers.
5503 2003-06-16 Stephen J. Turnbull <stephen@xemacs.org>
5505 * data.c (eq_with_ebola_notice): Fix typo in comment.
5506 (Ftrue_list_p): Improve docstring.
5508 2003-10-13 Stephen J. Turnbull <stephen@xemacs.org>
5510 * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5512 2003-09-27 Stephen J. Turnbull <stephen@xemacs.org>
5514 * search.c (trivial_regexp_p): Regexps containing "\{" are
5515 nontrivial. Thanks to Manfred Bartz for reporting the bug and
5516 Stefan Monnier for suggesting a diagnosis.
5518 2003-09-25 Stephen J. Turnbull <stephen@xemacs.org>
5520 * elhash.c (make-hash-table): Clarify use of :test #'equal.
5522 2003-09-12 Stephen J. Turnbull <stephen@xemacs.org>
5524 * search.c (Fsearch_forward):
5526 Document negative count.
5528 2003-09-13 Stephen J. Turnbull <stephen@xemacs.org>
5530 * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5532 2003-09-13 Martin Buchholz <martin@xemacs.org>
5534 * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5536 2003-09-15 Vin Shelton <acs@xemacs.org>
5538 * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5541 2003-09-12 Yoshiki Hayashi <yoshiki@xemacs.org>
5543 * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5544 (re_search_2): Match the first byte of Bufbyte, not Emchar.
5545 (re_match_2_internal): Use TRANSLATE instead of
5546 TRANSLATE_EXTENDED_UNSAFE. The latter was a hack to bypass
5547 non-ASCII char case conversion.
5549 2003-09-08 Mike Sperber <mike@xemacs.org>
5551 * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5552 RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5554 2003-06-14 Ilya N. Golubev <gin@mo.msk.ru>
5556 * .gdbinit (pobj): fix printing of symbol name.
5558 2003-08-01 Ilya N. Golubev <gin@mo.msk.ru>
5560 * frame-x.c (x_layout_widgets): When resizing is about to cause
5561 frame size slip, mark it for redisplay.
5563 2003-08-18 Jerry James <james@xemacs.org>
5565 * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5567 2003-09-03 Vin Shelton <acs@xemacs.org>
5569 * XEmacs 21.4.14 is released
5571 2003-08-15 Stephen J. Turnbull <stephen@xemacs.org>
5573 * config.h.in (REGEX_MALLOC): Make it configure'able.
5575 2003-08-14 Andrew Begel <abegel@CS.Berkeley.EDU>
5577 * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5579 * sysdll.c (dll_init):
5580 * sysdll.c (dll_open):
5581 * sysdll.c (dll_close):
5582 * sysdll.c (dll_function):
5583 * sysdll.c (dll_variable):
5584 * sysdll.c (dll_error):
5585 Add support for loading bundles using Darwin/MacOSX
5588 2003-08-12 Stephen J. Turnbull <stephen@xemacs.org>
5590 * process.c (start-process-internal): Document coding systems.
5592 2003-07-30 Jerry James <james@xemacs.org>
5594 * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5596 2003-07-31 René Kyllingstad <listmailxemacs@kyllingstad.com>
5598 * event-msw.c (mswindows_enqueue_mouse_button_event):
5599 * event-msw.c (mswindows_wnd_proc):
5600 enqueue button event when scrollwheel event isn't handled by
5601 mswindows_handle_mousewheel_event, such as when the scrollbars
5604 2003-07-29 Stephen J. Turnbull <stephen@xemacs.org>
5606 * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5608 2003-03-24 Stephen J. Turnbull <stephen@xemacs.org>
5610 * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5612 2003-03-21 Stephen J. Turnbull <stephen@xemacs.org>
5614 * regex.c (re_match_2_internal): Fix matching degenerate word
5617 2003-05-25 XEmacs Build Bot <builds@cvs.xemacs.org>
5619 * XEmacs 21.4.13 is released
5621 2003-03-20 Stephen J. Turnbull <stephen@xemacs.org>
5623 * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H):
5624 * lisp.h (<inttypes.h>):
5625 Cygwin defines these types in <cygwin/types.h>. Don't duplicate
5628 2003-03-15 Martin Buchholz <martin@xemacs.org>
5630 * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5631 Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5632 Result: "temacs can only be run in -batch mode."
5633 Fix: Check xemacs executable candidate for directory-ness.
5635 2003-03-03 Robert Pluim <rpluim@bigfoot.com>
5637 * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5638 they conflict with <sys/types.h>.
5640 2003-02-14 Martin Buchholz <martin@xemacs.org>
5642 * database.c: Berkeley DB wants __STDC__ to be defined.
5644 2003-02-13 Martin Buchholz <martin@xemacs.org>
5646 * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5648 2003-02-01 Martin Buchholz <martin@xemacs.org>
5650 * process-unix.c (unix_send_process): Fix C++ compile error.
5652 2003-02-25 Andrew Begel <abegel@cs.berkeley.edu>
5654 * Added .dylib as an acceptable shared library file extension
5655 * to support MacOSX.
5657 2003-02-01 Martin Buchholz <martin@xemacs.org>
5659 * EmacsFrameP.h (EmacsFramePart):
5660 Kludge to allow compiling with Motif1, but linking with Motif2.
5662 2003-01-28 Martin Buchholz <martin@xemacs.org>
5664 * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5667 2003-02-23 Stephen J. Turnbull <stephen@xemacs.org>
5669 * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5671 2003-02-06 Andrew Begel <abegel@CS.Berkeley.EDU>
5673 * sysdll.c: Included lisp.h to define needed alloca_array.
5675 2003-02-13 Martin Buchholz <martin@xemacs.org>
5677 Make XEmacs redisplay 10 times faster.
5678 If, that is, you're using a slow X connection and MoveOpaque.
5679 Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5680 Use compress_motion = TRUE.
5681 * EmacsFrame.c (emacsFrameClassRec):
5682 * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5683 * EmacsManager.c (emacsManagerClassRec):
5684 * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5686 2003-01-30 Vin Shelton <acs@xemacs.org>
5688 * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5690 2003-01-17 Stephen J. Turnbull <stephen@xemacs.org>
5692 * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5693 Patch by Martin Buchholz.
5695 2003-01-16 Stephen J. Turnbull <stephen@xemacs.org>
5697 * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5698 Thanks to icc for warning and Martin Buchholz for reporting.
5700 2003-01-29 Vin Shelton <acs@xemacs.org>
5702 Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5704 * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5705 remember to multiply by the element size.
5707 2003-01-15 Stephen J. Turnbull <stephen@xemacs.org>
5709 * XEmacs 21.4.12 "Portable Code" is released.
5711 2003-01-14 Sergey Okhapkin <sos@prospect.com.ru>
5713 * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5714 * s/cygwin.sc: new linker file.
5716 2003-01-14 Stephen J. Turnbull <stephen@xemacs.org>
5718 Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5720 * redisplay-x.c (x_output_string): Use X11-specified types.
5721 * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5722 * emacs.c (__free_hook): Use typeof with Intel compiler.
5723 * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5725 2003-01-08 Andy Piper <andy@xemacs.org>
5727 * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5728 reserve size during unexec().
5730 2003-01-07 Daiki Ueno <daiki@xemacs.org>
5732 * process-unix.c (unix_create_process): Don't let outchannel block.
5734 2003-01-05 Rick Rankin <rick_rankin@yahoo.com>
5736 * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5737 Needed for IsBadReadPtr().
5739 2003-01-03 Stephen J. Turnbull <stephen@xemacs.org>
5741 * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5743 2002-12-14 Ben Wing <ben@xemacs.org>
5745 * callint.c: Declaration error.
5747 * dumper.c (pdump_load): Warning fix.
5748 * process.c: GCPRO error.
5749 * glyphs.c (unmap_subwindow):
5750 * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5751 * event-stream.c (maybe_kbd_translate): Wrong argument to
5752 character_to_event().
5754 * alloc.c (garbage_collect_1):
5756 * emacs.c (debug_can_access_memory):
5757 * emacs.c (fatal_error_signal):
5758 * emacs.c (mswindows_handle_hardware_exceptions):
5761 * emacs.c (assert_failed):
5762 * emacs.c (syms_of_emacs):
5765 * print.c (std_handle_out_va):
5766 * print.c (write_string_to_stdio_stream):
5767 * print.c (write_fmt_string):
5768 * print.c (printing_badness):
5769 * print.c (printing_major_badness):
5770 * print.c (print_internal):
5771 * print.c (debug_print_no_newline):
5772 * print.c (debug_backtrace):
5773 Be more defensive in handling bad values when printing. Add code
5774 from trunk involving inhibit_non_essential_printing_operations.
5775 When going down or in debug_print(), don't do external conversion
5776 and such and try really, really hard when printing to avoid core
5777 dumping. Add force-debugging-signal, debug_break().
5779 2002-12-12 Stephen J. Turnbull <stephen@xemacs.org>
5781 * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5782 Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5784 2002-12-02 Greg Allen <greg_allen@westlb-systems.co.uk>
5786 * database.c: Fix open_database. Berkeley DB API has changed in
5787 4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5789 2002-11-26 Stephen J. Turnbull <stephen@xemacs.org>
5791 * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5793 2002-11-13 Stephen J. Turnbull <stephen@xemacs.org>
5795 * event-Xt.c (Xt_timeout):
5796 (Xt_timeout_callback):
5797 (emacs_Xt_add_timeout):
5798 (emacs_Xt_remove_timeout):
5799 (Xt_timeout_to_emacs_event):
5800 Turn completed_timeouts from a stack into a queue. Fixes
5801 deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5803 2002-11-07 Wolfram Gloger <wg@malloc.de>
5805 * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5806 * emacs.c (main): Assert that mmap'd allocation is disabled.
5808 2002-10-14 Andy Piper <andy@xemacs.org>
5810 * glyphs-widget.c (layout_query_geometry): add in fiddle
5811 factor. Include border text in width layout calculation.
5812 (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5814 2002-11-02 Stephen J. Turnbull <stephen@xemacs.org>
5816 * XEmacs 21.4.10 "Military Intelligence" is released.
5818 2002-10-17 Raymond Toy <toy@rtp.ericsson.se>
5820 * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was
5821 using the NAS private array SoundFileInfo that no longer exists in
5822 NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a
5823 and earlier. This is broken for some versions between 1.5a and
5826 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org>
5828 * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5830 * emacs.c (shut_down_emacs): Improve crash message.
5832 2002-10-09 Stephen J. Turnbull <stephen@xemacs.org>
5834 * file-coding.c (determine_real_coding_system): Check for coding
5835 cookie in first LINES_TO_CHECK lines (currently 2). Cater to
5836 shebangs and Python PEP 263.
5838 2002-10-08 Andy Piper <andy@xemacs.org>
5840 * glyphs-widget.c (layout_query_geometry): only resize dynamically
5841 if static sizes haven't been set.
5843 2002-08-30 Mike Alexander <mta@arbortext.com>
5845 * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5848 2002-10-03 Stephen J. Turnbull <stephen@xemacs.org>
5850 * callproc.c (child_setup): 21.4 doesn't have retry_close.
5852 2002-09-20 Mike Sperber <mike@xemacs.org>
5854 (This partially gets back my patch from 2002-07-20 without the
5856 * callproc.c (child_setup): Remove Ben's comment noting confusion
5857 over the file descriptors >= 3: close_process_descs() doesn't
5858 close those. Fix fd range to go up to MAXDESC-1 instead of 64.
5859 * process-unix.c (unix_create_process): Call
5860 begin_dont_check_for_quit to inhibit unwanted interaction (and
5861 thus breaking of X event synchronicity) in the child.
5863 2002-09-26 Golubev I. N. <gin@mo.msk.ru>
5865 * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5868 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu>
5870 * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5871 instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout,
5872 the xemacs process did not exit, but looped infinitely here. This
5875 2002-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5877 * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5878 (find_context): Improve comments.
5880 * regex.c (re_compile_fastmap): Gratuitous #ifdef comment fixes.
5881 (re_match_2): An XCHAR_TABLE operation was missing.
5883 Many of the following changes were inspired by Andy Piper's (now
5884 obsolete) patch to make syntax-table text property lookup optional.
5888 * syntax.h (top level): Document semantics of syntax flags.
5889 * syntax.c (comstr_start, Fforward_comment): Improve comments.
5890 * syntax.c, syntax.h (top level): Document syntax cache better in
5893 [Instrument syntax caching (temporary change)]
5895 * syntax.h (enum syntax_cache_statistics_functions, struct
5896 syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5897 SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5898 * syntax.c (scan_words, Fforward_comment, scan_lists,
5899 Fbackward_prefix_characters):
5900 * font-lock.c (find_context):
5901 Use them to instrument syntax caching.
5902 * syntax.c (struct syntax_cache_statistics, scs_statistics,
5903 syntax_cache_statistics_function_names): New type and variables.
5904 * syntax.c (update_syntax_cache): Update and report statistics.
5906 [Major syntax cache optimizations]
5908 syntax.c (lookup_syntax_properties): Default off.
5910 * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5911 * syntax.c (update_syntax_cache):
5912 Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5914 [Minor syntax cache optimizations and code clarifications]
5916 * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5917 SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5918 SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5919 SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5920 SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5921 (Code clarification.)
5923 * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5924 scan_lists): Compute code from syncode, use Boolean macros instead
5925 of redundant masking operations. (Code clarification; any decent
5926 compiler can do this optimization.)
5928 * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5931 * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5932 PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5933 use F*_single_property_change instead of F*_extent_change.
5934 Currently F*_single_property_change is _much_ less efficient.
5936 * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5937 * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT): Initialize
5938 syntax_cache.object properly, don't leave Qt or Qnil.
5939 (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5940 * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5941 tests for Qt or Qnil.
5943 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org>
5945 * redisplay.c (point_in_line_start_cache):
5946 * extents.c (print_extent_1):
5949 * extents.c (Fset_extent_property): Document `syntax-table' property.
5951 * extents.h (Fnext_single_property_change): EXFUN it.
5953 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
5955 * search.c (clear_unused_search_regs): New static function.
5959 Use it. Fixes "stale match data" bug reported by Martin Stjernholm.
5960 Minor clarifications in comments.
5962 * regex.c (re_match_2_internal): Ensure no stale submatches.
5964 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
5966 * event-Xt.c (enqueue_focus_event): Add missing prototype.
5968 2002-08-29 Jerry James <james@xemacs.org>
5970 * lisp.h: structrures -> structures.
5972 2002-06-03 Andy Piper <andy@xemacs.org>
5974 * frame.c (frame_conversion_internal): add conversion appropriate
5975 for setting frame dimensions in pixels.
5977 * console.h (struct console_methods): add device-specific widget
5980 * emacs.c (main_1): initialize glyph vars.
5982 * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5983 (handle_focus_event_2): new function. Allow focus to
5984 be set to a particular window and widget.
5985 (enqueue_focus_event): new function. Create a
5986 synthetic focus event.
5987 (emacs_Xt_handle_magic_event): call
5988 handle_focus_event_2.
5990 * frame.c (Fset_frame_pixel_height): new function. Allow
5991 pixel-based sizing. Does the right thing on character-oriented
5993 (Fset_frame_pixel_width): ditto.
5994 (Fset_frame_pixel_size): ditto.
5995 (syms_of_frame): declare.
5997 * general-slots.h: add :vertically-justify and
5998 :horizontally-justify.
6000 * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6001 (mswindows_widget_border_width): new function.
6002 (mswindows_combo_box_instantiate): set border widths.
6003 (console_type_create_glyphs_mswindows): declare.
6006 (check_valid_justification): allow vertical and horizontal
6008 (widget_border_width): new function. Call device methods.
6009 (widget_instance_border_width): ditto.
6010 (logical_unit_height): new function. Determine the height of a
6011 logical-unit. Logical units are intended to provide grid-like
6012 layout for subcontrols in a layout. If the layout is
6013 :vertically-justify top then subcontrols will be positioned on
6014 logical-unit boundaries, thus allowing adjacent subcontrols to
6016 (widget_logical_unit_height): ditto for widgets.
6017 (redisplay_widget): misc cleanup.
6018 (widget_spacing): new function. Call device specific
6019 methods. Intended to be the default gap between adjacent widgets.
6020 (widget_query_geometry): use new spacing functions to determine
6021 appropriate geometry.
6022 (initialize_widget_image_instance): initialize horizontal and
6023 vertical justification.
6024 (widget_instantiate): use logica-units where appropriate for
6025 sizing large widgets.
6026 (button_query_geometry): use widget_instance_border_width.
6027 (tree_view_query_geometry): ditto.
6028 (tab_control_query_geometry): ditto.
6029 (edit_field_query_geometry): new function.
6030 (layout_update): pick up :justify, :horizontally-justify and
6031 :vertically-justify none of which worked previously. :justify is
6032 used as a fallback for both horizontal and vertical justification.
6033 (layout_query_geometry): use logical units to size appropriately.
6034 (layout_layout): ditto.
6035 (Fwidget_logical_to_character_width): new function. Allow users to
6036 convert from logical units to characters so that frame sizes can
6037 be set appropriately.
6038 (Fwidget_logical_to_character_height): ditto.
6039 (syms_of_glyphs_widget): declare.
6040 (image_instantiator_edit_fields): add edit_field_query_geometry.
6041 (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6042 :horizontally-justify.
6043 (specifier_vars_of_glyphs_widget): new function. Declare
6044 Vwidget_border_width which is not yet used.
6046 * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6047 (x_widget_border_width): new function.
6048 (x_widget_instantiate): create a sensible name for widgets.
6049 (console_type_create_glyphs_x): declare x_widget_border_width.
6051 * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6052 (struct Lisp_Image_Instance): add :vertically-justify and
6053 :horizontally-justify.
6054 (LAYOUT_JUSTIFY_TOP): new.
6055 (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6056 (ROUND_UP): new macro. Round argument up to next integral
6059 * redisplay-output.c (redisplay_output_layout): misc formatting.
6061 * symsinit.h: declare specifier_vars_of_glyphs_widget.
6063 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
6065 * XEmacs 21.4.9 "Informed Management" is released.
6067 2002-08-19 Andy Piper <andy@xemacs.org>
6069 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6072 * realpath.c (xrealpath): normalize drive spec also so that dir
6073 sep chars are not mixed on cygwin.
6075 2002-08-06 Jerry James <james@xemacs.org>
6077 * window.c (Fsplit_window): Count only half of the divider width
6078 against the left window when splitting horizontally.
6080 2002-06-24 Andy Piper <andy@xemacs.org>
6082 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6083 toolbar was cleared.
6085 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6086 function. Split out from mswindows_output_frame_toolbars.
6087 (mswindows_output_frame_toolbars): move clear pieces to
6088 mswindows_output_frame_toolbars.
6090 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6091 out from gtk_output_frame_toolbars.
6092 (gtk_output_frame_toolbars): move clear pieces to
6093 gtk_clear_frame_toolbars.
6095 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6096 the frame is cleared. How this ever worked before is a mystery.
6097 (x_output_frame_toolbars): Only output toolbars.
6098 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6100 * gutter.c (update_gutter_geometry):
6101 Mark frame layout changed.
6102 (update_frame_gutter_geometry, update_frame_gutters):
6103 Respect frame_layout_changed.
6105 * console.h (struct console_methods): add
6106 clear_frame_toolbars_method.
6108 * redisplay.c (redisplay_frame): call
6109 update_frame_toolbars_geometry and re-order update_frame_toolbars.
6111 * toolbar.h: declare update_frame_toolbars_geometry.
6113 * toolbar.c (update_frame_toolbars_geometry): new function. Split
6114 out from update_frame_toolbars. Call clear_frame_toolbars.
6115 (update_frame_toolbars): only output, do not change geometry.
6117 * redisplay.c: add frame_layout_changed.
6119 * redisplay.h: add frame_layout_changed.
6120 (CLASS_RESET_CHANGED_FLAGS): set it.
6121 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6122 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6123 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6125 * device.h (struct device): add frame_layout_changed.
6126 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6128 * frame.h (struct frame): add frame_layout_changed.
6129 (MARK_FRAME_LAYOUT_CHANGED): new.
6131 2002-06-30 Mike Alexander <mta@arbortext.com>
6133 * event-msw.c (mswindows_need_event): Don't wait for a new message
6134 if the queue is not empty. Suggested by Paul Moore.
6136 2002-06-12 Andy Piper <andy@xemacs.org>
6138 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6139 for printing on accurately.
6141 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
6143 * event-msw.c (mswindows_wnd_proc): Add a handler for the
6144 WM_ACTIVATE message. Make sure that the frame is visible if the
6145 window is visible. This seemss to fix the problem where XEmacs
6146 appears to freeze after switching desktops with certain virtual
6148 (debug_output_mswin_message): Added code to output message
6149 parameters for WM_WINDOWPOSCHANGED,
6150 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6152 2002-05-25 Andy Piper <andy@xemacs.org>
6154 * select-x.c (vars_of_select_x): Fix docstring of
6155 x-selection-strict-motif-ownership
6157 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6159 * keymap.c (get_keymap):
6160 Add comment about do_autoload GCPROs own args.
6162 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6164 * bytecode.c (execute_optimized_program): check_opcode ifdef
6165 ERROR_CHECK_BYTE_CODE.
6167 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6169 Thanks to Ben Wing and Michael Sperber.
6171 * eval.c (Fcommand_execute):
6174 (Fmacroexpand_internal):
6175 (function_argcount):
6176 callint.c (Fcall_interactively):
6177 Add comment about do_autoload GCPROs own args.
6179 * (do_autoload): GCPRO both args as well as local Lisp_Object.
6181 * eval.c (Ffuncall): Extra braces to placate GCC.
6183 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
6185 * backtrace.h (grow_specpdl):
6187 * EmacsFrame.c (EmacsFrameSetValues):
6188 * eval.c (grow_specpdl):
6189 * ExternalShell.c (hack_event_masks_1):
6190 * glyphs-x.c (convert_EImage_to_XImage):
6191 (x_finalize_image_instance):
6192 * ralloc.c (page_size):
6194 * xgccache.c (gc_cache_hash):
6195 Fix unsigned comparison warnings.
6197 2002-07-29 Jerry James <james@xemacs.org>
6199 * lread.c (locate_file): Any nonnegative return value indicates
6200 success if MODE is nonnegative.
6202 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
6204 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6207 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
6209 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6211 * dumper.c (pdump_get_indirect_count):
6212 (pdump_scan_by_alignment):
6213 (pdump_dump_root_struct_ptrs):
6214 (pdump_dump_rtables):
6215 (pdump_dump_root_objects):
6217 * nas.c (WaveOpenDataForReading):
6218 * fns.c (print_bit_vector):
6219 * font-lock.c (SINGLE_SYNTAX_STYLE):
6220 * glyphs.c (check_for_ignored_expose):
6221 (find_matching_subwindow):
6223 * imgproc.c (get_histogram):
6224 * redisplay.c (point_in_line_start_cache):
6225 * redisplay-output.c (redisplay_unmap_subwindows):
6226 * symbols.c (defsymbol_massage_name_1):
6227 (defkeyword_massage_name):
6228 (deferror_massage_name_and_message):
6229 * redisplay-x.c (x_output_string):
6230 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6231 * frame.h (struct frame):
6232 * filelock.c (current_lock_owner):
6233 * doprnt.c (emacs_doprnt_1):
6234 * lisp.h (struct Lisp_Bit_Vector):
6238 2002-02-13 Ben Wing <ben@xemacs.org>
6240 * event-stream.c (reset_key_echo):
6241 * event-stream.c (reset_this_command_keys):
6242 * event-stream.c (execute_command_event):
6243 If console is dead as a result of C-x 5 0, then post-command stuff
6244 needs to be careful and do only non-console-specific stuff.
6246 2002-07-01 Mike Sperber <mike@xemacs.org>
6248 * process-unix.c (unix_send_process): Mark coding_outstream as
6249 non-open upon SIGPIPE.
6251 * event-stream.c (Fnext_event): Reorder switch cases to something
6254 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
6256 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6257 Don't bogusly reinitialize ascii_character property.
6259 2002-07-08 Mike Sperber <mike@xemacs.org>
6261 * process.c (Fstart_process_internal): Do error checking before we
6262 fork off the child, so the child can't muck with the state of the
6265 2002-07-08 Mike Sperber <mike@xemacs.org>
6267 * ralloc.c (init_ralloc): Allocate properly for pdump.
6269 2002-06-12 Andy Piper <andy@xemacs.org>
6271 * glyphs.c (query_string_geometry): check the string.
6273 * glyphs-widget.c (widget_logical_unit_height): cope with nil
6276 2002-06-17 Jerry James <james@xemacs.org>
6278 * sysdll.c: Remove RTLD_GLOBAL initialization.
6279 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6281 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
6283 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6285 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
6287 * sysdep.c (sys_rename): Make sys_rename work for the case where
6288 Windows rename sets errno to EACCES if target file exists.
6290 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
6292 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6293 Fix detection of metric units to work on Win95
6295 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
6297 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
6299 2002-04-25 Andy Piper <andy@xemacs.org>
6301 * redisplay.c (create_text_block): Remove extra comment trailer.
6303 2002-04-24 Andy Piper <andy@xemacs.org>
6305 * redisplay.c (create_text_block): Don't actually add propagation
6306 data if the line ends after we have added a glyph.
6308 2002-04-22 Andy Piper <andy@xemacs.org>
6310 * extents.c (extent_fragment_update): check for glyphs we have
6311 previously displayed.
6312 * extents.c (print_extent_1): warning removal.
6313 * extents.h: change prototype.
6314 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6315 widths correctly for wide glyphs.
6316 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6317 * redisplay.c (prop_type): add PROP_GLYPH.
6318 * redisplay.c (struct prop_block): add glyph type
6319 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6320 to the propagation data.
6321 * redisplay.c (create_text_block): if there is a glyph in the
6322 propagation data use it to salt extent_fragment_update.
6323 * redisplay.c (create_string_text_block): ditto.
6325 2002-04-13 Nix <nix@esperi.demon.co.uk>
6327 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6328 * redisplay-output.c (compare_runes): Compare them.
6329 * redisplay.c: Update copyright date.
6330 * redisplay.c (pos_data): Add need_baseline_computation field.
6331 * redisplay.c (add_glyph_rune): Update ascent, descent, and
6332 need_baseline_computation; zero yoffset. Set max_pixmap_height
6333 for all pixmaps, not just automatically positioned ones.
6334 * redisplay.c (calculate_yoffset): New, compute yoffset values.
6335 * redisplay.c (calculate_baseline): New, compute textual baseline.
6336 * redisplay.c (add_glyph_rune): Call them.
6337 * redisplay.c (create_text_block): Likewise.
6338 * redisplay.c (create_overlay_glyph_block): Likewise.
6339 * redisplay.c (add_margin_runes): Likewise.
6340 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6342 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6343 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6344 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6345 * redisplay-msw.c (mswindows_output_string): Likewise.
6346 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6347 * redisplay-gtk.c (gtk_output_display_block): Likewise.
6348 * redisplay-x.c (x_output_display_block): Likewise.
6350 2002-03-28 Ben Wing <ben@xemacs.org>
6352 * redisplay.c: Fixed bug in redisplay
6353 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6354 and down of the lines, since they're bigger than the line
6355 size. (It was seen most obviously when there's a horizontal scroll
6356 bar, e.g. do C-h a glyph or something like that.) The problem was
6357 that the glyph-contrib-p setting on glyphs was ignored even if it
6358 was set properly, which it wasn't until now.
6360 2002-04-24 Andy Piper <andy@xemacs.org>
6362 * lisp.h (Dynarr_end): Fix definition.
6364 2002-02-06 Adrian Aichner <adrian@xemacs.org>
6366 * redisplay.c (mark_redisplay): Remove call to
6367 update_frame_window_mirror.
6369 2001-11-15 Andy Piper <andy@xemacs.org>
6371 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6374 2002-02-13 Andy Piper <andy@xemacs.org>
6376 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6377 we did in fact enqueue the XM_MAPFRAME event.
6379 2002-01-15 Adrian Aichner <adrian@xemacs.org>
6381 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6382 to fix problem switching between virtual desktops under virtuawin
6383 virtual window manager.
6385 2001-07-30 Adrian Aichner <adrian@xemacs.org>
6387 * event-msw.c: Typo fix.
6388 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6389 magic XM_MAPFRAME event has been sent.
6391 2001-11-23 Andy Piper <andy@xemacs.org>
6393 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6395 2001-11-21 Andy Piper <andy@xemacs.org>
6397 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6398 mouse events outside the frame.
6400 2002-03-20 Andy Piper <andy@xemacs.org>
6402 * menubar-msw.c (mswindows_popup_menu): warning removal.
6403 * dialog-msw.c (dialog_popped_down): ditto.
6405 2001-12-11 Andy Piper <andy@xemacs.org>
6407 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6408 * dialog-msw.c (mswindows_make_dialog_box_internal): set
6410 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6411 * menubar-msw.c (mswindows_handle_wm_command): ditto.
6412 * menubar-msw.c (mswindows_popup_menu): ditto.
6414 2001-10-29 Andy Piper <andy@xemacs.org>
6416 * dialog-msw.c (handle_directory_dialog_box): quit if the user
6419 2002-01-03 Andy Piper <andy@xemacs.org>
6421 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6425 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
6427 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6428 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6429 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6430 Detect and handle case where machine is set up for metric units
6432 2002-04-02 Andy Piper <andy@xemacs.org>
6434 * dired-msw.c (mswindows_get_files):
6435 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6436 completely handled by XEmacs. Suggested by Thomas Vogler
6437 <mail@thomas-vogler.de>.
6439 2001-11-14 Andy Piper <andy@xemacs.org>
6441 * nt.c (REG_ROOT): change registry key to XEmacs.
6443 2002-04-27 Andy Piper <andy@xemacs.org>
6445 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6447 2002-04-26 Andy Piper <andy@xemacs.org>
6449 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6452 2002-03-14 Mike Alexander <mta@arbortext.com>
6454 * event-msw.c (mswindows_unwait_process): New, remove process from
6456 * process-nt.c (nt_finalize_process_data): Call
6457 mswindows_unwait_process
6458 * console-msw.h: Declare mswindows_unwait_process
6460 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
6462 * editfns.c (Fdecode_time):
6463 (Fformat_time_string):
6464 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
6465 (make_time): Warning elimination (change arg name).
6467 2001-11-24 Andy Piper <andy@xemacs.org>
6469 * window.c (Fsplit_window): Doc return type.
6471 2002-04-01 Andy Piper <andy@xemacs.org>
6473 * emacs.c (Fkill_emacs): Only output message box in interactive
6476 2002-04-26 Andy Piper <andy@xemacs.org>
6478 * config.h.in: pull in 21.5.x change to stop alloca warnings under
6481 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
6483 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
6486 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
6488 * XEmacs 21.4.8 "Honest Recruiter" is released.
6490 2002-05-07 Nix <nix@esperi.demon.co.uk>
6492 Supersedes 2002-04-17 patch.
6494 * process.h (PROCESS_LIVE_P): Use the process status as
6495 evidence of health, not the state of the input stream.
6496 (PROCESS_READABLE_P): Say if the process is readable
6497 from. (It may be dead nonetheless.)
6498 (CHECK_READABLE_PROCESS): Test for that condition.
6500 * process.c (create_process): Use PROCESS_READABLE_P.
6501 (read_process_output, set_process_filter): Likewise.
6503 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6504 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6506 This code is #if 0'd, this is not the time to add new functions:
6508 * process.c (Fprocess_readable_p): Report readability status.
6509 * process.c (Qprocess_readable_p): New, associated symbol...
6510 * process.c (syms_of_process): ... initialize it.
6512 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
6514 * XEmacs 21.4.7 "Economic Science" is released.
6516 2002-04-17 Nix <nix@esperi.demon.co.uk>
6518 * process.h (PROCESS_LIVE_P): Use the process status as
6519 evidence of health, not the state of the input stream.
6521 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
6523 * sysdep.c (sys_siglist): change "signum" to "signal"
6525 2001-04-21 Martin Buchholz <martin@xemacs.org>
6527 * s/darwin.h: New file.
6528 Thanks to Greg Parker <gparker@cs.stanford.edu>.
6530 2002-04-23 Andreas Jaeger <aj@suse.de>
6532 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6533 which use lib64 for 64-bit libs.
6534 (START_FILES): Likewise.
6536 2002-02-11 Mike Sperber <mike@xemacs.org>
6539 (x_IO_error_handler):
6540 (x_init_device): Temporarily keep device in static variable
6541 `device_being_initialized' so we can recover gracefully from
6542 internal XOpenDevice failure. (XOpenDevice is documented to
6543 return NULL on failure, but sometimes calls the IO error handler
6546 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
6548 * dired.c (Ffile_name_all_completions): Change documentation --
6549 remove reference to completion-ignored-extensions.
6550 * dired.c (vars_of_dired): Change documentation for
6551 completion-ignored-extensions -- remove reference to
6552 file-name-all-completions.
6554 2002-03-06 Jerry James <james@xemacs.org>
6556 * emodules.c (emodules_load): Fix multiple loading of same module.
6558 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
6559 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6560 RTLD_LAZY to avoid incorrect symbol binding when using nested
6561 shared libraries on Solaris.
6563 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
6565 * fileio.c (Ffind_file_name_handler): Improve docstring.
6567 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
6569 * fns.c (Fmapconcat): Improve docstring.
6571 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
6573 * device-gtk.c: Add prototype for
6574 emacs_gtk_selection_clear_event_handle.
6575 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6576 selection. Setup signal handler for "selection_clear_event"
6577 (emacs_gtk_selection_clear_event_handle).
6579 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6580 other applications owning the clipboard (based on
6581 x_handle_selection_clear).
6583 2001-12-23 William M. Perry <wmperry@gnu.org>
6585 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
6587 2002-01-04 Martin Buchholz <martin@xemacs.org>
6589 * keymap.c (define_key_alternate_name): Parenthesize EQ.
6591 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
6593 * XEmacs 21.4.6 "Common Lisp" is released.
6595 2001-12-16 Torsten Duwe <duwe@caldera.de>
6597 * search.c (Freplace_match): Add missing sub-expression functionality.
6599 * buffer.c (decode_buffer): Add a check for pointer type to
6600 decode_buffer, before gcc's CSE optimization reorders a
6601 dereference in front of the allow_string test.
6603 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
6605 * window.c (window_loop): Fix bug that sometimes prevented
6606 window_loop() from iterating across multiple devices. Also, at
6607 Ben's request, changed infloop-detecting code to abort() instead
6608 of silently terminating window_loop().
6610 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
6612 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6613 * editfns.c (make_time): New function.
6614 (Fencode_time): Use it instead of wasteful_word_to_lisp.
6615 * lisp.h (make_time): Prototype and comment it.
6616 * dired.c (wasteful_word_to_lisp): Deprecate.
6617 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6619 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
6621 * fileio.c (auto_save_1): Use current coding system, not
6624 2001-11-13 Ben Wing <ben@xemacs.org>
6627 * window.c (window_truncation_on):
6628 * window.c (syms_of_window):
6629 truncate-partial-width-windows should respect the buffer being
6630 displayed, like other redisplay vars.
6632 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
6634 * event-stream.c (Fread_key_sequence): save current buffer.
6636 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
6638 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6640 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
6642 * alloc.c (lcrecord_stats): Add space for types defined in modules.
6644 2001-10-26 Mike Alexander <mta@arbortext.com>
6646 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6648 2001-10-25 Andy Piper <andy@xemacs.org>
6651 * dialog-msw.c (handle_directory_proc): new function.
6652 (handle_directory_dialog_box): new fucntion.
6653 (handle_file_dialog_box): use new directory dialog support.
6654 (mswindows_make_dialog_box_internal): ditto.
6655 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6657 (mswindows_find_frame): make global.
6658 * fileio.c (Fexpand_file_name): build fix.
6659 * general-slots.h: add Qdirectory.
6660 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6662 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6663 cygwin not leaving win32 paths unchanged.
6664 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6665 cygwin runtime to do path conversion.
6666 (Fmswindows_shell_execute): fix cygwin handling of URLs.
6667 (syms_of_win32): add new function.
6668 * window.c (window_loop): build fix.
6670 2001-10-15 Andy Piper <andy@xemacs.org>
6672 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6674 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
6676 * XEmacs 21.4.5 "Civil Service" is released.
6678 2001-04-08 Danny Colascione <qtmstr@optonline.net>
6680 * glyphs-x.c: Force buffer-tab highlight update when moving the
6681 buffer, avoiding an ugly black border, used for keyboard focus
6682 indication, on a widget that can never have keyboard focus, the
6685 2001-08-30 Daiki Ueno <ueno@unixuser.org>
6687 * process-unix.c (unix_open_multicast_group): Remove too much
6688 conversion between host and network byte order.
6690 2001-09-10 Nix <nix@esperi.demon.co.uk>
6692 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6693 before replacing them.
6695 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6698 * src/window.c (undedicate_windows): Use it.
6699 * src/window.h: Add prototype.
6701 2001-09-17 Ben Wing <ben@xemacs.org>
6703 * fileio.c (normalize_filename):
6704 * fileio.c (Fexpand_file_name):
6705 Fix various C++ compile errors in Andy's recent code.
6707 * callint.c (Fcall_interactively):
6708 * editfns.c (Ftemp_directory):
6709 * editfns.c (Fuser_full_name):
6710 * emacs.c (argmatch):
6711 * lread.c (locate_file_map_suffixes):
6712 * redisplay-x.c (x_ring_bell):
6713 Fix sign-compare warnings.
6715 2001-09-08 Andy Piper <andy@xemacs.org>
6717 * fileio.c (normalize_filename): copied from nt.c
6718 * (Ffile_name_directory): enable win32 paths under cygwin.
6719 * (Ffile_name_nondirectory): ditto.
6720 * (directory_file_name): ditto.
6721 * (Fexpand_file_name): ditto.
6722 * (Ffile_truename): ditto.
6723 * (Fsubstitute_in_file_name): ditto.
6724 * (Ffile_name_absolute_p): ditto.
6725 * (Ffile_readable_p): ditto.
6727 2001-09-08 Andy Piper <andy@xemacs.org>
6729 * device-msw.c (mswindows_finish_init_device): remove dde
6731 * device-msw.c (mswindows_init_dde): factor out from
6732 mswindows_finish_init_device()
6733 * device-msw.c (init_mswindows_very_early): new function
6734 initialize but don't enable dde.
6735 * emacs.c (main_1): call init_mswindows_very_early.
6737 * event-msw.c (mswindows_dde_callback): only execute when we are
6739 * symsinit.h: declare init_mswindows_very_early.
6741 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6743 [sjt: This has been in 21.5 for months with no complaints.]
6745 * console.h (struct console_methods): Added flags member.
6746 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6747 (CONMETH_IMPL_FLAG):
6748 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6749 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6751 * device.c (window_system_pixelated_geometry): Use the above macros.
6753 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6754 implememntation flag.
6755 * device.h (DEVICE_DISPLAY_P): Use it.
6757 * frame.c (delete_frame_internal): Use the above macro.
6759 * redisplay.c (redisplay_device): Use it.
6760 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6761 (redisplay_frame): Ditto.
6763 * device-msw.c (mswindows_device_implementation_flags): Removed.
6764 (msprinter_device_implementation_flags): Removed.
6765 (console_type_create_device_mswindows): Removed references to
6766 implementation_flags methods, set implementation flags here.
6767 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6769 * device-gtk.c (gtk_device_implementation_flags): Removed method.
6770 (console_type_create_device_gtk): Removed method declaration.
6771 Added commented out statement which semantically matches the
6772 commented out statement in the above removed method.
6774 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
6776 The attached patch fixes a few warnings.
6778 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6779 * src/frame-gtk.c: guard against GNOME calls in GTK only
6780 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6781 * src/select-gtk.c: prototype lisp_to_time
6783 2001-06-08 Ben Wing <ben@xemacs.org>
6785 ------ gc-in-window-procedure fixes ------
6788 * alloc.c (struct post_gc_action):
6789 * alloc.c (register_post_gc_action):
6790 * alloc.c (run_post_gc_actions):
6791 * alloc.c (garbage_collect_1):
6792 Create "post-gc actions", to avoid those dreaded "GC during window
6793 procedure" problems.
6796 Abort, clean and simple, when GC in window procedure. We want
6797 to flush these puppies out.
6800 * glyphs-msw.c (finalize_destroy_window):
6801 * glyphs-msw.c (mswindows_finalize_image_instance):
6802 Use a post-gc action when destroying subwindows.
6805 Declare register_post_gc_action().
6808 * scrollbar-msw.c (unshow_that_mofo):
6809 Use a post-gc action when unshowing scrollbar windows, if in gc.
6811 * redisplay.c (mark_redisplay):
6812 Add comment about the utter evilness of what's going down here.
6814 ------ cygwin setitimer fixes ------
6816 * Makefile.in.in (sheap_objs):
6817 * Makefile.in.in (profile_objs):
6818 * Makefile.in.in (objs):
6819 Compile profile.c only when HAVE_SETITIMER.
6821 * nt.c (mswindows_sigset):
6822 * nt.c (mswindows_sighold):
6823 * nt.c (mswindows_sigrelse):
6824 * nt.c (mswindows_sigpause):
6825 * nt.c (mswindows_raise):
6826 * nt.c (close_file_data):
6830 Move setitimer() emulation to win32.c, because Cygwin needs it too.
6833 * profile.c (Fstart_profiling):
6834 * profile.c (Fstop_profiling):
6835 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
6836 instead of just plain setitimer().
6839 * signal.c (set_one_shot_timer):
6841 Define qxe_setitimer() as an encapsulation around setitimer() --
6842 call setitimer() directly unless Cygwin or MS Win, in which case
6843 we use our simulated version in win32.c.
6846 * systime.h (struct itimerval):
6847 * systime.h (ITIMER_REAL):
6848 Prototype mswindows_setitimer() and qxe_setitimer(). Long
6849 comment about "qxe" and the policy regarding encapsulation.
6852 * win32.c (setitimer_helper_proc):
6853 * win32.c (setitimer_helper_period):
6854 * win32.c (setitimer_helper):
6855 * win32.c (mswindows_setitimer):
6856 Move setitimer() emulation here, so Cygwin can use it.
6857 Rename a couple of functions and variables to be longer and more
6858 descriptive. In setitimer_helper_proc(), send the signal
6859 using either mswindows_raise() or (on Cygwin) kill(). If for
6860 some reason we are still getting lockups, we'll change the kill()
6861 to directly invoke the signal handlers.
6863 ------ windows shell fixes ------
6867 Comments about how these two files must die.
6869 * callproc.c (init_callproc):
6870 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6871 not just COMSPEC. (more correct and closer to FSF.) Don't
6872 force a value for SHELL into the environment. (Comments added
6873 to explain why not.)
6875 * nt.c (init_user_info):
6876 Don't shove a fabricated SHELL into the environment. See above.
6878 2001-06-01 Ben Wing <ben@xemacs.org>
6880 * Makefile.in.in (ldflags):
6881 eliminate that pesky "defaulting to 00401000" warning.
6885 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
6887 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6888 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6890 2001-04-24 Jerry James <james@xemacs.org>
6892 * faces.h: pass parameters to Fadd_spec_to_specifier in the
6895 2001-06-01 Ben Wing <ben@xemacs.org>
6897 * event-msw.c (debug_mswin_messages):
6898 conditionalize the messages that were causing compile errors.
6899 (if only macros could generate #ifdef statements ...)
6901 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
6903 * XEmacs 21.4.4 "Artificial Intelligence" is released.
6905 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
6907 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6909 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
6911 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6912 * process-unix.c (unix_canonicalize_host_name):
6913 sysdep.c (init_system_name):
6914 Use it to conditionally support IPv6 canonicalization.
6916 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
6919 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6921 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
6923 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6924 attempt is made to scroll when no scroll bar is available.
6926 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
6928 * input-method-motif.c (XIM_delete_frame): New callback.
6929 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
6930 got deleted from 21.4.3.)
6932 2001-06-01 Ben Wing <ben@xemacs.org>
6934 * nt.c (mswindows_utime):
6935 * nt.c (close_file_data):
6936 fix off-by-one-indirection error.
6938 2001-05-29 Adrian Aichner <adrian@xemacs.org>
6940 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
6941 because set_file_times() now takes Lisp_Object path, instead of
6943 * nt.c: Include buffer.h.
6944 * nt.c (convert_from_time_t): New.
6945 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
6946 not set mtime correctly.
6947 * nt.h: Declare mswindows_utime().
6948 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6949 path, instead of char*.
6950 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6952 2001-05-30 Ben Wing <ben@xemacs.org>
6956 (Stephen, just take all event-msw.c patches. This includes
6957 the "iconify" fix below.)
6960 * event-msw.c (mswindows_dequeue_dispatch_event):
6961 * event-msw.c (assert):
6962 * event-msw.c (emacs_mswindows_quit_p):
6963 * event-msw.c (debug_mswin_messages):
6964 * event-msw.c (debug_output_mswin_message):
6965 * event-msw.c (vars_of_event_mswindows):
6966 Fix yet more problems with C-g handling.
6967 Implement debug-mswindows-events.
6969 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6971 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6973 2001-05-23 Ben Wing <ben@xemacs.org>
6975 * event-msw.c (winsock_writer):
6976 * event-msw.c (winsock_closer):
6977 prior kludgy code was clobbering the buffer, thinking it was
6978 "unused" space to store an unneeded return value; instead, use
6979 the variable we've already got staring us in the face.
6981 2001-05-17 Andy Piper <andy@xemacs.org>
6983 * sysfile.h: don't assume that file attributes are boolean
6985 2001-05-23 Ben Wing <ben@xemacs.org>
6987 * device-msw.c (msprinter_init_device):
6988 signal an error rather than crash with an unavailable network
6989 printer (from Mike Alexander).
6992 * event-msw.c (struct winsock_stream):
6993 * event-msw.c (winsock_writer):
6994 * event-msw.c (winsock_closer):
6995 * event-msw.c (make_winsock_stream_1):
6996 cleanup headers. fix (hopefully) an error with data corruption
6997 when sending to a network connection.
6999 * fileio.c (Fexpand_file_name): Fix evil code that attempts
7000 to handle the ~user prefix by (a) always assuming we're referencing
7001 ourselves and not even verifying the user -- hence any file with
7002 a tilde as its first char is invalid! (b) if there wasn't a slash
7003 following the filename, the pointer was set *past* the end of
7004 file and we started reading from uninitialized memory. Now we
7005 simply treat these as files, always.
7007 * buffer.c (common_init_complex_vars_of_buffer): comment change.
7009 2001-05-19 Ben Wing <ben@xemacs.org>
7011 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7014 * process-nt.c (vars_of_process_nt):
7015 remove unused mswindows-quote-process-args. rec for 21.4.
7017 2001-05-12 Ben Wing <ben@xemacs.org>
7019 * event-msw.c (mswindows_dde_callback):
7020 * event-msw.c (mswindows_wnd_proc):
7021 eliminate cygwin warnings.
7023 2001-05-06 Ben Wing <ben@xemacs.org>
7027 * device-msw.c (print_dialog_worker):
7028 * device-msw.c (mswindows_handle_print_dialog_box):
7029 * device-msw.c (syms_of_device_mswindows):
7030 * dialog-msw.c (mswindows_make_dialog_box_internal):
7032 implement printing the selection when it's selected.
7034 2001-05-20 Drazen Kacar <dave@arsdigita.com>
7036 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7038 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
7040 * lisp.h (EMACS_INT_MAX): This should be one bit less since
7041 EMACS_INT is signed.
7043 2001-04-15 Michael Lausch <mla@1012surf.net>
7045 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7046 gtk_widget_request_size() to give scrollbar >0 width for
7049 2001-05-30 William M. Perry <wmperry@gnu.org>
7051 * event-gtk.c: Check for buttons as modifier keys.
7053 2001-05-25 Craig Lanning <CraigL@Knology.net>
7056 Properly find MinGW's <process.h> inside Cygwin's restructured
7057 include directories. Don't try to include <cygwin/version.h>
7058 since we are dropping support for MinGW in versions of Cygwin
7061 Drop support for MinGW in versions of Cygwin before b21.
7063 Properly find MinGW's <process.h> inside Cygwin's restructured
7064 include directories.
7066 Drop support for MinGW in versions of Cygwin before b21.
7068 Even though a.out.h is no longer detected by configure, allow
7069 MinGW to use it until we figure out how to do the job with Win32.
7071 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
7073 * syntax.c (find_start_of_comment):
7074 Fix `unbalanced parentheses' bug when dealing with mixed comment
7075 styles in c++/java/etc. mode
7077 2001-05-29 Mike Alexander <mta@arbortext.com>
7079 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7080 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7082 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
7084 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7086 2001-03-31 Mike Sperber <mike@xemacs.org>
7088 * search.c (Freplace_match): Support FSF-style specification of
7089 match subexpression when applied to a buffer.
7091 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
7093 * event-stream.c (is_scrollbar_event): add missing semicolon
7095 2001-05-22 Isaac Hollander <ysh@mindspring.com>
7097 * Makefile.in.in: Use TAR macro instead of hardcoding
7098 tar. Allows use of GNU tar instead of system tar
7100 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
7102 * event-stream.c (is_scrollbar_event): add missing semicolon
7104 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
7106 * XEmacs 21.4.3 "Academic Rigor" is released.
7108 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
7110 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7112 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
7114 * buffer.c (Vcase_fold_search): Remove obsolete
7115 comment about non ASCII case-fold-search. This
7116 bug has been fixed by case-table changes.
7118 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
7120 * event-msw.c: Restore include of events-mod.h.
7122 2001-04-22 zhaoway <zw@debian.org>
7124 * event-stream.c (is_scrollbar_event): Noop returning 0 if
7127 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
7129 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7131 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
7133 * mule-charset.c (Fmake_charset): Add missing else.
7135 2001-04-23 Ben Wing <ben@xemacs.org>
7137 * event-msw.c (FAKE_MOD_QUIT):
7138 * event-msw.c (mswindows_dequeue_dispatch_event):
7139 * event-msw.c (mswindows_wnd_proc):
7140 * event-msw.c (emacs_mswindows_quit_p):
7141 Get critical quit working.
7143 2001-05-05 Ben Wing <ben@xemacs.org>
7147 * device-msw.c (mswindows_get_default_margin):
7148 * frame-msw.c (mswindows_size_frame_internal):
7149 * frame-msw.c (msprinter_init_frame_1):
7150 * frame-msw.c (vars_of_frame_mswindows):
7151 Change top/bottom margin defaults to 0.5 inches.
7153 2001-05-01 Martin Buchholz <martin@xemacs.org>
7155 Fix link error with gcc 3.0 on Linux.
7156 * terminfo.c (UP): Remove.
7157 * terminfo.c (BC): Remove.
7158 * terminfo.c (PC): Remove.
7159 They weren't used, and in any case, these symbols should be
7160 defined in the *library*.
7162 2001-05-03 Martin Buchholz <martin@xemacs.org>
7164 * s/aix4.h: Fix crash with xlc -O3.
7165 Improve comment explaining how -O3 works.
7167 2001-04-15 Ben Wing <ben@xemacs.org>
7170 * event-stream.c (Fnext_event):
7171 * event-stream.c (is_scrollbar_event):
7172 * event-stream.c (execute_command_event):
7173 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7174 crash' problem. His fix introduces other problems. We filter
7175 out scrollbar events specifically, making them somewhat invisible
7176 to command-building, and not appearing in `this-command-keys'.
7177 More work is still needed (see comments in event-stream.c), but
7178 this fixes all the major problems.
7180 2001-04-20 Ben Wing <ben@xemacs.org>
7182 * .cvsignore: Added stuff for Windows.
7184 2001-04-28 Ben Wing <ben@xemacs.org>
7186 * buffer.c (Ferase_buffer):
7187 * editfns.c (buffer_insert1):
7188 * editfns.c (Finsert_before_markers):
7189 * editfns.c (Finsert_string):
7190 * editfns.c (Finsert_char):
7191 * editfns.c (Fdelete_region):
7192 * editfns.c (Fwiden):
7193 * editfns.c (Fnarrow_to_region):
7194 remove bogus lines setting zmacs_region_stays to 0.
7196 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
7198 * process-unix.c (unix_open_network_stream): If connect() fails
7199 invalidate file descriptor after closing it.
7201 2001-03-08 Mike Alexander <mta@arbortext.com>
7203 * event-msw.c (mswindows_need_event_in_modal_loop):
7204 Don't dispatch a message if we didn't get one.
7205 (mswindows_need_event):
7206 Terminate the correct process when one exits instead of the first
7207 one on Vprocess_list and look for process termination when in
7208 mswindows_protect_modal_loop.
7210 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
7212 * XEmacs 21.4.1 "Copyleft" is released.
7214 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
7216 * input-method-motif.c (XIM_delete_frame): New callback.
7217 (XIM_init_frame): Register it.
7219 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
7221 * XEmacs 21.4.0 "Solid Vapor" is released.
7223 2001-04-15 Ben Wing <ben@xemacs.org>
7225 * cmdloop.c (call_command_loop):
7226 Fix braino in bit-rotting code.
7228 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
7230 * extents.c (Fset_extent_endpoints): Force creation of extent info
7231 in buffer_or_string.
7233 * extents.c (process_extents_for_insertion_mapper): Correctly
7234 check for open-open zero-length extents.
7236 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
7238 * lisp.h: New typedefs Memory_count, Element_count.
7241 Sign-compare warning elimination: several unsigned -> signed.
7242 Based on work by Ben Wing <ben@xemacs.org>.
7244 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
7246 * XEmacs 21.2.47 "Zephir" is released.
7248 2001-04-02 Jan Vroonhof <jan@xemacs.org>
7250 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7252 2001-04-03 Mike Sperber <mike@xemacs.org>
7254 * search.c: Revert previous patch due because of release.
7256 2001-03-30 Ben Wing <ben@xemacs.org>
7259 Add missing killpg prototype.
7262 Add a comment about fixing problems when a new entry is added
7265 * frame-msw.c (mswindows_init_frame_1):
7266 Fix compile warnings.
7268 * menubar.c (vars_of_menubar):
7269 Provide `menu-accelerator-support' to indicate that we properly
7270 support %_ in menu specifications, so that package code can
7271 conditionalize on this (and remove %_ from menu specifications
7276 * scrollbar-msw.c (can_scroll):
7278 Fix handling of mouse wheel under Windows to follow standards --
7279 now scrolls window under pointer, not selected window.
7281 2001-03-31 Mike Sperber <mike@xemacs.org>
7283 * search.c (Freplace_match): Support FSF-style specification of
7284 match subexpression when applied to a buffer.
7286 2001-03-15 Martin Buchholz <martin@xemacs.org>
7288 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7289 function to modify KEYMAP, so map over a copy of the hash table.
7291 2001-03-21 Martin Buchholz <martin@xemacs.org>
7293 * XEmacs 21.2.46 "Urania" is released.
7295 2001-03-20 Dan Holmsand <dan@eyebee.com>
7297 * realpath.c (xrealpath): Make file-truename work with symlinks to
7298 /cygdrive paths on cygwin. Always lowercase drive-letters on
7300 (cygwin_readlink): Don't try to find canonical filename unless
7303 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
7305 * ChangeLog: Log GTK merge.
7311 Revert gratuitous whitespace changes from GTK merge.
7313 * emacs.c: Document end of complex #ifdef @ l. 1495.
7316 2001-03-12 Andy Piper <andy@xemacs.org>
7318 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7319 have to do likewise.
7321 2001-03-12 Andy Piper <andy@xemacs.org>
7323 * sysdep.c: we only support mingw now.
7325 2001-03-09 Andy Piper <andy@xemacs.org>
7327 * unexcw.c (copy_executable_and_dump_data_section): making approx
7328 overrun a warning only.
7330 2001-03-10 William M. Perry <wmperry@aventail.com>
7332 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7333 satisfy Stephen's identical-after-cpp plea.
7335 2001-03-02 Ben Wing <ben@xemacs.org>
7338 * cmds.c (Fforward_char):
7342 Augment documentation of the most common motion commands to make
7343 note of the shifted-motion support.
7345 2001-03-02 Ben Wing <ben@xemacs.org>
7347 * nt.c (mswindows_fstat):
7348 * nt.c (mswindows_stat):
7349 * search.c (boyer_moore):
7350 Fix compile warnings under Windows.
7352 * sysdep.c (sys_readdir):
7353 Fix buggy filename-conversion code under Mule.
7355 2001-03-09 William M. Perry <wmperry@aventail.com>
7377 * redisplay-output.c:
7383 The Great GTK Merge.
7390 * emacs-widget-accessors.c:
7404 * native-gtk-toolbar.c:
7415 The Great GTK Merge: new files.
7417 2001-02-26 Ben Wing <ben@xemacs.org>
7419 Reapplied Lstream change.
7421 2001-02-26 Ben Wing <ben@xemacs.org>
7423 Undid the last change, since it is more controversial than I
7424 thought. It should be back in at some point soon.
7426 2001-02-25 Ben Wing <ben@xemacs.org>
7429 * callproc.c (Fold_call_process_internal):
7430 * event-msw.c (ntpipe_slurp_reader):
7431 * event-msw.c (ntpipe_shove_writer):
7432 * event-msw.c (winsock_reader):
7433 * event-msw.c (winsock_writer):
7435 * file-coding.c (detect_eol_type):
7436 * file-coding.c (detect_coding_type):
7437 * file-coding.c (determine_real_coding_system):
7438 * file-coding.c (Fdetect_coding_region):
7439 * file-coding.c (decoding_reader):
7440 * file-coding.c (decoding_writer):
7441 * file-coding.c (mule_decode):
7442 * file-coding.c (Fdecode_coding_region):
7443 * file-coding.c (encoding_reader):
7444 * file-coding.c (encoding_writer):
7445 * file-coding.c (mule_encode):
7446 * file-coding.c (Fencode_coding_region):
7447 * file-coding.c (detect_coding_sjis):
7448 * file-coding.c (decode_coding_sjis):
7449 * file-coding.c (encode_coding_sjis):
7450 * file-coding.c (detect_coding_big5):
7451 * file-coding.c (decode_coding_big5):
7452 * file-coding.c (encode_coding_big5):
7453 * file-coding.c (detect_coding_ucs4):
7454 * file-coding.c (decode_coding_ucs4):
7455 * file-coding.c (encode_coding_ucs4):
7456 * file-coding.c (detect_coding_utf8):
7457 * file-coding.c (decode_coding_utf8):
7458 * file-coding.c (encode_coding_utf8):
7459 * file-coding.c (detect_coding_iso2022):
7460 * file-coding.c (decode_coding_iso2022):
7461 * file-coding.c (encode_coding_iso2022):
7462 * file-coding.c (decode_coding_no_conversion):
7463 * file-coding.c (encode_coding_no_conversion):
7464 * glyphs-x.c (write_lisp_string_to_temp_file):
7465 * gpmevent.c (tty_get_foreign_selection):
7468 * lstream.c (Lstream_flush_out):
7469 * lstream.c (Lstream_adding):
7470 * lstream.c (Lstream_write_1):
7471 * lstream.c (Lstream_write):
7472 * lstream.c (Lstream_raw_read):
7473 * lstream.c (Lstream_read_more):
7474 * lstream.c (Lstream_read):
7475 * lstream.c (Lstream_unread):
7476 * lstream.c (Lstream_fputc):
7477 * lstream.c (stdio_reader):
7478 * lstream.c (stdio_writer):
7479 * lstream.c (filedesc_reader):
7480 * lstream.c (filedesc_writer):
7481 * lstream.c (lisp_string_reader):
7482 * lstream.c (struct fixed_buffer_stream):
7483 * lstream.c (make_fixed_buffer_input_stream):
7484 * lstream.c (make_fixed_buffer_output_stream):
7485 * lstream.c (fixed_buffer_reader):
7486 * lstream.c (fixed_buffer_writer):
7487 * lstream.c (struct resizing_buffer_stream):
7488 * lstream.c (resizing_buffer_writer):
7489 * lstream.c (dynarr_writer):
7490 * lstream.c (lisp_buffer_reader):
7491 * lstream.c (lisp_buffer_writer):
7493 * lstream.h (lstream_implementation):
7494 * lstream.h (struct lstream):
7496 * process-nt.c (nt_send_process):
7497 * process-unix.c (unix_send_process):
7499 Correct Lstream lossage due to mixing of signed and unsigned
7500 quantities. All Lstream uses of size_t and ssize_t are now a
7501 single signed data type Lstream_data_count. This fixes problems
7502 under Windows with sending large quantities of data to a process,
7503 and may well fix other subtle bugs.
7505 2001-02-23 Martin Buchholz <martin@xemacs.org>
7507 * XEmacs 21.2.45 "Thelxepeia" is released.
7509 2001-02-21 Martin Buchholz <martin@xemacs.org>
7511 * lisp-union.h (XSETINT):
7514 Reverse previous change of 2001-02-06.
7516 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
7518 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7520 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7521 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7522 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7523 * regex.c (POS_AS_IN_BUFFER): removed
7524 * regex.c (re_search_2):
7525 * regex.c (re_match_2):
7526 Don't use an offset of 1 when calculating buffer positions, since
7527 `BI_BUF_BEGV' does it already.
7529 2001-02-18 Wim Dumon <wim@easics.be>
7531 * insdel.c (prepare_to_modify_buffer): Also check for
7532 supersession when clash-detection is enabled.
7534 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
7536 * regex.c (re_match_2_internal):
7537 Convert temp characters from 'const unsigned char' to 're_char'.
7538 Fix crashing bug with extended characters under mule.
7539 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7540 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7541 font-lock, pdump, and new syntax-table code.
7542 * syntax.c (find_start_of_comment):
7543 (find_end_of_comment):
7545 Fix crashing bugs involving moving beyond end of buffer.
7546 * syntax.c (find_start_of_comment):
7547 Fixed logic to allow proper detection of cases where the same
7548 character is used to end both a two-char comment start and a
7549 two-char comment end sequence. Fixes `(forward-comment -1)'.
7550 * syntax.c (find_start_of_comment):
7551 Return position just past last comment-end character for all cases
7552 (previously was only done for two-char comment-end sequences).
7553 * syntax.c (forward-comment):
7554 Take value returned from `find_end_of_comment', rather than
7556 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7557 Properly deal with BUFFERP (syntax_cache.object)
7559 2001-02-17 Martin Buchholz <martin@xemacs.org>
7561 * alloc.c (Fgarbage_collect):
7562 * alloc.c (make_bit_vector_from_byte_vector):
7563 -Wsign-compare-correctness.
7565 2001-02-16 Martin Buchholz <martin@xemacs.org>
7567 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7568 (XSETCHAR): Likewise.
7569 (XSETOBJ): Likewise.
7571 2001-02-15 Martin Buchholz <martin@xemacs.org>
7573 * mule-canna.c (canna-func-delete_previous):
7574 Rename to canna-func-delete-previous.
7576 2001-02-14 Martin Buchholz <martin@xemacs.org>
7578 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
7580 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
7582 * font-lock.c (find_context): Fix C++ compile errors introduced by
7585 2001-02-13 Martin Buchholz <martin@xemacs.org>
7587 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7588 pragma, but earlier ones barf on the same pragma.
7590 2001-02-06 Mike Sperber <mike@xemacs.org>
7592 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7593 `configure-mule-lisp-directory'.
7595 2001-02-12 Martin Buchholz <martin@xemacs.org>
7597 Make sure dump-id.c is compiled in the same way as other .c's.
7598 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7599 * dump-id.h: Remove.
7600 * emacs.c: Move dump-id.h into dumper.h.
7601 * dumper.h: Move dump-id.h into dumper.h.
7603 Use standard .c.o rule for building dump-id.o.
7604 Remove preprocessor flags from link command.
7605 Add dump-id.o to ${otherobjs} if PDUMP.
7607 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
7609 Port FSF 20.7 syntax table improvements.
7613 Fixups for new syntax table stuff.
7614 * dired.c: Include syntax.c.
7615 (Fdirectory_files): Initialize regex_match_object and
7617 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7618 and Fget_char_property.
7620 Use ported FSF 20.7 syntax table improvements.
7625 2001-02-09 Martin Buchholz <martin@xemacs.org>
7627 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7628 Unixware's enum boolean from sys/types.h.
7630 2001-02-10 Martin Buchholz <martin@xemacs.org>
7632 Fix support for building with latest Purify.
7633 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7634 (PURIFY_FLAGS): Likewise.
7636 2001-02-09 Martin Buchholz <martin@xemacs.org>
7638 * fileio.c (lisp_string_set_file_times): New.
7639 * fileio.c (Fcopy_file): Use it.
7641 (copy-file filename non-ascii-filename t t)
7642 ==> No such file or directory, non-ascii-filename
7644 2001-02-10 Martin Buchholz <martin@xemacs.org>
7646 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7647 USHRT_MAX seems clearer than ~0 anyways.
7649 2001-02-09 Martin Buchholz <martin@xemacs.org>
7651 dumper improvements. Inspired by Olivier.
7652 * dumper.c (pdump_max_align): New.
7653 * dumper.c (pdump_add_entry): Use pdump_max_align.
7654 * dumper.c (pdump_get_entry_list): Likewise.
7655 * dumper.c (pdump_scan_by_alignment): Likewise.
7656 Don't iterate through unnecessary alignments.
7657 * dumper.c (pdump_file_get): No need to align result of malloc().
7658 * dumper.c (pdump_mallocadr): Remove.
7659 The result of malloc() is guaranteed to be maximally aligned.
7660 * dumper.c: s/elmt/elt/g;
7661 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7662 * dumper.c (pdump_alert_undump_object): Likewise.
7663 * dumper.c (pdump_align_table):
7664 Don't support alignments > 64.
7665 Store ALIGNOF's, not shift counts, in table.
7667 2001-02-09 Martin Buchholz <martin@xemacs.org>
7669 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7670 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7671 * systime.h: Use HAVE_UTIME.
7672 * sysdep.c (struct utimbuf): Remove.
7673 * sysdep.c (set_file_times): Prefer utime() to utimes().
7674 * config.h.in (HAVE_UTIME): New.
7675 * config.h.in (HAVE_UTIME_H): Remove.
7676 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7678 2001-02-09 Martin Buchholz <martin@xemacs.org>
7680 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7682 2001-02-08 Martin Buchholz <martin@xemacs.org>
7684 * s/irix6-0.h: Use the standard system memmove, not bcopy.
7686 2001-02-08 Martin Buchholz <martin@xemacs.org>
7688 * XEmacs 21.2.44 "Thalia" is released.
7690 2001-02-06 Martin Buchholz <martin@xemacs.org>
7692 Fixes crashes in kill-emacs on some systems.
7693 * process-unix.c (unix_kill_child_process):
7694 It's OK for kill() to fail with ESRCH.
7696 2001-02-07 Martin Buchholz <martin@xemacs.org>
7698 Contortions to make .gdbinit tricks work on most systems.
7699 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7700 * alloc.c (dbg_valmask): Make non-const.
7701 * alloc.c (dbg_typemask): Make non-const.
7702 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7703 * alloc.c (dbg_valbits): Make non-const.
7704 * alloc.c (dbg_gctypebits): Make non-const.
7705 * .gdbinit (decode_object): Make it work with AIX cc.
7707 2001-02-06 Martin Buchholz <martin@xemacs.org>
7709 * elhash.c (make_general_lisp_hash_table):
7710 Use simpler and more efficient calloc to clear entries.
7712 2001-02-07 Martin Buchholz <martin@xemacs.org>
7714 * window.c (window_scroll): Work around an AIX C compiler bug.
7715 Fixes 'scroll-up' does nothing problem with xlC.
7717 2001-02-05 Martin Buchholz <martin@xemacs.org>
7719 * .gdbinit: Remove obsolete comment.
7721 2001-01-31 Mike Alexander <mta@arbortext.com>
7723 * select.c (Fown_selection_internal): Set owned_p for device
7726 2001-02-01 Martin Buchholz <martin@xemacs.org>
7729 "not" cannot be used as a macro name as it is an operator in C++
7730 * config.h.in: Stop #defining `not'.
7731 * chartab.c (check_category_char): not ==> not_p
7732 * chartab.h: Likewise.
7733 * regex.c (re_match_2_internal): Likewise.
7735 2001-02-02 Martin Buchholz <martin@xemacs.org>
7737 * lisp-disunion.h: Fix up comments.
7739 2001-01-31 Martin Buchholz <martin@xemacs.org>
7741 * keymap.c (define_key_check_and_coerce_keysym):
7743 Support mouse-6 and mouse-7 bindings in the obvious way.
7745 2001-02-01 Martin Buchholz <martin@xemacs.org>
7747 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7749 2001-01-30 Martin Buchholz <martin@xemacs.org>
7751 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7752 Previous patch missed DEFVAR_INT_MAGIC.
7753 Make sure future DEFVAR_foo use correct types.
7754 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7755 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7756 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7757 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7758 * (DEFVAR_INT): Likewise.
7759 * redisplay.c (vertical_clip): Should be of type Fixnum.
7760 * redisplay.c (horizontal_clip): Likewise.
7761 * lisp.h (dump_add_opaque_int): New.
7762 (dump_add_opaque_fixnum): New.
7764 2001-01-29 Andy Piper <andy@xemacs.org>
7766 * glyphs-widget.c (check_valid_int_or_function): allow symbols
7767 since they can be eval'ed
7769 2001-01-29 Martin Buchholz <martin@xemacs.org>
7771 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7772 Oops, XEmacs redefines `class'. Use `typename' instead.
7774 2001-01-28 Martin Buchholz <martin@xemacs.org>
7776 * dumper.c: Fix C++ compile errors.
7778 2001-01-29 Martin Buchholz <martin@xemacs.org>
7780 * tparam.c: Use correct prototypes.
7782 2001-01-28 Martin Buchholz <martin@xemacs.org>
7784 * sysproc.h: #include util.h for NetBSD's openpty.
7786 2001-01-27 Martin Buchholz <martin@xemacs.org>
7788 More 64-bit correctness.
7789 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7790 Use a typedef `fixnum' for the type used for DEFVAR_INT.
7792 This finally finishes the 64-bit SGI port.
7793 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7794 * symbols.c: Fix up comments and type casts.
7795 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7796 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7797 * symeval.h (Fixnum): New type.
7798 * symeval.h (symbol_value_type): Fix up comment.
7814 * mule-canna.c: A million DEFVAR_INTs here...
7815 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7828 s/int/Fixnum/g in DEFVAR_INT declarations.
7830 2001-01-26 Martin Buchholz <martin@xemacs.org>
7832 Port pdump to SGI alignment-sensitive environment.
7833 Lisp Object sizeof methods now return aligned sizes. Rely on that.
7834 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7836 Define and use aligned reading and writing macros.
7837 Use buffered stdio instead of posix i/o for faster dumping.
7838 Eliminate kludgy 256 byte space for header.
7839 Read and write from dump file using structs for alignment safety.
7840 * dumper.c (pdump_align_stream): New.
7841 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7842 * dumper.c (PDUMP_READ_ALIGNED): New.
7843 * dumper.c (PDUMP_WRITE_ALIGNED): New.
7844 * dumper.c (pdump_static_Lisp_Object): New struct.
7845 * dumper.c (pdump_static_pointer): New struct.
7846 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7847 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7848 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7849 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7851 * dumper.c (pdump_backtrace):
7852 * dumper.c (pdump_get_indirect_count):
7853 * dumper.c (pdump_register_object):
7854 * dumper.c (pdump_register_struct):
7855 * dumper.c (pdump_reloc_one):
7856 * dumper.c (pdump_scan_by_alignment):
7857 * dumper.c (pdump_dump_from_root_struct_ptrs):
7858 * dumper.c (pdump_dump_opaques):
7859 * dumper.c (pdump_dump_rtables):
7860 * dumper.c (pdump_dump_from_root_objects):
7862 * dumper.c (pdump_load_finish):
7863 Use aligned reading and writing.
7865 * dumper.c (pdump_free): Make static.
7866 * dumper.c (pdump_hFile): Likewise.
7867 * dumper.c (pdump_hMap): Likewise.
7869 2001-01-26 Martin Buchholz <martin@xemacs.org>
7871 * XEmacs 21.2.43 "Terspichore" is released.
7873 2001-01-25 Martin Buchholz <martin@xemacs.org>
7875 Type fiddling for window_config.saved_windows_count
7876 * window.c (struct window_config):
7877 Make saved_windows_count member unsigned.
7878 * window.c (sizeof_window_config_for_n_windows):
7879 Make parameter unsigned.
7880 * window.c (mark_window_config):
7881 * window.c (window_config_equal):
7882 * window.c (free_window_configuration):
7883 * window.c (Fset_window_configuration):
7884 * window.c (count_windows):
7885 * window.c (Fcurrent_window_configuration):
7886 * window.c (reinit_vars_of_window):
7887 Update all callers and users.
7889 2001-01-25 Martin Buchholz <martin@xemacs.org>
7891 Alignment correctness for flexible arrays.
7892 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7893 Make alignment-correct. Add interesting comments.
7894 * alloc.c (size_vector):
7895 * alloc.c (make_vector_internal):
7896 * alloc.c (make_bit_vector_internal):
7897 * alloc.c (sweep_bit_vectors_1):
7898 * fns.c (size_bit_vector):
7899 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7900 * window.c (sizeof_window_config_for_n_windows):
7901 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7903 2001-01-24 Martin Buchholz <martin@xemacs.org>
7905 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7907 2001-01-23 Andy Piper <andy@xemacs.org>
7909 * select.c (Fown_selection_internal): pass owned_p
7911 * select-msw.c (mswindows_own_selection): New Signature.
7913 * console.h (struct console_methods): add owned_p to
7916 * select-x.c (x_own_selection): pass owned_p
7917 (hack_motif_clipboard_selection): use owned_p
7918 (vars_of_select_x): new variable -
7919 x_selection_strict_motif_ownership.
7921 2001-01-23 Martin Buchholz <martin@xemacs.org>
7923 * specifier.h (specifier_data_offset): Remove pointless parens.
7924 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7926 2001-01-24 Martin Buchholz <martin@xemacs.org>
7928 Make Lisp_Object sizeof methods be alignment-correct.
7929 pdump must restore objects to the same alignment as the C compiler
7930 assumes. It really matters on SGIs.
7931 * lstream.c (aligned_sizeof_lstream): New.
7932 (sizeof_lstream): Use aligned_sizeof_lstream.
7933 (Lstream_new): Likewise.
7934 * opaque.c (aligned_sizeof_opaque): New.
7935 (sizeof_opaque): Use aligned_sizeof_opaque.
7936 (make_opaque): Likewise.
7937 * specifier.c (aligned_sizeof_specifier): New.
7938 (sizeof_specifier): Use aligned_sizeof_specifier.
7939 (make_specifier_internal): Likewise.
7941 2001-01-23 Martin Buchholz <martin@xemacs.org>
7943 * lstream.h (struct lstream): Use max_align_t for trailing data.
7944 * specifier.h (struct Lisp_Specifier): Likewise.
7946 2001-01-22 Martin Buchholz <martin@xemacs.org>
7948 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7949 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7950 (CCL_SUSPEND): Likewise.
7951 (CCL_INVALID_CMD): Likewise.
7952 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7953 (ccl_driver): Likewise.
7954 (CCL_WRITE_CHAR): Macro hygiene.
7955 (CCL_WRITE_STRING): Macro hygiene.
7957 2001-01-22 Martin Buchholz <martin@xemacs.org>
7959 Port "portable" dumper to SunOS 4 and HP-UX.
7960 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7961 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7962 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7964 2001-01-22 Martin Buchholz <martin@xemacs.org>
7966 * lisp.h (ALIGNOF): A better definition for C++.
7968 2001-01-20 Martin Buchholz <martin@xemacs.org>
7971 Fix printf warnings: int format, long int arg.
7972 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7973 (PUSH_FAILURE_POINT): Use correct printf formats.
7974 (POP_FAILURE_POINT): Use correct printf formats.
7975 Use do {...} while (0)
7977 2001-01-20 Martin Buchholz <martin@xemacs.org>
7979 * XEmacs 21.2.42 "Poseidon" is released.
7981 2001-01-20 Martin Buchholz <martin@xemacs.org>
7983 * console-x.h: typo fix du jour. Remove #if 0'ed code.
7985 2001-01-19 Martin Buchholz <martin@xemacs.org>
7987 De-kludgify FIXED_TYPE free list frobbing.
7988 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7989 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7990 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7991 * alloc.c (Lisp_Free): New pseudo lisp object definition.
7992 * alloc.c (LRECORD_FREE_P): New.
7993 * alloc.c (MARK_LRECORD_AS_FREE): New.
7994 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7995 * alloc.c (STRUCT_FREE_P): Deleted.
7996 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7997 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7998 * alloc.c (STRING_CHARS_FREE_P): New.
7999 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8000 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8001 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8002 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8003 * alloc.c (resize_string): Use new definitions.
8004 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8005 * alloc.c (verify_string_chars_integrity): Use new definitions.
8006 * alloc.c (compact_string_chars): Use new definitions.
8007 * alloc.c: Update monster comments.
8008 * lrecord.h (lrecord_type): Add some new lrecord types for
8011 2001-01-18 Martin Buchholz <martin@xemacs.org>
8013 Improve alignment hackery.
8014 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8015 (max_align_t): Moved from opaque.h - general purpose.
8016 (ALIGN_PTR): Use size_t, not long.
8017 * opaque.h (max_align_t): Move to lisp.h.
8019 2001-01-18 Norbert Koch <nk@LF.net>
8021 * gui.h: Fix and add prototypes to fix build problems.
8023 2001-01-18 Martin Buchholz <martin@xemacs.org>
8025 temacs is going away, so `dump-temacs' is now a bad name.
8026 * .dbxrc (dump-temacs): Rename to `dmp'.
8027 * .gdbinit (dump-temacs): Rename to `dmp'.
8029 2001-01-17 Andy Piper <andy@xemacs.org>
8031 * glyphs.c (print_image_instance): comment to make martin happy.
8033 * glyphs-x.c (x_redisplay_widget): update faces after a frame
8036 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8038 (mswindows_tab_control_redisplay): warning suppression.
8040 * glyphs-widget.c (widget_update): re-write to cope with updated
8042 (widget_instantiate): use new gui_item functions.
8043 (tab_control_update): deleted.
8044 (progress_gauge_update): deleted.
8045 (image_instantiator_progress_guage): take out update reference.
8046 (image_instantiator_tree_view): ditto.
8047 (image_instantiator_tab_control): ditto.
8049 * gui.c (widget_gui_parse_item_keywords): new function. Do things
8051 (gui_item_add_keyval_pair): re-write to cope with descriptors and
8052 return whether anything was changed.
8053 (update_gui_item_keywords): as it sounds.
8055 * gui.h: declare widget_gui_parse_item_keywords.
8057 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8058 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8060 2001-01-17 Martin Buchholz <martin@xemacs.org>
8062 * XEmacs 21.2.41 "Polyhymnia" is released.
8064 2001-01-16 Didier Verna <didier@xemacs.org>
8066 * glyphs.c (image_instantiate): don't use fallbacks when
8067 instantiating a face's background pixmap by inheritance.
8069 2001-01-14 Mike Sperber <mike@xemacs.org>
8071 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8072 Conditionalize accordingly.
8074 2001-01-16 Martin Buchholz <martin@xemacs.org>
8076 * dumper.c (pdump_file_get): Fix a compiler warning.
8078 2001-01-15 Martin Buchholz <martin@xemacs.org>
8080 Make Purify happy when pdumping.
8081 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8082 iniitalizing all bits of new lisp object memory.
8083 * symbols.c (Fmake_local_variable): Likewise.
8084 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8085 * symbols.c (Fdefvaralias): Likewise.
8086 * mule-charset.c (vars_of_mule_charset): Likewise.
8088 2001-01-15 Martin Buchholz <martin@xemacs.org>
8089 Add the `-nd' flag when running pre-dump operations under the debugger.
8090 * .dbxrc (run-temacs): Add `-nd'.
8091 * .dbxrc (update-elc): Likewise.
8092 * .dbxrc (dump-temacs): Likewise.
8093 * .gdbinit (run-temacs): Likewise.
8094 * .gdbinit (check-temacs): Likewise.
8095 * .gdbinit (update-elc): Likewise.
8096 * .gdbinit (dump-temacs): Likewise.
8098 2001-01-14 Martin Buchholz <martin@xemacs.org>
8100 Allow building 64-bit executables on AIX with GNU malloc, e.g.
8101 export OBJECT_MODE=64
8102 configure --pdump --use-union-type=no
8103 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8104 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8106 * miscplay.c (sndcnv8U_2mono):
8107 Avoid two uses of `++' in the same expression.
8108 Suppresses a GCC warning.
8110 2001-01-13 Martin Buchholz <martin@xemacs.org>
8112 Make sure future compilers don't miscompile alloc.c.
8114 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8115 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8117 2001-01-12 Martin Buchholz <martin@xemacs.org>
8119 * dumper.c: A little post-pdump-rename comment fixup.
8121 2001-01-09 Jerry James <james@eecs.ku.edu>
8123 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8125 2001-01-13 Martin Buchholz <martin@xemacs.org>
8127 * *.[ch]: Globally rename symbols using the following `pdump-rename'
8131 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8134 replace_symbol pdump_wire_lists pdump_weak_object_chains
8135 replace_symbol pdump_wire_list dump_add_weak_object_chain
8137 replace_symbol pdump_wires pdump_root_objects
8138 replace_symbol pdump_wire dump_add_root_object
8140 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8141 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8143 replace_symbol dumpstructinfos pdump_root_struct_ptrs
8144 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8145 replace_symbol dumpstructinfo pdump_root_struct_ptr
8146 replace_symbol dumpstruct dump_add_root_struct_ptr
8148 replace_symbol dumpopaque dump_add_opaque
8149 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8150 replace_symbol dumpopaqueinfos pdump_opaques
8151 replace_symbol dumpopaqueinfo pdump_opaque
8153 replace_symbol nb_structdump nb_root_struct_ptrs
8154 replace_symbol nb_opaquedump nb_opaques
8156 replace_symbol align_table pdump_align_table
8157 replace_symbol dump_header pdump_header
8159 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8160 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8163 2001-01-12 Martin Buchholz <martin@xemacs.org>
8165 * s/aix4.h: Keep the C for AIX compiler from overaggressively
8166 optimizing bytecount_to_charcount().
8168 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
8171 (HAVE_DLFCN_H): Removed.
8172 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8174 2001-01-06 Martin Buchholz <martin@xemacs.org>
8176 Portable dumper maintainability improvements.
8177 * alloc.c (staticpro):
8178 * alloc.c (staticpro_nodump):
8179 * alloc.c (garbage_collect_1):
8180 * alloc.c (reinit_alloc_once_early):
8181 * alloc.c (init_alloc_once_early):
8182 * alloc.c: Move dumper functions to alloc.c.
8183 * dumper.c (pdump_backtrace):
8184 * dumper.c (pdump_dump_structs):
8185 * dumper.c (pdump_dump_opaques):
8186 * dumper.c (pdump_dump_rtables):
8187 * dumper.c (pdump_dump_wired):
8189 * dumper.c (pdump_load_check):
8190 * dumper.c (pdump_load_finish):
8191 * dumper.c (pdump_file_unmap):
8192 * dumper.c (pdump_file_get):
8193 * dumper.c (pdump_resource_free):
8194 * dumper.c (pdump_resource_get):
8195 * dumper.c (pdump_file_free):
8196 * dumper.c (pdump_file_try):
8197 * dumper.c (pdump_load):
8198 Remove fixed size limits on staticpro(), staticpro_nodump(),
8199 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8200 Remove custom code for dumping lrecord_implementations_table - use
8202 Remove (most of the) custom code for dumping staticpros - dump it
8203 like any other dynarr.
8205 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
8206 * dumper.c: Moved functions from alloc.c.
8207 * alloc.c (dumpstruct): Moved to dumper.c.
8208 * alloc.c (dumpopaque): Likewise.
8209 * alloc.c (pdump_wire): Likewise.
8210 * alloc.c (pdump_wire_list): Likewise.
8212 * lisp.h (Dynarr_sizeof): New.
8213 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
8214 * lisp.h (Dynarr_end): New. Very slightly C++oid.
8215 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
8217 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8218 * lisp.h (dumpopaque): ditto.
8219 * lisp.h (pdump_wire): ditto.
8220 * lisp.h (pdump_wire_list): ditto.
8222 2001-01-09 Martin Buchholz <martin@xemacs.org>
8224 * make-src-depend (PrintPatternDeps):
8225 Use `sort' to make output independent of perl version.
8227 2001-01-08 Martin Buchholz <martin@xemacs.org>
8230 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8231 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8233 2001-01-03 Didier Verna <didier@xemacs.org>
8235 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8236 that `focus_frame' is alive before thinking of calling
8237 `redisplay_redraw_cursor' on it.
8239 2001-01-08 Martin Buchholz <martin@xemacs.org>
8241 * XEmacs 21.2.40 is released.
8243 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
8245 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8247 2001-01-06 Martin Buchholz <martin@xemacs.org>
8249 * alloc.c (dbg_valmask): Make const.
8250 * alloc.c (dbg_typemask): Make const.
8251 * alloc.c (dbg_USE_UNION_TYPE): Make const.
8252 * alloc.c (dbg_valbits): Make const.
8253 * alloc.c (dbg_gctypebits): Make const.
8255 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
8257 * redisplay-x.c (x_bevel_area):
8258 redisplay.h (struct rune):
8259 Typo fixes in comments.
8261 2001-01-05 Andy Piper <andy@xemacs.org>
8263 * glyphs-x.c (x_redisplay_widget): use size changed for offset
8266 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8268 2001-01-05 Martin Buchholz <martin@xemacs.org>
8270 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8272 * mule-ccl.c (stack_idx_of_map_multiple):
8273 Non const global data must not be initialized!
8274 Found by MIYASHITA Hisashi.
8276 2001-01-02 Andy Piper <andy@xemacs.org>
8278 * frame.c (change_frame_size): make sure frame size is always
8281 * glyphs.c (image_instance_layout): minor code reuse.
8283 * window.c (Fcurrent_window_configuration): revert previous
8286 2001-01-02 Martin Buchholz <martin@xemacs.org>
8289 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8291 2000-12-31 Andy Piper <andy@xemacs.org>
8293 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8294 when widget gets unmapped.
8296 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8297 function. Make sure widgets losing focus don't just drop it.
8298 (handle_focus_event_1): record the widget with focus.
8300 2000-12-31 Andy Piper <andy@xemacs.org>
8302 * window.c (allocate_window): use
8303 make_image_instance_cache_hash_table.
8304 (make_dummy_parent): ditto.
8305 (Fset_window_configuration): ditto.
8307 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
8309 * glyphs.c (process_image_string_instantiator): use
8311 (get_image_instantiator_governing_domain): ditto.
8312 (normalize_image_instantiator): ditto.
8313 (instantiate_image_instantiator): ditto.
8314 (make_image_instance_1): ditto.
8315 (image_instantiate): ditto. Key on glyph *and* instantiator type.
8316 (instantiator_eq_equal): new function for use with instance hash
8318 (instantiator_eq_hash): ditto.
8319 (make_image_instance_cache_hash_table): create a suitable hash
8320 table for storing image instances.
8322 * elhash.h (hash_table_weakness): new internal weakness type
8323 HASH_TABLE_KEY_CAR_VALUE_WEAK.
8324 declare new functions.
8326 * elhash.c (finish_marking_weak_hash_tables): introduce yet
8327 another weakness type for glyphs.
8328 (make_standard_lisp_hash_table): new function split out from
8329 make_general_lisp_hash_table.
8330 (make_lisp_hash_table): call make_standard_lisp_hash_table.
8331 (hash_table_instantiate): ditto.
8332 (Fmake_hash_table): ditto.
8334 2000-12-31 Martin Buchholz <martin@xemacs.org>
8336 * XEmacs 21.2.39 is released.
8338 2000-12-29 Andy Piper <andy@xemacs.org>
8340 * menubar.c (menubar_visible_p_changed): signal the frame changed.
8342 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8343 the frame has changed so that we pick up geometry changes such as
8346 2000-12-28 Andy Piper <andy@xemacs.org>
8348 * lastfile.c (my_ebss): make a char array so we can pad the
8349 bss. Fixes cygwin unexec.
8351 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8353 2000-12-26 Andy Piper <andy@xemacs.org>
8355 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8356 comments and try and be more precise about a non-/SIGIO world.
8357 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8360 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8361 we don't normalize to zero width or height.
8363 2000-12-24 Andy Piper <andy@xemacs.org>
8365 * Makefile.in.in (ldflags): add -mwindows when appropriate.
8367 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
8369 * s/sco5.h: SCO 5 has pty support.
8371 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
8373 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8374 input-method-xlib.c contains whole contents of input-method-xfs.c,
8375 so we can use input-method-xlib.c's code for USE_XFONTSET
8377 * input-method-xfs.c: removed.
8379 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
8381 * file-coding.h (enum coding_category_type): reorder enumerators to
8382 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
8383 (now one greater than largest real coding_category_type enumerator).
8384 * file-coding.c (coding_category_symbol, coding_category_by_priority,
8385 coding_category_system, fcd_descriptihon_1, decode_coding_category,
8386 Fcoding_category_list, Fset_coding_priority_list,
8387 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8388 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8390 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
8392 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8393 * redisplay-output.c (redisplay_output_window): Clear top of window
8394 when face is changed.
8395 * redisplay-x.c (x_redraw_exposed_window): Call
8396 redisplay_clear_top_of_window.
8397 * redisplay.h: Publish redisplay_clear_top_of_window.
8399 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
8401 * buffer.c (Fkill_buffer): Map over all devices.
8402 * window.c (window_loop): Remove UNSHOW_BUFFER code.
8403 (list_windows): New function.
8404 (list_all_windows): Ditto.
8405 (Freplace_buffer_in_windows): Use them.
8407 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8409 * database.c (berkdb_subtype): Recognize new subtype `queue'.
8410 (Fopen_database): Use `db_create' instead of `db_open'.
8411 (syms_of_database): Initialize Qqueue.
8413 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
8415 * buffer.c (common_init_complex_vars_of_buffer): Initialize
8416 buffer_local_face_property.
8417 * buffer.h (struct buffer): New member buffer_local_face_property.
8418 * window.c (Fset_window_buffer): Mark window's face as changed
8419 when buffer has buffer local face.
8420 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8421 * objects.c (color_after_change): Set buffer_local_face_property
8422 when locale of face specifier is buffer.
8423 * objects.c (font_after_change): Ditto.
8424 * objects.c (face_boolean_after_change): Ditto.
8425 * glyphs.c (image_after_change): Ditto.
8427 2000-12-09 Dan Holmsand <dan@eyebee.com>
8429 * nt.c (mswindows_fstat): Report file permissions, volume serial
8430 number, etc. Code adapted from FSF Emacs 20.7.
8432 2000-12-09 Dan Holmsand <dan@eyebee.com>
8434 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8435 of stat when we don't have symbolic links, to make sure
8436 mswindows_stat is called on mswindows.
8438 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
8440 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8442 2000-12-12 Martin Buchholz <martin@xemacs.org>
8444 * doprnt.c (emacs_doprnt_1): More printing fixes.
8445 Make printing of numbers compatible with libc and FSF Emacs.
8446 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8447 Use the system printf to do most of the hard work of formatting,
8448 instead of doprnt_1().
8449 Calculate memory to allocate for format string.
8450 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8451 (doprnt_1): Cleaner code and documentation.
8453 2000-12-01 Jerry James <james@eecs.ukans.edu>
8455 * Makefile.in.in: Use the loop variable to install headers.
8457 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
8459 * window.c (Fsplit_window): Don't invalidate face cache.
8461 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
8463 * minibuf.c (Fall_completions): Undo the previous change
8464 which removed checking elements start with space.
8466 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
8468 * mule-canna.c: Didier suppression.
8470 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
8472 * mule-canna.c: rename static unsigned char buf[] to key_buffer
8473 (warning suppression). Add English comment translations.
8475 2000-12-05 Martin Buchholz <martin@xemacs.org>
8477 * unexelfsgi.c (unexec): Better test for mmap failure.
8479 2000-12-05 Martin Buchholz <martin@xemacs.org>
8481 * XEmacs 21.2.38 is released.
8483 2000-12-05 Martin Buchholz <martin@xemacs.org>
8485 * redisplay.c (bar-cursor): Make a user variable.
8487 * symsinit.h: Add init_postgresql_from_environment.
8489 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
8491 * regex.c: Convert to clean C.
8493 2000-12-05 Dan Holmsand <dan@eyebee.com>
8496 Don't #include sysfile.h. Revert to duplicating PATH_MAX
8498 (sys_readlink): renamed to system_readlink to avoid conflict with
8499 the other sys_readlink.
8501 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
8503 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8505 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
8507 * postgresql.c (init_postgresql_from_environment): new function.
8508 (vars_of_postgresql): Move code initializing Lisp variables out and
8509 into init_postgresql_from_environment.
8510 emacs.c (main_1): Call init_postgresql_from_environment if and only
8511 if running a dumped XEmacs.
8513 2000-08-31 Dan Holmsand <dan@eyebee.com>
8515 * buffer.c: Make find-file-compare-truenames default to true on
8518 * realpath.c (win32_abs_start):
8520 (win32_readlink): New functions.
8521 (xrealpath): Return really real filenames on windows.
8523 * fileio.c (Ffile_truename): Make file-truename work on windows.
8525 2000-11-29 Didier Verna <didier@xemacs.org>
8527 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8528 * faces.c (update_face_cachel_data): use it.
8529 * faces.c (add_face_cachel): use it. Complete background pixmap
8530 frobbing in face cache if `update_face_cachel_data' has not done so.
8532 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
8534 * search.c (string_match_1): Don't set last_thing_searched
8537 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
8539 * buffer.c: Include casetab.h
8540 (common_init_complex_vars_of_buffer): Use new case-table object.
8541 * buffer.h: Include casetab.h
8542 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8543 (DOWNCASE_TABLE_OF): Ditto.
8544 * bufslots.h: Remove char-tables and add case-table.
8545 * casetab.c: Include casetab.h
8546 (CASE_TABLE_P): Removed.
8547 (mark_case_table): New function.
8548 (allocate_case_table): New function.
8549 (Fcase_table_p): Use new case-table.
8550 (case_table_char): New function.
8551 (Fget_case_table): Ditto.
8552 (Fput_case_table): Ditto.
8553 (Fput_case_table_pair): Ditto.
8554 (Fcopy_case_table): Ditto.
8555 (Fcurrent_case_table): Return case-table.
8556 (Fstandard_case_table): Return case-table.
8557 (Fset_case_table): Fix doc-string.
8558 (set_case_table): Use case-table
8559 (syms_of_casetab): DEFSUBR new functions.
8560 (complex_vars_of_casetab): Set up standard case-table.
8561 * casetab.h: New file.
8562 * editfns.c: Include casetab.h
8563 (Fcompare_buffer_substrings): Use case-table.
8564 * inline.c: Include casetab.h
8565 * lisp.h: Remove bogus extern.
8566 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8567 * search.c: Include casetab.h
8568 (TRANSLATE_ASCII): Removed.
8569 (TRANSLATE): Unconditionally translate character.
8570 (looking_at_1): Use case-table.
8571 (string_match_1): Ditto.
8572 (fast_string_match): Ditto.
8573 (search_command): Ditto.
8574 (search_buffer): Separate boyer_moore. Check whether
8575 boyer_moore is possible.
8576 (simple_search): New function.
8577 (boyer_moore): Separated from search_buffer. Translate char.
8579 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8581 * regex.c (RE_TR_ASCII): Removed.
8582 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8583 (PATFETCH): Call PATFETCH_RAW.
8584 (PATFETCH_RAW): Fetch Emchar.
8585 (PATUNFETCH): Decrement charptr.
8586 (GET_BUFFER_SPACE): Rename b to buf_end.
8588 (BUF_PUSH_2): Ditto.
8589 (BUF_PUSH_3): Ditto.
8590 (EXTEND_BUFFER): Ditto.
8591 (SET_LIST_BIT): Ditto.
8592 (regex_compile): Ditto. Translate non ASCII char.
8593 (compile_range): Ditto.
8594 (re_search_2): Ditto.
8595 (re_match_2_internal): Compare Emchar.
8596 (bcmp_translate): Ditto.
8598 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
8600 * lisp.h (basic char/int typedefs): comment improvement.
8602 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
8604 * emacs.c (main_1): unconditional pdump unstomping; don't save and
8605 unstomp inhibit_site_lisp. Improve comments.
8607 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
8609 * mule-charset.c (Fcharset_property): improve type checking, comments.
8611 2000-11-28 Andy Piper <andy@xemacs.org>
8613 * redisplay-output.c (redisplay_output_subwindow): make sure we do
8614 clipped display for windows in the gutter also.
8615 (redisplay_display_boxes_in_window_p): change semantics of return
8616 codes to be more intuitive.
8618 * gutter.h: declare display_boxes_in_gutter_p.
8620 * gutter.c (display_boxes_in_gutter_p): new function for
8623 2000-11-22 Andy Piper <andy@xemacs.org>
8625 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8628 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
8630 * callproc.c (Fold_call_process_internal):
8631 * gpm.c (Freceive_gpm_event):
8632 (tty_get_foreign_selection): Might be just warning supression.
8633 * fileio.c (Fwrite_region_internal):
8634 (Fset_visited_file_modtime):
8635 * keymap.c (event_matches_key_specifier_p):
8636 Initialize GCPROed variable.
8638 * menubar-x.c (command_builder_find_menu_accelerator):
8639 Initialize before use.
8641 2000-11-23 Andy Piper <andy@xemacs.org>
8643 * unexcw.c (unexec): make the resulting executable executable.
8645 2000-11-21 Martin Buchholz <martin@xemacs.org>
8647 * doc.c (get_doc_string):
8648 Use size_t, not int, for result of XSTRING_LENGTH.
8650 * cmds.c (Fdelete_char):
8651 * cmds.c (Fpoint_at_eol):
8652 * cmds.c (Fself_insert_command):
8653 Use EMACS_INT, not int, for result of XINT.
8654 Someday, someone will want to insert more than 2**31 identical characters.
8656 * cmds.c (Fdelete_char):
8657 * cmds.c (Fdelete_backward_char):
8658 * syntax.c (Fforward_word):
8659 * syntax.c (Fforward_comment):
8660 Make COUNT argument optional, for consistency with forward-char et al.
8662 2000-11-22 Martin Buchholz <martin@xemacs.org>
8665 * print.c (long_to_string):
8666 Return a useful value: the pointer at end of data written.
8669 Use `static const char * const' for constant strings.
8670 (union printf_arg): Delete `i', `ui' members.
8673 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8674 Do all printf-ing via the `l' specifier.
8675 Use EMACS_INT instead of int.
8678 2000-11-20 Didier Verna <didier@xemacs.org>
8680 * faces.c (update_face_cachel_data): don't frob the background
8681 pixmap when the window is being created. The face is needed but
8684 2000-11-20 Andy Piper <andy@xemacs.org>
8686 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8687 messing with a debug environment.
8689 2000-11-20 Martin Buchholz <martin@xemacs.org>
8691 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8693 2000-11-20 Martin Buchholz <martin@xemacs.org>
8695 * casetab.c (Fcase_table_p): Fix compile error and crash.
8697 2000-11-18 Philip Aston <philipa@mail.com>
8699 * s/cygwin32.h: Cygwin has SVR4-like pty support.
8701 2000-11-18 Martin Buchholz <martin@xemacs.org>
8703 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
8704 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8706 2000-11-17 Martin Buchholz <martin@xemacs.org>
8708 * config.h.in: Define HAVE_ELF_H if elf.h exists.
8709 * unexelf.c: Use HAVE_ELF_H.
8710 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8711 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8712 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8713 Greg Harrington <greg_harrington@hotmail.com> provided a machine
8715 So this is an unexelfsgi.c from a different line of development.
8717 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
8719 * regex.c (RE_TR_ASCII): New function.
8720 (RE_TRANSLATE): Call it.
8722 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
8724 * buffer.h (TRT_TABLE_OF): Remove assert.
8725 (IN_TRT_TABLE_DOMAIN): Removed.
8727 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
8729 * free-hook.c (log_gcpro):
8730 (show_gcprohist): Add support for GCPRO5.
8732 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
8734 * emacs.c (main_1): Improve -sd error message when --pdump=no.
8736 2000-11-16 Olivier Galibert <galibert@xemacs.org>
8738 * symeval.h: Declare flush_all_buffer_local_cache.
8740 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8741 (flush_buffer_local_cache): Added.
8742 (flush_all_buffer_local_cache): Added.
8744 * lrecord.h: Remove unused XD_LO_RESET_NIL.
8746 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8747 (pdump_dump_data): Ditto.
8748 (pdump_reloc_one): Ditto.
8749 (pdump): Remove unused pdump_qnil. Flush buffer local caches
8753 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
8755 * buffer.c: Remove if 0'ed entry.
8756 * buffer.h: Rewrite TRT to use char-table.
8757 * bufslots.h: Remove mirror tables.
8758 * casetab.c: Remove mirror tables.
8759 (CASE_TABLE_P): New macro.
8760 (Fcase_table_p): Element of a case table is string or char-table.
8761 (make_mirror_trt_table): Removed.
8762 (set_case_table): Setup char-table from strings for backward
8764 * dired.c (Fdirectory_files):
8765 * dired-msw.c: (mswindows_get_files):
8766 * lisp.h: Change prototype of re_pattern_buffer.
8767 * regex.c: (RE_TRANSLATE): New macro.
8768 (TRANSLATE_P): Ditto.
8769 Change translate to type RE_TRANSLATE_TYPE.
8770 * regex.h: Define RE_TRANSLATE_TYPE
8771 * search.c (TRANSLATE): New macro.
8772 (TRANSLATE_ASCII): New macro.
8773 Translate table is changed to Lisp_Object.
8774 (signal_failure): Inhibit return.
8776 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
8783 Do UNGCPRO before return.
8785 2000-11-14 Martin Buchholz <martin@xemacs.org>
8787 * XEmacs 21.2.37 is released.
8789 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
8791 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8792 Add comments about discarded return value.
8794 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
8797 * event-stream.c: Fix comments. Remove some #if 0'ed part.
8799 2000-10-27 Andy Piper <andy@xemacs.org>
8801 * gutter.c (Fset_default_gutter_position): default left and right
8803 (calculate_gutter_size): calculate resonable heuristic for left
8804 and right gutter sizes.
8805 (specifier_vars_of_gutter): change left and right gutter sizes to
8807 (calculate_gutter_size_from_display_lines): new function.
8808 (output_gutter): check for resizing on left and right gutters.
8809 (clear_gutter): don't special case top and left gutters.
8810 (specifier_vars_of_gutter): use new signature for
8811 set_specifier_caching.
8813 * glyphs-x.c (x_redisplay_widget): spelling fix.
8814 * glyphs.c (specifier_vars_of_glyphs):
8815 * menubar.c (specifier_vars_of_menubar):
8816 * redisplay.c (specifier_vars_of_redisplay):
8817 * toolbar.c (specifier_vars_of_toolbar):
8818 * window.c (specifier_vars_of_window):
8819 * scrollbar.c (specifier_vars_of_scrollbar):
8820 (complex_vars_of_scrollbar): use new signature for
8821 set_specifier_caching.
8823 * specifier.c (set_specifier_caching): include recompute flag.
8824 (recompute_one_cached_specifier_in_window): always recompute if
8826 (recompute_one_cached_specifier_in_frame): ditto.
8828 * specifier.h (struct specifier_caching): add recompute flag.
8830 2000-10-24 Andy Piper <andy@xemacs.org>
8832 * unexcw.c (copy_executable_and_dump_data_section): add new
8833 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8836 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8838 * console-x.h (x_device): New member modifier_release_time.
8839 * event-Xt.c (x_handle_sticky_modifiers):
8840 Bound interval modifier keys are sticky.
8841 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8842 * events.h: extern it.
8844 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8846 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8848 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8850 * event-stream.c (execute_command_event): Preserve current_events
8851 and the like when event is misc-user-event.
8852 Inhibit quit during the call to maybe_echo_keys.
8854 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
8856 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8857 symlink when buffer is killed.
8858 (inhibit_clash_detection): New variable.
8860 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8862 * console.c (Fset_input_method): Trigger redisplay on tty.
8864 2000-11-07 Martin Buchholz <martin@xemacs.org>
8866 * process.c (Fprocess_status): Revert to previous behavior:
8867 (process-status "nosuchprocess") ==> nil
8869 2000-11-06 Martin Buchholz <martin@xemacs.org>
8871 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8872 Work around another GCC 2.95.2 optimizer bug.
8874 2000-11-02 Martin Buchholz <martin@xemacs.org>
8876 * process.c (Fget_process): Use LIST_LOOP_2.
8877 (kill_buffer_processes): Use LIST_LOOP_2.
8879 * minibuf.c (Fall_completions):
8880 Delete old non-functional code for FSF fourth argument.
8882 * frame.c (frame_matches_frame_spec):
8883 Renamed from `frame_matches_frametype'. Update all callers.
8884 (device_matches_device_spec):
8885 Renamed from 'device_matches_console_spec'. Update all callers.
8887 * doc.c (Fsubstitute_command_keys):
8888 Remove buffer overflow crash. Small code cleanups.
8890 * casetab.c (check_case_table): Simpler code.
8892 * window.c (Freplace_buffer_in_windows):
8893 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8894 (and similar implementation) as Fdelete_windows_on.
8897 * alloc.c (Fmake_list):
8898 * alloc.c (make_vector):
8899 * alloc.c (Fmake_vector):
8900 * alloc.c (make_bit_vector):
8901 * alloc.c (Fmake_bit_vector):
8902 * alloc.c (Fbit_vector):
8903 * alloc.c (Fmake_string):
8904 * alloc.c (Fpurecopy):
8905 * alloc.c (Fmemory_limit):
8907 * buffer.c (Fget_buffer):
8908 * buffer.c (Fkill_buffer):
8909 * buffer.c (complex_vars_of_buffer):
8910 * bytecode.c (Fcompiled_function_stack_depth):
8911 * callint.c (Fprefix_numeric_value):
8913 * event-stream.c (Fread_key_sequence):
8915 * casetab.c (Fcase_table_p):
8916 * casetab.c (check_case_table):
8917 * casetab.c (Fset_case_table):
8918 * casetab.c (Fset_standard_case_table):
8920 * chartab.c (Fchar_table_type):
8921 * chartab.c (Freset_char_table):
8922 * chartab.c (Fget_char_table):
8923 * chartab.c (Fget_range_char_table):
8924 * chartab.c (Fput_char_table):
8925 * chartab.c (Fmap_char_table):
8926 * chartab.c (Fcategory_table_p):
8927 * chartab.c (Fcheck_category_at):
8928 * chartab.c (Fchar_in_category_p):
8929 * chartab.c (Fcategory_table):
8930 * chartab.c (Fcopy_category_table):
8931 * chartab.c (Fset_category_table):
8932 * chartab.c (Fcategory_designator_p):
8933 * chartab.c (Fcategory_table_value_p):
8934 * cmds.c (Fdelete_char):
8935 * cmds.c (Fdelete_backward_char):
8936 * cmds.c (Fself_insert_command):
8937 * cmds.c (Fself_insert_internal):
8938 * console.c (Fvalid_console_type_p):
8939 * console.c (Fcdfw_console):
8940 * console.c (Fconsole_type):
8941 * console.c (Fconsole_name):
8942 * console.c (Fconsole_device_list):
8943 * console.c (Fconsole_on_window_system_p):
8947 * data.c (Fsubr_interactive):
8948 * data.c (Fchar_to_int):
8949 * data.c (Fint_to_char):
8952 * data.c (Fnumber_to_string):
8953 * data.c (Fstring_to_number):
8955 * database.c (mark_database):
8956 * database.c (finalize_database):
8957 * database.c (Fdatabase_live_p):
8958 * database.c (Fdatabasep):
8959 * device-x.c (Fx_get_resource):
8960 * device.c (Fdfw_device):
8962 * dired.c (Ffile_name_completion):
8963 * dired.c (Ffile_name_all_completions):
8964 * dired.c (Fuser_name_completion):
8965 * dired.c (Fuser_name_completion_1):
8966 * dired.c (Fuser_name_all_completions):
8967 * doc.c (Fdocumentation):
8968 * doc.c (Fdocumentation_property):
8969 * doc.c (Fsubstitute_command_keys):
8971 * editfns.c (Fchar_to_string):
8972 * editfns.c (Fstring_to_char):
8973 * editfns.c (Ftemp_directory):
8974 * editfns.c (Finsert_char):
8975 * editfns.c (Fbuffer_substring_no_properties):
8976 * editfns.c (Fnarrow_to_region):
8977 * editfns.c (Fchar_equal):
8978 * editfns.c (Fchar_Equal):
8979 * editfns.c (Ftranspose_regions):
8980 * emacs.c (Fdump_emacs):
8982 * eval.c (Fcommand_execute):
8983 * eval.c (Fautoload):
8984 * eval.c (Fbacktrace):
8985 * eval.c (Fbacktrace_frame):
8987 * events.c (Fcopy_event):
8988 * events.c (Fcharacter_to_event):
8989 * events.c (Fevent_button):
8990 * events.c (Fevent_process):
8992 * extents.c (Fnext_extent_change):
8993 * extents.c (Fextent_property):
8995 * faces.c (Fmake_face):
8997 * file-coding.c (Fencode_shift_jis_char):
8998 * file-coding.c (Fencode_big5_char):
8999 * fileio.c (Ffile_name_directory):
9000 * fileio.c (Ffile_name_nondirectory):
9001 * fileio.c (Ffile_name_as_directory):
9002 * fileio.c (Fdirectory_file_name):
9003 * fileio.c (Ffile_truename):
9004 * fileio.c (Fsubstitute_in_file_name):
9005 * fileio.c (Ffile_modes):
9006 * fileio.c (Fset_file_modes):
9007 * fileio.c (Fset_default_file_modes):
9008 * fileio.c (Fverify_visited_file_modtime):
9009 * floatfns.c (Facos):
9010 * floatfns.c (Fasin):
9011 * floatfns.c (Fatan):
9012 * floatfns.c (Fcos):
9013 * floatfns.c (Fsin):
9014 * floatfns.c (Ftan):
9015 * floatfns.c (Fbessel_j0):
9016 * floatfns.c (Fbessel_j1):
9017 * floatfns.c (Fbessel_jn):
9018 * floatfns.c (Fbessel_y0):
9019 * floatfns.c (Fbessel_y1):
9020 * floatfns.c (Fbessel_yn):
9021 * floatfns.c (Ferf):
9022 * floatfns.c (Ferfc):
9023 * floatfns.c (Flog_gamma):
9024 * floatfns.c (Fexp):
9025 * floatfns.c (Fexpt):
9026 * floatfns.c (Flog):
9027 * floatfns.c (Flog10):
9028 * floatfns.c (Fsqrt):
9029 * floatfns.c (Fcube_root):
9030 * floatfns.c (Facosh):
9031 * floatfns.c (Fasinh):
9032 * floatfns.c (Fatanh):
9033 * floatfns.c (Fcosh):
9034 * floatfns.c (Fsinh):
9035 * floatfns.c (Ftanh):
9036 * floatfns.c (Fabs):
9037 * floatfns.c (Ffloat):
9038 * floatfns.c (Flogb):
9039 * floatfns.c (Fceiling):
9040 * floatfns.c (Ffloor):
9041 * floatfns.c (Fround):
9042 * floatfns.c (Ftruncate):
9043 * floatfns.c (Ffceiling):
9044 * floatfns.c (Fffloor):
9045 * floatfns.c (Ffround):
9046 * floatfns.c (Fftruncate):
9047 * fns.c (Fstring_equal):
9048 * fns.c (Fstring_lessp):
9053 * fns.c (Fsubstring):
9055 * fns.c (Fold_assoc):
9056 * fns.c (assoc_no_quit):
9058 * fns.c (Fold_assq):
9059 * fns.c (assq_no_quit):
9061 * fns.c (Fold_rassoc):
9063 * fns.c (Fold_rassq):
9064 * fns.c (rassq_no_quit):
9065 * fns.c (Fremassoc):
9066 * fns.c (remassoc_no_quit):
9068 * fns.c (remassq_no_quit):
9069 * fns.c (Fremrassoc):
9070 * fns.c (Fremrassq):
9071 * fns.c (remrassq_no_quit):
9073 * fns.c (Fplist_get):
9074 * fns.c (Fplist_put):
9075 * fns.c (Fplist_remprop):
9076 * fns.c (Fplist_member):
9077 * fns.c (Flax_plist_get):
9078 * fns.c (Flax_plist_put):
9079 * fns.c (Flax_plist_remprop):
9080 * fns.c (Flax_plist_member):
9082 * fns.c (Fold_equal):
9084 * fns.c (Fbase64_encode_region):
9085 * fns.c (Fbase64_encode_string):
9086 * fns.c (Fbase64_decode_region):
9088 * frame.c (frame_matches_frame_spec):
9089 * frame.c (device_matches_device_spec):
9090 * frame.c (next_frame):
9091 * frame.c (previous_frame):
9092 * frame.c (Fnext_frame):
9093 * frame.c (Fprevious_frame):
9094 * frame.c (Fframe_property):
9095 * frame.c (Fset_frame_height):
9096 * frame.c (Fset_frame_size):
9100 * glyphs.c (decode_error_behavior_flag):
9101 * glyphs.c (Fmake_image_instance):
9102 * indent.c (Findent_to):
9103 * intl.c (Fignore_defer_gettext):
9104 * keymap.c (Fkeymapp):
9105 * keymap.c (Flookup_key):
9107 * lread.c (Fload_internal):
9108 * lread.c (Feval_buffer):
9109 * lread.c (Feval_region):
9110 * macros.c (Fexecute_kbd_macro):
9111 * marker.c (set_marker_internal):
9112 * marker.c (Fset_marker):
9113 * marker.c (set_marker_restricted):
9114 * marker.c (Fcopy_marker):
9115 * marker.c (noseeum_copy_marker):
9117 * menubar.c (Fpopup_menu):
9119 * mule-charset.c (Fcharset_name):
9120 * mule-charset.c (Fchar_charset):
9121 * mule-charset.c (Fchar_octet):
9122 * mule-charset.c (Fsplit_char):
9123 * mule-wnnfns.c (Fwnn_open):
9124 * mule-wnnfns.c (Fwnn_dict_comment):
9125 * mule-wnnfns.c (Fwnn_quit_henkan):
9126 * mule-wnnfns.c (Fwnn_word_toroku):
9127 * mule-wnnfns.c (Fwnn_word_sakujo):
9128 * mule-wnnfns.c (Fwnn_word_use):
9129 * mule-wnnfns.c (Fwnn_hindo_set):
9131 * objects.c (Fmake_color_instance):
9132 * objects.c (Fmake_font_instance):
9133 * print.c (Fwrite_char):
9135 * process.c (mark_process):
9136 * process.c (print_process):
9137 * process.c (get_process_from_usid):
9138 * process.c (Fprocessp):
9139 * process.c (Fprocess_live_p):
9140 * process.c (Fget_process):
9141 * process.c (Fget_buffer_process):
9142 * process.c (get_process):
9143 * process.c (Fprocess_id):
9144 * process.c (Fprocess_name):
9145 * process.c (Fprocess_command):
9146 * process.c (init_process_io_handles):
9147 * process.c (start_process_unwind):
9148 * process.c (Fstart_process_internal):
9149 * process.c (Fopen_multicast_group_internal):
9150 * process.c (Fset_process_window_size):
9151 * process.c (read_process_output):
9152 * process.c (send_process):
9153 * process.c (Fprocess_tty_name):
9154 * process.c (Fset_process_buffer):
9155 * process.c (Fprocess_buffer):
9156 * process.c (Fprocess_mark):
9157 * process.c (set_process_filter):
9158 * process.c (Fset_process_filter):
9159 * process.c (Fprocess_filter):
9160 * process.c (Fprocess_send_region):
9161 * process.c (Fprocess_send_string):
9162 * process.c (exec_sentinel):
9163 * process.c (Fset_process_sentinel):
9164 * process.c (Fprocess_sentinel):
9165 * process.c (status_notify):
9166 * process.c (Fprocess_status):
9167 * process.c (Fprocess_exit_status):
9168 * process.c (process_send_signal):
9169 * process.c (Fprocess_send_eof):
9170 * process.c (deactivate_process):
9171 * process.c (remove_process):
9172 * process.c (Fdelete_process):
9173 * process.c (kill_buffer_processes):
9174 * process.c (Fprocess_kill_without_query):
9175 * process.c (Fprocess_kill_without_query_p):
9177 * rangetab.c (Fget_range_table):
9178 * rangetab.c (Fput_range_table):
9179 * rangetab.c (Fremove_range_table):
9180 * rangetab.c (Fclear_range_table):
9182 * search.c (Fskip_chars_forward):
9183 * search.c (Fskip_chars_backward):
9184 * search.c (Fskip_syntax_forward):
9185 * search.c (Fskip_syntax_backward):
9186 * search.c (search_command):
9187 * search.c (Freplace_match):
9188 * search.c (Fregexp_quote):
9189 * select.c (Fown_selection_internal):
9190 * select.c (Fselection_owner_p):
9191 * select.c (Fselection_exists_p):
9192 * select.c (Fget_selection_internal):
9195 * symbols.c (Fintern):
9196 * symbols.c (Fintern_soft):
9197 * symbols.c (Funintern):
9198 * symbols.c (Fapropos_internal):
9199 * symbols.c (Fset_default):
9201 * syntax.c (Fsyntax_table_p):
9202 * syntax.c (Fcopy_syntax_table):
9203 * syntax.c (Fset_syntax_table):
9204 * syntax.c (Fchar_syntax):
9205 * syntax.c (syntax_match):
9206 * syntax.c (Fmatching_paren):
9207 * syntax.c (Fforward_word):
9208 * syntax.c (scan_lists):
9209 * syntax.c (Fscan_lists):
9210 * syntax.c (Fscan_sexps):
9211 * syntax.c (Fparse_partial_sexp):
9212 * toolbar.c (Fcheck_toolbar_button_syntax):
9215 * window.c (Fwindowp):
9216 * window.c (Fwindow_live_p):
9217 * window.c (Fwindow_point):
9218 * window.c (Fdelete_window):
9219 * window.c (Fnext_window):
9220 * window.c (Fprevious_window):
9221 * window.c (Fother_window):
9222 * window.c (window_loop):
9223 * window.c (Fget_lru_window):
9224 * window.c (Fsplit_window):
9225 * window.c (Fenlarge_window):
9226 * window.c (Fenlarge_window_pixels):
9227 * window.c (Fshrink_window):
9228 * window.c (Fshrink_window_pixels):
9229 * window.c (change_window_height):
9230 * window.c (Fwindow_configuration_p):
9231 * window.c (Fcurrent_window_configuration):
9233 * casefiddle.c (casify_object):
9234 * casefiddle.c (Fupcase):
9235 * casefiddle.c (Fdowncase):
9236 * casefiddle.c (Fcapitalize):
9237 * casefiddle.c (Fupcase_initials):
9238 * casefiddle.c (casify_region_internal):
9239 * casefiddle.c (casify_region):
9240 * casefiddle.c (Fupcase_region):
9241 * casefiddle.c (Fdowncase_region):
9242 * casefiddle.c (Fcapitalize_region):
9243 * casefiddle.c (Fupcase_initials_region):
9244 * casefiddle.c (Fupcase_word):
9245 * casefiddle.c (Fdowncase_word):
9246 * casefiddle.c (Fcapitalize_word):
9247 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
9248 Replace 0 with '\0' when working with bytes.
9249 Replace initial "(" with "\(" in docstrings.
9251 2000-11-01 Martin Buchholz <martin@xemacs.org>
9253 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9255 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9257 2000-10-31 Martin Buchholz <martin@xemacs.org>
9259 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
9261 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
9263 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9266 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
9268 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9269 (inhibit_auto_save_session): New variable.
9270 (vars_of_fileio): Declare and initialize them.
9271 * fileio.c (Fdo_auto_save): Don't create session file if
9272 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9274 2000-10-31 Martin Buchholz <martin@xemacs.org>
9276 * sgiplay.c (play_internal): C++ compilability.
9277 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9278 * callproc.c (Fold_call_process_internal):
9279 Remove unused vars `env', `first'.
9280 * scrollbar.c (update_scrollbar_instance):
9281 #### unused var `current_window'.
9282 * redisplay-tty.c: Put currently unused vars insert_mode_on,
9283 etc. within #ifdef NOT_YET.
9284 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9285 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9286 * specifier.c (specifier_instance):
9287 #### unused var `tag'.
9288 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9290 2000-10-27 Martin Buchholz <martin@xemacs.org>
9293 * fns.c (list_sort):
9294 * fns.c (Ffillarray):
9295 * fns.c (bytecode_nconc2):
9298 * fns.c (Fmapconcat):
9299 Be pedantically 64-bit correct. For the time when someone will
9300 want to have a list with length > 2**32.
9302 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9303 Work around MIPSpro compiler bug.
9305 * process-unix.c (unix_kill_child_process): Add snarky comment.
9306 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
9308 * config.h.in: Oops, _getpt ==> _getpty
9310 2000-10-26 Martin Buchholz <martin@xemacs.org>
9314 Use void*, not char*, as return type of alloca().
9316 * alloc.c (free_marker): Side effect inside assert expression!
9318 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
9320 * mule-charset.c (Fset_charset_ccl_program): To check
9321 if the given ccl program is valid, use setup_ccl_program()
9322 instead of CHECK_VECTOR().
9323 (Fmake_charset): Likewise.
9325 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
9327 * faces.c (get_extent_fragment_face_cache_index):
9328 Fix cachel.merged_faces memory leak.
9330 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
9332 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9333 Reset MSB of octets obtained by DECODE_SJIS
9334 because of the incompatibility with Emacs.
9335 (ccl_driver)<CCL_ENCODE_SJIS>:
9336 Set MSB of octets before passing them to
9337 ENCODE_SJIS because of the incompatibility
9340 2000-10-18 Daiki Ueno <ueno@unixuser.org>
9342 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9343 (DECLARE_LRECORD): Undo the last change.
9344 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9346 2000-10-17 Daiki Ueno <ueno@unixuser.org>
9348 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9349 the implementation to lrecord_implementations_table.
9351 2000-10-14 Daiki Ueno <ueno@unixuser.org>
9353 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9354 initial value of `lrecord_type_##c_name' and
9355 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9356 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9357 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9358 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9359 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9361 2000-10-17 Martin Buchholz <martin@xemacs.org>
9363 * miscplay.c (sndcnv8S_2mono):
9364 (sndcnv2monounsigned):
9365 (sndcnvULaw_2linear):
9367 Remove implementation-defined behavior.
9369 2000-10-12 Martin Buchholz <martin@xemacs.org>
9371 * input-method-xlib.c: Warning suppression.
9373 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
9375 * mule-ccl.c: Sync up with Emacs 21.0.90.
9376 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9378 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9380 (ccl_driver[WriteMultibyteChar2]): Bug fix.
9381 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9382 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9383 leading char belongs to official 2-dimensional charset.
9384 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9385 write the given character as is. Otherwise,
9386 if it is a multibyte char, convert it by
9387 non_ascii_set_charptr_emchar, then write it.
9388 (CCL_WRITE_STRING): Likewise.
9389 (ccl_get_compiled_code): New function.
9390 (setup_ccl_program): When ccl_prog is invalid,
9392 (Fregister_code_conversion_map): New function.
9393 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9395 * mule-ccl.h: Sync up with Emacs 21.0.90.
9396 (Fregister_ccl_program): export it.
9398 * redisplay-msw.c (separate_textual_runs):
9399 If ccl program is not valid, don't do ccl conversion.
9401 * redisplay-x.c (separate_textual_runs): Ditto.
9403 * file-coding.c (Fmake_coding_system):
9404 When type is ccl and value is vector, register it
9405 with a proper symbol. And checks whether the
9406 given ccl program is valid.
9407 (mule_decode): When calling ccl_driver, if src indicates
9408 NULL pointer, set an empty string instead.
9409 (mule_encode): Likewise.
9411 2000-10-11 Martin Buchholz <martin@xemacs.org>
9413 The following large batch of changes gets us back to a state of
9414 C++ compilability. Extbyte is now a char, which means that
9415 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9417 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9419 * sound.c (Fplay_sound): Type correctness.
9421 * select-x.c (hack_motif_clipboard_selection): Type correctness.
9422 (x_get_window_property): Type correctness.
9423 (receive_incremental_selection): unsigned char ==> Extbyte
9424 (selection_data_to_lisp_data): unsigned char ==> Extbyte
9425 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9426 (Fx_store_cutbuffer_internal): Type correctness.
9428 * process-unix.c (try_to_initialize_subtty): Type correctness.
9430 * objects-x.c (x_print_color_instance): Type correctness.
9431 (x_print_font_instance): Type correctness.
9432 (x_list_fonts): SExtbyte ==> Extbyte.
9433 (valid_x_font_name_p): SExtbyte ==> Extbyte.
9434 (x_find_charset_font): SExtbyte ==> Extbyte.
9435 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
9436 (truename_via_XListFonts): SExtbyte ==> Extbyte.
9437 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9440 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9441 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9442 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9443 (BYTE_C0_P): Use bit ops for char-signedness safety.
9444 (BYTE_C1_P): Use bit ops for char-signedness safety.
9445 (CHARSET_BY_LEADING_BYTE):
9446 (CHARSET_BY_ATTRIBUTES):
9447 Always use inline function.
9448 Use type_checking_assert.
9451 * mule-charset.c (non_ascii_charptr_copy_char):
9452 Modify to work with both ASCII and non-ASCII characters.
9453 Improve docs and variable names.
9454 Replace over-clever fall-through switch with a simple loop.
9455 (Lstream_get_emchar_1):
9456 Replace over-clever fall-through switch with a simple loop.
9458 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9459 Warning suppression.
9461 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9462 the return value of Lstream_getc, which could be EOF as well.
9464 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9466 * lisp.h: Make Extbyte a char, not unsigned char, so that external
9467 APIs can be used on Extbytes without casts. Risky!
9471 * input-method-xlib.c (XIM_init_device):
9472 Use Xlib.h instead of IntrinsicP.h.
9473 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9474 which will break in X11R7.
9475 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9476 to call XRegisterIMInstantiateCallback with correct types.
9478 * gui-x.c (button_item_to_widget_value): Type correctness.
9480 * glyphs.c (bitmap_to_lisp_data): Type correctness.
9482 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9483 (xbm_instantiate_1): Type correctness.
9484 (BUILD_GLYPH_INST): Type correctness.
9486 * fileio.c (Fsubstitute_in_file_name): Type correctness.
9489 (decode_coding_sjis):
9490 (decode_coding_big5):
9491 (decode_coding_ucs4):
9492 (decode_coding_utf8):
9493 (decode_coding_iso2022):
9494 (decode_coding_no_conversion):
9495 Make all decoding functions take an Extbyte * arg.
9496 (encode_coding_sjis):
9497 (encode_coding_big5):
9498 (encode_coding_ucs4):
9499 (encode_coding_utf8):
9500 (encode_coding_iso2022):
9501 (encode_coding_no_conversion):
9502 Make all encoding functions take a Bufbyte * arg.
9503 Use size_t instead of unsigned int for memory sizes.
9504 Only cast to unsigned char whenever dereferencing Extbyte *.
9506 * doc.c (unparesseuxify_doc_string): Type correctness.
9508 * console-x.c (split_up_display_spec):
9509 Rewrite without using details of internal string representation.
9510 (x_semi_canonicalize_device_connection): Type correctness.
9513 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9514 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9515 (HAVE_XFREE386): Removed.
9517 * buffer.h (DEC_CHARPTR): `const' correctness.
9518 (bufbyte_strcmp): New.
9519 (bufbyte_memcmp): New.
9521 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9523 * buffer.h (XCHAR_OR_CHAR_INT):
9524 Always use inline function.
9525 Remove redundant type checking assert() - XINT will abort quite nicely.
9527 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9529 * search.c (Freplace_match): Set newtext to an empty string.
9531 2000-10-10 Martin Buchholz <martin@xemacs.org>
9533 * s/decosf1-3.h: Remove #include of stropts.h
9534 * s/ptx.h: Remove #include of stropts.h
9535 * s/usg5-4.h: Remove #include of stropts.h
9538 Use stropts.h, not sys/stropts.h.
9539 Use strtio.h, not sys/strtio.h.
9541 2000-10-04 Martin Buchholz <martin@xemacs.org>
9543 * XEmacs 21.2.36 is released.
9545 2000-09-21 Andy Piper <andy@xemacs.org>
9547 * glyphs-x.c (x_redisplay_widget): make sure non-structural
9548 changes still involve copying the widget tree.
9549 (update_widget_face): make sure a change is register in the widget
9550 tree. Call update_tab_widget_face appropriately.
9551 (update_tab_widget_face): ditto.
9552 (x_tab_control_redisplay): make sure non-structural changes still
9553 involve copying the widget tree.
9555 2000-08-31 Daiki Ueno <ueno@unixuser.org>
9557 * lread.c (locate_file): Check the path element is non-nil.
9559 2000-10-02 Martin Buchholz <martin@xemacs.org>
9561 * lisp.h: Warning suppression for SCO compilers.
9563 * redisplay-tty.c (reset_tty_modes): Fix crash.
9564 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9566 2000-09-27 Martin Buchholz <martin@xemacs.org>
9568 Big signal/process handling overhaul. Bugs fixed:
9569 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9570 M-x comint-kill-subjob should work for both values nil and t of
9571 process-connection-type. It was broken on most platforms.
9572 Testing on Irix and Cygwin still needed. Other plaforms tested.
9573 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
9574 * process-unix.c: Signal/Process handling overhaul.
9575 (pty_name): make 64 bytes, as `expect' does, for paranoia.
9576 (allocate_pty): Use all available modern methods of allocating
9577 ptys, falling back to old style BSD allocation as a last resort.
9578 Use allegedly more secure Unix98 pty allocation by default.
9579 (allocate_pty_the_old_fashioned_way): New. the last resort.
9580 (unix_create_process): Push ptem, ldterm, ttcompat where
9581 available. Autoconfiscate.
9582 (try_to_initialize_subtty): New.
9583 (unix_kill_child_process): Proper signal handling for ptys on most
9584 platforms, using special knowledge of AIX, BSD, etc...
9585 (unix_create_process): Always disconnect_controlling_terminal() for
9586 subprocesses, whether using ptys or not.
9587 * process.h: Remove old getpt-dependent PTY code.
9588 * process.c (Fprocess_send_signal): New, obvious generic function.
9589 (decode_signal): New.
9590 (Finterrupt_process):
9594 (Fcontinue_process):
9595 (Fsignal_process): Use decode_signal.
9596 (process_send_signal):
9597 Many docstring corrections.
9598 Allow any signal to be sent to a process object.
9599 * config.h.in: Add symbols for big signal/process overhaul.
9600 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9601 * sysproc.h: Include process-related headers, where available:
9602 sys/stropts.h sys/strtio.h pty.h libutil.h
9610 Remove old S&M pty stuff.
9611 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9612 * systty.h: Simplify cpp hackery, improve comments.
9613 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9615 * editfns.c (Fformat_time_string):
9616 Be a little more paranoid with the return value of ctime.
9618 * fileio.c (check_executable):
9620 Use symbolic constants X_OK, W_OK.
9622 * console-x.c (split_up_display_spec): Fix a warning.
9624 2000-10-02 Martin Buchholz <martin@xemacs.org>
9626 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9627 * ntproc.c (sys_spawnve): make_string ==> build_string
9628 Small clarity improvements.
9630 2000-09-30 Martin Buchholz <martin@xemacs.org>
9632 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9634 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9636 * config.h.in (HAVE_STRCASECMP): Remove.
9638 2000-09-29 Martin Buchholz <martin@xemacs.org>
9640 * redisplay-output.c (redisplay_output_pixmap):
9641 Cleaner and possibly more 64-bit correct code.
9643 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
9645 * dumper.c (pdump_load_finish): move restoration of
9646 `noninteractive1' to emacs.c (main_1).
9647 * emacs.c (main_1): protect LISP-visible command-line flags
9650 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
9652 * Makefile.in.in (versionclean): Use EXE_TARGET and
9653 DUMP_TARGET instead of literal program names.
9655 2000-09-20 Martin Buchholz <martin@xemacs.org>
9657 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9659 2000-09-19 Martin Buchholz <martin@xemacs.org>
9661 * *: Spelling mega-patch
9663 2000-09-19 Martin Buchholz <martin@xemacs.org>
9665 * fns.c (bad_bad_turtle):
9666 Delete "Eek!" comment, since we fixed the bug to which it refers.
9668 2000-09-16 Martin Buchholz <martin@xemacs.org>
9670 * alloca.c: Replace REGISTER with register.
9672 2000-09-16 Daiki Ueno <ueno@unixuser.org>
9674 * file-coding.c (ucs_to_char): Use countof.
9676 2000-09-16 Martin Buchholz <martin@xemacs.org>
9678 * file-coding.c: (ucs_to_char):
9679 (complex_vars_of_file_coding):
9680 Use countof instead of sizeof.
9681 Use CHECK_NATNUM instead of CHECK_INT.
9683 * sysdep.c (strcasecmp): Remove.
9684 * device-x.c (ascii_strcasecmp): New.
9685 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9686 Avoid using non-standard non-portable strcasecmp.
9688 2000-09-16 Martin Buchholz <martin@xemacs.org>
9690 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9691 * font-lock.c: remove reference to emacsfns.h.
9692 * search.c: small doc improvement.
9693 * event-Xt.c: correct file names in comments.
9694 * console-x.h Correct file names in comments.
9695 * frame.c: Correct file names in comments.
9696 * event-stream.c: remove Energize from comments.
9698 2000-09-15 Martin Buchholz <martin@xemacs.org>
9700 * symeval.h (DEFERROR_STANDARD):
9703 (DEFSYMBOL_NO_DUMP):
9704 (DEFSYMBOL_MULTIWORD_PREDICATE):
9705 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9707 The construct &##name is not sensible C.
9708 Fixes compilation errors with Unixware native compiler.
9710 2000-09-14 Martin Buchholz <martin@xemacs.org>
9712 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9713 (next_frame_internal): Removed. We now just have next_frame.
9715 Write a simpler and cleaner one-pass algorithm.
9716 Remove called_from_delete_device arg and #ifdefed-out code.
9718 Renamed from prev_frame. Update callers.
9719 Cleaned up to have an analogous implementation to next_frame.
9720 (other_visible_frames_internal): Remove the
9721 called_from_delete_device bogus arg, and hence, remove this
9722 function. Just use other_visible_frames().
9724 * window.c (Fnext_window):
9726 Since next_frame() is guaranteed to return a frame, remove check
9727 for nil inserted in previous patch.
9730 Make code look more like Fnext_window.
9732 Respect the `console' arg when iterating through windows.
9733 Fixes bug: (get-buffer-window buffer t device) not respecting
9735 This function needs more work, as others have pointed out.
9737 * frame.h: Rename prev_frame to previous_frame.
9738 device_matches_console_spec no longer takes a `frame' arg.
9743 Use EMACS_BLOCK_SIGNAL instead of sigblock.
9744 From "Golubev I. N." <gin@mo.msk.ru>.
9746 * make-src-depend: Fix typo.
9748 2000-09-13 Martin Buchholz <martin@xemacs.org>
9750 * window.c (Fnext_window):
9751 next_frame() might return nil, not a frame.
9753 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9755 * frame.c (next_frame_internal):
9756 We've passed a frame if we've passed its device.
9758 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9759 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9761 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
9763 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9764 Allow option to suppress accelerators in menu/dialog items.
9765 (populate_or_checksum_helper): Pass dialog title through above.
9767 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
9769 * event-msw.c (mswindows_key_to_emacs_keysym):
9770 Add "pause" key, fix "menu" key.
9772 2000-09-09 Martin Buchholz <martin@xemacs.org>
9774 * eval.c (reinit_vars_of_eval):
9775 Increase max_lisp_eval_depth to 1000,
9776 required for thai-xtis.el to byte-compile under some circumstances.
9778 2000-09-04 Martin Buchholz <martin@xemacs.org>
9780 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9783 2000-09-01 Martin Buchholz <martin@xemacs.org>
9785 * make-src-depend: Make the generated Makefiles smaller.
9787 * s/hpux.h (SETUP_SLAVE_PTY):
9788 Provide a %d in the format string for the errno argument.
9790 * editfns.c (Ftemp_directory):
9792 Avoid buffer overrun on very long file name.
9794 * input-method-xlib.c (XIM_init_device):
9795 6th parameter of XRegisterIMInstantiateCallback has different
9796 pointer types on different OSes, so simply cast to (void *).
9798 * unexhp9k800.c: Warning fixes. Fiddly changes.
9800 * sysdll.c (dll_open):
9801 shl_load will hang hard if passed a NULL filename.
9802 Simply return NULL for compatibility with dlopen.
9803 * sysdll.c: Conform to XEmacs coding standards.
9805 * sysdep.c (get_pty_max_bytes):
9806 Support pty input lines longer than 512 bytes on HP-UX 10.20.
9808 2000-08-31 Martin Buchholz <martin@xemacs.org>
9810 * tooltalk.c: Add #include <syssignal.h>
9812 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
9814 * s/hpux.h: Don't use undefined function sigunblock().
9816 2000-08-31 Martin Buchholz <martin@xemacs.org>
9818 * config.h.in: Add HAVE_BALLOON_HELP.
9819 * emacs.c: Use HAVE_BALLOON_HELP.
9820 * Makefile.in.in (x_objs):
9821 Make Balloon Help conditional on finding shape.h.
9823 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
9825 * syntax.c (regex_emacs_buffer_p): New variable.
9826 * syntax.h (regex_emacs_buffer_p): extern.
9827 * search.c (looking_at_1):
9829 (fast_string_match):
9830 (search_buffer): Set regex_emacs_buffer_p.
9831 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9832 when before_dot, at_dot, after_dot.
9834 2000-08-23 Andy Piper <andy@xemacs.org>
9836 * gui-x.c (popup_selection_callback): Only set action_occurred
9837 when we really have an image instance.
9838 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9840 2000-08-23 Andy Piper <andy@xemacs.org>
9842 * gui-msw.c (mswindows_handle_gui_wm_command): set
9844 * gui-x.c (popup_selection_callback): ditto.
9846 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9847 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9848 (struct Lisp_Image_Instance): add action_occurred flag.
9850 * glyphs.c (redisplay_subwindow): use action_occurred flag.
9851 (image_instance_changed): ditto.
9852 (reset_frame_subwindow_instance_cache): only unmap windows - do
9853 not remove them from the cache also.
9855 * glyphs-widget.c (tab_control_update): better debug.
9856 (progress_gauge_update): ditto.
9857 (layout_update): ditto.
9858 (layout_instantiate): ditto.
9859 (tab_control_order_only_changed): cope with null pending items.
9861 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9862 debug. Force selection of an item when an action occurred. Cope
9863 with null pending_items.
9864 (mswindows_progress_gauge_redisplay): better debug.
9865 * glyphs-x.c (x_tab_control_redisplay): ditto.
9867 * redisplay.c (redisplay_frame): reset the frame cache if the
9870 * window.c (Fset_window_configuration): potentially re-enable
9872 (window_unmap_subwindows): need to finalize instances here since
9873 it is only used in mark_window_as_deleted.
9875 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
9877 * nas.c (SndOpenDataForReading):
9878 nas.c (WaveOpenDataForReading):
9879 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9880 Somehow escaped from the 2000-08-14 patch.
9882 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
9884 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9885 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9887 2000-08-21 Andy Piper <andy@xemacs.org>
9889 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9890 window if it is not already displayed.
9892 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9893 it is not already displayed.
9895 * window.c (Fset_window_configuration): don't reset the frame
9898 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9899 instances from the frame cache if we are actually finalizing them.
9900 (reset_frame_subwindow_instance_cache): reset frame cache only
9901 after unmapping everything.
9902 (map_subwindow): set displayed flag after mapping.
9904 2000-08-21 Martin Buchholz <martin@xemacs.org>
9906 * data.c (indirect_function):
9907 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9909 * eval.c (function_argcount):
9910 Use original function when signaling errors.
9912 2000-08-18 Andy Piper <andy@xemacs.org>
9914 * frame.c (delete_frame_internal): use new
9915 free_frame_subwindow_instances name.
9917 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9918 (add_tab_item): make return type correct.
9919 (mswindows_tab_control_instantiate): assert index of tab.
9920 (mswindows_tab_control_redisplay): Re-code to use
9921 gui_item_equal_sans_selected and gui_item_list_find_selected.
9923 * glyphs-widget.c (tab_control_update): Correct comment.
9925 * window.c (window_unmap_subwindows): use new
9926 unmap_subwindow_instance_cache_mapper.
9927 (window_unmap_subwindows_cache_mapper): deleted.
9928 (Fset_window_configuration): comparisons should now be with
9929 EQ. Preserve the subwindow instance cache across configuration
9931 (allocate_window): ditto.
9932 (make_dummy_parent): ditto.
9934 * glyphs.c (free_frame_subwindow_instances): rename from
9935 free_frame_subwindow_instance_cache. finalize all instances rather
9936 than just those in the display cache.
9937 (finalize_all_subwindow_instances): walk windows unmapping and
9938 finalizing subwindows.
9939 (unmap_subwindow_instance_cache_mapper): moved from
9940 window.c. Allow finalization as well as unmapping.
9942 * gui.c (gui_item_list_find_selected): new function.
9944 * gui.h (gui_item_list_find_selected): declare.
9946 * glyphs-x.c (x_tab_control_redisplay): pick tab
9947 explicitly. Re-code to use gui_item_equal_sans_selected and
9948 gui_item_list_find_selected.
9950 * glyphs-x.h: add lwlib-utils.h
9952 * buffer.c (Frecord_buffer): undo previous change.
9954 2000-08-09 Vin Shelton <acs@xemacs.org>
9956 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9957 possible. Create temporary files more securely. The patch was
9958 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9959 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
9960 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9963 2000-08-07 Ben Wing <ben@xemacs.org>
9965 * getloadavg.c: remove duplicate (and windows-breaking)
9966 includes of fcntl.h and sys/file.h.
9968 * nt.c: remove duplicate getloadavg() definition.
9970 * sysdll.h (Qdll_filename_encoding): add missing stand-in
9973 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
9975 * eval.c (function_argcount): If function needs to be autoloaded
9976 actually use the loaded definition.
9979 2000-08-05 Ben Wing <ben@xemacs.org>
9981 * getloadavg.c: add prototype for getloadavg(). remove
9982 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9983 of the code). remove duplicate header includes.
9985 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9987 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9988 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9989 useful load average.
9991 * alloc.c (reinit_alloc_once_early): removed references to
9992 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9993 the lisp vars are the only things referencing the malloc_sbrk_*
9994 vars, and they were already if 0'd out. these vars only exist
9995 in the older malloc.c, which is basically unused, and they're
9996 only for informational purposes.
9998 * m\*.h: removed useless VIRT_ADDR_VARIES.
10000 * m\powerpc.h: removed stray NO_ARG_ARRAY.
10002 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
10004 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10005 color if the image is a mono pixmap.
10007 2000-07-30 Ben Wing <ben@xemacs.org>
10009 * Makefile.in.in (release):
10012 * buffer.c (directory_is_current_directory):
10013 * dired-msw.c (mswindows_get_files):
10015 * dired.c (Fdirectory_files):
10016 * dired.c (file_name_completion_stat):
10017 * dired.c (Ffile_attributes):
10018 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10019 preprocessor tricks, to avoid problems on some machines
10022 * callproc.c (egetenv): GC docs.
10025 * console-msw.h (struct mswindows_dialog_id):
10026 * lrecord.h (lrecord_type):
10027 New object for use with MSW dialogs.
10029 * console.h (struct console_methods):
10030 New enable/disable frame methods, for proper modal dialogs.
10032 * device-msw.c (msprinter_default_printer): Fix to follow
10033 proper Mule conventions.
10036 * device-msw.c (signal_open_printer_error):
10037 * device-msw.c (msprinter_init_device):
10038 * device-msw.c (ensure_not_printing):
10039 * device-msw.c (plist_get_margin):
10040 * device-msw.c (Fmsprinter_select_settings):
10041 * device-msw.c (finalize_devmode):
10042 * device-msw.c (Fmsprinter_settings_despecialize):
10043 * device-msw.c (signal_enum_priner_error):
10044 * extents.c (decode_extent):
10045 * extents.c (decode_map_extents_flags):
10046 * extents.c (decode_extent_at_flag):
10047 * extents.c (Fextent_at):
10048 * extents.c (Fextents_at):
10049 * extents.c (symbol_to_glyph_layout):
10050 [[[[2]]]] Use structured errors.
10053 * dialog-msw.c (mswindows_is_dialog_msg):
10054 * dialog-msw.c (mark_mswindows_dialog_id):
10055 * dialog-msw.c (dialog_proc):
10056 * dialog-msw.c (handle_question_dialog_box):
10057 * dialog-msw.c (syms_of_dialog_mswindows):
10058 Define new object to clean up marking; use it as a dialog identifier.
10059 Call new delete-dialog-box-hook.
10061 * dialog-x.c (dbox_selection_callback):
10062 * dialog-x.c (dbox_descriptor_to_widget_value):
10063 * dialog-x.c (x_make_dialog_box_internal):
10064 Call new delete-dialog-box-hook.
10068 * dialog.c (syms_of_dialog):
10069 * dialog.c (vars_of_dialog):
10070 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10073 * eval.c (signal_call_debugger):
10074 when noninteractive, output stack traces on the console instead
10075 of in a (never-seen) buffer.
10077 * eval.c (signal_type_error):
10078 * eval.c (invalid_argument_2):
10080 new funs for use w/structured errors.
10083 * event-Xt.c (x_to_emacs_keysym):
10084 * event-Xt.c (describe_event):
10085 * event-Xt.c (emacs_Xt_event_handler):
10086 * event-Xt.c (vars_of_event_Xt):
10088 * event-msw.c (mswindows_wnd_proc):
10089 * event-msw.c (vars_of_event_mswindows):
10090 rename {x,mswindows}-debug-events to debug-{}-events for
10091 consistency with other debug-foo variables.
10094 document next-event more clearly.
10096 * fileio.c (Ffile_name_directory):
10097 * fileio.c (Ffile_name_nondirectory):
10098 * fileio.c (Funhandled_file_name_directory):
10099 * fileio.c (file_name_as_directory):
10100 * fileio.c (Ffile_name_as_directory):
10101 * fileio.c (directory_file_name):
10102 * fileio.c (Fdirectory_file_name):
10103 * fileio.c (Fmake_temp_name):
10104 * fileio.c (Ffile_truename):
10105 * fileio.c (Fsubstitute_in_file_name):
10106 * fileio.c (expand_and_dir_to_file):
10107 * fileio.c (barf_or_query_if_file_exists):
10108 * fileio.c (check_executable):
10109 * fileio.c (Ffile_exists_p):
10110 * fileio.c (Ffile_writable_p):
10111 * fileio.c (Ffile_directory_p):
10112 * fileio.c (Ffile_regular_p):
10113 * fileio.c (Ffile_modes):
10114 * fileio.c (Ffile_newer_than_file_p):
10115 * fileio.c (Fverify_visited_file_modtime):
10116 * fileio.c (Fset_visited_file_modtime):
10117 * fileio.c (auto_save_1):
10122 * frame-msw.c (mswindows_init_frame_1):
10123 * frame-msw.c (mswindows_enable_frame):
10124 * frame-msw.c (error_frame_unsizable):
10125 * frame-msw.c (msprinter_init_frame_1):
10126 * frame-msw.c (msprinter_init_frame_3):
10127 * frame-msw.c (console_type_create_frame_mswindows):
10129 implement new enable/disable frame methods.
10132 * frame-x.c (x_enable_frame):
10133 * frame-x.c (console_type_create_frame_x):
10134 implement new enable/disable frame methods.
10137 * frame.c (Fdisable_frame):
10138 * frame.c (syms_of_frame):
10139 * frame.h (struct frame):
10140 implement new enable/disable frame methods/functions.
10145 * glyphs-msw.c (mswindows_widget_instantiate):
10146 comment that initial-focus should be implemented.
10149 * glyphs-widget.c (check_valid_instantiator):
10150 * glyphs-widget.c (check_valid_orientation):
10151 * glyphs-widget.c (check_valid_tab_orientation):
10152 * glyphs-widget.c (check_valid_justification):
10153 * glyphs-widget.c (check_valid_border):
10154 * glyphs-widget.c (check_valid_callback):
10155 * glyphs-widget.c (check_valid_int_or_function):
10156 * glyphs-widget.c (check_valid_string_or_vector):
10157 * glyphs-widget.c (check_valid_item_list_1):
10158 * glyphs-widget.c (widget_validate):
10159 * glyphs-widget.c (combo_box_validate):
10160 * glyphs-widget.c (widget_instantiate):
10161 * glyphs-widget.c (syms_of_glyphs_widget):
10162 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10163 * glyphs-widget.c (image_instantiator_combo_box):
10164 * glyphs-widget.c (image_instantiator_scrollbar):
10165 * glyphs-widget.c (image_instantiator_tab_control):
10166 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10168 support (unimplemented) keyword initial-focus.
10169 reindent long macros.
10171 * glyphs-x.c (x_redisplay_widget):
10172 * glyphs-x.c (x_button_instantiate):
10173 * glyphs-x.c (x_button_redisplay):
10174 * glyphs-x.c (x_progress_gauge_instantiate):
10175 * glyphs-x.c (x_edit_field_instantiate):
10176 * glyphs-x.c (x_combo_box_instantiate):
10177 * glyphs-x.c (x_tab_control_instantiate):
10178 * glyphs-x.c (x_label_instantiate):
10180 * gui-x.c (button_item_to_widget_value):
10181 * gui-x.c (gui_items_to_widget_values_1):
10182 * gui-x.c (gui_item_children_to_widget_values):
10183 * gui-x.c (gui_items_to_widget_values):
10185 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10186 add new flag to gui-parsing routines to indicate whether
10187 accelerator specs should be supported.
10189 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10191 * glyphs.h (struct Lisp_Image_Instance):
10192 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10193 add initial-focus flag.
10196 * gui.c (syms_of_gui):
10197 * gui.c (vars_of_gui):
10198 clean up menu-no-selection-hook.
10201 support delete-dialog-box-hook.
10203 * lread.c (Fload_internal):
10204 * lread.c (locate_file_in_directory_mapper):
10208 * lrecord.h (struct toolbar_button):
10209 * lrecord.h (syms_of_toolbar):
10210 document how to create a new object.
10212 * menubar-msw.c (mswindows_char_is_accelerator):
10213 may be called on frames w/o menus.
10215 * menubar.c (vars_of_menubar):
10216 clean up :filter docs.
10223 * process-nt.c (validate_signal_number):
10224 * process-nt.c (signal_cannot_launch):
10225 * process-nt.c (nt_create_process):
10226 * process-nt.c (nt_send_process):
10227 * process-nt.c (nt_kill_child_process):
10228 * process-nt.c (nt_open_network_stream):
10229 * process-nt.c (syms_of_process_nt):
10231 delete quote-handling. call new lisp code that does it better.
10233 * process-unix.c (connect_to_file_descriptor):
10234 * process-unix.c (allocate_pty):
10235 * process-unix.c (unix_send_process):
10236 * process-unix.c (unix_kill_child_process):
10237 * process-unix.c (unix_open_network_stream):
10238 * process-unix.c (unix_open_multicast_group):
10242 * process.c (Fstart_process_internal):
10243 (2). need to canonicalize process path even if absolute.
10245 * select-msw.c (symbol_to_ms_cf):
10246 * select-msw.c (ms_cf_to_symbol):
10247 * select-msw.c (cf_is_autofreed):
10248 * select-msw.c (mswindows_destroy_selection):
10250 * select.c (syms_of_select):
10252 support dibv5, fix bugs. (from Mike Alexander)
10254 * select.c (Fget_selection_internal):
10255 * select.c (select_convert_out):
10258 * sysdep.c (xemacs_stat):
10261 * sysdep.c (mkdir):
10262 * sysdep.c (rmdir):
10263 but keep original stat() here because we provide encapsulation
10267 * sysfile.h (fstat):
10268 remove stat garbage.
10271 fix X/MSW conflict.
10272 don't include tchar.h. it's inappropriate because it makes
10273 compile-time distinctions when we want runtime distinctions.
10274 (we provide our own tchar replacements)
10277 use default object printer for toolbar-button.
10280 make sure we don't encapsulate.
10282 * window.c (vars_of_window):
10283 emphasize that temp-buffer-show-hook is obsolete.
10285 2000-08-05 Martin Buchholz <martin@xemacs.org>
10287 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10288 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10290 * events.c (Fevent_timestamp_lessp):
10291 Not 64-bit clean. Use EMACS_INT, not int.
10293 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
10295 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10296 unsigned int and changed the last enum to
10297 lrecord_type_last_built_in_type.
10298 (lrecord_implementations_table): changed prototype to know how
10299 long the array is supposed to be.
10300 (lrecord_type_count): new unsigned int to keep track of the
10301 current number of lisp lrecord types.
10302 (DEFINE_EXTERNAL_LRECORD):
10303 (DECLARE_EXTERNAL_LRECORD): Added these two for external
10304 dynamic-modules to declare new lisp types. They are the same
10305 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10306 int for each new type, and increment lrecord_type_count by 1.
10308 * alloc.c (lrecord_implementations_table): Changed to reference
10309 lrecord_type_last_built_in_type for the size of the array.
10310 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10312 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
10314 * glyphs.h (check_valid_item_list): Renamed from
10315 check_valid_item_list_1.
10317 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10319 * select.c (Qselect_coerce): New.
10320 * select.c (Vselection_coercion_alist): New.
10321 * select.c (syms_of_select): Declare.
10322 * select.c (get-selection-internal): Use it.
10323 Use the new select-coerce functionality.
10325 * select.c (select_coerce): New.
10326 * select.h (select_coerce): Declare.
10327 New function to coerce one type of data into another.
10329 2000-08-03 Martin Buchholz <martin@xemacs.org>
10331 * callproc.c (Fcall_process_internal):
10332 (Fcall_process_internal):
10333 * process-unix.c (unix_create_process):
10334 Save and restore the value of errno, so that error messages are accurate.
10336 2000-08-01 Martin Buchholz <martin@xemacs.org>
10338 * elhash.c (print_hash_table):
10339 Fix printing of hash tables to also use `key-and-value' instead of `t'.
10340 Prettify docstrings and indentation.
10342 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
10344 * window.c (Fwindow_pixel_edges): Subtract frame border and
10347 2000-07-31 Andy Piper <andy@xemacs.org>
10349 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10350 will acknowledge the change.
10352 * glyphs.h: declare tab_control_order_only_changed.
10354 * glyphs-x.c (x_tab_control_redisplay): use
10355 tab_control_order_only_changed.
10357 * glyphs-widget.c (tab_control_order_only_changed): new function.
10359 * glyphs-msw.c (mswindows_tab_control_redisplay): use
10360 tab_control_order_only_changed.
10362 * gui.c (gui_item_equal_sans_selected): new function.
10363 (gui_item_equal): use it.
10365 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10366 :properties in favor of :items..
10368 * glyphs-widget.c (check_valid_item_list): rename from
10369 check_valid_item_list_1.
10370 (check_valid_item_list_1): renamed.
10371 (combo_box_validate): deprecate :properties in favor of :items.
10372 (widget_instantiate): ditto.
10373 (tab_control_update): ditto.
10374 (image_instantiator_combo_box): ditto.
10375 (image_instantiator_tree_view): ditto.
10376 (image_instantiator_tab_control): ditto.
10377 (layout_post_instantiate): remove dead code.
10379 * print.c (debug_print_no_newline): only write to debugger if in
10382 * elhash.c (Fmake_hash_table): update doc string.
10384 * event-msw.c (mswindows_wnd_proc): don't allow processing of
10385 messages whilst in GC. This at least stops XEmacs crashing but has
10386 the potential for wierd behaviour.
10388 2000-07-31 Martin Buchholz <martin@xemacs.org>
10391 Make existence of s&m files optional.
10393 * s/bsd386.h: Remove HAVE_GETLOADAVG.
10394 * s/freebsd.h: Remove HAVE_GETLOADAVG.
10395 * s/gnu.h: Remove HAVE_GETLOADAVG.
10396 * s/netbsd.h: Remove HAVE_GETLOADAVG.
10397 * s/sol2.h: Remove HAVE_GETLOADAVG.
10398 * lisp.h: Remove getloadavg() declaration.
10400 Include <sys/loadavg.h> if available.
10401 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10402 * config.h.in: Group together getloadavg()-related macros.
10403 Use only configure-time tests to detect getloadavg().
10405 2000-07-30 Martin Buchholz <martin@xemacs.org>
10407 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10409 2000-07-25 Andy Piper <andy@xemacs.org>
10411 * syswindows.h: add tchar.h for native builds.
10413 * frame.c (syms_of_frame): remove set-glyph-image.
10415 * general-slots.h: add Qset_glyph_image.
10417 * glyphs-widget.c (layout_update): add domain arg to
10419 (syms_of_glyphs_widget): remove set-glyph-image.
10421 2000-07-23 Ben Wing <ben@xemacs.org>
10423 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10426 2000-07-22 Andy Piper <andy@xemacs.org>
10428 * symsinit.h: add syms_of_win32().
10430 * gui-msw.c (syms_of_gui_mswindows): remove
10431 Fmswindows_shell_execute.
10432 (Fmswindows_shell_execute): moved to win32.c.
10434 * emacs.c (main_1): add syms_of_win32 ().
10436 * win32.c (init_potentially_nonexistent_functions): rewrite in
10437 compiler-friendly terms.
10438 (Fmswindows_shell_execute): move here from gui-msw.c.
10439 (syms_of_win32): new.
10441 * device-msw.c (Fmswindows_printer_list): clean up args to
10443 Don't include tchar under cygwin or mingw.
10444 (msprinter_default_printer): make cygwin-friendly.
10446 2000-07-21 Andy Piper <andy@xemacs.org>
10448 * glyphs-widget.c (image_instantiator_tree_view): use tab
10449 control's update function.
10450 (layout_property): new function. Retrieve items.
10452 * glyphs-msw.c (mswindows_tree_view_redisplay): new
10453 function. Re-populate the tree view from the pending items.
10455 * glyphs.c (instantiate_image_instantiator): Make sure the domain
10456 is designated the parent if the domain is an image instance. This
10457 is needed so that dirtiness can be cascade up the hierarchy and
10458 thus for layout children to be redisplayed correctly.
10459 (allocate_image_instance): rename glyph -> parent.
10461 * redisplay.h: change redisplay_output_layout signature.
10463 * redisplay-msw.c (mswindows_output_display_block): use domain
10466 * redisplay-x.c (x_output_display_block): use domain arg.
10468 2000-07-10 Andy Piper <andy@xemacs.org>
10470 * window.c (Fset_window_configuration): add comment.
10472 * redisplay-output.c (compare_runes):
10473 (redisplay_output_subwindow): redisplay rather than update subwindow.
10474 (redisplay_output_layout): ditto.
10476 * redisplay-msw.c (mswindows_frame_output_end):
10477 (mswindows_frame_output_end): make defer window pos optional.
10479 * lisp.h: add Flast.
10481 * glyphs.h (struct image_instantiator_methods): add dest_mask top
10482 normalize method. Change update method to be for changed
10483 instantiators. Add redisplay method. Change signature of layout
10485 (struct Lisp_Image_Instance): add instantiator.
10486 (IMAGE_INSTANCE_INSTANTIATOR): new.
10487 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10488 (XIMAGE_INSTANCE_INSTANTIATOR): new.
10489 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10492 (find_instantiator_differences): new function.
10493 (Fset_instantiator_property): new convenience function.
10494 (check_image_instance_structure): strictly check for vector
10496 (normalize_image_instantiator): make non-static.
10497 (instantiate_image_instantiator): pass on dest_mask and use new
10498 signatures for image_instance_layout and friends.
10499 (mark_image_instance): mark the instantiator. Mark the subwindow
10500 face not the widget face.
10501 (image_instance_equal): add instantiator.
10502 (image_instance_hash): ditto.
10503 (allocate_image_instance): ditto.
10504 (Fset_image_instance_property): removed.
10505 (Fimage_instance_file_name): ditto.
10506 (Fcolorize_image_instance): ditto.
10507 (image_instance_layout): add offsets to be set.
10508 (update_image_instance): new function. update an image instance
10509 from its changed instantiator.
10510 (inherit_normalize): add dest_mask.
10511 (xbm_normalize): ditto.
10512 (xface_normalize): ditto.
10513 (xpm_normalize): ditto.
10514 (text_update): set_property -> update.
10515 (image_instantiate): use the glyph identity as a hash key, not the
10517 (glyph_width): use new image_instance_layout signature.
10518 (glyph_ascent): ditto.
10519 (glyph_descent): ditto.
10520 (glyph_height): ditto.
10521 (glyph_query_geometry): ressurrect.
10522 (glyph_layout): ditto.
10523 (redisplay_subwindow): update -> redisplay.
10524 (syms_of_glyphs): add Fset_instantiator_property.
10525 (image_instantiator_format_create): set_property -> update.
10528 (autodetect_normalize): add dest_maks to signature.
10529 (x_redisplay_subwindow): update -> redisplay.
10530 (x_redisplay_widget): ditto.
10531 (x_button_redisplay): ditto.
10532 (x_progress_gauge_redisplay): ditto.
10533 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10535 (console_type_create_glyphs_x): update -> redisplay.
10536 (image_instantiator_format_create_glyphs_x): ditto.
10539 (check_valid_instantiator): disallow glyphs in the instantiator,
10540 they must now be vectors.
10541 (check_valid_instantiator_list): ditto.
10542 (glyph_instantiator_to_glyph): use internal symbol rather than
10544 (widget_update): renamed from widget_set_property. Call cascaded
10546 (redisplay_widget): renamed from update_widget.
10547 (widget_layout): image_instance_layout now takes position as well
10549 (widget_normalize): ditto.
10550 (widget_instantiate): ditto.
10551 (tab_control_query_geometry) ditto.:
10552 (tab_control_update): renamed from tab_control_set_property.
10553 (progress_gauge_update): set_property -> update.
10554 (layout_normalize): rewrite so that child instantiators are
10556 (layout_update): new function. Create glyphs from the normalized
10557 children and cope with any other layout keywords. We do not
10558 instantiate children here that will be take care of by
10559 redisplay_output_layout.
10560 (layout_instantiate): call layout_update and not much else.
10561 (layout_post_instantiate): not sure whether this is needed
10563 (layout_query_geometry): query glyph geometry rather than
10564 image_instance geometry.
10565 (layout_layout): set offsets from pass in parameters. Use glyph
10566 geometry and layout functions rather than image instance ones.
10567 (native_layout_layout): ditto.
10568 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10569 (image_instantiator_widget): set_property -> update.
10570 (image_instantiator_buttons): ditto.
10571 (image_instantiator_progress_guage): ditto.
10572 (image_instantiator_tab_control): ditto.
10573 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10574 (image_instantiator_layout): add update method.
10576 * glyphs-msw.c (bmp_normalize):
10577 (mswindows_resource_normalize): add dest_mask so that it can be
10578 proprogated by layout_normalize.
10579 (begin_defer_window_pos): make optional because it may not be the
10580 right thing to do and it introduces differences with X.
10581 (mswindows_unmap_subwindow): ditto.
10582 (mswindows_map_subwindow): ditto.
10583 (mswindows_redisplay_subwindow): renamed from
10584 mswindows_update_subwindow.
10585 (mswindows_redisplay_widget): ditto.
10586 (mswindows_button_redisplay): renamed from
10587 mswindows_button_update. Update is now what the instantiation
10588 function does for a changed instantiator.
10589 (mswindows_progress_gauge_instantiate): set the progress value
10590 here if appropriate.
10591 (mswindows_tab_control_redisplay): cope with re-ordering of the
10592 members of the tab widget by simply selecting the new top
10593 widget. This makes things appear ok if you click on a tab.
10594 (mswindows_combo_box_instantiate): image_instance_layout now takes
10595 position as well as size.
10596 (mswindows_progress_gauge_redisplay): renamed from
10597 mswindows_progress_gauge_update.
10598 (console_type_create_glyphs_mswindows): fix update -> redisplay.
10599 (image_instantiator_format_create_glyphs_mswindows): ditto.
10601 * glyphs-eimage.c (jpeg_normalize):
10604 (tiff_normalize): add dest_mask so that it can be proprogated by
10608 (print_hash_table):
10609 (hash_table_weakness_validate):
10610 (decode_hash_table_weakness):
10611 (Fhash_table_weakness):
10612 (Fhash_table_type):
10613 (syms_of_elhash): use Ben's naming scheme for hashtable types..
10615 * console.h (struct console_methods): move update_* to
10618 2000-07-20 Ben Wing <ben@xemacs.org>
10620 * *.[ch] (XSETOBJ): remove unused middle argument.
10621 lisp-disunion.h: correct wrap_object() to one argument.
10623 2000-07-15 Ben Wing <ben@xemacs.org>
10626 * s/cygwin32.h (CYGWIN_CONV_PATH):
10627 Add missing logb prototype for v1.1.
10628 Use post-b20 names and alias to pre-b20 names when pre-b20.
10630 * s/windowsnt.h: [5].
10632 2000-07-15 Ben Wing <ben@xemacs.org>
10634 * Makefile.in.in (x_objs):
10635 * Makefile.in.in (sheap_objs):
10636 * Makefile.in.in (objs):
10637 added win32.o, cosmetic cleanups.
10639 * alloc.c (Fmake_byte_code):
10640 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10641 etc. macros which declare their own args now.
10643 * alloc.c (syms_of_alloc):
10644 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10647 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10649 * buffer.c (Fget_file_buffer):
10650 Fixed GCPRO problem.
10652 * buffer.c (get_truename_buffer):
10653 Fixed comment about GC checking.
10655 * buffer.c (syms_of_buffer):
10656 Undeclared those dedicated frame funs.
10660 Define convenience macros for internal/external conversions.
10661 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10662 and Qenvironment_variable_encoding for cleaner code.
10665 Remove dedicated-frame; in lisp.
10667 * bytecode.c (funcall_compiled_function):
10670 * bytecode.c (syms_of_bytecode):
10674 * console-msw.c (mswindows_show_console): Rewrote.
10676 * console-msw.c (Fmswindows_debugging_output): New.
10677 Sends to OutputDebugString (special MSWin debugger interface).
10679 * console-msw.c (Fmswindows_message_box):
10680 Fixed stupid bugs so it works when called from kill-emacs.
10682 * console-msw.c (syms_of_console_mswindows):
10683 Declare Fmswindows_debugging_output.
10686 New MSWin prototypes.
10688 * console-msw.h (struct mswindows_frame):
10689 New entry last-click-mods for improved button-modifier support.
10691 * console-msw.h (FRAME_MSWINDOWS_POPUP):
10692 New struct entry `popup' with corresponding accessor.
10695 * console-x.c (split_up_display_spec):
10696 * console-x.c (get_display_arg_connection):
10697 * console-x.c (x_semi_canonicalize_console_connection):
10698 * console-x.c (x_canonicalize_device_connection):
10699 [[[6]]]: Change char to more specific type.
10700 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10702 * console-x.c (x_semi_canonicalize_console_connection):
10703 * console-x.c (x_canonicalize_device_connection):
10704 [[[9]]]: Fix up error signalling to use new structured error system.
10707 [[[4]]]: Define codesys aliases:
10708 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10709 Qx_color_name_encoding, Qx_display_name_encoding.
10711 * console.h (struct console_methods):
10712 New method make_dialog_box_internal supersedes older
10713 popup_dialog_box method.
10716 Define many new errors, part of new structured errors.
10718 * data.c (init_errors_once_early):
10719 * data.c (syms_of_data):
10722 * device-msw.c (mswindows_init_device):
10723 [[[5]]]: Cleanup to support NT 3.51.
10725 * device-msw.c (decode_devmode): Cleanup.
10727 * device-msw.c (mswindows_handle_print_setup_dialog_box):
10728 * device-msw.c (mswindows_handle_print_dialog_box):
10729 * device-msw.c (mswindows_handle_page_setup_dialog_box):
10730 * device-msw.c (syms_of_device_mswindows):
10731 Delete the dialog box primitives recently introduced by Kirill and
10732 instead interface to general dialog box interface.
10735 * device-x.c (compute_x_app_name):
10736 * device-x.c (x_init_device):
10737 * device-x.c (Fx_valid_keysym_name_p):
10738 * device-x.c (Fx_set_font_path):
10742 * device.h (wrap_device): New.
10743 First of its kind; meant to replace XSETDEVICE.
10745 * dialog-msw.c: Many file-dialog symbols.
10747 * dialog-msw.c (mswindows_register_popup_frame): New.
10748 * dialog-msw.c (mswindows_is_dialog_msg): New.
10749 For supporting kbd traversal in dialog boxes.
10751 * dialog-msw.c (dialog_proc):
10752 Support hitting ESC in dialogs.
10754 * dialog-msw.c (struct):
10755 Common dialog box errors.
10757 * dialog-msw.c (handle_file_dialog_box): New.
10758 Add file dialog code.
10760 * dialog-msw.c (handle_question_dialog_box):
10761 Redo existing code to support new question dialog syntax.
10763 * dialog-msw.c (console_type_create_dialog_mswindows):
10764 We support new dialog console method.
10766 * dialog-msw.c (syms_of_dialog_mswindows):
10767 * dialog-msw.c (vars_of_dialog_mswindows):
10768 New file dialog symbols, vars.
10771 * dialog-x.c (maybe_run_dbox_text_callback):
10772 * dialog-x.c (dbox_descriptor_to_widget_value):
10773 * dialog-x.c (x_make_dialog_box_internal):
10774 * dialog-x.c (console_type_create_dialog_x):
10775 Mule-ize entire file.
10776 Redo to support question dialog syntax.
10780 * dialog.c (Fmake_dialog_box_internal):
10781 * dialog.c (syms_of_dialog):
10782 Kill old popup-dialog-box, replace with new primitive.
10783 Just call device method or signal error.
10785 * eldap.c (Fldap_open):
10786 * eldap.c (Fldap_search_basic):
10787 * eldap.c (Fldap_add):
10788 * eldap.c (Fldap_modify):
10793 * emacs.c (make_arg_list_1):
10794 * emacs.c (make_arg_list):
10795 Mule-ize call to dll_init().
10799 * emacs.c (make_argc_argv):
10800 * emacs.c (free_argc_argv):
10801 * emacs.c (init_cmdargs):
10802 * emacs.c (main_1):
10803 * emacs.c (Fkill_emacs):
10804 * emacs.c (Fdump_emacs):
10805 Update comments about what can be used in syms_* etc.
10806 Call init_win32() when necessary.
10807 Fix up MS Win dialog box in kill-buffer to actually work right.
10818 * eval.c (condition_case_3):
10820 * eval.c (function_argcount):
10821 * eval.c (funcall_lambda):
10824 * eval.c (type_error): New.
10825 * eval.c (maybe_type_error): New.
10826 * eval.c (continuable_type_error): New.
10827 * eval.c (maybe_continuable_type_error): New.
10828 * eval.c (type_error_with_frob): New.
10829 * eval.c (maybe_type_error_with_frob): New.
10830 * eval.c (continuable_type_error_with_frob): New.
10831 * eval.c (maybe_continuable_type_error_with_frob): New.
10832 New functions for use with structured errors.
10835 * event-Xt.c (x_event_to_emacs_event):
10836 Buttons are now modifiers too.
10838 * event-Xt.c (emacs_Xt_current_event_timestamp):
10839 Implement new event method.
10840 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10843 * event-msw.c (ntpipe_shove_writer): [5].
10844 * event-msw.c (mswindows_enqueue_mouse_button_event):
10845 * event-msw.c (mswindows_drain_windows_queue):
10846 * event-msw.c (mswindows_wnd_proc): [7].
10847 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10848 * event-msw.c (mswindows_modifier_state):
10849 Throughout: support new button modifiers.
10851 * event-msw.c (emacs_mswindows_current_event_timestamp):
10852 Implement new event method.
10853 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10856 * event-stream.c (event_stream_current_event_timestamp): New.
10857 * event-stream.c (maybe_kbd_translate): New functionality.
10858 * event-stream.c (vars_of_event_stream):
10859 Document new kbd-translate-table functionality.
10861 * event-stream.c (Fcurrent_event_timestamp): New.
10862 New primitive for use in fabricated events.
10863 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10865 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10868 * events.c (Fmake_event):
10869 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10873 * events.c (format_event_object): fix gcc warnings.
10875 * events.c (Fevent_timestamp): Document new primitives.
10877 * events.c (TIMESTAMP_HALFSPACE): New.
10879 * events.c (Fevent_timestamp_lessp): New. New primitive for
10880 comparing timestamps correctly (half-space algorithm).
10882 * events.c (Fevent_modifier_bits): Doc fix.
10884 * events.c (Fevent_modifiers): Major doc addition.
10885 * events.c (event_x_y_pixel_internal): Typo fix.
10886 * events.c (syms_of_events): Declare new primitives.
10889 Update long comment for button modifiers, timestamps.
10891 * events.h (struct event_stream):
10892 New current_event_timestamp method.
10895 * extents.c (extent_in_region_p):
10896 * extents.c (decode_extent):
10897 * extents.c (Fset_extent_parent):
10898 * extents.c (decode_map_extents_flags):
10902 * extents.c (struct extent_at_arg):
10903 * extents.c (decode_extent_at_flag):
10904 * extents.c (extent_at_mapper):
10905 * extents.c (extent_at_bytind):
10906 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10907 * extents.c (Fextents_at): New primitive. [9].
10908 * extents.c (symbol_to_glyph_layout): [9].
10909 Support new primitive `extents-at'.
10912 * extents.c (get_text_property_bytind):
10913 extent_at_bytind has another arg.
10916 * extents.c (syms_of_extents): New primitive.
10918 * file-coding.c (Fmake_coding_system): [1].
10919 * file-coding.c (subsidiary_coding_system): fix gcc warning
10920 * file-coding.c (syms_of_file_coding): [2].
10922 * fileio.c (Fexpand_file_name):
10923 * fileio.c (Fsysnetunam):
10924 * fileio.c (Ffile_exists_p):
10925 * fileio.c (Ffile_executable_p):
10926 * fileio.c (Fverify_visited_file_modtime):
10929 * fileio.c (syms_of_fileio): [2].
10931 * filelock.c (lock_file_1):
10932 * filelock.c (current_lock_owner):
10933 * filelock.c (lock_if_free):
10934 * filelock.c (lock_file):
10935 * filelock.c (unlock_file):
10938 * fns.c (concat): Fix gcc warning.
10941 * fns.c (Fold_member):
10943 * fns.c (Fold_memq):
10944 * fns.c (memq_no_quit):
10946 * fns.c (Fold_assoc):
10948 * fns.c (Fold_assq):
10949 * fns.c (assq_no_quit):
10951 * fns.c (Fold_rassoc):
10953 * fns.c (Fold_rassq):
10954 * fns.c (rassq_no_quit):
10956 * fns.c (Fold_delete):
10958 * fns.c (Fold_delq):
10959 * fns.c (delq_no_quit):
10960 * fns.c (Fremassoc):
10961 * fns.c (Fremassq):
10962 * fns.c (remassq_no_quit):
10963 * fns.c (Fremrassoc):
10964 * fns.c (Fremrassq):
10965 * fns.c (remrassq_no_quit):
10966 * fns.c (Freverse):
10970 * frame-msw.c (mswindows_init_frame_1):
10971 * frame-msw.c (mswindows_delete_frame):
10972 Register popups with dialog code so keyboard traversing works.
10974 * frame-tty.c (tty_raise_frame_no_select): [1].
10977 * frame-x.c (x_set_frame_text_value):
10978 * frame-x.c (x_set_frame_properties):
10979 * frame-x.c (x_create_widgets):
10983 * frame.c (Fmouse_pixel_position): Minor doc fixes.
10985 * frame.h (wrap_frame): New.
10986 Macro like wrap_device.
10989 * general.c (SYMBOL):
10990 * general.c (syms_of_general):
10991 Major reorg. This is now just a wrapper and symbols themselves
10992 are listed in general-slots.h.
10994 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10995 * glyphs-msw.c (mswindows_resource_instantiate): [5].
10997 * glyphs-msw.c (mswindows_native_layout_instantiate):
10998 Add DS_CONTROL so keyboard traversal will work.
11001 * glyphs-widget.c (syms_of_glyphs_widget):
11002 Move some symbols to general-slots.h.
11005 * glyphs-x.c (xbm_instantiate_1):
11006 * glyphs-x.c (x_xbm_instantiate):
11007 * glyphs-x.c (x_xface_instantiate):
11008 * glyphs-x.c (autodetect_instantiate):
11009 * glyphs-x.c (cursor_font_instantiate):
11010 * glyphs-x.c (x_update_widget):
11011 * glyphs-x.c (x_widget_instantiate):
11012 * glyphs.c (bitmap_to_lisp_data):
11013 * glyphs.c (pixmap_to_lisp_data):
11016 * glyphs.c (syms_of_glyphs):
11020 * gui-x.c (print_widget_value):
11021 * gui-x.c (menu_separator_style_and_to_external):
11022 * gui-x.c (add_accel_and_to_external):
11023 * gui-x.c (button_item_to_widget_value):
11024 * gui-x.c (gui_items_to_widget_values_1):
11025 * gui-x.c (gui_items_to_widget_values):
11026 * gui-x.c (syms_of_gui_x):
11027 * gui-x.c (vars_of_gui_x):
11028 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
11032 Muleize, prototype changes matching gui-x.c.
11035 * gui.c (separator_string_p):
11036 * gui.c (gui_item_add_keyval_pair):
11037 * gui.c (make_gui_item_from_keywords_internal):
11038 * gui.c (signal_too_long_error):
11039 * gui.c (parse_gui_item_tree_item):
11040 * gui.c (syms_of_gui):
11041 * gui.c (vars_of_gui):
11043 menu-no-selection-hook moved here (used by MSWin).
11044 Move some symbols to general-slots.h.
11048 * insdel.c (get_buffer_pos_char):
11049 * insdel.c (get_buffer_range_char):
11052 * keymap.c (keymap_lookup_directly):
11053 * keymap.c (keymap_store):
11054 * keymap.c (ensure_meta_prefix_char_keymapp):
11055 * keymap.c (describe_map):
11057 Support new button modifiers.
11059 * lisp-disunion.h (wrap_object):
11060 * lisp-disunion.h (XSETOBJ):
11061 Rename make_obj to wrap_object.
11064 * lisp-union.h (make_int):
11065 * lisp-union.h (make_char):
11066 Support wrap_object.
11069 * lisp.h (LIST_LOOP):
11070 * lisp.h (EXTERNAL_LIST_LOOP):
11071 * lisp.h (LIST_LOOP_2):
11072 * lisp.h (EXTERNAL_LIST_LOOP_1):
11073 * lisp.h (EXTERNAL_LIST_LOOP_2):
11074 * lisp.h (EXTERNAL_LIST_LOOP_3):
11075 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11076 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11077 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11078 * lisp.h (EXTERNAL_ALIST_LOOP_5):
11079 * lisp.h (EXTERNAL_ALIST_LOOP_6):
11080 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11081 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11082 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11083 * lisp.h (struct Lisp_Symbol):
11084 * lisp.h (maybe_continuable_error_with_frob):
11085 Fix up section comments.
11086 Add new types for char to indicate usage.
11087 Delete symbols auto-generated from general-slots.h.
11088 Add prototypes for structured error functions.
11089 Add long comments describing looping macros and change interface
11090 so that lvalues are automatically declared.
11091 Add NO_DECLARE macro in case callers want to declare lvalues
11094 * lread.c (read_syntax_error):
11095 * lread.c (continuable_read_syntax_error):
11096 * lread.c (read_structure):
11097 * lread.c (sequence_reader):
11098 * lread.c (read_list_conser):
11099 * lread.c (read_compiled_function):
11100 Rename syntax_error and continuable_syntax_error to avoid clash
11101 with same-named structured error functions.
11103 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11104 * menubar-msw.c (populate_menu_add_item):
11105 * menubar-msw.c (populate_or_checksum_helper):
11110 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11111 Mule-ize whole file.
11113 * menubar.c (Fnormalize_menu_item_name): Add optimization.
11115 * mule-charset.c (Fmake_charset):
11116 * mule-wnnfns.c (Fwnn_set_param):
11119 * ntproc.c (create_child):
11120 * ntproc.c (Fwin32_set_current_locale):
11121 Add comments portending doom.
11124 * objects-msw.c (old_font_enum_callback_2):
11125 * objects-msw.c (font_enum_callback_1):
11126 * objects-msw.c (mswindows_enumerate_fonts):
11130 * objects-x.c (allocate_nearest_color):
11131 * objects-x.c (x_parse_nearest_color):
11132 * objects-x.c (x_initialize_color_instance):
11133 * objects-x.c (x_print_color_instance):
11134 * objects-x.c (x_finalize_color_instance):
11135 * objects-x.c (x_valid_color_name_p):
11136 * objects-x.c (x_initialize_font_instance):
11137 * objects-x.c (x_print_font_instance):
11138 * objects-x.c (valid_x_font_name_p):
11139 * objects-x.c (truename_via_FONT_prop):
11140 * objects-x.c (truename_via_random_props):
11141 * objects-x.c (truename_via_XListFonts):
11142 * objects-x.c (x_font_truename):
11143 * objects-x.c (x_font_instance_truename):
11144 * objects-x.c (x_font_instance_properties):
11145 * objects-x.c (x_list_fonts):
11146 * objects-x.c (x_find_charset_font):
11147 Mule-ize entire file.
11154 * print.c (std_handle_out_external):
11155 * print.c (debug_print_no_newline):
11156 * print.c (syms_of_print):
11157 Output to all debugger kinds in debug-print.
11158 Fix console-output code under MSWin to actually work.
11160 * process-nt.c (send_signal):
11161 * process-nt.c (nt_create_process):
11162 Use newer Unicode macros.
11164 * process-unix.c (unix_create_process):
11165 * process-unix.c (unix_canonicalize_host_name):
11166 * process-unix.c (unix_open_network_stream):
11172 * search.c (syms_of_search):
11175 * select-msw.c (mswindows_destroy_selection):
11178 * select-x.c (symbol_to_x_atom):
11181 * select.c (syms_of_select):
11184 * sound.c (Fplay_sound_file):
11188 * specifier.c (decode_specifier_type):
11189 * specifier.c (Fvalid_specifier_locale_type_p):
11190 * specifier.c (check_valid_locale_or_locale_type):
11191 * specifier.c (decode_locale):
11192 * specifier.c (decode_locale_type):
11193 * specifier.c (decode_locale_list):
11194 * specifier.c (check_valid_domain):
11195 * specifier.c (decode_specifier_tag_set):
11196 * specifier.c (Fcanonicalize_tag_set):
11197 * specifier.c (Fdefine_specifier_tag):
11198 * specifier.c (Fspecifier_tag_predicate):
11199 * specifier.c (check_valid_inst_list):
11200 * specifier.c (check_valid_spec_list):
11201 * specifier.c (decode_how_to_add_specification):
11202 * specifier.c (check_modifiable_specifier):
11203 * specifier.c (specifier_add_spec):
11204 * specifier.c (boolean_validate):
11205 * specifier.c (display_table_validate):
11208 * specifier.c (syms_of_specifier):
11209 Move some symbols to general-slots.h.
11213 * symbols.c (Fmapatoms):
11214 * symbols.c (Fapropos_internal):
11217 * symbols.c (set_default_buffer_slot_variable):
11218 * symbols.c (set_default_console_slot_variable):
11221 * symbols.c (defsymbol_massage_name_1):
11222 * symbols.c (defkeyword_massage_name):
11223 * symbols.c (deferror_1):
11224 * symbols.c (deferror):
11225 * symbols.c (deferror_massage_name_and_message):
11227 * symeval.h (DEFSYMBOL):
11228 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11230 * symbols.c (syms_of_symbols):
11234 * symsinit.h (init_win32): New.
11235 Also new is syms_of_dialog_mswindows.
11238 Add new Unicode macros, missing Cygwin wide-char functions,
11239 convenience conversion macros for Qmswindows_tstr, macros for
11240 encapsulating required MSWin <-> Cygwin filename conversions,
11241 prototype for dynamically-extracted (not in NT 3.51) functions.
11246 * tooltalk.c (Fadd_tooltalk_message_arg):
11247 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11248 * tooltalk.c (Fadd_tooltalk_pattern_arg):
11251 * tooltalk.c (syms_of_tooltalk):
11255 * unexnt.c (unexec):
11256 Fix up headers, declaration of unexec() to be more standard.
11258 2000-07-20 Martin Buchholz <martin@xemacs.org>
11260 * offix.h: Revert change to guard macros - they're used in offix.c!
11262 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11264 * lisp.h: Defsubred Fdelete.
11266 * console-msw.h: (msprinter_default_printer): Added.
11268 * console-msw.c (msprinter_canonicalize_console_connection):
11269 (msprinter_canonicalize_device_connection): Added.
11271 * device-msw.c (msprinter_default_printer):
11272 (Fmswingows_get_default_printer):
11273 (signal_enum_priner_error):
11274 (Fmswingows_printer_list): Added.
11276 2000-07-19 Martin Buchholz <martin@xemacs.org>
11278 * XEmacs 21.2.35 is released.
11280 2000-07-19 Martin Buchholz <martin@xemacs.org>
11282 * select-x.c (x_handle_selection_request):
11283 Text selected in xemacs and pasted into xterm failed to appear.
11284 Spelling fixes and cosmetic changes.
11286 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11288 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11289 XEmacs frame (fix for doubling chars in dialog boxes).
11291 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11293 * select.c (select_convert_in, select_convert_out):
11294 Don't call intern() every time.
11296 * select.c (Qselect_convert_in, Qselect_convert_out): New.
11297 * select.c (vars_of_select): Initialise them.
11299 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11301 * select.c (selection-coercible-types): New.
11303 * select.c (own-selection-internal):
11304 * select.c (get-selection-internal):
11305 MULE bug fix - these should default to COMPOUND_TEXT and not
11306 STRING for MULE. I think.
11308 * select.c (select_convert_out): Use selection-coercible-types
11309 to find types that we can attempt to perform coercions on.
11311 2000-07-18 Martin Buchholz <martin@xemacs.org>
11315 Add coding: cookie to identify encoding.
11317 * mule-canna.c (CANNA_mode_keys): make static.
11318 Use proper prototypes, even for functions of no arguments.
11319 Remove external prototype for Fding().
11321 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11323 * select.c (syms_of_select): Add missing DEFSUBR.
11325 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11327 * select.c (get_selection_internal, own_selection_internal):
11328 Make the type default to STRING, rather than placing a nil type
11329 into Vselection_alist.
11331 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11333 * gpmevent.c (tty_selection_exists_p):
11334 * gpmevent.c (tty_own_selection):
11335 Updated parameter lists.
11337 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11339 * select.h (selection-alist): Removed declaration.
11341 * select.h (get_local_selection):
11342 * select.c (get_local_selection):
11345 * select.h (convert_selection): Removed declaration.
11346 * select.c (convert_selection): Removed.
11347 This function belongs in Lisp.
11349 * select.h (select_convert_in): Declare.
11350 * select.h (select_convert_out): Declare.
11351 * select.c (select_convert_in): New.
11352 * select.c (select_convert_out): New.
11353 New conversion functions for other files to call.
11355 * select.h (select_notify_buffer_kill): Declare.
11356 * select.c (select_notify_buffer_kill): New.
11357 New functions that get called from kill-buffer.
11359 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11360 X-specific lisp code.
11362 * select.h: Declare some of the lisp-visible functions for
11365 * select.c (clean_local_selection_data): Removed. This was
11366 a disgusting function, and previously should have been in
11367 select-x.c in any case. The functionality is now provided
11368 in select-convert-from-integer (select.el).
11370 * select.c (available-selection-types): Fixed stupidity where
11371 INTEGER and ATOM got added twice. Also add STRING when we see an
11374 * select.c (get-selection-internal): Removed symbol stripping. No
11375 longer causes conversion when data comes from the internal cache.
11377 * select.c (syms_of_select): Added new functions.
11379 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11380 error checking - previously this called abort!
11382 * select-x.c (x_own_selection): Changed comment.
11384 * select-x.c (x_handle_selection_request): Use select_convert_out.
11385 Don't mess with selection-alist; it's an internal variable of select.c.
11387 * select-x.c (x_get_foreign_selection): Use select_convert_in.
11389 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11390 rather than messing with selection-alist.
11392 * select-msw.c (mswindows_get_foreign_selection):
11393 Use TO_INTERNAL_FORMAT rather than hacking.
11395 2000-07-14 Martin Buchholz <martin@xemacs.org>
11397 * process-unix.c (unix_open_multicast_group):
11398 (unix_open_multicast_group): Remove useless casts.
11400 2000-07-13 Martin Buchholz <martin@xemacs.org>
11402 * sound.c (Fplay_sound): Fix `unused variable' warning.
11404 * emacs.c (main): Use correct type for _environ on SCO5.
11406 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11408 * console.h (own_selection_method):
11409 * console.h (selection_exists_p_method):
11410 * console.h (available_selection_types_method): New.
11411 * console.h (register_selection_data_type_method): New.
11412 * console.h (selection_data_type_name): New.
11414 * console-msw.h (mswindows_destroy_selection): Declare it. New
11415 function & alist to track GlobalAlloc()'d handles that need
11416 releasing when the clipboard data gets replaced or emptied.
11418 * event-msw.c (mswindows_wnd_proc): Call it.
11420 * lisp.h, general.c (Qappend): New symbol representing a
11423 * select.c (own-selection-internal):
11424 * select.c (selection-exists-p):
11425 * select.c (available-selection-types): New.
11426 * select.c (register-selection-data-type): New.
11427 * select.c (selection-data-type-name): New. New functions to deal
11428 with device-specific selection data formats.
11429 * select.c (selection-converter-out-alist): Renamed.
11430 * select.c (selection-converter-in-alist): New.
11431 * select.c (selection-appender-alist): New. Added new alists.
11432 * select.c (syms_of_select, vars_of_select): Added new symbols &
11434 * select.c (get_local_selection): Split.
11435 * select.c: Removed spurious type checking - selections may now be
11436 of any type, not just strings.
11437 * select.c (own-selection-internal):
11439 * select.h, select.c (convert_selection): New. Created
11440 convert_selection() function based on get_local_selection().
11441 * select.h, select.c (QCF_*): New symbols representing mswindows
11443 * select.h, select.c (Qreplace_all, Qreplace_existing): New
11444 symbols representing `how-to-add' modes.
11446 * select-msw.c (x_sym_p): New.
11447 * select-msw.c (symbol_to_ms_cf): New.
11448 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11449 symbols & clipboard formats. Can also handle string names.
11450 * select-msw.c (mswindows_own_selection):
11451 * select-msw.c (mswindows_selection_exists_p):
11452 Added `data-type' parameter. Use it.
11453 * select-msw.c (mswindows_available_selection_types): New.
11454 * select-msw.c (mswindows_register_selection_data_type): New.
11455 * select-msw.c (mswindows_selection_data_type_name): New.
11456 * select-msw.c (mswindows_own_selection):
11457 * select-msw.c (mswindows_get_foreign_selection):
11458 * select-msw.c (mswindows_selection_exists_p): Rewrote.
11459 * select-msw.c (console_create_select_mswindows): Added new methods.
11460 * select-msw.c (mswindows_destroy_selection): New.
11461 * select-msw.c (Vhandle_alist): New list.
11462 * select-msw.c (mswindows_own_selection):
11464 * select-x.c (x_own_selection):
11465 * select-x.c (x_selection_exists_p):
11466 * select-x.c: Added some comments about maybe using new
11468 * select-x.c (x_own_selection):
11470 * specifier.c: Remove definition of Qappend (now in general.c)
11471 * specifier.c (syms_of_specifier): Remove Qappend.
11473 2000-07-12 Martin Buchholz <martin@xemacs.org>
11475 * config.h.in: Add socklen_t.
11477 * s/decosf4-0.h: No special compiler flags needed or desired.
11478 In particular, undefine _BSD for DEC OSF 4.0.
11480 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11482 * redisplay-msw.c (msprinter_frame_output_end): Added.
11483 (console_type_create_redisplay_mswindows): Referred the above.
11485 * frame.c (setup_frame_without_minibuffer): Do not create a
11486 default minibuffer frame on a printer device.
11488 * frame-msw.c (apply_dc_geometry): Added.
11489 (msprinter_start_page):
11490 (msprinter_init_frame_3):
11491 (msprinter_eject_page): Use it.
11493 * console-msw.h (struct msprinter_frame): Added pix_left and top,
11494 and removed residual duplex and orientation properties.
11496 2000-07-11 Martin Buchholz <martin@xemacs.org>
11498 * eval.c (function_argcount): Work around a DEC CC compiler bug.
11500 * unexalpha.c: Remove system prototypes from C sources!
11502 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
11504 * eval.c: Remove references to M-x edit-options in DEFUNs for
11505 `defvar' and `defconst'.
11507 2000-07-09 Martin Buchholz <martin@xemacs.org>
11509 * config.h.in: Remove SMART_INCLUDE hackery.
11511 PostgreSQL hacking:
11512 * config.h.in: Don't use SMART_INCLUDE.
11514 * postgresql.h: Include libpq-fe.h here. Fix typo.
11515 * inline.c: Simply #include "postgresql.h"
11517 - Don't use SMART_INCLUDE
11518 - Use simply "const".
11519 - Use standard doc string conventions.
11520 - Use correct type for result of PQstatus.
11522 2000-07-09 Martin Buchholz <martin@xemacs.org>
11524 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11526 C++ compilation changes.
11527 * config.h.in (EXTERN_C): Define.
11528 * config.h.in (not): This is also a C++ keyword.
11529 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11530 * cm.c: Use EXTERN_C.
11531 * redisplay-tty.c: Use EXTERN_C.
11532 * sysdep.c: Use EXTERN_C. Remove Gould support.
11534 2000-07-09 Martin Buchholz <martin@xemacs.org>
11536 * general.c: Remove duplicate definition for Qfunction.
11538 2000-07-08 Ben Wing <ben@xemacs.org>
11540 * device-msw.c (msprinter_init_device):
11541 * device-msw.c (sync_printer_with_devmode):
11542 * device-msw.c (handle_devmode_changes):
11543 * device-msw.c (print_dialog_worker):
11544 * device-msw.c (Fmsprinter_apply_settings):
11545 * device-msw.c (hash_devmode):
11546 * device-msw.c (Fmsprinter_settings_despecialize):
11547 use Qmswindows_tstr, not Qctext.
11549 * vm-limit.c (check_memory_limits):
11550 avoid infinite loop printing warning messages.
11552 2000-07-05 Craig Lanning <lanning@scra.org>
11554 * Makefile.in.in: Add support for including the Windows resources
11555 when building with the cygwin and mingw targets.
11557 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11558 not set or not correct.
11559 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11560 (init_initial_directory): Don't try to use $PWD on the
11561 WIN32_NATIVE target.
11564 [[Add -mwindows to eliminate console window.]] not required --ben
11565 (HAVE_NATIVE_SOUND): removed; now handled by configure.
11566 (MAIL_USE_POP): removed; now handled by configure.
11568 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11569 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11570 (HAVE_NATIVE_SOUND): removed; now handled by configure.
11571 (MAIL_USE_POP): removed; now handled by configure.
11572 (ENCAPSULATE_STAT): from Dan Holmsand, added.
11573 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11574 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11576 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11577 up from <winsock.h> via systime.h.
11578 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11579 (getpagesize): from Dan Holmsand, added.
11580 Added #endif which was left dangling by Ben's mega patch; added
11581 comment to help prevent this in the future.
11583 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11585 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11587 * console-msw.h (struct mswindows_device): Removed unnecessary
11588 cached device geometry values.
11589 Added update_tick and an accessor macro.
11590 (Lisp_Devmode): Added lrecord declaration.
11591 (struct msprinter_device): Contain devmode as a Lisp object.
11592 Added mswindows_get_selected_frame_hwnd();
11594 * console.h (struct console_methods): Indentation nitpicking.
11596 * device-msw.c (mswindows_init_device): Do not initialize geometry
11597 cache. Initialize update tick.
11598 (mswindows_device_system_metrics): Ask the device for its geometry.
11599 (global_free_2_maybe):
11600 (devmode_to_hglobal):
11601 (handle_printer_changes):
11602 (ensure_not_printing):
11603 (print_dialog_worker):
11604 (Fmsprinter_print_setup_dialog):
11605 (Fmsprinter_print_dialog):
11606 (plist_get_margin):
11607 (plist_set_margin):
11608 (Fmsprinter_page_setup_dialog): Added functions.
11609 (sync_printer_with_devmode):
11610 (handle_devmode_changes):
11611 (Fmsprinter_get_settings):
11612 (Fmsprinter_select_settings):
11613 (Fmsprinter_apply_settings):
11614 (allocate_devmode):
11615 (Fmsprinter_settings_copy):
11616 (Fmsprinter_settings_despecialize):
11618 (finalize_devmode):
11620 (hash_devmode): Added functions
11621 (syms_of_device_mswindows): Init devmode lrecord class.
11623 * device.h: Added an exfun for find-device.
11625 * event-msw.c (mswindows_wnd_proc): Do not update the cached
11626 geometry; although, recreate the device compatible DC.
11628 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11629 (msprinter_init_frame_3):
11630 (msprinter_frame_property):
11631 (msprinter_internal_frame_property_p):
11632 (msprinter_frame_properties):
11633 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11634 print job properties (will move to device settings).
11636 * lisp.h: Added symbols.
11638 * general.c (syms_of_general): Declared them.
11640 * hash.c (string_hash): Added.
11642 * lrecord.h (lrecord_type): Added devmode lrecord type.
11644 2000-07-02 Mike Sperber <mike@xemacs.org>
11646 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11649 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
11651 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11654 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
11656 * data.c (Fstring_to_number): Don't recognize floating point if
11659 2000-06-22 Martin Buchholz <martin@xemacs.org>
11661 * glyphs-widget.c (tab_control_query_geometry):
11662 (widget_query_geometry):
11663 (button_query_geometry):
11664 * glyphs.c (text_query_geometry):
11665 Enforce type correctness.
11667 2000-06-18 Martin Buchholz <martin@xemacs.org>
11669 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11670 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11672 2000-06-17 Martin Buchholz <martin@xemacs.org>
11674 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11675 conflicts with gcc's fixincluded version of FOO.h.
11677 * glyphs.h (image_instance_geometry): Remove trailing `,'
11679 2000-06-08 Mike Alexander <mta@arbortext.com>
11681 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11682 (shove_thread): Don't write the same output twice
11683 (make_ntpipe_output_stream): Increase priority of shove thread
11684 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11686 (ntpipe_shove_closer): Don't delete the pipe until we're done with
11689 2000-06-12 Ben Wing <ben@xemacs.org>
11691 * s\mingw32.h (sigset):
11692 * s\windowsnt.h (sigset):
11693 rename msw_ to mswindows_ for consistency with general convention.
11695 2000-06-12 Ben Wing <ben@xemacs.org>
11698 * console-msw.c (mswindows_get_console_hwnd):
11699 * console-msw.c (mswindows_ensure_console_allocated):
11700 * console-msw.c (mswindows_hide_console):
11701 * console-msw.c (mswindows_show_console):
11702 * console-msw.c (mswindows_ensure_console_buffered):
11703 * console-msw.c (mswindows_output_console_string):
11704 * console-msw.c (mswindows_windows9x_p):
11706 * device-msw.c (mswindows_get_workspace_coords):
11707 * device-msw.c (mswindows_device_system_metrics):
11708 * dialog-msw.c (mswindows_popup_dialog_box):
11709 * event-msw.c (mswindows_wnd_proc):
11710 * frame-msw.c (mswindows_size_frame_internal):
11711 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11712 * menubar-msw.c (displayable_menu_item):
11713 * menubar-msw.c (mswindows_char_is_accelerator):
11715 * nt.c (mswindows_sigset):
11716 * nt.c (mswindows_sigrelse):
11717 * nt.c (mswindows_sigpause):
11718 * nt.c (mswindows_raise):
11719 * nt.c (timer_proc):
11721 * ntproc.c (find_child_console):
11722 * ntproc.c (sys_kill):
11724 * print.c (std_handle_out_external):
11725 * process-nt.c (find_child_console):
11726 * process-nt.c (send_signal_the_95_way):
11727 * process-nt.c (ensure_console_window_exists):
11728 * process-nt.c (nt_create_process):
11730 rename msw_ to mswindows_ for consistency with general convention.
11734 include nt.h, not syswindows.h.
11736 * nt.c (mswindows_fstat):
11737 * nt.c (mswindows_stat):
11738 prefix mswindows_ instead of attempting to directly override the
11739 library functions. fix declarations.
11742 include syswindows.h. move some sysdep.h stuff here.
11745 include syswindows.h, not <windows.h>.
11753 * sysdep.c (sys_fstat):
11754 * sysdep.c (sys_stat):
11755 call mswindows versions when appropriate.
11758 move mswin decls to nt.h.
11761 add long comment describing appropriate use of the various windows
11764 2000-06-11 Ben Wing <ben@xemacs.org>
11766 * device-x.c: Correct doc string for sixth arg of x-get-resource.
11768 2000-06-10 Ben Wing <ben@xemacs.org>
11770 * Makefile.in.in (release):
11771 Correction to make sure xemacs.exe always dumped when correct.
11775 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11777 * buffer.c (set_buffer_internal):
11778 [[[[2]]]]: Remove HAVE_FEP code.
11780 * buffer.c (init_initial_directory):
11784 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11788 * callproc.c (call_process_cleanup):
11789 * callproc.c (Fold_call_process_internal):
11790 * callproc.c (child_setup):
11791 * callproc.c (getenv_internal):
11792 * callproc.c (init_callproc):
11793 * callproc.c (vars_of_callproc):
11794 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11795 __CYGWIN32__ -> CYGWIN.
11796 DOS_NT -> WIN32_NATIVE.
11797 Remove MSDOS support/references, converting to WIN32_NATIVE
11799 __MINGW32__ -> MINGW.
11800 Fix windows.h includes.
11801 Remove bogus HAVE_NTGUI.
11807 mswindows_message_outputted added for use in allowing startup
11808 errors on the console to be seen.
11810 * console-msw.c (msw_ensure_console_allocated):
11811 * console-msw.c (msw_output_console_string):
11812 * console-msw.c (DHEADER):
11813 * console-msw.c (DOPAQUE_DATA):
11814 * console-msw.c (DEVENT):
11815 * console-msw.c (DCONS):
11816 * console-msw.c (DCONSCDR):
11817 * console-msw.c (DSTRING):
11818 * console-msw.c (DVECTOR):
11819 * console-msw.c (DSYMBOL):
11820 * console-msw.c (DSYMNAME):
11823 * console-stream.c (stream_init_console):
11824 Fix text/binary problems.
11827 * device-msw.c (mswindows_finish_init_device):
11828 * device-msw.c (mswindows_delete_device):
11831 * device.c (handle_asynch_device_change):
11835 * dgif_lib.c (DGifOpenFileName):
11836 * dgif_lib.c (DGifOpenFileHandle):
11837 * dgif_lib.c (DGifGetLine):
11838 * dgif_lib.c (DGifGetPixel):
11839 Added config.h/lisp.h, fix up includes.
11846 * dired.c (file_name_completion):
11847 * dired.c (Ffile_attributes):
11848 * dired.c (syms_of_dired):
11852 * dumper.c (pdump_file_unmap):
11853 * dumper.c (pdump_load):
11857 * editfns.c (Ftemp_directory):
11858 * editfns.c (user_login_name):
11859 * editfns.c (Fuser_real_login_name):
11860 * editfns.c (get_home_directory):
11863 * elhash.c (finish_marking_weak_hash_tables):
11864 [[[[5]]]]: Fix GCC warnings.
11867 * emacs.c (mswindows_handle_hardware_exceptions):
11868 * emacs.c (make_arg_list_1):
11869 * emacs.c (main_1):
11870 * emacs.c (Fkill_emacs):
11871 * emacs.c (Fdump_emacs):
11873 Fix problems with nested crashes, add long comment.
11875 * event-Xt.c (init_event_Xt_late):
11879 * event-msw.c (mswindows_dde_callback):
11880 * event-msw.c (mswindows_handle_sticky_modifiers):
11881 * event-msw.c (mswindows_wnd_proc):
11885 * events.c (character_to_event):
11889 * fileio.c (Ffile_name_directory):
11890 * fileio.c (Ffile_name_nondirectory):
11891 * fileio.c (directory_file_name):
11892 * fileio.c (Fexpand_file_name):
11893 * fileio.c (Fsubstitute_in_file_name):
11894 * fileio.c (Ffile_name_absolute_p):
11895 * fileio.c (check_executable):
11896 * fileio.c (Ffile_readable_p):
11897 * fileio.c (Ffile_accessible_directory_p):
11898 * fileio.c (Ffile_modes):
11899 * fileio.c (Funix_sync):
11900 * fileio.c (vars_of_fileio):
11903 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11905 Expand getdefdir defn.
11906 Fix bogus rename() comment.
11908 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
11909 to use standard XEmacs include files, e.g. sysfile.h, rather
11910 than system-specific includes.
11916 * frame.c (vars_of_frame):
11920 * getloadavg.c (getloadavg):
11922 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
11923 (We don't use it elsewhere in the code; just add a comment.)
11930 * glyphs-msw.c (mswindows_resource_instantiate):
11933 * glyphs-x.c (x_native_layout_instantiate):
11936 * gui-msw.c (Fmswindows_shell_execute):
11945 * lread.c (locate_file_in_directory_mapper):
11952 * mem-limits.h (get_lim_data):
11964 * nt.c (rva_to_section):
11965 * nt.c (mswindows_executable_type):
11967 Fix closedir() defn.
11970 [[[[8]]]]: *_OK defs moved to sysfile.h.
11979 * print.c (std_handle_out_external):
11983 * process-nt.c (nt_create_process):
11985 try to fix process quoting somewhat.
11987 * process-unix.c (unix_create_process):
11991 * process.c (vars_of_process):
11998 * realpath.c (xrealpath):
12001 * redisplay-tty.c (init_tty_for_redisplay):
12011 * sheap.c (more_static_core):
12012 * sheap.c (report_sheap_usage):
12016 * signal.c (alarm_signal):
12023 * strftime.c (zone_name):
12026 * symsinit.h (init_sunpro):
12030 commctrl.h not in Cygwin b20.1.
12033 * sysdep.c (endif):
12034 * sysdep.c (sys_subshell):
12035 * sysdep.c (init_baud_rate):
12036 * sysdep.c (emacs_get_tty):
12037 * sysdep.c (emacs_set_tty):
12038 * sysdep.c (tty_init_sys_modes_on_device):
12039 * sysdep.c (init_system_name):
12040 * sysdep.c (sys_open):
12041 * sysdep.c (interruptible_open):
12042 * sysdep.c (sys_fopen):
12043 * sysdep.c (sys_mkdir):
12044 * sysdep.c (sys_rename):
12045 * sysdep.c (get_process_times_1):
12052 * sysdir.h (DIRENTRY_NONEMPTY):
12055 * sysdll.c (dll_init):
12061 added text/binary defs.
12067 * sysproc.h (EDESTADDRREQ):
12068 * sysproc.h (poll_fds_for_input):
12085 Always define WIN32_LEAN_AND_MEAN.
12087 * unexcw.c (unexec):
12091 * unexec.c (copy_text_and_data):
12092 * unexec.c (adjust_lnnoptrs):
12096 * unexnt.c (_start):
12099 2000-06-07 Ben Wing <ben@xemacs.org>
12101 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
12102 was used only as a model. We've long since extracted any useful
12103 logic or code out of this. (I just did an exhaustive search.)
12105 * s\msdos.h: Removed.
12107 * s\windows95.h: Removed.
12109 2000-06-10 Ben Wing <ben@xemacs.org>
12113 Don't use extern with fun defs.
12117 Remove nt\inc include.
12118 Remove getdisk, getdefdir. (The former is unused, the latter
12119 expanded in fileio.h.)
12122 * s\windowsnt.h (WIN32_NATIVE):
12123 * s\windowsnt.h (HAVE_STRCASECMP):
12125 Add long comment about preprocessor changes.
12126 Remove getdisk, getdefdir. (The former is unused, the latter
12127 expanded in fileio.h.)
12129 2000-06-10 Ben Wing <ben@xemacs.org>
12138 Remove bogus/unused NO_SOCK_SIGIO.
12140 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
12142 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12145 2000-06-04 Mike Sperber <mike@xemacs.org>
12147 * casetab.c (set_case_table): For `set-standard-case-table',
12148 actually deposit the new case tables where the rest of XEmacs can
12151 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
12153 * data.c (Faset): Don't cast XCHAR() to unsigned char.
12155 2000-06-05 Ben Wing <ben@xemacs.org>
12157 * callproc.c (child_setup): Don't do close_load_descs() under
12158 MS Windows. Put in a comment explaining why.
12160 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
12162 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12163 Toolkit shell" which breaks `kill-compilation' on Windows NT
12164 native, retaining STDERR handling improvements.
12166 2000-06-01 Andreas Jaeger <aj@suse.de>
12168 * s/s390.h: Support for S390, based on a patch by Martin
12169 Schwidefsky <schwidefsky@de.ibm.com>.
12171 2000-05-30 Andy Piper <andy@xemacs.org>
12173 * window.c (allocate_window):
12174 (make_dummy_parent):
12175 (Fset_window_configuration): use new hashtable type.
12177 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12178 (struct image_instantiator_methods):
12179 (struct Lisp_Image_Instance): make instance geometry signed.
12181 * glyphs.c (instantiate_image_instantiator):
12182 (image_instance_query_geometry):
12183 (image_instance_layout):
12184 (image_instance_layout):
12185 (query_string_geometry):
12186 (text_query_geometry):
12187 (image_instantiate):
12188 (image_instantiate):
12189 (cache_subwindow_instance_in_frame_maybe):
12190 (subwindow_query_geometry): make instance geometry signed.
12192 * glyphs-widget.c (widget_query_geometry):
12194 (button_query_geometry):
12195 (tree_view_query_geometry):
12196 (tab_control_query_geometry):
12197 (layout_query_geometry):
12199 (native_layout_layout): make instance geometry signed.
12201 2000-05-29 Olivier Galibert <galibert@pobox.com>
12203 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12206 * general.c (syms_of_general): Add Qfull_assoc symbol.
12208 * data.c (finish_marking_weak_lists): Mark full-assoc lists
12210 (decode_weak_list_type): Decode full-assoc type.
12211 (encode_weak_list_type): Encode full-assoc type.
12212 (Fmake_weak_list): Update doc string.
12214 2000-05-30 Andy Piper <andy@xemacs.org>
12216 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12218 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12219 (decode_hash_table_weakness): ditto.
12220 (Fhash_table_weakness): ditto.
12221 (Fhash_table_type): ditto.
12222 (finish_marking_weak_hash_tables): ditto.
12223 (hash_table_weakness_validate): ditto.
12224 (syms_of_elhash): ditto.
12226 2000-05-28 Martin Buchholz <martin@xemacs.org>
12228 * XEmacs 21.2.34 is released.
12230 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
12232 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12234 (updating_line_start_cache): Gone.
12235 (regenerate_window): Replace resetting of VERTICAL_CLIP by
12236 generic code to force a minimum of 1 line laid out in the
12239 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
12241 * glyphs.c (instantiate_image_instantiator): Check for initialized
12242 height & width no longer special cases IMAGE_NOTHING.
12243 (nothing_instantiate): Set height and width of instance.
12245 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12247 * unexelf.c (unexec): Search for ".data" section.
12248 Initialize new_data2_offset from old_data_index.
12249 Remove redundant check for ElfW.
12251 2000-05-23 Andy Piper <andy@xemacs.org>
12253 * glyphs.c (get_image_instantiator_governing_domain): allow more
12254 specific domains as the governing domain rather than expecting an
12255 exact match. This fixes problems with layouts.
12257 2000-05-22 Andy Piper <andy@xemacs.org>
12259 * redisplay-output.c (compare_runes): check for non-images
12261 * glyphs.c (set_glyph_dirty_p): ditto.
12262 (update_glyph_cachel_data): ditto.
12264 * glyphs-widget.c (layout_post_instantiate): ditto.
12265 (layout_post_instantiate): ditto.
12267 * event-msw.c (mswindows_wnd_proc): warning removal.
12269 2000-05-12 Craig Lanning <CraigL@DyCon.com>
12271 * s\mingw32.h: Added #undef for CLASH_DETECTION.
12273 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12275 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12277 * nt.c (rva_to_section): mingw32 needs rva_to_section.
12278 (mswindows_executable_type): mingw32 now has enough headers for
12281 2000-05-20 Andy Piper <andy@xemacs.org>
12283 * console-msw.c (mswindows_output_last_error): ; -> ,
12285 2000-05-12 Andy Piper <andy@xemacs.org>
12287 * console-msw.c (FROB): compare ints with ints.
12289 2000-05-11 Andy Piper <andy@xemacs.org>
12291 * glyphs-x.c (x_finalize_image_instance): make minimal build
12294 2000-05-20 Ben Wing <ben@xemacs.org>
12297 * event-Xt.c (vars_of_event_Xt):
12298 move modifier-keys-are-sticky to event-stream.c.
12301 * event-msw.c (mswindows_enqueue_mouse_button_event):
12302 * event-msw.c (key_needs_default_processing_p):
12303 * event-msw.c (XEMSW_LCONTROL):
12304 * event-msw.c (mswindows_handle_sticky_modifiers):
12305 * event-msw.c (FROB):
12306 * event-msw.c (clear_sticky_modifiers):
12307 * event-msw.c (output_modifier_keyboard_state):
12308 * event-msw.c (output_alt_keyboard_state):
12309 * event-msw.c (mswindows_wnd_proc):
12310 * event-msw.c (mswindows_modifier_state):
12311 * event-msw.c (emacs_mswindows_handle_magic_event):
12312 implement sticky modifiers.
12315 * event-stream.c (vars_of_event_stream):
12316 move modifier-keys-are-sticky here.
12319 add CHECK_FUNCTION.
12322 implement map-range-table.
12325 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
12327 * redisplay-tty.c (reset_tty_modes):
12328 (tty_redisplay_shutdown): Adjust argument type to
12329 tty_frame_output_end.
12331 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
12333 * eval.c (Fbacktrace): Don't output a line with only right
12336 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
12338 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12339 (Fpq_reset_poll): Ditto.
12341 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
12343 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12345 2000-05-16 Ben Wing <ben@xemacs.org>
12348 * buffer.c (dfc_convert_to/from_internal_format):
12349 * buffer.c (reinit_vars_of_buffer):
12350 Fix conversion functions to allow reentrancy.
12353 * console-msw.c (mswindows_output_last_error):
12354 New fun, generally useful -- output a human-readable
12355 version of GetLastError() on the console.
12358 * console-msw.h (struct mswindows_frame):
12359 Changes for DeferWindowPos. Declare mswindows_output_last_error().
12361 * console-stream.c (stream_output_begin):
12362 * console-stream.c (stream_output_end):
12363 * console-stream.c (stream_output_vertical_divider):
12364 * console-stream.c (stream_clear_region):
12365 * console-stream.c (stream_flash):
12366 * console-stream.c (console_type_create_stream):
12367 Delete blank stream methods, not needed.
12369 * console.h (struct console_methods):
12370 Split begin/end methods into window and frame.
12373 * event-msw.c (mswindows_handle_paint):
12374 * event-msw.c (output_alt_keyboard_state):
12375 * event-msw.c (mswindows_wnd_proc):
12376 * event-msw.c (vars_of_event_mswindows):
12377 Comment about problems with ignored-expose.
12378 Define mswindows-debug-events; not really implemented.
12380 * frame-msw.c (mswindows_init_frame_1):
12384 * glyphs-msw.c (begin_defer_window_pos):
12385 * glyphs-msw.c (mswindows_unmap_subwindow):
12386 * glyphs-msw.c (mswindows_map_subwindow):
12387 * glyphs-msw.c (mswindows_resize_subwindow):
12388 Use DeferWindowPos to reduce flashing when mapping/unmapping.
12390 * glyphs.c (make_image_instance_1):
12393 * gutter.c (Fredisplay_gutter_area):
12394 Use new begin/end methods.
12396 * lisp.h (Dynarr_new2):
12400 * redisplay-msw.c (mswindows_frame_output_begin):
12401 * redisplay-msw.c (mswindows_frame_output_end):
12402 * redisplay-msw.c (console_type_create_redisplay_mswindows):
12403 New begin/end methods -- handle DeferWindowPos.
12405 * redisplay-output.c (redisplay_move_cursor):
12406 * redisplay-output.c (redraw_cursor_in_window):
12407 * redisplay-output.c (redisplay_update_line):
12408 * redisplay-output.c (redisplay_output_window):
12409 New begin/end methods.
12412 * redisplay-tty.c (tty_frame_output_begin):
12413 * redisplay-tty.c (tty_frame_output_end):
12414 * redisplay-tty.c (console_type_create_redisplay_tty):
12415 New begin/end methods.
12418 * redisplay-x.c (x_window_output_begin):
12419 * redisplay-x.c (x_window_output_end):
12420 * redisplay-x.c (console_type_create_redisplay_x):
12421 New begin/end methods.
12423 * redisplay.c (redisplay_frame):
12424 * redisplay.c (Fredisplay_echo_area):
12425 New begin/end methods.
12426 use MAYBE_DEVMETH for clear_frame; it may not exist.
12428 * window.h (WINDOW_XFRAME):
12429 WINDOW_XFOO macros -- get locale and decode struct pointer.
12432 2000-05-12 Ben Wing <ben@xemacs.org>
12435 * emacs.c (ensure_no_quitting_from_now_on):
12436 * emacs.c (fatal_error_signal):
12437 * emacs.c (mswindows_handle_hardware_exceptions):
12439 * emacs.c (Fkill_emacs):
12440 * emacs.c (shut_down_emacs):
12441 * emacs.c (assert_failed):
12442 various improvements in fatal error handling.
12445 move preparing_for_armageddon to emacs.c.
12448 declare fatal_error_in_progress.
12451 * print.c (std_handle_out_external):
12452 * print.c (std_handle_out_va):
12453 * print.c (stderr_out):
12454 * print.c (stdout_out):
12455 use console under mswin when no standard output.
12456 don't do code conversion during fatal error.
12458 * scrollbar.c (Fscrollbar_page_up):
12459 * scrollbar.c (Fscrollbar_page_down):
12460 fix missing else. reindent.
12462 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
12466 * glyphs.h (GLYPH_CACHEL_DESCENT):
12467 (GLYPH_CACHEL_DESCENT):
12468 (GLYPH_CACHEL_DESCENT):
12469 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12470 used in case these are inline functions.
12471 Use more absurd values to error check.
12473 include window.h for error check functions.
12475 2000-05-11 Ben Wing <ben@xemacs.org>
12477 * cmdloop.c (Freally_early_error_handler):
12478 Display message box under windows; otherwise, message will disappear
12479 before it can be viewed.
12482 * console-msw.c (Fmswindows_message_box):
12483 * console-msw.c (FROB):
12484 * console-msw.c (syms_of_console_mswindows):
12485 Define new fun `mswindows-message-box'.
12486 #### I will merge this into `popup-dialog-box'; just give me
12490 * general.c (syms_of_general):
12491 Some new symbols used in `mswindows-message-box'.
12494 * glyphs.c (Fset_image_instance_property):
12495 put warning in this fun.
12498 * glyphs.h (GLYPH_CACHEL_WIDTH):
12499 * glyphs.h (GLYPH_CACHEL_ASCENT):
12500 * glyphs.h (GLYPH_CACHEL):
12501 * glyphs.h (GLYPH_CACHEL_GLYPH):
12502 define error-checking versions to try to catch a bug i've seen --
12503 redisplay gets in an infinite loop because the glyph width of the
12504 continuation glyph is 65535.
12507 Extern message-box stuff.
12509 * window.c (allocate_window):
12510 * window.c (make_dummy_parent):
12511 * window.c (Fset_window_configuration):
12512 Use EQUAL not EQ for subwindow caches to make them work a bit
12513 better. (Something is still very broken.)
12516 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
12518 * glyphs.c (image_instantiate): Suppress gcc warnings.
12519 (Fmake_image_instance): Fix doc string.
12520 * specifier.c (Fmake_specifier): Ditto.
12522 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
12524 * paths.h.in (PATH_LOCK): Removed.
12525 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12526 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12528 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
12530 * fns.c (Ffeaturep): Update e-mail address in doc-string.
12531 Document (featurep '(and xemacs 21.02)).
12533 2000-05-09 Ben Wing <ben@xemacs.org>
12535 * buffer.c (complex_vars_of_buffer):
12536 update modeline-format doc.
12539 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12542 timeline of all released versions of Emacs, for use in creating
12543 authorship comments and in synching up.
12545 * glyphs-widget.c (image_instantiator_buttons):
12546 * glyphs-widget.c (image_instantiator_edit_fields):
12547 * glyphs-widget.c (image_instantiator_combo_box):
12548 * glyphs-widget.c (image_instantiator_scrollbar):
12549 * glyphs-widget.c (image_instantiator_progress_guage):
12550 * glyphs-widget.c (image_instantiator_tree_view):
12551 * glyphs-widget.c (image_instantiator_tab_control):
12552 * glyphs-widget.c (image_instantiator_labels):
12553 * glyphs-widget.c (image_instantiator_layout):
12554 * glyphs-widget.c (image_instantiator_native_layout):
12555 rename decode_domain method to governing_domain.
12558 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12559 * glyphs.c (add_entry_to_device_ii_format_list):
12560 make sure we don't put an entry more than once into the list.
12561 * glyphs.c (check_instance_cache_mapper):
12562 *************************************************************
12563 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12565 *************************************************************
12566 * glyphs.c (get_image_instantiator_governing_domain):
12567 clean up, expand on new concept of governing domain.
12568 * glyphs.c (instantiate_image_instantiator):
12569 * glyphs.c (allocate_image_instance):
12570 use governing_domain instead of cache_domain in naming.
12571 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12572 * glyphs.c (make_image_instance_1):
12573 * glyphs.c (Fmake_image_instance):
12574 allow for any domain (not just device), and process the
12575 governing domain correctly. very big doc fix.
12576 * glyphs.c (Fimage_instance_domain):
12577 new primitive, to retrieve the governing domain of an image instance.
12578 * glyphs.c (image_instantiate):
12579 use new governing_domain stuff. this fixes a crash you could get
12580 by instantiating certain widget glyphs in frame locales. (should
12581 signal an error instead of crashing.)
12582 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12583 * glyphs.c (Fglyphp): clean up doc.
12584 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12585 * glyphs.c (syms_of_glyphs):
12586 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12587 * glyphs.c (image_instantiator_format_create): add some comments about
12589 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12590 for current-display-table. (Apparently Hrjove implemented in 1998 a
12591 design I wrote up in 1996, but didn't update the doc string.)
12593 * glyphs.h: clean up a doc string.
12594 * glyphs.h (governing_domain):
12595 * glyphs.h (struct image_instantiator_methods):
12596 changes for governing_domain stuff.
12599 * gutter.c (Fgutter_specifier_p):
12600 * gutter.c (Fgutter_size_specifier_p):
12601 * gutter.c (Fgutter_visible_specifier_p):
12603 * objects.c (Fcolor_specifier_p):
12604 * objects.c (Ffont_specifier_p):
12605 * objects.c (Fface_boolean_specifier_p):
12606 doc strings moved to make-*-specifier.
12608 * redisplay.c (add_disp_table_entry_runes_1):
12609 * redisplay.c (generate_fstring_runes):
12610 * redisplay.c (screen):
12611 add random comments and doc strings.
12614 * specifier.c (Fmake_specifier):
12615 major overhaul of this doc string.
12617 * specifier.c (Fvalid_specifier_domain_p):
12618 comment about the bogosity of image instances being domains.
12619 * specifier.c (decode_domain):
12620 now non-static, used in glyphs.c.
12621 * specifier.c (specifier_instance):
12622 comment about the bogosity of image instances being domains.
12623 * specifier.c (Fgeneric_specifier_p):
12624 move doc string to make-generic-specifier.
12625 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12629 * specifier.h (DOMAIN_FRAME):
12630 * specifier.h (DOMAIN_LIVE_P):
12631 * specifier.h (DOMAIN_XDEVICE):
12633 add comments about problems with these macros.
12634 prototype for decode_domain.
12637 * toolbar.c (Ftoolbar_specifier_p):
12638 move doc string to `make-toolbar-specifier'.
12640 * window.c (window_unmap_subwindows_cache_mapper):
12641 *************************************************************
12642 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12644 *************************************************************
12646 2000-05-09 Andy Piper <andy@xemacs.org>
12648 * glyphs.h: declare reset_frame_subwindow_instance_cache.
12650 * window.c (Fset_window_configuration): reset the frame subwindow
12651 cache and re-initialize the window subwindow caches.
12653 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12655 2000-05-09 Ben Wing <ben@xemacs.org>
12657 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12660 2000-04-26 Mike Woolley <mike@bulsara.com>
12662 * ntheap.c: Changed recreate_heap to limit the amount reserved
12663 for the heap to that which is actually available. Also now
12664 displays a message box (with some dignostics) in the event that
12665 it still can't start.
12667 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
12669 * callproc.c (Fold_call_process_internal): GCPRO path
12671 2000-05-08 Jan Vroonhof <jan@xemacs.org>
12673 Patch by Bill Perry.
12675 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12676 back data instead of #ifdef.
12677 (Fscrollbar_page_down): ditto.
12679 2000-05-07 Ben Wing <ben@xemacs.org>
12682 Kludge for defining Qmswindows_tstr.
12685 * nt.c (open_input_file):
12686 * nt.c (open_output_file):
12687 * nt.c (rva_to_section):
12688 * nt.c (mswindows_executable_type):
12689 Move all memory-mapped-file routines here (some were in unexnt.c,
12690 which is bad because they are used by process-nt.c, and unexnt
12691 won't be around when portable dumping). Synched the above routines
12695 Removed ifdef'd out bogus code.
12696 Fixed some prototypes.
12698 * nt.h (file_data):
12699 * nt.h (OFFSET_TO_RVA):
12700 * nt.h (RVA_TO_OFFSET):
12701 * nt.h (RVA_TO_PTR):
12702 Moved the memory-mapped-file structures, macros and prototypes
12703 here, to parallel nt.c. ntheap.h should really be removed
12704 entirely, and it's a non-portable-dumper specific file.
12706 * ntheap.h (round_to_next):
12707 Moved the memory-mapped-file structures, macros and prototypes
12710 * ntproc.c (compare_env):
12711 Moved rva_to_section and mswindows_executable_type to nt.c.
12712 Moved compare_env to process-nt.c.
12713 ntproc.c will die, one day.
12715 * ntproc.c (sys_spawnve):
12716 Account for win32_ -> mswindows_.
12719 * process-nt.c (struct nt_process_data):
12720 * process-nt.c (ensure_console_window_exists):
12721 * process-nt.c (compare_env):
12722 * process-nt.c (nt_create_process):
12723 * process-nt.c (nt_kill_process_by_pid):
12724 * process-nt.c (syms_of_process_nt):
12725 * process-nt.c (vars_of_process_nt):
12726 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12727 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12728 changes). Eliminate our old `nt-quote-process-args' mechanism.
12729 Synch up nt_create_process with FSF 20.6 sys_spawnve.
12730 Move compare_env here from ntproc.c.
12732 * process.c (Fprocess_send_region):
12733 Takes an optional fourth argument, BUFFER, which should fix some
12734 problems with call-process.
12737 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12740 Move ICC_BAR_CLASSES to syscommctrl.h.
12741 Add preliminary macros for MSWindows/Mule. More to come.
12744 * unexnt.c (unexec):
12745 open_output_file moved to nt.c.
12748 2000-05-05 Andy Piper <andy@xemacs.org>
12750 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12751 instance from the frame cache also since GC may catch up too late
12752 to make frame deletion sane.
12754 2000-05-04 Andy Piper <andy@xemacs.org>
12756 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12757 (x_finalize_image_instance): ungcpro on deletion.
12759 * glyphs.c (image_instantiator_format_create): give pointers a
12760 query geometry method so that the geometry is at least set.
12762 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12763 initialize layouts if using widgets.
12765 2000-05-03 Andy Piper <andy@xemacs.org>
12767 * nt.c: remove bogus reference to sysmmsystem.h
12769 * gui-x.c (popup_selection_callback): fix no selection abort.
12771 2000-05-02 Andy Piper <andy@xemacs.org>
12773 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12774 (mswindows_widget_instantiate): ditto.
12776 * glyphs-widget.c (initialize_widget_image_instance): initialize
12777 children correctly.
12778 (widget_instantiate): cope with children and items in the same
12781 * glyphs.c (mark_image_instance): cope with children as a first
12783 (image_instance_equal): ditto.
12784 (image_instance_hash): ditto.
12785 (image_instance_changed): ditto.
12787 2000-04-30 Andy Piper <andy@xemacs.org>
12789 * glyphs.c (subwindow_query_geometry): new function. Return some
12791 (subwindow_instantiate): don't assign dimensions if none have been
12793 (image_instantiator_format_create): add subwindow_query_geometry.
12794 (print_image_instance): cope with layouts as widgets.
12796 2000-04-29 Andy Piper <andy@xemacs.org>
12798 * frame.c (delete_frame_internal): call
12799 free_frame_subwindow_instance_cache so that all subwindows are
12800 finalized before their parent.
12801 (mark_frame): remove subwindow_cachels.
12802 (Fmake_frame): remove subwindow_cachel manipulation.
12803 (allocate_frame_core): subwindow_instance_cache is a weak list.
12804 (delete_frame_internal): set subwindow_instance_cache to nil.
12806 * glyphs-msw.c (mswindows_finalize_image_instance): make double
12808 (mswindows_finalize_image_instance): use the device
12809 not the domain as the domain may have died already.
12811 * glyphs-x.c (x_finalize_image_instance): ditto.
12812 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12815 * redisplay-output.c (redisplay_unmap_subwindows): update for
12816 subwindow instance cache as a weak list.
12817 (redisplay_unmap_subwindows_maybe): ditto.
12818 (redisplay_unmap_subwindows_except_us): ditto.
12820 * glyphs.c (unmap_subwindow): error checking will check the domain
12821 so don't deal with it here. Don't use cachels anymore.
12822 (map_subwindow): ditto.
12823 (update_subwindow_cachel_data): remove old accessor names.
12824 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12825 (Fresize_subwindow): don't update cachel.
12826 (mark_subwindow_cachels):
12827 (update_subwindow_cachel_data):
12828 (add_subwindow_cachel):
12829 (get_subwindow_cachel_index):
12830 (update_subwindow_cachel):
12831 (reset_subwindow_cachels):
12832 (mark_subwindow_cachels_as_not_updated): deleted.
12833 (cache_subwindow_instance_in_frame_maybe): new function. Add a
12834 subwindow instance to the frame cache.
12835 (find_matching_subwindow): update for subwindow instance cache as
12837 (update_widget_instances): ditto.
12838 (image_instance_type_to_mask):inlined.
12839 (free_frame_subwindow_instance_cache): new function. finalize all
12840 subwindows that are instantiated.
12842 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12843 of cachel information.
12844 (IMAGE_INSTANCE_DISPLAY_X):
12845 (IMAGE_INSTANCE_DISPLAY_Y):
12846 (IMAGE_INSTANCE_DISPLAY_WIDTH):
12847 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12848 (XIMAGE_INSTANCE_DISPLAY_X):
12849 (XIMAGE_INSTANCE_DISPLAY_Y):
12850 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12851 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12852 remove subwindow_cachel structure and function references.
12853 (image_instance_type_to_mask): inline from glyphs.c
12855 * redisplay.c (redisplay_frame): remove subwindow_cachel
12858 * frame.h (struct frame): remove subwindow_cachels.
12859 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12861 * frameslots.h: add subwindow_instance_cache.
12863 * window.c (replace_window): check subwindow cache of replacement.
12864 (window_unmap_subwindows_cache_mapper):
12865 (window_unmap_subwindows): new functions. Unmap all subwindows
12866 cached on this window.
12867 (mark_window_as_deleted): unmap all subwindows.
12869 2000-04-27 Andy Piper <andy@xemacs.org>
12871 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12873 * glyphs-widget.c (widget_layout): return something.
12874 (layout_layout): return something. Fail if not initialized.
12875 (layout_query_geometry): ditto.
12876 (image_instantiator_native_layout): new function. Initialized the
12877 native layout type.
12878 (widget_instantiate): don't do layout stuff here.
12880 * glyphs.c (instantiate_image_instantiator): reorded calling or
12881 instantiate and post_instantiate with layout in between.
12882 (image_instance_layout): be more selective about deciding whether
12883 the layout has been done or not.
12885 * glyphs.h (struct image_instantiator_methods): return a value
12886 from layout_method.
12888 2000-04-26 Andy Piper <andy@xemacs.org>
12890 * glyphs.c (allocate_image_instance): make initial width and
12891 height unspecified. Set initialized to 0.
12893 * syscommctrl.h new file. Encapsulates commctrl.h.
12895 * syswindows.h new file. Encapsulates windows.h.
12897 * ntplay.c: use new syswindows.h and syscommctrl.h header.
12899 * console-msw.h: ditto.
12901 * redisplay-tty.c (tty_output_display_block): remove layout references.
12903 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12904 window handle rather than just the frame.
12906 * glyphs.c (mark_image_instance): remove layout references.
12907 (print_image_instance): ditto.
12908 (image_instance_equal): ditto.
12909 (image_instance_hash): ditto.
12910 (decode_image_instance_type): ditto.
12911 (encode_image_instance_type): ditto.
12912 (image_instantiate): ditto.
12913 (allocate_glyph): ditto.
12914 (Fimage_instance_height): ditto.
12915 (Fimage_instance_width): ditto.
12916 (update_subwindow): ditto.
12918 * redisplay-x.c (x_output_display_block): recode for layouts as
12921 * redisplay-output.c (redisplay_output_layout): recode for layouts
12923 (compare_runes): remove layout references.
12925 * redisplay-msw.c (mswindows_output_display_block): recode for
12926 layouts as widgets.
12928 * glyphs-widget.c (image_instantiator_layout): remove
12929 layout_possible_dest_types.
12930 (layout_possible_dest_types): deleted.
12932 * glyphs.h (image_instance_type): remove layout references.
12933 (struct Lisp_Image_Instance): ditto. Add initialized flag.
12934 (IMAGE_INSTANCE_INITIALIZED): new accessor.
12935 (XIMAGE_INSTANCE_INITIALIZED): ditto.
12937 2000-04-25 Andy Piper <andy@xemacs.org>
12939 * glyphs-widget.c (image_instantiator_buttons):
12940 (image_instantiator_edit_fields):
12941 (image_instantiator_combo_box):
12942 (image_instantiator_scrollbar):
12943 (image_instantiator_progress_guage):
12944 (image_instantiator_tree_view):
12945 (image_instantiator_tab_control):
12946 (image_instantiator_labels):
12947 (image_instantiator_layout): call default post_instantiate method.
12948 (widget_post_instantiate): new function. Simply lays out the
12951 * glyphs.h (struct image_instantiator_methods): add
12952 post_instantiate method.
12954 * glyphs.c (instantiate_image_instantiator): add post_instantiate
12957 2000-04-23 Andy Piper <andy@xemacs.org>
12959 * glyphs.h (struct image_instantiator_methods): add
12960 decode_domain_method.
12961 (struct Lisp_Image_Instance): remove subwindow frame - it can be
12962 derived from the domain.
12963 (IMAGE_INSTANCE_FRAME): new accessor.
12964 (XIMAGE_INSTANCE_FRAME): ditto.
12966 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12967 instead of _SUBWINDOW_FRAME.
12968 (finalize_image_instance): ditto.
12969 (Fimage_instance_foreground): ditto.
12970 (Fimage_instance_background): ditto.
12971 (image_instantiate): ditto.
12972 (update_subwindow_cachel): ditto.
12973 (update_subwindow): ditto.
12974 (unmap_subwindow): ditto.
12975 (map_subwindow): ditto
12976 (subwindow_instantiate): ditto.
12977 * glyphs-msw.c (mswindows_update_widget): ditto.
12978 (mswindows_progress_gauge_instantiate): ditto.
12979 (mswindows_tab_control_update): ditto.
12980 * glyphs-x.c (x_update_widget): ditto.
12981 (x_widget_instantiate): ditto.
12982 (x_tab_control_instantiate): ditto.
12983 (x_tab_control_update): ditto.
12984 * event-msw.c (mswindows_wnd_proc): ditto
12986 * glyphs-widget.c (image_instantiator_layout): use
12987 subwindow_decode_domain.
12988 (image_instantiator_buttons): ditto.
12989 (image_instantiator_edit_fields): ditto.
12990 (image_instantiator_combo_box): ditto.
12991 (image_instantiator_scrollbar): ditto.
12992 (image_instantiator_progress_guage): ditto.
12993 (image_instantiator_tree_view): ditto.
12994 (image_instantiator_tab_control): ditto.
12995 (image_instantiator_labels): ditto.
12996 (image_instantiator_layout): ditto.
12998 * glyphs.c: add instance error checking to many functions.
12999 (instantiate_image_instantiator): decode device from cache_domain.
13000 (image_instantiate): partially rewrite by using
13001 decode_image_instantiator_domain to determine what domain the
13002 instance needs to be cached in.
13003 (decode_image_instantiator_domain): new function. Determine what
13004 domain the image needs to be cached in.
13005 (check_window_subwindow_cache): new error checking function.
13006 (check_instance_cache_mapper): ditto.
13007 (check_image_instance_structure): ditto.
13008 (subwindow_decode_domain): new function. Encodes a window as a
13009 subwindow's cache domain.
13010 (image_instantiator_format_create): use it for text and
13013 2000-04-21 Andy Piper <andy@xemacs.org>
13015 * glyphs.c (image_instance_device): new function.
13016 (image_instance_frame): new function.
13017 (image_instance_window): new function.
13018 (image_instance_live_p): new function.
13020 * window.c (mark_window_as_deleted): reset the subwindow_instance_
13023 * glyphs.h (struct Lisp_Image_Instance): device->domain.
13024 (IMAGE_INSTANCE_DOMAIN): new accessor.
13025 (XIMAGE_INSTANCE_DOMAIN): ditto.
13027 * glyphs-x.c (x_finalize_image_instance): device->domain.
13029 * glyphs-msw.c (init_image_instance_geometry): device->domain.
13030 (mswindows_finalize_image_instance): ditto.
13032 * glyphs-eimage.c (jpeg_instantiate): device->domain.
13033 (gif_instantiate): ditto.
13034 (png_instantiate): ditto.
13035 (tiff_instantiate): ditto.
13037 * glyphs.c (instantiate_image_instantiator): use domain rather
13039 (mark_image_instance): device -> domain.
13040 (print_image_instance): ditto.
13041 (finalize_image_instance): ditto.
13042 (image_instance_equal): ditto.
13043 (allocate_image_instance): ditto.
13044 (Fcolorize_image_instance): ditto.
13045 (query_string_geometry): ditto.
13046 (image_instantiate): ditto
13047 (query_string_font): ditto.
13048 (image_instantiate): ditto.
13049 (update_subwindow): ditto.
13050 (unmap_subwindow): ditto.
13051 (map_subwindow): ditto.
13052 (subwindow_instantiate): ditto.
13054 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13055 (DOMAIN_FRAME): ditto.
13056 (DOMAIN_WINDOW): ditto.
13057 (DOMAIN_LIVE_P): ditto.
13058 (XDOMAIN_DEVICE): ditto.
13059 (XDOMAIN_FRAME): ditto.
13060 (XDOMAIN_WINDOW): ditto.
13062 * specifier.c (Fvalid_specifier_domain_p): add image instances as
13063 a valid specifier domain.
13065 2000-04-19 Andy Piper <andy@xemacs.org>
13067 * glyphs-widget.c (syms_of_glyphs_widget): remove
13068 widget-callback-current-channel.
13069 (vars_of_glyphs_widget): ditto.
13072 * gui.c (get_gui_callback): revert to previous behaviour.
13074 2000-04-18 Andy Piper <andy@xemacs.org>
13076 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13077 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13078 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13080 * glyphs.c (image_instance_equal): add margin_width.
13081 (image_instance_hash): ditto.
13083 * glyphs-widget.c (widget_instantiate): deal with margin-width.
13084 (layout_query_geometry): ditto.
13085 (layout_layout): ditto.
13086 (syms_of_glyphs_widget): add margin-width.
13087 (image_instantiator_layout): allow margin-width.
13089 * glyphs.c (update_widget_instances): make a normal function.
13090 (syms_of_glyphs): remove Qupdate_widget_instances.
13093 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13094 so that we don't corrupt ideas about the last event or
13095 command. Remove widget-callback-current-channel fiddling.
13096 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13098 2000-05-01 Martin Buchholz <martin@xemacs.org>
13100 * XEmacs 21.2.33 is released.
13102 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
13104 * make-src-depend: Allow dots in header file name.
13106 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
13108 * mule-charset.h (struct charset_lookup): Add
13109 next_allocated_1_byte_leading_byte and
13110 next_allocated_2_byte_leading_byte.
13111 * mule-charset.c: Move above two variables so that those values
13114 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
13116 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13117 when string length is zero.
13118 (find_charsets_in_emchar_string): Ditto.
13120 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
13122 * lisp.h: extern Qdialog and Qmenubar.
13124 * gui-x.c: added events.h.
13125 also fixed typo which made the file uncompilable.
13127 * general.c: Added Qmenubar and Qdialog
13129 2000-04-28 Ben Wing <ben@xemacs.org>
13131 * frame-msw.c (mswindows_init_frame_1):
13132 * frame-msw.c (mswindows_mark_frame):
13133 * event-msw.c (mswindows_enqueue_dispatch_event):
13135 * console-msw.h (struct mswindows_frame):
13136 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13137 there are now three hash tables for callbacks.
13138 mswindows_enqueue_dispatch_event is no longer static.
13140 * dialog-x.c (maybe_run_dbox_text_callback):
13141 * dialog-x.c (dbox_descriptor_to_widget_value):
13142 switch to new cons3 form for callbacks.
13144 * glyphs-msw.c (mswindows_register_gui_item):
13145 * glyphs-msw.c (mswindows_widget_instantiate):
13146 * glyphs-msw.c (add_tree_item):
13147 * glyphs-msw.c (add_tab_item):
13148 new image instance parameter, so it can be passed to callback-ex.
13149 respect :callback-ex as well as :callback.
13151 * glyphs-widget.c (VALID_GUI_KEYWORDS):
13154 * glyphs.c (print_image_instance):
13155 prettify, e.g. now prints widget type.
13158 certain funs have new image instance parameter.
13161 * gui.c (get_gui_callback):
13162 * gui.c (gui_item_add_keyval_pair):
13163 * gui.c (gui_item_init):
13164 * gui.c (gui_add_item_keywords_to_plist):
13165 * gui.c (mark_gui_item):
13166 * gui.c (gui_item_hash):
13167 * gui.c (gui_item_equal):
13168 * gui.c (copy_gui_item):
13169 * gui.c (syms_of_gui):
13170 recognize callback-ex in a number of places.
13171 also, fix the annoying "can't get out of yes-no dialog" bug.
13174 * gui.h (struct Lisp_Gui_Item):
13175 recognize callback-ex in a number of places.
13177 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13178 new parameter in button_item_to_widget_value.
13180 * glyphs-x.c (x_update_widget):
13181 * glyphs-x.c (x_button_instantiate):
13182 * glyphs-x.c (x_button_update):
13183 * glyphs-x.c (x_progress_gauge_instantiate):
13184 * glyphs-x.c (x_edit_field_instantiate):
13185 * glyphs-x.c (x_combo_box_instantiate):
13186 * glyphs-x.c (x_tab_control_instantiate):
13187 * glyphs-x.c (x_label_instantiate):
13188 new image instance parameter in various places.
13191 * event-Xt.c (enqueue_Xt_dispatch_event):
13192 this fun gets exported.
13195 * gui-msw.c (mswindows_handle_gui_wm_command):
13196 handle both :callback and :callback-ex, and generate our own
13197 event because it's one of the callback-ex arguments.
13200 * gui-x.c (popup_selection_callback):
13201 handle both :callback and :callback-ex, and generate our own
13202 event because it's one of the callback-ex arguments.
13203 * gui-x.c (button_item_to_widget_value):
13204 * gui-x.c (gui_items_to_widget_values_1):
13205 * gui-x.c (gui_item_children_to_widget_values):
13206 * gui-x.c (gui_items_to_widget_values):
13207 new image instance parameter in various places.
13209 * fns.c (Freplace_list):
13210 fix small typo in doc string.
13213 declare enqueue_Xt_dispatch_event.
13215 2000-04-28 Ben Wing <ben@xemacs.org>
13218 * buffer.c (Frecord_buffer):
13219 * buffer.c (syms_of_buffer):
13220 delete record-buffer-hook.
13223 * fns.c (Freplace_list):
13224 * fns.c (syms_of_fns):
13225 new primitive replace-list.
13228 slot for old buffer-alist.
13231 exfun replace-list.
13234 * redisplay.c (redisplay_frame):
13235 * redisplay.c (syms_of_redisplay):
13236 * redisplay.c (vars_of_redisplay):
13237 new hook buffer-list-changed-hook.
13240 2000-04-27 Ben Wing <ben@xemacs.org>
13242 * extents.h: extern in_modeline_generation.
13244 * redisplay.c (generate_formatted_string_db): set
13245 in_modeline_generation.
13247 * extents.c (extent_changed_for_redisplay): don't mark redisplay
13248 flags if in modeline generation. otherwise frame-modified-tick
13249 is ticked far too often.
13250 Declare in_modeline_generation.
13252 2000-04-26 Ben Wing <ben@xemacs.org>
13254 * emacs.c (vars_of_emacs): document quick-build "error-checking"
13256 (vars_of_emacs): add quick-build as an error-checking option.
13257 A bit kludgy, but there doesn't seem much point in creating
13258 a real var for this.
13260 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13262 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
13264 * redisplay.h (struct display_line): Add a new variable,
13267 * redisplay.c (create_text_block): Set dl->line_continuation if
13268 the line continues.
13269 (create_string_text_block): Ditto.
13270 (regenerate_window_incrementally): Use line_continuation instead
13271 of searching continuation glyph.
13272 (add_margin_runes): Call add_glyph_rune.
13273 (add_glyph_rune): Handle margin glyph.
13275 2000-04-20 Martin Buchholz <martin@xemacs.org>
13277 * filelock.c (fill_in_lock_file_name):
13279 Check for IS_ANY_SEP instead of '/'.
13281 Avoid generating gratuitous garbage. Call user_login_name() directly.
13282 Never check errno without first seeing that system call failed.
13283 (unlock_file): Add GCPRO.
13284 (Flock_buffer): Fix docstring.
13285 (Ffile_locked_p): Fix docstring. Add GCPRO.
13287 2000-04-19 Martin Buchholz <martin@xemacs.org>
13289 * sysdep.c (get_pty_max_bytes):
13290 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13291 strings longer than 252 bytes.
13293 * md5.c: Unconditionally include ANSI header <limits.h>
13295 * glyphs-x.c (convert_EImage_to_XImage):
13296 * lisp-union.h (union Lisp_Object):
13297 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13299 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
13301 * filelock.c (current_lock_owner): Remove unused variable o, p.
13303 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
13305 * callint.c: Remove multiply defined symbol Qlet
13306 (syms_of_callint): ditto.
13308 2000-04-14 Andy Piper <andy@xemacs.org>
13310 * general.c (syms_of_general): add last-command, this-command, let
13313 * lisp.h: declare various symbols.
13315 * glyphs.h: declare Qwidget_callback_current_channel;
13317 * glyphs-widget.c (syms_of_glyphs_widget): add
13318 Qgui_callback_current_channel.
13319 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13321 * gui-msw.c (mswindows_handle_gui_wm_command): bind
13322 widget-callback-current-channel when invoking the interactive
13323 arg. Also bind last-command and next-command when invoking the
13325 * gui-x.c (popup_selection_callback): ditto.
13327 * gui.c (get_gui_callback): massage args so that we are always
13328 calling eval. This allows us to add our own variable bindings
13331 * glyphs-x.c (x_button_instantiate): use
13332 gui_items_to_widget_values since this is GC safe.
13333 (x_progress_gauge_instantiate): ditto.
13334 (x_edit_field_instantiate): ditto.
13335 (x_label_instantiate): ditto.
13337 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13338 (emacs_Xt_event_widget_focus_out): new function
13339 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13341 (emacs_Xt_event_add_widget_actions): new function. add focus
13342 functions as actions.
13343 (init_event_Xt_late): use it.
13345 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
13347 * event-stream.c (Fdispatch_event): Doc fix.
13349 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
13351 * postgresql.c: Remove all references to PQsetenv*.
13353 * postgresql.h: Remove references to PGsetenvHandler object.
13354 * lrecord.h (lrecord_type): Ditto.
13356 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13358 * glyphs-msw.h (struct mswindows_image_instance_data): Added
13359 real_heigh and real_width members, and accessor macros for these.
13361 * glyphs-msw.c (init_image_instance_geometry): New function.
13362 (init_image_instance_from_dibitmap): Use it.
13363 (mswindows_resource_instantiate): Use it.
13364 (init_image_instance_from_xbm_inline): Use it.
13365 (mswindows_initialize_image_instance_mask): Use real bitmap
13367 (mswindows_create_resized_bitmap): Ditto.
13368 (mswindows_create_resized_mask): Ditto.
13370 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13371 and bitmap to their surface size.
13373 2000-04-11 Jan Vroonhof <jan@xemacs.org>
13375 * process-unix.c (unix_send_process): Guard against process MIA
13376 after Faccept_process_output.
13378 2000-04-11 Ben Wing <ben@xemacs.org>
13380 * eval.c (unbind_to_hairy): fix brokenness introduced by
13381 nanosecond speed improvements.
13383 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
13385 * sunplay.c (init_device): To play sounds correctly, the device
13386 apparently needs to be initialized at least once by XEmacs. Make
13389 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
13391 * redisplay.c (add_margin_runes): Add text image glyph
13394 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
13396 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13397 gcc is newer than 2.5.
13399 2000-04-06 Colin Rafferty <colin@xemacs.org>
13401 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13403 * fns.c (size_bit_vector):
13404 * alloc.c (size_vector):
13405 (make_vector_internal):
13406 (make_bit_vector_internal):
13407 (sweep_bit_vectors_1):
13408 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13410 2000-04-06 Andy Piper <andy@xemacs.org>
13412 * gmalloc.c (malloc): undo previous change.
13417 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
13419 * line-number.c (buffer_line_number): Revert to former version.
13421 2000-04-06 Andy Piper <andy@xemacs.org>
13423 * gmalloc.c (malloc): add error checking.
13428 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13429 button_item_to_widget_value arg.
13431 * glyphs-x.c (x_button_instantiate): add extra
13432 button_item_to_widget_value arg.
13433 (x_progress_gauge_instantiate): ditto.
13434 (x_edit_field_instantiate): ditto.
13435 (x_label_instantiate): ditto.
13437 * gui-x.c (gui_items_to_widget_values_1): add extra
13438 button_item_to_widget_value arg.
13439 (button_item_to_widget_value): add extra menu_item_p arg.
13441 * gui-x.h: change signature of button_item_to_widget_value.
13443 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13444 button_item_to_widget_value arg.
13446 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
13448 * buffer.h (struct buffer): auto_save_modified should be long.
13450 2000-04-05 Andy Piper <andy@xemacs.org>
13452 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13454 (button_query_geometry): give a little more room so that athena
13457 2000-04-05 Andy Piper <andy@xemacs.org>
13459 * faces.c (complex_vars_of_faces): The widget face should inherit
13460 the font of the gui-element face.
13462 2000-04-04 Andy Piper <andy@xemacs.org>
13464 * glyphs-x.c (x_button_update): new function. unconditionally
13465 update a button's state when the instance is dirty.
13466 (image_instantiator_format_create_glyphs_x): add x_button_update.
13467 (x_widget_instantiate): remove old resize cruft.
13469 2000-04-02 Andy Piper <andy@xemacs.org>
13471 * frame.c (change_frame_size_1): The introduction of gutters means
13472 that we need to allow 0 as a potential frame dimension.
13474 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
13476 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13477 image glyph if allow_cursor.
13478 (add_hscroll_rune): Don't allow cursor to border glyph.
13479 (create_text_block): Ditto.
13481 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13482 text not in buffer.
13483 (redisplay_output_layout): Call ensure_face_cachel_complete for
13487 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
13489 * redisplay.c (add_glyph_rune): Adding text image as text runes.
13491 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13494 * redisplay-tty.c (tty_output_display_block): Delete the routine
13495 for text image glyph
13496 * redisplay-x.c (x_output_display_block): ditto
13497 * redisplay-msw.c (mswindows_output_display_block): ditto
13499 2000-02-02 Mike Alexander <mta@arbortext.com>
13501 Note: Some of these were committed by accident as part of other
13504 * regex.c (regex_compile): Avoid compiler warnings.
13506 * ntproc.c (sys_spawnve): Avoid compiler warnings.
13508 * nt.h: Declare term_ntproc correctly.
13510 * nt.c: Remove incorrect declaration of get_home_directory which
13511 is declared correctly in lisp.h.
13513 * keymap.c (get_keyelt): Avoid compiler warnings.
13514 (raw_lookup_key_mapper): Avoid compiler warnings.
13516 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13518 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13520 * filemode.c (mode_string): Avoid compiler warnings.
13522 * file-coding.c (Fcoding_system_aliasee): Add return statement to
13525 * events-mod.h: Undef some things that winuser.h defines differently.
13527 * data.c (Faset): Avoid compiler warnings.
13529 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13531 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13533 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13534 Fall through to simple beep on error.
13535 Replace "extern" by real header file.
13537 * linuxplay.c: Use nativesound.h
13538 (play_sound_data): Return error code. Be less verbose on error.
13540 * sunplay.c: Use nativesound.h
13541 (play_sound_data): Return error code. Be less verbose on error.
13543 * ntplay.c: Use nativesound.h
13544 (play_sound_data): Return fake error code
13546 * sgiplay.c: Use nativesound.h
13547 (play_sound_data): Return error code
13549 * hpplay.c: Use nativesound.h, partially implement
13550 new error code. Break compilation until finished.
13551 (play_sound_data): error code.
13553 * nativesound.h (play_sound_file):
13554 (play_sound_data): Prototype in new header.
13556 2000-03-31 Andy Piper <andy@xemacs.org>
13558 * glyphs-widget.c: (button_query_geometry): new function. Adjust
13559 for toggle and radio buttons.
13560 (image_instantiator_buttons): use it.
13562 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13564 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13565 (x_update_horizontal_scrollbar_callback): Return if no mirror was
13566 found. Scrollbar event probably belonged to some old config.
13568 2000-03-31 Andy Piper <andy@xemacs.org>
13570 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13572 (initialize_widget_image_instance): default layout to
13573 LAYOUT_HORIZONTAL rather than 0.
13574 (widget_instantiate): reverse the item list at the end rather than
13576 (layout_layout): re-code for the border text at the front of the
13577 item list rather than at the end.
13578 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13579 provided by the user.
13580 (widget_query_geometry): comment.
13582 2000-03-30 Andy Piper <andy@xemacs.org>
13584 * glyphs-widget.c (image_instantiator_layout): allow standard
13585 widget keywords in layouts.
13587 * gutter.c (output_gutter): cope with nil gutter contents.
13589 * frame.c (Fset_frame_properties): add gutter docs.
13591 2000-03-29 Andy Piper <andy@xemacs.org>
13593 * toolbar-msw.c (TBSTYLE_FLAT): add.
13594 (mswindows_output_toolbar): minor fiddling.
13596 2000-03-29 Andy Piper <andy@xemacs.org>
13598 * gutter.c (output_gutter): force gutter size recalculation if
13599 what we are trying to display won't fit.
13600 (update_gutter_geometry): new function. A per-gutter version of
13601 update_frame_gutter_geometry.
13602 (update_frame_gutter_geometry): use it.
13603 (redraw_exposed_gutter): add extra debugging output.
13605 2000-03-28 Mike Alexander <mta@arbortext.com>
13607 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13608 (pdump_file_unmap): Implement it on Windows
13609 (pdump_file_get): Save alocated handles for pdump_file_unmap
13611 2000-03-28 Andy Piper <andy@xemacs.org>
13613 * gui.c (get_gui_callback): treat Quit specially.
13615 2000-03-27 Andy Piper <andy@xemacs.org>
13617 * glyphs.c (image_instantiate): be careful to check in the same
13620 2000-03-27 Didier Verna <didier@xemacs.org>
13622 * config.h.in: define the proper SMART_INCLUDE macro.
13623 handle renaming of `foo_h_path' to `foo_h_file'.
13625 * database.c: ditto.
13629 * linuxplay.c: ditto.
13631 * terminfo.c: ditto.
13633 * tooltalk.h: ditto.
13635 2000-03-27 Andy Piper <andy@xemacs.org>
13637 * glyphs-msw.c (mswindows_update_widget): make sure the widget
13638 gets updated whenever the face might have changed.
13640 2000-03-26 Mike Alexander <mta@arbortext.com>
13642 * dumper.c (pdump_resource_free): Fix the comment.
13644 2000-03-21 Olivier Galibert <galibert@pobox.com>
13646 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13648 2000-03-22 Mike Alexander <mta@arbortext.com>
13650 * dumper.c: Include Windows headers on Windows
13651 (pdump_resource_free): Add a body to the function
13652 (pdump_load): exe_name -> exe_path and add some comments.
13654 2000-03-25 Mike Alexander <mta@arbortext.com>
13656 * gui.c (copy_gui_item_tree): Return a value in all cases
13658 2000-03-21 Didier Verna <didier@xemacs.org>
13660 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13662 (SMART_INCLUDE): new macro.
13663 (POSTGRES_INCLUDE): new macro to include postgresql headers from
13664 the proper location.
13666 * postgresql.c: use it.
13670 2000-03-24 Andy Piper <andy@xemacs.org>
13672 * gutter.c (redraw_exposed_gutters): must be "in display" when we
13675 2000-03-24 Andy Piper <andy@xemacs.org>
13677 * redisplay-output.c (compare_runes): use image_instance_changed
13678 to detect changes. Do not depend on glyphs_changed, only depend on
13680 (redisplay_output_layout): add debug messages.
13681 (compare_runes): ditto.
13683 * glyphs.h: declare new functions.
13684 (struct Lisp_Image_Instance): remove percent and associated
13687 * gui.h: declare new copying functions.
13689 * gui.c (copy_gui_item_tree): new function.
13690 (copy_gui_item): new function.
13691 (gui_item_id_hash): revert to standard hash.
13692 (gui_item_hash): ditto.
13693 (gui_item_hash_internal): deleted.
13694 (mark_gui_item): mark value.
13695 (gui_item_add_keyval_pair): add value.
13696 (gui_item_init): ditto.
13697 (gui_add_item_keywords_to_plist): ditto.
13698 (gui_item_equal): ditto.
13699 (syms_of_gui): add Q_value.
13701 * glyphs-x.c (x_progress_gauge_update): use pending items and
13702 value for setting the state.
13703 (x_update_widget): don't set items from pending here.
13705 * glyphs-widget.c (update_widget): update items here.
13706 (progress_gauge_set_property): use items for storing value. Put
13707 new value in pending items.
13709 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13710 items for new value. Convert percent -> value.
13711 (mswindows_tab_control_update): don't update items here.
13713 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13714 (update_subwindow): ditto.
13715 (image_instance_changed): new function. Compare hash values and
13716 past and present widget items.
13717 (image_instantiate): We more careful about where we instantiate
13719 (image_instantiate): add error checking.
13721 * gutter.c (syms_of_gutter): use -hook.
13723 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
13725 * console-tty.c (Fset_console_tty_input_coding_system): Use
13727 (Fset_console_tty_output_coding_system): Use Qterminal.
13728 (tty_init_console): Use Qkeyboard and Qterminal.
13730 2000-03-21 Ben Wing <ben@xemacs.org>
13732 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13733 From Mike Alexander <mta@arbortext.com>.
13735 2000-03-21 Ben Wing <ben@xemacs.org>
13737 * event-msw.c (mswindows_need_event): Horrible kludge to fix
13738 process brokenness. Proper implementation to come.
13740 Rename call-process-internal to old-call-process-internal.
13741 New impl. in process.el.
13743 2000-03-21 Martin Buchholz <martin@xemacs.org>
13745 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13747 2000-03-20 Andy Piper <andy@xemacs.org>
13749 * glyphs.c (full_list_hash): make hashes of the same elements in
13750 different orders return different values.
13752 2000-03-20 Martin Buchholz <martin@xemacs.org>
13754 * XEmacs 21.2.32 is released.
13756 2000-03-20 Martin Buchholz <martin@xemacs.org>
13758 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13759 (DFC_MALLOC_USE_CONVERTED_DATA):
13760 Add aliasing-safe casts to allow use with char* or unsigned char*
13763 * eldap.c (Fldap_open):
13764 (Fldap_search_basic):
13767 Make C++-compilable.
13768 Make sure GCPRO'ed variables are initialized.
13769 Use temp variables to avoid repeated calls to Flength.
13771 2000-03-16 Martin Buchholz <martin@xemacs.org>
13774 Make sure PATH_MAX is always defined.
13775 Include limits.h for PATH_MAX.
13776 Deprecate use of MAXPATHLEN.
13778 2000-03-10 Martin Buchholz <martin@xemacs.org>
13780 * emacs.c: Add reinit_vars_of_fileio.
13781 * symsinit.h: Add reinit_vars_of_fileio.
13782 * fileio.c (reinit_vars_of_fileio): New.
13783 * fileio.c (Fmake_temp_name):
13784 Initialize temp_name random number from microseconds to make
13785 collisions even less likely. Initialize always at process startup
13786 time. (make-temp-name) used to return the same file name twice in
13788 Random stylistic fiddling.
13791 2000-03-20 Andy Piper <andy@xemacs.org>
13793 * glyphs.c (image_instantiate): allow text glyphs to be
13794 instantiated in the minibuffer window.
13796 2000-03-19 Andy Piper <andy@xemacs.org>
13798 * glyphs.c (image_instance_hash): be careful about which items we
13801 * glyphs-widget.c (tab_control_set_property): record into pending
13802 items rather than the actual items.
13804 * glyphs-x.c (x_update_widget): use pending items to update with.
13806 * glyphs-msw.c (mswindows_tab_control_update): use pending items
13809 * glyphs.c (mark_image_instance): mark pending items.
13811 * window.c (Fset_window_configuration): record the buffer.
13812 (Fselect_window): totally revert previous change which breaks many
13815 2000-03-18 Andy Piper <andy@xemacs.org>
13817 * glyphs-msw.c (mswindows_tab_control_update): force selected
13820 * glyphs.c (image_instantiate): don't allow the minibuffer as a
13821 window domain cache, otherwise we get inconsistencies at
13822 startup. There is something fishy at startup which can lead to the
13823 minibuffer being the selected window when the gutter content is
13826 * gui.c (parse_gui_item_tree_list): add probably unnecessary
13828 (parse_gui_item_tree_children): ditto.
13829 (parse_gui_item_tree_item): ditto.
13831 * glyphs.c (Fupdate_widget_instances): return something.
13833 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
13835 * window.c (Fselect_window): Undo 2000-03-17 change.
13837 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
13839 * postgresql.c (Fpq_setenv): Remove this turkey when linking
13840 against v7.0 libraries. Insta-coredump city until the postgres
13843 2000-03-17 Andy Piper <andy@xemacs.org>
13845 * faces.c (complex_vars_of_faces): don't give the widget face an
13846 inherited background pixmap.
13848 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13851 * event-stream.c (Fdispatch_non_command_events): return something.
13853 * gutter.c (output_gutter): use widget face.
13854 (clear_gutter): ditto.
13856 * NEWS: adjust again.
13858 * window.c (Fselect_window): make sure this runs to completion to
13859 avoid oddities with Fset_window_configuration.
13860 (Fcurrent_window_configuration): in general do not save the
13861 minibuffer as the selected window.
13863 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13865 2000-03-16 Olivier Galibert <galibert@pobox.com>
13867 * emacs.c (Frunning_temacs_p): Revert previous patch.
13868 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13870 2000-03-16 Andy Piper <andy@xemacs.org>
13872 * glyphs-x.c (x_tab_control_update): if no widget values then
13875 * NEWS: update for new features.
13877 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13878 synthetic event to the native system.
13879 (reinit_vars_of_event_Xt): set force_event_pending to
13880 emacs_Xt_force_event_pending.
13882 * events.h (struct event_stream): add force_event_pending.
13884 * specifier.c (recompute_one_cached_specifier_in_window): add
13887 * redisplay.c (redisplay_frame): don't call
13888 update_frame_subwindows. Reset subwindow cachels when
13889 subwindows_changed, removing this was an optimization too far.
13891 * redisplay-output.c (compare_runes): reorganize so that we catch
13892 glyph changes when we want them. Set optimize_output when this
13893 would help layouts.
13894 (redisplay_output_layout): remove frame_really_changed, use
13895 optimize_output instead.
13897 * redisplay-msw.c (mswindows_output_display_block): reset
13898 optimize_output after outputting a glyph.
13899 * redisplay-x.c (x_output_display_block): ditto.
13900 * redisplay-tty.c (tty_output_display_block): ditto.
13902 * gutter.c: (specifier_vars_of_gutter): use new spec changed
13904 (gutter_specs_changed): do specific gutter positions.
13905 (top_gutter_specs_changed): new function. Only update the
13906 specified gutter specs.
13907 (bottom_gutter_specs_changed): ditto.
13908 (left_gutter_specs_changed): ditto.
13909 (right_gutter_specs_changed): ditto.
13911 * gui.c (gui_item_hash_internal): new function, does a real hash.
13912 (gui_item_id_hash): use it.
13913 (gui_item_hash): hash the eval'ed gui_item.
13915 * gui-x.c (popup_selection_callback): send an eval event to call
13916 Fupdate_widget_instances.
13918 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13919 to call Fupdate_widget_instances.
13921 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13922 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13924 * glyphs.c: (update_frame_subwindows): deleted.
13925 (Fupdate_widget_instances): new function for updating the dirty
13926 state of widgets that might have changed.
13927 (syms_of_glyphs): add Qupdate_widget_instances.
13928 (full_list_hash): hash a list completely.
13929 (image_instance_hash): use it for items and properties.
13931 * frame-msw.c (mswindows_size_frame_internal): remove unused
13934 * faces.h (struct face_cachel): fix comment.
13936 * event-stream.c (Fdispatch_non_command_events): new
13937 function. Process non-command events, forcing an event cycle
13939 (syms_of_event_stream): declare.
13940 (event_stream_force_event_pending): new function. Force an event
13941 on the native event queue so that an event cycle will occur next
13945 (struct ntpipe_shove_stream):
13946 (mswindows_enqueue_dispatch_event):
13947 (mswindows_dequeue_dispatch_event):
13948 (mswindows_cancel_dispatch_event):
13949 (mswindows_pump_outstanding_events):
13950 (mswindows_drain_windows_queue):
13951 (mswindows_handle_paint):
13952 (mswindows_wnd_proc):
13953 (mswindows_key_to_emacs_keysym):
13954 (get_process_input_waitable):
13955 (emacs_mswindows_delete_stream_pair): re-indent file.
13956 (mswindows_need_event): do not process further fds if the windows
13957 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13958 fixes the 100% cpu problem.
13959 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13961 2000-03-15 Olivier Galibert <galibert@pobox.com>
13967 * emacs.c: Moved dump file searching to dumper.c.
13968 (Frunning_temacs_p): Fixed.
13970 * alloc.c: Moved everything pdump-related to dumper.c. Removed
13971 last_lrecord_type_index_assigned.
13973 2000-02-20 Olivier Galibert <galibert@pobox.com>
13975 * symsinit.h: Added reinit parameter to init_console_stream
13978 * lisp.h: Added file parameter to pdump_load declaration.
13980 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13981 support. Added dump file searching.
13983 * config.h.in: Added EMACS_PROGNAME.
13985 * console-stream.c (init_console_stream): Fix reinitialisation
13986 when running from temacs.
13988 * alloc.c (pdump): Add id support.
13989 (pdump_load): Add file parameter and signature/id support.
13991 * Makefile.in.in: Add full pdump support.
13993 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
13995 * postgresql.c: Update documentation to reflect latest code
13997 (print_result): Show tuple counts in printed representation when
13999 (Fpq_put_nbytes): MULE-ize.
14000 (Fpq_get_line_async): Ditto.
14002 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
14004 * postgresql.c (Fpq_lo_import): Fix return value.
14005 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14007 2000-03-13 Ben Wing <ben@xemacs.org>
14009 * alloc.c (pdump_load):
14010 Fix compile warning under mswin.
14012 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
14014 * postgresql.c: Mule-ization, bug fixes.
14015 Use PG_CODING to encapsulate coding system name changes.
14016 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14017 (pg-coding-system): Create.
14019 (Fpq_conn_defaults): Mule-ize.
14020 (Fpq_connectdb): Mule-ize & bug fix.
14021 (Fpq_connect_start): Mule-ize.
14022 (Fpq_set_client_encoding): Mule-ize.
14023 (Fpq_finish): Document `DEAD' connection status.
14024 (Fpq_clear): Ditto.
14025 (Fpq_pgconn): Mule-ize.
14026 (Fpq_exec): Mule-ize & bug fix.
14027 (Fpq_send_query): Ditto.
14028 (Fpq_get_result): Ditto.
14029 (Fpq_res_status): Mule-ize.
14030 (Fpq_result_error_message): Mule-ize.
14031 (Fpq_ntuples): fix comments.
14032 (Fpq_fname): Mule-ize.
14033 (Fpq_fnumber): Mule-ize.
14034 (Fpq_ftype): fix comments.
14035 (Fpq_get_value): Mule-ize.
14036 (Fpq_cmd_status): Ditto.
14037 (Fpq_cmd_tuples): Ditto.
14038 (Fpq_oid_value): Ditto.
14039 (Fpq_notifies): Ditto.
14040 (Fpq_lo_import): Ditto.
14041 (Fpq_lo_export): Ditto.
14042 (Fpq_get_line): Ditto.
14043 (Fpq_put_line): Mule-ize and bug fix.
14044 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14046 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
14048 * postgresql.c (vars_of_postgresql): Mule-ize.
14049 (Fpq_conn_defaults): Ditto.
14051 2000-03-12 Ben Wing <ben@xemacs.org>
14053 * alloc.c (Fmake_byte_code):
14054 * alloc.c (debug_string_purity_print):
14055 * alloc.c (pdump_backtrace):
14056 * alloc.c (pdump_get_indirect_count):
14057 * alloc.c (pdump_register_sub):
14058 * alloc.c (pdump_register_object):
14059 * alloc.c (pdump_register_struct):
14060 * alloc.c (pdump_dump_data):
14061 * alloc.c (pdump_reloc_one):
14065 * console-msw.c (GetConsoleHwnd):
14066 * console-msw.c (msw_hide_console):
14067 * console-msw.c (msw_show_console):
14068 * console-msw.c (msw_ensure_console_buffered):
14069 * console-msw.c (msw_output_console_string):
14070 * console-msw.c (console_type_create_mswindows):
14072 a) Added functions to manipulate the console window for use with
14075 b) Added support for writing text to the console, which is now
14076 used under Windows when xemacs is not being run non-interactively,
14077 to write text that would otherwise be destined for stdout because
14078 under these circumstances, text written to stdout tends to
14079 disappear and not be seen.
14083 * event-Xt.c (x_event_to_emacs_event):
14084 * event-Xt.c (describe_event_window):
14085 * events-mod.h (XEMACS_MOD_CONTROL):
14087 * events.c (Fmake_event):
14088 * events.c (character_to_event):
14089 * events.c (event_to_character):
14090 * events.c (format_event_object):
14091 * events.c (Fevent_modifiers):
14093 * events.h (struct key_data):
14094 * events.h (struct button_data):
14095 * events.h (struct misc_user_data):
14096 * frame-x.c (Fcde_start_drag_internal):
14097 * frame-x.c (Foffix_start_drag_internal):
14098 * gpmevent.c (Freceive_gpm_event):
14100 * keymap.c (bucky_sym_to_bucky_bit):
14101 * keymap.c (control_meta_superify):
14102 * keymap.c (make_key_description):
14103 * keymap.c (keymap_lookup_directly):
14104 * keymap.c (create_bucky_submap):
14105 * keymap.c (keymap_store):
14106 * keymap.c (define_key_check_and_coerce_keysym):
14107 * keymap.c (define_key_parser):
14108 * keymap.c (define_key_alternate_name):
14109 * keymap.c (Fdefine_key):
14110 * keymap.c (raw_lookup_key_mapper):
14111 * keymap.c (struct map_keymap_unsorted_closure):
14112 * keymap.c (map_keymap_unsorted_mapper):
14113 * keymap.c (map_keymap_sort_predicate):
14114 * keymap.c (map_keymap_sorted):
14115 * keymap.c (accessible_keymaps_mapper_1):
14116 * keymap.c (where_is_recursive_mapper):
14117 * keymap.c (describe_map_mapper):
14118 * keymap.c (describe_map_sort_predicate):
14119 * keymap.c (describe_map):
14120 * keymap.c (complex_vars_of_keymap):
14121 And a number of other files, the key modifier preprocessor
14122 constants that xemacs uses have names that conflict with constants
14123 defined under MS Windows for other purposes, so they were renamed
14124 to begin with the prefix XEMACS_. The variables that hold such
14125 modifiers were changed to consistently be of type int to fix
14126 various compile warnings.
14128 * console.c (complex_vars_of_console):
14131 * device-msw.c (mswindows_finish_init_device):
14132 * device-msw.c (msw_get_workspace_coords):
14133 * device-msw.c (mswindows_device_system_metrics):
14134 and various other files, added support for a new
14135 device property called offset-workspace which returns the position
14136 of the upper left corner of the workspace area and goes along with
14137 the existing size-workspace property.
14140 * dialog-msw.c (push_bufbyte_string_as_unicode):
14141 * dialog-msw.c (mswindows_popup_dialog_box):
14142 Added support for XEmacs-style accelerator specifications in
14143 button text. Note: I didn't add support for this under X Windows,
14144 and somebody needs to do this.
14147 * dialog.c (Fpopup_dialog_box):
14148 Documented the support for accelerators that was just mentioned.
14150 editfns.c (get_home_directory): Changed behavior under Windows
14151 when HOME not defined; former behavior was irretrievably broken.
14154 * emacs.c (main_1):
14156 * minibuf.c (clear_echo_area_internal):
14157 * minibuf.c (echo_area_append):
14159 * print.c (std_handle_out_external):
14160 * print.c (std_handle_out_va):
14162 * print.c (write_string_to_stdio_stream):
14163 * print.c (output_string):
14164 * print.c (debug_print):
14165 * print.c (debug_backtrace):
14166 * print.c (debug_short_backtrace):
14167 Cleaned up the code that prints text to stdout so that this can be
14168 changed to output into a console window instead under MS Windows,
14169 as described above.
14172 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14173 * eval.c (internal_catch):
14174 * eval.c (unwind_to_catch):
14175 * eval.c (throw_or_bomb_out):
14176 * eval.c (condition_case_1):
14177 * eval.c (signal_1):
14178 * eval.c (check_error_state_sanity):
14179 * eval.c (call_with_suspended_errors_1):
14180 * eval.c (call_with_suspended_errors):
14181 * eval.c (reinit_vars_of_eval):
14182 Added code to catch throw loops and check for a pesky bug that may
14186 * event-msw.c (key_needs_default_processing_p):
14187 * event-msw.c (mswindows_wnd_proc):
14188 * event-msw.c (mswindows_modifier_state):
14189 * event-msw.c (emacs_mswindows_quit_p):
14190 * event-msw.c (vars_of_event_mswindows):
14191 a) Added support for using the alt key to select menu items as is
14192 standard under MS Windows. This is controlled using the variable
14193 menu-accelerator-enabled, just like under X Windows. There is an
14194 option on the options menu to turn this support on. I really
14195 think that it should be on by default under Windows, but I'm not
14196 going to make this change yet.
14198 b) Added support for dynamic display size changes under Windows.
14201 * event-stream.c (maybe_echo_keys):
14202 * event-stream.c (Fnext_event):
14203 * event-stream.c (command_builder_find_leaf):
14204 * event-stream.c (lookup_command_event):
14205 * event-stream.c (execute_command_event):
14206 * event-stream.c (pre_command_hook):
14207 * event-stream.c (post_command_hook):
14208 * event-stream.c (syms_of_event_stream):
14209 * event-stream.c (vars_of_event_stream):
14210 * event-stream.c (complex_vars_of_event_stream):
14211 * events.h (struct command_builder):
14213 a) Tried to clean up a little bit the horribly written x-specific
14214 accelerator code that crept into this file. I moved this code
14215 into menubar-x.c where it belongs. I also needed to move the
14216 command builder structure into the file events.h because it is
14217 accessed directly by this accelerator code. What I didn't do, but
14218 which should be done at some point, is to properly abstract this
14219 code using device methods instead of the kludgy way that it
14220 currently hooks into the event code.
14222 b) Added the lisp variables this-command-properties and
14223 last-command- properties, which should be used to synchronize two
14224 adjacent commands in preference to playing games with the variable
14225 this-command, which is typically what happens.
14227 c) Added some slightly nasty code to hook into the lisp support
14228 for shifted- motion-key selection. This is actually necessary for
14229 somewhat complicated reasons, which are described in
14230 simple.el. (NB: I think the proper thing would be to have the code
14231 that calls the pre and post command hooks also call out to generic
14232 lisp functions in simple.el, where all built-in stuff could be
14233 added. I will think about this more.)
14235 * event-unixoid.c (poll_fds_for_input):
14236 * lread.c (readchar):
14237 * redisplay-tty.c (tty_clear_frame):
14238 * redisplay-x.c (x_get_gc):
14239 * signal.c (interrupt_signal):
14240 And a whole bunch of other files: fixed up places that printed
14241 directly to stderr to instead call the function stderr_out so that
14242 the changes I made under Windows work correctly.
14244 * filemode.c (mode_string):
14248 * frame-msw.c (mswindows_size_frame_internal):
14249 Fixed the computation of frame size and position to keep the frame
14250 within the workspace area, rather than within the physical
14251 dimensions of the screen, so that the frame doesn't overlap window
14252 manager decorations, such as the start menu and toolbar, typically
14253 at the bottom of the screen.
14255 * frame.c (vars_of_frame):
14256 Changed the default frame title format under MS Windows to consist
14257 of buffername-XEmacs, which is standard under MS Windows. I think
14258 it might be a good idea to change this everywhere because I think
14259 it is superior to the current frame title format, but this is the
14260 kind of change that is likely to cause some people to get annoyed,
14261 so I'm not making it.
14263 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14265 * gui-msw.c (mswindows_handle_gui_wm_command):
14266 Fixed compile warnings.
14269 * gui-x.c (strdup_and_add_accel):
14270 * gui-x.c (button_item_to_widget_value):
14272 Added code to automatically put an accelerator onto the beginning
14273 of menu items that don't have one as is now the standard, and is
14274 described more later. Also fixed things so that the menu item
14275 name can be an evaluated expression, again a new standard.
14278 * gui.c (gui_item_add_keyval_pair):
14279 * gui.c (make_gui_item_from_keywords_internal):
14280 * gui.c (gui_add_item_keywords_to_plist):
14281 * gui.c (gui_item_accelerator):
14282 * gui.c (gui_name_accelerator):
14283 * gui.c (gui_item_included_p):
14284 * gui.c (gui_item_display_flush_left):
14285 * gui.c (gui_item_display_flush_right):
14286 * gui.c (parse_gui_item_tree_item):
14287 * gui.c (parse_gui_item_tree_children):
14288 * gui.c (parse_gui_item_tree_list):
14289 Mule-ized. Cleanup. GCPRO addition.
14291 * line-number.c (buffer_line_number):
14293 * lisp.h (EMACS_INT_MAX):
14294 Added the manifest constant EMACS_INT_MIN corresponding to the
14295 existing constant EMACS_INT_MAX. This is partially to fix compile
14296 warnings under Windows, and partly for cleanliness.
14299 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14300 * menubar-msw.c (msw_translate_menu_or_dialog_item):
14301 * menubar-msw.c (displayable_menu_item):
14302 * menubar-msw.c (populate_menu_add_item):
14303 * menubar-msw.c (populate_or_checksum_helper):
14304 * menubar-msw.c (populate_menu):
14305 * menubar-msw.c (update_frame_menubar_maybe):
14306 * menubar-msw.c (prune_menubar):
14307 * menubar-msw.c (msw_char_is_accelerator):
14308 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14309 * menubar-msw.c (mswindows_handle_wm_command):
14310 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14311 * menubar-msw.c (mswindows_handle_wm_initmenu):
14312 * menubar-msw.c (mswindows_update_frame_menubars):
14313 * menubar-msw.c (mswindows_free_frame_menubars):
14314 * menubar-msw.c (mswindows_popup_menu):
14315 Fixed a bug in handling accelerators where an extra character
14316 would be displayed in the menu item. Also generalized the
14317 function displayable_menu_item because it is now used by the
14318 dialog box code as well. And finally, added code in the functions
14319 that create the menubar to extract a list of accelerators for the
14320 top level menubar, which is used in the event code to determine
14321 whether a particular alt-key combination should be used to invoke
14322 a menu item, or should be passed through to access the standard
14323 XEmacs keymap binding for this key combination.
14325 Much needed GCPROing.
14328 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14329 * menubar-x.c (menu_item_descriptor_to_widget_value):
14330 * menubar-x.c (restore_in_menu_callback):
14331 * menubar-x.c (x_popup_menu):
14332 * menubar-x.c (menu_move_up):
14333 * menubar-x.c (menu_move_down):
14334 * menubar-x.c (menu_move_left):
14335 * menubar-x.c (menu_move_right):
14336 * menubar-x.c (menu_select_item):
14337 * menubar-x.c (command_builder_operate_menu_accelerator):
14338 * menubar-x.c (menu_accelerator_junk_on_error):
14339 * menubar-x.c (command_builder_find_menu_accelerator):
14340 * menubar-x.c (Faccelerate_menu):
14342 Moved a whole bunch of code here that was previously in
14343 event-stream.c as described above. There is also code connected
14344 to the new standard of adding an accelerator to the beginning of
14345 menu items that don't have one as described above and below.
14348 * menubar.c (menu_parse_submenu_keywords):
14349 * menubar.c (Fmenu_find_real_submenu):
14350 * menubar.c (Fnormalize_menu_item_name):
14351 * menubar.c (syms_of_menubar):
14352 * menubar.c (vars_of_menubar):
14353 * menubar.c (complex_vars_of_menubar):
14355 a) Cleaned up a bunch of documentation and improved it.
14357 b) XEmacs now automatically adds an accelerator onto the beginning
14358 of any menu items that don't have one. I did this because there
14359 will inevitably be some menu items on the main menubar that don't
14360 have accelerators on them because the package that adds that
14361 particular menu item hasn't yet been fixed up to have accelerators
14362 in them and it looked rather strange to have some items with and
14363 some items without accelerators, especially since even in items
14364 without accelerators, you can, at least under windows, still
14365 access the item through an accelerator corresponding to the first
14366 character in the item's name. If people don't like this behavior,
14367 I can add a variable to turn it off optionally, but I'm not sure
14368 this is a good idea because we really do need to have accelerators
14369 on all of the menu items, and if a package doesn't like the
14370 accelerators being put on the first character, then it should put
14371 the accelerators where they belong.
14373 c) I made a behavior change, which is that the descriptor that
14374 specifies the text of the menu item, which formerly was just a
14375 string, can now also be an evaluated expression. This makes this
14376 descriptor parallel with all of the others, which could also be
14377 evaluated expressions. This also obviates the need for the
14378 keyword :label, which was previously listed in the documentation
14379 as unimplemented, and which was for the same purpose.
14384 * ntproc.c (new_child):
14385 * ntproc.c (sys_spawnve):
14386 * ntproc.c (find_child_console):
14387 * ntproc.c (sys_kill):
14388 Fixed compile warnings. By the way, this file should really go
14389 away entirely, and this will happen as soon as Kirill makes his
14390 final round of process cleanups, which affect the function
14394 * process-nt.c (struct nt_process_data):
14395 * process-nt.c (find_process_from_pid):
14396 * process-nt.c (send_signal_the_nt_way):
14397 * process-nt.c (enable_child_signals):
14398 * process-nt.c (find_child_console):
14399 * process-nt.c (send_signal_the_95_way):
14400 * process-nt.c (nt_finalize_process_data):
14401 * process-nt.c (ensure_console_window_exists):
14402 * process-nt.c (nt_create_process):
14403 * process-nt.c (nt_kill_child_process):
14404 * process-nt.c (nt_kill_process_by_pid):
14405 * process-nt.c (nt_open_network_stream):
14406 * process-nt.c (vars_of_process_nt):
14407 Copied over code from Emacs 20.5 to correctly send signals to sub-
14408 processes under Windows 95. Also added code to automatically
14409 create and hide console window when a sub-process is created under
14410 Windows 95, which obviates the need for the separate runemacs.exe
14411 executable, and finally implemented some variables that were
14412 implemented in Emacs 20.5, but previously not in XEmacs. These
14413 include mswindows- start-process-share-console and
14414 mswindows-start-process-inherit-error-mode. (Both of these only
14415 apply to Windows 95.)
14417 * regex.c (regex_compile): Fixed a compile warning.
14420 * select-msw.c (mswindows_own_selection):
14421 * select-msw.c (mswindows_get_foreign_selection):
14422 * select-msw.c (mswindows_disown_selection):
14423 * select-msw.c (console_type_create_select_mswindows):
14424 * select-msw.c (syms_of_select_mswindows):
14425 Cleaned up the file and implemented the device method
14426 selection_exists_p, which had accidentally been left out. Also
14427 removed four lisp functions that were remnants from before the
14428 time when the selection code was properly device abstracted.
14429 These functions are no longer needed because there are generic
14430 equivalents, and because they were added recently and don't exist
14431 in FSF Emacs, I don't think there's any problem with just deleting
14435 * sysdep.c (sys_subshell):
14436 Fixed a compile warning, although in this case there's probably
14437 something wrong with this code, and it ought to be looked into
14438 more thoroughly by somebody who understands it.
14441 * window.c (Fwindow_text_area_height):
14442 * window.c (Fwindow_width):
14443 * window.c (Fwindow_full_width):
14444 * window.c (Fwindow_pixel_width):
14445 * window.c (debug_print_window):
14446 * window.c (syms_of_window):
14447 Added functions window-text-area-height and window-full-width,
14448 which are functions for returning various width and height
14449 characteristics of a window. (One of these functions is necessary
14450 for making the file dialog box work correctly, and the other one
14451 was added for completeness.) Also added a table to the
14452 documentation for window-height which describes the entire scheme
14453 for accessing width and height characteristics of a window.
14455 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14457 * nt.c (fstat): Added a comment for another problem with
14458 non-encapsulated [f]stat(), reported by Adrian Aichner
14459 <aichner@ecf.teradyne.com>.
14461 2000-03-11 Andy Piper <andy@xemacs.org>
14463 * window.c (make_dummy_parent): initialize subwindow instance
14465 (Fset_window_configuration): zero extent_modiff.
14467 2000-03-10 Andy Piper <andy@xemacs.org>
14469 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14470 more changes can be triggered.
14471 (Fredisplay_frame): ditto.
14472 (Fredraw_device): ditto.
14473 (Fredisplay_device): ditto.
14474 (redisplay_frame): make non-static.
14475 (redisplay_frame): call update_frame_gutter_geometry outside of
14478 * gutter.h: declare update_frame_gutter_geometry.
14480 * redisplay.h: declare redisplay_frame.
14482 * gutter.c (update_frame_gutter_geometry): move geometry changes
14483 in update_frame_gutters here. Geometry changes can only occur
14484 outside of redisplay.
14485 (update_frame_gutters): remove geometry change code.
14486 (Fredisplay_gutter_area): make sure that we are in display when we
14487 update and that we have flushed any size changes.
14489 2000-03-11 Andy Piper <andy@xemacs.org>
14491 * alloc.c (pdump_dump_data): remove i & count shadows.
14493 2000-02-27 Mike Alexander <mta@arbortext.com>
14495 * sysdep.h: Declare pdump_read_file
14497 * sysdep.c (pdump_read_file): New function
14499 * alloc.c (pdump_load): Call pdump_read_file to get the portable
14502 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
14504 * lrecord.h: add `lrecord_type_pgsetenv'.
14506 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
14508 * symsinit.h: declare (vars|syms)_of* functions.
14509 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14511 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
14513 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14515 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14518 * emacs.c (main_1): Call postgres initialization code.
14520 * postgresql.h: New file. PostgreSQL RDBMS support.
14521 * postgresql.c: New file.
14523 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
14525 * redisplay-output.c (redisplay_output_display_block): Disable
14528 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14530 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14531 (Fcanna_henkan_next): Ditto.
14532 (Fcanna_bunsetu_henkou): Ditto.
14533 (Fcanna_henkan_kakutei): Ditto.
14534 (Fcanna_henkan_end): Ditto.
14535 (Fcanna_henkan_quit): Ditto.
14536 (Fcanna_henkan_next): Set retun value correctly.
14537 (c2mu): Use unsigned char instead of signed char.
14539 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14541 * emacs.c (main_1): Always call syms_of_gui.
14542 * inline.c: include gui.h
14544 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14546 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14547 converted to Lisp_Object.
14548 (Qtop_bottom): New variable.
14549 (syms_of_redisplay): Initialize it.
14550 * redisplay.h (Vvisible_bell): Ditto.
14551 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14552 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14553 only flash top and bottom.
14555 2000-03-08 Andy Piper <andy@xemacs.org>
14557 * buffer.c (Frename_buffer): record new buffer name the right way.
14559 2000-03-08 Andy Piper <andy@xemacs.org>
14561 * glyphs.c (update_subwindow): increase hash depth so that widget
14562 items get picked up properly.
14564 * redisplay-output.c (compare_runes): increase hash depth so that
14565 widget items get picked up properly.
14567 2000-03-08 Andy Piper <andy@xemacs.org>
14569 * gutter.c (output_gutter): add some debug.
14571 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14572 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14573 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14575 * redisplay-output.c (compare_runes): use display_hash to
14576 determine if glyphs really are not the same.
14578 * glyphs.c (update_subwindow): check display_hash to see if
14579 anything really needs to be updated. If not then do
14580 nothing. Record the display_hash after updating.
14581 (image_instance_equal): compare the image_instance face also.
14583 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
14585 * redisplay.h: Fix comment style.
14587 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
14589 * consle-msw.h (struct mswindows_frame):
14590 Added new member paint_pending to indicate whether a WM_PAINT
14591 magic event has been queued for this frame.
14593 * event-msw.c (mswindows_drain_windows_queue):
14594 Don't queue a WM_PAINT magic event if one is already queued.
14595 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14597 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14599 2000-03-07 Didier Verna <didier@xemacs.org>
14601 * dired.c: #include `regex.h' after `sysfile.h'.
14603 2000-03-06 Martin Buchholz <martin@xemacs.org>
14605 * sound.c (init_nas_sound): Fix compiler warning.
14607 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14609 (MARK_STRUCT_AS_FREE):
14610 (MARK_STRUCT_AS_NOT_FREE):
14611 Make `gcc -fstrict-aliasing' work properly.
14613 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
14615 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14616 (mswindows_delete_device): Call CoUnnitialize().
14618 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14620 2000-02-25 <CraigL@DyCon.com>
14622 * process-nt.c: MinGW now has <shellapi.h>, but still needs
14625 * sysdep.c: This extern declaration for environ prevents MinGW
14626 from finding the variable in CRTDLL.DLL.
14628 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14630 (SHGFI_EXETYPE): ..
14631 (WM_MOUSEWHEEL): ..
14632 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14634 (MMRESULT): Removed, now defined in cygwin's windows headers.
14636 (uid_t,gid_t,pid_t,ssize_t): ..
14637 (_timeb): Removed, MinGW defines both _timeb and timeb.
14638 (HAVE_H_ERRNO): Added.
14639 (HAVE_TZNAME): Added, configure is not detecting this.
14641 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
14643 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14644 * syntax.c (syntax_match): Use it.
14646 * cmds.c: Import auto-fill-chars from FSF Emacs.
14647 (Vauto_fill_chars): New variables.
14648 (internal_self_insert): Check Vauto_fill_chars.
14650 Declare auto-fill-chars as a Lisp variable and initialize it.
14652 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
14654 * fileio.c (Fmake_symbolic_link):
14656 Run handlers even if local machine doesn't have symlinks.
14658 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
14660 * event-msw.c (mswindows_drain_windows_queue):
14661 Don't generate paint magic events for non-XEmacs frames.
14663 2000-03-05 Andy Piper <andy@xemacs.org>
14665 * redisplay.c (redisplay_frame): generate_displayable_area and
14666 friends assumes that we are not in GC, we therefore have to make
14667 sure that this doesn't happen.
14669 * gutter.c (calculate_gutter_size): generate_displayable_area
14670 assumes that we are not in GC, we therefore have to make sure that
14671 this doesn't happen.
14673 2000-03-05 Martin Buchholz <martin@xemacs.org>
14675 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14677 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
14679 * redisplay.c (regenerate_window): Make sure we set a sane value
14680 for end_pos even if we jump out of the loop.
14681 (regenerate_window): Answer Ben's question :-).
14682 (start_end_of_last_line): Add may_error argument.
14683 (start_of_last_line):
14684 (end_of_last_line): Pass may_error = 0.
14685 (end_of_last_line_may_error): New function.
14686 (pixel_to_glyph_translation): Use it, so we don't crash in
14689 2000-03-04 Andy Piper <andy@xemacs.org>
14691 * window.h (struct window): add gutter_extent_modiff.
14693 * window.c (allocate_window): zero out gutter_extent_modiff.
14695 * redisplay.h: declare sync_display_line_structs.
14697 * redisplay.c (add_glyph_rune): add a better comment.
14699 * redisplay-output.c (sync_display_line_structs): made non-static.
14700 (compare_runes): remove unneccesary glyph cachel access.
14702 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14704 * gutter.c (output_gutter): don't output the gutter if extent
14705 changes only involve extents in buffers. use 4 sets of display
14707 (gutter_extent_signal_changed_region_maybe): new function. Mark
14708 extents in gutters as changed.
14709 (update_frame_gutters): use 4 sets of display lines.
14710 (reset_gutter_display_lines): ditto.
14711 (free_frame_gutters): ditto.
14712 (redraw_exposed_gutter): force output of gutters.
14714 * frame.h (struct frame): add 4 sets of gutter display lines.
14716 * extents.c: (extent_changed_for_redisplay): signal changes to
14717 extents in strings in the gutter as well as extents in buffers.
14719 2000-03-02 Andy Piper <andy@xemacs.org>
14721 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14723 * frame.c (Fmake_frame): make sure the gutters get initialized
14724 after the frame is visible.
14725 (set_frame_selected_window): re-arrange compilation macros a
14727 (change_frame_size_1): mark gutters changed.
14729 * device.c (Fset_device_class): mark gutters changed.
14731 2000-03-01 Andy Piper <andy@xemacs.org>
14733 * window.c (window_top_frame_gutter_height): deleted.
14734 (window_bottom_frame_gutter_height): ditto.
14735 (window_left_frame_gutter_height): ditto.
14736 (window_right_frame_gutter_height): ditto.
14737 (window_top_gutter_height): don't use them.
14738 (window_bottom_gutter_height): ditto.
14739 (window_left_gutter_width): ditto.
14740 (window_right_gutter_width): ditto.
14741 (Fsplit_window): ditto.
14742 (Fwindow_pixel_edges): don't use border dimensions here.
14744 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14745 (update_scrollbar_instance): ditto.
14747 * redisplay.c (generate_modeline): don't take gutters into account.
14748 (generate_modeline): ditto.
14749 (redisplay_frame): small gutter display optimization.
14751 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14753 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14754 gutters into account.
14756 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14757 for window position and type.
14759 * gutter.c (get_gutter_coords): fix for frame gutters.
14760 (update_frame_gutters): update frame geometry if the gutters have
14762 (init_frame_gutters): record current gutter geometries.
14764 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14766 (mswindows_widget_instantiate): ditto.
14768 * frame.h (struct frame): add current_gutter_bounds.
14770 * frame.c (change_frame_size_1): position window and minibuffer
14771 appropriately taking into account the frame gutters.
14773 * frame-x.c: (x_initialize_frame_size): take into account the
14776 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
14778 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
14780 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
14782 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14784 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14786 * file-coding.c (reset_decoding_stream): Clear previous
14787 detection state when autodetect.
14789 2000-02-29 Didier Verna <didier@xemacs.org>
14791 * extents.c (set_extent_glyph_1): don't require extents to be
14794 2000-02-27 Andy Piper <andy@xemacs.org>
14796 * gutter.c (Fset_default_gutter_position): don't default left and
14797 right gutter visibility to t.
14798 (Fset_default_gutter_position): run
14799 default-gutter-position-changed-hook.
14800 (syms_of_gutter): add default-gutter-position-changed-hook.
14802 2000-02-26 Andy Piper <andy@xemacs.org>
14804 * specifier.c (Fmake_specifier): add gutter references.
14806 * gutter.h (RAW_WINDOW_GUTTER): new macro.
14808 * lisp.h: declare Fvalid_plist_p.
14810 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14812 (default_gutter_visible_p_changed_in_window): invalidate gutter as
14813 well as its visibility so that it gets reconstructed.
14814 (construct_window_gutter_spec): new function. Construct a string
14815 to be displayed in the gutter from a plist of strings. Take care
14816 to only use elements that are declared as visible.
14817 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14819 (gutter_validate): allow plists of strings in the specifier.
14820 (gutter_specs_changed): construct the real_gutter from the gutter
14821 specs using construct_window_gutter_spec.
14822 (gutter_visible_validate): gutter-visible is a new specifier type.
14823 (Fgutter_visible_specifier_p): new function for the new specifier.
14824 (syms_of_gutter): declare gutter-visible and
14825 Fgutter_visible_specifier_p.
14826 (specifier_type_create_gutter): intitalize new gutter-visible
14828 (reinit_specifier_type_create_gutter): ditto.
14829 (specifier_vars_of_gutter): use new specifier type for gutter
14831 (init_frame_gutters): construct real_gutter correctly.
14832 (Fgutter_specifier_p): beef up documentation.
14833 (Fgutter_size_specifier_p): ditto.
14835 * winslots.h: add real_gutter slots.
14837 2000-02-25 Andy Piper <andy@xemacs.org>
14839 * device-msw.c: Be kind to older cygwin versions. From Raymond
14840 Toy <toy@rtp.ericsson.se>.
14842 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14843 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14845 2000-02-25 Martin Buchholz <martin@xemacs.org>
14847 * elhash.c (MARK_OBJ): Practice macro hygiene.
14849 2000-02-24 Martin Buchholz <martin@xemacs.org>
14851 * miscplay.c: s/__inline__/inline/g;
14852 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14853 (get_device_compdc): INLINE ==> static inline
14854 * *.[ch]: Change INLINE to INLINE_HEADER globally.
14855 find -name '*.h' | \
14856 xargs global-replace \
14857 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14859 2000-02-25 Andy Piper <andy@xemacs.org>
14861 * window.c (window_top_frame_gutter_height): new function.
14862 (window_top_window_gutter_height): ditto.
14863 (window_top_gutter_height): use them.
14864 (window_bottom_frame_gutter_height): new function.
14865 (window_bottom_window_gutter_height): ditto.
14866 (window_bottom_gutter_height): use them.
14867 (window_left_window_gutter_width): new function.
14868 (window_left_frame_gutter_width): ditto.
14869 (window_left_gutter_width): use them.
14870 (window_right_window_gutter_width): new function.
14871 (window_right_frame_gutter_width): ditto.
14872 (window_right_gutter_width): use them.
14873 (window_pixel_height): new function. calulate window pixel height
14874 with frame gutter involvement.
14875 (Fsplit_window): calculate new sizes taking frame gutters into
14877 (window_char_height_to_pixel_height): don't include frame gutters.
14878 (window_char_height): use window_pixel_height.
14879 (window_pixheight): rename from window_pixel_height.
14880 (change_window_height): use it.
14881 (window_pixel_height_to_char_height): don't include frame gutters.
14882 (window_char_width_to_pixel_width): ditto.
14884 2000-02-25 Andy Piper <andy@xemacs.org>
14886 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14889 2000-02-24 Martin Buchholz <martin@xemacs.org>
14891 * alloc.c (staticpro):
14892 (staticpro_nodump):
14897 (compact_string_chars):
14898 (pdump_dump_wired):
14899 Convert: if (foo) abort(); ==> assert (! foo);
14901 * eldap.c (Fldap_search_basic):
14905 Fix compiler warnings, and possible crashes if (random) return
14906 value were to be used.
14908 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14910 * device-msw.c: Workaround ResetDC failure.
14912 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14913 applying a devmode.
14915 * redisplay-msw.c (get_frame_dc): Added start_page_p.
14916 (mswindows_text_width): Do not start printer page.
14918 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14920 * glyphs-msw.c: Added image methods to msprinter console and
14921 msprinter-specific image instantiation.
14923 2000-02-20 Mike Alexander <mta@arbortext.com>
14925 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14926 to avoid crashes when selection-sets-clipboard is on
14927 (mswindows_own_selection): ditto
14929 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14932 * redisplay-msw.c (get_frame_dc):
14933 (get_frame_compdc):
14935 * device-msw.c (mswindows_init_device):
14936 (mswindows_delete_device):
14937 (msprinter_init_device):
14938 (msprinter_delete_device):
14939 * frame-msw.c (mswindows_init_frame_1):
14940 (mswindows_delete_frame):
14941 (msprinter_init_frame_3):
14942 (msprinter_delete_frame): Move compatible DC to device object from
14943 frame object, for both mswindows and msprinter. Only one at a time
14944 is needed, it is a real waste to have one per frame!
14946 2000-02-23 Andy Piper <andy@xemacs.org>
14948 * glyphs.c: add dynamic width and height elements.
14949 (image_instance_equal): ditto.
14951 * glyphs-widget.c (widget_query_geometry): calculate width and
14952 height dynamically if required.
14953 (initialize_widget_image_instance): initialize dynamic dimensions.
14954 (widget_instantiate): pick-up dynamic dimensions.
14956 * glyphs.h (struct Lisp_Image_Instance): add width and height for
14957 dynamic determination. Add appropriate macros.
14959 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14961 (WINDOW_GUTTER_SIZE): ditto.
14962 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14964 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14966 (get_frame_dc): ditto.
14968 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14971 2000-02-23 Martin Buchholz <martin@xemacs.org>
14973 * XEmacs 21.2.31 is released.
14975 2000-02-22 Ben Wing <ben@xemacs.org>
14977 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14979 2000-02-22 Andy Piper <andy@xemacs.org>
14981 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14983 2000-02-21 Mike Sperber <mike@xemacs.org>
14987 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14990 2000-02-21 Mike Sperber <mike@xemacs.org>
14992 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14994 2000-02-21 Martin Buchholz <martin@xemacs.org>
14996 * XEmacs 21.2.30 is released.
14998 2000-02-20 Martin Buchholz <martin@xemacs.org>
15000 Performance hacking.
15002 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15003 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15004 * emacs.c (main_1):
15006 * console.c (DEFVAR_CONSOLE_LOCAL_1):
15007 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15008 * symeval.h (DEFVAR_SYMVAL_FWD):
15009 * symbols.c (guts_of_unbound_marker):
15010 Make all c_readonly objects also lisp_readonly and marked for life.
15011 * lrecord.h (struct lrecord_implementation):
15012 Document flags better.
15013 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15014 * lrecord.h (DECLARE_LRECORD):
15015 * lrecord.h (XSETRECORD):
15016 * lrecord.h (RECORDP):
15017 * lrecord.h (RECORD_TYPEP):
15018 * lrecord.h (RECORD_MARKER): New.
15019 * lrecord.h (error_check_*):
15020 * lrecord.h (CONCHECK_NONRECORD):
15021 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15022 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15023 * lrecord.h (set_lheader_implementation):
15024 * lrecord.h (enum lrecord_type): New.
15025 * symeval.h (SYMBOL_VALUE_MAGIC_P):
15026 * alloc.c (disksave_object_finalization_1):
15027 * alloc.c (mark_object):
15028 * alloc.c (lrecord_type_index):
15029 * alloc.c (tick_lcrecord_stats):
15030 * alloc.c (Fgarbage_collect):
15031 * alloc.c (init_alloc_once_early):
15032 * alloc.c (pdump_load):
15033 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15034 * alloc.c (lrecord_type_index): Delete.
15035 Make lisp object type indexes be constant.
15036 Makes (byte-compile) 5% faster.
15037 Put all marker functions into their own array.
15038 Makes (garbage-collect) 5% faster.
15039 Optimize SYMBOL_VALUE_MAGIC_P.
15040 Makes (byte-compile) 2-3% faster.
15041 * config.h.in (gc_checking_assert): New.
15042 * alloc.c: Use gc_checking_assert().
15043 * .dbxrc: Make compatible with new object type implementation.
15044 * .gdbinit: Make compatible with new object type implementation.
15045 * alloc.c: Delete all symbols defined only for debugging, such as
15046 Lisp_Type_Vector and lrecord_charset.
15048 2000-02-21 Andy Piper <andy@xemacs.org>
15050 * gui-msw.c (Fmswindows_shell_execute): fix file location
15053 * buffer.c (Fkill_buffer): remove buffer from alist buffer
15054 unshowing so that set_window_buffer doesn't undo
15055 kill_buffer_hook's hard work.
15057 * glyphs-widget.c (tab_control_query_geometry): don't count the
15058 first item when calculating geometry.
15060 * glyphs.c (map_subwindow): remove redundant code.
15061 (update_frame_subwindows): be more circumspect about when to
15064 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15065 when items haven't changed. Update faces if faces have changed as
15066 well as just the widget face.
15067 (x_tab_control_update): Update faces if faces have changed as well
15068 as just the widget face.
15070 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
15072 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15074 (build_syscolor_string): Use mswindows_color_to_string to try to
15076 (mswindows_device_system_metrics): Reverse the foreground and
15077 background colors so that they match the documentation.
15079 * objects-msw.c: (mswindows_X_color_map): tweak some values so
15080 they match the default Windows palette.
15081 (mswindows_color_to_string): New function.
15083 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
15085 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15087 2000-02-18 Olivier Galibert <galibert@pobox.com>
15089 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15090 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15092 * symbols.c (init_symbols_once_early): Removed obsolete
15093 DATA_SEG_BITS related kludge.
15094 (defvar_magic): Ditto.
15096 * malloc.c: Removed obsolete DATA_SEG_BITS
15098 * mem-limits.h: Ditto.
15100 * Makefile.in.in: Removed obsolete HAVE_SHM
15103 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
15105 * device-msw.c (mswindows_delete_device): Free DDE string
15108 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15110 * keymap.c (get_keyelt):
15111 * unexnt.c (unexec):
15112 * vm-limit.c (memory_warnings):
15113 * ntheap.c (recreate_heap):
15114 * ntheap.h (UNINIT_PTR):
15115 * select-msw.c (Fmswindows_get_clipboard):
15116 (Fmswindows_set_clipboard):
15117 * objects-msw.h (MSWINDOWS_BAD_HFONT):
15119 * menubar-msw.c (displayable_menu_item):
15121 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15122 * sysdep.c (sys_subshell):
15123 * process-nt.c (nt_create_process):
15124 * nt.c (normalize_filename):
15125 (dostounix_filename):
15126 (unixtodos_filename):
15127 * ntproc.c (win32_executable_type):
15128 * ntplay.c (play_sound_data_1):
15130 * editfns.c (get_home_directory):
15131 * event-msw.c (struct winsock_stream):
15132 (mswindows_dde_callback):
15133 * device-msw.c (msprinter_init_device):
15134 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15136 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15137 mswindows_clear_toolbar were swapped!
15139 * objects-msw.c:(colormap_t):
15141 * emacs.c (struct standard_args): Fixed const jumble.
15143 * glyphs-widget.c (update_widget): Fixed comparison notation.
15145 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15147 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15148 __declspec(noreturn) syntax.
15150 2000-02-19 Martin Buchholz <martin@xemacs.org>
15152 * eldap.c (Fldap_open):
15153 (Fldap_search_basic):
15156 Use new coding system conversion macros.
15158 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15160 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15162 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
15164 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15165 (Fldap_add, Fldap_modify, Fldap_delete): New functions
15167 * eldap.c (Qadd, Qreplace): New constant symbols
15168 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15169 interruptions by XEmacs signals
15170 Remove unnecessary calls to slow_down_interrupts and
15171 speed_up_interrupts
15172 (Fldap_search_basic): Renamed from Fldap_search_internal
15173 Added new optional parameter VERBOSE that triggers the
15174 display of progress messages
15175 Remove unnecessary calls to slow_down_interrupts and
15176 speed_up_interrupts
15177 LDAP result code analysis rewritten
15178 (Fldap_add, Fldap_modify, Fldap_delete): New functions
15179 (syms_of_eldap): Define the new symbols and functions
15182 2000-02-17 Martin Buchholz <martin@xemacs.org>
15184 * realpath.c: Determine PATH_MAX maximally portably.
15186 * insdel.c (bytecount_to_charcount): Optimize.
15187 The function used to be optimized for entirely ASCII sequences.
15188 Now it is optimized for successive characters from the same
15189 charset. This also wins big for _mostly_ ASCII sequences.
15191 * fileio.c (Ffile_truename): convert return from realpath() using
15192 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
15193 - Rewrite GCPROing slightly.
15195 * sysdep.c (sys_open): Do filename conversion, like all other
15196 sys_* functions. Fixes bug:
15197 (let ((file-name-coding-system 'iso-8859-2))
15198 (write-region x y latin2-name))
15199 ==> writes filename using internal encoding.
15201 2000-02-18 Martin Buchholz <martin@xemacs.org>
15203 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15204 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15205 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15206 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15207 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15208 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15209 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15210 (CONST_IF_NOT_DEBUG): Delete.
15211 * alloc.c (this_one_is_unmarkable): Delete.
15212 (mark_object): Don't check for this_one_is_unmarkable. Use the
15213 c_readonly flag instead.
15214 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15216 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
15218 * event-msw.c (mswindows_drain_windows_queue):
15219 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15220 away redundant repaint events.
15222 2000-02-17 Andy Piper <andy@xemacs.org>
15224 * redisplay.h: declare mark_redisplay_structs.
15226 * redisplay.c (redisplay_window):
15227 (redisplay_frame): don't check subwindows_state_changed.
15228 (mark_redisplay): mark gutters here.
15230 * glyphs.c: (instantiate_image_instantiator): always layout if we
15231 haven't done so already.
15232 (allocate_image_instance): don't mark as dirty.
15233 (update_subwindow): bind inhibit_quit.
15235 * gutter.c (mark_gutters): new function.
15237 * glyphs-x.c (x_update_widget): Always resize to get round a
15240 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15241 breaking absolutely everything.
15243 * gutter.h: declare mark_gutters.
15245 2000-02-16 Martin Buchholz <martin@xemacs.org>
15247 * XEmacs 21.2.29 is released.
15249 2000-02-15 Olivier Galibert <galibert@pobox.com>
15251 * fns.c (size_bit_vector): Fix computation of the size.
15253 2000-02-15 Martin Buchholz <martin@xemacs.org>
15255 * *.[ch]: Change CONST to const globally.
15256 find -name '*.[ch]' | \
15257 xargs global-replace \
15258 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15259 - Remove vestigial references to CONST_IS_LOSING
15261 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
15263 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15264 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15265 events instead of dispatching them directly.
15266 (mswindows_handle_paint): New function to do repainting.
15267 (mswindows_wnd_proc):
15268 (emacs_mswindows_handle_magic_event): Call above function.
15270 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
15272 * objects-msw.c (mswindows_create_font_variant): Return the new
15274 (initialize_font_instance): Get font metrics from the underlined
15275 variant of the font to cope with the case where the underlined
15276 font has a bigger descent.
15278 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
15280 * gui.c (gui_item_accelerator): Return the first underlined
15281 character in item name.
15283 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15285 * lisp.h: Added Qprinter.
15287 * general.c (syms_of_general): Initialized it.
15289 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15291 (get_frame_compdc): Made inline.
15293 * console.h (struct console_methods): Added eject_page method.
15295 * frame.h: Added FRAME_DISPLAY_P and friends.
15296 Aligned backslahes in many macros in more readable fashion.
15297 Added page_number to struct frame, and an accessor macro
15300 * defice.h: Added DEVICE_DISPLAY_P and friends.
15302 * device.c (Fdevice_printer_p): Used these.
15304 * frame.c (allocate_frame_core): Initialize page number.
15305 (Fprint_job_page_number):
15306 (Fprint_job_eject_page): Implemented.
15308 * frame-msw.c (msprinter_eject_page): Added method.
15309 (msprinter_start_page): Added.
15311 * window.c (Fwindow_truncated_p): Fixed docstring.
15312 (Fwindow_last_line_visible_height): Implemented.
15314 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
15316 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15318 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15320 * syntax.c (scan_words): Always advance at least one character.
15322 2000-02-13 Andy Piper <andy@xemacs.org>
15324 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15325 to make sure the glyph is in the cachels.
15327 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15328 global image instance flag.
15329 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15330 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15332 * glyphs.c (allocate_image_instance): set dirty bits correctly.
15333 (Fset_image_instance_property): mark layout as changed.
15334 (invalidate_glyph_geometry_maybe): mark layout as changed.
15335 (glyph_width): use new NEEDS_LAYOUT macro.
15336 (glyph_ascent): ditto.
15337 (glyph_descent): ditto.
15338 (glyph_height): ditto.
15339 (image_instance_layout): mark layout as clean after laying out.
15340 (update_subwindow): don't mark layout as clean here.
15342 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15343 should no longer be needed.
15345 * glyphs-x.c (x_update_widget): sanitize asserts.
15346 (x_finalize_image_instance): sanitize assignment to widgets.
15348 * glyphs-widget.c (widget_instantiate): don't need to clear the
15351 2000-02-13 Martin Buchholz <martin@xemacs.org>
15353 * sysdep.c (getcwd): Use standard prototype.
15354 * sysdep.h (getcwd): Use standard prototype.
15356 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15357 (sequence, start, end).
15358 Remove redundant type checking.
15359 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15360 view of `caller-protects') to avoid a crash where the real fix was
15363 2000-02-12 Martin Buchholz <martin@xemacs.org>
15365 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15367 * s/sol2.h: Remove feature macro initialization.
15369 * alloc.c (alloc_lcrecord): Add more type checking assertions.
15370 (vector_hash): New. Code from internal_hash.
15372 Fix up allocation subsystem comments.
15374 * config.h.in: Add __EXTENSIONS__ for Solaris.
15376 * systime.h (EMACS_GETTIMEOFDAY): New.
15377 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15378 Remove Solaris-specific code.
15379 Use void* for the (ignored) second arg for gettimeofday().
15381 * elhash.c (hash_table_hash): Implement it, finally.
15382 * elhash.c: Use hashcode_t.
15384 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15385 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15387 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15388 * fns.c (size_bit_vector):
15389 * alloc.c (size_vector):
15390 (make_vector_internal):
15391 (make_bit_vector_internal):
15392 (sweep_bit_vectors_1):
15393 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15395 2000-02-10 Martin Buchholz <martin@xemacs.org>
15397 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15398 Include strings.h to avoid warnings for bzero and strcasecmp.
15400 2000-02-10 Olivier Galibert <galibert@pobox.com>
15402 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15403 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15405 * fns.c (size_bit_vector): New. Declare bit vectors as a
15408 2000-02-10 Olivier Galibert <galibert@pobox.com>
15410 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15411 use a value field instead.
15412 (symbol_value_forward_forward): Use value field.
15413 (DEFVAR_SYMVAL_FWD): Use value field.
15414 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
15415 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15416 (DEFVAR_CONST_INT): Ditto.
15417 (DEFVAR_BOOL): Ditto.
15418 (DEFVAR_CONST_BOOL): Ditto.
15419 (DEFVAR_INT_MAGIC): Ditto.
15420 (DEFVAR_BOOL_MAGIC): Ditto.
15422 * symbols.c (guts_of_unbound_marker): Use value field.
15423 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15424 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15426 * lisp.h: Declare dumpopaque and noninteractive1.
15428 * alloc.c (dumpopaque): Added.
15429 (pdump_dump_opaquevec): Added.
15430 (pdump): Call pdump_dump_opaquevec to dump opaque data.
15431 (pdump_load): Reload opaque data. Sync noninteractive1 with
15434 2000-02-10 Andy Piper <andy@xemacs.org>
15436 * glyphs.c (image_instance_layout): if the size changes, mark it
15439 * redisplay-output.c (redisplay_output_layout): Update the
15441 (redisplay_output_subwindow): ditto.
15443 * glyphs.c (update_subwindow): make sure we reset flags for
15444 layouts as well as everything else.
15446 * glyphs-widget.c (layout_layout): don't need to set the instances
15449 2000-02-09 Martin Buchholz <martin@xemacs.org>
15451 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
15452 not HAVE_DLOPEN, which is a lower-level thing.
15454 * .cvsignore: Ignore gmon.out
15456 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
15458 * .cvsignore: Ignore portable dumper xemacs.dmp file
15460 2000-02-09 Andy Piper <andy@xemacs.org>
15462 * redisplay-output.c (redisplay_output_layout): be more clever
15463 about when we output based on the changed flags.
15465 * glyphs.h (struct image_instantiator_methods): add update_method.
15466 (struct Lisp_Image_Instance): add changed flags. Declare new
15467 macros for manipulating them.
15469 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15470 (image_instance_parent_glyph): find an image_instance's parent
15471 glyph or image_instance.
15472 (image_instance_layout): mark the size as changed.
15473 (set_image_instance_dirty_p): new function. mark an image
15474 instance, plus all of its parents, as dirty.
15475 (Fset_image_instance_property): use it.
15476 (Fglyph_animated_timeout_handler): use it.
15477 (update_subwindow): call update_widget and device methods for
15478 update_subwindow. Mark all changed flags as clean.
15479 (Fresize_subwindow): mark size as changed.
15481 * glyphs-x.c (x_finalize_image_instance): try and detect gc
15483 (x_update_subwindow): only resize subwindows here.
15484 (x_update_widget): new function. Update all changed properties of
15486 (x_resize_subwindow): deleted.
15487 (x_widget_set_property): deleted.
15488 (x_progress_gauge_set_property): deleted.
15489 (x_progress_gauge_update): new function. Implement recorded
15491 (x_tab_control_update): ditto.
15492 (x_tab_control_set_property): deleted.
15493 (console_type_create_glyphs_x): declare new functions.
15494 (image_instantiator_format_create_glyphs_x): ditto.
15496 * glyphs-widget.c (widget_set_property): mark text changed.
15497 (update_widget): new function. Update properties of a widget.
15498 (widget_instantiate): for layouts make sure we set their
15499 children's parent correctly.
15500 (tab_control_set_property): new function. Record changes that will
15501 take place under redisplay's control.
15502 (progress_gauge_set_property): ditto.
15503 (image_instantiator_progress_guage): declare new functions.
15504 (image_instantiator_tab_control): ditto.
15506 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15508 (mswindows_update_widget): new function. Update all properties on
15509 a widget that have changed.
15510 (mswindows_button_update): new function. Update a button's set
15512 (mswindows_tab_control_update): new function. Update the items in
15514 (mswindows_tab_control_set_property): deleted.
15515 (mswindows_progress_gauge_update): new function. Update the
15516 progress gauge's progress.
15517 (mswindows_widget_set_property): deleted. This is all done
15518 asynchronously now.
15519 (mswindows_progress_gauge_set_property): ditto.
15520 (console_type_create_glyphs_mswindows): declare new methods.
15521 (image_instantiator_format_create_glyphs_mswindows): ditto.
15523 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15524 (msprinter_set_frame_properties): ditto.
15526 * console.h (struct console_methods): Add update_widget_method.
15528 2000-02-09 Andy Piper <andy@xemacs.org>
15530 * gui-msw.c (Fmswindows_shell_execute): Make
15531 mswindows-shell-execute industrial strength.
15533 2000-02-08 Martin Buchholz <martin@xemacs.org>
15535 * lrecord.h: Make macro argument `props' match member function `plist'.
15538 * fns.c (Fremprop):
15539 * fns.c (Fobject_plist):
15542 Object property list frobbing cleanup.
15543 - Allow any lisp object (compared with `eq'), not just symbols, as
15544 keys in object plists.
15545 - Move symbol plist frobbing into symbols.c, where it belongs.
15546 - Move string plist frobbing into alloc.c, where it belongs.
15547 - Everything's an lrecord now, so no need to test for symbolp, etc.
15548 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15550 * extents.c: Reorder code to remove declarations.
15552 * frame.h (store_in_alist): Remove useless declaration.
15554 2000-02-07 Martin Buchholz <martin@xemacs.org>
15556 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15557 * config.h.in: Add HAVE_XCONVERTCASE.
15559 2000-02-07 Andy Piper <andy@xemacs.org>
15561 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15562 it breaks many things.
15564 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
15566 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15567 actually can start a common comment type.
15568 * src/syntax.h (SYNTAX_END_P): ditto for end.
15570 2000-02-07 Martin Buchholz <martin@xemacs.org>
15572 * XEmacs 21.2.28 is released.
15574 2000-02-06 Martin Buchholz <martin@xemacs.org>
15576 * event-Xt.c (x_keysym_to_character): New.
15577 (maybe_define_x_key_as_self_inserting_character): New.
15578 (x_has_keysym): New.
15579 Auto-define all keys on the keyboard as self-insert-key.
15581 2000-02-02 Martin Buchholz <martin@xemacs.org>
15583 * menubar.c (vars_of_menubar): A small code simplification.
15585 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15588 * ExternalClient.c:
15589 * EmacsShell-sub.c:
15592 Use consistent style for specifying X resources.
15594 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15595 This makes (dontusethis-set-symbol-value-handler) actually usable.
15597 * lrecord.h (lrecord_decription_type):
15598 * alloc.c (pdump_register_sub):
15601 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15602 Comply with XEmacs coding style.
15603 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15604 args, and XD_LISP_OBJECT_ARRAY with 3 args.
15606 * keymap.c (Faccessible_keymaps):
15607 Make (accessible-keymaps map "\C-h") do the Right Thing.
15608 Make (accessible-keymaps map []) do the Right Thing.
15609 Make (accessible-keymaps map "") do the Right Thing.
15610 (check_keymap_definition_loop): New function.
15611 (keymap_store_internal): Keep luser from shooting self in foot,
15612 via (define-key ctl-x-4-map "p" global-map).
15613 Remove fullness slot from struct Lisp_Keymap, since hash tables
15615 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15617 2000-01-30 Martin Buchholz <martin@xemacs.org>
15619 * redisplay.c (init_redisplay): Fix small memory leak.
15621 * elhash.c (pdump_reorganize_hash_table):
15622 Rename from reorganize_hash_table. Change prototype.
15623 Reuse the original memory for hentries. Save 100k.
15624 * alloc.c (PDUMP_READ): new macro.
15625 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15626 * alloc.c: No need to #ifndef before #undef.
15628 * print.c: Allow debug_print() to print readably by modifying
15629 debug_print_readably. Use consistent variable names.
15631 * .dbxrc: Try to get things to work even if stopped in a function
15632 without source available by explicitly specifying source files.
15633 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15635 * unexnt.c (_start): Removed bogus code which caused loading heap
15636 from differrent executable file.
15637 Removed bogus assignment to _fmode, which caused inconsistencies.
15639 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15641 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15642 Have spawnve encapsulation regard DONT_ENCAPSULATE.
15643 Do not preliminary `#define signal sigset'.
15645 * systime.h: Do not prototype environ on windows nt and cygwin,
15646 this conflicts with system header.
15648 * syssignal.h: Use correct define for WINDOWSNT
15650 * sysdep.h: Do not prototype environ on windows nt, this conflicts
15651 with system header.
15653 * sysdep.c (near start of file): Fixed commentary and rearranged
15654 ifdefs in readable order.
15655 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15658 (end_of_data): Do not compile in if using PDUMP.
15660 * symsinit.h: Prototyped vars_of_nt().
15662 * ntproc.c (windows9x_p): Added, instead of os_subtype.
15663 (find_child_console): Use it.
15664 (sys_kill): Use it.
15666 * ntheap.h: Do not extern os_subtype.
15668 * ntheap.c (cache_system_info): Do not cache unneeded:
15669 nt_major_version, nt_minor_version and os_subtype.
15670 (recreate_heap): Do not compile in when PDUMPing.
15672 * nt.c (geteuid and friends): Use the new varibale
15673 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15674 (init_user_info): Removed the above mentioned hackery.
15675 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15676 stat has been fixed in the C runtime.
15677 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15679 * file-coding.c (struct file_coding_dump): Do not define
15680 ucs_to_mule_table in the struct if not MULE.
15681 (struct struct lrecord_description fcd_description_1): Do not dump
15684 * emacs.c (main_1): Call vars_of_nt().
15685 (right before Fdump_emacs_data): Don't need lastfile if using both
15686 portabe dumper and system malloc.
15688 * alloc.c (Fmemory_limit): Conditionalized out.
15689 (pdump): Use OPEN_BINARY for the portable dump file.
15690 (pdump_load): Ditto.
15692 2000-02-02 Mike Alexander <mta@arbortext.com>
15694 * nt.c (convert_time): Set tm_isdst before calling mktime and
15695 avoid calling it at all if the compiler supports 64 bit integers.
15696 Also initialize utc_base_ft before using it.
15698 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
15700 * frame.c (change_frame_size_1): Take f->internal_border_width
15701 into consideration when calculating the width of the frame.
15703 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15705 * window.c (frame_min_height):
15706 (frame_size_valid_p):
15707 (frame_pixsize_valid_p): Added.
15708 (check_frame_size): Generalized.
15710 * window.h: Prototyped the above.
15713 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15714 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15715 Deleted Vwin32_* and Vbinary_process_* unused variables.
15717 * device-msw.c (msprinter_init_device): Do not get printer font
15718 list; Added DEVMODE functions.
15720 * frame-msw.c: Added lots of printer code.
15722 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15725 * console-msw.h: Added more msprinter device private slots.
15727 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15729 * event-msw.c (key_needs_default_processing_p): Added.
15730 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15732 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15734 * glyphs.c (image_instance_layout): Mark image instance as clean
15736 (glyph_dirty_p): Removed redundant function.
15737 (invalidate_glyph_geometry_maybe): Added.
15738 (update_glyph_cachel_data): Call it.
15740 * glyphs.h: Prototyped it.
15742 * redisplay.c (add_glyph_rune): Call it.
15743 (redisplay_window): Reset glyphs cachels when frame faces have
15744 changed, thus forcing recomputation of built-in border glyphs.
15746 2000-01-30 Martin Buchholz <martin@xemacs.org>
15748 * Makefile.in.in: Make portable dumper and purify play well together.
15749 Add imperfect, but better than nothing, support for pdump.
15750 Remove xemacs.dmp when temacs is re-generated.
15751 Don't ignore errors when dumping xemacs.
15753 * symbols.c (maybe_call_magic_handler): Remove one magic number.
15755 2000-01-28 Andy Piper <andy@xemacs.org>
15757 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15758 (setup_normal_frame): ditto.
15759 (setup_frame_without_minibuffer): ditto.
15760 (setup_minibuffer_frame): ditto.
15761 (delete_frame_internal): ditto.
15762 (Fmake_frame_invisible): ditto.
15763 (Ficonify_frame): ditto.
15765 * window.h: change Fset_window_buffer signature.
15767 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15768 (Fset_window_buffer): allow recording of buffer if the window is
15769 the selected window.
15770 (window_loop): Use new Fset_window signature.
15772 2000-01-23 Daniel Pittman <daniel@danann.net>
15774 * config.h.in: Added template for `HAVE_ATHENA_3D'
15776 2000-01-29 Andy Piper <andy@xemacs.org>
15778 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15780 * gutter.c (output_gutter): Don't output if the window isn't live.
15782 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15784 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15785 of 01/12/00: Moved SetFocus back here where it belongs.
15787 2000-01-23 Andy Piper <andy@xemacs.org>
15789 * s/cygwin32.h: declare printer things.
15791 2000-01-26 Andy Piper <andy@xemacs.org>
15793 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15796 2000-01-24 Andy Piper <andy@xemacs.org>
15798 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15799 (mswindows_button_instantiate): Make sure glyph is a pixmap.
15801 * glyphs-widget.c (widget_instantiate): Avoid shadows.
15803 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15805 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15807 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15808 (mswindows_output_display_block): Avoid local shadows.
15810 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15811 (mswindows_enqueue_mouse_button_event): ditto.
15812 (mswindows_handle_gui_wm_command): remove declaration.
15814 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15817 * console-msw.h: Avoid shadows.
15818 (mswindows_get_toolbar_button_text):
15819 (emacs_mswindows_create_stream_pair):
15820 (emacs_mswindows_delete_stream_pair):
15821 (mswindows_handle_toolbar_wm_command): declare.
15823 * device-msw.c (build_syscolor_string): Avoid shadows.
15825 2000-01-23 Andy Piper <andy@xemacs.org>
15827 * glyphs-widget.c (widget_instantiate): reverse the items for
15828 layouts so that children are in the expected order.
15830 2000-01-28 Martin Buchholz <martin@xemacs.org>
15832 * ralloc.c: safe_bcopy ==> memmove
15833 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15834 * s/msdos.h: Remove BCOPY macros.
15835 * insdel.c (gap_right): Remove BCOPY conditional code.
15836 * insdel.c (gap_left): Remove BCOPY conditional code.
15837 XEmacs demands a working ANSI C compiler - hence memmove.
15839 * regex.c (regex_compile): Remove accidental use of trigraphs.
15841 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15843 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15846 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15848 * event-msw.c (mswindows_drain_windows_queue): Added the
15850 (mswindows_need_event): Commented the call to
15851 mswindows_drain_windows_queue().
15852 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15855 * console-msw.h: Moved a few function prototypes here from
15858 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15859 parameter from unsigned short to unsigned long.
15860 (Fmswindows_shell_execute): Added return value.
15862 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15864 * sysdep.c (init_system_name):
15865 process-unix.c (unix_canonicalized_host_name):
15866 Don't call freeaddrinfo() if getaddrinfo() fails.
15868 * process-unix.c (unix_open_unix_network_stream):
15869 Moved the code to get a port # into address loop.
15871 2000-01-27 Martin Buchholz <martin@xemacs.org>
15873 * buffer.c (reinit_vars_of_buffer):
15874 The right place to initialize conversion_in_dynarr and
15875 conversion_out_dynarr.
15877 * alloc.c (pdump): Use the real open() till sys_open() is functional.
15879 * process-unix.c (unix_canonicalize_host_name): Muleize.
15880 (unix_open_network_stream): Muleize.
15882 * buffer.h: Fix up prototypes for ralloc.c functions.
15884 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15885 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15886 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15887 instead of gethostbyname()
15888 * process-unix.c: In unix_canonicalize_host_name() and
15889 unix_open_network_stream(), add code to use getaddrinfo()
15890 instead of gethostbyname().
15892 2000-01-27 Daniel Pittman <daniel@danann.net>
15894 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15895 libs when built with flat Athena.
15897 2000-01-27 Martin Buchholz <martin@xemacs.org>
15899 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15900 Use coding standards for function prototypes.
15902 2000-01-25 Martin Buchholz <martin@xemacs.org>
15904 * dialog-msw.c (push_lisp_string_as_unicode):
15905 * doc.c (unparesseuxify_doc_string):
15906 * dired.c (Fuser_name_completion_1):
15907 * dired.c (Fuser_name_all_completions):
15908 * dired.c (free_user_cache):
15909 * dired.c (user_name_completion):
15910 * console-x.c (get_display_arg_connection):
15911 * minibuf.c (clear_echo_area_internal):
15912 * minibuf.c (echo_area_append):
15913 * eldap.c (Fldap_open):
15914 * eldap.c (Fldap_search_internal):
15915 * frame-x.c (x_set_frame_text_value):
15916 * frame-x.c (x_set_frame_properties):
15917 * frame-x.c (x_create_widgets):
15918 * redisplay-tty.c (term_get_fkeys_1):
15919 * objects-x.c (x_parse_nearest_color):
15920 * objects-x.c (x_valid_color_name_p):
15921 * objects-x.c (x_initialize_font_instance):
15922 * objects-x.c (x_list_fonts):
15923 * objects-x.c (x_find_charset_font):
15924 * tooltalk.c (Fadd_tooltalk_message_arg):
15925 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15926 * tooltalk.c (Fadd_tooltalk_pattern_arg):
15927 * process-unix.c (unix_create_process):
15928 * ntproc.c (sys_spawnve):
15929 * sound.c (Fplay_sound_file):
15930 * sound.c (Fplay_sound):
15931 * buffer.c (init_initial_directory):
15932 * buffer.c (init_buffer):
15933 * editfns.c (init_editfns):
15934 * editfns.c (Ftemp_directory):
15935 * editfns.c (Fuser_full_name):
15936 * editfns.c (uncache_home_directory):
15937 * editfns.c (get_home_directory):
15938 * editfns.c (Fuser_home_directory):
15939 * editfns.c (Fformat_time_string):
15940 * editfns.c (Fcurrent_time_string):
15941 * gui-x.c (button_item_to_widget_value):
15942 * database.c (Fopen_database):
15943 * event-Xt.c (x_to_emacs_keysym):
15944 * event-Xt.c (x_event_to_emacs_event):
15945 * event-Xt.c (describe_event_window):
15946 * event-msw.c (mswindows_wnd_proc):
15947 * glyphs-eimage.c (jpeg_instantiate):
15948 * glyphs-eimage.c (gif_instantiate):
15949 * glyphs-eimage.c (png_instantiate):
15950 * glyphs-eimage.c (tiff_instantiate):
15951 * glyphs-x.c (xbm_instantiate_1):
15952 * glyphs-x.c (x_xbm_instantiate):
15953 * glyphs-x.c (x_xface_instantiate):
15954 * glyphs-x.c (autodetect_instantiate):
15955 * glyphs-x.c (cursor_font_instantiate):
15956 * glyphs-x.c (x_widget_instantiate):
15957 * glyphs-x.c (x_widget_set_property):
15958 * glyphs-x.c (x_widget_property):
15959 * glyphs-x.c (BUILD_GLYPH_INST):
15960 * print.c (write_string_to_stdio_stream):
15961 * print.c (output_string):
15962 * print.c (Falternate_debugging_output):
15963 * print.c (Fexternal_debugging_output):
15964 * glyphs-msw.c (extract_xpm_color_names):
15965 * glyphs-msw.c (mswindows_xpm_instantiate):
15966 * glyphs-msw.c (bmp_instantiate):
15967 * glyphs-msw.c (resource_name_to_resource):
15968 * glyphs-msw.c (mswindows_resource_instantiate):
15969 * glyphs-msw.c (xbm_instantiate_1):
15970 * glyphs-msw.c (mswindows_xbm_instantiate):
15971 * glyphs-msw.c (mswindows_xface_instantiate):
15972 * glyphs-msw.c (mswindows_widget_instantiate):
15973 * glyphs-msw.c (add_tree_item):
15974 * glyphs-msw.c (add_tab_item):
15975 * glyphs-msw.c (mswindows_combo_box_instantiate):
15976 * glyphs-msw.c (mswindows_widget_property):
15977 * glyphs-msw.c (mswindows_combo_box_property):
15978 * glyphs-msw.c (mswindows_widget_set_property):
15979 * console.c (stuff_buffered_input):
15980 * objects-msw.c (mswindows_initialize_color_instance):
15981 * objects-msw.c (mswindows_valid_color_name_p):
15982 * objects-msw.c (mswindows_list_fonts):
15983 * objects-msw.c (mswindows_font_instance_truename):
15984 * bytecode.c (optimize_compiled_function):
15985 * select-x.c (symbol_to_x_atom):
15986 * select-x.c (x_atom_to_symbol):
15987 * select-x.c (hack_motif_clipboard_selection):
15988 * select-x.c (selection_data_to_lisp_data):
15989 * select-x.c (lisp_data_to_selection_data):
15990 * select-x.c (Fx_get_cutbuffer_internal):
15991 * select-x.c (Fx_store_cutbuffer_internal):
15992 * buffer.h (TO_EXTERNAL_FORMAT): New function.
15993 * buffer.h (TO_INTERNAL_FORMAT): New function.
15994 * emacs.c (make_arg_list_1):
15995 * emacs.c (make_argc_argv):
15996 * emacs.c (main_1):
15997 * emacs.c (Fdump_emacs):
15998 * emacs.c (split_string_by_emchar_1):
16003 * device-x.c (x_init_device):
16004 * device-x.c (Fx_valid_keysym_name_p):
16005 * device-x.c (Fx_get_font_path):
16006 * device-x.c (Fx_set_font_path):
16007 * glyphs.c (bitmap_to_lisp_data):
16008 * glyphs.c (pixmap_to_lisp_data):
16009 * alloc.c (make_ext_string): Use coding system arguments. Update
16011 * alloc.c (build_string):
16012 * callproc.c (child_setup):
16013 * callproc.c (init_callproc):
16014 * fileio.c (lisp_strerror):
16015 * fileio.c (directory_file_name):
16016 * fileio.c (Fexpand_file_name):
16017 * fileio.c (Ffile_truename):
16018 * fileio.c (Fsysnetunam):
16019 * fileio.c (Fdo_auto_save):
16020 * sysdep.c (sys_readdir):
16021 * tests.c: New file. Allow adding C tests.
16022 Replace GET_* macros with a more comprehensible and flexible
16023 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16025 Any coding system can be used to do format conversion.
16026 Eliminate enum external_data_format.
16027 Eliminate convert_to_external_format.
16028 Eliminate convert_to_internal_format.
16029 Make sure file-name, keyboard, terminal, and ctext are always
16030 defined as coding systems or aliases. Make
16031 file-name-coding-system, terminal-coding-system, and
16032 keyboard-coding-system magical variables that are equivalent to
16033 defining the corresponding coding system aliases.
16035 * file-coding.c (Fcoding_system_canonical_name_p): New function.
16036 * file-coding.c (Fcoding_system_alias_p): New function.
16037 * file-coding.c (Fcoding_system_aliasee): New function.
16038 * file-coding.c (append_suffix_to_symbol): New function.
16039 * file-coding.c (dangling_coding_system_alias_p): New function.
16040 * file-coding.c (Ffind_coding_system):
16041 * file-coding.c (Fcopy_coding_system):
16042 * file-coding.c (encode_coding_no_conversion):
16043 * file-coding.c (syms_of_file_coding):
16044 * file-coding.c (vars_of_file_coding):
16045 Rewrite coding system alias code.
16046 Allow nested aliases, like symbolic links.
16047 Allow redefinition of coding system aliases.
16048 Prevent existence of dangling coding system aliases.
16050 * dired.c (Fuser_name_completion_1):
16051 * dired.c (Fuser_name_all_completions):
16052 A crash would happen if user did QUIT in the middle of building
16053 user_name_cache. Remove redundant code in mainline and unwind_protect.
16056 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
16058 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16059 an unsigned char *. Update all callers.
16061 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16063 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16065 2000-01-25 Martin Buchholz <martin@xemacs.org>
16067 * elhash.c (hentry_description): Use more portable definition.
16068 (resize_hash_table): Initialize new hentries using
16069 xnew_array_and_zero, thereby simplifying the code.
16071 * mule-charset.c (make_charset): Make sure entire object is
16072 initialized, to avoid Purify warnings.
16074 * alloc.c (resize_string): Fix unlikely crash with big strings.
16076 2000-01-24 Martin Buchholz <martin@xemacs.org>
16078 * realpath.c (xrealpath):
16079 Don't call getwd().
16081 2000-01-25 Martin Buchholz <martin@xemacs.org>
16083 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16085 1999-12-28 Max Matveev <max@melbourne.sgi.com>
16087 * unexelfsgi.c (unexec): Change the way we decide which segment
16088 should be extended.
16090 Assumption that .bss section should be outside the PT_LOADable
16091 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16092 it's present) is inside the 'data' segment. This would fail the
16093 test which was used to find a segment to grow and cover new
16094 heap. Instead of this assumption, I created another one - on IRIX
16095 the segment to grow should start below .bss and it's address
16096 should extent above the end of .bss. Once this segment is
16097 identified, it's grown to accommodate the new heap and new
16098 zero-length .bss section is added at the end of .data2.
16100 2000-01-25 Martin Buchholz <martin@xemacs.org>
16102 * eval.c (Feval): Wrong number of arguments should use original
16103 function, not the indirect_function version of it.
16105 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
16107 * glyphs-x.c (x_button_instantiate): Don't add image if
16108 it is not a pixmap.
16109 (x_locate_pixmap_file): Call Fexpand_file_name when file name
16112 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
16114 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16116 (DEFVAR_INT_MAGIC): Ditto.
16117 (DEFVAR_BOOL_MAGIC): Ditto.
16118 * glyphs.h: Reindent backslash.
16120 2000-01-24 Martin Buchholz <martin@xemacs.org>
16122 * glyphs-widget.c (layout_query_geometry):
16123 (layout_layout): Use correct types for gheight, gwidth.
16125 2000-01-24 Martin Buchholz <martin@xemacs.org>
16127 * EmacsManager.c (QueryGeometry): Purified.
16129 2000-01-23 Martin Buchholz <martin@xemacs.org>
16131 * alloc.c (make_float): Make sure entire object is initialized, to
16132 avoid Purify warnings.
16133 (pdump_register_sub): Remove useless assignment.
16134 (pdump): Use xmalloc, not malloc.
16135 (pdump_load): Use xmalloc, not malloc.
16137 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16144 * sysdep.c: Removed redundant #include <windows.h>
16146 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16148 * frame.c (delete_frame_internal): Do not delete device when its
16149 implementation so declares.
16150 (delete_frame_internal): Set device selected frame to nil when
16151 last frame goes away.
16153 * device-msw.c (msprinter_device_system_metrics): Implemented.
16154 (mswindows_device_system_metrics): Added 'device-dpi property.
16156 * device.c: (Fdevice_printer_p): Added.
16157 Added 'offset-workspace device metric.
16159 * console.h (device_metrics): Declared DM_offset_workspace.
16161 2000-01-23 Martin Buchholz <martin@xemacs.org>
16163 * fileio.c (Ffile_truename): Remove pointless and confusing
16164 initialization of elen.
16166 * glyphs-widget.c: Compiler warning fixes.
16168 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
16170 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16171 instead of a Lisp_Object as argument to make it consistent with
16172 the other LIVE_P macros.
16173 (CHECK_LIVE_PROCESS): New macro.
16175 * process.c: Declare Qprocess_live_p.
16176 (Fprocess_live_p): New function.
16177 (create_process): Use PROCESS_LIVE_P.
16178 (read_process_output): Ditto.
16179 (set_process_filter): Ditto.
16180 (Fdelete_process): Ditto.
16181 (kill_buffer_processes): Ditto
16182 (process_send_signal): Use CHECK_LIVE_PROCESS.
16183 (Fprocess_input_coding_system): Check whether process is still
16184 alive (fix PR#1061).
16185 (Fprocess_output_coding_system): Ditto.
16186 (Fprocess_coding_system): Ditto.
16187 (Fset_process_input_coding_system): Ditto.
16188 (Fset_process_output_coding_system): Ditto.
16190 2000-01-23 Andy Piper <andy@xemacs.org>
16192 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16195 * glyphs.c (mark_image_instance): take into account changed
16196 image_instance format.
16197 (image_instance_equal): ditto.
16198 (image_instance_hash): ditto.
16200 * glyphs-widget.c (widget_instantiate): Incorporate layout
16201 instantiation here. Delay layout of the layout until later.
16202 (layout_instantiate): deleted.
16203 (layout_query_geometry): new function. get the geometry of a
16205 (layout_layout): layout a layout dynamically.
16206 (image_instantiator_widget): New function - splitting up
16207 image_instantiator_format_create_glyphs_widget for netwinder
16209 (image_instantiator_buttons):
16210 (image_instantiator_edit_fields):
16211 (image_instantiator_combo_box):
16212 (image_instantiator_scrollbar):
16213 (image_instantiator_progress_guage):
16214 (image_instantiator_tree_view):
16215 (image_instantiator_tab_control):
16216 (image_instantiator_labels):
16217 (image_instantiator_layout): ditto.
16218 (image_instantiator_format_create_glyphs_widget): Call preceding
16221 2000-01-22 Martin Buchholz <martin@xemacs.org>
16223 * process.c (Fset_process_coding_system):
16224 * device-x.c (Fx_keysym_hash_table):
16227 * lstream.c (Lstream_write): Return documented value, not 0.
16229 * fileio.c (directory_file_name):
16230 (Fsubstitute_in_file_name):
16231 (Fsubstitute_insert_file_contents_internal):
16232 (Fwrite_region_internal):
16237 Remove vestigial APOLLO-conditional code.
16239 2000-01-21 Martin Buchholz <martin@xemacs.org>
16241 * getpagesize.h: Add guard macros.
16242 * libsst.h: Add guard macros.
16243 * libst.h: Add guard macros.
16244 * line-number.h: Add guard macros.
16245 * ndir.h: Add guard macros.
16246 * sysfloat.h: Add guard macros.
16247 * sysfile.h: Add guard macros.
16248 * sysproc.h: Add guard macros.
16249 * syswait.h: Add guard macros.
16250 * xintrinsic.h: Add guard macros.
16251 * xintrinsicp.h: Add guard macros.
16252 * xmmanager.h: Add guard macros.
16253 * xmmanagerp.h: Add guard macros.
16254 * xmprimitive.h: Add guard macros.
16255 * xmu.h: Add guard macros.
16256 * gpmevent.h: Add copyright statement. Add guard macros.
16257 * miscplay.h: Add guard macros.
16258 * *.h: Use consistent C-standards-approved guard macro names.
16260 * opaque.c (make_opaque): Switch parameter order.
16261 * opaque.h (make_opaque): Switch parameter order.
16262 Update all callers.
16263 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16265 * config.h.in (type_checking_assert): Added.
16266 (bufpos_checking_assert): Added.
16268 2000-01-21 Martin Buchholz <martin@xemacs.org>
16270 * alloc.c: Harmless pdump changes.
16272 - spell alignment correctly.
16273 * sysdep.c: Use countof()
16275 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16277 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16278 initially_selected_for_input() console method, default to 0.
16279 (semi_canonicalize_console_connection): Try to delegate to
16280 canonicalize_console_connection if no such console method.
16281 (canonicalize_console_connection): Vice versa.
16282 (print_console): Do not print nil connection.
16284 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16285 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16286 (XDEVIMPF_FRAMELESS_OK): Added.
16287 (CONSOLE_INHERITS_METHOD): Added.
16289 * console-msw.c (mswindows_canonicalize_console_connection):
16291 (mswindows_canonicalize_device_connection): Added.
16293 * console-msw.h (struct msprinter_device): Added this struct and
16295 (mswindows_device): Made fontlist a lisp object.
16297 * device.c (semi_canonicalize_device_connection): Try to delegate
16298 to canonicalize_device_connection if no such console method.
16299 (canonicalize_device_connection): Vice versa.
16300 (print_device): Do not print nil connection.
16302 * device-msw.c (mswindows_init_device): Call InitCommonControls
16304 (mswindows_delete_device): Removed fontlist deallocation.
16305 (mswindows_mark_device): Added.
16307 * events.c (event_equal): Added abort() at unreached code.
16308 (event_hash): Ditto.
16310 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16311 fallback tags of Windows devices.
16313 * general.c (syms_of_general): Initialized Qmsprinter.
16315 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16316 of fallback tags of Windows devices.
16318 * lisp.h: Declared Qmsprinter.
16320 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16322 (mswindows_list_fonts): Ditto.
16323 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16324 that it can be used by both mswindows and msprinter devices.
16325 (initialize_font_instance): Added.
16326 (mswindows_initialize_font_instance): Use it.
16327 (msprinter_initialize_font_instance): Added.
16329 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16330 and implementation flags check.
16331 (redisplay_without_hooks): Changed the call to the above.
16332 (Fredraw_device): Ditto.
16333 (Fredisplay_device): Ditto.
16335 * redisplay-msw.c (get_frame_dc): Implemented.
16336 (get_frame_compdc): Implemented.
16337 (many functions): Use the two functions above to get device
16338 contexts, ether for a window or a printer.
16340 2000-01-21 Olivier Galibert <galibert@pobox.com>
16342 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16343 initialization here.
16344 (init_symbols_once_early): Call it.
16345 * emacs.c (main_1): Call it.
16346 * symsinit.h: Declare it.
16348 2000-01-19 Olivier Galibert <galibert@pobox.com>
16350 * alloc.c: Use a lrecord_header * in the backtrace instead of a
16352 (pdump_backtrace): Ditto.
16353 (pdump_register_object): Ditto. Cleanup use of the pointers.
16354 (pdump_get_entry): Abort if trying to register a null pointer.
16355 (pdump_dump_data): Cleanup types when relocating.
16356 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16357 (pdump_dump_rtables): Remove bad casts.
16358 (pdump_load): Cleanup relocation w.r.t union type. Use a
16359 Lisp_Object instead of a EMACS_INT for the hashtable
16362 2000-01-20 Martin Buchholz <martin@xemacs.org>
16364 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16366 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16368 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16370 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16372 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16374 * faces.h (FACE_STRIKETHRU_P): Added.
16376 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16379 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16380 (mswindows_set_dc_font): New function, aware of font variants,
16381 separated from mswindows_update_dc.
16383 * objects-msw.h (struct mswindows_font_instance_data): Added
16386 * objects-msw.c (mswindows_finalize_font_instance): Delete all
16387 cached fonts and the data structure.
16388 (mswindows_initialize_font_instance): Added creation of font data
16390 (mswindows_print_font_instance): Print at least something.
16391 (mswindows_create_font_variant): Implemented.
16392 (mswindows_get_hfont): Implemented.
16394 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
16396 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16397 prototyping problem with msvc.
16399 * emacs.c (main_1): added syms_of_gui_mswindows() call
16401 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16402 syms_of_gui_mswindows() function
16404 * symsinit.h: added the prototype for syms_of_gui_mswindows()
16406 2000-01-18 Martin Buchholz <martin@xemacs.org>
16408 * XEmacs 21.2.27 is released.
16410 2000-01-18 Martin Buchholz <martin@xemacs.org>
16412 * glyphs-eimage.c (struct tiff_error_struct):
16414 (tiff_warning_func):
16415 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16420 * unexec.c: Remove vestigial Lucid C code.
16424 * libsst.c: Ansify.
16425 Remove declarations of errno and strerror().
16427 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
16429 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16431 2000-01-16 Martin Buchholz <martin@xemacs.org>
16433 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16436 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16441 Change enum eol_type to eol_type_t.
16443 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16445 * gui.c (get_gui_callback): Check cons before accessing car.
16447 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16449 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16450 (XSETSPECIFIER_TYPE): Ditto.
16452 2000-01-17 Didier Verna <didier@xemacs.org>
16454 * redisplay.c (generate_fstring_runes): compute string size in
16455 characters, not bytes.
16457 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
16459 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16461 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
16463 * print.c (print_error_message): Call print_prepare().
16465 2000-01-14 Martin Buchholz <martin@xemacs.org>
16467 * .dbxrc: Renamed from dbxrc.
16469 * events.c (event_to_character):
16470 Use `assert (foo)' instead of `if (!foo) abort()'
16472 * .gdbinit (xtype): Add documentation.
16473 * .gdbinit (check-temacs): New function.
16474 * .gdbinit (check-xemacs): New function.
16475 * dbxrc (check-xemacs): New function.
16476 * dbxrc (check-xemacs): New function.
16478 2000-01-14 Andy Piper <andy@xemacs.org>
16480 * glyphs-widget.c (widget_query_geometry): Make sure that we
16481 calculate default dimensions correctly.
16483 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16485 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16487 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16488 pdump_wire'd variable.
16490 * emacs.c: (main_1): Conditionalized calls to
16491 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16493 2000-01-13 Martin Buchholz <martin@xemacs.org>
16495 * window.c (Fset_window_configuration):
16496 * sysdep.c (_start):
16497 * input-method-motif.c (res):
16498 * event-Xt.c (Xt_process_to_emacs_event):
16499 Simple compiler warning fixes.
16501 * bytecode.c (funcall_compiled_function): Use the original
16502 function symbol on the backtrace list in preference to the
16503 compiled_function object in error messages.
16505 2000-01-13 Andy Piper <andy@xemacs.org>
16507 * glyphs-x.c (update_widget_face): Make sure we update the widget
16508 background as well as foreground.
16510 2000-01-13 Andy Piper <andy@xemacs.org>
16512 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16513 fields to subwindow.
16514 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16515 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16516 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16517 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16519 * glyphs-widget.c (check_valid_tab_orientation): new function.
16520 (initialize_widget_image_instance): zero orientation and
16522 (widget_instantiate): pick up orientation.
16523 (tab_control_query_geometry): return appropriate values for
16526 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16527 appropriate creation flags for left, right and bottom tabs.
16529 * s/cygwin32.h: add tab definitions.
16531 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16533 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16534 frame upon hiding a subwindow.
16535 (mswindows_button_instantiate): Changed the push button style to
16537 (mswindows_button_instantiate): Removed button BS_NOTIFY
16539 (mswindows_button_instantiate): Removed redundant check for
16540 a disabled gui item.
16541 (mswindows_button_instantiate): Made use of WS_TABSTOP
16542 consistent: "operable" controls (edit, button, tree, scroll) have
16543 this style, "display-only" ones (static, progress gauge) do
16544 not. This style is currently ignored by XEmacs though. Also,
16545 removed the WS_EX_CONTROLPARENT style - it is not for children,
16546 it is for their parents!
16547 (mswindows_edit_field_instantiate): Ditto.
16548 (mswindows_progress_gauge_instantiate): Ditto.
16549 (mswindows_tree_view_instantiate): Ditto.
16550 (mswindows_tab_control_instantiate): Ditto.
16551 (mswindows_scrollbar_instantiate): Ditto.
16552 (mswindows_combo_box_instantiate): Ditto.
16553 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16554 style to the "clip" window.
16555 (mswindows_button_instantiate): Removed compilation warning by
16556 equally typing terms of the ?: operator.
16558 2000-01-12 Didier Verna <didier@xemacs.org>
16560 * redisplay.c (generate_fstring_runes): new parameter holding the
16561 last modeline-format extent.
16562 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16563 extent, fill the glyph block with it.
16564 (generate_fstring_runes): handle these parameters.
16565 (generate_formatted_string_db): ditto.
16567 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16568 glyphs'extents in the modeline.
16570 1999-01-11 Mike Woolley <mike@bulsara.com>
16572 * ntheap.c: Reduced the reserved heap space from 1Gb down to
16573 256Mb, as a workaround for the non-starting problem many people
16576 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16578 * console-tty.c (Fset_console_tty_output_coding_system):
16579 Force redrawing tty frame.
16581 2000-01-10 Didier Verna <didier@xemacs.org>
16583 * redisplay.c (generate_fstring_runes): fix size computation bug.
16585 2000-01-09 William M. Perry <wmperry@aventail.com>
16587 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16589 2000-01-09 Andy Piper <andy@xemacs.org>
16591 * glyphs-msw.c: index -> i to avoid shadows.
16592 (xbm_create_bitmap_from_data): make static.
16593 (check_valid_string_or_int): deleted.
16594 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16596 * glyphs-x.c (x_update_subwindow): remove unused args.
16598 * glyphs.c (glyph_image_instance): return the thing. Don't set the
16599 back pointer - this is done in allocate_image_instance.
16600 (query_string_font): return Qnil to make the compiler happy.
16601 (unmap_subwindow): set to ~0 to make the compiler happy.
16602 (glyph_query_geometry): comment out until used.
16603 (glyph_layout): ditto.
16605 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
16607 * insdel.c (signal_after_change): Remove extraneous unbind_to().