1 2004-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * mule-charset.c (Fsave_charset_properties): Use `true-name' only
4 for aliases; write `description'; write
5 `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
8 2004-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
10 * chartab.c (Fsave_char_attribute_table): Don't use
11 `save_charset_properties'.
13 * mule-charset.c (Fsave_charset_properties): Renamed from
14 `save_charset_properties' and changed to Lisp function again;
15 write property `type' as `CCS'; write properties `final-byte' and
16 `mother' if they exists.
17 (syms_of_mule_charset): Revive builtin function
18 `save-charset-properties' when HAVE_LIBCHISE is defined.
20 2004-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
22 * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
23 instead of Vexec_directory.
24 (char_attribute_system_db_file): Likewise.
26 2004-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
28 * chartab.c (Fsave_char_attribute_table): Use
29 `save_charset_properties' for CCS features when HAVE_LIBCHISE is
32 * mule-charset.c (save_charset_properties): Renamed from
33 `Fsave_charset_properties'; changed to non-Lisp function.
34 (syms_of_mule_charset): Abolish builtin function
35 `save-charset-properties'.
37 2004-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
39 * mule-charset.c (Fsave_charset_properties): New function when
40 HAVE_LIBCHISE is defined.
41 (syms_of_mule_charset): Add new builtin function
42 `save-charset-properties' when HAVE_LIBCHISE is defined.
44 2004-06-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
46 * chartab.c (Fput_char_attribute): Convert char-specs in value of
47 `{<-|->}ancient[^*]*' to characters and put reverse links.
48 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
49 for `{<-|->}ancient[^*]*'.
51 2004-06-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
53 * chartab.c (Fput_char_attribute): Convert char-specs in value of
54 `{<-|->}original[^*]*' to characters and put reverse links.
55 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
56 for `{<-|->}original[^*]*'.
58 2004-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
60 * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
62 2004-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
64 * mule-charset.c (Qsystem_char_id): New variable.
66 * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
67 defined and HAVE_LIBCHISE_LIBCHISE is not defined.
69 2004-05-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
71 * chartab.c (Fput_char_attribute): When processing a reference of
72 a character, put into the end of the reversed reference of each
75 2004-05-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
77 * chartab.c (Q_same): Deleted.
79 (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
80 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
82 (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
84 2004-05-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
86 * chartab.c (Q_vulgar): Deleted.
87 (Q_vulgar_of): Deleted.
88 (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
89 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
91 (syms_of_chartab): Don't define `{<-|->}vulgar'.
93 2004-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
95 * chartab.c (Fput_char_attribute): Convert char-specs in value of
96 `{<-|->}wrong[^*]*' to characters and put reverse links.
97 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
98 for `{<-|->}wrong[^*]*'.
100 2004-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
102 * chartab.c (Q_vulgar): New variable.
103 (Q_vulgar_of): New variable.
104 (Fput_char_attribute): Convert char-specs in value of
105 `{->|<-}vulgar' to characters and put reverse links.
106 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
108 (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
110 2004-04-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
112 * text-coding.c (decode_add_er_char): Must to quote prefix string
115 2004-04-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
117 * mule-charset.c (put_char_ccs_code_point): Store characters of
118 =ucs whose code_points >= 0xF0000.
120 2004-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
122 * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
124 (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
126 (complex_vars_of_mule_charset): Add new coded-charset
127 `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
128 builtin characters over 0xEFFFF.
130 * chartab.c (syms_of_chartab): Don't define symbol
131 `system-char-id' in every case.
133 * char-ucs.h (Qsystem_char_id): New extern variable.
134 (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
136 2004-04-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
138 * text-coding.c (char_encode_utf8): Try to use entity-references
139 for U-000F0000 ... U-0010FFFF.
141 2004-04-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
143 * text-coding.c (ER_BUF_SIZE): New macro.
144 (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
146 (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
147 (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
149 2004-03-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
151 * chartab.c (find_char_feature_in_family): New function.
152 (Fchar_feature): Use `find_char_feature_in_family' with
153 `->identical', `<-subsumptive' and `<-denotational'.
155 2004-03-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
157 * text-coding.c (char_encode_as_entity_reference): Allow prefix
158 within 8 characters; fix infinite loop.
160 2004-03-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
162 * chartab.c (Q_same): New variable.
163 (Q_same_of): New variable.
164 (Fput_char_attribute): Convert char-specs in value of
165 `{->|<-}same' to characters and put reverse links.
166 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
168 (syms_of_chartab): Add new symbols `{->|<-}same'.
170 2004-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
172 * chartab.c (Q_component): New variable.
173 (Q_component_of): Likewise.
174 (Fput_char_attribute): Convert char-specs in value of
175 `{->|<-}ideographic-component-forms' to characters and put reverse
177 (syms_of_chartab): Add new symbols
178 `{->|<-}ideographic-component-forms'.
180 2004-02-24 MORIOKA Tomohiko <tomo@m17n.org>
182 * chartab.c (Q_identical): New variable.
183 (Q_identical_from): New variable.
184 (Fchar_feature): Regard `->identical' as a feature to find
186 (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
187 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
188 for `{->|<-}identical'.
189 (syms_of_chartab): Add new symbols `{->|<-}identical'.
191 2004-02-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
193 * char-ucs.h (encode_char_2): New inline function.
194 (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
196 2004-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
198 * chartab.c (Fput_char_attribute): Convert char-specs to
199 characters in value of `ideographic-structure'.
200 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
201 for `{<-|->}simplified(@...)'.
202 (Fdefine_char): bTry to use predefined character's id.
204 2004-02-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
206 * fns.c (simplify_char_spec): Try to convert builtin chars to
209 2004-02-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
211 * chartab.c (Fput_char_attribute): Convert char-specs in value of
212 `<-simplified[^*]*' to characters and put reverse links.
214 2004-02-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
216 * chartab.c (Q_subsumptive): Renamed from Q_unified.
217 (Q_subsumptive_from): Renamed from Q_unified_from.
218 (Fchar_feature): Use `Q_subsumptive_from' instead of
220 (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
222 (syms_of_chartab): Rename `->unified' to `->subsumptive' and
223 `<-unified' to `<-subsumptive'.
225 2004-02-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
227 * chartab.c (Fchar_feature): Check `<-denotational' to avoid
228 inheritance itself; fix typo; stop recursive search if cyclic
229 inheritance is found.
231 2004-02-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
233 * chartab.c (Q_denotational): New variable.
234 (Q_denotational_from): New variable.
235 (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
236 (put_char_attribute): New function.
237 (Fput_char_attribute): Use `put_char_attribute'; regard
238 `->denotational' and `<-denotational' as same as `->unified' and
240 (syms_of_chartab): Add new symbols `->denotational' and
243 2004-02-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
245 * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
246 `Fget_char_attribute'.
247 (Fchar_variants): Likewise.
248 (get_char_table): Likewise.
249 (Fchar_feature): New function.
250 (put_char_composition): Use `Fchar_feature' instead of
251 `Fget_char_attribute'.
252 (Fput_char_attribute): Likewise; don't put the target character
253 into its `->unified' value.
254 (syms_of_chartab): Add new builtin function `char-feature'.
256 2004-01-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
258 * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
259 `Fget_char_attribute'.
260 (char_encode_utf8): Likewise.
262 * chartab.h: Add an EXFUN for `Fchar_feature'.
264 2004-01-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
266 * chartab.c (Vnext_defined_char_id): New variable.
267 (Fput_char_attribute): Accept characters in `->unified'.
268 (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
269 new characters which are not related with builtin char-id ranges.
270 (vars_of_chartab): Add new variable `next-defined-char-id'.
272 2004-01-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
274 * chartab.c (Q_unified): New variable.
275 (Q_unified_from): New variable.
276 (Fput_char_attribute): Add code for `->unified'.
277 (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
280 2003-11-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
282 * mule-charset.c (decode_ccs_conversion): New function.
283 (decode_defined_char): Use `decode_ccs_conversion'.
284 (decode_builtin_char): Likewise.
286 2003-11-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
288 * char-ucs.h: Change some charset-ids of private coded-charsets.
290 2003-11-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
292 * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
293 (char_encode_as_entity_reference): Likewise.
294 (decode_coding_big5): Modify for `decode_defined_char' and
296 (decode_coding_utf8): Modify for `decode_defined_char'; modify to
297 avoid compiler warning.
298 (decode_coding_iso2022): Modify for `DECODE_CHAR'.
300 * mule-charset.c (decode_defined_char): Add new argument
301 `without_inheritance'.
302 (Fdecode_char): Add new optional argument `without_inheritance'.
303 (Fdecode_builtin_char): Modify for `Fdecode_char'.
305 * fns.c (ids_format_unit): Modify for `Fdecode_char'.
306 (simplify_char_spec): Likewise.
308 * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
311 * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
312 (map_char_table): Likewise.
313 (Fdefine_char): Use `Fdecode_char' without inheritance.
314 (Ffind_char): Modify for `Fdecode_char'.
316 * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
318 * char-ucs.h (decode_defined_char): Add new argument
319 `without_inheritance'.
320 (DECODE_CHAR): Likewise.
321 (MAKE_CHAR): Modify for `DECODE_CHAR'.
323 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
325 * chartab.c (Vchise_system_db_directory): New variable.
326 (vars_of_chartab): Add new variable `chise-system-db-directory'.
328 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
330 * chartab.c: EXFUN `Fmount_char_attribute_table'.
331 (print_chartab_range): Don't define when `UTF2000' is defined.
332 (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
335 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
337 * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
338 and optional argument `rehash' is specified, call
339 `open_chise_data_source_maybe' before
340 `chise_ds_foreach_char_feature_name' is called.
342 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
344 * chartab.c (char_attribute_list_reset_map_func): New function
345 when HAVE_LIBCHISE is defined.
346 (Fchar_attribute_list): Add new optional argument `rehash' when
347 HAVE_LIBCHISE is defined.
348 (open_chise_data_source_maybe): Use "chise-db" instead of
350 (char_attribute_system_db_file): Likewise.
351 (Fload_char_attribute_table): Use
352 `chise_feature_foreach_char_with_value' instead of
353 `chise_char_feature_value_iterate'.
355 2003-10-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
357 * chartab.c (Vchise_db_directory): New variable.
358 (vars_of_chartab): Add new built-in variable `chise-db-directory'.
360 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
362 * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
363 instead of HAVE_CHISE to specify using with libchise.
365 * config.h.in (HAVE_CHISE_CLIENT): Deleted.
367 * chartab.h: Don't use HAVE_CHISE_CLIENT.
369 * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
370 defined or HAVE_LIBCHISE_LIBCHISE is defined.
371 (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
373 (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
374 HAVE_CHISE to specify using with libchise.
375 (syms_of_chartab): Don't define symbol `system-char-id' when
376 HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
378 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
380 * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
381 specify CHISE DB support.
382 (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
383 of `char_attribute_system_db_file' to check feature DB file.
385 * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
386 HAVE_CHISE_CLIENT to specify CHISE DB support.
388 * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
389 specify CHISE DB support.
390 (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
392 (Freset_char_attribute_table): Use `chise_feature_setup_db'
393 instead of `char_attribute_system_db_file' to check feature DB
396 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
398 * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
401 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
403 * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
404 (Fsave_charset_mapping_table): Don't use
405 `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
407 * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
408 (HAVE_LIBCHISE): New macro.
410 * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
412 * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
413 (Fsave_char_attribute_table): Don't use
414 `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
416 2003-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
418 * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
420 (save_uint16_byte_table): Likewise.
421 (save_byte_table): Likewise.
422 (char_table_get_db): Use `chise_ds_load_char_feature_value'
423 instead of `chise_char_load_feature_value'.
424 (Fsave_char_attribute_table): Use libchise when CHISE is defined.
426 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
428 * chartab.h (struct Lisp_Char_Table): Delete member
429 `feature_table' if CHISE is defined.
431 * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
432 (Fcopy_char_table): Likewise.
433 (char_table_open_db_maybe): Likewise.
434 (char_table_close_db_maybe): Likewise.
435 (char_table_get_db): Likewise.
436 (Fmount_char_attribute_table): Likewise.
437 (Fload_char_attribute_table): Likewise.
439 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
441 * mule-charset.c (load_char_decoding_entry_maybe): Use
442 `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
445 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
447 * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
448 instead of `chise_open_data_source'.
449 (Fclose_char_data_source): Use `CHISE_DS_close' instead of
452 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
454 * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
455 instead of `chise_ds_open_feature_table'.
456 (char_table_close_db_maybe): Don't use `chise_ft_close'.
458 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
460 * mule-charset.c (Fsave_charset_mapping_table): Use
461 `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
462 `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
463 `chise_ccs_sync' instead of `chise_ccst_close'.
464 (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
466 * chartab.c (open_chise_data_source_maybe): Modify for
467 `chise_open_data_source'.
468 (char_table_open_db_maybe): Modify for
469 `chise_ds_open_feature_table'.
471 2003-08-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
473 * mule-charset.c (load_char_decoding_entry_maybe): Use
474 `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
477 2003-08-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
479 * mule-charset.c (Fsave_charset_mapping_table): Use
480 `chise_ds_open_ccs_table', `chise_ccst_put_char' and
481 `chise_ccst_close' instead of `chise_ds_open_decoding_table',
482 `chise_dt_put_char' and `chise_dt_close'.
483 (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
484 `chise_ccs_decode' and `chise_ccst_close' instead of
485 `chise_ds_open_decoding_table', `chise_dt_get_char' and
488 * chartab.c (char_table_get_db): Use
489 `chise_char_load_feature_value' instead of `chise_ft_get_value'.
490 (load_char_attribute_table_map_func): Modify for
491 `chise_char_feature_value_iterate'.
492 (Fload_char_attribute_table): Use
493 `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
495 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
497 * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
499 2003-08-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
501 * chartab.c (put_char_table): Modify for inherited coded-charsets
504 2003-08-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
506 * chartab.c (Fput_char_table_map_function): Fixed.
507 (word_boundary_p): Don't check charset in XEmacs CHISE.
509 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
511 * mule-charset.c (Fsave_charset_mapping_table): Use
512 `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
513 instead of `chise_open_decoding_table'; refer
514 `default_chise_data_source'; use `chise_dt_close' instead of
515 `chise_close_decoding_table'.
516 (load_char_decoding_entry_maybe): Likewise.
518 * chartab.c (default_chise_data_source): New variable when `CHISE'
520 (Fcopy_char_table): `ct->ds' is deleted.
521 (open_chise_data_source_maybe): New function.
522 (Fclose_char_data_source): New function.
523 (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
524 use `chise_ds_open_feature_table' instead of
525 `chise_open_feature_table'.
526 (char_table_close_db_maybe): Use `chise_ft_close' instead of
527 `chise_close_feature_table'; `cit->ds' is deleted.
528 (syms_of_chartab): Add new builtin function
529 `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
531 * chartab.h (default_chise_data_source): New extern variable.
532 (open_chise_data_source_maybe): New prototype.
533 (struct Lisp_Char_Table): Delete `ds'.
535 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
537 * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
540 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
542 * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
543 not defined; add code for non-libchise setting.
544 (char_table_close_db_maybe): Likewise.
545 (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
547 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
548 even if `CHISE' is not defined.
549 (Freset_char_attribute_table): Likewise.
550 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
551 `char_table_close_db_maybe' even if `CHISE' is not defined; use
553 (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
554 `char_table_close_db_maybe' even if `CHISE' is not defined.
556 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
558 * chartab.c (char_table_open_db_maybe): New function.
559 (char_table_close_db_maybe): New function.
560 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
561 (Freset_char_attribute_table): Likewise.
562 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
563 `char_table_close_db_maybe'.
564 (Fload_char_attribute_table): Likewise.
566 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
568 * chartab.c: Don't include <chise.h> because it is included in
570 (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
572 (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
574 (Fmount_char_attribute_table): Initialize `ct->feature_table' when
576 (Fclose_char_attribute_table): Close `ct->feature_table' and
577 `ct->ds' when `CHISE' is defined.
578 (Freset_char_attribute_table): Likewise.
579 (load_char_attribute_maybe): Use `cit->ds' and
580 `cit->feature_table' when `CHISE' is defined.
581 (Fload_char_attribute_table): Likewise.
583 * chartab.h: Include <chise.h> when `CHISE' is defined.
584 (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
585 when `CHISE' is defined.
587 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
589 * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
591 (char_table_description): Likewise.
592 (Fmake_char_table): Likewise.
593 (Fcopy_char_table): Likewise.
594 (Fmount_char_attribute_table): Likewise.
595 (Fclose_char_attribute_table): Likewise.
596 (Freset_char_attribute_table): Likewise.
597 (load_char_attribute_maybe): Likewise.
598 (Fload_char_attribute_table): Likewise.
600 * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
603 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
605 * chartab.c (load_char_attribute_table_map_func): New function
606 when CHISE is defined.
607 (Qload_char_attribute_table_map_function): Don't define when CHISE
609 (Fload_char_attribute_table_map_function): Likewise.
610 (Fload_char_attribute_table): Use libchise when `CHISE' is
612 (syms_of_chartab): Don't define
613 `load-char-attribute-table-map-function' when CHISE is defined.
615 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
617 * chartab.c: Include <chise.h> when `CHISE' is defined.
618 (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
620 2003-07-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
622 * mule-charset.c (charset_code_point): Fix problem when searching
623 in mother CCS fails with `defined_only' mode.
625 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
627 * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
628 (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
629 (put_char_composition): Likewise.
630 (Fput_char_attribute): Likewise.
631 (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
633 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
635 * chartab.c (Q_ucs): Deleted.
636 (Fput_char_attribute): Don't refer `->ucs'.
637 (Fdefine_char): Likewise.
638 (Ffind_char): Likewise.
639 (syms_of_chartab): Delete `->ucs'.
641 2003-04-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
643 * mule-charset.c (Qmap_cns11643_2): Renamed from
644 `Qchinese_cns11643_2'.
645 (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
646 `chinese-cns11643-2'.
647 (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
650 2003-04-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
652 * mule-charset.c (Qmap_cns11643_1): Renamed from
653 `Qchinese_cns11643_1'.
654 (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
655 `chinese-cns11643-1'.
656 (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
659 2003-04-24 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
661 * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
662 (syms_of_mule_charset): Add new symbol `=gb12345' instead of
664 (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
667 2003-04-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
669 * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
670 (syms_of_mule_charset): Add new symbol `=gb2312' instead of
672 (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
675 2003-04-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
677 * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
678 (syms_of_mule_charset): Add new symbol `=big5' instead of
680 (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
682 2003-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
684 * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
685 (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
687 (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
690 2003-04-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
692 * mule-charset.c (Qmap_jis_x0212): Renamed from
693 `Qjapanese_jisx0212'.
694 (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
696 (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
699 2003-04-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
701 * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
702 `Qjapanese_jisx0208'.
703 (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
704 of `japanese-jisx0208'.
705 (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
708 2003-04-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
710 * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
711 `Qjapanese_jisx0208_1978'.
712 (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
713 of `japanese-jisx0208-1978'.
714 (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
717 2003-04-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
719 * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
720 only for XEmacs CHISE.
722 2003-04-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
724 * char-ucs.h: Compact non-ISO-IR charset-ids.
725 (LEADING_BYTE_UCS): Changed to -177.
726 (LEADING_BYTE_CONTROL_1): Changed to -77.
727 (LEADING_BYTE_UCS_BMP): Changed to -176.
728 (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
730 2003-04-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
732 * mule-charset.c (Qiso_ir): New variable.
733 (Fmake_charset): Recognise new property `iso-ir'.
734 (syms_of_mule_charset): Add new symbol `iso-ir'.
736 2003-04-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
738 * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
739 n to -n; charset-id of non ISO-IR sets are changed to positive
742 2003-03-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
744 * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
745 for &MCS-XXXXXXXX; values.
747 2003-03-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
749 * mule.c (Vxemacs_chise_version): Renamed from
751 (vars_of_mule): Add new variable `xemacs-chise-version'; define
752 `utf-2000-version' as an alias for `xemacs-chise-version'.
754 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
756 * mule-charset.c: Include <chise.h> when `CHISE' is defined.
757 (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
760 * config.h.in (CHISE): New macro.
762 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
764 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
766 (Qmap_ucs): New variable.
767 (syms_of_mule_charset): Add new symbol `=ucs'.
768 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
770 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
771 (simplify_char_spec): Likewise.
773 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
775 * char-ucs.h (Qmap_ucs): New extern variable.
777 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
779 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
780 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
781 don't define it when UTF2000 is not defined.
782 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
783 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
784 when UTF2000 is not defined.
785 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
786 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
788 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
790 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
792 * mule-charset.c (Vcharset_ucs_gb): Deleted.
794 (syms_of_mule_charset): Delete `ucs-gb'.
795 (complex_vars_of_mule_charset): Likewise.
797 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
799 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
801 * mule-charset.c (Vcharset_ucs_cns): Deleted.
803 (syms_of_mule_charset): Delete `ucs-cns'.
804 (complex_vars_of_mule_charset): Likewise.
806 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
808 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
810 * mule-charset.c (Vcharset_ucs_jis): Deleted.
812 (syms_of_mule_charset): Delete `ucs-jis'.
813 (complex_vars_of_mule_charset): Likewise.
815 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
817 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
819 * mule-charset.c (Vcharset_ucs_ks): Deleted.
821 (syms_of_mule_charset): Delete `ucs-ks'.
822 (complex_vars_of_mule_charset): Likewise.
824 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
826 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
827 (Qideograph_daikanwa_2): Deleted.
828 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
829 (complex_vars_of_mule_charset): Likewise.
831 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
832 (LEADING_BYTE_DAIKANWA_1): Deleted.
833 (LEADING_BYTE_DAIKANWA_2): Deleted.
834 (MIN_CHAR_DAIKANWA): Deleted.
835 (MAX_CHAR_DAIKANWA): Deleted.
837 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
839 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
840 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
841 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
843 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
844 (Vcharset_ideograph_daikanwa): Deleted.
845 (Qideograph_hanziku_{1..12}): Deleted.
846 (Qideograph_daikanwa): Deleted.
847 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
848 Vcharset_ideograph_daikanwa.
849 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
850 `ideograph-hanziku-{1..12}'.
851 (complex_vars_of_mule_charset): Likewise.
853 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
855 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
857 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
858 (Qideograph_gt_pj_{1..11}): Deleted.
859 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
860 (complex_vars_of_mule_charset): Likewise.
862 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
864 * mule-charset.c (Vcharset_ucs_big5): Deleted.
865 (Vcharset_ideograph_gt): Deleted.
866 (Qucs_big5): Deleted.
867 (Qideograph_gt): Deleted.
868 (syms_of_mule_charset): Delete symbol `ucs-big5' and
870 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
873 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
874 (LEADING_BYTE_GT): Deleted.
875 (MIN_CHAR_GT): Deleted.
876 (MAX_CHAR_GT): Deleted.
878 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
880 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
882 2003-01-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
884 * chartab.c (save_uint8_byte_table): Add new argument `filter'.
885 (save_uint16_byte_table): Likewise.
886 (save_byte_table): Likewise; convert values by it.
887 (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
888 for `ideographic-structure'.
889 (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
890 as the filter for `ideographic-structure'.
892 2003-01-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
894 * chartab.c (put_char_composition): New function.
895 (Fput_char_attribute): Use `put_char_composition'; use
896 `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
898 * fns.c (simplify_char_spec): New function.
899 (char_ref_simplify_spec): New function.
900 (Fchar_refs_simplify_char_specs): New function.
901 (syms_of_fns): Add new builtin function
902 `char-refs-simplify-char-specs'.
904 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
906 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
907 (Qideograph_cbeta): Deleted.
908 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
909 (complex_vars_of_mule_charset): Likewise.
911 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
912 (MIN_CHAR_CBETA): Comment out.
913 (MAX_CHAR_CBETA): Likewise.
915 2002-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
917 * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
918 `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
919 CHISE client feature.
921 2002-12-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
923 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
925 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
927 * mule-charset.c (charset_lookup_description_1): Use
928 `NUM_LEADING_BYTES' in UTF-2000.
930 2002-12-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
932 * char-ucs.h (GC_CHARSETP): Deleted.
934 2002-12-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
936 * char-ucs.h (MAX_CHAR_GT): Updated.
938 2002-12-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
940 * text-coding.c: Sync with XEmacs 21.4.10.
942 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
944 * mule-charset.c (Vcharset_china3_jef): Deleted.
945 (Qchina3_jef): Deleted.
946 (syms_of_mule_charset): Don't define `china3-jef'.
947 (complex_vars_of_mule_charset): Likewise.
949 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
950 (MIN_CHAR_CHINA3_JEF): Comment out.
951 (MAX_CHAR_CHINA3_JEF): Comment out.
953 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
955 * mule-charset.c (Vcharset_ucs_gb): New variable.
956 (Qucs_gb): New variable.
957 (syms_of_mule_charset): Add new symbol `ucs-gb'.
958 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
960 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
962 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
964 * mule-charset.c (charset_code_point): if a coded-charset has a
965 final-byte, don't inherit the builtin range of the mother CCS.
967 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
969 * mule-charset.c (charset_code_point): Fix problem about
972 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
974 * mule-charset.c (decode_builtin_char): Reorganized.
976 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
978 * text-coding.c (char_encode_as_entity_reference): Modify for
979 `charset_code_point'.
980 (char_encode_shift_jis): Likewise.
981 (char_encode_big5): Likewise.
982 (char_encode_utf8): Likewise.
983 (char_encode_iso2022): Likewise.
985 * mule-charset.c (charset_code_point): Add new argument
987 (Fencode_char): Add new optional argument `defined_only'.
989 * chartab.c (put_char_table): Modify for `charset_code_point'.
991 * char-ucs.h (charset_code_point): Add new argument
993 (encode_char_1): Modify for `charset_code_point'.
995 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
997 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
998 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1000 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1002 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1003 (Qjis_x0208): Likewise.
1004 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1005 XCHARSET_FINAL(charset).
1006 (charset_code_point): Modify condition for final-byte based
1008 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1009 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1010 in UTF-2000; specify `=jis-x0208' as the mother of
1011 `japanese-jisx0208-1978', `japanese-jisx0208' and
1012 `japanese-jisx0208-1990' in UTF-2000.
1014 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1016 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1018 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1020 * text-coding.c (decode_coding_utf16): Support UTF-16.
1021 (char_encode_utf16): Fixed.
1023 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025 * text-coding.c (Qutf16): New variable in MULE.
1026 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1027 (Fcoding_system_type): Add `utf-16' in MULE.
1028 (struct detection_state): Add a structure for utf16 in MULE.
1029 (detect_coding_type): Setup st->utf16.mask in MULE.
1030 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1032 (reset_encoding_stream): Use `char_encode_utf16' and
1033 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1034 (detect_coding_utf16): New function [incomplete].
1035 (decode_coding_utf16): New function [support only UCS-2].
1036 (char_encode_utf16): New function.
1037 (char_finish_utf16): New function.
1038 (syms_of_file_coding): Add new symbol `utf-16'; setup
1039 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1041 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1043 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1044 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1046 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1048 * chartab.c (put_char_table): When a charset is specified as a
1049 range in UTF-2000, don't support builtin characters.
1051 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1053 * mule-charset.c (decode_defined_char): Don't refer external
1054 database if Qunbound or Qnil are found.
1055 (Fsave_charset_mapping_table): Don't define it if
1056 HAVE_CHISE_CLIENT is not defined.
1057 (Freset_charset_mapping_table): New function.
1058 (load_char_decoding_entry_maybe): Store Qnil if a character is not
1059 found in external database.
1060 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1061 if HAVE_CHISE_CLIENT is not defined; add new builtin function
1062 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1064 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1066 * text-coding.c (decode_coding_utf8): Check CCS is specified or
1069 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1071 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1072 Q_lowercase, Q_uppercase in UTF-2000.
1074 * chartab.c (get_char_table): Add special code for the standard
1075 case table to use character attribute `->downcase' and
1076 `->uppercase' for case operations in UTF-2000.
1078 * casetab.c (Qflippedcase): New variable in UTF-2000.
1079 (Q_lowercase): Likewise.
1080 (Q_uppercase): Likewise.
1081 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1082 and `->uppercase' in UTF-2000.
1083 (complex_vars_of_casetab): Assign attribute name `downcase' to
1084 downcase and CANON table of Vstandard_case_table in UTF-2000;
1085 assign attribute name `flippedcase' to upcase and EQV table of
1086 Vstandard_case_table in UTF-2000.
1088 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090 * text-coding.c (decode_add_er_char): Support isolated-chars.
1091 (char_encode_as_entity_reference): Likewise.
1093 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1095 * emacs.c (Vutf_2000_lisp_directory): New variable.
1096 (Vconfigure_utf_2000_lisp_directory): Likewise.
1097 (complex_vars_of_emacs): Add new variable
1098 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1100 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1102 * char-ucs.h (DECODE_CHAR): Delete special code for
1103 `chinese-big5-1' and `chinese-big5-2'.
1105 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1106 (Qbig5_2): Likewise.
1107 (decode_defined_char): Support CONVERSION_BIG5_1 and
1109 (decode_builtin_char): Likewise.
1110 (charset_code_point): Likewise.
1111 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1112 'conversion in UTF-2000.
1113 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1114 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1115 `chinese-big5-2' as children of `chinese-big5'.
1117 * char-ucs.h (CONVERSION_BIG5_1): New macro.
1118 (CONVERSION_BIG5_2): New macro.
1120 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1122 * text-coding.c (char_encode_big5): Support entity-reference.
1124 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1126 * text-coding.c (char_encode_as_entity_reference): New function.
1127 (char_encode_utf8): Use `char_encode_as_entity_reference'.
1129 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1131 * text-coding.c (decode_coding_big5): Support entity-reference
1134 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1136 * text-coding.c (allocate_coding_system): Initialize initial
1137 charsets for CODESYS_UTF8.
1138 (Fmake_coding_system): Accept charset-g0, charset-g1 and
1139 charset-g2 for CODESYS_UTF8.
1140 (decode_coding_utf8): Use charset-g0.
1141 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1142 to force variants to map to UCS.
1144 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1146 * text-coding.c (Qutf_8_mcs): New variable.
1147 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1148 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1149 instead of `utf-8' in UTF-2000.
1151 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1153 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1154 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1155 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1156 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1157 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1158 CONVERSION_96x96x96x96 are introduced.
1159 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1160 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1161 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1163 * char-ucs.h (CONVERSION_94): New macro.
1164 (CONVERSION_96): New macro.
1165 (CONVERSION_94x94): New macro.
1166 (CONVERSION_96x96): New macro.
1167 (CONVERSION_94x94x94): New macro.
1168 (CONVERSION_96x96x96): New macro.
1169 (CONVERSION_94x94x94x60): New macro.
1170 (CONVERSION_94x94x94x94): New macro.
1171 (CONVERSION_96x96x96x96): New macro.
1173 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1175 * chartab.c (Vcharacter_variant_table): Deleted.
1176 (Fchar_variants): Use character-attribute `->ucs-variants' instead
1177 of `Vcharacter_variant_table'.
1178 (Fput_char_attribute): Likewise.
1179 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1180 (complex_vars_of_chartab): Likewise.
1182 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1184 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1186 * fns.c (Qideographic_structure): New variable.
1187 (Qkeyword_char): New variable.
1188 (ids_format_unit): New function.
1189 (Fideographic_structure_to_ids): New function.
1190 (syms_of_fns): Add new symbols `ideographic-structure' and
1191 `:char'; add new builtin function `ideographic-structure-to-ids'.
1193 * data.c (Fchar_ref_p): New function.
1194 (syms_of_data): Add new builtin function `char-ref-p'.
1196 * chartab.h: Add an EXFUN for `Ffind_char'.
1198 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1200 * text-coding.c (Vcharacter_composition_table): Deleted.
1201 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1204 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1206 (Vcharacter_composition_table): Deleted.
1207 (Fget_composite_char): Use the implementation for external-DB
1208 support in every UTF-2000.
1209 (Fput_char_attribute): Likewise.
1210 (char_attribute_system_db_file): Don't define if external-DB
1211 feature is not available.
1212 (Fsave_char_attribute_table): Likewise.
1213 (Fmount_char_attribute_table): Likewise.
1214 (Fclose_char_attribute_table): Likewise.
1215 (Freset_char_attribute_table): Likewise.
1216 (Fload_char_attribute_table): Likewise.
1217 (syms_of_chartab): Don't define `save-char-attribute-table',
1218 `mount-char-attribute-table', `reset-char-attribute-table',
1219 `close-char-attribute-table' and `load-char-attribute-table' if
1220 external-DB feature is not available.
1221 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1223 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1225 * text-coding.c (Qcomposition): Add extern if external-DB feature
1227 (Vcharacter_composition_table): Don't add extern if external-DB
1228 feature is supported.
1229 (COMPOSE_ADD_CHAR): Modify for new data-representation of
1230 character composition rule if external-DB feature is supported.
1232 * chartab.c (Vcharacter_composition_table): Don't define if
1233 external-DB feature is supported.
1234 (Qcomposition): New variable.
1235 (Fget_composite_char): New implementation for external-DB support.
1236 (Fput_char_attribute): Use `composition' property of each
1237 character instead of `Vcharacter_composition_table' to store
1238 character-composition rules if external-DB feature is supported.
1239 (syms_of_chartab): Add new symbol `composition'.
1240 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1241 external-DB feature is supported.
1243 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1245 * chartab.c (Vchar_db_stingy_mode): New variable.
1246 (load_char_attribute_maybe): Close database if
1247 Vchar_db_stingy_mode is not NIL.
1248 (Fload_char_attribute_table_map_function): Use
1249 `get_char_id_table_0' instead of `get_char_id_table'.
1250 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1252 * chartab.h (get_char_id_table_0): New inline function.
1253 (get_char_id_table): Use `get_char_id_table_0'.
1255 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1257 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1258 and `COMPOSE_ADD_CHAR'.
1259 (decode_coding_iso2022): Use `decode_flush_er_chars'.
1261 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1263 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1264 instead of `DECODE_ADD_UCS_CHAR'.
1265 (COMPOSE_ADD_CHAR): Likewise.
1267 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1269 * text-coding.c (decode_flush_er_chars): New inline function.
1270 (decode_add_er_char): New function.
1271 (decode_coding_utf8): Use `decode_flush_er_chars' and
1272 `decode_add_er_char'.
1274 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1276 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1277 done before `decode_output_utf8_partial_char'.
1279 * mule-charset.c (complex_vars_of_mule_charset): Specify
1280 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1281 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1283 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1285 * mule-charset.c (decode_defined_char): New function; search
1287 (decode_builtin_char): Don't search mother if
1288 XCHARSET_MAX_CODE(charset) == 0.
1289 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1290 == 0 even if code >= XCHARSET_MAX_CODE(charset).
1291 (Fdecode_char): Use `decode_defined_char' instead of
1292 `DECODE_DEFINED_CHAR'.
1293 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1294 mother of `Vcharset_ucs_jis'.
1296 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1297 instead of `DECODE_DEFINED_CHAR'.
1299 * char-ucs.h (decode_defined_char): Renamed from
1300 `DECODE_DEFINED_CHAR'; changed to normal function.
1301 (DECODE_CHAR): Use `decode_defined_char' instead of
1302 `DECODE_DEFINED_CHAR'.
1304 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1306 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1308 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1310 * text-coding.c (Vcoded_charset_entity_reference_alist): New
1312 (Quse_entity_reference): New variable.
1316 (coding_system_description): Add description for
1317 `ccs_priority_list'.
1318 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1319 (allocate_coding_system): Initialize `ccs_priority_list' in
1321 (Fmake_coding_system): Add description about
1322 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1324 (Fcoding_system_property): Accept `disable-composition' and
1325 `use-entity-reference' in UTF-2000.
1326 (struct decoding_stream): Add new member `er_counter' and `er_buf'
1328 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1329 (decode_coding_utf8): Decode entity-reference if
1330 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1331 (char_encode_utf8): Encode non-Unicode characters as
1332 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1334 (syms_of_file_coding): Add new symbols `use-entity-reference',
1336 (vars_of_file_coding): Add new variable
1337 `coded-charset-entity-reference-alist'.
1338 (complex_vars_of_file_coding): Declare `disable-composition' and
1339 `use-entity-reference' to be coding-system-properties in UTF-2000.
1341 * file-coding.h (struct Lisp_Coding_System): Add new member
1342 `use_entity_reference' and `ccs_priority_list'.
1343 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1344 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1345 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1347 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1349 * chartab.c (save_uint8_byte_table): Don't clear the table.
1350 (save_uint16_byte_table): Likewise.
1351 (save_byte_table): Likewise.
1352 (Fmount_char_attribute_table): New function.
1353 (syms_of_chartab): Add new builtin function
1354 `mount-char-attribute-table'.
1356 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358 * mule-charset.c (Fsave_charset_mapping_table): Open database as
1360 (load_char_decoding_entry_maybe): Open database as read-only mode.
1362 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1363 open database as "w+" mode.
1364 (load_char_attribute_maybe): Open database as read-only mode.
1365 (Fload_char_attribute_table): Likewise.
1367 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1370 (char_table_description): Delete member `db_file'.
1371 (Fmake_char_table): Don't refer `ct->db_file'.
1372 (Fcopy_char_table): Likewise.
1373 (Fsave_char_attribute_table): Likewise.
1374 (Fclose_char_attribute_table): Likewise.
1375 (Freset_char_attribute_table): Likewise.
1376 (load_char_attribute_maybe): Likewise.
1377 (Fload_char_attribute_table): Likewise.
1379 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1381 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1384 (Fsave_char_attribute_table): Don't check `ct->db_file' if
1386 (load_char_attribute_maybe): Likewise.
1387 (Fload_char_attribute_table): Likewise.
1389 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1391 * chartab.c (Fclose_char_attribute_table): Set Qnil on
1392 `ct->db_file' unconditionally.
1394 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1396 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1398 (char_table_description): Add description for `db_file' and `db'
1400 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1402 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1403 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1404 (Fclose_char_attribute_table): New function.
1405 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1406 (load_char_attribute_maybe): Change interface; use `cit->db_file'
1408 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1409 (syms_of_chartab): Add new builtin function
1410 `Fclose_char_attribute_table'.
1412 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1414 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1416 (load_char_attribute_maybe): Change interface.
1417 (get_char_id_table): Modify for `load_char_attribute_maybe'.
1419 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1421 * database.h: Add an EXFUN for `Fdatabase_live_p'.
1423 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1425 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1426 instead of `DECODE_CHAR' for mother; don't use special code for
1427 chinese-big5 to use code space of chinese-big5-1 and
1429 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1430 `MAX_CHAR_BIG5_CDP' for chinese-big5.
1432 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1433 (MAX_CHAR_BIG5_CDP): Revival.
1435 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1438 the XLFD registry-encoding name of `chinese-big5'.
1440 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1442 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1443 (Qchinese_big5_cdp): Deleted.
1444 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1445 (complex_vars_of_mule_charset): Delete coded-charset
1448 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1449 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1450 `CHARSET_ID_OFFSET - n' for private CCS.
1451 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1452 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1453 of `MIN_LEADING_BYTE'.
1454 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1455 `(CHARSET_ID_OFFSET - 97)'.
1456 (MIN_CHAR_BIG5_CDP): Deleted.
1457 (MAX_CHAR_BIG5_CDP): Deleted.
1459 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1461 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1463 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1466 (vars_of_mule): Add new variable `utf-2000-version' [moved from
1469 * chartab.c (Vutf_2000_version): Moved to mule.c.
1470 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1472 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1474 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1475 when HAVE_CHISE_CLIENT is not defined.
1477 * mule.c (vars_of_mule): Provide feature `chise' when
1478 HAVE_CHISE_CLIENT is defined.
1480 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1482 * config.h.in (UTF2000): Add comment.
1483 (HAVE_CHISE_CLIENT): New macro.
1485 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1487 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1489 (Fput_char_attribute): Likewise.
1490 (char_attribute_system_db_file): Encode file-name of attribute.
1491 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1494 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1496 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1497 (Fsave_charset_mapping_table): Use
1498 `char_attribute_system_db_file'.
1499 (load_char_decoding_entry_maybe): Likewise.
1501 * chartab.h (Qsystem_char_id): New external variable.
1502 (char_attribute_system_db_file): New prototype.
1504 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1505 (char_attribute_system_db_file): New function.
1506 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1507 (Freset_char_attribute_table): Likewise.
1508 (load_char_attribute_maybe): Likewise.
1509 (Fload_char_attribute_table): Likewise.
1510 (syms_of_chartab): Add new symbol `system-char-id'.
1512 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1514 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1515 `XCHARSET_GRAPHIC(ccs)'.
1517 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1521 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1523 * chartab.c (Q_ucs_variants): New variable.
1524 (syms_of_chartab): Add new symbol `->ucs-variants'.
1525 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1526 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1527 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1529 * mule-charset.c (load_char_decoding_entry_maybe): New function.
1531 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1532 `HAVE_DATABASE' is defined.
1533 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1534 `HAVE_DATABASE' is defined.
1536 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1538 * chartab.c (Fsave_char_attribute_table): Don't clear internal
1540 (Freset_char_attribute_table): New function.
1541 (syms_of_chartab): Add new builtin function
1542 `reset-char-attribute-table'.
1544 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1546 * chartab.c (load_char_attribute_maybe): Don't make directories.
1548 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1550 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1552 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1555 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1557 * mule-charset.c (Fsave_charset_mapping_table): Use
1558 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1560 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1561 instead of `XCHARSET_CHARS'.
1563 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1565 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1566 (XCHARSET_BYTE_SIZE): Likewise.
1568 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1570 (XCHARSET_BYTE_SIZE): Likewise.
1572 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1574 * chartab.c (Fput_char_attribute): Use exec-directory instead of
1575 data-directory to store database.
1576 (Fsave_char_attribute_table): Likewise.
1577 (load_char_attribute_maybe): Likewise.
1578 (Fload_char_attribute_table): Likewise.
1580 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1582 * mule-charset.c (Fsave_charset_mapping_table): New function.
1583 (syms_of_mule_charset): Add new builtin function
1584 `save-charset-mapping-table'.
1586 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1588 * char-ucs.h (decoding_table_check_elements): Delete prototype.
1589 (get_ccs_octet_table): New inline function.
1590 (put_ccs_octet_table): Likewise.
1591 (decoding_table_put_char): Use `get_ccs_octet_table' and
1592 `put_ccs_octet_table'.
1593 (decoding_table_remove_char): Use `decoding_table_put_char'.
1594 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1596 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1597 into encoding_table.
1598 (make_charset): Use Qunbound instead Qnil as initial value of
1601 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1603 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1604 element is Qunloaded.
1605 (map_over_uint16_byte_table): Likewise.
1606 (map_over_byte_table): Likewise.
1607 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1608 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1609 database support, load encoding-table of the specified
1610 coded-charset if it is not loaded yet.
1611 (save_uint8_byte_table): New function of UTF-2000 with external
1613 (save_uint16_byte_table): Likewise.
1614 (save_byte_table): Likewise.
1615 (Fput_char_attribute): Don't store value into external database
1616 even if the external database feature is supported in UTF-2000;
1617 set `attribute' as name of char-table if the external database
1618 feature is supported.
1619 (Fsave_char_attribute_table): New function in UTF-2000.
1620 (syms_of_chartab): Add new builtin function
1621 `save-char-attribute-table' in UTF-2000.
1623 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1625 * chartab.c (char_attribute_table_to_put): New variable in
1627 (Qput_char_table_map_function): Likewise.
1628 (value_to_put): Likewise.
1629 (Fput_char_table_map_function): New function in UTF-2000.
1630 (put_char_table): Use `Fmap_char_attribute' for
1631 CHARTAB_RANGE_CHARSET in UTF-2000.
1632 (Fput_char_attribute): Store symbol instead of string in
1633 `XCHAR_TABLE_NAME (table)'.
1634 (load_char_attribute_maybe): Likewise.
1635 (syms_of_chartab): Add new symbol/function
1636 `put-char-table-map-function'.
1638 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1640 * database.h: Add new EXFUN for `Fmap_database'.
1642 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1643 (syms_of_database): Likewise.
1645 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1647 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1648 (XCHAR_TABLE_UNLOADED): Likewise.
1650 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1651 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1652 HAVE_DATABASE is defined.
1653 (char_attribute_table_to_load): New variable of UTF-2000 with
1654 external database support.
1655 (Qload_char_attribute_table_map_function): Likewise.
1656 (Fload_char_attribute_table_map_function): New function of
1657 UTF-2000 with external database support.
1658 (Fload_char_attribute_table): New function of UTF-2000.
1659 (Fmap_char_attribute): Call Fload_char_attribute_table if
1660 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1661 (syms_of_chartab): Add new symbol and function
1662 `load-char-attribute-table-map-function' in UTF-2000 with external
1663 database support; add new function `load-char-attribute-table' in
1666 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1668 * chartab.h (load_char_attribute_maybe): New prototype for
1669 UTF-2000 with DATABASE support.
1670 (get_char_id_table): Use `load_char_attribute_maybe' if
1671 HAVE_DATABASE is defined.
1673 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1674 with DATABASE support.
1676 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1678 * chartab.c (Fput_char_attribute): Use S-expression as key of
1681 * chartab.h (get_char_id_table): Use S-expression as key of
1684 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1686 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1687 if an element is not loaded, load the corresponding attributes
1688 from an external database.
1689 (map_over_uint16_byte_table): Likewise.
1690 (map_over_byte_table): Likewise.
1691 (map_char_table): Modify for `map_over_uint8_byte_table',
1692 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1693 element is not loaded, load the corresponding attributes from an
1695 (Fput_char_attribute): Change initial values to Qunloaded.
1697 * chartab.h (get_char_id_table): If a character attribute is not
1698 loaded and the attribute value is not found in an external
1699 database, store Qunbound as the attribute value.
1701 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1703 * chartab.c (BT_UINT8_unloaded): New macro.
1704 (UINT8_VALUE_P): Accept Qunloaded.
1705 (UINT8_ENCODE): Likewise.
1706 (UINT8_DECODE): Likewise.
1707 (BT_UINT16_unloaded): New macro.
1708 (UINT16_VALUE_P): Accept Qunloaded.
1709 (UINT16_ENCODE): Likewise.
1710 (UINT16_DECODE): Likewise.
1711 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1713 (mark_char_table): Mark `ct->name' in UTF-2000.
1714 (char_table_description): Add `name' in UTF-2000.
1715 (Fmake_char_table): Initialize `ct->name'.
1716 (Fcopy_char_table): Copy `ct->name'.
1717 (Fput_char_attribute): Store value into an external database if
1718 HAVE_DATABASE is defined.
1720 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1722 (CHAR_TABLE_NAME): New macro in UTF-2000.
1723 (XCHAR_TABLE_NAME): New macro in UTF-2000.
1724 (get_char_id_table): Try to read an external database if Qunloaded
1725 is stored in a table.
1727 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1730 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1732 * database.h: Add EXFUN definitions for Fopen_database,
1733 Fput_database, Fget_database and Fclose_database.
1735 * data.c (Qunloaded): New variable in UTF-2000.
1737 * lisp.h (Qunloaded): New variable in UTF-2000.
1739 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1741 * mule-charset.c (put_char_ccs_code_point): Modify for
1742 `decoding_table_remove_char' and `decoding_table_put_char'.
1743 (remove_char_ccs): Modify for `decoding_table_remove_char'.
1745 * char-ucs.h (decoding_table_remove_char): Change arguments to
1746 hide decoding_table vector.
1747 (decoding_table_put_char): Likewise.
1749 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1751 * mule-charset.c (decoding_table_remove_char): Moved to
1753 (decoding_table_put_char): Likewise.
1755 * char-ucs.h (decoding_table_check_elements): New prototype [moved
1756 from mule-charset.c].
1757 (decoding_table_remove_char): New inline function [moved from
1759 (decoding_table_put_char): Likewise.
1761 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1763 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1766 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1768 * mule-charset.c (decode_builtin_char): Support mother charsets.
1770 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1772 * mule-charset.c (Q94x94x60): New variable.
1773 (charset_code_point): Support conversion `94x94x60'.
1774 (Fmake_charset): Likewise.
1775 (syms_of_mule_charset): Add new symbol `94x94x60'.
1777 * char-ucs.h (CONVERSION_94x94x60): New macro.
1779 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1781 * mule-charset.c (charset_code_point): Unify code about
1784 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1786 * mule-charset.c (charset_code_point): Merge code about builtin
1787 characters into code about mother charsets; don't use
1788 `range_charset_code_point'.
1789 (range_charset_code_point): Deleted.
1791 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1793 * mule-charset.c (Qcode_offset): New variable.
1794 (Fmake_charset): Use `XUINT' to get value of `min-code' and
1795 `max-code'; accept new property `code-offset'.
1796 (syms_of_mule_charset): Add new symbol `code-offset'.
1798 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1800 * mule-charset.c (range_charset_code_point): Fixed.
1802 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1804 * mule-charset.c (decode_builtin_char): Change semantics of
1805 code-offset of coded-charset.
1806 (charset_code_point): Likewise.
1807 (range_charset_code_point): Likewise.
1808 (complex_vars_of_mule_charset): Modify for the change.
1810 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1812 * mule-charset.c (Fencode_char): Reverse arguments.
1814 * mule-charset.c (charset_code_point): Fixed.
1816 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818 * mule-charset.c (Vcharset_mojikyo): Deleted.
1819 (Vcharset_mojikyo_2022_1): Deleted.
1820 (Vcharset_mojikyo_pj_{1..21}): Deleted.
1821 (Qmin_code): New variable in UTF-2000.
1822 (Qmax_code): Likewise.
1823 (Qmother): Likewise.
1824 (Qconversion): Likewise.
1826 (Qmojikyo): Deleted.
1827 (Qmojikyo_2022_1): Deleted.
1828 (Qmojikyo_pj_{1..22}): Deleted.
1829 (mark_charset): Mark `cs->mother'.
1830 (charset_description): Add description for `mother'.
1831 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1832 new arguments `mother' and `conversion'; use
1833 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1834 (charset_code_point): Moved from char-ucs.h; support `mother'
1836 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1837 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1838 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1839 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1840 allow 2 as the value of `graphic' in UTF-2000; add new properties
1841 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1842 require `final' in UTF-2000; modify for `make_charset'.
1843 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1844 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1845 (Fcharset_property): Support `mother', `min-code' and `max-code'.
1846 (Fencode_char): New function.
1847 (syms_of_mule_charset): Add new builtin function `encode-char' in
1848 UTF-2000; add new symbols `min-code', `max-code', `mother',
1849 `conversion' and `94x60'; delete symbols `mojikyo',
1850 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1851 (complex_vars_of_mule_charset): Modify for `make_charset' change;
1852 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1853 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1855 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1856 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1858 * char-ucs.h (Vcharset_mojikyo): Deleted.
1859 (Vcharset_mojikyo_2022_1): Deleted.
1860 (LEADING_BYTE_MOJIKYO): Deleted.
1861 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1862 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1863 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1864 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1865 add new member `mother'; add new member `conversion'.
1866 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1867 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1868 (CHARSET_MOTHER): New macro.
1869 (CHARSET_CONVERSION): New macro.
1870 (CONVERSION_IDENTICAL): New macro.
1871 (CONVERSION_94x60): New macro.
1872 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1873 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1874 (XCHARSET_MOTHER): New macro.
1875 (XCHARSET_CONVERSION): New macro.
1876 (MIN_CHAR_MOJIKYO): Deleted.
1877 (MAX_CHAR_MOJIKYO): Deleted.
1878 (DECODE_MOJIKYO_2022): Deleted.
1879 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1880 (charset_code_point): Changed to non-inline function.
1881 (encode_char_1): Use `charset_code_point'.
1882 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1884 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1886 * lread.c (read_compiled_function): Fix prototype.
1887 (read_vector): Likewise.
1889 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1891 * lrecord.h (struct lrecord_header): Delete `older'.
1892 (set_lheader_implementation): Delete code for `older'.
1893 (set_lheader_older_implementation): Deleted.
1894 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1895 (OLDER_RECORD_P): Deleted.
1896 (OLDER_RECORD_HEADER_P): Deleted.
1897 (alloc_older_lcrecord): Deleted.
1898 (alloc_older_lcrecord_type): Deleted.
1900 * alloc.c (all_older_lcrecords): Deleted.
1901 (alloc_older_lcrecord): Deleted.
1902 (disksave_object_finalization_1): Delete code for older objects.
1903 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1904 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1906 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1908 * mule-charset.c (decoding_table_put_char): Use `make_vector'
1909 instead of `make_older_vector'.
1910 (put_char_ccs_code_point): Likewise.
1911 (mark_charset): Mark `cs->decoding_table'.
1912 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1914 * lisp.h (make_older_vector): Deleted.
1915 (make_vector_newer): Deleted.
1917 * config.h.in (HAVE_GGC): Deleted.
1919 * alloc.c (make_older_vector): Deleted.
1920 (make_vector_newer_1): Deleted.
1921 (make_vector_newer): Deleted.
1923 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1925 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1926 (Qideograph_daikanwa_2): New variable.
1927 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1928 (complex_vars_of_mule_charset): Add new coded-charset
1929 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1930 `LEADING_BYTE_DAIKANWA'.
1932 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1933 (LEADING_BYTE_DAIKANWA_1): New macro.
1934 (LEADING_BYTE_DAIKANWA_2): New macro.
1935 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1937 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939 * mule-charset.c (complex_vars_of_mule_charset): Change
1940 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1941 the second revised version.
1943 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1945 * mule-charset.c (Vcharset_ucs_smp): New variable.
1946 (Vcharset_ucs_sip): New variable.
1947 (Qucs_smp): New variable.
1948 (Qucs_sip): New variable.
1949 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1950 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1951 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1952 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1953 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1954 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1956 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1957 (LEADING_BYTE_UCS_SIP): New macro.
1958 (MIN_CHAR_SMP): New macro.
1959 (MAX_CHAR_SMP): New macro.
1960 (MIN_CHAR_SIP): New macro.
1961 (MAX_CHAR_SIP): New macro.
1963 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
1965 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1968 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1970 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1971 value; don't store value into `encoding_table' of `Lisp_Charset'.
1972 (mark_charset): `encoding_table' was deleted.
1973 (charset_description): Likewise.
1974 (make_charset): Likewise.
1975 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1976 `put_char_ccs_code_point'.
1978 * chartab.h (Fput_char_attribute): New EXFUN.
1980 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1981 is unified with normal symbol space.
1982 (Fget_char_attribute): Likewise.
1983 (Fput_char_attribute): Likewise; behavior of
1984 `put_char_ccs_code_point' is changed.
1986 * char-ucs.h: Include "elhash.h".
1987 (Vchar_attribute_hash_table): New external variable.
1988 (struct Lisp_Charset): Delete `encoding_table'.
1989 (CHARSET_ENCODING_TABLE): New implementation; refer
1990 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1993 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1995 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1998 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2000 * text-coding.c (char_encode_big5): Prefer charset-g1 than
2003 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005 * chartab.c (uint8_byte_table_description): New constant.
2006 (uint8-byte-table): Use `uint8_byte_table_description'.
2007 (uint16_byte_table_description): New constant.
2008 (uint16-byte-table): Use `uint16_byte_table_description'.
2010 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2012 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2013 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2015 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2017 * mule-charset.c (Vcharset_ucs_ks): New variable.
2018 (Qucs_ks): New variable.
2019 (syms_of_mule_charset): Add new symbol `ucs-ks'.
2020 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2022 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2024 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2026 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2027 (Fdecode_char): Likewise.
2029 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2031 (Fdefine_char): Modify for Fdecode_char.
2032 (Ffind_char): Likewise.
2034 * mule-charset.c (Fdecode_char): Add new optional argument
2036 (Fdecode_builtin_char): Modify for `Fdecode_char'.
2038 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2041 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2042 (allocate_coding_system): Initialize initial-charsets of
2043 CODESYS_BIG5 in XEmacs UTF-2000.
2044 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2045 CODESYS_BIG5 in XEmacs UTF-2000.
2046 (decode_coding_big5): Use initial-charset-g0 and -g1 of
2047 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2049 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2051 (Qideograph_hanziku_{1 .. 12}): Likewise.
2052 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2054 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2055 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2056 `ideograph-hanziku-{1 .. 12}'.
2058 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2059 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2060 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2061 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2062 (DECODE_DEFINED_CHAR): New inline function.
2063 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2065 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067 * mule-charset.c (Vcharset_china3_jef): Renamed from
2068 `Vcharset_japanese_jef_china3'.
2069 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2070 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2071 `{MIN|MAX}_CHAR_JEF_CHINA3'..
2072 (syms_of_mule_charset): Rename `china3-jef' from
2073 `japanese-jef-china3'.
2074 (complex_vars_of_mule_charset): Likewise; rename
2075 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2077 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2078 `LEADING_BYTE_JEF_CHINA3'.
2079 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2080 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2082 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084 * mule-charset.c (encode_builtin_char_1): Comment out special code
2085 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2087 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2088 (MAX_CHAR_MOJIKYO_0): Comment out.
2089 (MIN_CHAR_CBETA): Changed to 0x00E20000.
2090 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2091 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2092 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2094 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2096 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2097 (Qideograph_cbeta): New variable.
2098 (encode_builtin_char_1): Comment out special code for
2099 coded-charset `mojikyo' and `japanese-jef-china3'.
2100 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2101 (complex_vars_of_mule_charset): Add new coded-charset
2104 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2105 (MIN_CHAR_CBETA): New macro.
2106 (MAX_CHAR_CBETA): New macro.
2108 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2111 (LEADING_BYTE_JEF_CHINA3): New macro.
2112 (MIN_CHAR_JEF_CHINA3): New macro.
2113 (MAX_CHAR_JEF_CHINA3): Likewise.
2114 (DECODE_CHAR): Fixed.
2116 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2119 (Qjapanese_jef_china3): New variable.
2120 (encode_builtin_char_1): Support `japanese-jef-china3'.
2121 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2122 (complex_vars_of_mule_charset): Add new coded-charset
2123 `japanese-jef-china3'.
2125 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2127 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2128 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2129 94^4, 96^3, 96^4, 128^n and 256^n set.
2130 (put_char_table): Use `XCHARSET_CELL_RANGE'.
2131 (map_char_table): Likewise.
2133 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2135 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2138 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2140 * chartab.h (get_char_id_table): New inline function.
2142 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2145 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2147 * chartab.h (decode_char_table_range): New prototype in XEmacs
2149 (put_char_id_table): New inline function in XEmacs UTF-2000.
2151 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2153 (decode_char_table_range): Delete static declaration in XEmacs
2156 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2158 * chartab.c (put_char_id_table): Use `put_char_table'.
2160 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2162 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2163 (map_over_uint16_byte_table): Likewise.
2164 (map_over_byte_table): Likewise.
2165 (map_char_table): Modify for `map_over_uint8_byte_table',
2166 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2169 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2171 * chartab.c (struct map_char_table_for_charset_arg): New
2173 (map_char_table_for_charset_fun): New function.
2174 (map_char_table): Use `map_char_table' for encoding_table of
2177 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2179 * chartab.c (map_char_table): Check a character is found in
2180 range->charset instead of non default value is defined in
2181 char-table when range is CHARTAB_RANGE_ROW.
2183 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2185 * chartab.c (map_char_id_table): Deleted.
2186 (Fmap_char_attribute): Use `map_char_table' instead of
2187 `map_char_id_table'.
2189 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2191 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2193 (update_syntax_table): Deleted in XEmacs UTF-2000.
2195 * syntax.c (find_defun_start): Use `syntax_table' instead of
2196 `mirror_syntax_table' in XEmacs UTF-2000.
2197 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2199 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2201 (Fmatching_paren): Likewise.
2202 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2204 (find_start_of_comment): Likewise.
2205 (find_end_of_comment): Likewise.
2206 (Fforward_comment): Likewise.
2207 (scan_lists): Likewise.
2208 (char_quoted): Likewise.
2209 (Fbackward_prefix_chars): Likewise.
2210 (scan_sexps_forward): Likewise.
2211 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2212 (update_syntax_table): Likewise.
2214 * search.c (skip_chars): Use `syntax_table' instead of
2215 `mirror_syntax_table' in XEmacs UTF-2000.
2216 (wordify): Likewise.
2217 (Freplace_match): Likewise.
2219 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2220 `mirror_syntax_table' in XEmacs UTF-2000.
2221 (WORDCHAR_P_UNSAFE): Likewise.
2222 (re_match_2_internal): Likewise.
2224 * font-lock.c (find_context): Use `buf->syntax_table' instead of
2225 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2227 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2228 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2230 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2233 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2235 (print_char_table): Print `default_value' in XEmacs UTF-2000.
2236 (char_table_description): Delete `mirror_table' in XEmacs
2238 (fill_char_table): Don't call `update_syntax_table' in XEmacs
2240 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2241 (Fcopy_char_table): Likewise.
2242 (put_char_table): Don't call `update_syntax_table' in XEmacs
2245 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2246 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2247 (casify_region_internal): Likewise.
2249 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2251 * buffer.c (common_init_complex_vars_of_buffer): Don't use
2252 `mirror_syntax_table' in XEmacs UTF-2000.
2254 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2255 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2256 (Fexpand_abbrev): Likewise.
2258 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2260 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2262 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2264 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2265 (map_over_uint16_byte_table): Likewise.
2266 (map_over_byte_table): Likewise.
2267 (get_char_id_table): Refer `cit->default_value'.
2268 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2269 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2270 of character-id ranges.
2271 (mark_char_table): Mark `ct->default_value'.
2272 (char_table_description): Add `default_value'.
2273 (fill_char_table): Use `default_value'.
2274 (decode_char_table_range): Decode `nil' as
2275 `CHARTAB_RANGE_DEFAULT'.
2276 (get_char_id_table): Refer `cit->default_value'.
2277 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2278 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2279 temporary hack; check value of char-table is bound or not.
2280 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2282 * chartab.h (struct Lisp_Char_Table): Add new member
2283 `default_value' in XEmacs UTF-2000.
2284 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2285 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2288 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2290 * chartab.h (Lisp_Char_ID_Table): Deleted.
2292 * chartab.c (char_table_description): Fix typo.
2293 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2294 `Lisp_Char_ID_Table'.
2296 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2298 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2301 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2304 * chartab.h (XCHAR_ID_TABLE): Deleted.
2305 (XSETCHAR_ID_TABLE): Deleted.
2306 (CHAR_ID_TABLE_P): Deleted.
2308 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2310 (Fget_composite_char): Likewise.
2311 (put_char_table): Likewise.
2312 (add_char_attribute_alist_mapper): Fixed.
2313 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2315 (Fget_char_attribute): Likewise.
2316 (Fget_char_attribute): Likewise.
2317 (Fmap_char_attribute): Likewise.
2319 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2321 (encode_char_1): Likewise.
2323 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2328 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2329 instead of `XCHAR_ID_TABLE'.
2330 (remove_char_ccs): Likewise.
2332 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2334 (Fget_composite_char): Likewise.
2335 (Fchar_variants): Likewise.
2336 (put_char_table): Likewise.
2337 (add_char_attribute_alist_mapper): Likewise.
2338 (Fchar_attribute_alist): Likewise.
2339 (Fget_char_attribute): Likewise.
2340 (Fput_char_attribute): Likewise.
2341 (Fmap_char_attribute): Likewise.
2342 (Fmap_char_attribute): Likewise.
2344 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2346 (encode_char_1): Likewise.
2348 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2351 `Lisp_Char_ID_Table'.
2352 (mark_char_id_table): Deleted.
2353 (print_char_id_table): Likewise.
2354 (char_id_table_equal): Likewise.
2355 (char_id_table_hash): Likewise.
2356 (char_id_table_description): Likewise.
2357 (char_id_table): Likewise.
2358 (make_char_id_table): Use `Fmake_char_table' and
2360 (get_char_id_table): Use `Lisp_Char_Table' instead of
2361 `Lisp_Char_ID_Table'.
2362 (put_char_id_table): Likewise.
2363 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2365 (Fremove_char_attribute): Likewise.
2366 (syms_of_chartab): Don't define type `char-id-table'.
2368 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2369 (char_id_table): Likewise.
2370 (GC_CHAR_ID_TABLE_P): Likewise.
2371 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2372 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2373 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2374 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2375 (get_char_id_table): Use `Lisp_Char_Table' instead of
2376 `Lisp_Char_ID_Table'.
2377 (put_char_id_table_0): Likewise.
2378 (put_char_id_table): Likewise.
2380 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2382 * chartab.h: Lisp_Byte_Table related codes are moved from
2385 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2387 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2389 * chartab.h: Don't include "chartab.h".
2390 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2391 (Lisp_Char_ID_Table): Likewise.
2392 (char_id_table): Likewise.
2393 (XCHAR_ID_TABLE): Likewise.
2394 (XSETCHAR_ID_TABLE): Likewise.
2395 (CHAR_ID_TABLE_P): Likewise.
2396 (GC_CHAR_ID_TABLE_P): Likewise.
2397 (get_char_id_table): Likewise.
2399 * char-ucs.h: Include "chartab.h".
2400 (struct Lisp_Char_ID_Table): Moved to chartab.h.
2401 (Lisp_Char_ID_Table): Likewise.
2402 (char_id_table): Likewise.
2403 (XCHAR_ID_TABLE): Likewise.
2404 (XSETCHAR_ID_TABLE): Likewise.
2405 (CHAR_ID_TABLE_P): Likewise.
2406 (GC_CHAR_ID_TABLE_P): Likewise.
2407 (get_char_id_table): Likewise.
2409 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2411 * chartab.c (copy_uint8_byte_table): New function.
2412 (copy_uint16_byte_table): New function.
2413 (copy_byte_table): New function.
2414 (map_over_uint8_byte_table): Modify to avoid huge numbers of
2416 (map_over_uint16_byte_table): Likewise.
2417 (map_over_byte_table): Likewise.
2418 (get_byte_table): Move prototype to chartab.h.
2419 (put_byte_table): Likewise.
2420 (put_char_id_table_0): Moved to chartab.h.
2421 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2422 (char_table_entry_equal): Likewise.
2423 (char_table_entry_hash): Likewise.
2424 (char_table_entry_description): Likewise.
2425 (char_table_entry): Likewise.
2426 (make_char_table_entry): Likewise.
2427 (copy_char_table_entry): Likewise.
2428 (get_non_ascii_char_table_value): Likewise.
2429 (map_over_charset_ascii): Likewise.
2430 (map_over_charset_control_1): Likewise.
2431 (map_over_charset_row): Likewise.
2432 (map_over_other_charset): Likewise.
2433 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2434 (print_char_table): Likewise.
2435 (char_table_equal): Likewise.
2436 (char_table_hash): Likewise.
2437 (char_table_description): Likewise.
2438 (fill_char_table): Likewise.
2439 (Fcopy_char_table): Likewise.
2440 (get_char_table): Likewise.
2441 (Fget_range_char_table): Likewise.
2442 (put_char_table): Likewise.
2443 (map_char_table): Likewise.
2444 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2447 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2449 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2450 `Vauto_fill_chars' in XEmacs UTF-2000.
2452 * chartab.h (get_byte_table): New prototype [moved from
2454 (put_byte_table): Likewise [moved from chartab.c].
2455 (put_char_id_table_0): New inline function [moved from chartab.c].
2456 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2457 (Lisp_Char_Table_Entry): Likewise.
2458 (char_table_entry): Likewise.
2459 (XCHAR_TABLE_ENTRY): Likewise.
2460 (XSETCHAR_TABLE_ENTRY): Likewise.
2461 (CHAR_TABLE_ENTRYP): Likewise.
2462 (CHECK_CHAR_TABLE_ENTRY): Likewise.
2463 (NUM_ASCII_CHARS): Likewise.
2464 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2465 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2467 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2469 * chartab.c (get_char_id_table): Change interface.
2470 (put_char_id_table_0): New function.
2471 (put_char_id_table): Change interface; new implementation.
2472 (Fget_composite_char): Modify for interface change of
2473 `get_char_id_table'.
2474 (Fchar_variants): Likewise.
2475 (add_char_attribute_alist_mapper): Likewise.
2476 (Fchar_attribute_alist): Likewise.
2477 (Fget_char_attribute): Likewise.
2478 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2479 as same as character as the first argument like `put-char-table';
2480 modify for interface change of `put_char_id_table'.
2481 (Fremove_char_attribute): Modify for interface change of
2482 `put_char_id_table'.
2484 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2486 * text-coding.c: Sync up with XEmacs 21.2.41.
2487 (COMPOSE_ADD_CHAR): Modify for interface change of
2488 `get_char_id_table'.
2490 * mule-charset.c (put_char_ccs_code_point): Modify for interface
2491 change of `put_char_id_table'.
2492 (remove_char_ccs): Likewise.
2494 * chartab.h (put_char_id_table): Change interface.
2496 * char-ucs.h (get_char_id_table): Change interface.
2497 (charset_code_point): Modify for interface change of
2498 `get_char_id_table'.
2499 (encode_char_1): Likewise.
2501 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2503 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2505 (map_over_uint16_byte_table): Likewise.
2506 (map_over_byte_table): Likewise.
2507 (map_char_id_table): Add new argument `range' like
2509 (Fmap_char_attribute): Add new argument `range' like
2512 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2514 * chartab.c (map_over_uint8_byte_table): Change interface of
2515 mapping function to use struct chartab_range instead of Emchar.
2516 (map_over_uint16_byte_table): Likewise.
2517 (map_over_byte_table): Likewise.
2518 (map_char_id_table): Likewise.
2519 (struct slow_map_char_id_table_arg): Deleted.
2520 (slow_map_char_id_table_fun): Deleted.
2521 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2522 function `slow_map_char_table_fun' instead of struct
2523 `slow_map_char_id_table_arg' and function
2524 `slow_map_char_id_table_fun'.
2526 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2528 * mule-charset.c: Move char-it-table related codes to chartab.c.
2529 (Vutf_2000_version): Moved to chartab.c.
2530 (Fdefine_char): Likewise.
2531 (Ffind_char): Likewise.
2532 (syms_of_mule_charset): Move types `uint8-byte-table',
2533 `uint16-byte-table', `byte-table' and `char-id-table' to
2534 chartab.c; move functions `char_attribute_list,
2535 `find_char_attribute_table, `char_attribute_alist,
2536 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2537 `map_char_attribute, `define_char, `find_char, `char_variants and
2538 `get_composite_char to chartab.c; move symbols `=>ucs',
2539 `->decomposition', `compat', `isolated', `initial', `medial',
2540 `final', `vertical', `noBreak', `fraction', `super', `sub',
2541 `circle', `square', `wide', `narrow', `small' and `font' to
2543 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2544 setting codes for `Vcharacter_composition_table' and
2545 `Vcharacter_variant_table' to chartab.c.
2546 (complex_vars_of_mule_charset): Move setting code for
2547 `Vchar_attribute_hash_table' to chartab.c.
2549 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2550 (make_char_id_table): New prototype.
2551 (put_char_id_table): Likewise.
2552 (Fget_char_attribute): Likewise.
2554 * chartab.c: Move char-id-table related code from mule-charset.c.
2555 (Vutf_2000_version): Moved from mule-charset.c.
2557 * char-ucs.h (Qucs): New external variable.
2558 (put_char_ccs_code_point): New prototype.
2559 (remove_char_ccs): Likewise.
2561 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2563 * mule-charset.c (Vcharset_ucs_jis): New variable.
2564 (Qucs_jis): Likewise.
2565 (syms_of_mule_charset): Add new symbol `ucs-jis'.
2566 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2568 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2570 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2572 * mule-charset.c (map_over_uint8_byte_table): New function.
2573 (map_over_uint16_byte_table): Likewise.
2574 (map_over_byte_table): Likewise.
2575 (map_char_id_table): Likewise.
2576 (slow_map_char_id_table_fun): Likewise.
2577 (Fmap_char_attribute): Likewise.
2578 (syms_of_mule_charset): Add new function `map-char-attribute'.
2580 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2582 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2583 (syms_of_mule_charset): Add new function `find-char'.
2585 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2587 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2589 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2590 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2592 (complex_vars_of_mule_charset): Add new coded-charset
2593 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2594 `ideograph-gt-pj-*'.
2596 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2598 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2600 * mule-charset.c (encode_builtin_char_1): Purge codes about
2601 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2602 {MIN|MAX}_CHAR_HEBREW.
2603 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2604 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2606 * char-ucs.h (MIN_CHAR_GREEK): Purged.
2607 (MAX_CHAR_GREEK): Purged.
2608 (MIN_CHAR_CYRILLIC): Purged.
2609 (MAX_CHAR_CYRILLIC): Purged.
2610 (MIN_CHAR_HEBREW): Commented out.
2611 (MAX_CHAR_HEBREW): Likewise.
2613 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2615 * mule-charset.c (Qto_ucs): New variable.
2616 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2617 (Fdefine_char): Likewise.
2618 (syms_of_mule_charset): Add new symbol `=>ucs'.
2620 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2622 * mule-charset.c (Fdecode_char): Fixed.
2624 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2626 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2627 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2630 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632 * mule-charset.c (Vcharset_ucs_big5): New variable.
2633 (Qucs_big5): Likewise.
2634 (syms_of_mule_charset): Add new symbol `ucs-big5'.
2635 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2637 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2639 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2641 * mule-charset.c (decode_builtin_char): Check Big5 code range
2642 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2644 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2646 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2647 (Qchinese_gb12345): Likewise.
2648 (Fdecode_builtin_char): Fixed.
2649 (syms_of_mule_charset): Add `chinese-gb12345'.
2650 (complex_vars_of_mule_charset): Add coded-charset
2653 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2654 (LEADING_BYTE_CHINESE_GB12345): New macro.
2656 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2658 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2659 and `latin-viscii-upper' for `latin-viscii'.
2661 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2663 * mule-charset.c (Fdecode_builtin_char): Comment out
2664 regularization code for ISO-IR GR representation.
2666 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2668 * mule-charset.c (decode_builtin_char): New function; renamed from
2669 `make_builtin_char'; return -1 instead of signal.
2670 (Fdecode_builtin_char): Use `decode_builtin_char'.
2672 * char-ucs.h (decode_builtin_char): New prototype; renamed from
2673 `make_builtin_char'.
2674 (DECODE_CHAR): Use `decode_builtin_char' instead of
2675 `make_builtin_char'; use mapping table of `chinese-big5' for
2676 `chinese-big5-{1,2}'.
2678 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2680 * text-coding.c (char_encode_big5): New function.
2681 (char_finish_big5): Likewise.
2682 (reset_encoding_stream): Use `char_encode_big5' and
2683 `char_finish_big5' for CODESYS_BIG5.
2684 (mule_encode): Don't use `encode_coding_big5'.
2685 (encode_coding_big5): Deleted.
2687 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2689 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2690 0x81- in XEmacs UTF-2000.
2691 (detect_coding_big5): Likewise.
2693 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2695 * mule-charset.c (Fdefine_char): Don't use a CCS property to
2696 generate character-id if the CCS property does not have
2697 corresponding predefined character.
2698 (make_builtin_char): Return -1 if corresponding predefined
2699 character is not found.
2700 (Fdecode_char): Return nil if corresponding character is not
2702 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2703 don't map to builtin ucs space.
2705 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2707 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2708 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2710 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712 * mule-charset.c (Vcharset_ideograph_gt): New variable.
2713 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2714 (Qideograph_gt): Likewise.
2715 (Qideograph_gt_pj_{1..11}): Likewise.
2716 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2717 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2718 `ideograph-gt-pj-11'.
2719 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2720 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2721 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2723 * char-ucs.h (LEADING_BYTE_GT): New macro.
2724 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2725 (MIN_CHAR_GT): Likewise.
2726 (MAX_CHAR_GT): Likewise.
2728 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2730 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2731 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2733 * doprnt.c (unsigned_int_converters): Add `c'.
2734 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2736 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2737 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2739 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2740 (MAX_CHAR_MOJIKYO_0): New macro.
2741 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2743 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2745 * mule-charset.c (Fdefine_char): Delete cemented out code.
2746 (encode_builtin_char_1): Modify for new allocation of builtin
2749 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2751 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2753 * mule-charset.c (Vcharset_ucs_cns): New variable.
2754 (Qucs_cns): New variable.
2755 (syms_of_mule_charset): Add new symbol `ucs-cns'.
2756 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2758 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2760 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2762 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
2764 * search.c (search_buffer): Make `charset_base_code' as
2765 character-id >> 6 to eliminate the corresponding last byte in
2766 UTF-8 representation [I'm not sure it is right thing].
2767 (boyer_moore): Likewise.
2769 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
2771 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2772 representation in MULE.
2774 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2776 * text-coding.c (Fmake_coding_system): Use
2777 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2778 `EXTERNAL_PROPERTY_LIST_LOOP'.
2780 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2782 * text-coding.c (decode_output_utf8_partial_char): New function.
2783 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2785 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2787 * text-coding.c (decode_coding_utf8): Output original byte
2788 sequence if it is broken; change order of conditions.
2790 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2793 * mb-multibyte.h (BYTE_ASCII_P):
2794 Use bit ops for char-signedness safety.
2795 (BYTE_C0_P): Use bit ops for char-signedness safety.
2796 (BYTE_C1_P): Use bit ops for char-signedness safety.
2798 * character.h: (XCHAR_OR_CHAR_INT):
2799 Always use inline function.
2800 Remove redundant type checking assert() - XINT will abort quite
2803 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2805 * text-coding.c: (Fencode_shift_jis_char):
2806 (Fencode_big5_char):
2807 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
2808 Replace 0 with '\0' when working with bytes.
2809 Replace initial "(" with "\(" in docstrings.
2811 (Fmake_coding_system):
2812 When type is ccl and value is vector, register it with a proper
2813 symbol. And checks whether the given ccl program is valid.
2814 (mule_decode): When calling ccl_driver, if src indicates
2815 NULL pointer, set an empty string instead.
2816 (mule_encode): Likewise.
2819 (detect_coding_sjis):
2820 (decode_coding_sjis):
2821 (detect_coding_big5):
2822 (decode_coding_big5):
2823 (detect_coding_ucs4):
2824 (decode_coding_ucs4):
2825 (detect_coding_utf8):
2826 (decode_coding_utf8):
2827 (detect_coding_iso2022):
2828 (decode_coding_iso2022):
2829 (decode_coding_no_conversion):
2831 Make all detecting and decoding functions take an Extbyte * arg.
2832 (text_encode_generic):
2833 (encode_coding_big5):
2834 (encode_coding_no_conversion):
2836 Make all encoding functions take a Bufbyte * arg.
2837 Use size_t instead of unsigned int for memory sizes.
2838 Only cast to unsigned char whenever dereferencing Extbyte *.
2840 (struct lrecord_description fcd_description_1): Use countof.
2841 (complex_vars_of_file_coding):
2842 Use countof instead of sizeof.
2843 Use CHECK_NATNUM instead of CHECK_INT.
2845 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2847 * mule-charset.c (Fget_char_attribute): Add new optional argument
2849 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2850 (remove_char_ccs): Likewise.
2852 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2854 * text-coding.c (char_encode_shift_jis): New implementation in
2856 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2859 * mule-charset.c (Vcharset_chinese_big5): New variable in
2861 (Qchinese_big5): New variable in UTF-2000.
2862 (BIG5_SAME_ROW): New macro in UTF-2000.
2863 (make_builtin_char): Use builtin characters of
2864 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2865 characters of `Vcharset_chinese_big5'.
2866 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2867 (complex_vars_of_mule_charset): Add new coded-charset
2868 `chinese-big5' in UTF-2000.
2870 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2871 (Vcharset_chinese_big5): New external variable declaration.
2872 (Vcharset_japanese_jisx0208_1990): Likewise.
2874 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2876 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2878 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2880 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2882 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2883 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2884 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2887 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2889 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2891 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2893 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2896 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2898 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2899 for `CHARSET_BY_ATTRIBUTES'.
2900 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2901 `CHARSET_BY_ATTRIBUTES'.
2903 * text-coding.c (struct decoding_stream): Rename member `CH' to
2905 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2906 (decode_coding_sjis): Likewise.
2907 (decode_coding_big5): Likewise.
2908 (decode_coding_ucs4): Likewise.
2909 (decode_coding_utf8): Likewise.
2910 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2911 `CHARSET_BY_ATTRIBUTES'.
2912 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2913 `str->counter'; decode 3, 4 bytes sets.
2914 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2916 (decode_coding_no_conversion): Use `str->cpos' instead of
2919 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2920 (Qmojikyo_2022_1): New variable.
2921 (make_charset): Don't use `CHARSET_TYPE_*'.
2922 (range_charset_code_point): Support coded-charset
2924 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2925 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2926 `CHARSET_BY_ATTRIBUTES'.
2927 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2928 `CHARSET_BY_ATTRIBUTES'.
2929 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2930 (complex_vars_of_mule_charset): Add new coded-charset
2933 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2934 interface; changed to inline function.
2936 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2937 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2938 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2939 (CHARSET_TYPE_94): Deleted.
2940 (CHARSET_TYPE_94X94): Deleted.
2941 (CHARSET_TYPE_96): Deleted.
2942 (CHARSET_TYPE_96X96): Deleted.
2943 (CHARSET_TYPE_128): Deleted.
2944 (CHARSET_TYPE_128X128): Deleted.
2945 (CHARSET_TYPE_256): Deleted.
2946 (CHARSET_TYPE_256X256): Deleted.
2947 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2949 (DECODE_MOJIKYO_2022): New inline function.
2950 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2951 `Vcharset_mojikyo_2022_1'.
2953 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2955 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2957 (put_byte_table): Likewise.
2958 (char_id_table_equal): Use `get_byte_table' [new implementation].
2960 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2962 * mule-charset.c: Include <limits.h> in UTF-2000.
2963 (BT_UINT8_MIN): New macro in UTF-2000.
2964 (BT_UINT8_MAX): New macro in UTF-2000.
2965 (BT_UINT8_t): New macro in UTF-2000.
2966 (BT_UINT8_nil): New macro in UTF-2000.
2967 (BT_UINT8_unbound): New macro in UTF-2000.
2968 (INT_UINT8_P): New inline function in UTF-2000.
2969 (UINT8_VALUE_P): New inline function in UTF-2000.
2970 (UINT8_ENCODE): New inline function in UTF-2000.
2971 (UINT8_DECODE): New inline function in UTF-2000.
2972 (mark_uint8_byte_table): New function in UTF-2000.
2973 (print_uint8_byte_table): New function in UTF-2000.
2974 (uint8_byte_table_equal): New function in UTF-2000.
2975 (uint8_byte_table_hash): New function in UTF-2000.
2976 (make_uint8_byte_table): New function in UTF-2000.
2977 (uint8_byte_table_same_value_p): New function in UTF-2000.
2978 (BT_UINT16_MIN): New macro in UTF-2000.
2979 (BT_UINT16_MAX): New macro in UTF-2000.
2980 (BT_UINT16_t): New macro in UTF-2000.
2981 (BT_UINT16_nil): New macro in UTF-2000.
2982 (BT_UINT16_unbound): New macro in UTF-2000.
2983 (INT_UINT16_P): New inline function in UTF-2000.
2984 (UINT16_VALUE_P): New inline function in UTF-2000.
2985 (UINT16_ENCODE): New inline function in UTF-2000.
2986 (UINT16_DECODE): New inline function in UTF-2000.
2987 (UINT8_TO_UINT16): New inline function in UTF-2000.
2988 (mark_uint16_byte_table): New function in UTF-2000.
2989 (print_uint16_byte_table): New function in UTF-2000.
2990 (uint16_byte_table_equal): New function in UTF-2000.
2991 (uint16_byte_table_hash): New function in UTF-2000.
2992 (make_uint16_byte_table): New function in UTF-2000.
2993 (uint16_byte_table_same_value_p): New function in UTF-2000.
2994 (print_byte_table): New function in UTF-2000.
2995 (byte-table): Use `print_byte_table' as printer.
2996 (make_byte_table): Delete second argument `older'.
2997 (byte_table_same_value_p): New function in UTF-2000.
2998 (copy_byte_table): Deleted.
2999 (get_byte_table): New function in UTF-2000.
3000 (put_byte_table): New function in UTF-2000.
3001 (print_char_id_table): New function in UTF-2000.
3002 (char-id-table): Use `print_char_id_table' as printer.
3003 (make_char_id_table): Delete second argument `older'.
3004 (get_char_id_table): Use `get_byte_table [new implementation].
3005 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3007 (Ffind_char_attribute_table): New function in UTF-2000.
3008 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3009 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3010 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3011 (syms_of_mule_charset): Add new function
3012 `find-char-attribute-table' in UTF-2000.
3014 * lrecord.h (enum lrecord_type): Add
3015 `lrecord_type_uint16_byte_table' and
3016 `lrecord_type_uint8_byte_table'.
3018 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3019 (Lisp_Uint8_Byte_Table): New type.
3020 (XUINT8_BYTE_TABLE): New macro.
3021 (XSETUINT8_BYTE_TABLE): New macro.
3022 (UINT8_BYTE_TABLE_P): New macro.
3023 (GC_UINT8_BYTE_TABLE_P): New macro.
3024 (struct Lisp_Uint16_Byte_Table): New structure.
3025 (Lisp_Uint16_Byte_Table): New type.
3026 (XUINT16_BYTE_TABLE): New macro.
3027 (XSETUINT16_BYTE_TABLE): New macro.
3028 (UINT16_BYTE_TABLE_P): New macro.
3029 (GC_UINT16_BYTE_TABLE_P): New macro.
3031 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3033 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3034 (Vcharacter_ideographic_strokes_table): Deleted.
3035 (Vcharacter_total_strokes_table): Deleted.
3036 (Vcharacter_morohashi_daikanwa_table): Deleted.
3037 (Vcharacter_decomposition_table): Deleted.
3038 (Qname): Deleted because it is duplicated.
3039 (Qideographic_radical): Deleted.
3040 (Qideographic_strokes): Deleted.
3041 (Qtotal_strokes): Deleted.
3042 (Qmorohashi_daikanwa): Deleted.
3043 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3044 `ideographic-radical', `ideographic-strokes', `total-strokes',
3045 `morohashi-daikanwa' and `->decomposition'.
3046 (Fget_char_attribute): Likewise.
3047 (Fput_char_attribute): Likewise; use `make-vector' instead of
3048 `make_older_vector' for `->decomposition' value.
3049 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3050 `ideograph-daikanwa'.
3051 (syms_of_mule_charset): Delete builtin symbols `name',
3052 `ideographic-radical', `ideographic-strokes', `total-strokes' and
3053 `morohashi-daikanwa'.
3054 (vars_of_mule_charset): Don't setup
3055 `Vcharacter_ideographic_radical_table',
3056 `Vcharacter_ideographic_strokes_table',
3057 `Vcharacter_total_strokes_table',
3058 `Vcharacter_morohashi_daikanwa_table' and
3059 `Vcharacter_decomposition_table'.
3061 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3063 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3064 `make_older_vector', `make_vector_newer_1' and
3065 `make_vector_newer'.
3067 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3068 `make_older_vector' and `make_vector_newer'.
3070 * config.h.in (HAVE_GGC): New macro.
3072 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074 * mule-charset.c (struct char_attribute_list_closure): New
3075 structure in UTF-2000.
3076 (add_char_attribute_to_list_mapper): New function in UTF-2000.
3077 (Fchar_attribute_list): Likewise.
3078 (Fset_charset_mapping_table): Use `make_vector_newer'.
3079 (Fdecode_builtin_char): New function in UTF-2000.
3080 (syms_of_mule_charset): Add new function `char-attribute-list' and
3081 `decode-builtin-char' in UTF-2000.
3083 * lisp.h (make_vector_newer): New prototype.
3085 * alloc.c (make_vector_newer_1): New function.
3086 (make_vector_newer): New function.
3088 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3090 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3093 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3095 * mule-charset.c (Vchar_attribute_hash_table): New variable.
3096 (Vcharacter_attribute_table): Deleted.
3097 (Vcharacter_name_table): Deleted.
3098 (put_char_attribute): Deleted.
3099 (remove_char_attribute): Deleted.
3100 (struct char_attribute_alist_closure): New structure.
3101 (add_char_attribute_alist_mapper): New function.
3102 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3103 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3104 (Fget_char_attribute): Likewise.
3105 (Fput_char_attribute): Likewise.
3106 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3107 of `remove_char_attribute'.
3108 (Fdefine_char): Return character.
3109 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3110 and `Vcharacter_name_table'.
3111 (complex_vars_of_mule_charset): Likewise
3112 `Vchar_attribute_hash_table'.
3114 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3116 * character.h (CHARC_CHARSET): New macro.
3117 (CHARC_CHARSET_ID): New macro.
3118 (CHARC_CODE_POINT): New macro.
3119 (CHARC_COLUMNS): New macro.
3120 (CHARC_TO_CHAR): New inline function.
3121 (CHARC_EQ): New inline function.
3122 (CHARC_ASCII_EQ): New inline function.
3123 (CHARC_IS_SPACE): New inline function.
3124 (ASCII_TO_CHARC): New inline function.
3126 * char-ucs.h (encode_char_2): Deleted.
3127 (ENCODE_CHAR): Use `encode_char_1' again.
3128 (breakup_char_1): Likewise.
3129 (CHAR_TO_CHARC): New inline function.
3131 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3133 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3135 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3136 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3137 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3138 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3139 (create_string_text_block): Use `CHARC_ASCII_EQ' and
3141 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3143 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3145 (x_output_display_block): Use `CHARC_CHARSET' and
3148 * redisplay-tty.c (tty_output_display_block): Use
3150 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3152 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3154 * insdel.c (find_charsets_in_charc_string): Use
3156 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3157 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3158 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3159 (convert_charc_string_into_malloced_string): Likewise.
3161 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3163 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3164 instead of <Emchar_dynarr *> for buf; use
3165 `convert_bufbyte_string_into_charc_dynarr' instead of
3166 `convert_bufbyte_string_into_emchar_dynarr'; use
3167 `find_charsets_in_charc_string' instead of
3168 `find_charsets_in_emchar_string'.
3171 - Include "character.h".
3172 (struct rune): New member `cglyph'; delete member `chr'.
3174 * redisplay.c (redisplay_text_width_charc_string): New function;
3175 delete `redisplay_text_width_emchar_string'.
3176 (rtw_charc_dynarr): New variable; renamed from
3177 `rtw_emchar_dynarr'.
3178 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3179 `rtw_emchar_dynarr'; use
3180 `convert_bufbyte_string_into_charc_dynarr' instead of
3181 `convert_bufbyte_string_into_emchar_dynarr'; use
3182 `redisplay_text_width_charc_string' instead of
3183 `redisplay_text_width_emchar_string'.
3184 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3185 instead of `rtw_emchar_dynarr'; use
3186 `convert_bufbyte_string_into_charc_dynarr' instead of
3187 `convert_bufbyte_string_into_emchar_dynarr'.
3188 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3189 `redisplay_text_width_charc_string' instead of
3190 `redisplay_text_width_emchar_string'.
3191 (create_text_block): Modify for <struct rune> change.
3192 (generate_formatted_string_db): Likewise.
3193 (create_string_text_block): Likewise.
3194 (pixel_to_glyph_translation): Likewise.
3196 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3197 instead of <const Emchar *>.
3198 (x_text_width): Likewise.
3199 (x_output_display_block): Use <Charc_dynarr *> instead
3200 <Emchar_dynarr *>; modify for <structure rune> change.
3201 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3204 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3205 <const Emchar *>; use `charc_string_displayed_columns' instead of
3206 `emchar_string_displayed_columns'.
3207 (tty_output_display_block): Use <Charc_dynarr *> instead of
3208 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3209 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3210 (tty_output_charc_dynarr_dynarr): New variable; renamed from
3211 `tty_output_emchar_dynarr_dynarr'.
3212 (tty_output_charc_dynarr): New function; delete
3213 `tty_output_charc_dynarr'.
3215 * redisplay-output.c (compare_runes): Modify for `struct rune'.
3216 (redisplay_output_layout): Use <Charc_dynarr *> instead of
3217 <Emchar_dynarr *> for buf; use
3218 `convert_bufbyte_string_into_charc_dynarr' instead of
3219 `convert_bufbyte_string_into_emchar_dynarr'.
3221 * frame.c (title_string_charc_dynarr): New variable; renamed from
3222 `title_string_emchar_dynarr'.
3223 (generate_title_string): Use `title_string_charc_dynarr' instead
3224 of `title_string_emchar_dynarr'; use
3225 `convert_charc_string_into_malloced_string' instead of
3226 `convert_emchar_string_into_malloced_string'.
3227 (init_frame): Use `title_string_charc_dynarr' instead of
3228 `title_string_emchar_dynarr'.
3231 - Include "character.h".
3232 (struct console_methods): Use <const Charc *> instead of <const
3233 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3234 <Emchar_dynarr *> in output_string_method.
3236 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3239 * console-stream.c (stream_text_width): Use <const Charc *>
3240 instead of <const Emchar *>.
3242 * character.h (Charc_dynarr): New type.
3244 * char-ucs.h (structure Charc): New structure; define new type
3247 * char-lb.h (DECODE_CHAR): New inline function.
3248 (encode_char_1): New inline function.
3249 (ENCODE_CHAR): New macro.
3250 (structure Charc): New structure; define new type `Charc'.
3252 * char-1byte.h (Vcharset_control_1): New macro.
3253 (Vcharset_latin_iso8859_1): New macro.
3254 (DECODE_CHAR): New inline function.
3255 (encode_char_1): New inline function.
3256 (ENCODE_CHAR): New macro.
3257 (structure Charc): New structure; define new type `Charc'.
3259 * insdel.c (find_charsets_in_charc_string): New function; delete
3260 `find_charsets_in_emchar_string'.
3261 (charc_string_displayed_columns): New function; delete
3262 `emchar_string_displayed_columns'.
3263 (convert_bufbyte_string_into_charc_dynarr): New function; delete
3264 `convert_bufbyte_string_into_emchar_dynarr'.
3265 (convert_charc_string_into_bufbyte_dynarr): New function; delete
3266 `convert_charc_string_into_bufbyte_dynarr'.
3267 (convert_charc_string_into_malloced_string): New function; delete
3268 `convert_charc_string_into_malloced_string'.
3270 * buffer.h (find_charsets_in_charc_string): New prototype; delete
3271 `find_charsets_in_emchar_string'.
3272 (charc_string_displayed_columns): New prototype; delete
3273 `emchar_string_displayed_columns'.
3274 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3275 `convert_charc_string_into_bufbyte_dynarr'.
3276 (convert_charc_string_into_malloced_string): New prototype; delete
3277 `convert_charc_string_into_malloced_string'.
3279 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3281 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3283 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3285 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3287 * char-ucs.h: Use <short> for <Charset_ID>.
3289 * mule-charset.h, char-1byte.h: Use <unsigned char> for
3292 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3294 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3297 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3299 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3301 (Qmorohashi_daikanwa): New variable.
3302 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3303 for `morohashi-daikanwa' attribute.
3304 (Fget_char_attribute): Likewise.
3305 (Fput_char_attribute): Likewise.
3306 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3307 has the same value of `ideograph-daikanwa'.
3308 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3309 (vars_of_mule_charset): Setup
3310 `Vcharacter_morohashi_daikanwa_table'.
3312 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3314 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3316 (add_charset_to_list_mapper): Add `key' instead of
3317 `XCHARSET_NAME (value)' to return aliases.
3319 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3321 * mule-charset.c (Vcharacter_ideographic_radical_table): New
3323 (Vcharacter_ideographic_strokes_table): New variable.
3324 (Qideographic_radical): New variable.
3325 (Qideographic_strokes): New variable.
3326 (Fchar_attribute_alist): Use
3327 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3328 attribute; use `Vcharacter_ideographic_strokes_table' for
3329 `ideographic-strokes' attribute.
3330 (Fget_char_attribute): Likewise.
3331 (Fput_char_attribute): Likewise.
3332 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3333 `ideographic-strokes'.
3334 (vars_of_mule_charset): Setup
3335 `Vcharacter_ideographic_radical_table' and
3336 `Vcharacter_ideographic_strokes_table'.
3338 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3340 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3341 (Qtotal_strokes): New variable.
3342 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3343 `total-strokes' attribute.
3344 (Fget_char_attribute): Likewise.
3345 (Fput_char_attribute): Likewise.
3346 (syms_of_mule_charset): Add new symbol `total-strokes'.
3347 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3349 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3351 * mule-charset.c (Vcharacter_decomposition_table): New variable.
3352 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3354 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3355 `->decomposition' attribute.
3356 (Fput_char_attribute): Likewise.
3357 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3359 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3361 * mule-charset.c (decoding_table_check_elements): New function.
3362 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3364 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3366 * mule-charset.c (Fset_charset_mapping_table): Use
3367 `put_char_ccs_code_point'.
3369 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3371 * mule-charset.c (decoding_table_put_char): New inline function.
3372 (put_char_ccs_code_point): Use `decoding_table_put_char'.
3374 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3376 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3377 (XCHARSET_BYTE_SIZE): New macro.
3378 (decoding_table_remove_char): New inline function.
3379 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3380 `decoding_table_remove_char'.
3381 (remove_char_ccs): Use `decoding_table_remove_char'.
3382 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3384 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3386 * mule-charset.c (Vcharacter_name_table): New variable.
3387 (Qname): New variable.
3388 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3390 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3391 `Vcharacter_name_table' for `name' attribute.
3392 (Fremove_char_attribute): Use function `remove_char_ccs'.
3393 (put_char_ccs_code_point): New function.
3394 (remove_char_ccs): New function.
3395 (syms_of_mule_charset): Add new symbol `name'.
3396 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3398 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3400 * mule-charset.c (make_byte_table): Add new argument `older'.
3401 (make_char_id_table): Likewise.
3402 (copy_char_id_table): Comment out because it is not used.
3403 (put_char_id_table): Modify for `make_byte_table'.
3404 (Fput_char_attribute): Make encoding_table as older object;
3405 inherit older bit of `Vcharacter_composition_table'.
3406 (mark_charset): Don't mark `cs->encoding_table'.
3407 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3408 normal object; make `Vcharacter_composition_table' as an older
3409 object; delete staticpro for `Vcharacter_composition_table'; make
3410 `Vcharacter_variant_table' as a normal object.
3412 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3413 (mark_object): Don't check older object in UTF-2000.
3415 * lrecord.h (struct lrecord_header): Add new member `older' in
3417 (set_lheader_implementation): Setup `SLI_header->older' in
3419 (set_lheader_older_implementation): New macro in UTF-2000.
3420 (OLDER_RECORD_P): New macro in UTF-2000.
3421 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3422 (alloc_older_lcrecord): New prototype in UTF-2000.
3423 (alloc_older_lcrecord_type): New macro in UTF-2000.
3425 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3427 * mule-charset.c (byte_table_description): Use
3428 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3429 (char_id_table_description): Delete bogus `, 1'.
3430 (Fget_char_attribute): Refer encoding_table of each coded-charset
3431 to get value of coded-charset attribute of a character.
3432 (Fput_char_attribute): Use `make_older_vector' instead of
3433 `make_vector'; use encoding_table of each coded-charset to store
3434 value of coded-charset attribute of a character.
3435 (Fremove_char_attribute): Use encoding_table of each coded-charset
3436 to store value of coded-charset attribute of a character.
3437 (mark_charset): Mark `cs->encoding_table'; don't mark
3438 `cs->decoding_table'.
3439 (charset_description): Add description of new member
3441 (make_charset): Initialize `encoding_table'.
3443 * char-ucs.h (struct Lisp_Charset): Add new member
3445 (CHARSET_ENCODING_TABLE): New macro.
3446 (XCHARSET_ENCODING_TABLE): New macro.
3447 (charset_code_point): New implementation.
3448 (encode_char_1): Likewise.
3450 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3451 (disksave_object_finalization_1): Call finalizers of
3452 `all_older_lcrecords' in UTF-2000.
3453 (make_older_vector): New function in UTF-2000.
3454 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3457 * lisp.h (make_older_vector): New prototype in UTF-2000.
3459 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3461 * lrecord.h (enum lrecord_type): Rename
3462 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3464 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3465 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3466 `get_char_code_table'.
3468 * mule-charset.c (mark_char_id_table): Renamed from
3469 `mark_char_code_table'.
3470 (char_id_table_equal): Renamed from `char_code_table_equal'.
3471 (char_id_table_hash): Renamed from `char_code_table_hash'.
3472 (make_char_id_table): Renamed from `make_char_code_table'.
3473 (copy_char_id_table): Renamed from `copy_char_code_table'.
3474 (get_char_id_table): Renamed from `get_char_code_table'.
3475 (put_char_id_table): Renamed from `put_char_code_table'.
3476 (to_char_id): Renamed from `to_char_code'.
3478 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3479 `Lisp_Char_Code_Table'.
3480 (char_id_table): Renamed from `char_code_table'.
3481 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3482 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3483 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3484 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3485 (get_char_id_table): Renamed from `get_char_code_table'.
3487 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3489 * lrecord.h (enum lrecord_type): Rename
3490 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3492 * mule-charset.c (mark_byte_table): Renamed from
3493 `mark_char_byte_table'.
3494 (byte_table_equal): Renamed from `char_byte_table_equal'.
3495 (byte_table_hash): Renamed from `byte_table_hash'.
3496 (make_byte_table): Renamed from `make_byte_table'.
3497 (copy_byte_table): Renamed from `copy_char_byte_table'.
3499 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3500 `Lisp_Char_Byte_Table'.
3501 (byte_table): Renamed from `char_byte_table'.
3502 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3503 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3504 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3505 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3507 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3509 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3510 (dfc_convert_to_internal_format): Likewise.
3512 * text-coding.c (Fcoding_system_canonical_name_p): New function.
3513 * text-coding.c (Fcoding_system_alias_p): New function.
3514 * text-coding.c (Fcoding_system_aliasee): New function.
3515 * text-coding.c (append_suffix_to_symbol): New function.
3516 * text-coding.c (dangling_coding_system_alias_p): New function.
3517 * text-coding.c (Ffind_coding_system):
3518 * text-coding.c (Fcopy_coding_system):
3519 * text-coding.c (encode_coding_no_conversion):
3520 * text-coding.c (syms_of_file_coding):
3521 * text-coding.c (vars_of_file_coding):
3522 Rewrite coding system alias code.
3523 Allow nested aliases, like symbolic links.
3524 Allow redefinition of coding system aliases.
3525 Prevent existence of dangling coding system aliases.
3526 Eliminate convert_to_external_format.
3527 Eliminate convert_to_internal_format.
3529 * text-coding.c: Change enum eol_type to eol_type_t.
3531 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3533 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3534 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3536 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3537 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3539 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3541 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3542 `ideograph-daikanwa'.
3544 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3545 (Vcharset_ucs_bmp): Likewise.
3546 (Vcharset_mojikyo): Add new extern variable definition.
3547 (Vcharset_latin_iso8859_2): Deleted because it is not used.
3548 (Vcharset_latin_iso8859_3): Likewise.
3549 (Vcharset_latin_iso8859_4): Likewise.
3550 (Vcharset_latin_iso8859_9): Likewise.
3551 (Vcharset_latin_viscii_lower): Likewise.
3552 (Vcharset_latin_viscii_upper): Likewise.
3553 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3554 `mojikyo' code-point is used to decode.
3555 (encode_char_2): New function [to convert `mojikyo' code-point to
3556 Mojikyo font encoding].
3557 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3558 (breakup_char_1): Likewise.
3559 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3561 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3563 * text-coding.c (Fmake_coding_system): Add document about
3564 `disable-composition' property.
3566 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3568 * text-coding.c (Qdisable_composition): New variable; delete
3570 (Fmake_coding_system): Add new property `disable-composite';
3571 delete property `composite'.
3572 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3573 instead of `!CODING_SYSTEM_COMPOSITE'.
3574 (syms_of_file_coding): Add new symbol `disable-composition';
3575 delete symbol `composite'.
3577 * file-coding.h (struct Lisp_Coding_System): Add
3578 `disable_composition'; delete `enable_composition'.
3579 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3580 `CODING_SYSTEM_COMPOSITE'.
3581 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3582 `XCODING_SYSTEM_COMPOSITE'.
3584 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3586 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3589 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3591 * text-coding.c (Qcomposite): New variable.
3592 (Fmake_coding_system): Add new property `composite'.
3593 (struct decoding_stream): Add `combined_char_count',
3594 `combined_chars' and `combining_table' in UTF-2000.
3595 (COMPOSE_FLUSH_CHARS): New macro.
3596 (COMPOSE_ADD_CHAR): New macro.
3597 (reset_decoding_stream): Reset `str->combined_char_count' and
3598 `str->combining_table' in UTF-2000.
3599 (decode_coding_iso2022): Modify for character-decomposition.
3600 (syms_of_file_coding): Add new symbol `composite'.
3602 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3604 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3605 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3606 of `Vcharacter_composition_table' if `->decomposition' property
3608 (Qlatin_tcvn5712): New variable.
3609 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3610 (complex_vars_of_mule_charset): Add new coded-charset
3613 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3615 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3617 * file-coding.h (struct Lisp_Coding_System): Add
3618 `enable_composition'.
3619 (CODING_SYSTEM_COMPOSITE): New macro.
3620 (XCODING_SYSTEM_COMPOSITE): New macro.
3622 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
3624 * mule-canna.c (c2mu): Fix problem with UTF-2000.
3626 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
3628 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3629 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3631 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
3633 * mule-charset.c (Vcharset_mojikyo): New variable.
3634 (Fdefine_char): Don't use coded-charset which does not have
3635 non-builtin character range to allocate character-id.
3636 (Qmojikyo): New variable.
3637 (syms_of_mule_charset): Add new symbol `mojikyo'.
3638 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3640 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3641 (LEADING_BYTE_MOJIKYO): New macro.
3642 (MIN_CHAR_MOJIKYO): New macro.
3643 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3644 (MAX_CHAR_MOJIKYO): New macro.
3646 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
3648 * mule-charset.c (remove_char_attribute): Fixed.
3650 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
3652 * mule-charset.c (remove_char_attribute): New function.
3653 (Fremove_char_attribute): New function.
3654 (encode_builtin_char_1): Comment out builtin-support for
3655 greek-iso8859-7 and cyrillic-iso8859-5.
3656 (Fdecode_char): Check `code' is an integer.
3657 (syms_of_mule_charset): Add `remove-char-attribute'.
3658 (MIN_CHAR_GREEK): Deleted.
3659 (MAX_CHAR_GREEK): Likewise.
3660 (MIN_CHAR_CYRILLIC): Likewise.
3661 (MAX_CHAR_CYRILLIC): Likewise.
3662 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3663 MAX_CHAR_GREEK for `greek-iso8859-7'.
3665 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3666 (MAX_CHAR_GREEK): Likewise.
3667 (MIN_CHAR_CYRILLIC): Likewise.
3668 (MAX_CHAR_CYRILLIC): Likewise.
3670 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
3672 * mule-charset.c (Fdefine_char): Fix problem when new code-point
3673 format is used without `ucs' property.
3674 (Fdecode_char): Fix problem with GR representation.
3675 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3676 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3678 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3680 * mule-charset.c (make_builtin_char): New function.
3681 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3682 (Fset_charset_mapping_table): Modify for new representation of
3684 (Fdecode_char): New function.
3685 (syms_of_mule_charset): Add new builtin function `decode-char' in
3688 * char-ucs.h (make_builtin_char): New prototype.
3689 (DECODE_CHAR): New inline function.
3690 (MAKE_CHAR): Use `DECODE_CHAR'.
3692 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
3694 * text-coding.c (parse_charset_conversion_specs): Use
3695 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3697 (iso2022_designate): Likewise.
3699 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3700 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3702 * mule-charset.c (Vcharset_ucs): New variable.
3703 (print_charset): Change design; use `CHARSET_CHARS' and
3704 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3705 (make_charset): Change signature to specify `chars' and
3706 `dimension' instead of `type'.
3707 (range_charset_code_point): Modify for 256^n-set.
3708 (encode_builtin_char_1): Encode as `ucs' in default.
3709 (Fmake_charset): Modify for `make_charset'.
3710 (Fmake_reverse_direction_charset): Likewise.
3711 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3713 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3716 * char-ucs.h (Vcharset_ucs): New variable.
3717 (LEADING_BYTE_UCS): New macro.
3718 (struct Lisp_Charset): Delete `type'; change type of `dimension'
3719 and `chars' to `unsigned short' from `unsigned int'.
3720 (CHARSET_TYPE): Deleted.
3721 (XCHARSET_TYPE): Deleted.
3723 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
3725 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3727 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3728 (ENCODE_CHAR): New macro.
3730 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3732 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3733 to 0.14 (Kawachi-Katakami).
3735 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3737 * text-coding.c (char_encode_shift_jis): Modify for
3738 `charset_code_point'.
3739 (char_encode_iso2022): Likewise.
3741 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3742 (integer) instead of list of <Lisp_Object>s (integers) as the
3743 format of code-point of a coded-charset.
3744 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3745 (encode_builtin_char_1): New function; delete
3746 `split_builtin_char'.
3747 (charset_code_point): Return <int> instead of <Lisp_Object>.
3748 (Fsplit_char): Don't use `SPLIT_CHAR'.
3750 * char-ucs.h (encode_builtin_char_1): New prototype; delete
3751 prototype for `split_builtin_char'.
3752 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3753 (charset_code_point): Likewise.
3754 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3755 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3757 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
3759 * mule-charset.c (complex_vars_of_mule_charset): Don't define
3760 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3762 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3764 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3766 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3767 (MAX_CHAR_OBS_94x94): Deleted.
3769 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3771 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3773 * char-ucs.h (MAX_CHAR_BMP): New macro.
3775 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3777 * text-coding.c: Sync with r21-2-24.
3779 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3781 * file-coding.c: Modify for UTF-2000.
3783 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3785 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3788 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3790 * mule-charset.c (split_builtin_char): Delete builtin support for
3791 `katakana-jisx0201'.
3792 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3793 BMP area in builtin representation.
3795 * char-ucs.h (MAKE_CHAR): Delete builtin support for
3796 `Vcharset_katakana_jisx0201'.
3798 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
3800 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3801 (Qisolated): New variable.
3802 (Qinitial): New variable.
3803 (Qmedial): New variable.
3804 (Qfinal): New variable.
3805 (Qvertical): New variable.
3806 (Qsmall): New variable.
3807 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3808 `Qvertical' and `Qsmall'.
3809 (Qmojikyo_pj_[1 .. 21]): New variable.
3810 (syms_of_mule_charset): Add new symbols `isolated', `initial',
3811 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3812 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3815 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3817 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3818 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3819 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3821 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3823 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3824 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3826 (Qjapanese_jisx0208_1990): New variable.
3827 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3828 (complex_vars_of_mule_charset): Add new coded-charset
3829 `japanese-jisx0208-1990'.
3831 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3832 (MIN_CHAR_JIS_X0208_1990): New macro.
3833 (MAX_CHAR_JIS_X0208_1990): New macro.
3835 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3837 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3838 coded-charset is not found.
3840 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
3842 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3843 (Fdefine_char): Use `Fmake_char'.
3845 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3847 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3848 (Vcharset_hiragana_jisx0208): Deleted.
3849 (Vcharset_katakana_jisx0208): Deleted.
3850 (Qideograph_daikanwa): New variable.
3851 (Qhiragana_jisx0208): Deleted.
3852 (Qkatakana_jisx0208): Deleted.
3853 (split_builtin_char): Split `ideograph-daikanwa'.
3854 (Fsplit_char): New implementation for UTF-2000.
3855 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3856 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3857 (complex_vars_of_mule_charset): Add new coded-charset
3858 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3859 `katakana-jisx0208'.
3861 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3862 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3863 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3864 (MIN_CHAR_DAIKANWA): New macro.
3865 (MAX_CHAR_DAIKANWA): New macro.
3867 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3869 * data.c (Fstring_to_number): Don't recognize floating point if
3872 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
3874 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3876 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3878 * mule-charset.c (Qsquare): New variable.
3879 (to_char_code): Add `Qsquare'.
3880 (syms_of_mule_charset): Add new symbol `square'.
3882 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3884 * mule-charset.c (Qcircle): New variable.
3885 (to_char_code): Add `Qcircle'.
3886 (syms_of_mule_charset): Add new symbol `circle'.
3888 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3890 * mule-charset.c (Qfont): New variable.
3891 (to_char_code): Add `Qfont'.
3892 (syms_of_mule_charset): Add new symbol `font'.
3894 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3896 * mule-charset.c (Qsub): New variable.
3897 (to_char_code): Add `Qsub'.
3898 (syms_of_mule_charset): Add new symbol `sub'.
3900 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3902 * mule-charset.c (Fput_char_attribute): Convert each element of
3903 VALUE to GL position if ATTRIBUTE is a GR-set,
3905 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
3907 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3908 coded-charset is a GR-set.
3910 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3912 * mule-charset.c (Fput_char_attribute): Check each element of
3913 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3915 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3917 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3919 (Qethiopic_ucs): New variable in UTF-2000.
3920 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3921 (complex_vars_of_mule_charset): Add new coded-charset
3922 `ethiopic-ucs' in UTF-2000.
3924 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3925 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3927 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3929 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3931 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3933 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3936 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3938 * mule-charset.c (Vcharacter_variant_table): New variable.
3939 (Q_ucs): New variable.
3940 (Fchar_variants): New function.
3941 (Fput_char_attribute): Register `->ucs' value to
3942 `Vcharacter_variant_table'.
3943 (syms_of_mule_charset): Add new function `char-variants' and new
3945 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3947 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3949 * mule-charset.c (get_char_code_table): Allow negative character
3951 (put_char_code_table): Likewise.
3952 (Vcharacter_composition_table): New variable.
3953 (Q_decomposition): New variable.
3954 (Qwide): New variable.
3955 (Qnarrow): New variable.
3956 (Qcompat): New variable.
3957 (QnoBreak): New variable.
3958 (Qsuper): New variable.
3959 (Qfraction): New variable.
3960 (to_char_code): New function.
3961 (Fget_composite_char): New function.
3962 (Fput_char_attribute): Register `->decomposition' value to
3963 `Vcharacter_composition_table'.
3964 (syms_of_mule_charset): Add new function `get-composite-char', new
3965 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3966 `super' and `fraction'.
3967 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3969 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3971 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3972 character; copy the return value.
3974 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3976 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3978 * mule-charset.c (range_charset_code_point): Must use make_int.
3979 (split_builtin_char): New function.
3981 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3983 * mule-charset.c (char_byte_table): Change name from
3984 "char-code-table" to "char-byte-table".
3985 (mark_char_code_table): New function.
3986 (char_code_table_equal): New function.
3987 (char_code_table_hash): New function.
3988 (char_code_table_description): New constant.
3989 (char_code_table): New type.
3990 (make_char_code_table): New function.
3991 (copy_char_code_table): New function.
3992 (get_char_code_table): Modify for `char_code_table' type.
3993 (put_char_code_table): Likewise.
3994 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3997 * char-ucs.h (char_code_table): New type.
3998 (XCHAR_CODE_TABLE): New macro.
3999 (XSETCHAR_CODE_TABLE): New macro.
4000 (CHAR_CODE_TABLE_P): New macro.
4001 (GC_CHAR_CODE_TABLE_P): New macro.
4002 (struct Lisp_Char_Code_Table): New structure.
4004 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4006 * mule-charset.c (Fmake_charset): Setup byte_offset for
4009 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
4011 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4014 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4016 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4019 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4021 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4022 charset, it is regarded as a charset.
4023 (put_char_attribute): New function in UTF-2000.
4024 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4025 charset, mapping-table of the charset is modified.
4026 (Fdefine_char): New function in UTF-2000.
4027 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4028 `Fput_char_attribute'.
4029 (syms_of_mule_charset): Add new function `define-char' and new
4030 symbol `ucs' in UTF-2000.
4031 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4033 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4035 * mule-charset.c (Fcharset_name): Define `byte_offset' in
4036 non-UTF-2000 configuration.
4038 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4040 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4041 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4043 * mule-charset.c (mark_charset): `cs->encoding_table' has been
4045 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4046 (Fset_charset_mapping_table): Likewise.
4048 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4049 (CHARSET_ENCODING_TABLE): Delete.
4050 (XCHARSET_ENCODING_TABLE): Delete.
4051 (charset_code_point): New interface.
4053 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4055 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4056 instead of `charset_get_byte1' and `charset_get_byte2'.
4058 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4059 (charset_get_byte2): Deleted.
4061 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4063 * char-ucs.h (SPLIT_CHAR): New inline function.
4064 (breakup_char_1): Use `SPLIT_CHAR'.
4066 * mule-charset.c (range_charset_code_point): New function.
4067 (charset_code_point): New function.
4069 * char-ucs.h (range_charset_code_point): New interface.
4070 (breakup_char_1): Use `range_charset_code_point'.
4072 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4074 * mule-charset.c (Fmake_charset): Delete unused local variable
4077 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4078 (breakup_char_1): Find a charset and code-point in
4079 `Vcharacter_attribute_table'.
4081 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4083 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4086 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4088 * mule-charset.c (Vcharacter_attribute_table): New variable.
4089 (Fchar_attribute_alist): New function.
4090 (Fget_char_attribute): New function.
4091 (Fput_char_attribute): New function.
4092 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4094 (syms_of_mule_charset): Add new function `char-attribute-alist',
4095 `get-char-attribute' and `put-char-attribute'.
4096 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4098 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
4100 * mule-charset.c (Fmake_charset): Just use
4101 `get_unallocated_leading_byte'.
4103 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4104 sets; don't use final-byte based number for private sets.
4106 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4108 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4111 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4113 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4116 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4118 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4119 of `CHAR_LEADING_BYTE' in UTF-2000.
4121 * insdel.c (find_charsets_in_bufbyte_string): Use
4122 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4123 (find_charsets_in_emchar_string): Likewise.
4125 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4126 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4128 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4129 (CHAR_CHARSET_ID): New macro.
4131 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4133 * chartab.c (get_char_table): Don't use type `Charset_ID' for
4134 charset-id - MIN_LEADING_BYTE.
4135 (put_char_table): Likewise.
4137 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4139 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4140 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4141 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4142 (CHARSET_ID_OFFSET): New macro.
4143 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4144 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4145 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4146 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4148 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4150 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4151 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4152 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4153 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4154 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4156 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4158 * mule-charset.c (next_allocated_leading_byte): New variable in
4160 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4161 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4162 (get_unallocated_leading_byte): Simply use
4163 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4164 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4167 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4168 (MAX_LEADING_BYTE_PRIVATE): New macro.
4169 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4170 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4172 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4174 * mule-charset.c (Fmake_charset): Allocate final-byte based
4175 charset-id for 94-set, 96-set and 94x94-set.
4177 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4179 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4181 (Fmake_charset): Likewise.
4182 (complex_vars_of_mule_charset): Modify the font registry of
4183 `ucs-bmp' not to match `Ethiopic-Unicode'.
4185 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4187 * mule-charset.c (complex_vars_of_mule_charset): Add font
4188 registory of `ucs-bmp'.
4190 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4192 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4193 coded-charsets in `default-coded-charset-priority-list' when
4194 breaking up a character.
4196 * mule-charset.c (Vcharset_latin_viscii): New variable.
4197 (Qlatin_viscii): New variable.
4198 (make_charset): Don't use `decoding_table'.
4199 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4201 (Fset_charset_mapping_table): New implementation.
4202 (syms_of_mule_charset): Add new symbol `latin-viscii'.
4203 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4204 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4205 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4206 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4207 charset `latin_viscii'.
4209 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4210 (CHARSET_TYPE_94X94): Change to 1 from 2.
4211 (CHARSET_TYPE_96): Change to 2 from 1.
4212 (CHARSET_TYPE_128): New macro.
4213 (CHARSET_TYPE_128X128): Change to 5 from 4.
4214 (CHARSET_TYPE_256): New macro.
4215 (CHARSET_TYPE_256X256): Change to 7 from 5.
4216 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4218 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4220 * text-coding.c (char_encode_shift_jis): Refer
4221 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4222 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4224 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4225 (char_byte_table_equal): New function in UTF-2000.
4226 (char_byte_table_hash): New function in UTF-2000.
4227 (char_byte_table_description): New constant in UTF-2000.
4228 (char_byte_table): New type in UTF-2000.
4229 (make_char_byte_table): New function in UTF-2000.
4230 (copy_char_byte_table): New function in UTF-2000.
4231 (make_char_code_table): New macro in UTF-2000.
4232 (get_char_code_table): New function in UTF-2000.
4233 (put_char_code_table): New function in UTF-2000.
4234 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4235 (charset_description): Add setting in UTF-2000.
4236 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4237 `CHARSET_TO_BYTE1_TABLE(cs)'.
4238 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4239 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4240 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4241 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4242 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4243 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4244 `CHARSET_TO_BYTE2_TABLE(cs)'.
4246 * char-ucs.h (char_byte_table): New type.
4247 (XCHAR_BYTE_TABLE): New macro.
4248 (XSETCHAR_BYTE_TABLE): New macro.
4249 (CHAR_BYTE_TABLE_P): New macro.
4250 (GC_CHAR_BYTE_TABLE_P): New macro.
4251 (struct Lisp_Char_Byte_Table): New structure.
4252 (get_char_code_table): New interface.
4253 (Emchar_to_byte_table): Deleted.
4254 (get_byte_from_character_table): Deleted.
4255 (struct Lisp_Charset): Add `encoding_table'; delete
4256 `to_byte1_table' and `to_byte2_table'.
4257 (CHARSET_ENCODING_TABLE): New macro.
4258 (CHARSET_TO_BYTE1_TABLE): Deleted.
4259 (CHARSET_TO_BYTE2_TABLE): Deleted.
4260 (XCHARSET_ENCODING_TABLE): New macro.
4261 (XCHARSET_TO_BYTE1_TABLE): Deleted.
4262 (XCHARSET_TO_BYTE2_TABLE): Deleted.
4264 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4266 * mule-charset.c (syms_of_mule_charset): Delete charset alias
4267 `vietnamese-viscii-*'.
4269 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4271 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4272 (Qvietnamese_viscii_upper): New variable.
4273 (Fdefine_charset_alias): New function.
4274 (syms_of_mule_charset): Add new function `define-charset-alias'.
4275 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4276 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4279 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
4281 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4282 (MAX_CHAR_OBS_94x94): New macro.
4283 (breakup_char_1): Support obsolete XEmacs-UCS private code space
4286 * mule-charset.c (put_byte_from_character_table): Change unit size
4288 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4290 (Fmake_reverse_direction_charset): Modify dummy argument of
4291 `make_charset' for non-UTF-2000 environment.
4293 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
4295 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4297 * mule-charset.c (destroy_byte_from_character_table): New macro.
4298 (latin_jisx0201_to_ucs): Deleted.
4299 (latin_iso8859_2_to_ucs): Deleted.
4300 (latin_iso8859_3_to_ucs): Deleted.
4301 (latin_iso8859_4_to_ucs): Deleted.
4302 (latin_iso8859_9_to_ucs): Deleted.
4303 (latin_viscii_lower_to_ucs): Deleted.
4304 (latin_viscii_upper_to_ucs): Deleted.
4305 (mark_charset): Mark `cs->decoding_table'.
4306 (Fcharset_mapping_table): Fix DOC-string.
4307 (Fset_charset_mapping_table): New function.
4308 (syms_of_mule_charset): Add nwe function
4309 `set-charset-mapping-table'.
4310 (complex_vars_of_mule_charset): Don't setup and use
4313 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
4315 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4318 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
4320 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4321 (Vcharset_katakana_jisx0208): New variable.
4322 (Qhiragana_jisx0208): New variable.
4323 (Qkatakana_jisx0208): New variable.
4324 (make_charset): Add new argument `byte_offset'.
4325 (charset_get_byte1): Modify for new coded-charset definition; use
4326 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4327 `XCHARSET_BYTE_OFFSET'.
4328 (Fmake_charset): Modify for `make_charset'.
4329 (Fmake_reverse_direction_charset): Likewise.
4330 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4331 `katakana-jisx0208'.
4332 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4333 `.' in font registry of charset `katakana-jisx0201',
4334 `latin-jisx0201', `vietnamese-viscii-lower' and
4335 `vietnamese-viscii-upper'; modify DOC-string of charset
4336 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4337 registry of charset `japanese-jisx0208' not to use font for JIS
4338 X0208:1990; add new charset `hiragana-jisx0208' and
4339 `katakana-jisx0208'.
4341 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4342 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4343 (struct Lisp_Charset): Add `byte_offset'.
4344 (CHARSET_BYTE_OFFSET): New macro.
4345 (XCHARSET_UCS_MIN): New macro.
4346 (XCHARSET_UCS_MAX): New macro.
4347 (XCHARSET_CODE_OFFSET): New macro.
4348 (XCHARSET_BYTE_OFFSET): New macro.
4349 (MIN_CHAR_HIRAGANA): New macro.
4350 (MAX_CHAR_HIRAGANA): New macro.
4351 (MIN_CHAR_KATAKANA): New macro.
4352 (MAX_CHAR_KATAKANA): New macro.
4353 (MAKE_CHAR): Modify for new coded-charset definition; use
4354 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4355 `XCHARSET_BYTE_OFFSET'.
4357 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4359 * mule-charset.c (CHAR96): Deleted.
4360 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4362 (latin_iso8859_2_to_ucs): Likewise.
4363 (latin_iso8859_3_to_ucs): Likewise.
4364 (latin_iso8859_4_to_ucs): Likewise.
4365 (latin_iso8859_9_to_ucs): Likewise.
4366 (latin_viscii_lower_to_ucs): Likewise.
4367 (latin_viscii_upper_to_ucs): Likewise.
4368 (latin_tcvn5712_to_ucs): Commented out.
4369 (make_charset): Change type of argument `decoding_table' from
4370 <Emchar*> to <Lisp_Object> [vector of characters].
4371 (Fmake_charset): Modify for `make_charset'.
4372 (Fmake_reverse_direction_charset): Likewise.
4373 (Fcharset_mapping_table): New function in UTF-2000.
4374 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4376 (complex_vars_of_mule_charset): Modify for type change of
4377 `*_to_ucs'; modify for `make_charset'.
4379 * char-ucs.h (struct Lisp_Charset): Change type of
4380 `decoding_table' from <Emchar*> to <Lisp_Object>.
4381 (MAKE_CHAR): Modify for new specification of `decoding_table'.
4383 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
4385 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4386 error with non-UTF-2000-Mule.
4388 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
4390 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4392 (Vcharset_chinese_cns11643_4): Likewise.
4393 (Vcharset_chinese_cns11643_5): Likewise.
4394 (Vcharset_chinese_cns11643_6): Likewise.
4395 (Vcharset_chinese_cns11643_7): Likewise.
4396 (Qchinese_cns11643_3): Likewise.
4397 (Qchinese_cns11643_4): Likewise.
4398 (Qchinese_cns11643_5): Likewise.
4399 (Qchinese_cns11643_6): Likewise.
4400 (Qchinese_cns11643_7): Likewise.
4401 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4402 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4403 and `chinese-cns11643-7' to lisp/mule/chinese.el.
4404 (complex_vars_of_mule_charset): Likewise.
4406 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
4408 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4410 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4411 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4413 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4415 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4417 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4418 (breakup_char_1): Likewise.
4420 * text-coding.c (char_encode_iso2022): Keep designated charsets if
4421 one of them includes the specified character.
4423 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4425 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4427 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4429 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4431 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4433 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4434 definition for non-UTF-2000 Mule.
4435 (latin_iso8859_3_to_ucs): Likewise.
4436 (latin_iso8859_4_to_ucs): Likewise.
4437 (latin_iso8859_9_to_ucs): Likewise.
4438 (latin_jisx0201_to_ucs): Likewise.
4439 (MIN_CHAR_THAI): Likewise.
4440 (MAX_CHAR_THAI): Likewise.
4441 (MIN_CHAR_GREEK): Likewise.
4442 (MAX_CHAR_GREEK): Likewise.
4443 (MIN_CHAR_HEBREW): Likewise.
4444 (MAX_CHAR_HEBREW): Likewise.
4445 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4446 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4447 (MIN_CHAR_CYRILLIC): Likewise.
4448 (MAX_CHAR_CYRILLIC): Likewise.
4450 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4452 * char-ucs.h (breakup_char_1): Use
4453 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4454 thai-tis620 and katakana-jisx0201 area.
4456 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4458 * char-ucs.h (breakup_char_1): Use
4459 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4462 * text-coding.c (reset_encoding_stream): Fixed.
4463 (char_encode_ucs4): Delete `& 255'.
4465 * char-ucs.h (breakup_char_1): Use
4466 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4468 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4470 * file-coding.c (Fmake_coding_system): Don't set up
4471 `codesys->fixed.size'.
4472 (encode_coding_no_conversion): Don't refer
4473 `str->codesys->fixed.size'.
4475 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4477 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4478 (latin_a_char_to_byte1): Deleted.
4479 (latin_a_char_to_byte2): Deleted.
4481 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4483 * mule-charset.c (make_charset): Add new argument `ucs_min',
4484 `ucs_max' and `code_offset'.
4485 (charset_get_byte1): New implementation [delete specific charset
4486 depended implementations].
4487 (Fmake_charset): Modify for `make_charset'.
4488 (Fmake_reverse_direction_charset): Likewise.
4489 (complex_vars_of_mule_charset): Likewise.
4491 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4493 (CHARSET_UCS_MIN): New macro.
4494 (CHARSET_UCS_MAX): New macro.
4495 (CHARSET_CODE_OFFSET): New macro.
4496 (MAKE_CHAR): Delete charset depended definitions [except
4499 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
4501 * char-ucs.h (breakup_char_1): Use
4502 `Vdefault_coded_charset_priority_list' for C0-Controls,
4503 Basic-Latin, C1-Controls and Latin-1-Supplement area.
4505 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4507 * char-ucs.h (charset_get_byte1): New function.
4508 (XCHARSET_GET_BYTE1): Deleted.
4509 (charset_get_byte2): New function.
4510 (XCHARSET_GET_BYTE2): Deleted.
4511 (Vdefault_coded_charset_priority_list): New external variable.
4512 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4513 `Vdefault_preferred_coded_charset_list'.
4515 * mule-charset.c (charset_get_byte1): New function.
4516 (charset_get_byte2): New function.
4517 (Vdefault_coded_charset_priority_list): New variable.
4518 (vars_of_mule_charset): Add new variable
4519 `default-coded-charset-priority-list'.
4521 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4523 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4524 (XCHARSET_GET_BYTE2): New inline function.
4525 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4526 `XCHARSET_GET_BYTE2'.
4528 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4530 * mule-charset.c (make_charset): Initialize
4531 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4532 NULL if table is not defined.
4534 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4536 * text-coding.c (char_encode_shift_jis): Use
4537 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4538 `ucs_to_latin_jisx0201'.
4540 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4541 (ucs_to_latin_iso8859_2): Deleted.
4542 (ucs_to_latin_iso8859_3): Deleted.
4543 (ucs_to_latin_iso8859_4): Deleted.
4544 (ucs_to_latin_iso8859_9): Deleted.
4545 (ucs_to_latin_viscii_lower): Deleted.
4546 (ucs_to_latin_viscii_upper): Deleted.
4547 (ucs_to_latin_tcvn5712): Deleted.
4548 (make_charset): Add new argument `decoding_table'; set up
4549 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4550 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4551 `decoding_table' is defined in UTF-2000.
4552 (Fmake_charset): Modify for `make_charset'.
4553 (Fmake_reverse_direction_charset): Likewise.
4554 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4555 and `GENERATE_96_SET'.
4557 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4558 (ucs_to_latin_jisx0201): Deleted.
4559 (latin_iso8859_2_to_ucs): Deleted.
4560 (ucs_to_latin_iso8859_2): Deleted.
4561 (latin_iso8859_3_to_ucs): Deleted.
4562 (ucs_to_latin_iso8859_3): Deleted.
4563 (latin_iso8859_4_to_ucs): Deleted.
4564 (ucs_to_latin_iso8859_4): Deleted.
4565 (latin_iso8859_9_to_ucs): Deleted.
4566 (ucs_to_latin_iso8859_9): Deleted.
4567 (latin_viscii_lower_to_ucs): Deleted.
4568 (ucs_to_latin_viscii_lower): Deleted.
4569 (latin_viscii_upper_to_ucs): Deleted.
4570 (ucs_to_latin_viscii_upper): Deleted.
4571 (struct Lisp_Charset): Renamed `encoding_table' to
4572 `to_byte1_table'; add `to_byte2_table'.
4573 (CHARSET_DECODING_TABLE): New macro.
4574 (CHARSET_TO_BYTE1_TABLE): New macro.
4575 (CHARSET_TO_BYTE2_TABLE): New macro.
4576 (XCHARSET_DECODING_TABLE): New macro.
4577 (XCHARSET_TO_BYTE1_TABLE): New macro.
4578 (XCHARSET_TO_BYTE2_TABLE): New macro.
4579 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4581 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4582 don't use `ucs_to_*' tables.
4584 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4586 * text-coding.c (Fmake_coding_system): Don't set up
4587 `codesys->fixed.size'.
4588 (encode_coding_no_conversion): Use `if' instead of `switch'.
4590 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4592 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4594 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4595 (Fmake_charset): Modify for `make_charset'.
4596 (Fmake_reverse_direction_charset): Likewise.
4597 (complex_vars_of_mule_charset): Likewise.
4599 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4601 * text-coding.c (char_encode_shift_jis): Use table
4602 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4604 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4606 * text-coding.c (text_encode_generic): Use `if' instead of
4608 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4611 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4613 * text-coding.c (encode_coding_sjis): Deleted.
4614 (char_encode_shift_jis): New function.
4615 (char_finish_shift_jis): New function.
4616 (reset_encoding_stream): Set up `encode_char' and `finish' for
4617 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4618 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4619 (char_encode_utf8): Treat `eol_type'.
4621 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4623 * file-coding.c (decode_coding_iso2022): Use
4624 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4626 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4628 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4631 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4633 * char-lb.h (CHAR_COLUMNS): New macro.
4635 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4637 * text-coding.c (char_encode_ucs4): New function.
4638 (char_finish_ucs4): New function.
4639 (encode_coding_ucs4): Deleted.
4640 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4641 (text_encode_generic): Delete local variable `charset' and `half'.
4642 (ucs_to_mule_table): Deleted.
4643 (mule_to_ucs_table): Deleted.
4644 (Fset_ucs_char): Deleted.
4645 (ucs_to_char): Deleted.
4646 (Fucs_char): Deleted.
4647 (Fset_char_ucs): Deleted.
4648 (Fchar_ucs): Deleted.
4649 (decode_ucs4): Deleted.
4650 (mule_char_to_ucs4): Deleted.
4651 (encode_ucs4): Deleted.
4652 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4653 (decode_coding_utf8): Likewise.
4654 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4655 (char_encode_iso2022): Fixed.
4656 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4657 `Fset_char_ucs' and `Fchar_ucs'.
4658 (complex_vars_of_file_coding): Don't initialize
4659 `ucs_to_mule_table'.
4661 * objects-tty.c (tty_initialize_font_instance): Don't use
4664 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4667 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4668 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4670 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4671 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4672 (emchar_string_displayed_columns): Likewise.
4674 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4675 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4676 (string_column_at_point): Likewise.
4677 (Fmove_to_column): Likewise.
4679 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4680 `encoding_table' and `decoding_table'.
4681 (CHARSET_REP_BYTES): Deleted.
4682 (XCHARSET_REP_BYTES): Deleted.
4683 (XCHARSET_COLUMNS): Deleted.
4684 (CHAR_COLUMNS): New macro.
4685 (lookup_composite_char): Deleted unconditionally.
4686 (composite_char_string): Likewise.
4688 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4690 * char-ucs.h (Emchar_to_byte_table): New type.
4691 (get_byte_from_character_table): New function interface.
4692 (Vcharset_latin_jisx0201): New variable.
4693 (latin_jisx0201_to_ucs): New variable.
4694 (ucs_to_latin_jisx0201): New variable.
4695 (Vcharset_latin_iso8859_2): New variable.
4696 (latin_iso8859_2_to_ucs): New variable.
4697 (ucs_to_latin_iso8859_2): New variable.
4698 (Vcharset_latin_iso8859_3): New variable.
4699 (latin_iso8859_3_to_ucs): New variable.
4700 (ucs_to_latin_iso8859_3): New variable.
4701 (Vcharset_latin_iso8859_4): New variable.
4702 (latin_iso8859_4_to_ucs): New variable.
4703 (ucs_to_latin_iso8859_4): New variable.
4704 (Vcharset_latin_iso8859_9): New variable.
4705 (latin_iso8859_9_to_ucs): New variable.
4706 (ucs_to_latin_iso8859_9): New variable.
4707 (Vcharset_latin_viscii_lower): New variable.
4708 (latin_viscii_lower_to_ucs): New variable.
4709 (ucs_to_latin_viscii_lower): New variable.
4710 (Vcharset_latin_viscii_upper): New variable.
4711 (latin_viscii_upper_to_ucs): New variable.
4712 (ucs_to_latin_viscii_upper): New variable.
4713 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4714 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4715 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4716 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4717 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4718 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4719 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4720 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4721 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4722 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4724 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4725 (Vcharset_latin_viscii_upper): New variable.
4726 (make_byte_from_character_table): New function.
4727 (put_byte_from_character_table): New function.
4728 (get_byte_from_character_table): New function.
4729 (CHAR96): New macro.
4730 (ucs_to_latin_jisx0201): New variable.
4731 (latin_jisx0201_to_ucs): New variable.
4732 (ucs_to_latin_iso8859_2): New variable.
4733 (latin_iso8859_2_to_ucs): New variable.
4734 (ucs_to_latin_iso8859_3): New variable.
4735 (latin_iso8859_3_to_ucs): New variable.
4736 (ucs_to_latin_iso8859_4): New variable.
4737 (latin_iso8859_4_to_ucs): New variable.
4738 (ucs_to_latin_iso8859_9): New variable.
4739 (latin_iso8859_9_to_ucs): New variable.
4740 (ucs_to_latin_viscii_lower): New variable.
4741 (latin_viscii_lower_to_ucs): New variable.
4742 (ucs_to_latin_viscii_upper): New variable.
4743 (latin_viscii_upper_to_ucs): New variable.
4744 (ucs_to_latin_tcvn5712): New variable.
4745 (latin_tcvn5712_to_ucs): New variable.
4746 (Qlatin_viscii_lower): New variable.
4747 (Qlatin_viscii_upper): New variable.
4748 (syms_of_mule_charset): Set up new symbol
4749 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4750 (complex_vars_of_mule_charset): Set up new charset
4751 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4752 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4753 `ucs_to_<CHARSET>' tables.
4755 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
4757 * text-coding.c: New file.
4759 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4761 * mule-charset.c (Fmake_char): Fix problem of 256-set.
4763 * char-ucs.h (Vcharset_ucs_bmp): New variable.
4764 (MAKE_CHAR): Modify for `ucs-bmp'.
4765 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4766 non-MULE characters of BMP.
4768 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
4770 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4773 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
4776 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4777 - Include character.h for `CHAR_ASCII_P'.
4779 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4781 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4782 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4784 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4785 (BYTE_C0_P): Likewise.
4786 (BYTE_C1_P): Likewise.
4787 (Lstream_get_emchar_1): Likewise.
4788 (Lstream_fput_emchar): Likewise.
4789 (Lstream_funget_emchar): Likewise.
4790 (copy_internal_to_external): Likewise.
4791 (copy_external_to_internal): Likewise.
4793 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4794 (BYTE_C0_P): Likewise.
4795 (BYTE_C1_P): Likewise.
4796 (Lstream_get_emchar_1): Likewise.
4797 (Lstream_fput_emchar): Likewise.
4798 (Lstream_funget_emchar): Likewise.
4799 (copy_internal_to_external): Likewise.
4800 (copy_external_to_internal): Likewise.
4802 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4803 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4805 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4806 (BYTE_ASCII_P): Moved to mb-1byte.h.
4808 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
4810 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4812 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4813 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4814 (VALID_CHARPTR_P): Moved to mb-*byte.h.
4815 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4816 (VALIDATE_CHARPTR_FORWARD): Likewise.
4817 (simple_charptr_emchar): Moved to mb-multibyte.h.
4818 (simple_set_charptr_emchar): Likewise.
4819 (simple_charptr_copy_char): Likewise.
4820 (non_ascii_charptr_emchar): Likewise.
4821 (non_ascii_set_charptr_emchar): Likewise.
4822 (non_ascii_charptr_copy_char): Likewise.
4823 (charptr_emchar): Moved to mb-*byte.h.
4824 (set_charptr_emchar): Likewise.
4825 (charptr_copy_char): Likewise.
4827 * mb-1byte.h, mb-multibyte.h: New files.
4829 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
4831 * mb-utf-8.h (MULTIBYTE): New macro.
4832 (MAX_EMCHAR_LEN): Moved from buffer.h.
4833 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4835 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4837 * mb-lb.h, multibyte.h: New files.
4839 * char-1byte.h (Charset_ID): Moved from buffer.h.
4840 (MIN_LEADING_BYTE): Likewise.
4841 (LEADING_BYTE_ASCII): Likewise.
4842 (NUM_LEADING_BYTES): Likewise.
4843 (CHARSETP): Likewise.
4844 (CHARSET_BY_LEADING_BYTE): Likewise.
4845 (XCHARSET_LEADING_BYTE): Likewise.
4846 (XCHARSET_GRAPHIC): Likewise.
4847 (XCHARSET_COLUMNS): Likewise.
4848 (XCHARSET_DIMENSION): Likewise.
4849 (CHAR_CHARSET): Likewise.
4850 (CHAR_LEADING_BYTE): Likewise.
4851 (BREAKUP_CHAR): Likewise.
4852 (Vcharset_ascii): Likewise.
4854 * buffer.h: Include multibyte.h unconditionally.
4855 (VALID_CHARPTR_P): Moved to multibyte.h.
4856 (ASSERT_VALID_CHARPTR): Likewise.
4857 (REAL_INC_CHARPTR): Likewise.
4858 (REAL_INC_CHARBYTIND): Likewise.
4859 (REAL_DEC_CHARPTR): Likewise.
4860 (INC_CHARPTR): Likewise.
4861 (INC_CHARBYTIND): Likewise.
4862 (DEC_CHARPTR): Likewise.
4863 (VALIDATE_CHARPTR_BACKWARD): Likewise.
4864 (VALIDATE_CHARPTR_FORWARD): Likewise.
4865 (charptr_n_addr): Likewise.
4866 (MAX_EMCHAR_LEN): Moved to mb-*.h.
4867 (simple_charptr_emchar): Moved to 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): Likewise.
4874 (set_charptr_emchar): Likewise.
4875 (charptr_copy_char): Likewise.
4876 (charptr_emchar_n): Likewise.
4877 (Charset_ID): Moved to char-1byte.h.
4878 (Vcharset_ascii): Likewise.
4879 (CHAR_CHARSET): Likewise.
4880 (CHAR_LEADING_BYTE): Likewise.
4881 (LEADING_BYTE_ASCII): Likewise.
4882 (NUM_LEADING_BYTES): Likewise.
4883 (MIN_LEADING_BYTE): Likewise.
4884 (CHARSETP): Likewise.
4885 (CHARSET_BY_LEADING_BYTE): Likewise.
4886 (XCHARSET_LEADING_BYTE): Likewise.
4887 (XCHARSET_GRAPHIC): Likewise.
4888 (XCHARSET_COLUMNS): Likewise.
4889 (XCHARSET_DIMENSION): Likewise.
4890 (BREAKUP_CHAR): Likewise.
4892 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4894 * character.h: Add document about interface for characters.
4896 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4897 (MAKE_CHAR): Delete comment about
4898 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4899 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4900 (BREAKUP_CHAR): Modify name of arguments.
4901 (CHAR_CHARSET): Modify name of argument.
4903 * buffer.h: Delete document about Emchar accessors.
4905 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4907 * character.h (CHAR_INTP): Moved from buffer.h
4908 (CHAR_OR_CHAR_INTP): Likewise.
4909 (XCHAR_OR_CHAR_INT): Likewise.
4910 (CHECK_CHAR_COERCE_INT): Likewise.
4912 * buffer.h (CHAR_INTP): Moved to character.h
4913 (CHAR_OR_CHAR_INTP): Likewise.
4914 (XCHAR_OR_CHAR_INT): Likewise.
4915 (CHECK_CHAR_COERCE_INT): Likewise.
4917 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4920 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4921 - Include char-1byte.h, char-lb.h or char-ucs.h.
4923 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4925 * buffer.h: Include character unconditionally.
4926 (valid_char_p): Moved to char-*.h.
4927 (non_ascii_valid_char_p): Moved to char-lb.h.
4929 * char-1byte.h, char-lb.h, char-ucs.h: New files.
4931 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4933 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4934 in UTF-2000 because it is not ported yet and not to use
4935 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4936 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4937 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4939 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4940 (CHAR_ASCII_P): Moved from character.h.
4942 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4943 (CHAR_ASCII_P): Likewise.
4944 (CHAR_FIELD1_MASK): Deleted.
4945 (CHAR_FIELD2_MASK): Deleted.
4946 (CHAR_FIELD3_MASK): Deleted.
4947 (MAX_CHAR_BASIC_LATIN): New macro.
4948 (CHAR_FIELD1): Deleted.
4949 (CHAR_FIELD2_INTERNAL): Deleted.
4950 (CHAR_FIELD3_INTERNAL): Deleted.
4951 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4952 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4953 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4954 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4955 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4956 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4957 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4958 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4959 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4960 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4961 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4962 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4963 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4964 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4965 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4966 (MIN_CHAR_COMPOSITION): Deleted.
4967 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4968 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4970 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
4972 * buffer.h: Include mb-utf-8.h in UTF-2000.
4974 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4976 * mb-utf-8.h: New file.
4978 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
4980 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4983 * mule-charset.h, buffer.h (Charset_ID): New type.
4985 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4987 * mule-canna.c (c2mu): Use `MAKE_CHAR',
4988 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4989 instead of `MULE_CHAR_PRIVATE_OFFSET',
4990 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4991 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4992 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4994 * character.h (Vcharset_japanese_jisx0212): New variable
4997 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4999 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5000 (charset_by_attributes): Delete array about direction.
5001 (latin_a_char_to_charset): New variable in UTF-2000.
5002 (latin_a_char_to_byte1): New variable in UTF-2000.
5003 (latin_a_char_to_byte2): New variable in UTF-2000.
5004 (Qucs_bmp): New variable.
5005 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5007 (next_allocated_2_byte_leading_byte): Likewise.
5008 (non_ascii_set_charptr_emchar): Likewise.
5009 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5010 `CHARSET_TYPE_256X256' in UTF-2000; modify for
5011 `charset_by_attributes'.
5012 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5013 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5014 and `CHARSET_BY_LEADING_BYTE'.
5015 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5016 `utf-2000-version' to `vars_of_mule_charset'.
5017 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5018 define `leading-code-private-11' in UTF-2000; move setting of
5019 `utf-2000-version' from `syms_of_mule_charset'.
5020 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5023 * character.h (Charset_ID): New type.
5024 (LEADING_BYTE_UCS_BMP): New macro.
5025 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5026 (CHARSET_ID_OFFSET_94): New macro.
5027 (MIN_CHARSET_ID_PRIVATE_94): New macro.
5028 (MAX_CHARSET_ID_PRIVATE_94): New macro.
5029 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5031 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5032 (LEADING_BYTE_LATIN_JISX0201): Likewise.
5033 (CHARSET_ID_OFFSET_96): New macro.
5034 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5035 CHARSET_ID_OFFSET_96 and final-byte.
5036 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5037 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5038 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5039 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5040 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5041 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5042 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5043 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5044 (LEADING_BYTE_THAI_TIS620): Likewise.
5045 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5046 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5047 (CHARSET_ID_OFFSET_94x94): New macro.
5048 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5049 CHARSET_ID_OFFSET_94x94 and final-byte.
5050 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5051 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5052 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5053 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5054 (LEADING_BYTE_CHINESE_GB2312): Likewise.
5055 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5056 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5057 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5058 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5059 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5060 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5061 (CHARSET_TYPE_128X128): New macro.
5062 (CHARSET_TYPE_256X256): New macro.
5063 (XCHARSET_PRIVATE_P): Delete unconditionally.
5064 (charset_by_attributes): Delete array about direction.
5065 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5066 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5067 (MIN_CHAR_94): New macro.
5068 (MAX_CHAR_94): New macro.
5069 (MIN_CHAR_96): New macro.
5070 (MAX_CHAR_96): New macro.
5071 (MIN_CHAR_94x94): New macro.
5072 (MAX_CHAR_94x94): New macro.
5073 (MIN_CHAR_96x96): New macro.
5074 (MAX_CHAR_96x96): New macro.
5075 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5076 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5077 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5079 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5080 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5081 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5082 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5083 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5084 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5085 `XCHARSET_LEADING_BYTE' to make code-point.
5086 (latin_a_char_to_charset): New variable.
5087 (latin_a_char_to_byte1): New variable.
5088 (latin_a_char_to_byte2): New variable.
5089 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5090 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5091 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5093 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5094 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5095 (find_charsets_in_emchar_string): Likewise.
5096 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5098 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5100 (decode_coding_iso2022): Likewise.
5102 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5105 * redisplay.c (redisplay_text_width_emchar_string): Use
5106 `Charset_ID' instead of `unsigned char'.
5107 (redisplay_frame_text_width_string): Likewise.
5109 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5112 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5113 instead of `unsigned char'.
5114 (face_cachel_charset_font_metric_info): Likewise.
5116 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5117 (get_non_ascii_char_table_value): Likewise.
5118 (get_char_table): Likewise.
5119 (put_char_table): Likewise.
5120 (map_over_other_charset): Likewise.
5121 (map_char_table): Likewise.
5123 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5124 instead of `unsigned char'.
5126 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
5128 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5129 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5131 * mule-charset.c (leading_code_private_11): Don't define in
5134 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5135 in UTF-2000 because it is not ported yet and not to use
5136 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5138 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
5140 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5142 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
5144 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5147 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5148 of unsigned char to store leading-byte.
5150 * chartab.c (get_non_ascii_char_table_value): Don't use
5151 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5153 * file-coding.c (encode_coding_big5): Delete bogus implementation
5156 * character.h (LEADING_BYTE_*): Delete definition for
5158 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5159 (LEADING_BYTE_PREFIX_P): Deleted.
5160 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5161 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5162 (BUFBYTE_LEADING_BYTE_P): Deleted.
5163 (CHARSET_PRIVATE_P): Deleted unconditionally.
5164 (rep_bytes_by_first_byte): Deleted unconditionally.
5165 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5166 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5167 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5168 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5169 (CHAR_FIELD2): Deleted.
5170 (CHAR_FIELD3): Deleted.
5171 (MAKE_CHAR): Delete definition for non-UTF-2000.
5172 (BREAKUP_CHAR_1_UNSAFE): Deleted.
5173 (breakup_char_1): New implementation.
5174 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5175 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5177 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
5179 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5182 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
5184 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5185 (CHARSET_PRIVATE_P): Likewise.
5186 (XCHARSET_PRIVATE_P): Likewise.
5187 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5189 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5191 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5193 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
5195 * character.h (LEADING_BYTE_*): Changed in UTF2000.
5196 (NUM_LEADING_BYTES): Changed from 128 to 256.
5197 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5198 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5200 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5202 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5204 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5205 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5206 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5207 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5208 (Qchinese_cns11643_3): New variable in UTF2000.
5209 (Qchinese_cns11643_4): New variable in UTF2000.
5210 (Qchinese_cns11643_5): New variable in UTF2000.
5211 (Qchinese_cns11643_6): New variable in UTF2000.
5212 (Qchinese_cns11643_7): New variable in UTF2000.
5213 (syms_of_mule_charset): Define `chinese-cns11643-3',
5214 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5215 and `chinese-cns11643-7' in UTF2000.
5216 (vars_of_mule_charset): Initialize
5217 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5219 (complex_vars_of_mule_charset): Setup charset
5220 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5221 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5223 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5225 * mule-charset.c: Move setting for `leading-code-private-11' from
5226 `syms_of_mule_charset' to `vars_of_mule_charset'.
5228 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5230 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5231 and `NUM_LEADING_BYTES' in assert.
5233 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5235 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5237 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5238 `NUM_LEADING_BYTES' instead of 128.
5240 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
5242 * mule-charset.h (charset_by_leading_byte): Use
5243 `NUM_LEADING_BYTES' instead of 128.
5244 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5246 * mule-charset.c (charset_by_leading_byte): Use
5247 `NUM_LEADING_BYTES' instead of 128.
5248 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5250 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5253 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
5255 * mule-charset.c (syms_of_mule_charset): Update to
5258 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5260 * file-coding.c (encode_coding_sjis): New implementation for
5261 UTF2000. (decode_coding_sjis): Ditto.
5263 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
5265 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5266 Don't define in UTF2000.
5268 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5271 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5272 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5275 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
5277 * config.h.in (CHAR_IS_UCS4): New macro.
5279 * mule-charset.c (rep_bytes_by_first_byte): Modify for
5280 conventional MULE representation.
5281 (syms_of_mule_charset): Update to 0.3 (Imamiya).
5283 * mule-charset.h: Reverted to original.
5285 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5286 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5287 "mule-charset.h" if CHAR_IS_UCS4 is defined.
5289 * character.h: New file.
5291 * file-coding.c (Fmake_coding_system): Set 1 to
5292 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5294 (encode_coding_no_conversion): New implementation for UTF2000.
5296 * file-coding.h (struct Lisp_Coding_System): Add new member
5299 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
5301 * file-coding.c (decode_coding_iso2022): Code-point arguments of
5302 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5303 (encode_coding_iso2022): New implementation for UTF2000.
5305 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5307 * mule-canna.c (c2mu): New implementation for UTF2000.
5310 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5312 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5314 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5316 * file-coding.c (reset_encoding_stream): Set 0 to
5317 `str->iso2022.current_char_boundary' in UTF2000.
5318 (encode_utf8): Don't define in UTF2000.
5319 (encode_coding_utf8): New implementation for UTF-8 representation
5321 (complex_vars_of_file_coding): Define coding-system `utf-8'.
5323 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5325 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5327 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5329 (REP_BYTES_BY_FIRST_BYTE): Likewise.
5331 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5333 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5334 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5335 as UTF-8 in UTF2000.
5336 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5337 (non_ascii_valid_char_p): Don't define in UTF2000.
5338 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5339 (Lstream_get_emchar_1): Likewise.
5340 (utf-2000-version): New variable in UTF2000.
5342 * lread.c (read_escape): Add new reader `u'.
5344 * insdel.c (three_to_one_table): Don't define in UTF2000.
5345 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5346 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5348 (bytind_to_bufpos_func): Likewise.
5349 (buffer_mule_signal_inserted_region): Likewise.
5350 (vars_of_insdel): Don't initialize `three_to_one_table'.
5351 (init_buffer_text): Use `buf->text->mule_size' instead of
5352 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5355 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5356 UTF-8 representation in UTF2000.
5357 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5358 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5359 (decode_coding_iso2022): Don't define local variable `lb' in
5360 UTF2000; don't use LEADING_BYTE in UTF2000; use
5361 `DECODE_ADD_UCS_CHAR' in UTF2000.
5362 (convert_to_external_format): Decode as UTF-8 in UTF2000.
5364 * config.h.in (UTF2000): New macro.
5366 * buffer.h (struct buffer_text): Add new member `mule_size' and
5367 don't add `mule_shifter' and `mule_three_p' in UTF2000.
5368 (valid_char_p): Return always 1 in UTF2000.
5369 (MAX_EMCHAR_LEN): 6 in UTF2000.
5370 (three_to_one_table): Don't define in UTF2000.
5371 (real_bufpos_to_bytind): Modify for UTF-8 representation in
5373 (real_bytind_to_bufpos): Likewise.
5375 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5377 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5379 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5380 representation change.
5381 (Vutf_2000_version): New variable.
5382 (leading_code_private_11): New variable.
5383 (syms_of_mule_charset): Add new variables `utf-2000-version' and
5384 `leading-code-private-11'.
5386 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5387 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5388 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5389 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5390 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5391 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5392 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5393 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5394 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5395 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5396 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5397 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5398 (MIN_CHAR_GREEK): New macro.
5399 (MAX_CHAR_GREEK): New macro.
5400 (MIN_CHAR_CYRILLIC): New macro.
5401 (MAX_CHAR_CYRILLIC): New macro.
5402 (MIN_CHAR_HEBREW): New macro.
5403 (MAX_CHAR_HEBREW): New macro.
5404 (MIN_CHAR_THAI): New macro.
5405 (MAX_CHAR_THAI): New macro.
5406 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5407 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5408 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5409 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5410 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5411 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5412 (CHAR_FIELD2): New inline function.
5413 (CHAR_FIELD3): New inline function.
5414 (MULE_CHAR_PRIVATE_OFFSET): New macro.
5415 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5416 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5417 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5418 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5419 (MIN_CHAR_COMPOSITION): Likewise.
5420 (CHAR_LEADING_BYTE): Modified for character representation change.
5421 (MAKE_CHAR): Likewise.
5423 * lisp.h (Vcharset_latin_iso8859_1): New variable.
5424 (Vcharset_greek_iso8859_7): Likewise.
5425 (Vcharset_cyrillic_iso8859_5): Likewise.
5426 (Vcharset_hebrew_iso8859_8): Likewise.
5427 (Vcharset_thai_tis620): Likewise.
5428 (Vcharset_katakana_jisx0201): Likewise.
5430 2004-02-02 Vin Shelton <acs@xemacs.org>
5432 * XEmacs 21.4.15 is released
5434 2004-01-30 Glynn Clements <glynn.clements@virgin.net>
5436 * device-x.c (x_error_handler): Don't call stderr_out
5438 2003-11-07 Katsumi Yamaoka <yamaoka@jpl.org>
5440 * buffer.c (other-buffer): Clarify documentation of order of
5441 arguments for FSF Emacs.
5443 2003-10-11 Olivier Galibert <galibert@pobox.com>
5445 * window.c (Fdelete_window): Dirty the mirror structure _before_
5446 marking the window deleted.
5448 2003-09-15 Jerry James <james@xemacs.org>
5450 * event-msw.c (debug_mswin_messages): Conditionally compile
5451 messages missing from the Cygwin headers.
5453 2003-06-16 Stephen J. Turnbull <stephen@xemacs.org>
5455 * data.c (eq_with_ebola_notice): Fix typo in comment.
5456 (Ftrue_list_p): Improve docstring.
5458 2003-10-13 Stephen J. Turnbull <stephen@xemacs.org>
5460 * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5462 2003-09-27 Stephen J. Turnbull <stephen@xemacs.org>
5464 * search.c (trivial_regexp_p): Regexps containing "\{" are
5465 nontrivial. Thanks to Manfred Bartz for reporting the bug and
5466 Stefan Monnier for suggesting a diagnosis.
5468 2003-09-25 Stephen J. Turnbull <stephen@xemacs.org>
5470 * elhash.c (make-hash-table): Clarify use of :test #'equal.
5472 2003-09-12 Stephen J. Turnbull <stephen@xemacs.org>
5474 * search.c (Fsearch_forward):
5476 Document negative count.
5478 2003-09-13 Stephen J. Turnbull <stephen@xemacs.org>
5480 * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5482 2003-09-13 Martin Buchholz <martin@xemacs.org>
5484 * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5486 2003-09-15 Vin Shelton <acs@xemacs.org>
5488 * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5491 2003-09-12 Yoshiki Hayashi <yoshiki@xemacs.org>
5493 * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5494 (re_search_2): Match the first byte of Bufbyte, not Emchar.
5495 (re_match_2_internal): Use TRANSLATE instead of
5496 TRANSLATE_EXTENDED_UNSAFE. The latter was a hack to bypass
5497 non-ASCII char case conversion.
5499 2003-09-08 Mike Sperber <mike@xemacs.org>
5501 * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5502 RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5504 2003-06-14 Ilya N. Golubev <gin@mo.msk.ru>
5506 * .gdbinit (pobj): fix printing of symbol name.
5508 2003-08-01 Ilya N. Golubev <gin@mo.msk.ru>
5510 * frame-x.c (x_layout_widgets): When resizing is about to cause
5511 frame size slip, mark it for redisplay.
5513 2003-08-18 Jerry James <james@xemacs.org>
5515 * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5517 2003-09-03 Vin Shelton <acs@xemacs.org>
5519 * XEmacs 21.4.14 is released
5521 2003-08-15 Stephen J. Turnbull <stephen@xemacs.org>
5523 * config.h.in (REGEX_MALLOC): Make it configure'able.
5525 2003-08-14 Andrew Begel <abegel@CS.Berkeley.EDU>
5527 * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5529 * sysdll.c (dll_init):
5530 * sysdll.c (dll_open):
5531 * sysdll.c (dll_close):
5532 * sysdll.c (dll_function):
5533 * sysdll.c (dll_variable):
5534 * sysdll.c (dll_error):
5535 Add support for loading bundles using Darwin/MacOSX
5538 2003-08-12 Stephen J. Turnbull <stephen@xemacs.org>
5540 * process.c (start-process-internal): Document coding systems.
5542 2003-07-30 Jerry James <james@xemacs.org>
5544 * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5546 2003-07-31 René Kyllingstad <listmailxemacs@kyllingstad.com>
5548 * event-msw.c (mswindows_enqueue_mouse_button_event):
5549 * event-msw.c (mswindows_wnd_proc):
5550 enqueue button event when scrollwheel event isn't handled by
5551 mswindows_handle_mousewheel_event, such as when the scrollbars
5554 2003-07-29 Stephen J. Turnbull <stephen@xemacs.org>
5556 * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5558 2003-03-24 Stephen J. Turnbull <stephen@xemacs.org>
5560 * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5562 2003-03-21 Stephen J. Turnbull <stephen@xemacs.org>
5564 * regex.c (re_match_2_internal): Fix matching degenerate word
5567 2003-05-25 XEmacs Build Bot <builds@cvs.xemacs.org>
5569 * XEmacs 21.4.13 is released
5571 2003-03-20 Stephen J. Turnbull <stephen@xemacs.org>
5573 * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H):
5574 * lisp.h (<inttypes.h>):
5575 Cygwin defines these types in <cygwin/types.h>. Don't duplicate
5578 2003-03-15 Martin Buchholz <martin@xemacs.org>
5580 * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5581 Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5582 Result: "temacs can only be run in -batch mode."
5583 Fix: Check xemacs executable candidate for directory-ness.
5585 2003-03-03 Robert Pluim <rpluim@bigfoot.com>
5587 * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5588 they conflict with <sys/types.h>.
5590 2003-02-14 Martin Buchholz <martin@xemacs.org>
5592 * database.c: Berkeley DB wants __STDC__ to be defined.
5594 2003-02-13 Martin Buchholz <martin@xemacs.org>
5596 * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5598 2003-02-01 Martin Buchholz <martin@xemacs.org>
5600 * process-unix.c (unix_send_process): Fix C++ compile error.
5602 2003-02-25 Andrew Begel <abegel@cs.berkeley.edu>
5604 * Added .dylib as an acceptable shared library file extension
5605 * to support MacOSX.
5607 2003-02-01 Martin Buchholz <martin@xemacs.org>
5609 * EmacsFrameP.h (EmacsFramePart):
5610 Kludge to allow compiling with Motif1, but linking with Motif2.
5612 2003-01-28 Martin Buchholz <martin@xemacs.org>
5614 * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5617 2003-02-23 Stephen J. Turnbull <stephen@xemacs.org>
5619 * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5621 2003-02-06 Andrew Begel <abegel@CS.Berkeley.EDU>
5623 * sysdll.c: Included lisp.h to define needed alloca_array.
5625 2003-02-13 Martin Buchholz <martin@xemacs.org>
5627 Make XEmacs redisplay 10 times faster.
5628 If, that is, you're using a slow X connection and MoveOpaque.
5629 Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5630 Use compress_motion = TRUE.
5631 * EmacsFrame.c (emacsFrameClassRec):
5632 * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5633 * EmacsManager.c (emacsManagerClassRec):
5634 * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5636 2003-01-30 Vin Shelton <acs@xemacs.org>
5638 * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5640 2003-01-17 Stephen J. Turnbull <stephen@xemacs.org>
5642 * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5643 Patch by Martin Buchholz.
5645 2003-01-16 Stephen J. Turnbull <stephen@xemacs.org>
5647 * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5648 Thanks to icc for warning and Martin Buchholz for reporting.
5650 2003-01-29 Vin Shelton <acs@xemacs.org>
5652 Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5654 * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5655 remember to multiply by the element size.
5657 2003-01-15 Stephen J. Turnbull <stephen@xemacs.org>
5659 * XEmacs 21.4.12 "Portable Code" is released.
5661 2003-01-14 Sergey Okhapkin <sos@prospect.com.ru>
5663 * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5664 * s/cygwin.sc: new linker file.
5666 2003-01-14 Stephen J. Turnbull <stephen@xemacs.org>
5668 Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5670 * redisplay-x.c (x_output_string): Use X11-specified types.
5671 * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5672 * emacs.c (__free_hook): Use typeof with Intel compiler.
5673 * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5675 2003-01-08 Andy Piper <andy@xemacs.org>
5677 * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5678 reserve size during unexec().
5680 2003-01-07 Daiki Ueno <daiki@xemacs.org>
5682 * process-unix.c (unix_create_process): Don't let outchannel block.
5684 2003-01-05 Rick Rankin <rick_rankin@yahoo.com>
5686 * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5687 Needed for IsBadReadPtr().
5689 2003-01-03 Stephen J. Turnbull <stephen@xemacs.org>
5691 * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5693 2002-12-14 Ben Wing <ben@xemacs.org>
5695 * callint.c: Declaration error.
5697 * dumper.c (pdump_load): Warning fix.
5698 * process.c: GCPRO error.
5699 * glyphs.c (unmap_subwindow):
5700 * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5701 * event-stream.c (maybe_kbd_translate): Wrong argument to
5702 character_to_event().
5704 * alloc.c (garbage_collect_1):
5706 * emacs.c (debug_can_access_memory):
5707 * emacs.c (fatal_error_signal):
5708 * emacs.c (mswindows_handle_hardware_exceptions):
5711 * emacs.c (assert_failed):
5712 * emacs.c (syms_of_emacs):
5715 * print.c (std_handle_out_va):
5716 * print.c (write_string_to_stdio_stream):
5717 * print.c (write_fmt_string):
5718 * print.c (printing_badness):
5719 * print.c (printing_major_badness):
5720 * print.c (print_internal):
5721 * print.c (debug_print_no_newline):
5722 * print.c (debug_backtrace):
5723 Be more defensive in handling bad values when printing. Add code
5724 from trunk involving inhibit_non_essential_printing_operations.
5725 When going down or in debug_print(), don't do external conversion
5726 and such and try really, really hard when printing to avoid core
5727 dumping. Add force-debugging-signal, debug_break().
5729 2002-12-12 Stephen J. Turnbull <stephen@xemacs.org>
5731 * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5732 Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5734 2002-12-02 Greg Allen <greg_allen@westlb-systems.co.uk>
5736 * database.c: Fix open_database. Berkeley DB API has changed in
5737 4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5739 2002-11-26 Stephen J. Turnbull <stephen@xemacs.org>
5741 * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5743 2002-11-13 Stephen J. Turnbull <stephen@xemacs.org>
5745 * event-Xt.c (Xt_timeout):
5746 (Xt_timeout_callback):
5747 (emacs_Xt_add_timeout):
5748 (emacs_Xt_remove_timeout):
5749 (Xt_timeout_to_emacs_event):
5750 Turn completed_timeouts from a stack into a queue. Fixes
5751 deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5753 2002-11-07 Wolfram Gloger <wg@malloc.de>
5755 * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5756 * emacs.c (main): Assert that mmap'd allocation is disabled.
5758 2002-10-14 Andy Piper <andy@xemacs.org>
5760 * glyphs-widget.c (layout_query_geometry): add in fiddle
5761 factor. Include border text in width layout calculation.
5762 (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5764 2002-11-02 Stephen J. Turnbull <stephen@xemacs.org>
5766 * XEmacs 21.4.10 "Military Intelligence" is released.
5768 2002-10-17 Raymond Toy <toy@rtp.ericsson.se>
5770 * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was
5771 using the NAS private array SoundFileInfo that no longer exists in
5772 NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a
5773 and earlier. This is broken for some versions between 1.5a and
5776 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org>
5778 * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5780 * emacs.c (shut_down_emacs): Improve crash message.
5782 2002-10-09 Stephen J. Turnbull <stephen@xemacs.org>
5784 * file-coding.c (determine_real_coding_system): Check for coding
5785 cookie in first LINES_TO_CHECK lines (currently 2). Cater to
5786 shebangs and Python PEP 263.
5788 2002-10-08 Andy Piper <andy@xemacs.org>
5790 * glyphs-widget.c (layout_query_geometry): only resize dynamically
5791 if static sizes haven't been set.
5793 2002-08-30 Mike Alexander <mta@arbortext.com>
5795 * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5798 2002-10-03 Stephen J. Turnbull <stephen@xemacs.org>
5800 * callproc.c (child_setup): 21.4 doesn't have retry_close.
5802 2002-09-20 Mike Sperber <mike@xemacs.org>
5804 (This partially gets back my patch from 2002-07-20 without the
5806 * callproc.c (child_setup): Remove Ben's comment noting confusion
5807 over the file descriptors >= 3: close_process_descs() doesn't
5808 close those. Fix fd range to go up to MAXDESC-1 instead of 64.
5809 * process-unix.c (unix_create_process): Call
5810 begin_dont_check_for_quit to inhibit unwanted interaction (and
5811 thus breaking of X event synchronicity) in the child.
5813 2002-09-26 Golubev I. N. <gin@mo.msk.ru>
5815 * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5818 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu>
5820 * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5821 instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout,
5822 the xemacs process did not exit, but looped infinitely here. This
5825 2002-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5827 * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5828 (find_context): Improve comments.
5830 * regex.c (re_compile_fastmap): Gratuitous #ifdef comment fixes.
5831 (re_match_2): An XCHAR_TABLE operation was missing.
5833 Many of the following changes were inspired by Andy Piper's (now
5834 obsolete) patch to make syntax-table text property lookup optional.
5838 * syntax.h (top level): Document semantics of syntax flags.
5839 * syntax.c (comstr_start, Fforward_comment): Improve comments.
5840 * syntax.c, syntax.h (top level): Document syntax cache better in
5843 [Instrument syntax caching (temporary change)]
5845 * syntax.h (enum syntax_cache_statistics_functions, struct
5846 syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5847 SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5848 * syntax.c (scan_words, Fforward_comment, scan_lists,
5849 Fbackward_prefix_characters):
5850 * font-lock.c (find_context):
5851 Use them to instrument syntax caching.
5852 * syntax.c (struct syntax_cache_statistics, scs_statistics,
5853 syntax_cache_statistics_function_names): New type and variables.
5854 * syntax.c (update_syntax_cache): Update and report statistics.
5856 [Major syntax cache optimizations]
5858 syntax.c (lookup_syntax_properties): Default off.
5860 * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5861 * syntax.c (update_syntax_cache):
5862 Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5864 [Minor syntax cache optimizations and code clarifications]
5866 * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5867 SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5868 SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5869 SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5870 SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5871 (Code clarification.)
5873 * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5874 scan_lists): Compute code from syncode, use Boolean macros instead
5875 of redundant masking operations. (Code clarification; any decent
5876 compiler can do this optimization.)
5878 * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5881 * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5882 PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5883 use F*_single_property_change instead of F*_extent_change.
5884 Currently F*_single_property_change is _much_ less efficient.
5886 * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5887 * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT): Initialize
5888 syntax_cache.object properly, don't leave Qt or Qnil.
5889 (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5890 * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5891 tests for Qt or Qnil.
5893 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org>
5895 * redisplay.c (point_in_line_start_cache):
5896 * extents.c (print_extent_1):
5899 * extents.c (Fset_extent_property): Document `syntax-table' property.
5901 * extents.h (Fnext_single_property_change): EXFUN it.
5903 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
5905 * search.c (clear_unused_search_regs): New static function.
5909 Use it. Fixes "stale match data" bug reported by Martin Stjernholm.
5910 Minor clarifications in comments.
5912 * regex.c (re_match_2_internal): Ensure no stale submatches.
5914 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
5916 * event-Xt.c (enqueue_focus_event): Add missing prototype.
5918 2002-08-29 Jerry James <james@xemacs.org>
5920 * lisp.h: structrures -> structures.
5922 2002-06-03 Andy Piper <andy@xemacs.org>
5924 * frame.c (frame_conversion_internal): add conversion appropriate
5925 for setting frame dimensions in pixels.
5927 * console.h (struct console_methods): add device-specific widget
5930 * emacs.c (main_1): initialize glyph vars.
5932 * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5933 (handle_focus_event_2): new function. Allow focus to
5934 be set to a particular window and widget.
5935 (enqueue_focus_event): new function. Create a
5936 synthetic focus event.
5937 (emacs_Xt_handle_magic_event): call
5938 handle_focus_event_2.
5940 * frame.c (Fset_frame_pixel_height): new function. Allow
5941 pixel-based sizing. Does the right thing on character-oriented
5943 (Fset_frame_pixel_width): ditto.
5944 (Fset_frame_pixel_size): ditto.
5945 (syms_of_frame): declare.
5947 * general-slots.h: add :vertically-justify and
5948 :horizontally-justify.
5950 * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5951 (mswindows_widget_border_width): new function.
5952 (mswindows_combo_box_instantiate): set border widths.
5953 (console_type_create_glyphs_mswindows): declare.
5956 (check_valid_justification): allow vertical and horizontal
5958 (widget_border_width): new function. Call device methods.
5959 (widget_instance_border_width): ditto.
5960 (logical_unit_height): new function. Determine the height of a
5961 logical-unit. Logical units are intended to provide grid-like
5962 layout for subcontrols in a layout. If the layout is
5963 :vertically-justify top then subcontrols will be positioned on
5964 logical-unit boundaries, thus allowing adjacent subcontrols to
5966 (widget_logical_unit_height): ditto for widgets.
5967 (redisplay_widget): misc cleanup.
5968 (widget_spacing): new function. Call device specific
5969 methods. Intended to be the default gap between adjacent widgets.
5970 (widget_query_geometry): use new spacing functions to determine
5971 appropriate geometry.
5972 (initialize_widget_image_instance): initialize horizontal and
5973 vertical justification.
5974 (widget_instantiate): use logica-units where appropriate for
5975 sizing large widgets.
5976 (button_query_geometry): use widget_instance_border_width.
5977 (tree_view_query_geometry): ditto.
5978 (tab_control_query_geometry): ditto.
5979 (edit_field_query_geometry): new function.
5980 (layout_update): pick up :justify, :horizontally-justify and
5981 :vertically-justify none of which worked previously. :justify is
5982 used as a fallback for both horizontal and vertical justification.
5983 (layout_query_geometry): use logical units to size appropriately.
5984 (layout_layout): ditto.
5985 (Fwidget_logical_to_character_width): new function. Allow users to
5986 convert from logical units to characters so that frame sizes can
5987 be set appropriately.
5988 (Fwidget_logical_to_character_height): ditto.
5989 (syms_of_glyphs_widget): declare.
5990 (image_instantiator_edit_fields): add edit_field_query_geometry.
5991 (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5992 :horizontally-justify.
5993 (specifier_vars_of_glyphs_widget): new function. Declare
5994 Vwidget_border_width which is not yet used.
5996 * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5997 (x_widget_border_width): new function.
5998 (x_widget_instantiate): create a sensible name for widgets.
5999 (console_type_create_glyphs_x): declare x_widget_border_width.
6001 * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6002 (struct Lisp_Image_Instance): add :vertically-justify and
6003 :horizontally-justify.
6004 (LAYOUT_JUSTIFY_TOP): new.
6005 (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6006 (ROUND_UP): new macro. Round argument up to next integral
6009 * redisplay-output.c (redisplay_output_layout): misc formatting.
6011 * symsinit.h: declare specifier_vars_of_glyphs_widget.
6013 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
6015 * XEmacs 21.4.9 "Informed Management" is released.
6017 2002-08-19 Andy Piper <andy@xemacs.org>
6019 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6022 * realpath.c (xrealpath): normalize drive spec also so that dir
6023 sep chars are not mixed on cygwin.
6025 2002-08-06 Jerry James <james@xemacs.org>
6027 * window.c (Fsplit_window): Count only half of the divider width
6028 against the left window when splitting horizontally.
6030 2002-06-24 Andy Piper <andy@xemacs.org>
6032 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6033 toolbar was cleared.
6035 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6036 function. Split out from mswindows_output_frame_toolbars.
6037 (mswindows_output_frame_toolbars): move clear pieces to
6038 mswindows_output_frame_toolbars.
6040 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6041 out from gtk_output_frame_toolbars.
6042 (gtk_output_frame_toolbars): move clear pieces to
6043 gtk_clear_frame_toolbars.
6045 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6046 the frame is cleared. How this ever worked before is a mystery.
6047 (x_output_frame_toolbars): Only output toolbars.
6048 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6050 * gutter.c (update_gutter_geometry):
6051 Mark frame layout changed.
6052 (update_frame_gutter_geometry, update_frame_gutters):
6053 Respect frame_layout_changed.
6055 * console.h (struct console_methods): add
6056 clear_frame_toolbars_method.
6058 * redisplay.c (redisplay_frame): call
6059 update_frame_toolbars_geometry and re-order update_frame_toolbars.
6061 * toolbar.h: declare update_frame_toolbars_geometry.
6063 * toolbar.c (update_frame_toolbars_geometry): new function. Split
6064 out from update_frame_toolbars. Call clear_frame_toolbars.
6065 (update_frame_toolbars): only output, do not change geometry.
6067 * redisplay.c: add frame_layout_changed.
6069 * redisplay.h: add frame_layout_changed.
6070 (CLASS_RESET_CHANGED_FLAGS): set it.
6071 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6072 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6073 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6075 * device.h (struct device): add frame_layout_changed.
6076 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6078 * frame.h (struct frame): add frame_layout_changed.
6079 (MARK_FRAME_LAYOUT_CHANGED): new.
6081 2002-06-30 Mike Alexander <mta@arbortext.com>
6083 * event-msw.c (mswindows_need_event): Don't wait for a new message
6084 if the queue is not empty. Suggested by Paul Moore.
6086 2002-06-12 Andy Piper <andy@xemacs.org>
6088 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6089 for printing on accurately.
6091 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
6093 * event-msw.c (mswindows_wnd_proc): Add a handler for the
6094 WM_ACTIVATE message. Make sure that the frame is visible if the
6095 window is visible. This seemss to fix the problem where XEmacs
6096 appears to freeze after switching desktops with certain virtual
6098 (debug_output_mswin_message): Added code to output message
6099 parameters for WM_WINDOWPOSCHANGED,
6100 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6102 2002-05-25 Andy Piper <andy@xemacs.org>
6104 * select-x.c (vars_of_select_x): Fix docstring of
6105 x-selection-strict-motif-ownership
6107 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6109 * keymap.c (get_keymap):
6110 Add comment about do_autoload GCPROs own args.
6112 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6114 * bytecode.c (execute_optimized_program): check_opcode ifdef
6115 ERROR_CHECK_BYTE_CODE.
6117 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6119 Thanks to Ben Wing and Michael Sperber.
6121 * eval.c (Fcommand_execute):
6124 (Fmacroexpand_internal):
6125 (function_argcount):
6126 callint.c (Fcall_interactively):
6127 Add comment about do_autoload GCPROs own args.
6129 * (do_autoload): GCPRO both args as well as local Lisp_Object.
6131 * eval.c (Ffuncall): Extra braces to placate GCC.
6133 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
6135 * backtrace.h (grow_specpdl):
6137 * EmacsFrame.c (EmacsFrameSetValues):
6138 * eval.c (grow_specpdl):
6139 * ExternalShell.c (hack_event_masks_1):
6140 * glyphs-x.c (convert_EImage_to_XImage):
6141 (x_finalize_image_instance):
6142 * ralloc.c (page_size):
6144 * xgccache.c (gc_cache_hash):
6145 Fix unsigned comparison warnings.
6147 2002-07-29 Jerry James <james@xemacs.org>
6149 * lread.c (locate_file): Any nonnegative return value indicates
6150 success if MODE is nonnegative.
6152 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
6154 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6157 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
6159 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6161 * dumper.c (pdump_get_indirect_count):
6162 (pdump_scan_by_alignment):
6163 (pdump_dump_root_struct_ptrs):
6164 (pdump_dump_rtables):
6165 (pdump_dump_root_objects):
6167 * nas.c (WaveOpenDataForReading):
6168 * fns.c (print_bit_vector):
6169 * font-lock.c (SINGLE_SYNTAX_STYLE):
6170 * glyphs.c (check_for_ignored_expose):
6171 (find_matching_subwindow):
6173 * imgproc.c (get_histogram):
6174 * redisplay.c (point_in_line_start_cache):
6175 * redisplay-output.c (redisplay_unmap_subwindows):
6176 * symbols.c (defsymbol_massage_name_1):
6177 (defkeyword_massage_name):
6178 (deferror_massage_name_and_message):
6179 * redisplay-x.c (x_output_string):
6180 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6181 * frame.h (struct frame):
6182 * filelock.c (current_lock_owner):
6183 * doprnt.c (emacs_doprnt_1):
6184 * lisp.h (struct Lisp_Bit_Vector):
6188 2002-02-13 Ben Wing <ben@xemacs.org>
6190 * event-stream.c (reset_key_echo):
6191 * event-stream.c (reset_this_command_keys):
6192 * event-stream.c (execute_command_event):
6193 If console is dead as a result of C-x 5 0, then post-command stuff
6194 needs to be careful and do only non-console-specific stuff.
6196 2002-07-01 Mike Sperber <mike@xemacs.org>
6198 * process-unix.c (unix_send_process): Mark coding_outstream as
6199 non-open upon SIGPIPE.
6201 * event-stream.c (Fnext_event): Reorder switch cases to something
6204 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
6206 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6207 Don't bogusly reinitialize ascii_character property.
6209 2002-07-08 Mike Sperber <mike@xemacs.org>
6211 * process.c (Fstart_process_internal): Do error checking before we
6212 fork off the child, so the child can't muck with the state of the
6215 2002-07-08 Mike Sperber <mike@xemacs.org>
6217 * ralloc.c (init_ralloc): Allocate properly for pdump.
6219 2002-06-12 Andy Piper <andy@xemacs.org>
6221 * glyphs.c (query_string_geometry): check the string.
6223 * glyphs-widget.c (widget_logical_unit_height): cope with nil
6226 2002-06-17 Jerry James <james@xemacs.org>
6228 * sysdll.c: Remove RTLD_GLOBAL initialization.
6229 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6231 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
6233 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6235 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
6237 * sysdep.c (sys_rename): Make sys_rename work for the case where
6238 Windows rename sets errno to EACCES if target file exists.
6240 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
6242 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6243 Fix detection of metric units to work on Win95
6245 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
6247 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
6249 2002-04-25 Andy Piper <andy@xemacs.org>
6251 * redisplay.c (create_text_block): Remove extra comment trailer.
6253 2002-04-24 Andy Piper <andy@xemacs.org>
6255 * redisplay.c (create_text_block): Don't actually add propagation
6256 data if the line ends after we have added a glyph.
6258 2002-04-22 Andy Piper <andy@xemacs.org>
6260 * extents.c (extent_fragment_update): check for glyphs we have
6261 previously displayed.
6262 * extents.c (print_extent_1): warning removal.
6263 * extents.h: change prototype.
6264 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6265 widths correctly for wide glyphs.
6266 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6267 * redisplay.c (prop_type): add PROP_GLYPH.
6268 * redisplay.c (struct prop_block): add glyph type
6269 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6270 to the propagation data.
6271 * redisplay.c (create_text_block): if there is a glyph in the
6272 propagation data use it to salt extent_fragment_update.
6273 * redisplay.c (create_string_text_block): ditto.
6275 2002-04-13 Nix <nix@esperi.demon.co.uk>
6277 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6278 * redisplay-output.c (compare_runes): Compare them.
6279 * redisplay.c: Update copyright date.
6280 * redisplay.c (pos_data): Add need_baseline_computation field.
6281 * redisplay.c (add_glyph_rune): Update ascent, descent, and
6282 need_baseline_computation; zero yoffset. Set max_pixmap_height
6283 for all pixmaps, not just automatically positioned ones.
6284 * redisplay.c (calculate_yoffset): New, compute yoffset values.
6285 * redisplay.c (calculate_baseline): New, compute textual baseline.
6286 * redisplay.c (add_glyph_rune): Call them.
6287 * redisplay.c (create_text_block): Likewise.
6288 * redisplay.c (create_overlay_glyph_block): Likewise.
6289 * redisplay.c (add_margin_runes): Likewise.
6290 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6292 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6293 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6294 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6295 * redisplay-msw.c (mswindows_output_string): Likewise.
6296 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6297 * redisplay-gtk.c (gtk_output_display_block): Likewise.
6298 * redisplay-x.c (x_output_display_block): Likewise.
6300 2002-03-28 Ben Wing <ben@xemacs.org>
6302 * redisplay.c: Fixed bug in redisplay
6303 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6304 and down of the lines, since they're bigger than the line
6305 size. (It was seen most obviously when there's a horizontal scroll
6306 bar, e.g. do C-h a glyph or something like that.) The problem was
6307 that the glyph-contrib-p setting on glyphs was ignored even if it
6308 was set properly, which it wasn't until now.
6310 2002-04-24 Andy Piper <andy@xemacs.org>
6312 * lisp.h (Dynarr_end): Fix definition.
6314 2002-02-06 Adrian Aichner <adrian@xemacs.org>
6316 * redisplay.c (mark_redisplay): Remove call to
6317 update_frame_window_mirror.
6319 2001-11-15 Andy Piper <andy@xemacs.org>
6321 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6324 2002-02-13 Andy Piper <andy@xemacs.org>
6326 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6327 we did in fact enqueue the XM_MAPFRAME event.
6329 2002-01-15 Adrian Aichner <adrian@xemacs.org>
6331 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6332 to fix problem switching between virtual desktops under virtuawin
6333 virtual window manager.
6335 2001-07-30 Adrian Aichner <adrian@xemacs.org>
6337 * event-msw.c: Typo fix.
6338 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6339 magic XM_MAPFRAME event has been sent.
6341 2001-11-23 Andy Piper <andy@xemacs.org>
6343 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6345 2001-11-21 Andy Piper <andy@xemacs.org>
6347 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6348 mouse events outside the frame.
6350 2002-03-20 Andy Piper <andy@xemacs.org>
6352 * menubar-msw.c (mswindows_popup_menu): warning removal.
6353 * dialog-msw.c (dialog_popped_down): ditto.
6355 2001-12-11 Andy Piper <andy@xemacs.org>
6357 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6358 * dialog-msw.c (mswindows_make_dialog_box_internal): set
6360 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6361 * menubar-msw.c (mswindows_handle_wm_command): ditto.
6362 * menubar-msw.c (mswindows_popup_menu): ditto.
6364 2001-10-29 Andy Piper <andy@xemacs.org>
6366 * dialog-msw.c (handle_directory_dialog_box): quit if the user
6369 2002-01-03 Andy Piper <andy@xemacs.org>
6371 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6375 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
6377 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6378 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6379 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6380 Detect and handle case where machine is set up for metric units
6382 2002-04-02 Andy Piper <andy@xemacs.org>
6384 * dired-msw.c (mswindows_get_files):
6385 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6386 completely handled by XEmacs. Suggested by Thomas Vogler
6387 <mail@thomas-vogler.de>.
6389 2001-11-14 Andy Piper <andy@xemacs.org>
6391 * nt.c (REG_ROOT): change registry key to XEmacs.
6393 2002-04-27 Andy Piper <andy@xemacs.org>
6395 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6397 2002-04-26 Andy Piper <andy@xemacs.org>
6399 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6402 2002-03-14 Mike Alexander <mta@arbortext.com>
6404 * event-msw.c (mswindows_unwait_process): New, remove process from
6406 * process-nt.c (nt_finalize_process_data): Call
6407 mswindows_unwait_process
6408 * console-msw.h: Declare mswindows_unwait_process
6410 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
6412 * editfns.c (Fdecode_time):
6413 (Fformat_time_string):
6414 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
6415 (make_time): Warning elimination (change arg name).
6417 2001-11-24 Andy Piper <andy@xemacs.org>
6419 * window.c (Fsplit_window): Doc return type.
6421 2002-04-01 Andy Piper <andy@xemacs.org>
6423 * emacs.c (Fkill_emacs): Only output message box in interactive
6426 2002-04-26 Andy Piper <andy@xemacs.org>
6428 * config.h.in: pull in 21.5.x change to stop alloca warnings under
6431 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
6433 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
6436 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
6438 * XEmacs 21.4.8 "Honest Recruiter" is released.
6440 2002-05-07 Nix <nix@esperi.demon.co.uk>
6442 Supersedes 2002-04-17 patch.
6444 * process.h (PROCESS_LIVE_P): Use the process status as
6445 evidence of health, not the state of the input stream.
6446 (PROCESS_READABLE_P): Say if the process is readable
6447 from. (It may be dead nonetheless.)
6448 (CHECK_READABLE_PROCESS): Test for that condition.
6450 * process.c (create_process): Use PROCESS_READABLE_P.
6451 (read_process_output, set_process_filter): Likewise.
6453 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6454 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6456 This code is #if 0'd, this is not the time to add new functions:
6458 * process.c (Fprocess_readable_p): Report readability status.
6459 * process.c (Qprocess_readable_p): New, associated symbol...
6460 * process.c (syms_of_process): ... initialize it.
6462 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
6464 * XEmacs 21.4.7 "Economic Science" is released.
6466 2002-04-17 Nix <nix@esperi.demon.co.uk>
6468 * process.h (PROCESS_LIVE_P): Use the process status as
6469 evidence of health, not the state of the input stream.
6471 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
6473 * sysdep.c (sys_siglist): change "signum" to "signal"
6475 2001-04-21 Martin Buchholz <martin@xemacs.org>
6477 * s/darwin.h: New file.
6478 Thanks to Greg Parker <gparker@cs.stanford.edu>.
6480 2002-04-23 Andreas Jaeger <aj@suse.de>
6482 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6483 which use lib64 for 64-bit libs.
6484 (START_FILES): Likewise.
6486 2002-02-11 Mike Sperber <mike@xemacs.org>
6489 (x_IO_error_handler):
6490 (x_init_device): Temporarily keep device in static variable
6491 `device_being_initialized' so we can recover gracefully from
6492 internal XOpenDevice failure. (XOpenDevice is documented to
6493 return NULL on failure, but sometimes calls the IO error handler
6496 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
6498 * dired.c (Ffile_name_all_completions): Change documentation --
6499 remove reference to completion-ignored-extensions.
6500 * dired.c (vars_of_dired): Change documentation for
6501 completion-ignored-extensions -- remove reference to
6502 file-name-all-completions.
6504 2002-03-06 Jerry James <james@xemacs.org>
6506 * emodules.c (emodules_load): Fix multiple loading of same module.
6508 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
6509 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6510 RTLD_LAZY to avoid incorrect symbol binding when using nested
6511 shared libraries on Solaris.
6513 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
6515 * fileio.c (Ffind_file_name_handler): Improve docstring.
6517 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
6519 * fns.c (Fmapconcat): Improve docstring.
6521 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
6523 * device-gtk.c: Add prototype for
6524 emacs_gtk_selection_clear_event_handle.
6525 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6526 selection. Setup signal handler for "selection_clear_event"
6527 (emacs_gtk_selection_clear_event_handle).
6529 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6530 other applications owning the clipboard (based on
6531 x_handle_selection_clear).
6533 2001-12-23 William M. Perry <wmperry@gnu.org>
6535 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
6537 2002-01-04 Martin Buchholz <martin@xemacs.org>
6539 * keymap.c (define_key_alternate_name): Parenthesize EQ.
6541 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
6543 * XEmacs 21.4.6 "Common Lisp" is released.
6545 2001-12-16 Torsten Duwe <duwe@caldera.de>
6547 * search.c (Freplace_match): Add missing sub-expression functionality.
6549 * buffer.c (decode_buffer): Add a check for pointer type to
6550 decode_buffer, before gcc's CSE optimization reorders a
6551 dereference in front of the allow_string test.
6553 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
6555 * window.c (window_loop): Fix bug that sometimes prevented
6556 window_loop() from iterating across multiple devices. Also, at
6557 Ben's request, changed infloop-detecting code to abort() instead
6558 of silently terminating window_loop().
6560 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
6562 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6563 * editfns.c (make_time): New function.
6564 (Fencode_time): Use it instead of wasteful_word_to_lisp.
6565 * lisp.h (make_time): Prototype and comment it.
6566 * dired.c (wasteful_word_to_lisp): Deprecate.
6567 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6569 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
6571 * fileio.c (auto_save_1): Use current coding system, not
6574 2001-11-13 Ben Wing <ben@xemacs.org>
6577 * window.c (window_truncation_on):
6578 * window.c (syms_of_window):
6579 truncate-partial-width-windows should respect the buffer being
6580 displayed, like other redisplay vars.
6582 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
6584 * event-stream.c (Fread_key_sequence): save current buffer.
6586 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
6588 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6590 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
6592 * alloc.c (lcrecord_stats): Add space for types defined in modules.
6594 2001-10-26 Mike Alexander <mta@arbortext.com>
6596 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6598 2001-10-25 Andy Piper <andy@xemacs.org>
6601 * dialog-msw.c (handle_directory_proc): new function.
6602 (handle_directory_dialog_box): new fucntion.
6603 (handle_file_dialog_box): use new directory dialog support.
6604 (mswindows_make_dialog_box_internal): ditto.
6605 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6607 (mswindows_find_frame): make global.
6608 * fileio.c (Fexpand_file_name): build fix.
6609 * general-slots.h: add Qdirectory.
6610 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6612 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6613 cygwin not leaving win32 paths unchanged.
6614 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6615 cygwin runtime to do path conversion.
6616 (Fmswindows_shell_execute): fix cygwin handling of URLs.
6617 (syms_of_win32): add new function.
6618 * window.c (window_loop): build fix.
6620 2001-10-15 Andy Piper <andy@xemacs.org>
6622 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6624 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
6626 * XEmacs 21.4.5 "Civil Service" is released.
6628 2001-04-08 Danny Colascione <qtmstr@optonline.net>
6630 * glyphs-x.c: Force buffer-tab highlight update when moving the
6631 buffer, avoiding an ugly black border, used for keyboard focus
6632 indication, on a widget that can never have keyboard focus, the
6635 2001-08-30 Daiki Ueno <ueno@unixuser.org>
6637 * process-unix.c (unix_open_multicast_group): Remove too much
6638 conversion between host and network byte order.
6640 2001-09-10 Nix <nix@esperi.demon.co.uk>
6642 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6643 before replacing them.
6645 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6648 * src/window.c (undedicate_windows): Use it.
6649 * src/window.h: Add prototype.
6651 2001-09-17 Ben Wing <ben@xemacs.org>
6653 * fileio.c (normalize_filename):
6654 * fileio.c (Fexpand_file_name):
6655 Fix various C++ compile errors in Andy's recent code.
6657 * callint.c (Fcall_interactively):
6658 * editfns.c (Ftemp_directory):
6659 * editfns.c (Fuser_full_name):
6660 * emacs.c (argmatch):
6661 * lread.c (locate_file_map_suffixes):
6662 * redisplay-x.c (x_ring_bell):
6663 Fix sign-compare warnings.
6665 2001-09-08 Andy Piper <andy@xemacs.org>
6667 * fileio.c (normalize_filename): copied from nt.c
6668 * (Ffile_name_directory): enable win32 paths under cygwin.
6669 * (Ffile_name_nondirectory): ditto.
6670 * (directory_file_name): ditto.
6671 * (Fexpand_file_name): ditto.
6672 * (Ffile_truename): ditto.
6673 * (Fsubstitute_in_file_name): ditto.
6674 * (Ffile_name_absolute_p): ditto.
6675 * (Ffile_readable_p): ditto.
6677 2001-09-08 Andy Piper <andy@xemacs.org>
6679 * device-msw.c (mswindows_finish_init_device): remove dde
6681 * device-msw.c (mswindows_init_dde): factor out from
6682 mswindows_finish_init_device()
6683 * device-msw.c (init_mswindows_very_early): new function
6684 initialize but don't enable dde.
6685 * emacs.c (main_1): call init_mswindows_very_early.
6687 * event-msw.c (mswindows_dde_callback): only execute when we are
6689 * symsinit.h: declare init_mswindows_very_early.
6691 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6693 [sjt: This has been in 21.5 for months with no complaints.]
6695 * console.h (struct console_methods): Added flags member.
6696 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6697 (CONMETH_IMPL_FLAG):
6698 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6699 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6701 * device.c (window_system_pixelated_geometry): Use the above macros.
6703 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6704 implememntation flag.
6705 * device.h (DEVICE_DISPLAY_P): Use it.
6707 * frame.c (delete_frame_internal): Use the above macro.
6709 * redisplay.c (redisplay_device): Use it.
6710 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6711 (redisplay_frame): Ditto.
6713 * device-msw.c (mswindows_device_implementation_flags): Removed.
6714 (msprinter_device_implementation_flags): Removed.
6715 (console_type_create_device_mswindows): Removed references to
6716 implementation_flags methods, set implementation flags here.
6717 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6719 * device-gtk.c (gtk_device_implementation_flags): Removed method.
6720 (console_type_create_device_gtk): Removed method declaration.
6721 Added commented out statement which semantically matches the
6722 commented out statement in the above removed method.
6724 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
6726 The attached patch fixes a few warnings.
6728 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6729 * src/frame-gtk.c: guard against GNOME calls in GTK only
6730 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6731 * src/select-gtk.c: prototype lisp_to_time
6733 2001-06-08 Ben Wing <ben@xemacs.org>
6735 ------ gc-in-window-procedure fixes ------
6738 * alloc.c (struct post_gc_action):
6739 * alloc.c (register_post_gc_action):
6740 * alloc.c (run_post_gc_actions):
6741 * alloc.c (garbage_collect_1):
6742 Create "post-gc actions", to avoid those dreaded "GC during window
6743 procedure" problems.
6746 Abort, clean and simple, when GC in window procedure. We want
6747 to flush these puppies out.
6750 * glyphs-msw.c (finalize_destroy_window):
6751 * glyphs-msw.c (mswindows_finalize_image_instance):
6752 Use a post-gc action when destroying subwindows.
6755 Declare register_post_gc_action().
6758 * scrollbar-msw.c (unshow_that_mofo):
6759 Use a post-gc action when unshowing scrollbar windows, if in gc.
6761 * redisplay.c (mark_redisplay):
6762 Add comment about the utter evilness of what's going down here.
6764 ------ cygwin setitimer fixes ------
6766 * Makefile.in.in (sheap_objs):
6767 * Makefile.in.in (profile_objs):
6768 * Makefile.in.in (objs):
6769 Compile profile.c only when HAVE_SETITIMER.
6771 * nt.c (mswindows_sigset):
6772 * nt.c (mswindows_sighold):
6773 * nt.c (mswindows_sigrelse):
6774 * nt.c (mswindows_sigpause):
6775 * nt.c (mswindows_raise):
6776 * nt.c (close_file_data):
6780 Move setitimer() emulation to win32.c, because Cygwin needs it too.
6783 * profile.c (Fstart_profiling):
6784 * profile.c (Fstop_profiling):
6785 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
6786 instead of just plain setitimer().
6789 * signal.c (set_one_shot_timer):
6791 Define qxe_setitimer() as an encapsulation around setitimer() --
6792 call setitimer() directly unless Cygwin or MS Win, in which case
6793 we use our simulated version in win32.c.
6796 * systime.h (struct itimerval):
6797 * systime.h (ITIMER_REAL):
6798 Prototype mswindows_setitimer() and qxe_setitimer(). Long
6799 comment about "qxe" and the policy regarding encapsulation.
6802 * win32.c (setitimer_helper_proc):
6803 * win32.c (setitimer_helper_period):
6804 * win32.c (setitimer_helper):
6805 * win32.c (mswindows_setitimer):
6806 Move setitimer() emulation here, so Cygwin can use it.
6807 Rename a couple of functions and variables to be longer and more
6808 descriptive. In setitimer_helper_proc(), send the signal
6809 using either mswindows_raise() or (on Cygwin) kill(). If for
6810 some reason we are still getting lockups, we'll change the kill()
6811 to directly invoke the signal handlers.
6813 ------ windows shell fixes ------
6817 Comments about how these two files must die.
6819 * callproc.c (init_callproc):
6820 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6821 not just COMSPEC. (more correct and closer to FSF.) Don't
6822 force a value for SHELL into the environment. (Comments added
6823 to explain why not.)
6825 * nt.c (init_user_info):
6826 Don't shove a fabricated SHELL into the environment. See above.
6828 2001-06-01 Ben Wing <ben@xemacs.org>
6830 * Makefile.in.in (ldflags):
6831 eliminate that pesky "defaulting to 00401000" warning.
6835 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
6837 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6838 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6840 2001-04-24 Jerry James <james@xemacs.org>
6842 * faces.h: pass parameters to Fadd_spec_to_specifier in the
6845 2001-06-01 Ben Wing <ben@xemacs.org>
6847 * event-msw.c (debug_mswin_messages):
6848 conditionalize the messages that were causing compile errors.
6849 (if only macros could generate #ifdef statements ...)
6851 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
6853 * XEmacs 21.4.4 "Artificial Intelligence" is released.
6855 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
6857 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6859 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
6861 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6862 * process-unix.c (unix_canonicalize_host_name):
6863 sysdep.c (init_system_name):
6864 Use it to conditionally support IPv6 canonicalization.
6866 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
6869 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6871 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
6873 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6874 attempt is made to scroll when no scroll bar is available.
6876 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
6878 * input-method-motif.c (XIM_delete_frame): New callback.
6879 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
6880 got deleted from 21.4.3.)
6882 2001-06-01 Ben Wing <ben@xemacs.org>
6884 * nt.c (mswindows_utime):
6885 * nt.c (close_file_data):
6886 fix off-by-one-indirection error.
6888 2001-05-29 Adrian Aichner <adrian@xemacs.org>
6890 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
6891 because set_file_times() now takes Lisp_Object path, instead of
6893 * nt.c: Include buffer.h.
6894 * nt.c (convert_from_time_t): New.
6895 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
6896 not set mtime correctly.
6897 * nt.h: Declare mswindows_utime().
6898 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6899 path, instead of char*.
6900 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6902 2001-05-30 Ben Wing <ben@xemacs.org>
6906 (Stephen, just take all event-msw.c patches. This includes
6907 the "iconify" fix below.)
6910 * event-msw.c (mswindows_dequeue_dispatch_event):
6911 * event-msw.c (assert):
6912 * event-msw.c (emacs_mswindows_quit_p):
6913 * event-msw.c (debug_mswin_messages):
6914 * event-msw.c (debug_output_mswin_message):
6915 * event-msw.c (vars_of_event_mswindows):
6916 Fix yet more problems with C-g handling.
6917 Implement debug-mswindows-events.
6919 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6921 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6923 2001-05-23 Ben Wing <ben@xemacs.org>
6925 * event-msw.c (winsock_writer):
6926 * event-msw.c (winsock_closer):
6927 prior kludgy code was clobbering the buffer, thinking it was
6928 "unused" space to store an unneeded return value; instead, use
6929 the variable we've already got staring us in the face.
6931 2001-05-17 Andy Piper <andy@xemacs.org>
6933 * sysfile.h: don't assume that file attributes are boolean
6935 2001-05-23 Ben Wing <ben@xemacs.org>
6937 * device-msw.c (msprinter_init_device):
6938 signal an error rather than crash with an unavailable network
6939 printer (from Mike Alexander).
6942 * event-msw.c (struct winsock_stream):
6943 * event-msw.c (winsock_writer):
6944 * event-msw.c (winsock_closer):
6945 * event-msw.c (make_winsock_stream_1):
6946 cleanup headers. fix (hopefully) an error with data corruption
6947 when sending to a network connection.
6949 * fileio.c (Fexpand_file_name): Fix evil code that attempts
6950 to handle the ~user prefix by (a) always assuming we're referencing
6951 ourselves and not even verifying the user -- hence any file with
6952 a tilde as its first char is invalid! (b) if there wasn't a slash
6953 following the filename, the pointer was set *past* the end of
6954 file and we started reading from uninitialized memory. Now we
6955 simply treat these as files, always.
6957 * buffer.c (common_init_complex_vars_of_buffer): comment change.
6959 2001-05-19 Ben Wing <ben@xemacs.org>
6961 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6964 * process-nt.c (vars_of_process_nt):
6965 remove unused mswindows-quote-process-args. rec for 21.4.
6967 2001-05-12 Ben Wing <ben@xemacs.org>
6969 * event-msw.c (mswindows_dde_callback):
6970 * event-msw.c (mswindows_wnd_proc):
6971 eliminate cygwin warnings.
6973 2001-05-06 Ben Wing <ben@xemacs.org>
6977 * device-msw.c (print_dialog_worker):
6978 * device-msw.c (mswindows_handle_print_dialog_box):
6979 * device-msw.c (syms_of_device_mswindows):
6980 * dialog-msw.c (mswindows_make_dialog_box_internal):
6982 implement printing the selection when it's selected.
6984 2001-05-20 Drazen Kacar <dave@arsdigita.com>
6986 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6988 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
6990 * lisp.h (EMACS_INT_MAX): This should be one bit less since
6991 EMACS_INT is signed.
6993 2001-04-15 Michael Lausch <mla@1012surf.net>
6995 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6996 gtk_widget_request_size() to give scrollbar >0 width for
6999 2001-05-30 William M. Perry <wmperry@gnu.org>
7001 * event-gtk.c: Check for buttons as modifier keys.
7003 2001-05-25 Craig Lanning <CraigL@Knology.net>
7006 Properly find MinGW's <process.h> inside Cygwin's restructured
7007 include directories. Don't try to include <cygwin/version.h>
7008 since we are dropping support for MinGW in versions of Cygwin
7011 Drop support for MinGW in versions of Cygwin before b21.
7013 Properly find MinGW's <process.h> inside Cygwin's restructured
7014 include directories.
7016 Drop support for MinGW in versions of Cygwin before b21.
7018 Even though a.out.h is no longer detected by configure, allow
7019 MinGW to use it until we figure out how to do the job with Win32.
7021 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
7023 * syntax.c (find_start_of_comment):
7024 Fix `unbalanced parentheses' bug when dealing with mixed comment
7025 styles in c++/java/etc. mode
7027 2001-05-29 Mike Alexander <mta@arbortext.com>
7029 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7030 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7032 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
7034 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7036 2001-03-31 Mike Sperber <mike@xemacs.org>
7038 * search.c (Freplace_match): Support FSF-style specification of
7039 match subexpression when applied to a buffer.
7041 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
7043 * event-stream.c (is_scrollbar_event): add missing semicolon
7045 2001-05-22 Isaac Hollander <ysh@mindspring.com>
7047 * Makefile.in.in: Use TAR macro instead of hardcoding
7048 tar. Allows use of GNU tar instead of system tar
7050 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
7052 * event-stream.c (is_scrollbar_event): add missing semicolon
7054 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
7056 * XEmacs 21.4.3 "Academic Rigor" is released.
7058 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
7060 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7062 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
7064 * buffer.c (Vcase_fold_search): Remove obsolete
7065 comment about non ASCII case-fold-search. This
7066 bug has been fixed by case-table changes.
7068 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
7070 * event-msw.c: Restore include of events-mod.h.
7072 2001-04-22 zhaoway <zw@debian.org>
7074 * event-stream.c (is_scrollbar_event): Noop returning 0 if
7077 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
7079 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7081 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
7083 * mule-charset.c (Fmake_charset): Add missing else.
7085 2001-04-23 Ben Wing <ben@xemacs.org>
7087 * event-msw.c (FAKE_MOD_QUIT):
7088 * event-msw.c (mswindows_dequeue_dispatch_event):
7089 * event-msw.c (mswindows_wnd_proc):
7090 * event-msw.c (emacs_mswindows_quit_p):
7091 Get critical quit working.
7093 2001-05-05 Ben Wing <ben@xemacs.org>
7097 * device-msw.c (mswindows_get_default_margin):
7098 * frame-msw.c (mswindows_size_frame_internal):
7099 * frame-msw.c (msprinter_init_frame_1):
7100 * frame-msw.c (vars_of_frame_mswindows):
7101 Change top/bottom margin defaults to 0.5 inches.
7103 2001-05-01 Martin Buchholz <martin@xemacs.org>
7105 Fix link error with gcc 3.0 on Linux.
7106 * terminfo.c (UP): Remove.
7107 * terminfo.c (BC): Remove.
7108 * terminfo.c (PC): Remove.
7109 They weren't used, and in any case, these symbols should be
7110 defined in the *library*.
7112 2001-05-03 Martin Buchholz <martin@xemacs.org>
7114 * s/aix4.h: Fix crash with xlc -O3.
7115 Improve comment explaining how -O3 works.
7117 2001-04-15 Ben Wing <ben@xemacs.org>
7120 * event-stream.c (Fnext_event):
7121 * event-stream.c (is_scrollbar_event):
7122 * event-stream.c (execute_command_event):
7123 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7124 crash' problem. His fix introduces other problems. We filter
7125 out scrollbar events specifically, making them somewhat invisible
7126 to command-building, and not appearing in `this-command-keys'.
7127 More work is still needed (see comments in event-stream.c), but
7128 this fixes all the major problems.
7130 2001-04-20 Ben Wing <ben@xemacs.org>
7132 * .cvsignore: Added stuff for Windows.
7134 2001-04-28 Ben Wing <ben@xemacs.org>
7136 * buffer.c (Ferase_buffer):
7137 * editfns.c (buffer_insert1):
7138 * editfns.c (Finsert_before_markers):
7139 * editfns.c (Finsert_string):
7140 * editfns.c (Finsert_char):
7141 * editfns.c (Fdelete_region):
7142 * editfns.c (Fwiden):
7143 * editfns.c (Fnarrow_to_region):
7144 remove bogus lines setting zmacs_region_stays to 0.
7146 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
7148 * process-unix.c (unix_open_network_stream): If connect() fails
7149 invalidate file descriptor after closing it.
7151 2001-03-08 Mike Alexander <mta@arbortext.com>
7153 * event-msw.c (mswindows_need_event_in_modal_loop):
7154 Don't dispatch a message if we didn't get one.
7155 (mswindows_need_event):
7156 Terminate the correct process when one exits instead of the first
7157 one on Vprocess_list and look for process termination when in
7158 mswindows_protect_modal_loop.
7160 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
7162 * XEmacs 21.4.1 "Copyleft" is released.
7164 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
7166 * input-method-motif.c (XIM_delete_frame): New callback.
7167 (XIM_init_frame): Register it.
7169 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
7171 * XEmacs 21.4.0 "Solid Vapor" is released.
7173 2001-04-15 Ben Wing <ben@xemacs.org>
7175 * cmdloop.c (call_command_loop):
7176 Fix braino in bit-rotting code.
7178 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
7180 * extents.c (Fset_extent_endpoints): Force creation of extent info
7181 in buffer_or_string.
7183 * extents.c (process_extents_for_insertion_mapper): Correctly
7184 check for open-open zero-length extents.
7186 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
7188 * lisp.h: New typedefs Memory_count, Element_count.
7191 Sign-compare warning elimination: several unsigned -> signed.
7192 Based on work by Ben Wing <ben@xemacs.org>.
7194 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
7196 * XEmacs 21.2.47 "Zephir" is released.
7198 2001-04-02 Jan Vroonhof <jan@xemacs.org>
7200 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7202 2001-04-03 Mike Sperber <mike@xemacs.org>
7204 * search.c: Revert previous patch due because of release.
7206 2001-03-30 Ben Wing <ben@xemacs.org>
7209 Add missing killpg prototype.
7212 Add a comment about fixing problems when a new entry is added
7215 * frame-msw.c (mswindows_init_frame_1):
7216 Fix compile warnings.
7218 * menubar.c (vars_of_menubar):
7219 Provide `menu-accelerator-support' to indicate that we properly
7220 support %_ in menu specifications, so that package code can
7221 conditionalize on this (and remove %_ from menu specifications
7226 * scrollbar-msw.c (can_scroll):
7228 Fix handling of mouse wheel under Windows to follow standards --
7229 now scrolls window under pointer, not selected window.
7231 2001-03-31 Mike Sperber <mike@xemacs.org>
7233 * search.c (Freplace_match): Support FSF-style specification of
7234 match subexpression when applied to a buffer.
7236 2001-03-15 Martin Buchholz <martin@xemacs.org>
7238 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7239 function to modify KEYMAP, so map over a copy of the hash table.
7241 2001-03-21 Martin Buchholz <martin@xemacs.org>
7243 * XEmacs 21.2.46 "Urania" is released.
7245 2001-03-20 Dan Holmsand <dan@eyebee.com>
7247 * realpath.c (xrealpath): Make file-truename work with symlinks to
7248 /cygdrive paths on cygwin. Always lowercase drive-letters on
7250 (cygwin_readlink): Don't try to find canonical filename unless
7253 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
7255 * ChangeLog: Log GTK merge.
7261 Revert gratuitous whitespace changes from GTK merge.
7263 * emacs.c: Document end of complex #ifdef @ l. 1495.
7266 2001-03-12 Andy Piper <andy@xemacs.org>
7268 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7269 have to do likewise.
7271 2001-03-12 Andy Piper <andy@xemacs.org>
7273 * sysdep.c: we only support mingw now.
7275 2001-03-09 Andy Piper <andy@xemacs.org>
7277 * unexcw.c (copy_executable_and_dump_data_section): making approx
7278 overrun a warning only.
7280 2001-03-10 William M. Perry <wmperry@aventail.com>
7282 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7283 satisfy Stephen's identical-after-cpp plea.
7285 2001-03-02 Ben Wing <ben@xemacs.org>
7288 * cmds.c (Fforward_char):
7292 Augment documentation of the most common motion commands to make
7293 note of the shifted-motion support.
7295 2001-03-02 Ben Wing <ben@xemacs.org>
7297 * nt.c (mswindows_fstat):
7298 * nt.c (mswindows_stat):
7299 * search.c (boyer_moore):
7300 Fix compile warnings under Windows.
7302 * sysdep.c (sys_readdir):
7303 Fix buggy filename-conversion code under Mule.
7305 2001-03-09 William M. Perry <wmperry@aventail.com>
7327 * redisplay-output.c:
7333 The Great GTK Merge.
7340 * emacs-widget-accessors.c:
7354 * native-gtk-toolbar.c:
7365 The Great GTK Merge: new files.
7367 2001-02-26 Ben Wing <ben@xemacs.org>
7369 Reapplied Lstream change.
7371 2001-02-26 Ben Wing <ben@xemacs.org>
7373 Undid the last change, since it is more controversial than I
7374 thought. It should be back in at some point soon.
7376 2001-02-25 Ben Wing <ben@xemacs.org>
7379 * callproc.c (Fold_call_process_internal):
7380 * event-msw.c (ntpipe_slurp_reader):
7381 * event-msw.c (ntpipe_shove_writer):
7382 * event-msw.c (winsock_reader):
7383 * event-msw.c (winsock_writer):
7385 * file-coding.c (detect_eol_type):
7386 * file-coding.c (detect_coding_type):
7387 * file-coding.c (determine_real_coding_system):
7388 * file-coding.c (Fdetect_coding_region):
7389 * file-coding.c (decoding_reader):
7390 * file-coding.c (decoding_writer):
7391 * file-coding.c (mule_decode):
7392 * file-coding.c (Fdecode_coding_region):
7393 * file-coding.c (encoding_reader):
7394 * file-coding.c (encoding_writer):
7395 * file-coding.c (mule_encode):
7396 * file-coding.c (Fencode_coding_region):
7397 * file-coding.c (detect_coding_sjis):
7398 * file-coding.c (decode_coding_sjis):
7399 * file-coding.c (encode_coding_sjis):
7400 * file-coding.c (detect_coding_big5):
7401 * file-coding.c (decode_coding_big5):
7402 * file-coding.c (encode_coding_big5):
7403 * file-coding.c (detect_coding_ucs4):
7404 * file-coding.c (decode_coding_ucs4):
7405 * file-coding.c (encode_coding_ucs4):
7406 * file-coding.c (detect_coding_utf8):
7407 * file-coding.c (decode_coding_utf8):
7408 * file-coding.c (encode_coding_utf8):
7409 * file-coding.c (detect_coding_iso2022):
7410 * file-coding.c (decode_coding_iso2022):
7411 * file-coding.c (encode_coding_iso2022):
7412 * file-coding.c (decode_coding_no_conversion):
7413 * file-coding.c (encode_coding_no_conversion):
7414 * glyphs-x.c (write_lisp_string_to_temp_file):
7415 * gpmevent.c (tty_get_foreign_selection):
7418 * lstream.c (Lstream_flush_out):
7419 * lstream.c (Lstream_adding):
7420 * lstream.c (Lstream_write_1):
7421 * lstream.c (Lstream_write):
7422 * lstream.c (Lstream_raw_read):
7423 * lstream.c (Lstream_read_more):
7424 * lstream.c (Lstream_read):
7425 * lstream.c (Lstream_unread):
7426 * lstream.c (Lstream_fputc):
7427 * lstream.c (stdio_reader):
7428 * lstream.c (stdio_writer):
7429 * lstream.c (filedesc_reader):
7430 * lstream.c (filedesc_writer):
7431 * lstream.c (lisp_string_reader):
7432 * lstream.c (struct fixed_buffer_stream):
7433 * lstream.c (make_fixed_buffer_input_stream):
7434 * lstream.c (make_fixed_buffer_output_stream):
7435 * lstream.c (fixed_buffer_reader):
7436 * lstream.c (fixed_buffer_writer):
7437 * lstream.c (struct resizing_buffer_stream):
7438 * lstream.c (resizing_buffer_writer):
7439 * lstream.c (dynarr_writer):
7440 * lstream.c (lisp_buffer_reader):
7441 * lstream.c (lisp_buffer_writer):
7443 * lstream.h (lstream_implementation):
7444 * lstream.h (struct lstream):
7446 * process-nt.c (nt_send_process):
7447 * process-unix.c (unix_send_process):
7449 Correct Lstream lossage due to mixing of signed and unsigned
7450 quantities. All Lstream uses of size_t and ssize_t are now a
7451 single signed data type Lstream_data_count. This fixes problems
7452 under Windows with sending large quantities of data to a process,
7453 and may well fix other subtle bugs.
7455 2001-02-23 Martin Buchholz <martin@xemacs.org>
7457 * XEmacs 21.2.45 "Thelxepeia" is released.
7459 2001-02-21 Martin Buchholz <martin@xemacs.org>
7461 * lisp-union.h (XSETINT):
7464 Reverse previous change of 2001-02-06.
7466 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
7468 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7470 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7471 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7472 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7473 * regex.c (POS_AS_IN_BUFFER): removed
7474 * regex.c (re_search_2):
7475 * regex.c (re_match_2):
7476 Don't use an offset of 1 when calculating buffer positions, since
7477 `BI_BUF_BEGV' does it already.
7479 2001-02-18 Wim Dumon <wim@easics.be>
7481 * insdel.c (prepare_to_modify_buffer): Also check for
7482 supersession when clash-detection is enabled.
7484 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
7486 * regex.c (re_match_2_internal):
7487 Convert temp characters from 'const unsigned char' to 're_char'.
7488 Fix crashing bug with extended characters under mule.
7489 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7490 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7491 font-lock, pdump, and new syntax-table code.
7492 * syntax.c (find_start_of_comment):
7493 (find_end_of_comment):
7495 Fix crashing bugs involving moving beyond end of buffer.
7496 * syntax.c (find_start_of_comment):
7497 Fixed logic to allow proper detection of cases where the same
7498 character is used to end both a two-char comment start and a
7499 two-char comment end sequence. Fixes `(forward-comment -1)'.
7500 * syntax.c (find_start_of_comment):
7501 Return position just past last comment-end character for all cases
7502 (previously was only done for two-char comment-end sequences).
7503 * syntax.c (forward-comment):
7504 Take value returned from `find_end_of_comment', rather than
7506 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7507 Properly deal with BUFFERP (syntax_cache.object)
7509 2001-02-17 Martin Buchholz <martin@xemacs.org>
7511 * alloc.c (Fgarbage_collect):
7512 * alloc.c (make_bit_vector_from_byte_vector):
7513 -Wsign-compare-correctness.
7515 2001-02-16 Martin Buchholz <martin@xemacs.org>
7517 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7518 (XSETCHAR): Likewise.
7519 (XSETOBJ): Likewise.
7521 2001-02-15 Martin Buchholz <martin@xemacs.org>
7523 * mule-canna.c (canna-func-delete_previous):
7524 Rename to canna-func-delete-previous.
7526 2001-02-14 Martin Buchholz <martin@xemacs.org>
7528 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
7530 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
7532 * font-lock.c (find_context): Fix C++ compile errors introduced by
7535 2001-02-13 Martin Buchholz <martin@xemacs.org>
7537 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7538 pragma, but earlier ones barf on the same pragma.
7540 2001-02-06 Mike Sperber <mike@xemacs.org>
7542 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7543 `configure-mule-lisp-directory'.
7545 2001-02-12 Martin Buchholz <martin@xemacs.org>
7547 Make sure dump-id.c is compiled in the same way as other .c's.
7548 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7549 * dump-id.h: Remove.
7550 * emacs.c: Move dump-id.h into dumper.h.
7551 * dumper.h: Move dump-id.h into dumper.h.
7553 Use standard .c.o rule for building dump-id.o.
7554 Remove preprocessor flags from link command.
7555 Add dump-id.o to ${otherobjs} if PDUMP.
7557 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
7559 Port FSF 20.7 syntax table improvements.
7563 Fixups for new syntax table stuff.
7564 * dired.c: Include syntax.c.
7565 (Fdirectory_files): Initialize regex_match_object and
7567 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7568 and Fget_char_property.
7570 Use ported FSF 20.7 syntax table improvements.
7575 2001-02-09 Martin Buchholz <martin@xemacs.org>
7577 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7578 Unixware's enum boolean from sys/types.h.
7580 2001-02-10 Martin Buchholz <martin@xemacs.org>
7582 Fix support for building with latest Purify.
7583 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7584 (PURIFY_FLAGS): Likewise.
7586 2001-02-09 Martin Buchholz <martin@xemacs.org>
7588 * fileio.c (lisp_string_set_file_times): New.
7589 * fileio.c (Fcopy_file): Use it.
7591 (copy-file filename non-ascii-filename t t)
7592 ==> No such file or directory, non-ascii-filename
7594 2001-02-10 Martin Buchholz <martin@xemacs.org>
7596 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7597 USHRT_MAX seems clearer than ~0 anyways.
7599 2001-02-09 Martin Buchholz <martin@xemacs.org>
7601 dumper improvements. Inspired by Olivier.
7602 * dumper.c (pdump_max_align): New.
7603 * dumper.c (pdump_add_entry): Use pdump_max_align.
7604 * dumper.c (pdump_get_entry_list): Likewise.
7605 * dumper.c (pdump_scan_by_alignment): Likewise.
7606 Don't iterate through unnecessary alignments.
7607 * dumper.c (pdump_file_get): No need to align result of malloc().
7608 * dumper.c (pdump_mallocadr): Remove.
7609 The result of malloc() is guaranteed to be maximally aligned.
7610 * dumper.c: s/elmt/elt/g;
7611 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7612 * dumper.c (pdump_alert_undump_object): Likewise.
7613 * dumper.c (pdump_align_table):
7614 Don't support alignments > 64.
7615 Store ALIGNOF's, not shift counts, in table.
7617 2001-02-09 Martin Buchholz <martin@xemacs.org>
7619 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7620 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7621 * systime.h: Use HAVE_UTIME.
7622 * sysdep.c (struct utimbuf): Remove.
7623 * sysdep.c (set_file_times): Prefer utime() to utimes().
7624 * config.h.in (HAVE_UTIME): New.
7625 * config.h.in (HAVE_UTIME_H): Remove.
7626 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7628 2001-02-09 Martin Buchholz <martin@xemacs.org>
7630 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7632 2001-02-08 Martin Buchholz <martin@xemacs.org>
7634 * s/irix6-0.h: Use the standard system memmove, not bcopy.
7636 2001-02-08 Martin Buchholz <martin@xemacs.org>
7638 * XEmacs 21.2.44 "Thalia" is released.
7640 2001-02-06 Martin Buchholz <martin@xemacs.org>
7642 Fixes crashes in kill-emacs on some systems.
7643 * process-unix.c (unix_kill_child_process):
7644 It's OK for kill() to fail with ESRCH.
7646 2001-02-07 Martin Buchholz <martin@xemacs.org>
7648 Contortions to make .gdbinit tricks work on most systems.
7649 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7650 * alloc.c (dbg_valmask): Make non-const.
7651 * alloc.c (dbg_typemask): Make non-const.
7652 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7653 * alloc.c (dbg_valbits): Make non-const.
7654 * alloc.c (dbg_gctypebits): Make non-const.
7655 * .gdbinit (decode_object): Make it work with AIX cc.
7657 2001-02-06 Martin Buchholz <martin@xemacs.org>
7659 * elhash.c (make_general_lisp_hash_table):
7660 Use simpler and more efficient calloc to clear entries.
7662 2001-02-07 Martin Buchholz <martin@xemacs.org>
7664 * window.c (window_scroll): Work around an AIX C compiler bug.
7665 Fixes 'scroll-up' does nothing problem with xlC.
7667 2001-02-05 Martin Buchholz <martin@xemacs.org>
7669 * .gdbinit: Remove obsolete comment.
7671 2001-01-31 Mike Alexander <mta@arbortext.com>
7673 * select.c (Fown_selection_internal): Set owned_p for device
7676 2001-02-01 Martin Buchholz <martin@xemacs.org>
7679 "not" cannot be used as a macro name as it is an operator in C++
7680 * config.h.in: Stop #defining `not'.
7681 * chartab.c (check_category_char): not ==> not_p
7682 * chartab.h: Likewise.
7683 * regex.c (re_match_2_internal): Likewise.
7685 2001-02-02 Martin Buchholz <martin@xemacs.org>
7687 * lisp-disunion.h: Fix up comments.
7689 2001-01-31 Martin Buchholz <martin@xemacs.org>
7691 * keymap.c (define_key_check_and_coerce_keysym):
7693 Support mouse-6 and mouse-7 bindings in the obvious way.
7695 2001-02-01 Martin Buchholz <martin@xemacs.org>
7697 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7699 2001-01-30 Martin Buchholz <martin@xemacs.org>
7701 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7702 Previous patch missed DEFVAR_INT_MAGIC.
7703 Make sure future DEFVAR_foo use correct types.
7704 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7705 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7706 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7707 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7708 * (DEFVAR_INT): Likewise.
7709 * redisplay.c (vertical_clip): Should be of type Fixnum.
7710 * redisplay.c (horizontal_clip): Likewise.
7711 * lisp.h (dump_add_opaque_int): New.
7712 (dump_add_opaque_fixnum): New.
7714 2001-01-29 Andy Piper <andy@xemacs.org>
7716 * glyphs-widget.c (check_valid_int_or_function): allow symbols
7717 since they can be eval'ed
7719 2001-01-29 Martin Buchholz <martin@xemacs.org>
7721 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7722 Oops, XEmacs redefines `class'. Use `typename' instead.
7724 2001-01-28 Martin Buchholz <martin@xemacs.org>
7726 * dumper.c: Fix C++ compile errors.
7728 2001-01-29 Martin Buchholz <martin@xemacs.org>
7730 * tparam.c: Use correct prototypes.
7732 2001-01-28 Martin Buchholz <martin@xemacs.org>
7734 * sysproc.h: #include util.h for NetBSD's openpty.
7736 2001-01-27 Martin Buchholz <martin@xemacs.org>
7738 More 64-bit correctness.
7739 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7740 Use a typedef `fixnum' for the type used for DEFVAR_INT.
7742 This finally finishes the 64-bit SGI port.
7743 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7744 * symbols.c: Fix up comments and type casts.
7745 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7746 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7747 * symeval.h (Fixnum): New type.
7748 * symeval.h (symbol_value_type): Fix up comment.
7764 * mule-canna.c: A million DEFVAR_INTs here...
7765 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7778 s/int/Fixnum/g in DEFVAR_INT declarations.
7780 2001-01-26 Martin Buchholz <martin@xemacs.org>
7782 Port pdump to SGI alignment-sensitive environment.
7783 Lisp Object sizeof methods now return aligned sizes. Rely on that.
7784 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7786 Define and use aligned reading and writing macros.
7787 Use buffered stdio instead of posix i/o for faster dumping.
7788 Eliminate kludgy 256 byte space for header.
7789 Read and write from dump file using structs for alignment safety.
7790 * dumper.c (pdump_align_stream): New.
7791 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7792 * dumper.c (PDUMP_READ_ALIGNED): New.
7793 * dumper.c (PDUMP_WRITE_ALIGNED): New.
7794 * dumper.c (pdump_static_Lisp_Object): New struct.
7795 * dumper.c (pdump_static_pointer): New struct.
7796 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7797 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7798 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7799 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7801 * dumper.c (pdump_backtrace):
7802 * dumper.c (pdump_get_indirect_count):
7803 * dumper.c (pdump_register_object):
7804 * dumper.c (pdump_register_struct):
7805 * dumper.c (pdump_reloc_one):
7806 * dumper.c (pdump_scan_by_alignment):
7807 * dumper.c (pdump_dump_from_root_struct_ptrs):
7808 * dumper.c (pdump_dump_opaques):
7809 * dumper.c (pdump_dump_rtables):
7810 * dumper.c (pdump_dump_from_root_objects):
7812 * dumper.c (pdump_load_finish):
7813 Use aligned reading and writing.
7815 * dumper.c (pdump_free): Make static.
7816 * dumper.c (pdump_hFile): Likewise.
7817 * dumper.c (pdump_hMap): Likewise.
7819 2001-01-26 Martin Buchholz <martin@xemacs.org>
7821 * XEmacs 21.2.43 "Terspichore" is released.
7823 2001-01-25 Martin Buchholz <martin@xemacs.org>
7825 Type fiddling for window_config.saved_windows_count
7826 * window.c (struct window_config):
7827 Make saved_windows_count member unsigned.
7828 * window.c (sizeof_window_config_for_n_windows):
7829 Make parameter unsigned.
7830 * window.c (mark_window_config):
7831 * window.c (window_config_equal):
7832 * window.c (free_window_configuration):
7833 * window.c (Fset_window_configuration):
7834 * window.c (count_windows):
7835 * window.c (Fcurrent_window_configuration):
7836 * window.c (reinit_vars_of_window):
7837 Update all callers and users.
7839 2001-01-25 Martin Buchholz <martin@xemacs.org>
7841 Alignment correctness for flexible arrays.
7842 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7843 Make alignment-correct. Add interesting comments.
7844 * alloc.c (size_vector):
7845 * alloc.c (make_vector_internal):
7846 * alloc.c (make_bit_vector_internal):
7847 * alloc.c (sweep_bit_vectors_1):
7848 * fns.c (size_bit_vector):
7849 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7850 * window.c (sizeof_window_config_for_n_windows):
7851 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7853 2001-01-24 Martin Buchholz <martin@xemacs.org>
7855 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7857 2001-01-23 Andy Piper <andy@xemacs.org>
7859 * select.c (Fown_selection_internal): pass owned_p
7861 * select-msw.c (mswindows_own_selection): New Signature.
7863 * console.h (struct console_methods): add owned_p to
7866 * select-x.c (x_own_selection): pass owned_p
7867 (hack_motif_clipboard_selection): use owned_p
7868 (vars_of_select_x): new variable -
7869 x_selection_strict_motif_ownership.
7871 2001-01-23 Martin Buchholz <martin@xemacs.org>
7873 * specifier.h (specifier_data_offset): Remove pointless parens.
7874 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7876 2001-01-24 Martin Buchholz <martin@xemacs.org>
7878 Make Lisp_Object sizeof methods be alignment-correct.
7879 pdump must restore objects to the same alignment as the C compiler
7880 assumes. It really matters on SGIs.
7881 * lstream.c (aligned_sizeof_lstream): New.
7882 (sizeof_lstream): Use aligned_sizeof_lstream.
7883 (Lstream_new): Likewise.
7884 * opaque.c (aligned_sizeof_opaque): New.
7885 (sizeof_opaque): Use aligned_sizeof_opaque.
7886 (make_opaque): Likewise.
7887 * specifier.c (aligned_sizeof_specifier): New.
7888 (sizeof_specifier): Use aligned_sizeof_specifier.
7889 (make_specifier_internal): Likewise.
7891 2001-01-23 Martin Buchholz <martin@xemacs.org>
7893 * lstream.h (struct lstream): Use max_align_t for trailing data.
7894 * specifier.h (struct Lisp_Specifier): Likewise.
7896 2001-01-22 Martin Buchholz <martin@xemacs.org>
7898 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7899 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7900 (CCL_SUSPEND): Likewise.
7901 (CCL_INVALID_CMD): Likewise.
7902 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7903 (ccl_driver): Likewise.
7904 (CCL_WRITE_CHAR): Macro hygiene.
7905 (CCL_WRITE_STRING): Macro hygiene.
7907 2001-01-22 Martin Buchholz <martin@xemacs.org>
7909 Port "portable" dumper to SunOS 4 and HP-UX.
7910 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7911 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7912 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7914 2001-01-22 Martin Buchholz <martin@xemacs.org>
7916 * lisp.h (ALIGNOF): A better definition for C++.
7918 2001-01-20 Martin Buchholz <martin@xemacs.org>
7921 Fix printf warnings: int format, long int arg.
7922 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7923 (PUSH_FAILURE_POINT): Use correct printf formats.
7924 (POP_FAILURE_POINT): Use correct printf formats.
7925 Use do {...} while (0)
7927 2001-01-20 Martin Buchholz <martin@xemacs.org>
7929 * XEmacs 21.2.42 "Poseidon" is released.
7931 2001-01-20 Martin Buchholz <martin@xemacs.org>
7933 * console-x.h: typo fix du jour. Remove #if 0'ed code.
7935 2001-01-19 Martin Buchholz <martin@xemacs.org>
7937 De-kludgify FIXED_TYPE free list frobbing.
7938 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7939 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7940 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7941 * alloc.c (Lisp_Free): New pseudo lisp object definition.
7942 * alloc.c (LRECORD_FREE_P): New.
7943 * alloc.c (MARK_LRECORD_AS_FREE): New.
7944 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7945 * alloc.c (STRUCT_FREE_P): Deleted.
7946 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7947 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7948 * alloc.c (STRING_CHARS_FREE_P): New.
7949 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7950 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7951 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7952 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7953 * alloc.c (resize_string): Use new definitions.
7954 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7955 * alloc.c (verify_string_chars_integrity): Use new definitions.
7956 * alloc.c (compact_string_chars): Use new definitions.
7957 * alloc.c: Update monster comments.
7958 * lrecord.h (lrecord_type): Add some new lrecord types for
7961 2001-01-18 Martin Buchholz <martin@xemacs.org>
7963 Improve alignment hackery.
7964 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7965 (max_align_t): Moved from opaque.h - general purpose.
7966 (ALIGN_PTR): Use size_t, not long.
7967 * opaque.h (max_align_t): Move to lisp.h.
7969 2001-01-18 Norbert Koch <nk@LF.net>
7971 * gui.h: Fix and add prototypes to fix build problems.
7973 2001-01-18 Martin Buchholz <martin@xemacs.org>
7975 temacs is going away, so `dump-temacs' is now a bad name.
7976 * .dbxrc (dump-temacs): Rename to `dmp'.
7977 * .gdbinit (dump-temacs): Rename to `dmp'.
7979 2001-01-17 Andy Piper <andy@xemacs.org>
7981 * glyphs.c (print_image_instance): comment to make martin happy.
7983 * glyphs-x.c (x_redisplay_widget): update faces after a frame
7986 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7988 (mswindows_tab_control_redisplay): warning suppression.
7990 * glyphs-widget.c (widget_update): re-write to cope with updated
7992 (widget_instantiate): use new gui_item functions.
7993 (tab_control_update): deleted.
7994 (progress_gauge_update): deleted.
7995 (image_instantiator_progress_guage): take out update reference.
7996 (image_instantiator_tree_view): ditto.
7997 (image_instantiator_tab_control): ditto.
7999 * gui.c (widget_gui_parse_item_keywords): new function. Do things
8001 (gui_item_add_keyval_pair): re-write to cope with descriptors and
8002 return whether anything was changed.
8003 (update_gui_item_keywords): as it sounds.
8005 * gui.h: declare widget_gui_parse_item_keywords.
8007 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8008 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8010 2001-01-17 Martin Buchholz <martin@xemacs.org>
8012 * XEmacs 21.2.41 "Polyhymnia" is released.
8014 2001-01-16 Didier Verna <didier@xemacs.org>
8016 * glyphs.c (image_instantiate): don't use fallbacks when
8017 instantiating a face's background pixmap by inheritance.
8019 2001-01-14 Mike Sperber <mike@xemacs.org>
8021 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8022 Conditionalize accordingly.
8024 2001-01-16 Martin Buchholz <martin@xemacs.org>
8026 * dumper.c (pdump_file_get): Fix a compiler warning.
8028 2001-01-15 Martin Buchholz <martin@xemacs.org>
8030 Make Purify happy when pdumping.
8031 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8032 iniitalizing all bits of new lisp object memory.
8033 * symbols.c (Fmake_local_variable): Likewise.
8034 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8035 * symbols.c (Fdefvaralias): Likewise.
8036 * mule-charset.c (vars_of_mule_charset): Likewise.
8038 2001-01-15 Martin Buchholz <martin@xemacs.org>
8039 Add the `-nd' flag when running pre-dump operations under the debugger.
8040 * .dbxrc (run-temacs): Add `-nd'.
8041 * .dbxrc (update-elc): Likewise.
8042 * .dbxrc (dump-temacs): Likewise.
8043 * .gdbinit (run-temacs): Likewise.
8044 * .gdbinit (check-temacs): Likewise.
8045 * .gdbinit (update-elc): Likewise.
8046 * .gdbinit (dump-temacs): Likewise.
8048 2001-01-14 Martin Buchholz <martin@xemacs.org>
8050 Allow building 64-bit executables on AIX with GNU malloc, e.g.
8051 export OBJECT_MODE=64
8052 configure --pdump --use-union-type=no
8053 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8054 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8056 * miscplay.c (sndcnv8U_2mono):
8057 Avoid two uses of `++' in the same expression.
8058 Suppresses a GCC warning.
8060 2001-01-13 Martin Buchholz <martin@xemacs.org>
8062 Make sure future compilers don't miscompile alloc.c.
8064 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8065 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8067 2001-01-12 Martin Buchholz <martin@xemacs.org>
8069 * dumper.c: A little post-pdump-rename comment fixup.
8071 2001-01-09 Jerry James <james@eecs.ku.edu>
8073 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8075 2001-01-13 Martin Buchholz <martin@xemacs.org>
8077 * *.[ch]: Globally rename symbols using the following `pdump-rename'
8081 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8084 replace_symbol pdump_wire_lists pdump_weak_object_chains
8085 replace_symbol pdump_wire_list dump_add_weak_object_chain
8087 replace_symbol pdump_wires pdump_root_objects
8088 replace_symbol pdump_wire dump_add_root_object
8090 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8091 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8093 replace_symbol dumpstructinfos pdump_root_struct_ptrs
8094 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8095 replace_symbol dumpstructinfo pdump_root_struct_ptr
8096 replace_symbol dumpstruct dump_add_root_struct_ptr
8098 replace_symbol dumpopaque dump_add_opaque
8099 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8100 replace_symbol dumpopaqueinfos pdump_opaques
8101 replace_symbol dumpopaqueinfo pdump_opaque
8103 replace_symbol nb_structdump nb_root_struct_ptrs
8104 replace_symbol nb_opaquedump nb_opaques
8106 replace_symbol align_table pdump_align_table
8107 replace_symbol dump_header pdump_header
8109 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8110 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8113 2001-01-12 Martin Buchholz <martin@xemacs.org>
8115 * s/aix4.h: Keep the C for AIX compiler from overaggressively
8116 optimizing bytecount_to_charcount().
8118 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
8121 (HAVE_DLFCN_H): Removed.
8122 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8124 2001-01-06 Martin Buchholz <martin@xemacs.org>
8126 Portable dumper maintainability improvements.
8127 * alloc.c (staticpro):
8128 * alloc.c (staticpro_nodump):
8129 * alloc.c (garbage_collect_1):
8130 * alloc.c (reinit_alloc_once_early):
8131 * alloc.c (init_alloc_once_early):
8132 * alloc.c: Move dumper functions to alloc.c.
8133 * dumper.c (pdump_backtrace):
8134 * dumper.c (pdump_dump_structs):
8135 * dumper.c (pdump_dump_opaques):
8136 * dumper.c (pdump_dump_rtables):
8137 * dumper.c (pdump_dump_wired):
8139 * dumper.c (pdump_load_check):
8140 * dumper.c (pdump_load_finish):
8141 * dumper.c (pdump_file_unmap):
8142 * dumper.c (pdump_file_get):
8143 * dumper.c (pdump_resource_free):
8144 * dumper.c (pdump_resource_get):
8145 * dumper.c (pdump_file_free):
8146 * dumper.c (pdump_file_try):
8147 * dumper.c (pdump_load):
8148 Remove fixed size limits on staticpro(), staticpro_nodump(),
8149 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8150 Remove custom code for dumping lrecord_implementations_table - use
8152 Remove (most of the) custom code for dumping staticpros - dump it
8153 like any other dynarr.
8155 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
8156 * dumper.c: Moved functions from alloc.c.
8157 * alloc.c (dumpstruct): Moved to dumper.c.
8158 * alloc.c (dumpopaque): Likewise.
8159 * alloc.c (pdump_wire): Likewise.
8160 * alloc.c (pdump_wire_list): Likewise.
8162 * lisp.h (Dynarr_sizeof): New.
8163 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
8164 * lisp.h (Dynarr_end): New. Very slightly C++oid.
8165 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
8167 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8168 * lisp.h (dumpopaque): ditto.
8169 * lisp.h (pdump_wire): ditto.
8170 * lisp.h (pdump_wire_list): ditto.
8172 2001-01-09 Martin Buchholz <martin@xemacs.org>
8174 * make-src-depend (PrintPatternDeps):
8175 Use `sort' to make output independent of perl version.
8177 2001-01-08 Martin Buchholz <martin@xemacs.org>
8180 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8181 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8183 2001-01-03 Didier Verna <didier@xemacs.org>
8185 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8186 that `focus_frame' is alive before thinking of calling
8187 `redisplay_redraw_cursor' on it.
8189 2001-01-08 Martin Buchholz <martin@xemacs.org>
8191 * XEmacs 21.2.40 is released.
8193 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
8195 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8197 2001-01-06 Martin Buchholz <martin@xemacs.org>
8199 * alloc.c (dbg_valmask): Make const.
8200 * alloc.c (dbg_typemask): Make const.
8201 * alloc.c (dbg_USE_UNION_TYPE): Make const.
8202 * alloc.c (dbg_valbits): Make const.
8203 * alloc.c (dbg_gctypebits): Make const.
8205 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
8207 * redisplay-x.c (x_bevel_area):
8208 redisplay.h (struct rune):
8209 Typo fixes in comments.
8211 2001-01-05 Andy Piper <andy@xemacs.org>
8213 * glyphs-x.c (x_redisplay_widget): use size changed for offset
8216 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8218 2001-01-05 Martin Buchholz <martin@xemacs.org>
8220 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8222 * mule-ccl.c (stack_idx_of_map_multiple):
8223 Non const global data must not be initialized!
8224 Found by MIYASHITA Hisashi.
8226 2001-01-02 Andy Piper <andy@xemacs.org>
8228 * frame.c (change_frame_size): make sure frame size is always
8231 * glyphs.c (image_instance_layout): minor code reuse.
8233 * window.c (Fcurrent_window_configuration): revert previous
8236 2001-01-02 Martin Buchholz <martin@xemacs.org>
8239 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8241 2000-12-31 Andy Piper <andy@xemacs.org>
8243 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8244 when widget gets unmapped.
8246 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8247 function. Make sure widgets losing focus don't just drop it.
8248 (handle_focus_event_1): record the widget with focus.
8250 2000-12-31 Andy Piper <andy@xemacs.org>
8252 * window.c (allocate_window): use
8253 make_image_instance_cache_hash_table.
8254 (make_dummy_parent): ditto.
8255 (Fset_window_configuration): ditto.
8257 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
8259 * glyphs.c (process_image_string_instantiator): use
8261 (get_image_instantiator_governing_domain): ditto.
8262 (normalize_image_instantiator): ditto.
8263 (instantiate_image_instantiator): ditto.
8264 (make_image_instance_1): ditto.
8265 (image_instantiate): ditto. Key on glyph *and* instantiator type.
8266 (instantiator_eq_equal): new function for use with instance hash
8268 (instantiator_eq_hash): ditto.
8269 (make_image_instance_cache_hash_table): create a suitable hash
8270 table for storing image instances.
8272 * elhash.h (hash_table_weakness): new internal weakness type
8273 HASH_TABLE_KEY_CAR_VALUE_WEAK.
8274 declare new functions.
8276 * elhash.c (finish_marking_weak_hash_tables): introduce yet
8277 another weakness type for glyphs.
8278 (make_standard_lisp_hash_table): new function split out from
8279 make_general_lisp_hash_table.
8280 (make_lisp_hash_table): call make_standard_lisp_hash_table.
8281 (hash_table_instantiate): ditto.
8282 (Fmake_hash_table): ditto.
8284 2000-12-31 Martin Buchholz <martin@xemacs.org>
8286 * XEmacs 21.2.39 is released.
8288 2000-12-29 Andy Piper <andy@xemacs.org>
8290 * menubar.c (menubar_visible_p_changed): signal the frame changed.
8292 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8293 the frame has changed so that we pick up geometry changes such as
8296 2000-12-28 Andy Piper <andy@xemacs.org>
8298 * lastfile.c (my_ebss): make a char array so we can pad the
8299 bss. Fixes cygwin unexec.
8301 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8303 2000-12-26 Andy Piper <andy@xemacs.org>
8305 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8306 comments and try and be more precise about a non-/SIGIO world.
8307 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8310 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8311 we don't normalize to zero width or height.
8313 2000-12-24 Andy Piper <andy@xemacs.org>
8315 * Makefile.in.in (ldflags): add -mwindows when appropriate.
8317 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
8319 * s/sco5.h: SCO 5 has pty support.
8321 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
8323 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8324 input-method-xlib.c contains whole contents of input-method-xfs.c,
8325 so we can use input-method-xlib.c's code for USE_XFONTSET
8327 * input-method-xfs.c: removed.
8329 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
8331 * file-coding.h (enum coding_category_type): reorder enumerators to
8332 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
8333 (now one greater than largest real coding_category_type enumerator).
8334 * file-coding.c (coding_category_symbol, coding_category_by_priority,
8335 coding_category_system, fcd_descriptihon_1, decode_coding_category,
8336 Fcoding_category_list, Fset_coding_priority_list,
8337 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8338 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8340 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
8342 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8343 * redisplay-output.c (redisplay_output_window): Clear top of window
8344 when face is changed.
8345 * redisplay-x.c (x_redraw_exposed_window): Call
8346 redisplay_clear_top_of_window.
8347 * redisplay.h: Publish redisplay_clear_top_of_window.
8349 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
8351 * buffer.c (Fkill_buffer): Map over all devices.
8352 * window.c (window_loop): Remove UNSHOW_BUFFER code.
8353 (list_windows): New function.
8354 (list_all_windows): Ditto.
8355 (Freplace_buffer_in_windows): Use them.
8357 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8359 * database.c (berkdb_subtype): Recognize new subtype `queue'.
8360 (Fopen_database): Use `db_create' instead of `db_open'.
8361 (syms_of_database): Initialize Qqueue.
8363 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
8365 * buffer.c (common_init_complex_vars_of_buffer): Initialize
8366 buffer_local_face_property.
8367 * buffer.h (struct buffer): New member buffer_local_face_property.
8368 * window.c (Fset_window_buffer): Mark window's face as changed
8369 when buffer has buffer local face.
8370 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8371 * objects.c (color_after_change): Set buffer_local_face_property
8372 when locale of face specifier is buffer.
8373 * objects.c (font_after_change): Ditto.
8374 * objects.c (face_boolean_after_change): Ditto.
8375 * glyphs.c (image_after_change): Ditto.
8377 2000-12-09 Dan Holmsand <dan@eyebee.com>
8379 * nt.c (mswindows_fstat): Report file permissions, volume serial
8380 number, etc. Code adapted from FSF Emacs 20.7.
8382 2000-12-09 Dan Holmsand <dan@eyebee.com>
8384 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8385 of stat when we don't have symbolic links, to make sure
8386 mswindows_stat is called on mswindows.
8388 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
8390 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8392 2000-12-12 Martin Buchholz <martin@xemacs.org>
8394 * doprnt.c (emacs_doprnt_1): More printing fixes.
8395 Make printing of numbers compatible with libc and FSF Emacs.
8396 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8397 Use the system printf to do most of the hard work of formatting,
8398 instead of doprnt_1().
8399 Calculate memory to allocate for format string.
8400 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8401 (doprnt_1): Cleaner code and documentation.
8403 2000-12-01 Jerry James <james@eecs.ukans.edu>
8405 * Makefile.in.in: Use the loop variable to install headers.
8407 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
8409 * window.c (Fsplit_window): Don't invalidate face cache.
8411 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
8413 * minibuf.c (Fall_completions): Undo the previous change
8414 which removed checking elements start with space.
8416 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
8418 * mule-canna.c: Didier suppression.
8420 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
8422 * mule-canna.c: rename static unsigned char buf[] to key_buffer
8423 (warning suppression). Add English comment translations.
8425 2000-12-05 Martin Buchholz <martin@xemacs.org>
8427 * unexelfsgi.c (unexec): Better test for mmap failure.
8429 2000-12-05 Martin Buchholz <martin@xemacs.org>
8431 * XEmacs 21.2.38 is released.
8433 2000-12-05 Martin Buchholz <martin@xemacs.org>
8435 * redisplay.c (bar-cursor): Make a user variable.
8437 * symsinit.h: Add init_postgresql_from_environment.
8439 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
8441 * regex.c: Convert to clean C.
8443 2000-12-05 Dan Holmsand <dan@eyebee.com>
8446 Don't #include sysfile.h. Revert to duplicating PATH_MAX
8448 (sys_readlink): renamed to system_readlink to avoid conflict with
8449 the other sys_readlink.
8451 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
8453 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8455 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
8457 * postgresql.c (init_postgresql_from_environment): new function.
8458 (vars_of_postgresql): Move code initializing Lisp variables out and
8459 into init_postgresql_from_environment.
8460 emacs.c (main_1): Call init_postgresql_from_environment if and only
8461 if running a dumped XEmacs.
8463 2000-08-31 Dan Holmsand <dan@eyebee.com>
8465 * buffer.c: Make find-file-compare-truenames default to true on
8468 * realpath.c (win32_abs_start):
8470 (win32_readlink): New functions.
8471 (xrealpath): Return really real filenames on windows.
8473 * fileio.c (Ffile_truename): Make file-truename work on windows.
8475 2000-11-29 Didier Verna <didier@xemacs.org>
8477 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8478 * faces.c (update_face_cachel_data): use it.
8479 * faces.c (add_face_cachel): use it. Complete background pixmap
8480 frobbing in face cache if `update_face_cachel_data' has not done so.
8482 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
8484 * search.c (string_match_1): Don't set last_thing_searched
8487 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
8489 * buffer.c: Include casetab.h
8490 (common_init_complex_vars_of_buffer): Use new case-table object.
8491 * buffer.h: Include casetab.h
8492 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8493 (DOWNCASE_TABLE_OF): Ditto.
8494 * bufslots.h: Remove char-tables and add case-table.
8495 * casetab.c: Include casetab.h
8496 (CASE_TABLE_P): Removed.
8497 (mark_case_table): New function.
8498 (allocate_case_table): New function.
8499 (Fcase_table_p): Use new case-table.
8500 (case_table_char): New function.
8501 (Fget_case_table): Ditto.
8502 (Fput_case_table): Ditto.
8503 (Fput_case_table_pair): Ditto.
8504 (Fcopy_case_table): Ditto.
8505 (Fcurrent_case_table): Return case-table.
8506 (Fstandard_case_table): Return case-table.
8507 (Fset_case_table): Fix doc-string.
8508 (set_case_table): Use case-table
8509 (syms_of_casetab): DEFSUBR new functions.
8510 (complex_vars_of_casetab): Set up standard case-table.
8511 * casetab.h: New file.
8512 * editfns.c: Include casetab.h
8513 (Fcompare_buffer_substrings): Use case-table.
8514 * inline.c: Include casetab.h
8515 * lisp.h: Remove bogus extern.
8516 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8517 * search.c: Include casetab.h
8518 (TRANSLATE_ASCII): Removed.
8519 (TRANSLATE): Unconditionally translate character.
8520 (looking_at_1): Use case-table.
8521 (string_match_1): Ditto.
8522 (fast_string_match): Ditto.
8523 (search_command): Ditto.
8524 (search_buffer): Separate boyer_moore. Check whether
8525 boyer_moore is possible.
8526 (simple_search): New function.
8527 (boyer_moore): Separated from search_buffer. Translate char.
8529 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8531 * regex.c (RE_TR_ASCII): Removed.
8532 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8533 (PATFETCH): Call PATFETCH_RAW.
8534 (PATFETCH_RAW): Fetch Emchar.
8535 (PATUNFETCH): Decrement charptr.
8536 (GET_BUFFER_SPACE): Rename b to buf_end.
8538 (BUF_PUSH_2): Ditto.
8539 (BUF_PUSH_3): Ditto.
8540 (EXTEND_BUFFER): Ditto.
8541 (SET_LIST_BIT): Ditto.
8542 (regex_compile): Ditto. Translate non ASCII char.
8543 (compile_range): Ditto.
8544 (re_search_2): Ditto.
8545 (re_match_2_internal): Compare Emchar.
8546 (bcmp_translate): Ditto.
8548 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
8550 * lisp.h (basic char/int typedefs): comment improvement.
8552 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
8554 * emacs.c (main_1): unconditional pdump unstomping; don't save and
8555 unstomp inhibit_site_lisp. Improve comments.
8557 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
8559 * mule-charset.c (Fcharset_property): improve type checking, comments.
8561 2000-11-28 Andy Piper <andy@xemacs.org>
8563 * redisplay-output.c (redisplay_output_subwindow): make sure we do
8564 clipped display for windows in the gutter also.
8565 (redisplay_display_boxes_in_window_p): change semantics of return
8566 codes to be more intuitive.
8568 * gutter.h: declare display_boxes_in_gutter_p.
8570 * gutter.c (display_boxes_in_gutter_p): new function for
8573 2000-11-22 Andy Piper <andy@xemacs.org>
8575 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8578 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
8580 * callproc.c (Fold_call_process_internal):
8581 * gpm.c (Freceive_gpm_event):
8582 (tty_get_foreign_selection): Might be just warning supression.
8583 * fileio.c (Fwrite_region_internal):
8584 (Fset_visited_file_modtime):
8585 * keymap.c (event_matches_key_specifier_p):
8586 Initialize GCPROed variable.
8588 * menubar-x.c (command_builder_find_menu_accelerator):
8589 Initialize before use.
8591 2000-11-23 Andy Piper <andy@xemacs.org>
8593 * unexcw.c (unexec): make the resulting executable executable.
8595 2000-11-21 Martin Buchholz <martin@xemacs.org>
8597 * doc.c (get_doc_string):
8598 Use size_t, not int, for result of XSTRING_LENGTH.
8600 * cmds.c (Fdelete_char):
8601 * cmds.c (Fpoint_at_eol):
8602 * cmds.c (Fself_insert_command):
8603 Use EMACS_INT, not int, for result of XINT.
8604 Someday, someone will want to insert more than 2**31 identical characters.
8606 * cmds.c (Fdelete_char):
8607 * cmds.c (Fdelete_backward_char):
8608 * syntax.c (Fforward_word):
8609 * syntax.c (Fforward_comment):
8610 Make COUNT argument optional, for consistency with forward-char et al.
8612 2000-11-22 Martin Buchholz <martin@xemacs.org>
8615 * print.c (long_to_string):
8616 Return a useful value: the pointer at end of data written.
8619 Use `static const char * const' for constant strings.
8620 (union printf_arg): Delete `i', `ui' members.
8623 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8624 Do all printf-ing via the `l' specifier.
8625 Use EMACS_INT instead of int.
8628 2000-11-20 Didier Verna <didier@xemacs.org>
8630 * faces.c (update_face_cachel_data): don't frob the background
8631 pixmap when the window is being created. The face is needed but
8634 2000-11-20 Andy Piper <andy@xemacs.org>
8636 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8637 messing with a debug environment.
8639 2000-11-20 Martin Buchholz <martin@xemacs.org>
8641 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8643 2000-11-20 Martin Buchholz <martin@xemacs.org>
8645 * casetab.c (Fcase_table_p): Fix compile error and crash.
8647 2000-11-18 Philip Aston <philipa@mail.com>
8649 * s/cygwin32.h: Cygwin has SVR4-like pty support.
8651 2000-11-18 Martin Buchholz <martin@xemacs.org>
8653 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
8654 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8656 2000-11-17 Martin Buchholz <martin@xemacs.org>
8658 * config.h.in: Define HAVE_ELF_H if elf.h exists.
8659 * unexelf.c: Use HAVE_ELF_H.
8660 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8661 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8662 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8663 Greg Harrington <greg_harrington@hotmail.com> provided a machine
8665 So this is an unexelfsgi.c from a different line of development.
8667 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
8669 * regex.c (RE_TR_ASCII): New function.
8670 (RE_TRANSLATE): Call it.
8672 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
8674 * buffer.h (TRT_TABLE_OF): Remove assert.
8675 (IN_TRT_TABLE_DOMAIN): Removed.
8677 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
8679 * free-hook.c (log_gcpro):
8680 (show_gcprohist): Add support for GCPRO5.
8682 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
8684 * emacs.c (main_1): Improve -sd error message when --pdump=no.
8686 2000-11-16 Olivier Galibert <galibert@xemacs.org>
8688 * symeval.h: Declare flush_all_buffer_local_cache.
8690 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8691 (flush_buffer_local_cache): Added.
8692 (flush_all_buffer_local_cache): Added.
8694 * lrecord.h: Remove unused XD_LO_RESET_NIL.
8696 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8697 (pdump_dump_data): Ditto.
8698 (pdump_reloc_one): Ditto.
8699 (pdump): Remove unused pdump_qnil. Flush buffer local caches
8703 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
8705 * buffer.c: Remove if 0'ed entry.
8706 * buffer.h: Rewrite TRT to use char-table.
8707 * bufslots.h: Remove mirror tables.
8708 * casetab.c: Remove mirror tables.
8709 (CASE_TABLE_P): New macro.
8710 (Fcase_table_p): Element of a case table is string or char-table.
8711 (make_mirror_trt_table): Removed.
8712 (set_case_table): Setup char-table from strings for backward
8714 * dired.c (Fdirectory_files):
8715 * dired-msw.c: (mswindows_get_files):
8716 * lisp.h: Change prototype of re_pattern_buffer.
8717 * regex.c: (RE_TRANSLATE): New macro.
8718 (TRANSLATE_P): Ditto.
8719 Change translate to type RE_TRANSLATE_TYPE.
8720 * regex.h: Define RE_TRANSLATE_TYPE
8721 * search.c (TRANSLATE): New macro.
8722 (TRANSLATE_ASCII): New macro.
8723 Translate table is changed to Lisp_Object.
8724 (signal_failure): Inhibit return.
8726 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
8733 Do UNGCPRO before return.
8735 2000-11-14 Martin Buchholz <martin@xemacs.org>
8737 * XEmacs 21.2.37 is released.
8739 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
8741 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8742 Add comments about discarded return value.
8744 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
8747 * event-stream.c: Fix comments. Remove some #if 0'ed part.
8749 2000-10-27 Andy Piper <andy@xemacs.org>
8751 * gutter.c (Fset_default_gutter_position): default left and right
8753 (calculate_gutter_size): calculate resonable heuristic for left
8754 and right gutter sizes.
8755 (specifier_vars_of_gutter): change left and right gutter sizes to
8757 (calculate_gutter_size_from_display_lines): new function.
8758 (output_gutter): check for resizing on left and right gutters.
8759 (clear_gutter): don't special case top and left gutters.
8760 (specifier_vars_of_gutter): use new signature for
8761 set_specifier_caching.
8763 * glyphs-x.c (x_redisplay_widget): spelling fix.
8764 * glyphs.c (specifier_vars_of_glyphs):
8765 * menubar.c (specifier_vars_of_menubar):
8766 * redisplay.c (specifier_vars_of_redisplay):
8767 * toolbar.c (specifier_vars_of_toolbar):
8768 * window.c (specifier_vars_of_window):
8769 * scrollbar.c (specifier_vars_of_scrollbar):
8770 (complex_vars_of_scrollbar): use new signature for
8771 set_specifier_caching.
8773 * specifier.c (set_specifier_caching): include recompute flag.
8774 (recompute_one_cached_specifier_in_window): always recompute if
8776 (recompute_one_cached_specifier_in_frame): ditto.
8778 * specifier.h (struct specifier_caching): add recompute flag.
8780 2000-10-24 Andy Piper <andy@xemacs.org>
8782 * unexcw.c (copy_executable_and_dump_data_section): add new
8783 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8786 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8788 * console-x.h (x_device): New member modifier_release_time.
8789 * event-Xt.c (x_handle_sticky_modifiers):
8790 Bound interval modifier keys are sticky.
8791 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8792 * events.h: extern it.
8794 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8796 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8798 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8800 * event-stream.c (execute_command_event): Preserve current_events
8801 and the like when event is misc-user-event.
8802 Inhibit quit during the call to maybe_echo_keys.
8804 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
8806 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8807 symlink when buffer is killed.
8808 (inhibit_clash_detection): New variable.
8810 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
8812 * console.c (Fset_input_method): Trigger redisplay on tty.
8814 2000-11-07 Martin Buchholz <martin@xemacs.org>
8816 * process.c (Fprocess_status): Revert to previous behavior:
8817 (process-status "nosuchprocess") ==> nil
8819 2000-11-06 Martin Buchholz <martin@xemacs.org>
8821 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8822 Work around another GCC 2.95.2 optimizer bug.
8824 2000-11-02 Martin Buchholz <martin@xemacs.org>
8826 * process.c (Fget_process): Use LIST_LOOP_2.
8827 (kill_buffer_processes): Use LIST_LOOP_2.
8829 * minibuf.c (Fall_completions):
8830 Delete old non-functional code for FSF fourth argument.
8832 * frame.c (frame_matches_frame_spec):
8833 Renamed from `frame_matches_frametype'. Update all callers.
8834 (device_matches_device_spec):
8835 Renamed from 'device_matches_console_spec'. Update all callers.
8837 * doc.c (Fsubstitute_command_keys):
8838 Remove buffer overflow crash. Small code cleanups.
8840 * casetab.c (check_case_table): Simpler code.
8842 * window.c (Freplace_buffer_in_windows):
8843 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8844 (and similar implementation) as Fdelete_windows_on.
8847 * alloc.c (Fmake_list):
8848 * alloc.c (make_vector):
8849 * alloc.c (Fmake_vector):
8850 * alloc.c (make_bit_vector):
8851 * alloc.c (Fmake_bit_vector):
8852 * alloc.c (Fbit_vector):
8853 * alloc.c (Fmake_string):
8854 * alloc.c (Fpurecopy):
8855 * alloc.c (Fmemory_limit):
8857 * buffer.c (Fget_buffer):
8858 * buffer.c (Fkill_buffer):
8859 * buffer.c (complex_vars_of_buffer):
8860 * bytecode.c (Fcompiled_function_stack_depth):
8861 * callint.c (Fprefix_numeric_value):
8863 * event-stream.c (Fread_key_sequence):
8865 * casetab.c (Fcase_table_p):
8866 * casetab.c (check_case_table):
8867 * casetab.c (Fset_case_table):
8868 * casetab.c (Fset_standard_case_table):
8870 * chartab.c (Fchar_table_type):
8871 * chartab.c (Freset_char_table):
8872 * chartab.c (Fget_char_table):
8873 * chartab.c (Fget_range_char_table):
8874 * chartab.c (Fput_char_table):
8875 * chartab.c (Fmap_char_table):
8876 * chartab.c (Fcategory_table_p):
8877 * chartab.c (Fcheck_category_at):
8878 * chartab.c (Fchar_in_category_p):
8879 * chartab.c (Fcategory_table):
8880 * chartab.c (Fcopy_category_table):
8881 * chartab.c (Fset_category_table):
8882 * chartab.c (Fcategory_designator_p):
8883 * chartab.c (Fcategory_table_value_p):
8884 * cmds.c (Fdelete_char):
8885 * cmds.c (Fdelete_backward_char):
8886 * cmds.c (Fself_insert_command):
8887 * cmds.c (Fself_insert_internal):
8888 * console.c (Fvalid_console_type_p):
8889 * console.c (Fcdfw_console):
8890 * console.c (Fconsole_type):
8891 * console.c (Fconsole_name):
8892 * console.c (Fconsole_device_list):
8893 * console.c (Fconsole_on_window_system_p):
8897 * data.c (Fsubr_interactive):
8898 * data.c (Fchar_to_int):
8899 * data.c (Fint_to_char):
8902 * data.c (Fnumber_to_string):
8903 * data.c (Fstring_to_number):
8905 * database.c (mark_database):
8906 * database.c (finalize_database):
8907 * database.c (Fdatabase_live_p):
8908 * database.c (Fdatabasep):
8909 * device-x.c (Fx_get_resource):
8910 * device.c (Fdfw_device):
8912 * dired.c (Ffile_name_completion):
8913 * dired.c (Ffile_name_all_completions):
8914 * dired.c (Fuser_name_completion):
8915 * dired.c (Fuser_name_completion_1):
8916 * dired.c (Fuser_name_all_completions):
8917 * doc.c (Fdocumentation):
8918 * doc.c (Fdocumentation_property):
8919 * doc.c (Fsubstitute_command_keys):
8921 * editfns.c (Fchar_to_string):
8922 * editfns.c (Fstring_to_char):
8923 * editfns.c (Ftemp_directory):
8924 * editfns.c (Finsert_char):
8925 * editfns.c (Fbuffer_substring_no_properties):
8926 * editfns.c (Fnarrow_to_region):
8927 * editfns.c (Fchar_equal):
8928 * editfns.c (Fchar_Equal):
8929 * editfns.c (Ftranspose_regions):
8930 * emacs.c (Fdump_emacs):
8932 * eval.c (Fcommand_execute):
8933 * eval.c (Fautoload):
8934 * eval.c (Fbacktrace):
8935 * eval.c (Fbacktrace_frame):
8937 * events.c (Fcopy_event):
8938 * events.c (Fcharacter_to_event):
8939 * events.c (Fevent_button):
8940 * events.c (Fevent_process):
8942 * extents.c (Fnext_extent_change):
8943 * extents.c (Fextent_property):
8945 * faces.c (Fmake_face):
8947 * file-coding.c (Fencode_shift_jis_char):
8948 * file-coding.c (Fencode_big5_char):
8949 * fileio.c (Ffile_name_directory):
8950 * fileio.c (Ffile_name_nondirectory):
8951 * fileio.c (Ffile_name_as_directory):
8952 * fileio.c (Fdirectory_file_name):
8953 * fileio.c (Ffile_truename):
8954 * fileio.c (Fsubstitute_in_file_name):
8955 * fileio.c (Ffile_modes):
8956 * fileio.c (Fset_file_modes):
8957 * fileio.c (Fset_default_file_modes):
8958 * fileio.c (Fverify_visited_file_modtime):
8959 * floatfns.c (Facos):
8960 * floatfns.c (Fasin):
8961 * floatfns.c (Fatan):
8962 * floatfns.c (Fcos):
8963 * floatfns.c (Fsin):
8964 * floatfns.c (Ftan):
8965 * floatfns.c (Fbessel_j0):
8966 * floatfns.c (Fbessel_j1):
8967 * floatfns.c (Fbessel_jn):
8968 * floatfns.c (Fbessel_y0):
8969 * floatfns.c (Fbessel_y1):
8970 * floatfns.c (Fbessel_yn):
8971 * floatfns.c (Ferf):
8972 * floatfns.c (Ferfc):
8973 * floatfns.c (Flog_gamma):
8974 * floatfns.c (Fexp):
8975 * floatfns.c (Fexpt):
8976 * floatfns.c (Flog):
8977 * floatfns.c (Flog10):
8978 * floatfns.c (Fsqrt):
8979 * floatfns.c (Fcube_root):
8980 * floatfns.c (Facosh):
8981 * floatfns.c (Fasinh):
8982 * floatfns.c (Fatanh):
8983 * floatfns.c (Fcosh):
8984 * floatfns.c (Fsinh):
8985 * floatfns.c (Ftanh):
8986 * floatfns.c (Fabs):
8987 * floatfns.c (Ffloat):
8988 * floatfns.c (Flogb):
8989 * floatfns.c (Fceiling):
8990 * floatfns.c (Ffloor):
8991 * floatfns.c (Fround):
8992 * floatfns.c (Ftruncate):
8993 * floatfns.c (Ffceiling):
8994 * floatfns.c (Fffloor):
8995 * floatfns.c (Ffround):
8996 * floatfns.c (Fftruncate):
8997 * fns.c (Fstring_equal):
8998 * fns.c (Fstring_lessp):
9003 * fns.c (Fsubstring):
9005 * fns.c (Fold_assoc):
9006 * fns.c (assoc_no_quit):
9008 * fns.c (Fold_assq):
9009 * fns.c (assq_no_quit):
9011 * fns.c (Fold_rassoc):
9013 * fns.c (Fold_rassq):
9014 * fns.c (rassq_no_quit):
9015 * fns.c (Fremassoc):
9016 * fns.c (remassoc_no_quit):
9018 * fns.c (remassq_no_quit):
9019 * fns.c (Fremrassoc):
9020 * fns.c (Fremrassq):
9021 * fns.c (remrassq_no_quit):
9023 * fns.c (Fplist_get):
9024 * fns.c (Fplist_put):
9025 * fns.c (Fplist_remprop):
9026 * fns.c (Fplist_member):
9027 * fns.c (Flax_plist_get):
9028 * fns.c (Flax_plist_put):
9029 * fns.c (Flax_plist_remprop):
9030 * fns.c (Flax_plist_member):
9032 * fns.c (Fold_equal):
9034 * fns.c (Fbase64_encode_region):
9035 * fns.c (Fbase64_encode_string):
9036 * fns.c (Fbase64_decode_region):
9038 * frame.c (frame_matches_frame_spec):
9039 * frame.c (device_matches_device_spec):
9040 * frame.c (next_frame):
9041 * frame.c (previous_frame):
9042 * frame.c (Fnext_frame):
9043 * frame.c (Fprevious_frame):
9044 * frame.c (Fframe_property):
9045 * frame.c (Fset_frame_height):
9046 * frame.c (Fset_frame_size):
9050 * glyphs.c (decode_error_behavior_flag):
9051 * glyphs.c (Fmake_image_instance):
9052 * indent.c (Findent_to):
9053 * intl.c (Fignore_defer_gettext):
9054 * keymap.c (Fkeymapp):
9055 * keymap.c (Flookup_key):
9057 * lread.c (Fload_internal):
9058 * lread.c (Feval_buffer):
9059 * lread.c (Feval_region):
9060 * macros.c (Fexecute_kbd_macro):
9061 * marker.c (set_marker_internal):
9062 * marker.c (Fset_marker):
9063 * marker.c (set_marker_restricted):
9064 * marker.c (Fcopy_marker):
9065 * marker.c (noseeum_copy_marker):
9067 * menubar.c (Fpopup_menu):
9069 * mule-charset.c (Fcharset_name):
9070 * mule-charset.c (Fchar_charset):
9071 * mule-charset.c (Fchar_octet):
9072 * mule-charset.c (Fsplit_char):
9073 * mule-wnnfns.c (Fwnn_open):
9074 * mule-wnnfns.c (Fwnn_dict_comment):
9075 * mule-wnnfns.c (Fwnn_quit_henkan):
9076 * mule-wnnfns.c (Fwnn_word_toroku):
9077 * mule-wnnfns.c (Fwnn_word_sakujo):
9078 * mule-wnnfns.c (Fwnn_word_use):
9079 * mule-wnnfns.c (Fwnn_hindo_set):
9081 * objects.c (Fmake_color_instance):
9082 * objects.c (Fmake_font_instance):
9083 * print.c (Fwrite_char):
9085 * process.c (mark_process):
9086 * process.c (print_process):
9087 * process.c (get_process_from_usid):
9088 * process.c (Fprocessp):
9089 * process.c (Fprocess_live_p):
9090 * process.c (Fget_process):
9091 * process.c (Fget_buffer_process):
9092 * process.c (get_process):
9093 * process.c (Fprocess_id):
9094 * process.c (Fprocess_name):
9095 * process.c (Fprocess_command):
9096 * process.c (init_process_io_handles):
9097 * process.c (start_process_unwind):
9098 * process.c (Fstart_process_internal):
9099 * process.c (Fopen_multicast_group_internal):
9100 * process.c (Fset_process_window_size):
9101 * process.c (read_process_output):
9102 * process.c (send_process):
9103 * process.c (Fprocess_tty_name):
9104 * process.c (Fset_process_buffer):
9105 * process.c (Fprocess_buffer):
9106 * process.c (Fprocess_mark):
9107 * process.c (set_process_filter):
9108 * process.c (Fset_process_filter):
9109 * process.c (Fprocess_filter):
9110 * process.c (Fprocess_send_region):
9111 * process.c (Fprocess_send_string):
9112 * process.c (exec_sentinel):
9113 * process.c (Fset_process_sentinel):
9114 * process.c (Fprocess_sentinel):
9115 * process.c (status_notify):
9116 * process.c (Fprocess_status):
9117 * process.c (Fprocess_exit_status):
9118 * process.c (process_send_signal):
9119 * process.c (Fprocess_send_eof):
9120 * process.c (deactivate_process):
9121 * process.c (remove_process):
9122 * process.c (Fdelete_process):
9123 * process.c (kill_buffer_processes):
9124 * process.c (Fprocess_kill_without_query):
9125 * process.c (Fprocess_kill_without_query_p):
9127 * rangetab.c (Fget_range_table):
9128 * rangetab.c (Fput_range_table):
9129 * rangetab.c (Fremove_range_table):
9130 * rangetab.c (Fclear_range_table):
9132 * search.c (Fskip_chars_forward):
9133 * search.c (Fskip_chars_backward):
9134 * search.c (Fskip_syntax_forward):
9135 * search.c (Fskip_syntax_backward):
9136 * search.c (search_command):
9137 * search.c (Freplace_match):
9138 * search.c (Fregexp_quote):
9139 * select.c (Fown_selection_internal):
9140 * select.c (Fselection_owner_p):
9141 * select.c (Fselection_exists_p):
9142 * select.c (Fget_selection_internal):
9145 * symbols.c (Fintern):
9146 * symbols.c (Fintern_soft):
9147 * symbols.c (Funintern):
9148 * symbols.c (Fapropos_internal):
9149 * symbols.c (Fset_default):
9151 * syntax.c (Fsyntax_table_p):
9152 * syntax.c (Fcopy_syntax_table):
9153 * syntax.c (Fset_syntax_table):
9154 * syntax.c (Fchar_syntax):
9155 * syntax.c (syntax_match):
9156 * syntax.c (Fmatching_paren):
9157 * syntax.c (Fforward_word):
9158 * syntax.c (scan_lists):
9159 * syntax.c (Fscan_lists):
9160 * syntax.c (Fscan_sexps):
9161 * syntax.c (Fparse_partial_sexp):
9162 * toolbar.c (Fcheck_toolbar_button_syntax):
9165 * window.c (Fwindowp):
9166 * window.c (Fwindow_live_p):
9167 * window.c (Fwindow_point):
9168 * window.c (Fdelete_window):
9169 * window.c (Fnext_window):
9170 * window.c (Fprevious_window):
9171 * window.c (Fother_window):
9172 * window.c (window_loop):
9173 * window.c (Fget_lru_window):
9174 * window.c (Fsplit_window):
9175 * window.c (Fenlarge_window):
9176 * window.c (Fenlarge_window_pixels):
9177 * window.c (Fshrink_window):
9178 * window.c (Fshrink_window_pixels):
9179 * window.c (change_window_height):
9180 * window.c (Fwindow_configuration_p):
9181 * window.c (Fcurrent_window_configuration):
9183 * casefiddle.c (casify_object):
9184 * casefiddle.c (Fupcase):
9185 * casefiddle.c (Fdowncase):
9186 * casefiddle.c (Fcapitalize):
9187 * casefiddle.c (Fupcase_initials):
9188 * casefiddle.c (casify_region_internal):
9189 * casefiddle.c (casify_region):
9190 * casefiddle.c (Fupcase_region):
9191 * casefiddle.c (Fdowncase_region):
9192 * casefiddle.c (Fcapitalize_region):
9193 * casefiddle.c (Fupcase_initials_region):
9194 * casefiddle.c (Fupcase_word):
9195 * casefiddle.c (Fdowncase_word):
9196 * casefiddle.c (Fcapitalize_word):
9197 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
9198 Replace 0 with '\0' when working with bytes.
9199 Replace initial "(" with "\(" in docstrings.
9201 2000-11-01 Martin Buchholz <martin@xemacs.org>
9203 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9205 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9207 2000-10-31 Martin Buchholz <martin@xemacs.org>
9209 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
9211 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
9213 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9216 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
9218 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9219 (inhibit_auto_save_session): New variable.
9220 (vars_of_fileio): Declare and initialize them.
9221 * fileio.c (Fdo_auto_save): Don't create session file if
9222 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9224 2000-10-31 Martin Buchholz <martin@xemacs.org>
9226 * sgiplay.c (play_internal): C++ compilability.
9227 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9228 * callproc.c (Fold_call_process_internal):
9229 Remove unused vars `env', `first'.
9230 * scrollbar.c (update_scrollbar_instance):
9231 #### unused var `current_window'.
9232 * redisplay-tty.c: Put currently unused vars insert_mode_on,
9233 etc. within #ifdef NOT_YET.
9234 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9235 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9236 * specifier.c (specifier_instance):
9237 #### unused var `tag'.
9238 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9240 2000-10-27 Martin Buchholz <martin@xemacs.org>
9243 * fns.c (list_sort):
9244 * fns.c (Ffillarray):
9245 * fns.c (bytecode_nconc2):
9248 * fns.c (Fmapconcat):
9249 Be pedantically 64-bit correct. For the time when someone will
9250 want to have a list with length > 2**32.
9252 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9253 Work around MIPSpro compiler bug.
9255 * process-unix.c (unix_kill_child_process): Add snarky comment.
9256 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
9258 * config.h.in: Oops, _getpt ==> _getpty
9260 2000-10-26 Martin Buchholz <martin@xemacs.org>
9264 Use void*, not char*, as return type of alloca().
9266 * alloc.c (free_marker): Side effect inside assert expression!
9268 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
9270 * mule-charset.c (Fset_charset_ccl_program): To check
9271 if the given ccl program is valid, use setup_ccl_program()
9272 instead of CHECK_VECTOR().
9273 (Fmake_charset): Likewise.
9275 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
9277 * faces.c (get_extent_fragment_face_cache_index):
9278 Fix cachel.merged_faces memory leak.
9280 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
9282 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9283 Reset MSB of octets obtained by DECODE_SJIS
9284 because of the incompatibility with Emacs.
9285 (ccl_driver)<CCL_ENCODE_SJIS>:
9286 Set MSB of octets before passing them to
9287 ENCODE_SJIS because of the incompatibility
9290 2000-10-18 Daiki Ueno <ueno@unixuser.org>
9292 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9293 (DECLARE_LRECORD): Undo the last change.
9294 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9296 2000-10-17 Daiki Ueno <ueno@unixuser.org>
9298 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9299 the implementation to lrecord_implementations_table.
9301 2000-10-14 Daiki Ueno <ueno@unixuser.org>
9303 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9304 initial value of `lrecord_type_##c_name' and
9305 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9306 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9307 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9308 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9309 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9311 2000-10-17 Martin Buchholz <martin@xemacs.org>
9313 * miscplay.c (sndcnv8S_2mono):
9314 (sndcnv2monounsigned):
9315 (sndcnvULaw_2linear):
9317 Remove implementation-defined behavior.
9319 2000-10-12 Martin Buchholz <martin@xemacs.org>
9321 * input-method-xlib.c: Warning suppression.
9323 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
9325 * mule-ccl.c: Sync up with Emacs 21.0.90.
9326 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9328 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9330 (ccl_driver[WriteMultibyteChar2]): Bug fix.
9331 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9332 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9333 leading char belongs to official 2-dimensional charset.
9334 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9335 write the given character as is. Otherwise,
9336 if it is a multibyte char, convert it by
9337 non_ascii_set_charptr_emchar, then write it.
9338 (CCL_WRITE_STRING): Likewise.
9339 (ccl_get_compiled_code): New function.
9340 (setup_ccl_program): When ccl_prog is invalid,
9342 (Fregister_code_conversion_map): New function.
9343 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9345 * mule-ccl.h: Sync up with Emacs 21.0.90.
9346 (Fregister_ccl_program): export it.
9348 * redisplay-msw.c (separate_textual_runs):
9349 If ccl program is not valid, don't do ccl conversion.
9351 * redisplay-x.c (separate_textual_runs): Ditto.
9353 * file-coding.c (Fmake_coding_system):
9354 When type is ccl and value is vector, register it
9355 with a proper symbol. And checks whether the
9356 given ccl program is valid.
9357 (mule_decode): When calling ccl_driver, if src indicates
9358 NULL pointer, set an empty string instead.
9359 (mule_encode): Likewise.
9361 2000-10-11 Martin Buchholz <martin@xemacs.org>
9363 The following large batch of changes gets us back to a state of
9364 C++ compilability. Extbyte is now a char, which means that
9365 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9367 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9369 * sound.c (Fplay_sound): Type correctness.
9371 * select-x.c (hack_motif_clipboard_selection): Type correctness.
9372 (x_get_window_property): Type correctness.
9373 (receive_incremental_selection): unsigned char ==> Extbyte
9374 (selection_data_to_lisp_data): unsigned char ==> Extbyte
9375 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9376 (Fx_store_cutbuffer_internal): Type correctness.
9378 * process-unix.c (try_to_initialize_subtty): Type correctness.
9380 * objects-x.c (x_print_color_instance): Type correctness.
9381 (x_print_font_instance): Type correctness.
9382 (x_list_fonts): SExtbyte ==> Extbyte.
9383 (valid_x_font_name_p): SExtbyte ==> Extbyte.
9384 (x_find_charset_font): SExtbyte ==> Extbyte.
9385 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
9386 (truename_via_XListFonts): SExtbyte ==> Extbyte.
9387 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9390 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9391 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9392 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9393 (BYTE_C0_P): Use bit ops for char-signedness safety.
9394 (BYTE_C1_P): Use bit ops for char-signedness safety.
9395 (CHARSET_BY_LEADING_BYTE):
9396 (CHARSET_BY_ATTRIBUTES):
9397 Always use inline function.
9398 Use type_checking_assert.
9401 * mule-charset.c (non_ascii_charptr_copy_char):
9402 Modify to work with both ASCII and non-ASCII characters.
9403 Improve docs and variable names.
9404 Replace over-clever fall-through switch with a simple loop.
9405 (Lstream_get_emchar_1):
9406 Replace over-clever fall-through switch with a simple loop.
9408 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9409 Warning suppression.
9411 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9412 the return value of Lstream_getc, which could be EOF as well.
9414 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9416 * lisp.h: Make Extbyte a char, not unsigned char, so that external
9417 APIs can be used on Extbytes without casts. Risky!
9421 * input-method-xlib.c (XIM_init_device):
9422 Use Xlib.h instead of IntrinsicP.h.
9423 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9424 which will break in X11R7.
9425 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9426 to call XRegisterIMInstantiateCallback with correct types.
9428 * gui-x.c (button_item_to_widget_value): Type correctness.
9430 * glyphs.c (bitmap_to_lisp_data): Type correctness.
9432 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9433 (xbm_instantiate_1): Type correctness.
9434 (BUILD_GLYPH_INST): Type correctness.
9436 * fileio.c (Fsubstitute_in_file_name): Type correctness.
9439 (decode_coding_sjis):
9440 (decode_coding_big5):
9441 (decode_coding_ucs4):
9442 (decode_coding_utf8):
9443 (decode_coding_iso2022):
9444 (decode_coding_no_conversion):
9445 Make all decoding functions take an Extbyte * arg.
9446 (encode_coding_sjis):
9447 (encode_coding_big5):
9448 (encode_coding_ucs4):
9449 (encode_coding_utf8):
9450 (encode_coding_iso2022):
9451 (encode_coding_no_conversion):
9452 Make all encoding functions take a Bufbyte * arg.
9453 Use size_t instead of unsigned int for memory sizes.
9454 Only cast to unsigned char whenever dereferencing Extbyte *.
9456 * doc.c (unparesseuxify_doc_string): Type correctness.
9458 * console-x.c (split_up_display_spec):
9459 Rewrite without using details of internal string representation.
9460 (x_semi_canonicalize_device_connection): Type correctness.
9463 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9464 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9465 (HAVE_XFREE386): Removed.
9467 * buffer.h (DEC_CHARPTR): `const' correctness.
9468 (bufbyte_strcmp): New.
9469 (bufbyte_memcmp): New.
9471 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9473 * buffer.h (XCHAR_OR_CHAR_INT):
9474 Always use inline function.
9475 Remove redundant type checking assert() - XINT will abort quite nicely.
9477 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9479 * search.c (Freplace_match): Set newtext to an empty string.
9481 2000-10-10 Martin Buchholz <martin@xemacs.org>
9483 * s/decosf1-3.h: Remove #include of stropts.h
9484 * s/ptx.h: Remove #include of stropts.h
9485 * s/usg5-4.h: Remove #include of stropts.h
9488 Use stropts.h, not sys/stropts.h.
9489 Use strtio.h, not sys/strtio.h.
9491 2000-10-04 Martin Buchholz <martin@xemacs.org>
9493 * XEmacs 21.2.36 is released.
9495 2000-09-21 Andy Piper <andy@xemacs.org>
9497 * glyphs-x.c (x_redisplay_widget): make sure non-structural
9498 changes still involve copying the widget tree.
9499 (update_widget_face): make sure a change is register in the widget
9500 tree. Call update_tab_widget_face appropriately.
9501 (update_tab_widget_face): ditto.
9502 (x_tab_control_redisplay): make sure non-structural changes still
9503 involve copying the widget tree.
9505 2000-08-31 Daiki Ueno <ueno@unixuser.org>
9507 * lread.c (locate_file): Check the path element is non-nil.
9509 2000-10-02 Martin Buchholz <martin@xemacs.org>
9511 * lisp.h: Warning suppression for SCO compilers.
9513 * redisplay-tty.c (reset_tty_modes): Fix crash.
9514 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9516 2000-09-27 Martin Buchholz <martin@xemacs.org>
9518 Big signal/process handling overhaul. Bugs fixed:
9519 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9520 M-x comint-kill-subjob should work for both values nil and t of
9521 process-connection-type. It was broken on most platforms.
9522 Testing on Irix and Cygwin still needed. Other plaforms tested.
9523 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
9524 * process-unix.c: Signal/Process handling overhaul.
9525 (pty_name): make 64 bytes, as `expect' does, for paranoia.
9526 (allocate_pty): Use all available modern methods of allocating
9527 ptys, falling back to old style BSD allocation as a last resort.
9528 Use allegedly more secure Unix98 pty allocation by default.
9529 (allocate_pty_the_old_fashioned_way): New. the last resort.
9530 (unix_create_process): Push ptem, ldterm, ttcompat where
9531 available. Autoconfiscate.
9532 (try_to_initialize_subtty): New.
9533 (unix_kill_child_process): Proper signal handling for ptys on most
9534 platforms, using special knowledge of AIX, BSD, etc...
9535 (unix_create_process): Always disconnect_controlling_terminal() for
9536 subprocesses, whether using ptys or not.
9537 * process.h: Remove old getpt-dependent PTY code.
9538 * process.c (Fprocess_send_signal): New, obvious generic function.
9539 (decode_signal): New.
9540 (Finterrupt_process):
9544 (Fcontinue_process):
9545 (Fsignal_process): Use decode_signal.
9546 (process_send_signal):
9547 Many docstring corrections.
9548 Allow any signal to be sent to a process object.
9549 * config.h.in: Add symbols for big signal/process overhaul.
9550 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9551 * sysproc.h: Include process-related headers, where available:
9552 sys/stropts.h sys/strtio.h pty.h libutil.h
9560 Remove old S&M pty stuff.
9561 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9562 * systty.h: Simplify cpp hackery, improve comments.
9563 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9565 * editfns.c (Fformat_time_string):
9566 Be a little more paranoid with the return value of ctime.
9568 * fileio.c (check_executable):
9570 Use symbolic constants X_OK, W_OK.
9572 * console-x.c (split_up_display_spec): Fix a warning.
9574 2000-10-02 Martin Buchholz <martin@xemacs.org>
9576 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9577 * ntproc.c (sys_spawnve): make_string ==> build_string
9578 Small clarity improvements.
9580 2000-09-30 Martin Buchholz <martin@xemacs.org>
9582 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9584 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9586 * config.h.in (HAVE_STRCASECMP): Remove.
9588 2000-09-29 Martin Buchholz <martin@xemacs.org>
9590 * redisplay-output.c (redisplay_output_pixmap):
9591 Cleaner and possibly more 64-bit correct code.
9593 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
9595 * dumper.c (pdump_load_finish): move restoration of
9596 `noninteractive1' to emacs.c (main_1).
9597 * emacs.c (main_1): protect LISP-visible command-line flags
9600 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
9602 * Makefile.in.in (versionclean): Use EXE_TARGET and
9603 DUMP_TARGET instead of literal program names.
9605 2000-09-20 Martin Buchholz <martin@xemacs.org>
9607 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9609 2000-09-19 Martin Buchholz <martin@xemacs.org>
9611 * *: Spelling mega-patch
9613 2000-09-19 Martin Buchholz <martin@xemacs.org>
9615 * fns.c (bad_bad_turtle):
9616 Delete "Eek!" comment, since we fixed the bug to which it refers.
9618 2000-09-16 Martin Buchholz <martin@xemacs.org>
9620 * alloca.c: Replace REGISTER with register.
9622 2000-09-16 Daiki Ueno <ueno@unixuser.org>
9624 * file-coding.c (ucs_to_char): Use countof.
9626 2000-09-16 Martin Buchholz <martin@xemacs.org>
9628 * file-coding.c: (ucs_to_char):
9629 (complex_vars_of_file_coding):
9630 Use countof instead of sizeof.
9631 Use CHECK_NATNUM instead of CHECK_INT.
9633 * sysdep.c (strcasecmp): Remove.
9634 * device-x.c (ascii_strcasecmp): New.
9635 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9636 Avoid using non-standard non-portable strcasecmp.
9638 2000-09-16 Martin Buchholz <martin@xemacs.org>
9640 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9641 * font-lock.c: remove reference to emacsfns.h.
9642 * search.c: small doc improvement.
9643 * event-Xt.c: correct file names in comments.
9644 * console-x.h Correct file names in comments.
9645 * frame.c: Correct file names in comments.
9646 * event-stream.c: remove Energize from comments.
9648 2000-09-15 Martin Buchholz <martin@xemacs.org>
9650 * symeval.h (DEFERROR_STANDARD):
9653 (DEFSYMBOL_NO_DUMP):
9654 (DEFSYMBOL_MULTIWORD_PREDICATE):
9655 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9657 The construct &##name is not sensible C.
9658 Fixes compilation errors with Unixware native compiler.
9660 2000-09-14 Martin Buchholz <martin@xemacs.org>
9662 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9663 (next_frame_internal): Removed. We now just have next_frame.
9665 Write a simpler and cleaner one-pass algorithm.
9666 Remove called_from_delete_device arg and #ifdefed-out code.
9668 Renamed from prev_frame. Update callers.
9669 Cleaned up to have an analogous implementation to next_frame.
9670 (other_visible_frames_internal): Remove the
9671 called_from_delete_device bogus arg, and hence, remove this
9672 function. Just use other_visible_frames().
9674 * window.c (Fnext_window):
9676 Since next_frame() is guaranteed to return a frame, remove check
9677 for nil inserted in previous patch.
9680 Make code look more like Fnext_window.
9682 Respect the `console' arg when iterating through windows.
9683 Fixes bug: (get-buffer-window buffer t device) not respecting
9685 This function needs more work, as others have pointed out.
9687 * frame.h: Rename prev_frame to previous_frame.
9688 device_matches_console_spec no longer takes a `frame' arg.
9693 Use EMACS_BLOCK_SIGNAL instead of sigblock.
9694 From "Golubev I. N." <gin@mo.msk.ru>.
9696 * make-src-depend: Fix typo.
9698 2000-09-13 Martin Buchholz <martin@xemacs.org>
9700 * window.c (Fnext_window):
9701 next_frame() might return nil, not a frame.
9703 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9705 * frame.c (next_frame_internal):
9706 We've passed a frame if we've passed its device.
9708 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9709 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9711 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
9713 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9714 Allow option to suppress accelerators in menu/dialog items.
9715 (populate_or_checksum_helper): Pass dialog title through above.
9717 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
9719 * event-msw.c (mswindows_key_to_emacs_keysym):
9720 Add "pause" key, fix "menu" key.
9722 2000-09-09 Martin Buchholz <martin@xemacs.org>
9724 * eval.c (reinit_vars_of_eval):
9725 Increase max_lisp_eval_depth to 1000,
9726 required for thai-xtis.el to byte-compile under some circumstances.
9728 2000-09-04 Martin Buchholz <martin@xemacs.org>
9730 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9733 2000-09-01 Martin Buchholz <martin@xemacs.org>
9735 * make-src-depend: Make the generated Makefiles smaller.
9737 * s/hpux.h (SETUP_SLAVE_PTY):
9738 Provide a %d in the format string for the errno argument.
9740 * editfns.c (Ftemp_directory):
9742 Avoid buffer overrun on very long file name.
9744 * input-method-xlib.c (XIM_init_device):
9745 6th parameter of XRegisterIMInstantiateCallback has different
9746 pointer types on different OSes, so simply cast to (void *).
9748 * unexhp9k800.c: Warning fixes. Fiddly changes.
9750 * sysdll.c (dll_open):
9751 shl_load will hang hard if passed a NULL filename.
9752 Simply return NULL for compatibility with dlopen.
9753 * sysdll.c: Conform to XEmacs coding standards.
9755 * sysdep.c (get_pty_max_bytes):
9756 Support pty input lines longer than 512 bytes on HP-UX 10.20.
9758 2000-08-31 Martin Buchholz <martin@xemacs.org>
9760 * tooltalk.c: Add #include <syssignal.h>
9762 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
9764 * s/hpux.h: Don't use undefined function sigunblock().
9766 2000-08-31 Martin Buchholz <martin@xemacs.org>
9768 * config.h.in: Add HAVE_BALLOON_HELP.
9769 * emacs.c: Use HAVE_BALLOON_HELP.
9770 * Makefile.in.in (x_objs):
9771 Make Balloon Help conditional on finding shape.h.
9773 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
9775 * syntax.c (regex_emacs_buffer_p): New variable.
9776 * syntax.h (regex_emacs_buffer_p): extern.
9777 * search.c (looking_at_1):
9779 (fast_string_match):
9780 (search_buffer): Set regex_emacs_buffer_p.
9781 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9782 when before_dot, at_dot, after_dot.
9784 2000-08-23 Andy Piper <andy@xemacs.org>
9786 * gui-x.c (popup_selection_callback): Only set action_occurred
9787 when we really have an image instance.
9788 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9790 2000-08-23 Andy Piper <andy@xemacs.org>
9792 * gui-msw.c (mswindows_handle_gui_wm_command): set
9794 * gui-x.c (popup_selection_callback): ditto.
9796 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9797 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9798 (struct Lisp_Image_Instance): add action_occurred flag.
9800 * glyphs.c (redisplay_subwindow): use action_occurred flag.
9801 (image_instance_changed): ditto.
9802 (reset_frame_subwindow_instance_cache): only unmap windows - do
9803 not remove them from the cache also.
9805 * glyphs-widget.c (tab_control_update): better debug.
9806 (progress_gauge_update): ditto.
9807 (layout_update): ditto.
9808 (layout_instantiate): ditto.
9809 (tab_control_order_only_changed): cope with null pending items.
9811 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9812 debug. Force selection of an item when an action occurred. Cope
9813 with null pending_items.
9814 (mswindows_progress_gauge_redisplay): better debug.
9815 * glyphs-x.c (x_tab_control_redisplay): ditto.
9817 * redisplay.c (redisplay_frame): reset the frame cache if the
9820 * window.c (Fset_window_configuration): potentially re-enable
9822 (window_unmap_subwindows): need to finalize instances here since
9823 it is only used in mark_window_as_deleted.
9825 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
9827 * nas.c (SndOpenDataForReading):
9828 nas.c (WaveOpenDataForReading):
9829 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9830 Somehow escaped from the 2000-08-14 patch.
9832 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
9834 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9835 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9837 2000-08-21 Andy Piper <andy@xemacs.org>
9839 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9840 window if it is not already displayed.
9842 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9843 it is not already displayed.
9845 * window.c (Fset_window_configuration): don't reset the frame
9848 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9849 instances from the frame cache if we are actually finalizing them.
9850 (reset_frame_subwindow_instance_cache): reset frame cache only
9851 after unmapping everything.
9852 (map_subwindow): set displayed flag after mapping.
9854 2000-08-21 Martin Buchholz <martin@xemacs.org>
9856 * data.c (indirect_function):
9857 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9859 * eval.c (function_argcount):
9860 Use original function when signaling errors.
9862 2000-08-18 Andy Piper <andy@xemacs.org>
9864 * frame.c (delete_frame_internal): use new
9865 free_frame_subwindow_instances name.
9867 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9868 (add_tab_item): make return type correct.
9869 (mswindows_tab_control_instantiate): assert index of tab.
9870 (mswindows_tab_control_redisplay): Re-code to use
9871 gui_item_equal_sans_selected and gui_item_list_find_selected.
9873 * glyphs-widget.c (tab_control_update): Correct comment.
9875 * window.c (window_unmap_subwindows): use new
9876 unmap_subwindow_instance_cache_mapper.
9877 (window_unmap_subwindows_cache_mapper): deleted.
9878 (Fset_window_configuration): comparisons should now be with
9879 EQ. Preserve the subwindow instance cache across configuration
9881 (allocate_window): ditto.
9882 (make_dummy_parent): ditto.
9884 * glyphs.c (free_frame_subwindow_instances): rename from
9885 free_frame_subwindow_instance_cache. finalize all instances rather
9886 than just those in the display cache.
9887 (finalize_all_subwindow_instances): walk windows unmapping and
9888 finalizing subwindows.
9889 (unmap_subwindow_instance_cache_mapper): moved from
9890 window.c. Allow finalization as well as unmapping.
9892 * gui.c (gui_item_list_find_selected): new function.
9894 * gui.h (gui_item_list_find_selected): declare.
9896 * glyphs-x.c (x_tab_control_redisplay): pick tab
9897 explicitly. Re-code to use gui_item_equal_sans_selected and
9898 gui_item_list_find_selected.
9900 * glyphs-x.h: add lwlib-utils.h
9902 * buffer.c (Frecord_buffer): undo previous change.
9904 2000-08-09 Vin Shelton <acs@xemacs.org>
9906 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9907 possible. Create temporary files more securely. The patch was
9908 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9909 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
9910 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9913 2000-08-07 Ben Wing <ben@xemacs.org>
9915 * getloadavg.c: remove duplicate (and windows-breaking)
9916 includes of fcntl.h and sys/file.h.
9918 * nt.c: remove duplicate getloadavg() definition.
9920 * sysdll.h (Qdll_filename_encoding): add missing stand-in
9923 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
9925 * eval.c (function_argcount): If function needs to be autoloaded
9926 actually use the loaded definition.
9929 2000-08-05 Ben Wing <ben@xemacs.org>
9931 * getloadavg.c: add prototype for getloadavg(). remove
9932 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9933 of the code). remove duplicate header includes.
9935 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9937 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9938 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9939 useful load average.
9941 * alloc.c (reinit_alloc_once_early): removed references to
9942 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9943 the lisp vars are the only things referencing the malloc_sbrk_*
9944 vars, and they were already if 0'd out. these vars only exist
9945 in the older malloc.c, which is basically unused, and they're
9946 only for informational purposes.
9948 * m\*.h: removed useless VIRT_ADDR_VARIES.
9950 * m\powerpc.h: removed stray NO_ARG_ARRAY.
9952 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
9954 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9955 color if the image is a mono pixmap.
9957 2000-07-30 Ben Wing <ben@xemacs.org>
9959 * Makefile.in.in (release):
9962 * buffer.c (directory_is_current_directory):
9963 * dired-msw.c (mswindows_get_files):
9965 * dired.c (Fdirectory_files):
9966 * dired.c (file_name_completion_stat):
9967 * dired.c (Ffile_attributes):
9968 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9969 preprocessor tricks, to avoid problems on some machines
9972 * callproc.c (egetenv): GC docs.
9975 * console-msw.h (struct mswindows_dialog_id):
9976 * lrecord.h (lrecord_type):
9977 New object for use with MSW dialogs.
9979 * console.h (struct console_methods):
9980 New enable/disable frame methods, for proper modal dialogs.
9982 * device-msw.c (msprinter_default_printer): Fix to follow
9983 proper Mule conventions.
9986 * device-msw.c (signal_open_printer_error):
9987 * device-msw.c (msprinter_init_device):
9988 * device-msw.c (ensure_not_printing):
9989 * device-msw.c (plist_get_margin):
9990 * device-msw.c (Fmsprinter_select_settings):
9991 * device-msw.c (finalize_devmode):
9992 * device-msw.c (Fmsprinter_settings_despecialize):
9993 * device-msw.c (signal_enum_priner_error):
9994 * extents.c (decode_extent):
9995 * extents.c (decode_map_extents_flags):
9996 * extents.c (decode_extent_at_flag):
9997 * extents.c (Fextent_at):
9998 * extents.c (Fextents_at):
9999 * extents.c (symbol_to_glyph_layout):
10000 [[[[2]]]] Use structured errors.
10003 * dialog-msw.c (mswindows_is_dialog_msg):
10004 * dialog-msw.c (mark_mswindows_dialog_id):
10005 * dialog-msw.c (dialog_proc):
10006 * dialog-msw.c (handle_question_dialog_box):
10007 * dialog-msw.c (syms_of_dialog_mswindows):
10008 Define new object to clean up marking; use it as a dialog identifier.
10009 Call new delete-dialog-box-hook.
10011 * dialog-x.c (dbox_selection_callback):
10012 * dialog-x.c (dbox_descriptor_to_widget_value):
10013 * dialog-x.c (x_make_dialog_box_internal):
10014 Call new delete-dialog-box-hook.
10018 * dialog.c (syms_of_dialog):
10019 * dialog.c (vars_of_dialog):
10020 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10023 * eval.c (signal_call_debugger):
10024 when noninteractive, output stack traces on the console instead
10025 of in a (never-seen) buffer.
10027 * eval.c (signal_type_error):
10028 * eval.c (invalid_argument_2):
10030 new funs for use w/structured errors.
10033 * event-Xt.c (x_to_emacs_keysym):
10034 * event-Xt.c (describe_event):
10035 * event-Xt.c (emacs_Xt_event_handler):
10036 * event-Xt.c (vars_of_event_Xt):
10038 * event-msw.c (mswindows_wnd_proc):
10039 * event-msw.c (vars_of_event_mswindows):
10040 rename {x,mswindows}-debug-events to debug-{}-events for
10041 consistency with other debug-foo variables.
10044 document next-event more clearly.
10046 * fileio.c (Ffile_name_directory):
10047 * fileio.c (Ffile_name_nondirectory):
10048 * fileio.c (Funhandled_file_name_directory):
10049 * fileio.c (file_name_as_directory):
10050 * fileio.c (Ffile_name_as_directory):
10051 * fileio.c (directory_file_name):
10052 * fileio.c (Fdirectory_file_name):
10053 * fileio.c (Fmake_temp_name):
10054 * fileio.c (Ffile_truename):
10055 * fileio.c (Fsubstitute_in_file_name):
10056 * fileio.c (expand_and_dir_to_file):
10057 * fileio.c (barf_or_query_if_file_exists):
10058 * fileio.c (check_executable):
10059 * fileio.c (Ffile_exists_p):
10060 * fileio.c (Ffile_writable_p):
10061 * fileio.c (Ffile_directory_p):
10062 * fileio.c (Ffile_regular_p):
10063 * fileio.c (Ffile_modes):
10064 * fileio.c (Ffile_newer_than_file_p):
10065 * fileio.c (Fverify_visited_file_modtime):
10066 * fileio.c (Fset_visited_file_modtime):
10067 * fileio.c (auto_save_1):
10072 * frame-msw.c (mswindows_init_frame_1):
10073 * frame-msw.c (mswindows_enable_frame):
10074 * frame-msw.c (error_frame_unsizable):
10075 * frame-msw.c (msprinter_init_frame_1):
10076 * frame-msw.c (msprinter_init_frame_3):
10077 * frame-msw.c (console_type_create_frame_mswindows):
10079 implement new enable/disable frame methods.
10082 * frame-x.c (x_enable_frame):
10083 * frame-x.c (console_type_create_frame_x):
10084 implement new enable/disable frame methods.
10087 * frame.c (Fdisable_frame):
10088 * frame.c (syms_of_frame):
10089 * frame.h (struct frame):
10090 implement new enable/disable frame methods/functions.
10095 * glyphs-msw.c (mswindows_widget_instantiate):
10096 comment that initial-focus should be implemented.
10099 * glyphs-widget.c (check_valid_instantiator):
10100 * glyphs-widget.c (check_valid_orientation):
10101 * glyphs-widget.c (check_valid_tab_orientation):
10102 * glyphs-widget.c (check_valid_justification):
10103 * glyphs-widget.c (check_valid_border):
10104 * glyphs-widget.c (check_valid_callback):
10105 * glyphs-widget.c (check_valid_int_or_function):
10106 * glyphs-widget.c (check_valid_string_or_vector):
10107 * glyphs-widget.c (check_valid_item_list_1):
10108 * glyphs-widget.c (widget_validate):
10109 * glyphs-widget.c (combo_box_validate):
10110 * glyphs-widget.c (widget_instantiate):
10111 * glyphs-widget.c (syms_of_glyphs_widget):
10112 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10113 * glyphs-widget.c (image_instantiator_combo_box):
10114 * glyphs-widget.c (image_instantiator_scrollbar):
10115 * glyphs-widget.c (image_instantiator_tab_control):
10116 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10118 support (unimplemented) keyword initial-focus.
10119 reindent long macros.
10121 * glyphs-x.c (x_redisplay_widget):
10122 * glyphs-x.c (x_button_instantiate):
10123 * glyphs-x.c (x_button_redisplay):
10124 * glyphs-x.c (x_progress_gauge_instantiate):
10125 * glyphs-x.c (x_edit_field_instantiate):
10126 * glyphs-x.c (x_combo_box_instantiate):
10127 * glyphs-x.c (x_tab_control_instantiate):
10128 * glyphs-x.c (x_label_instantiate):
10130 * gui-x.c (button_item_to_widget_value):
10131 * gui-x.c (gui_items_to_widget_values_1):
10132 * gui-x.c (gui_item_children_to_widget_values):
10133 * gui-x.c (gui_items_to_widget_values):
10135 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10136 add new flag to gui-parsing routines to indicate whether
10137 accelerator specs should be supported.
10139 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10141 * glyphs.h (struct Lisp_Image_Instance):
10142 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10143 add initial-focus flag.
10146 * gui.c (syms_of_gui):
10147 * gui.c (vars_of_gui):
10148 clean up menu-no-selection-hook.
10151 support delete-dialog-box-hook.
10153 * lread.c (Fload_internal):
10154 * lread.c (locate_file_in_directory_mapper):
10158 * lrecord.h (struct toolbar_button):
10159 * lrecord.h (syms_of_toolbar):
10160 document how to create a new object.
10162 * menubar-msw.c (mswindows_char_is_accelerator):
10163 may be called on frames w/o menus.
10165 * menubar.c (vars_of_menubar):
10166 clean up :filter docs.
10173 * process-nt.c (validate_signal_number):
10174 * process-nt.c (signal_cannot_launch):
10175 * process-nt.c (nt_create_process):
10176 * process-nt.c (nt_send_process):
10177 * process-nt.c (nt_kill_child_process):
10178 * process-nt.c (nt_open_network_stream):
10179 * process-nt.c (syms_of_process_nt):
10181 delete quote-handling. call new lisp code that does it better.
10183 * process-unix.c (connect_to_file_descriptor):
10184 * process-unix.c (allocate_pty):
10185 * process-unix.c (unix_send_process):
10186 * process-unix.c (unix_kill_child_process):
10187 * process-unix.c (unix_open_network_stream):
10188 * process-unix.c (unix_open_multicast_group):
10192 * process.c (Fstart_process_internal):
10193 (2). need to canonicalize process path even if absolute.
10195 * select-msw.c (symbol_to_ms_cf):
10196 * select-msw.c (ms_cf_to_symbol):
10197 * select-msw.c (cf_is_autofreed):
10198 * select-msw.c (mswindows_destroy_selection):
10200 * select.c (syms_of_select):
10202 support dibv5, fix bugs. (from Mike Alexander)
10204 * select.c (Fget_selection_internal):
10205 * select.c (select_convert_out):
10208 * sysdep.c (xemacs_stat):
10211 * sysdep.c (mkdir):
10212 * sysdep.c (rmdir):
10213 but keep original stat() here because we provide encapsulation
10217 * sysfile.h (fstat):
10218 remove stat garbage.
10221 fix X/MSW conflict.
10222 don't include tchar.h. it's inappropriate because it makes
10223 compile-time distinctions when we want runtime distinctions.
10224 (we provide our own tchar replacements)
10227 use default object printer for toolbar-button.
10230 make sure we don't encapsulate.
10232 * window.c (vars_of_window):
10233 emphasize that temp-buffer-show-hook is obsolete.
10235 2000-08-05 Martin Buchholz <martin@xemacs.org>
10237 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10238 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10240 * events.c (Fevent_timestamp_lessp):
10241 Not 64-bit clean. Use EMACS_INT, not int.
10243 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
10245 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10246 unsigned int and changed the last enum to
10247 lrecord_type_last_built_in_type.
10248 (lrecord_implementations_table): changed prototype to know how
10249 long the array is supposed to be.
10250 (lrecord_type_count): new unsigned int to keep track of the
10251 current number of lisp lrecord types.
10252 (DEFINE_EXTERNAL_LRECORD):
10253 (DECLARE_EXTERNAL_LRECORD): Added these two for external
10254 dynamic-modules to declare new lisp types. They are the same
10255 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10256 int for each new type, and increment lrecord_type_count by 1.
10258 * alloc.c (lrecord_implementations_table): Changed to reference
10259 lrecord_type_last_built_in_type for the size of the array.
10260 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10262 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
10264 * glyphs.h (check_valid_item_list): Renamed from
10265 check_valid_item_list_1.
10267 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10269 * select.c (Qselect_coerce): New.
10270 * select.c (Vselection_coercion_alist): New.
10271 * select.c (syms_of_select): Declare.
10272 * select.c (get-selection-internal): Use it.
10273 Use the new select-coerce functionality.
10275 * select.c (select_coerce): New.
10276 * select.h (select_coerce): Declare.
10277 New function to coerce one type of data into another.
10279 2000-08-03 Martin Buchholz <martin@xemacs.org>
10281 * callproc.c (Fcall_process_internal):
10282 (Fcall_process_internal):
10283 * process-unix.c (unix_create_process):
10284 Save and restore the value of errno, so that error messages are accurate.
10286 2000-08-01 Martin Buchholz <martin@xemacs.org>
10288 * elhash.c (print_hash_table):
10289 Fix printing of hash tables to also use `key-and-value' instead of `t'.
10290 Prettify docstrings and indentation.
10292 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
10294 * window.c (Fwindow_pixel_edges): Subtract frame border and
10297 2000-07-31 Andy Piper <andy@xemacs.org>
10299 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10300 will acknowledge the change.
10302 * glyphs.h: declare tab_control_order_only_changed.
10304 * glyphs-x.c (x_tab_control_redisplay): use
10305 tab_control_order_only_changed.
10307 * glyphs-widget.c (tab_control_order_only_changed): new function.
10309 * glyphs-msw.c (mswindows_tab_control_redisplay): use
10310 tab_control_order_only_changed.
10312 * gui.c (gui_item_equal_sans_selected): new function.
10313 (gui_item_equal): use it.
10315 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10316 :properties in favor of :items..
10318 * glyphs-widget.c (check_valid_item_list): rename from
10319 check_valid_item_list_1.
10320 (check_valid_item_list_1): renamed.
10321 (combo_box_validate): deprecate :properties in favor of :items.
10322 (widget_instantiate): ditto.
10323 (tab_control_update): ditto.
10324 (image_instantiator_combo_box): ditto.
10325 (image_instantiator_tree_view): ditto.
10326 (image_instantiator_tab_control): ditto.
10327 (layout_post_instantiate): remove dead code.
10329 * print.c (debug_print_no_newline): only write to debugger if in
10332 * elhash.c (Fmake_hash_table): update doc string.
10334 * event-msw.c (mswindows_wnd_proc): don't allow processing of
10335 messages whilst in GC. This at least stops XEmacs crashing but has
10336 the potential for wierd behaviour.
10338 2000-07-31 Martin Buchholz <martin@xemacs.org>
10341 Make existence of s&m files optional.
10343 * s/bsd386.h: Remove HAVE_GETLOADAVG.
10344 * s/freebsd.h: Remove HAVE_GETLOADAVG.
10345 * s/gnu.h: Remove HAVE_GETLOADAVG.
10346 * s/netbsd.h: Remove HAVE_GETLOADAVG.
10347 * s/sol2.h: Remove HAVE_GETLOADAVG.
10348 * lisp.h: Remove getloadavg() declaration.
10350 Include <sys/loadavg.h> if available.
10351 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10352 * config.h.in: Group together getloadavg()-related macros.
10353 Use only configure-time tests to detect getloadavg().
10355 2000-07-30 Martin Buchholz <martin@xemacs.org>
10357 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10359 2000-07-25 Andy Piper <andy@xemacs.org>
10361 * syswindows.h: add tchar.h for native builds.
10363 * frame.c (syms_of_frame): remove set-glyph-image.
10365 * general-slots.h: add Qset_glyph_image.
10367 * glyphs-widget.c (layout_update): add domain arg to
10369 (syms_of_glyphs_widget): remove set-glyph-image.
10371 2000-07-23 Ben Wing <ben@xemacs.org>
10373 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10376 2000-07-22 Andy Piper <andy@xemacs.org>
10378 * symsinit.h: add syms_of_win32().
10380 * gui-msw.c (syms_of_gui_mswindows): remove
10381 Fmswindows_shell_execute.
10382 (Fmswindows_shell_execute): moved to win32.c.
10384 * emacs.c (main_1): add syms_of_win32 ().
10386 * win32.c (init_potentially_nonexistent_functions): rewrite in
10387 compiler-friendly terms.
10388 (Fmswindows_shell_execute): move here from gui-msw.c.
10389 (syms_of_win32): new.
10391 * device-msw.c (Fmswindows_printer_list): clean up args to
10393 Don't include tchar under cygwin or mingw.
10394 (msprinter_default_printer): make cygwin-friendly.
10396 2000-07-21 Andy Piper <andy@xemacs.org>
10398 * glyphs-widget.c (image_instantiator_tree_view): use tab
10399 control's update function.
10400 (layout_property): new function. Retrieve items.
10402 * glyphs-msw.c (mswindows_tree_view_redisplay): new
10403 function. Re-populate the tree view from the pending items.
10405 * glyphs.c (instantiate_image_instantiator): Make sure the domain
10406 is designated the parent if the domain is an image instance. This
10407 is needed so that dirtiness can be cascade up the hierarchy and
10408 thus for layout children to be redisplayed correctly.
10409 (allocate_image_instance): rename glyph -> parent.
10411 * redisplay.h: change redisplay_output_layout signature.
10413 * redisplay-msw.c (mswindows_output_display_block): use domain
10416 * redisplay-x.c (x_output_display_block): use domain arg.
10418 2000-07-10 Andy Piper <andy@xemacs.org>
10420 * window.c (Fset_window_configuration): add comment.
10422 * redisplay-output.c (compare_runes):
10423 (redisplay_output_subwindow): redisplay rather than update subwindow.
10424 (redisplay_output_layout): ditto.
10426 * redisplay-msw.c (mswindows_frame_output_end):
10427 (mswindows_frame_output_end): make defer window pos optional.
10429 * lisp.h: add Flast.
10431 * glyphs.h (struct image_instantiator_methods): add dest_mask top
10432 normalize method. Change update method to be for changed
10433 instantiators. Add redisplay method. Change signature of layout
10435 (struct Lisp_Image_Instance): add instantiator.
10436 (IMAGE_INSTANCE_INSTANTIATOR): new.
10437 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10438 (XIMAGE_INSTANCE_INSTANTIATOR): new.
10439 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10442 (find_instantiator_differences): new function.
10443 (Fset_instantiator_property): new convenience function.
10444 (check_image_instance_structure): strictly check for vector
10446 (normalize_image_instantiator): make non-static.
10447 (instantiate_image_instantiator): pass on dest_mask and use new
10448 signatures for image_instance_layout and friends.
10449 (mark_image_instance): mark the instantiator. Mark the subwindow
10450 face not the widget face.
10451 (image_instance_equal): add instantiator.
10452 (image_instance_hash): ditto.
10453 (allocate_image_instance): ditto.
10454 (Fset_image_instance_property): removed.
10455 (Fimage_instance_file_name): ditto.
10456 (Fcolorize_image_instance): ditto.
10457 (image_instance_layout): add offsets to be set.
10458 (update_image_instance): new function. update an image instance
10459 from its changed instantiator.
10460 (inherit_normalize): add dest_mask.
10461 (xbm_normalize): ditto.
10462 (xface_normalize): ditto.
10463 (xpm_normalize): ditto.
10464 (text_update): set_property -> update.
10465 (image_instantiate): use the glyph identity as a hash key, not the
10467 (glyph_width): use new image_instance_layout signature.
10468 (glyph_ascent): ditto.
10469 (glyph_descent): ditto.
10470 (glyph_height): ditto.
10471 (glyph_query_geometry): ressurrect.
10472 (glyph_layout): ditto.
10473 (redisplay_subwindow): update -> redisplay.
10474 (syms_of_glyphs): add Fset_instantiator_property.
10475 (image_instantiator_format_create): set_property -> update.
10478 (autodetect_normalize): add dest_maks to signature.
10479 (x_redisplay_subwindow): update -> redisplay.
10480 (x_redisplay_widget): ditto.
10481 (x_button_redisplay): ditto.
10482 (x_progress_gauge_redisplay): ditto.
10483 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10485 (console_type_create_glyphs_x): update -> redisplay.
10486 (image_instantiator_format_create_glyphs_x): ditto.
10489 (check_valid_instantiator): disallow glyphs in the instantiator,
10490 they must now be vectors.
10491 (check_valid_instantiator_list): ditto.
10492 (glyph_instantiator_to_glyph): use internal symbol rather than
10494 (widget_update): renamed from widget_set_property. Call cascaded
10496 (redisplay_widget): renamed from update_widget.
10497 (widget_layout): image_instance_layout now takes position as well
10499 (widget_normalize): ditto.
10500 (widget_instantiate): ditto.
10501 (tab_control_query_geometry) ditto.:
10502 (tab_control_update): renamed from tab_control_set_property.
10503 (progress_gauge_update): set_property -> update.
10504 (layout_normalize): rewrite so that child instantiators are
10506 (layout_update): new function. Create glyphs from the normalized
10507 children and cope with any other layout keywords. We do not
10508 instantiate children here that will be take care of by
10509 redisplay_output_layout.
10510 (layout_instantiate): call layout_update and not much else.
10511 (layout_post_instantiate): not sure whether this is needed
10513 (layout_query_geometry): query glyph geometry rather than
10514 image_instance geometry.
10515 (layout_layout): set offsets from pass in parameters. Use glyph
10516 geometry and layout functions rather than image instance ones.
10517 (native_layout_layout): ditto.
10518 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10519 (image_instantiator_widget): set_property -> update.
10520 (image_instantiator_buttons): ditto.
10521 (image_instantiator_progress_guage): ditto.
10522 (image_instantiator_tab_control): ditto.
10523 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10524 (image_instantiator_layout): add update method.
10526 * glyphs-msw.c (bmp_normalize):
10527 (mswindows_resource_normalize): add dest_mask so that it can be
10528 proprogated by layout_normalize.
10529 (begin_defer_window_pos): make optional because it may not be the
10530 right thing to do and it introduces differences with X.
10531 (mswindows_unmap_subwindow): ditto.
10532 (mswindows_map_subwindow): ditto.
10533 (mswindows_redisplay_subwindow): renamed from
10534 mswindows_update_subwindow.
10535 (mswindows_redisplay_widget): ditto.
10536 (mswindows_button_redisplay): renamed from
10537 mswindows_button_update. Update is now what the instantiation
10538 function does for a changed instantiator.
10539 (mswindows_progress_gauge_instantiate): set the progress value
10540 here if appropriate.
10541 (mswindows_tab_control_redisplay): cope with re-ordering of the
10542 members of the tab widget by simply selecting the new top
10543 widget. This makes things appear ok if you click on a tab.
10544 (mswindows_combo_box_instantiate): image_instance_layout now takes
10545 position as well as size.
10546 (mswindows_progress_gauge_redisplay): renamed from
10547 mswindows_progress_gauge_update.
10548 (console_type_create_glyphs_mswindows): fix update -> redisplay.
10549 (image_instantiator_format_create_glyphs_mswindows): ditto.
10551 * glyphs-eimage.c (jpeg_normalize):
10554 (tiff_normalize): add dest_mask so that it can be proprogated by
10558 (print_hash_table):
10559 (hash_table_weakness_validate):
10560 (decode_hash_table_weakness):
10561 (Fhash_table_weakness):
10562 (Fhash_table_type):
10563 (syms_of_elhash): use Ben's naming scheme for hashtable types..
10565 * console.h (struct console_methods): move update_* to
10568 2000-07-20 Ben Wing <ben@xemacs.org>
10570 * *.[ch] (XSETOBJ): remove unused middle argument.
10571 lisp-disunion.h: correct wrap_object() to one argument.
10573 2000-07-15 Ben Wing <ben@xemacs.org>
10576 * s/cygwin32.h (CYGWIN_CONV_PATH):
10577 Add missing logb prototype for v1.1.
10578 Use post-b20 names and alias to pre-b20 names when pre-b20.
10580 * s/windowsnt.h: [5].
10582 2000-07-15 Ben Wing <ben@xemacs.org>
10584 * Makefile.in.in (x_objs):
10585 * Makefile.in.in (sheap_objs):
10586 * Makefile.in.in (objs):
10587 added win32.o, cosmetic cleanups.
10589 * alloc.c (Fmake_byte_code):
10590 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10591 etc. macros which declare their own args now.
10593 * alloc.c (syms_of_alloc):
10594 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10597 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10599 * buffer.c (Fget_file_buffer):
10600 Fixed GCPRO problem.
10602 * buffer.c (get_truename_buffer):
10603 Fixed comment about GC checking.
10605 * buffer.c (syms_of_buffer):
10606 Undeclared those dedicated frame funs.
10610 Define convenience macros for internal/external conversions.
10611 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10612 and Qenvironment_variable_encoding for cleaner code.
10615 Remove dedicated-frame; in lisp.
10617 * bytecode.c (funcall_compiled_function):
10620 * bytecode.c (syms_of_bytecode):
10624 * console-msw.c (mswindows_show_console): Rewrote.
10626 * console-msw.c (Fmswindows_debugging_output): New.
10627 Sends to OutputDebugString (special MSWin debugger interface).
10629 * console-msw.c (Fmswindows_message_box):
10630 Fixed stupid bugs so it works when called from kill-emacs.
10632 * console-msw.c (syms_of_console_mswindows):
10633 Declare Fmswindows_debugging_output.
10636 New MSWin prototypes.
10638 * console-msw.h (struct mswindows_frame):
10639 New entry last-click-mods for improved button-modifier support.
10641 * console-msw.h (FRAME_MSWINDOWS_POPUP):
10642 New struct entry `popup' with corresponding accessor.
10645 * console-x.c (split_up_display_spec):
10646 * console-x.c (get_display_arg_connection):
10647 * console-x.c (x_semi_canonicalize_console_connection):
10648 * console-x.c (x_canonicalize_device_connection):
10649 [[[6]]]: Change char to more specific type.
10650 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10652 * console-x.c (x_semi_canonicalize_console_connection):
10653 * console-x.c (x_canonicalize_device_connection):
10654 [[[9]]]: Fix up error signalling to use new structured error system.
10657 [[[4]]]: Define codesys aliases:
10658 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10659 Qx_color_name_encoding, Qx_display_name_encoding.
10661 * console.h (struct console_methods):
10662 New method make_dialog_box_internal supersedes older
10663 popup_dialog_box method.
10666 Define many new errors, part of new structured errors.
10668 * data.c (init_errors_once_early):
10669 * data.c (syms_of_data):
10672 * device-msw.c (mswindows_init_device):
10673 [[[5]]]: Cleanup to support NT 3.51.
10675 * device-msw.c (decode_devmode): Cleanup.
10677 * device-msw.c (mswindows_handle_print_setup_dialog_box):
10678 * device-msw.c (mswindows_handle_print_dialog_box):
10679 * device-msw.c (mswindows_handle_page_setup_dialog_box):
10680 * device-msw.c (syms_of_device_mswindows):
10681 Delete the dialog box primitives recently introduced by Kirill and
10682 instead interface to general dialog box interface.
10685 * device-x.c (compute_x_app_name):
10686 * device-x.c (x_init_device):
10687 * device-x.c (Fx_valid_keysym_name_p):
10688 * device-x.c (Fx_set_font_path):
10692 * device.h (wrap_device): New.
10693 First of its kind; meant to replace XSETDEVICE.
10695 * dialog-msw.c: Many file-dialog symbols.
10697 * dialog-msw.c (mswindows_register_popup_frame): New.
10698 * dialog-msw.c (mswindows_is_dialog_msg): New.
10699 For supporting kbd traversal in dialog boxes.
10701 * dialog-msw.c (dialog_proc):
10702 Support hitting ESC in dialogs.
10704 * dialog-msw.c (struct):
10705 Common dialog box errors.
10707 * dialog-msw.c (handle_file_dialog_box): New.
10708 Add file dialog code.
10710 * dialog-msw.c (handle_question_dialog_box):
10711 Redo existing code to support new question dialog syntax.
10713 * dialog-msw.c (console_type_create_dialog_mswindows):
10714 We support new dialog console method.
10716 * dialog-msw.c (syms_of_dialog_mswindows):
10717 * dialog-msw.c (vars_of_dialog_mswindows):
10718 New file dialog symbols, vars.
10721 * dialog-x.c (maybe_run_dbox_text_callback):
10722 * dialog-x.c (dbox_descriptor_to_widget_value):
10723 * dialog-x.c (x_make_dialog_box_internal):
10724 * dialog-x.c (console_type_create_dialog_x):
10725 Mule-ize entire file.
10726 Redo to support question dialog syntax.
10730 * dialog.c (Fmake_dialog_box_internal):
10731 * dialog.c (syms_of_dialog):
10732 Kill old popup-dialog-box, replace with new primitive.
10733 Just call device method or signal error.
10735 * eldap.c (Fldap_open):
10736 * eldap.c (Fldap_search_basic):
10737 * eldap.c (Fldap_add):
10738 * eldap.c (Fldap_modify):
10743 * emacs.c (make_arg_list_1):
10744 * emacs.c (make_arg_list):
10745 Mule-ize call to dll_init().
10749 * emacs.c (make_argc_argv):
10750 * emacs.c (free_argc_argv):
10751 * emacs.c (init_cmdargs):
10752 * emacs.c (main_1):
10753 * emacs.c (Fkill_emacs):
10754 * emacs.c (Fdump_emacs):
10755 Update comments about what can be used in syms_* etc.
10756 Call init_win32() when necessary.
10757 Fix up MS Win dialog box in kill-buffer to actually work right.
10768 * eval.c (condition_case_3):
10770 * eval.c (function_argcount):
10771 * eval.c (funcall_lambda):
10774 * eval.c (type_error): New.
10775 * eval.c (maybe_type_error): New.
10776 * eval.c (continuable_type_error): New.
10777 * eval.c (maybe_continuable_type_error): New.
10778 * eval.c (type_error_with_frob): New.
10779 * eval.c (maybe_type_error_with_frob): New.
10780 * eval.c (continuable_type_error_with_frob): New.
10781 * eval.c (maybe_continuable_type_error_with_frob): New.
10782 New functions for use with structured errors.
10785 * event-Xt.c (x_event_to_emacs_event):
10786 Buttons are now modifiers too.
10788 * event-Xt.c (emacs_Xt_current_event_timestamp):
10789 Implement new event method.
10790 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10793 * event-msw.c (ntpipe_shove_writer): [5].
10794 * event-msw.c (mswindows_enqueue_mouse_button_event):
10795 * event-msw.c (mswindows_drain_windows_queue):
10796 * event-msw.c (mswindows_wnd_proc): [7].
10797 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10798 * event-msw.c (mswindows_modifier_state):
10799 Throughout: support new button modifiers.
10801 * event-msw.c (emacs_mswindows_current_event_timestamp):
10802 Implement new event method.
10803 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10806 * event-stream.c (event_stream_current_event_timestamp): New.
10807 * event-stream.c (maybe_kbd_translate): New functionality.
10808 * event-stream.c (vars_of_event_stream):
10809 Document new kbd-translate-table functionality.
10811 * event-stream.c (Fcurrent_event_timestamp): New.
10812 New primitive for use in fabricated events.
10813 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10815 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10818 * events.c (Fmake_event):
10819 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10823 * events.c (format_event_object): fix gcc warnings.
10825 * events.c (Fevent_timestamp): Document new primitives.
10827 * events.c (TIMESTAMP_HALFSPACE): New.
10829 * events.c (Fevent_timestamp_lessp): New. New primitive for
10830 comparing timestamps correctly (half-space algorithm).
10832 * events.c (Fevent_modifier_bits): Doc fix.
10834 * events.c (Fevent_modifiers): Major doc addition.
10835 * events.c (event_x_y_pixel_internal): Typo fix.
10836 * events.c (syms_of_events): Declare new primitives.
10839 Update long comment for button modifiers, timestamps.
10841 * events.h (struct event_stream):
10842 New current_event_timestamp method.
10845 * extents.c (extent_in_region_p):
10846 * extents.c (decode_extent):
10847 * extents.c (Fset_extent_parent):
10848 * extents.c (decode_map_extents_flags):
10852 * extents.c (struct extent_at_arg):
10853 * extents.c (decode_extent_at_flag):
10854 * extents.c (extent_at_mapper):
10855 * extents.c (extent_at_bytind):
10856 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10857 * extents.c (Fextents_at): New primitive. [9].
10858 * extents.c (symbol_to_glyph_layout): [9].
10859 Support new primitive `extents-at'.
10862 * extents.c (get_text_property_bytind):
10863 extent_at_bytind has another arg.
10866 * extents.c (syms_of_extents): New primitive.
10868 * file-coding.c (Fmake_coding_system): [1].
10869 * file-coding.c (subsidiary_coding_system): fix gcc warning
10870 * file-coding.c (syms_of_file_coding): [2].
10872 * fileio.c (Fexpand_file_name):
10873 * fileio.c (Fsysnetunam):
10874 * fileio.c (Ffile_exists_p):
10875 * fileio.c (Ffile_executable_p):
10876 * fileio.c (Fverify_visited_file_modtime):
10879 * fileio.c (syms_of_fileio): [2].
10881 * filelock.c (lock_file_1):
10882 * filelock.c (current_lock_owner):
10883 * filelock.c (lock_if_free):
10884 * filelock.c (lock_file):
10885 * filelock.c (unlock_file):
10888 * fns.c (concat): Fix gcc warning.
10891 * fns.c (Fold_member):
10893 * fns.c (Fold_memq):
10894 * fns.c (memq_no_quit):
10896 * fns.c (Fold_assoc):
10898 * fns.c (Fold_assq):
10899 * fns.c (assq_no_quit):
10901 * fns.c (Fold_rassoc):
10903 * fns.c (Fold_rassq):
10904 * fns.c (rassq_no_quit):
10906 * fns.c (Fold_delete):
10908 * fns.c (Fold_delq):
10909 * fns.c (delq_no_quit):
10910 * fns.c (Fremassoc):
10911 * fns.c (Fremassq):
10912 * fns.c (remassq_no_quit):
10913 * fns.c (Fremrassoc):
10914 * fns.c (Fremrassq):
10915 * fns.c (remrassq_no_quit):
10916 * fns.c (Freverse):
10920 * frame-msw.c (mswindows_init_frame_1):
10921 * frame-msw.c (mswindows_delete_frame):
10922 Register popups with dialog code so keyboard traversing works.
10924 * frame-tty.c (tty_raise_frame_no_select): [1].
10927 * frame-x.c (x_set_frame_text_value):
10928 * frame-x.c (x_set_frame_properties):
10929 * frame-x.c (x_create_widgets):
10933 * frame.c (Fmouse_pixel_position): Minor doc fixes.
10935 * frame.h (wrap_frame): New.
10936 Macro like wrap_device.
10939 * general.c (SYMBOL):
10940 * general.c (syms_of_general):
10941 Major reorg. This is now just a wrapper and symbols themselves
10942 are listed in general-slots.h.
10944 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10945 * glyphs-msw.c (mswindows_resource_instantiate): [5].
10947 * glyphs-msw.c (mswindows_native_layout_instantiate):
10948 Add DS_CONTROL so keyboard traversal will work.
10951 * glyphs-widget.c (syms_of_glyphs_widget):
10952 Move some symbols to general-slots.h.
10955 * glyphs-x.c (xbm_instantiate_1):
10956 * glyphs-x.c (x_xbm_instantiate):
10957 * glyphs-x.c (x_xface_instantiate):
10958 * glyphs-x.c (autodetect_instantiate):
10959 * glyphs-x.c (cursor_font_instantiate):
10960 * glyphs-x.c (x_update_widget):
10961 * glyphs-x.c (x_widget_instantiate):
10962 * glyphs.c (bitmap_to_lisp_data):
10963 * glyphs.c (pixmap_to_lisp_data):
10966 * glyphs.c (syms_of_glyphs):
10970 * gui-x.c (print_widget_value):
10971 * gui-x.c (menu_separator_style_and_to_external):
10972 * gui-x.c (add_accel_and_to_external):
10973 * gui-x.c (button_item_to_widget_value):
10974 * gui-x.c (gui_items_to_widget_values_1):
10975 * gui-x.c (gui_items_to_widget_values):
10976 * gui-x.c (syms_of_gui_x):
10977 * gui-x.c (vars_of_gui_x):
10978 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
10982 Muleize, prototype changes matching gui-x.c.
10985 * gui.c (separator_string_p):
10986 * gui.c (gui_item_add_keyval_pair):
10987 * gui.c (make_gui_item_from_keywords_internal):
10988 * gui.c (signal_too_long_error):
10989 * gui.c (parse_gui_item_tree_item):
10990 * gui.c (syms_of_gui):
10991 * gui.c (vars_of_gui):
10993 menu-no-selection-hook moved here (used by MSWin).
10994 Move some symbols to general-slots.h.
10998 * insdel.c (get_buffer_pos_char):
10999 * insdel.c (get_buffer_range_char):
11002 * keymap.c (keymap_lookup_directly):
11003 * keymap.c (keymap_store):
11004 * keymap.c (ensure_meta_prefix_char_keymapp):
11005 * keymap.c (describe_map):
11007 Support new button modifiers.
11009 * lisp-disunion.h (wrap_object):
11010 * lisp-disunion.h (XSETOBJ):
11011 Rename make_obj to wrap_object.
11014 * lisp-union.h (make_int):
11015 * lisp-union.h (make_char):
11016 Support wrap_object.
11019 * lisp.h (LIST_LOOP):
11020 * lisp.h (EXTERNAL_LIST_LOOP):
11021 * lisp.h (LIST_LOOP_2):
11022 * lisp.h (EXTERNAL_LIST_LOOP_1):
11023 * lisp.h (EXTERNAL_LIST_LOOP_2):
11024 * lisp.h (EXTERNAL_LIST_LOOP_3):
11025 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11026 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11027 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11028 * lisp.h (EXTERNAL_ALIST_LOOP_5):
11029 * lisp.h (EXTERNAL_ALIST_LOOP_6):
11030 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11031 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11032 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11033 * lisp.h (struct Lisp_Symbol):
11034 * lisp.h (maybe_continuable_error_with_frob):
11035 Fix up section comments.
11036 Add new types for char to indicate usage.
11037 Delete symbols auto-generated from general-slots.h.
11038 Add prototypes for structured error functions.
11039 Add long comments describing looping macros and change interface
11040 so that lvalues are automatically declared.
11041 Add NO_DECLARE macro in case callers want to declare lvalues
11044 * lread.c (read_syntax_error):
11045 * lread.c (continuable_read_syntax_error):
11046 * lread.c (read_structure):
11047 * lread.c (sequence_reader):
11048 * lread.c (read_list_conser):
11049 * lread.c (read_compiled_function):
11050 Rename syntax_error and continuable_syntax_error to avoid clash
11051 with same-named structured error functions.
11053 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11054 * menubar-msw.c (populate_menu_add_item):
11055 * menubar-msw.c (populate_or_checksum_helper):
11060 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11061 Mule-ize whole file.
11063 * menubar.c (Fnormalize_menu_item_name): Add optimization.
11065 * mule-charset.c (Fmake_charset):
11066 * mule-wnnfns.c (Fwnn_set_param):
11069 * ntproc.c (create_child):
11070 * ntproc.c (Fwin32_set_current_locale):
11071 Add comments portending doom.
11074 * objects-msw.c (old_font_enum_callback_2):
11075 * objects-msw.c (font_enum_callback_1):
11076 * objects-msw.c (mswindows_enumerate_fonts):
11080 * objects-x.c (allocate_nearest_color):
11081 * objects-x.c (x_parse_nearest_color):
11082 * objects-x.c (x_initialize_color_instance):
11083 * objects-x.c (x_print_color_instance):
11084 * objects-x.c (x_finalize_color_instance):
11085 * objects-x.c (x_valid_color_name_p):
11086 * objects-x.c (x_initialize_font_instance):
11087 * objects-x.c (x_print_font_instance):
11088 * objects-x.c (valid_x_font_name_p):
11089 * objects-x.c (truename_via_FONT_prop):
11090 * objects-x.c (truename_via_random_props):
11091 * objects-x.c (truename_via_XListFonts):
11092 * objects-x.c (x_font_truename):
11093 * objects-x.c (x_font_instance_truename):
11094 * objects-x.c (x_font_instance_properties):
11095 * objects-x.c (x_list_fonts):
11096 * objects-x.c (x_find_charset_font):
11097 Mule-ize entire file.
11104 * print.c (std_handle_out_external):
11105 * print.c (debug_print_no_newline):
11106 * print.c (syms_of_print):
11107 Output to all debugger kinds in debug-print.
11108 Fix console-output code under MSWin to actually work.
11110 * process-nt.c (send_signal):
11111 * process-nt.c (nt_create_process):
11112 Use newer Unicode macros.
11114 * process-unix.c (unix_create_process):
11115 * process-unix.c (unix_canonicalize_host_name):
11116 * process-unix.c (unix_open_network_stream):
11122 * search.c (syms_of_search):
11125 * select-msw.c (mswindows_destroy_selection):
11128 * select-x.c (symbol_to_x_atom):
11131 * select.c (syms_of_select):
11134 * sound.c (Fplay_sound_file):
11138 * specifier.c (decode_specifier_type):
11139 * specifier.c (Fvalid_specifier_locale_type_p):
11140 * specifier.c (check_valid_locale_or_locale_type):
11141 * specifier.c (decode_locale):
11142 * specifier.c (decode_locale_type):
11143 * specifier.c (decode_locale_list):
11144 * specifier.c (check_valid_domain):
11145 * specifier.c (decode_specifier_tag_set):
11146 * specifier.c (Fcanonicalize_tag_set):
11147 * specifier.c (Fdefine_specifier_tag):
11148 * specifier.c (Fspecifier_tag_predicate):
11149 * specifier.c (check_valid_inst_list):
11150 * specifier.c (check_valid_spec_list):
11151 * specifier.c (decode_how_to_add_specification):
11152 * specifier.c (check_modifiable_specifier):
11153 * specifier.c (specifier_add_spec):
11154 * specifier.c (boolean_validate):
11155 * specifier.c (display_table_validate):
11158 * specifier.c (syms_of_specifier):
11159 Move some symbols to general-slots.h.
11163 * symbols.c (Fmapatoms):
11164 * symbols.c (Fapropos_internal):
11167 * symbols.c (set_default_buffer_slot_variable):
11168 * symbols.c (set_default_console_slot_variable):
11171 * symbols.c (defsymbol_massage_name_1):
11172 * symbols.c (defkeyword_massage_name):
11173 * symbols.c (deferror_1):
11174 * symbols.c (deferror):
11175 * symbols.c (deferror_massage_name_and_message):
11177 * symeval.h (DEFSYMBOL):
11178 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11180 * symbols.c (syms_of_symbols):
11184 * symsinit.h (init_win32): New.
11185 Also new is syms_of_dialog_mswindows.
11188 Add new Unicode macros, missing Cygwin wide-char functions,
11189 convenience conversion macros for Qmswindows_tstr, macros for
11190 encapsulating required MSWin <-> Cygwin filename conversions,
11191 prototype for dynamically-extracted (not in NT 3.51) functions.
11196 * tooltalk.c (Fadd_tooltalk_message_arg):
11197 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11198 * tooltalk.c (Fadd_tooltalk_pattern_arg):
11201 * tooltalk.c (syms_of_tooltalk):
11205 * unexnt.c (unexec):
11206 Fix up headers, declaration of unexec() to be more standard.
11208 2000-07-20 Martin Buchholz <martin@xemacs.org>
11210 * offix.h: Revert change to guard macros - they're used in offix.c!
11212 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11214 * lisp.h: Defsubred Fdelete.
11216 * console-msw.h: (msprinter_default_printer): Added.
11218 * console-msw.c (msprinter_canonicalize_console_connection):
11219 (msprinter_canonicalize_device_connection): Added.
11221 * device-msw.c (msprinter_default_printer):
11222 (Fmswingows_get_default_printer):
11223 (signal_enum_priner_error):
11224 (Fmswingows_printer_list): Added.
11226 2000-07-19 Martin Buchholz <martin@xemacs.org>
11228 * XEmacs 21.2.35 is released.
11230 2000-07-19 Martin Buchholz <martin@xemacs.org>
11232 * select-x.c (x_handle_selection_request):
11233 Text selected in xemacs and pasted into xterm failed to appear.
11234 Spelling fixes and cosmetic changes.
11236 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11238 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11239 XEmacs frame (fix for doubling chars in dialog boxes).
11241 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11243 * select.c (select_convert_in, select_convert_out):
11244 Don't call intern() every time.
11246 * select.c (Qselect_convert_in, Qselect_convert_out): New.
11247 * select.c (vars_of_select): Initialise them.
11249 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11251 * select.c (selection-coercible-types): New.
11253 * select.c (own-selection-internal):
11254 * select.c (get-selection-internal):
11255 MULE bug fix - these should default to COMPOUND_TEXT and not
11256 STRING for MULE. I think.
11258 * select.c (select_convert_out): Use selection-coercible-types
11259 to find types that we can attempt to perform coercions on.
11261 2000-07-18 Martin Buchholz <martin@xemacs.org>
11265 Add coding: cookie to identify encoding.
11267 * mule-canna.c (CANNA_mode_keys): make static.
11268 Use proper prototypes, even for functions of no arguments.
11269 Remove external prototype for Fding().
11271 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11273 * select.c (syms_of_select): Add missing DEFSUBR.
11275 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11277 * select.c (get_selection_internal, own_selection_internal):
11278 Make the type default to STRING, rather than placing a nil type
11279 into Vselection_alist.
11281 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11283 * gpmevent.c (tty_selection_exists_p):
11284 * gpmevent.c (tty_own_selection):
11285 Updated parameter lists.
11287 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11289 * select.h (selection-alist): Removed declaration.
11291 * select.h (get_local_selection):
11292 * select.c (get_local_selection):
11295 * select.h (convert_selection): Removed declaration.
11296 * select.c (convert_selection): Removed.
11297 This function belongs in Lisp.
11299 * select.h (select_convert_in): Declare.
11300 * select.h (select_convert_out): Declare.
11301 * select.c (select_convert_in): New.
11302 * select.c (select_convert_out): New.
11303 New conversion functions for other files to call.
11305 * select.h (select_notify_buffer_kill): Declare.
11306 * select.c (select_notify_buffer_kill): New.
11307 New functions that get called from kill-buffer.
11309 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11310 X-specific lisp code.
11312 * select.h: Declare some of the lisp-visible functions for
11315 * select.c (clean_local_selection_data): Removed. This was
11316 a disgusting function, and previously should have been in
11317 select-x.c in any case. The functionality is now provided
11318 in select-convert-from-integer (select.el).
11320 * select.c (available-selection-types): Fixed stupidity where
11321 INTEGER and ATOM got added twice. Also add STRING when we see an
11324 * select.c (get-selection-internal): Removed symbol stripping. No
11325 longer causes conversion when data comes from the internal cache.
11327 * select.c (syms_of_select): Added new functions.
11329 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11330 error checking - previously this called abort!
11332 * select-x.c (x_own_selection): Changed comment.
11334 * select-x.c (x_handle_selection_request): Use select_convert_out.
11335 Don't mess with selection-alist; it's an internal variable of select.c.
11337 * select-x.c (x_get_foreign_selection): Use select_convert_in.
11339 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11340 rather than messing with selection-alist.
11342 * select-msw.c (mswindows_get_foreign_selection):
11343 Use TO_INTERNAL_FORMAT rather than hacking.
11345 2000-07-14 Martin Buchholz <martin@xemacs.org>
11347 * process-unix.c (unix_open_multicast_group):
11348 (unix_open_multicast_group): Remove useless casts.
11350 2000-07-13 Martin Buchholz <martin@xemacs.org>
11352 * sound.c (Fplay_sound): Fix `unused variable' warning.
11354 * emacs.c (main): Use correct type for _environ on SCO5.
11356 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11358 * console.h (own_selection_method):
11359 * console.h (selection_exists_p_method):
11360 * console.h (available_selection_types_method): New.
11361 * console.h (register_selection_data_type_method): New.
11362 * console.h (selection_data_type_name): New.
11364 * console-msw.h (mswindows_destroy_selection): Declare it. New
11365 function & alist to track GlobalAlloc()'d handles that need
11366 releasing when the clipboard data gets replaced or emptied.
11368 * event-msw.c (mswindows_wnd_proc): Call it.
11370 * lisp.h, general.c (Qappend): New symbol representing a
11373 * select.c (own-selection-internal):
11374 * select.c (selection-exists-p):
11375 * select.c (available-selection-types): New.
11376 * select.c (register-selection-data-type): New.
11377 * select.c (selection-data-type-name): New. New functions to deal
11378 with device-specific selection data formats.
11379 * select.c (selection-converter-out-alist): Renamed.
11380 * select.c (selection-converter-in-alist): New.
11381 * select.c (selection-appender-alist): New. Added new alists.
11382 * select.c (syms_of_select, vars_of_select): Added new symbols &
11384 * select.c (get_local_selection): Split.
11385 * select.c: Removed spurious type checking - selections may now be
11386 of any type, not just strings.
11387 * select.c (own-selection-internal):
11389 * select.h, select.c (convert_selection): New. Created
11390 convert_selection() function based on get_local_selection().
11391 * select.h, select.c (QCF_*): New symbols representing mswindows
11393 * select.h, select.c (Qreplace_all, Qreplace_existing): New
11394 symbols representing `how-to-add' modes.
11396 * select-msw.c (x_sym_p): New.
11397 * select-msw.c (symbol_to_ms_cf): New.
11398 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11399 symbols & clipboard formats. Can also handle string names.
11400 * select-msw.c (mswindows_own_selection):
11401 * select-msw.c (mswindows_selection_exists_p):
11402 Added `data-type' parameter. Use it.
11403 * select-msw.c (mswindows_available_selection_types): New.
11404 * select-msw.c (mswindows_register_selection_data_type): New.
11405 * select-msw.c (mswindows_selection_data_type_name): New.
11406 * select-msw.c (mswindows_own_selection):
11407 * select-msw.c (mswindows_get_foreign_selection):
11408 * select-msw.c (mswindows_selection_exists_p): Rewrote.
11409 * select-msw.c (console_create_select_mswindows): Added new methods.
11410 * select-msw.c (mswindows_destroy_selection): New.
11411 * select-msw.c (Vhandle_alist): New list.
11412 * select-msw.c (mswindows_own_selection):
11414 * select-x.c (x_own_selection):
11415 * select-x.c (x_selection_exists_p):
11416 * select-x.c: Added some comments about maybe using new
11418 * select-x.c (x_own_selection):
11420 * specifier.c: Remove definition of Qappend (now in general.c)
11421 * specifier.c (syms_of_specifier): Remove Qappend.
11423 2000-07-12 Martin Buchholz <martin@xemacs.org>
11425 * config.h.in: Add socklen_t.
11427 * s/decosf4-0.h: No special compiler flags needed or desired.
11428 In particular, undefine _BSD for DEC OSF 4.0.
11430 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11432 * redisplay-msw.c (msprinter_frame_output_end): Added.
11433 (console_type_create_redisplay_mswindows): Referred the above.
11435 * frame.c (setup_frame_without_minibuffer): Do not create a
11436 default minibuffer frame on a printer device.
11438 * frame-msw.c (apply_dc_geometry): Added.
11439 (msprinter_start_page):
11440 (msprinter_init_frame_3):
11441 (msprinter_eject_page): Use it.
11443 * console-msw.h (struct msprinter_frame): Added pix_left and top,
11444 and removed residual duplex and orientation properties.
11446 2000-07-11 Martin Buchholz <martin@xemacs.org>
11448 * eval.c (function_argcount): Work around a DEC CC compiler bug.
11450 * unexalpha.c: Remove system prototypes from C sources!
11452 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
11454 * eval.c: Remove references to M-x edit-options in DEFUNs for
11455 `defvar' and `defconst'.
11457 2000-07-09 Martin Buchholz <martin@xemacs.org>
11459 * config.h.in: Remove SMART_INCLUDE hackery.
11461 PostgreSQL hacking:
11462 * config.h.in: Don't use SMART_INCLUDE.
11464 * postgresql.h: Include libpq-fe.h here. Fix typo.
11465 * inline.c: Simply #include "postgresql.h"
11467 - Don't use SMART_INCLUDE
11468 - Use simply "const".
11469 - Use standard doc string conventions.
11470 - Use correct type for result of PQstatus.
11472 2000-07-09 Martin Buchholz <martin@xemacs.org>
11474 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11476 C++ compilation changes.
11477 * config.h.in (EXTERN_C): Define.
11478 * config.h.in (not): This is also a C++ keyword.
11479 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11480 * cm.c: Use EXTERN_C.
11481 * redisplay-tty.c: Use EXTERN_C.
11482 * sysdep.c: Use EXTERN_C. Remove Gould support.
11484 2000-07-09 Martin Buchholz <martin@xemacs.org>
11486 * general.c: Remove duplicate definition for Qfunction.
11488 2000-07-08 Ben Wing <ben@xemacs.org>
11490 * device-msw.c (msprinter_init_device):
11491 * device-msw.c (sync_printer_with_devmode):
11492 * device-msw.c (handle_devmode_changes):
11493 * device-msw.c (print_dialog_worker):
11494 * device-msw.c (Fmsprinter_apply_settings):
11495 * device-msw.c (hash_devmode):
11496 * device-msw.c (Fmsprinter_settings_despecialize):
11497 use Qmswindows_tstr, not Qctext.
11499 * vm-limit.c (check_memory_limits):
11500 avoid infinite loop printing warning messages.
11502 2000-07-05 Craig Lanning <lanning@scra.org>
11504 * Makefile.in.in: Add support for including the Windows resources
11505 when building with the cygwin and mingw targets.
11507 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11508 not set or not correct.
11509 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11510 (init_initial_directory): Don't try to use $PWD on the
11511 WIN32_NATIVE target.
11514 [[Add -mwindows to eliminate console window.]] not required --ben
11515 (HAVE_NATIVE_SOUND): removed; now handled by configure.
11516 (MAIL_USE_POP): removed; now handled by configure.
11518 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11519 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11520 (HAVE_NATIVE_SOUND): removed; now handled by configure.
11521 (MAIL_USE_POP): removed; now handled by configure.
11522 (ENCAPSULATE_STAT): from Dan Holmsand, added.
11523 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11524 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11526 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11527 up from <winsock.h> via systime.h.
11528 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11529 (getpagesize): from Dan Holmsand, added.
11530 Added #endif which was left dangling by Ben's mega patch; added
11531 comment to help prevent this in the future.
11533 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11535 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11537 * console-msw.h (struct mswindows_device): Removed unnecessary
11538 cached device geometry values.
11539 Added update_tick and an accessor macro.
11540 (Lisp_Devmode): Added lrecord declaration.
11541 (struct msprinter_device): Contain devmode as a Lisp object.
11542 Added mswindows_get_selected_frame_hwnd();
11544 * console.h (struct console_methods): Indentation nitpicking.
11546 * device-msw.c (mswindows_init_device): Do not initialize geometry
11547 cache. Initialize update tick.
11548 (mswindows_device_system_metrics): Ask the device for its geometry.
11549 (global_free_2_maybe):
11550 (devmode_to_hglobal):
11551 (handle_printer_changes):
11552 (ensure_not_printing):
11553 (print_dialog_worker):
11554 (Fmsprinter_print_setup_dialog):
11555 (Fmsprinter_print_dialog):
11556 (plist_get_margin):
11557 (plist_set_margin):
11558 (Fmsprinter_page_setup_dialog): Added functions.
11559 (sync_printer_with_devmode):
11560 (handle_devmode_changes):
11561 (Fmsprinter_get_settings):
11562 (Fmsprinter_select_settings):
11563 (Fmsprinter_apply_settings):
11564 (allocate_devmode):
11565 (Fmsprinter_settings_copy):
11566 (Fmsprinter_settings_despecialize):
11568 (finalize_devmode):
11570 (hash_devmode): Added functions
11571 (syms_of_device_mswindows): Init devmode lrecord class.
11573 * device.h: Added an exfun for find-device.
11575 * event-msw.c (mswindows_wnd_proc): Do not update the cached
11576 geometry; although, recreate the device compatible DC.
11578 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11579 (msprinter_init_frame_3):
11580 (msprinter_frame_property):
11581 (msprinter_internal_frame_property_p):
11582 (msprinter_frame_properties):
11583 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11584 print job properties (will move to device settings).
11586 * lisp.h: Added symbols.
11588 * general.c (syms_of_general): Declared them.
11590 * hash.c (string_hash): Added.
11592 * lrecord.h (lrecord_type): Added devmode lrecord type.
11594 2000-07-02 Mike Sperber <mike@xemacs.org>
11596 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11599 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
11601 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11604 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
11606 * data.c (Fstring_to_number): Don't recognize floating point if
11609 2000-06-22 Martin Buchholz <martin@xemacs.org>
11611 * glyphs-widget.c (tab_control_query_geometry):
11612 (widget_query_geometry):
11613 (button_query_geometry):
11614 * glyphs.c (text_query_geometry):
11615 Enforce type correctness.
11617 2000-06-18 Martin Buchholz <martin@xemacs.org>
11619 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11620 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11622 2000-06-17 Martin Buchholz <martin@xemacs.org>
11624 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11625 conflicts with gcc's fixincluded version of FOO.h.
11627 * glyphs.h (image_instance_geometry): Remove trailing `,'
11629 2000-06-08 Mike Alexander <mta@arbortext.com>
11631 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11632 (shove_thread): Don't write the same output twice
11633 (make_ntpipe_output_stream): Increase priority of shove thread
11634 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11636 (ntpipe_shove_closer): Don't delete the pipe until we're done with
11639 2000-06-12 Ben Wing <ben@xemacs.org>
11641 * s\mingw32.h (sigset):
11642 * s\windowsnt.h (sigset):
11643 rename msw_ to mswindows_ for consistency with general convention.
11645 2000-06-12 Ben Wing <ben@xemacs.org>
11648 * console-msw.c (mswindows_get_console_hwnd):
11649 * console-msw.c (mswindows_ensure_console_allocated):
11650 * console-msw.c (mswindows_hide_console):
11651 * console-msw.c (mswindows_show_console):
11652 * console-msw.c (mswindows_ensure_console_buffered):
11653 * console-msw.c (mswindows_output_console_string):
11654 * console-msw.c (mswindows_windows9x_p):
11656 * device-msw.c (mswindows_get_workspace_coords):
11657 * device-msw.c (mswindows_device_system_metrics):
11658 * dialog-msw.c (mswindows_popup_dialog_box):
11659 * event-msw.c (mswindows_wnd_proc):
11660 * frame-msw.c (mswindows_size_frame_internal):
11661 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11662 * menubar-msw.c (displayable_menu_item):
11663 * menubar-msw.c (mswindows_char_is_accelerator):
11665 * nt.c (mswindows_sigset):
11666 * nt.c (mswindows_sigrelse):
11667 * nt.c (mswindows_sigpause):
11668 * nt.c (mswindows_raise):
11669 * nt.c (timer_proc):
11671 * ntproc.c (find_child_console):
11672 * ntproc.c (sys_kill):
11674 * print.c (std_handle_out_external):
11675 * process-nt.c (find_child_console):
11676 * process-nt.c (send_signal_the_95_way):
11677 * process-nt.c (ensure_console_window_exists):
11678 * process-nt.c (nt_create_process):
11680 rename msw_ to mswindows_ for consistency with general convention.
11684 include nt.h, not syswindows.h.
11686 * nt.c (mswindows_fstat):
11687 * nt.c (mswindows_stat):
11688 prefix mswindows_ instead of attempting to directly override the
11689 library functions. fix declarations.
11692 include syswindows.h. move some sysdep.h stuff here.
11695 include syswindows.h, not <windows.h>.
11703 * sysdep.c (sys_fstat):
11704 * sysdep.c (sys_stat):
11705 call mswindows versions when appropriate.
11708 move mswin decls to nt.h.
11711 add long comment describing appropriate use of the various windows
11714 2000-06-11 Ben Wing <ben@xemacs.org>
11716 * device-x.c: Correct doc string for sixth arg of x-get-resource.
11718 2000-06-10 Ben Wing <ben@xemacs.org>
11720 * Makefile.in.in (release):
11721 Correction to make sure xemacs.exe always dumped when correct.
11725 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11727 * buffer.c (set_buffer_internal):
11728 [[[[2]]]]: Remove HAVE_FEP code.
11730 * buffer.c (init_initial_directory):
11734 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11738 * callproc.c (call_process_cleanup):
11739 * callproc.c (Fold_call_process_internal):
11740 * callproc.c (child_setup):
11741 * callproc.c (getenv_internal):
11742 * callproc.c (init_callproc):
11743 * callproc.c (vars_of_callproc):
11744 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11745 __CYGWIN32__ -> CYGWIN.
11746 DOS_NT -> WIN32_NATIVE.
11747 Remove MSDOS support/references, converting to WIN32_NATIVE
11749 __MINGW32__ -> MINGW.
11750 Fix windows.h includes.
11751 Remove bogus HAVE_NTGUI.
11757 mswindows_message_outputted added for use in allowing startup
11758 errors on the console to be seen.
11760 * console-msw.c (msw_ensure_console_allocated):
11761 * console-msw.c (msw_output_console_string):
11762 * console-msw.c (DHEADER):
11763 * console-msw.c (DOPAQUE_DATA):
11764 * console-msw.c (DEVENT):
11765 * console-msw.c (DCONS):
11766 * console-msw.c (DCONSCDR):
11767 * console-msw.c (DSTRING):
11768 * console-msw.c (DVECTOR):
11769 * console-msw.c (DSYMBOL):
11770 * console-msw.c (DSYMNAME):
11773 * console-stream.c (stream_init_console):
11774 Fix text/binary problems.
11777 * device-msw.c (mswindows_finish_init_device):
11778 * device-msw.c (mswindows_delete_device):
11781 * device.c (handle_asynch_device_change):
11785 * dgif_lib.c (DGifOpenFileName):
11786 * dgif_lib.c (DGifOpenFileHandle):
11787 * dgif_lib.c (DGifGetLine):
11788 * dgif_lib.c (DGifGetPixel):
11789 Added config.h/lisp.h, fix up includes.
11796 * dired.c (file_name_completion):
11797 * dired.c (Ffile_attributes):
11798 * dired.c (syms_of_dired):
11802 * dumper.c (pdump_file_unmap):
11803 * dumper.c (pdump_load):
11807 * editfns.c (Ftemp_directory):
11808 * editfns.c (user_login_name):
11809 * editfns.c (Fuser_real_login_name):
11810 * editfns.c (get_home_directory):
11813 * elhash.c (finish_marking_weak_hash_tables):
11814 [[[[5]]]]: Fix GCC warnings.
11817 * emacs.c (mswindows_handle_hardware_exceptions):
11818 * emacs.c (make_arg_list_1):
11819 * emacs.c (main_1):
11820 * emacs.c (Fkill_emacs):
11821 * emacs.c (Fdump_emacs):
11823 Fix problems with nested crashes, add long comment.
11825 * event-Xt.c (init_event_Xt_late):
11829 * event-msw.c (mswindows_dde_callback):
11830 * event-msw.c (mswindows_handle_sticky_modifiers):
11831 * event-msw.c (mswindows_wnd_proc):
11835 * events.c (character_to_event):
11839 * fileio.c (Ffile_name_directory):
11840 * fileio.c (Ffile_name_nondirectory):
11841 * fileio.c (directory_file_name):
11842 * fileio.c (Fexpand_file_name):
11843 * fileio.c (Fsubstitute_in_file_name):
11844 * fileio.c (Ffile_name_absolute_p):
11845 * fileio.c (check_executable):
11846 * fileio.c (Ffile_readable_p):
11847 * fileio.c (Ffile_accessible_directory_p):
11848 * fileio.c (Ffile_modes):
11849 * fileio.c (Funix_sync):
11850 * fileio.c (vars_of_fileio):
11853 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11855 Expand getdefdir defn.
11856 Fix bogus rename() comment.
11858 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
11859 to use standard XEmacs include files, e.g. sysfile.h, rather
11860 than system-specific includes.
11866 * frame.c (vars_of_frame):
11870 * getloadavg.c (getloadavg):
11872 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
11873 (We don't use it elsewhere in the code; just add a comment.)
11880 * glyphs-msw.c (mswindows_resource_instantiate):
11883 * glyphs-x.c (x_native_layout_instantiate):
11886 * gui-msw.c (Fmswindows_shell_execute):
11895 * lread.c (locate_file_in_directory_mapper):
11902 * mem-limits.h (get_lim_data):
11914 * nt.c (rva_to_section):
11915 * nt.c (mswindows_executable_type):
11917 Fix closedir() defn.
11920 [[[[8]]]]: *_OK defs moved to sysfile.h.
11929 * print.c (std_handle_out_external):
11933 * process-nt.c (nt_create_process):
11935 try to fix process quoting somewhat.
11937 * process-unix.c (unix_create_process):
11941 * process.c (vars_of_process):
11948 * realpath.c (xrealpath):
11951 * redisplay-tty.c (init_tty_for_redisplay):
11961 * sheap.c (more_static_core):
11962 * sheap.c (report_sheap_usage):
11966 * signal.c (alarm_signal):
11973 * strftime.c (zone_name):
11976 * symsinit.h (init_sunpro):
11980 commctrl.h not in Cygwin b20.1.
11983 * sysdep.c (endif):
11984 * sysdep.c (sys_subshell):
11985 * sysdep.c (init_baud_rate):
11986 * sysdep.c (emacs_get_tty):
11987 * sysdep.c (emacs_set_tty):
11988 * sysdep.c (tty_init_sys_modes_on_device):
11989 * sysdep.c (init_system_name):
11990 * sysdep.c (sys_open):
11991 * sysdep.c (interruptible_open):
11992 * sysdep.c (sys_fopen):
11993 * sysdep.c (sys_mkdir):
11994 * sysdep.c (sys_rename):
11995 * sysdep.c (get_process_times_1):
12002 * sysdir.h (DIRENTRY_NONEMPTY):
12005 * sysdll.c (dll_init):
12011 added text/binary defs.
12017 * sysproc.h (EDESTADDRREQ):
12018 * sysproc.h (poll_fds_for_input):
12035 Always define WIN32_LEAN_AND_MEAN.
12037 * unexcw.c (unexec):
12041 * unexec.c (copy_text_and_data):
12042 * unexec.c (adjust_lnnoptrs):
12046 * unexnt.c (_start):
12049 2000-06-07 Ben Wing <ben@xemacs.org>
12051 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
12052 was used only as a model. We've long since extracted any useful
12053 logic or code out of this. (I just did an exhaustive search.)
12055 * s\msdos.h: Removed.
12057 * s\windows95.h: Removed.
12059 2000-06-10 Ben Wing <ben@xemacs.org>
12063 Don't use extern with fun defs.
12067 Remove nt\inc include.
12068 Remove getdisk, getdefdir. (The former is unused, the latter
12069 expanded in fileio.h.)
12072 * s\windowsnt.h (WIN32_NATIVE):
12073 * s\windowsnt.h (HAVE_STRCASECMP):
12075 Add long comment about preprocessor changes.
12076 Remove getdisk, getdefdir. (The former is unused, the latter
12077 expanded in fileio.h.)
12079 2000-06-10 Ben Wing <ben@xemacs.org>
12088 Remove bogus/unused NO_SOCK_SIGIO.
12090 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
12092 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12095 2000-06-04 Mike Sperber <mike@xemacs.org>
12097 * casetab.c (set_case_table): For `set-standard-case-table',
12098 actually deposit the new case tables where the rest of XEmacs can
12101 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
12103 * data.c (Faset): Don't cast XCHAR() to unsigned char.
12105 2000-06-05 Ben Wing <ben@xemacs.org>
12107 * callproc.c (child_setup): Don't do close_load_descs() under
12108 MS Windows. Put in a comment explaining why.
12110 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
12112 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12113 Toolkit shell" which breaks `kill-compilation' on Windows NT
12114 native, retaining STDERR handling improvements.
12116 2000-06-01 Andreas Jaeger <aj@suse.de>
12118 * s/s390.h: Support for S390, based on a patch by Martin
12119 Schwidefsky <schwidefsky@de.ibm.com>.
12121 2000-05-30 Andy Piper <andy@xemacs.org>
12123 * window.c (allocate_window):
12124 (make_dummy_parent):
12125 (Fset_window_configuration): use new hashtable type.
12127 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12128 (struct image_instantiator_methods):
12129 (struct Lisp_Image_Instance): make instance geometry signed.
12131 * glyphs.c (instantiate_image_instantiator):
12132 (image_instance_query_geometry):
12133 (image_instance_layout):
12134 (image_instance_layout):
12135 (query_string_geometry):
12136 (text_query_geometry):
12137 (image_instantiate):
12138 (image_instantiate):
12139 (cache_subwindow_instance_in_frame_maybe):
12140 (subwindow_query_geometry): make instance geometry signed.
12142 * glyphs-widget.c (widget_query_geometry):
12144 (button_query_geometry):
12145 (tree_view_query_geometry):
12146 (tab_control_query_geometry):
12147 (layout_query_geometry):
12149 (native_layout_layout): make instance geometry signed.
12151 2000-05-29 Olivier Galibert <galibert@pobox.com>
12153 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12156 * general.c (syms_of_general): Add Qfull_assoc symbol.
12158 * data.c (finish_marking_weak_lists): Mark full-assoc lists
12160 (decode_weak_list_type): Decode full-assoc type.
12161 (encode_weak_list_type): Encode full-assoc type.
12162 (Fmake_weak_list): Update doc string.
12164 2000-05-30 Andy Piper <andy@xemacs.org>
12166 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12168 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12169 (decode_hash_table_weakness): ditto.
12170 (Fhash_table_weakness): ditto.
12171 (Fhash_table_type): ditto.
12172 (finish_marking_weak_hash_tables): ditto.
12173 (hash_table_weakness_validate): ditto.
12174 (syms_of_elhash): ditto.
12176 2000-05-28 Martin Buchholz <martin@xemacs.org>
12178 * XEmacs 21.2.34 is released.
12180 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
12182 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12184 (updating_line_start_cache): Gone.
12185 (regenerate_window): Replace resetting of VERTICAL_CLIP by
12186 generic code to force a minimum of 1 line laid out in the
12189 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
12191 * glyphs.c (instantiate_image_instantiator): Check for initialized
12192 height & width no longer special cases IMAGE_NOTHING.
12193 (nothing_instantiate): Set height and width of instance.
12195 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12197 * unexelf.c (unexec): Search for ".data" section.
12198 Initialize new_data2_offset from old_data_index.
12199 Remove redundant check for ElfW.
12201 2000-05-23 Andy Piper <andy@xemacs.org>
12203 * glyphs.c (get_image_instantiator_governing_domain): allow more
12204 specific domains as the governing domain rather than expecting an
12205 exact match. This fixes problems with layouts.
12207 2000-05-22 Andy Piper <andy@xemacs.org>
12209 * redisplay-output.c (compare_runes): check for non-images
12211 * glyphs.c (set_glyph_dirty_p): ditto.
12212 (update_glyph_cachel_data): ditto.
12214 * glyphs-widget.c (layout_post_instantiate): ditto.
12215 (layout_post_instantiate): ditto.
12217 * event-msw.c (mswindows_wnd_proc): warning removal.
12219 2000-05-12 Craig Lanning <CraigL@DyCon.com>
12221 * s\mingw32.h: Added #undef for CLASH_DETECTION.
12223 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12225 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12227 * nt.c (rva_to_section): mingw32 needs rva_to_section.
12228 (mswindows_executable_type): mingw32 now has enough headers for
12231 2000-05-20 Andy Piper <andy@xemacs.org>
12233 * console-msw.c (mswindows_output_last_error): ; -> ,
12235 2000-05-12 Andy Piper <andy@xemacs.org>
12237 * console-msw.c (FROB): compare ints with ints.
12239 2000-05-11 Andy Piper <andy@xemacs.org>
12241 * glyphs-x.c (x_finalize_image_instance): make minimal build
12244 2000-05-20 Ben Wing <ben@xemacs.org>
12247 * event-Xt.c (vars_of_event_Xt):
12248 move modifier-keys-are-sticky to event-stream.c.
12251 * event-msw.c (mswindows_enqueue_mouse_button_event):
12252 * event-msw.c (key_needs_default_processing_p):
12253 * event-msw.c (XEMSW_LCONTROL):
12254 * event-msw.c (mswindows_handle_sticky_modifiers):
12255 * event-msw.c (FROB):
12256 * event-msw.c (clear_sticky_modifiers):
12257 * event-msw.c (output_modifier_keyboard_state):
12258 * event-msw.c (output_alt_keyboard_state):
12259 * event-msw.c (mswindows_wnd_proc):
12260 * event-msw.c (mswindows_modifier_state):
12261 * event-msw.c (emacs_mswindows_handle_magic_event):
12262 implement sticky modifiers.
12265 * event-stream.c (vars_of_event_stream):
12266 move modifier-keys-are-sticky here.
12269 add CHECK_FUNCTION.
12272 implement map-range-table.
12275 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
12277 * redisplay-tty.c (reset_tty_modes):
12278 (tty_redisplay_shutdown): Adjust argument type to
12279 tty_frame_output_end.
12281 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
12283 * eval.c (Fbacktrace): Don't output a line with only right
12286 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
12288 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12289 (Fpq_reset_poll): Ditto.
12291 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
12293 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12295 2000-05-16 Ben Wing <ben@xemacs.org>
12298 * buffer.c (dfc_convert_to/from_internal_format):
12299 * buffer.c (reinit_vars_of_buffer):
12300 Fix conversion functions to allow reentrancy.
12303 * console-msw.c (mswindows_output_last_error):
12304 New fun, generally useful -- output a human-readable
12305 version of GetLastError() on the console.
12308 * console-msw.h (struct mswindows_frame):
12309 Changes for DeferWindowPos. Declare mswindows_output_last_error().
12311 * console-stream.c (stream_output_begin):
12312 * console-stream.c (stream_output_end):
12313 * console-stream.c (stream_output_vertical_divider):
12314 * console-stream.c (stream_clear_region):
12315 * console-stream.c (stream_flash):
12316 * console-stream.c (console_type_create_stream):
12317 Delete blank stream methods, not needed.
12319 * console.h (struct console_methods):
12320 Split begin/end methods into window and frame.
12323 * event-msw.c (mswindows_handle_paint):
12324 * event-msw.c (output_alt_keyboard_state):
12325 * event-msw.c (mswindows_wnd_proc):
12326 * event-msw.c (vars_of_event_mswindows):
12327 Comment about problems with ignored-expose.
12328 Define mswindows-debug-events; not really implemented.
12330 * frame-msw.c (mswindows_init_frame_1):
12334 * glyphs-msw.c (begin_defer_window_pos):
12335 * glyphs-msw.c (mswindows_unmap_subwindow):
12336 * glyphs-msw.c (mswindows_map_subwindow):
12337 * glyphs-msw.c (mswindows_resize_subwindow):
12338 Use DeferWindowPos to reduce flashing when mapping/unmapping.
12340 * glyphs.c (make_image_instance_1):
12343 * gutter.c (Fredisplay_gutter_area):
12344 Use new begin/end methods.
12346 * lisp.h (Dynarr_new2):
12350 * redisplay-msw.c (mswindows_frame_output_begin):
12351 * redisplay-msw.c (mswindows_frame_output_end):
12352 * redisplay-msw.c (console_type_create_redisplay_mswindows):
12353 New begin/end methods -- handle DeferWindowPos.
12355 * redisplay-output.c (redisplay_move_cursor):
12356 * redisplay-output.c (redraw_cursor_in_window):
12357 * redisplay-output.c (redisplay_update_line):
12358 * redisplay-output.c (redisplay_output_window):
12359 New begin/end methods.
12362 * redisplay-tty.c (tty_frame_output_begin):
12363 * redisplay-tty.c (tty_frame_output_end):
12364 * redisplay-tty.c (console_type_create_redisplay_tty):
12365 New begin/end methods.
12368 * redisplay-x.c (x_window_output_begin):
12369 * redisplay-x.c (x_window_output_end):
12370 * redisplay-x.c (console_type_create_redisplay_x):
12371 New begin/end methods.
12373 * redisplay.c (redisplay_frame):
12374 * redisplay.c (Fredisplay_echo_area):
12375 New begin/end methods.
12376 use MAYBE_DEVMETH for clear_frame; it may not exist.
12378 * window.h (WINDOW_XFRAME):
12379 WINDOW_XFOO macros -- get locale and decode struct pointer.
12382 2000-05-12 Ben Wing <ben@xemacs.org>
12385 * emacs.c (ensure_no_quitting_from_now_on):
12386 * emacs.c (fatal_error_signal):
12387 * emacs.c (mswindows_handle_hardware_exceptions):
12389 * emacs.c (Fkill_emacs):
12390 * emacs.c (shut_down_emacs):
12391 * emacs.c (assert_failed):
12392 various improvements in fatal error handling.
12395 move preparing_for_armageddon to emacs.c.
12398 declare fatal_error_in_progress.
12401 * print.c (std_handle_out_external):
12402 * print.c (std_handle_out_va):
12403 * print.c (stderr_out):
12404 * print.c (stdout_out):
12405 use console under mswin when no standard output.
12406 don't do code conversion during fatal error.
12408 * scrollbar.c (Fscrollbar_page_up):
12409 * scrollbar.c (Fscrollbar_page_down):
12410 fix missing else. reindent.
12412 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
12416 * glyphs.h (GLYPH_CACHEL_DESCENT):
12417 (GLYPH_CACHEL_DESCENT):
12418 (GLYPH_CACHEL_DESCENT):
12419 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12420 used in case these are inline functions.
12421 Use more absurd values to error check.
12423 include window.h for error check functions.
12425 2000-05-11 Ben Wing <ben@xemacs.org>
12427 * cmdloop.c (Freally_early_error_handler):
12428 Display message box under windows; otherwise, message will disappear
12429 before it can be viewed.
12432 * console-msw.c (Fmswindows_message_box):
12433 * console-msw.c (FROB):
12434 * console-msw.c (syms_of_console_mswindows):
12435 Define new fun `mswindows-message-box'.
12436 #### I will merge this into `popup-dialog-box'; just give me
12440 * general.c (syms_of_general):
12441 Some new symbols used in `mswindows-message-box'.
12444 * glyphs.c (Fset_image_instance_property):
12445 put warning in this fun.
12448 * glyphs.h (GLYPH_CACHEL_WIDTH):
12449 * glyphs.h (GLYPH_CACHEL_ASCENT):
12450 * glyphs.h (GLYPH_CACHEL):
12451 * glyphs.h (GLYPH_CACHEL_GLYPH):
12452 define error-checking versions to try to catch a bug i've seen --
12453 redisplay gets in an infinite loop because the glyph width of the
12454 continuation glyph is 65535.
12457 Extern message-box stuff.
12459 * window.c (allocate_window):
12460 * window.c (make_dummy_parent):
12461 * window.c (Fset_window_configuration):
12462 Use EQUAL not EQ for subwindow caches to make them work a bit
12463 better. (Something is still very broken.)
12466 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
12468 * glyphs.c (image_instantiate): Suppress gcc warnings.
12469 (Fmake_image_instance): Fix doc string.
12470 * specifier.c (Fmake_specifier): Ditto.
12472 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
12474 * paths.h.in (PATH_LOCK): Removed.
12475 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12476 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12478 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
12480 * fns.c (Ffeaturep): Update e-mail address in doc-string.
12481 Document (featurep '(and xemacs 21.02)).
12483 2000-05-09 Ben Wing <ben@xemacs.org>
12485 * buffer.c (complex_vars_of_buffer):
12486 update modeline-format doc.
12489 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12492 timeline of all released versions of Emacs, for use in creating
12493 authorship comments and in synching up.
12495 * glyphs-widget.c (image_instantiator_buttons):
12496 * glyphs-widget.c (image_instantiator_edit_fields):
12497 * glyphs-widget.c (image_instantiator_combo_box):
12498 * glyphs-widget.c (image_instantiator_scrollbar):
12499 * glyphs-widget.c (image_instantiator_progress_guage):
12500 * glyphs-widget.c (image_instantiator_tree_view):
12501 * glyphs-widget.c (image_instantiator_tab_control):
12502 * glyphs-widget.c (image_instantiator_labels):
12503 * glyphs-widget.c (image_instantiator_layout):
12504 * glyphs-widget.c (image_instantiator_native_layout):
12505 rename decode_domain method to governing_domain.
12508 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12509 * glyphs.c (add_entry_to_device_ii_format_list):
12510 make sure we don't put an entry more than once into the list.
12511 * glyphs.c (check_instance_cache_mapper):
12512 *************************************************************
12513 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12515 *************************************************************
12516 * glyphs.c (get_image_instantiator_governing_domain):
12517 clean up, expand on new concept of governing domain.
12518 * glyphs.c (instantiate_image_instantiator):
12519 * glyphs.c (allocate_image_instance):
12520 use governing_domain instead of cache_domain in naming.
12521 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12522 * glyphs.c (make_image_instance_1):
12523 * glyphs.c (Fmake_image_instance):
12524 allow for any domain (not just device), and process the
12525 governing domain correctly. very big doc fix.
12526 * glyphs.c (Fimage_instance_domain):
12527 new primitive, to retrieve the governing domain of an image instance.
12528 * glyphs.c (image_instantiate):
12529 use new governing_domain stuff. this fixes a crash you could get
12530 by instantiating certain widget glyphs in frame locales. (should
12531 signal an error instead of crashing.)
12532 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12533 * glyphs.c (Fglyphp): clean up doc.
12534 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12535 * glyphs.c (syms_of_glyphs):
12536 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12537 * glyphs.c (image_instantiator_format_create): add some comments about
12539 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12540 for current-display-table. (Apparently Hrjove implemented in 1998 a
12541 design I wrote up in 1996, but didn't update the doc string.)
12543 * glyphs.h: clean up a doc string.
12544 * glyphs.h (governing_domain):
12545 * glyphs.h (struct image_instantiator_methods):
12546 changes for governing_domain stuff.
12549 * gutter.c (Fgutter_specifier_p):
12550 * gutter.c (Fgutter_size_specifier_p):
12551 * gutter.c (Fgutter_visible_specifier_p):
12553 * objects.c (Fcolor_specifier_p):
12554 * objects.c (Ffont_specifier_p):
12555 * objects.c (Fface_boolean_specifier_p):
12556 doc strings moved to make-*-specifier.
12558 * redisplay.c (add_disp_table_entry_runes_1):
12559 * redisplay.c (generate_fstring_runes):
12560 * redisplay.c (screen):
12561 add random comments and doc strings.
12564 * specifier.c (Fmake_specifier):
12565 major overhaul of this doc string.
12567 * specifier.c (Fvalid_specifier_domain_p):
12568 comment about the bogosity of image instances being domains.
12569 * specifier.c (decode_domain):
12570 now non-static, used in glyphs.c.
12571 * specifier.c (specifier_instance):
12572 comment about the bogosity of image instances being domains.
12573 * specifier.c (Fgeneric_specifier_p):
12574 move doc string to make-generic-specifier.
12575 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12579 * specifier.h (DOMAIN_FRAME):
12580 * specifier.h (DOMAIN_LIVE_P):
12581 * specifier.h (DOMAIN_XDEVICE):
12583 add comments about problems with these macros.
12584 prototype for decode_domain.
12587 * toolbar.c (Ftoolbar_specifier_p):
12588 move doc string to `make-toolbar-specifier'.
12590 * window.c (window_unmap_subwindows_cache_mapper):
12591 *************************************************************
12592 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12594 *************************************************************
12596 2000-05-09 Andy Piper <andy@xemacs.org>
12598 * glyphs.h: declare reset_frame_subwindow_instance_cache.
12600 * window.c (Fset_window_configuration): reset the frame subwindow
12601 cache and re-initialize the window subwindow caches.
12603 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12605 2000-05-09 Ben Wing <ben@xemacs.org>
12607 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12610 2000-04-26 Mike Woolley <mike@bulsara.com>
12612 * ntheap.c: Changed recreate_heap to limit the amount reserved
12613 for the heap to that which is actually available. Also now
12614 displays a message box (with some dignostics) in the event that
12615 it still can't start.
12617 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
12619 * callproc.c (Fold_call_process_internal): GCPRO path
12621 2000-05-08 Jan Vroonhof <jan@xemacs.org>
12623 Patch by Bill Perry.
12625 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12626 back data instead of #ifdef.
12627 (Fscrollbar_page_down): ditto.
12629 2000-05-07 Ben Wing <ben@xemacs.org>
12632 Kludge for defining Qmswindows_tstr.
12635 * nt.c (open_input_file):
12636 * nt.c (open_output_file):
12637 * nt.c (rva_to_section):
12638 * nt.c (mswindows_executable_type):
12639 Move all memory-mapped-file routines here (some were in unexnt.c,
12640 which is bad because they are used by process-nt.c, and unexnt
12641 won't be around when portable dumping). Synched the above routines
12645 Removed ifdef'd out bogus code.
12646 Fixed some prototypes.
12648 * nt.h (file_data):
12649 * nt.h (OFFSET_TO_RVA):
12650 * nt.h (RVA_TO_OFFSET):
12651 * nt.h (RVA_TO_PTR):
12652 Moved the memory-mapped-file structures, macros and prototypes
12653 here, to parallel nt.c. ntheap.h should really be removed
12654 entirely, and it's a non-portable-dumper specific file.
12656 * ntheap.h (round_to_next):
12657 Moved the memory-mapped-file structures, macros and prototypes
12660 * ntproc.c (compare_env):
12661 Moved rva_to_section and mswindows_executable_type to nt.c.
12662 Moved compare_env to process-nt.c.
12663 ntproc.c will die, one day.
12665 * ntproc.c (sys_spawnve):
12666 Account for win32_ -> mswindows_.
12669 * process-nt.c (struct nt_process_data):
12670 * process-nt.c (ensure_console_window_exists):
12671 * process-nt.c (compare_env):
12672 * process-nt.c (nt_create_process):
12673 * process-nt.c (nt_kill_process_by_pid):
12674 * process-nt.c (syms_of_process_nt):
12675 * process-nt.c (vars_of_process_nt):
12676 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12677 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12678 changes). Eliminate our old `nt-quote-process-args' mechanism.
12679 Synch up nt_create_process with FSF 20.6 sys_spawnve.
12680 Move compare_env here from ntproc.c.
12682 * process.c (Fprocess_send_region):
12683 Takes an optional fourth argument, BUFFER, which should fix some
12684 problems with call-process.
12687 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12690 Move ICC_BAR_CLASSES to syscommctrl.h.
12691 Add preliminary macros for MSWindows/Mule. More to come.
12694 * unexnt.c (unexec):
12695 open_output_file moved to nt.c.
12698 2000-05-05 Andy Piper <andy@xemacs.org>
12700 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12701 instance from the frame cache also since GC may catch up too late
12702 to make frame deletion sane.
12704 2000-05-04 Andy Piper <andy@xemacs.org>
12706 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12707 (x_finalize_image_instance): ungcpro on deletion.
12709 * glyphs.c (image_instantiator_format_create): give pointers a
12710 query geometry method so that the geometry is at least set.
12712 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12713 initialize layouts if using widgets.
12715 2000-05-03 Andy Piper <andy@xemacs.org>
12717 * nt.c: remove bogus reference to sysmmsystem.h
12719 * gui-x.c (popup_selection_callback): fix no selection abort.
12721 2000-05-02 Andy Piper <andy@xemacs.org>
12723 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12724 (mswindows_widget_instantiate): ditto.
12726 * glyphs-widget.c (initialize_widget_image_instance): initialize
12727 children correctly.
12728 (widget_instantiate): cope with children and items in the same
12731 * glyphs.c (mark_image_instance): cope with children as a first
12733 (image_instance_equal): ditto.
12734 (image_instance_hash): ditto.
12735 (image_instance_changed): ditto.
12737 2000-04-30 Andy Piper <andy@xemacs.org>
12739 * glyphs.c (subwindow_query_geometry): new function. Return some
12741 (subwindow_instantiate): don't assign dimensions if none have been
12743 (image_instantiator_format_create): add subwindow_query_geometry.
12744 (print_image_instance): cope with layouts as widgets.
12746 2000-04-29 Andy Piper <andy@xemacs.org>
12748 * frame.c (delete_frame_internal): call
12749 free_frame_subwindow_instance_cache so that all subwindows are
12750 finalized before their parent.
12751 (mark_frame): remove subwindow_cachels.
12752 (Fmake_frame): remove subwindow_cachel manipulation.
12753 (allocate_frame_core): subwindow_instance_cache is a weak list.
12754 (delete_frame_internal): set subwindow_instance_cache to nil.
12756 * glyphs-msw.c (mswindows_finalize_image_instance): make double
12758 (mswindows_finalize_image_instance): use the device
12759 not the domain as the domain may have died already.
12761 * glyphs-x.c (x_finalize_image_instance): ditto.
12762 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12765 * redisplay-output.c (redisplay_unmap_subwindows): update for
12766 subwindow instance cache as a weak list.
12767 (redisplay_unmap_subwindows_maybe): ditto.
12768 (redisplay_unmap_subwindows_except_us): ditto.
12770 * glyphs.c (unmap_subwindow): error checking will check the domain
12771 so don't deal with it here. Don't use cachels anymore.
12772 (map_subwindow): ditto.
12773 (update_subwindow_cachel_data): remove old accessor names.
12774 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12775 (Fresize_subwindow): don't update cachel.
12776 (mark_subwindow_cachels):
12777 (update_subwindow_cachel_data):
12778 (add_subwindow_cachel):
12779 (get_subwindow_cachel_index):
12780 (update_subwindow_cachel):
12781 (reset_subwindow_cachels):
12782 (mark_subwindow_cachels_as_not_updated): deleted.
12783 (cache_subwindow_instance_in_frame_maybe): new function. Add a
12784 subwindow instance to the frame cache.
12785 (find_matching_subwindow): update for subwindow instance cache as
12787 (update_widget_instances): ditto.
12788 (image_instance_type_to_mask):inlined.
12789 (free_frame_subwindow_instance_cache): new function. finalize all
12790 subwindows that are instantiated.
12792 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12793 of cachel information.
12794 (IMAGE_INSTANCE_DISPLAY_X):
12795 (IMAGE_INSTANCE_DISPLAY_Y):
12796 (IMAGE_INSTANCE_DISPLAY_WIDTH):
12797 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12798 (XIMAGE_INSTANCE_DISPLAY_X):
12799 (XIMAGE_INSTANCE_DISPLAY_Y):
12800 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12801 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12802 remove subwindow_cachel structure and function references.
12803 (image_instance_type_to_mask): inline from glyphs.c
12805 * redisplay.c (redisplay_frame): remove subwindow_cachel
12808 * frame.h (struct frame): remove subwindow_cachels.
12809 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12811 * frameslots.h: add subwindow_instance_cache.
12813 * window.c (replace_window): check subwindow cache of replacement.
12814 (window_unmap_subwindows_cache_mapper):
12815 (window_unmap_subwindows): new functions. Unmap all subwindows
12816 cached on this window.
12817 (mark_window_as_deleted): unmap all subwindows.
12819 2000-04-27 Andy Piper <andy@xemacs.org>
12821 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12823 * glyphs-widget.c (widget_layout): return something.
12824 (layout_layout): return something. Fail if not initialized.
12825 (layout_query_geometry): ditto.
12826 (image_instantiator_native_layout): new function. Initialized the
12827 native layout type.
12828 (widget_instantiate): don't do layout stuff here.
12830 * glyphs.c (instantiate_image_instantiator): reorded calling or
12831 instantiate and post_instantiate with layout in between.
12832 (image_instance_layout): be more selective about deciding whether
12833 the layout has been done or not.
12835 * glyphs.h (struct image_instantiator_methods): return a value
12836 from layout_method.
12838 2000-04-26 Andy Piper <andy@xemacs.org>
12840 * glyphs.c (allocate_image_instance): make initial width and
12841 height unspecified. Set initialized to 0.
12843 * syscommctrl.h new file. Encapsulates commctrl.h.
12845 * syswindows.h new file. Encapsulates windows.h.
12847 * ntplay.c: use new syswindows.h and syscommctrl.h header.
12849 * console-msw.h: ditto.
12851 * redisplay-tty.c (tty_output_display_block): remove layout references.
12853 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12854 window handle rather than just the frame.
12856 * glyphs.c (mark_image_instance): remove layout references.
12857 (print_image_instance): ditto.
12858 (image_instance_equal): ditto.
12859 (image_instance_hash): ditto.
12860 (decode_image_instance_type): ditto.
12861 (encode_image_instance_type): ditto.
12862 (image_instantiate): ditto.
12863 (allocate_glyph): ditto.
12864 (Fimage_instance_height): ditto.
12865 (Fimage_instance_width): ditto.
12866 (update_subwindow): ditto.
12868 * redisplay-x.c (x_output_display_block): recode for layouts as
12871 * redisplay-output.c (redisplay_output_layout): recode for layouts
12873 (compare_runes): remove layout references.
12875 * redisplay-msw.c (mswindows_output_display_block): recode for
12876 layouts as widgets.
12878 * glyphs-widget.c (image_instantiator_layout): remove
12879 layout_possible_dest_types.
12880 (layout_possible_dest_types): deleted.
12882 * glyphs.h (image_instance_type): remove layout references.
12883 (struct Lisp_Image_Instance): ditto. Add initialized flag.
12884 (IMAGE_INSTANCE_INITIALIZED): new accessor.
12885 (XIMAGE_INSTANCE_INITIALIZED): ditto.
12887 2000-04-25 Andy Piper <andy@xemacs.org>
12889 * glyphs-widget.c (image_instantiator_buttons):
12890 (image_instantiator_edit_fields):
12891 (image_instantiator_combo_box):
12892 (image_instantiator_scrollbar):
12893 (image_instantiator_progress_guage):
12894 (image_instantiator_tree_view):
12895 (image_instantiator_tab_control):
12896 (image_instantiator_labels):
12897 (image_instantiator_layout): call default post_instantiate method.
12898 (widget_post_instantiate): new function. Simply lays out the
12901 * glyphs.h (struct image_instantiator_methods): add
12902 post_instantiate method.
12904 * glyphs.c (instantiate_image_instantiator): add post_instantiate
12907 2000-04-23 Andy Piper <andy@xemacs.org>
12909 * glyphs.h (struct image_instantiator_methods): add
12910 decode_domain_method.
12911 (struct Lisp_Image_Instance): remove subwindow frame - it can be
12912 derived from the domain.
12913 (IMAGE_INSTANCE_FRAME): new accessor.
12914 (XIMAGE_INSTANCE_FRAME): ditto.
12916 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12917 instead of _SUBWINDOW_FRAME.
12918 (finalize_image_instance): ditto.
12919 (Fimage_instance_foreground): ditto.
12920 (Fimage_instance_background): ditto.
12921 (image_instantiate): ditto.
12922 (update_subwindow_cachel): ditto.
12923 (update_subwindow): ditto.
12924 (unmap_subwindow): ditto.
12925 (map_subwindow): ditto
12926 (subwindow_instantiate): ditto.
12927 * glyphs-msw.c (mswindows_update_widget): ditto.
12928 (mswindows_progress_gauge_instantiate): ditto.
12929 (mswindows_tab_control_update): ditto.
12930 * glyphs-x.c (x_update_widget): ditto.
12931 (x_widget_instantiate): ditto.
12932 (x_tab_control_instantiate): ditto.
12933 (x_tab_control_update): ditto.
12934 * event-msw.c (mswindows_wnd_proc): ditto
12936 * glyphs-widget.c (image_instantiator_layout): use
12937 subwindow_decode_domain.
12938 (image_instantiator_buttons): ditto.
12939 (image_instantiator_edit_fields): ditto.
12940 (image_instantiator_combo_box): ditto.
12941 (image_instantiator_scrollbar): ditto.
12942 (image_instantiator_progress_guage): ditto.
12943 (image_instantiator_tree_view): ditto.
12944 (image_instantiator_tab_control): ditto.
12945 (image_instantiator_labels): ditto.
12946 (image_instantiator_layout): ditto.
12948 * glyphs.c: add instance error checking to many functions.
12949 (instantiate_image_instantiator): decode device from cache_domain.
12950 (image_instantiate): partially rewrite by using
12951 decode_image_instantiator_domain to determine what domain the
12952 instance needs to be cached in.
12953 (decode_image_instantiator_domain): new function. Determine what
12954 domain the image needs to be cached in.
12955 (check_window_subwindow_cache): new error checking function.
12956 (check_instance_cache_mapper): ditto.
12957 (check_image_instance_structure): ditto.
12958 (subwindow_decode_domain): new function. Encodes a window as a
12959 subwindow's cache domain.
12960 (image_instantiator_format_create): use it for text and
12963 2000-04-21 Andy Piper <andy@xemacs.org>
12965 * glyphs.c (image_instance_device): new function.
12966 (image_instance_frame): new function.
12967 (image_instance_window): new function.
12968 (image_instance_live_p): new function.
12970 * window.c (mark_window_as_deleted): reset the subwindow_instance_
12973 * glyphs.h (struct Lisp_Image_Instance): device->domain.
12974 (IMAGE_INSTANCE_DOMAIN): new accessor.
12975 (XIMAGE_INSTANCE_DOMAIN): ditto.
12977 * glyphs-x.c (x_finalize_image_instance): device->domain.
12979 * glyphs-msw.c (init_image_instance_geometry): device->domain.
12980 (mswindows_finalize_image_instance): ditto.
12982 * glyphs-eimage.c (jpeg_instantiate): device->domain.
12983 (gif_instantiate): ditto.
12984 (png_instantiate): ditto.
12985 (tiff_instantiate): ditto.
12987 * glyphs.c (instantiate_image_instantiator): use domain rather
12989 (mark_image_instance): device -> domain.
12990 (print_image_instance): ditto.
12991 (finalize_image_instance): ditto.
12992 (image_instance_equal): ditto.
12993 (allocate_image_instance): ditto.
12994 (Fcolorize_image_instance): ditto.
12995 (query_string_geometry): ditto.
12996 (image_instantiate): ditto
12997 (query_string_font): ditto.
12998 (image_instantiate): ditto.
12999 (update_subwindow): ditto.
13000 (unmap_subwindow): ditto.
13001 (map_subwindow): ditto.
13002 (subwindow_instantiate): ditto.
13004 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13005 (DOMAIN_FRAME): ditto.
13006 (DOMAIN_WINDOW): ditto.
13007 (DOMAIN_LIVE_P): ditto.
13008 (XDOMAIN_DEVICE): ditto.
13009 (XDOMAIN_FRAME): ditto.
13010 (XDOMAIN_WINDOW): ditto.
13012 * specifier.c (Fvalid_specifier_domain_p): add image instances as
13013 a valid specifier domain.
13015 2000-04-19 Andy Piper <andy@xemacs.org>
13017 * glyphs-widget.c (syms_of_glyphs_widget): remove
13018 widget-callback-current-channel.
13019 (vars_of_glyphs_widget): ditto.
13022 * gui.c (get_gui_callback): revert to previous behaviour.
13024 2000-04-18 Andy Piper <andy@xemacs.org>
13026 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13027 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13028 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13030 * glyphs.c (image_instance_equal): add margin_width.
13031 (image_instance_hash): ditto.
13033 * glyphs-widget.c (widget_instantiate): deal with margin-width.
13034 (layout_query_geometry): ditto.
13035 (layout_layout): ditto.
13036 (syms_of_glyphs_widget): add margin-width.
13037 (image_instantiator_layout): allow margin-width.
13039 * glyphs.c (update_widget_instances): make a normal function.
13040 (syms_of_glyphs): remove Qupdate_widget_instances.
13043 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13044 so that we don't corrupt ideas about the last event or
13045 command. Remove widget-callback-current-channel fiddling.
13046 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13048 2000-05-01 Martin Buchholz <martin@xemacs.org>
13050 * XEmacs 21.2.33 is released.
13052 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
13054 * make-src-depend: Allow dots in header file name.
13056 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
13058 * mule-charset.h (struct charset_lookup): Add
13059 next_allocated_1_byte_leading_byte and
13060 next_allocated_2_byte_leading_byte.
13061 * mule-charset.c: Move above two variables so that those values
13064 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
13066 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13067 when string length is zero.
13068 (find_charsets_in_emchar_string): Ditto.
13070 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
13072 * lisp.h: extern Qdialog and Qmenubar.
13074 * gui-x.c: added events.h.
13075 also fixed typo which made the file uncompilable.
13077 * general.c: Added Qmenubar and Qdialog
13079 2000-04-28 Ben Wing <ben@xemacs.org>
13081 * frame-msw.c (mswindows_init_frame_1):
13082 * frame-msw.c (mswindows_mark_frame):
13083 * event-msw.c (mswindows_enqueue_dispatch_event):
13085 * console-msw.h (struct mswindows_frame):
13086 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13087 there are now three hash tables for callbacks.
13088 mswindows_enqueue_dispatch_event is no longer static.
13090 * dialog-x.c (maybe_run_dbox_text_callback):
13091 * dialog-x.c (dbox_descriptor_to_widget_value):
13092 switch to new cons3 form for callbacks.
13094 * glyphs-msw.c (mswindows_register_gui_item):
13095 * glyphs-msw.c (mswindows_widget_instantiate):
13096 * glyphs-msw.c (add_tree_item):
13097 * glyphs-msw.c (add_tab_item):
13098 new image instance parameter, so it can be passed to callback-ex.
13099 respect :callback-ex as well as :callback.
13101 * glyphs-widget.c (VALID_GUI_KEYWORDS):
13104 * glyphs.c (print_image_instance):
13105 prettify, e.g. now prints widget type.
13108 certain funs have new image instance parameter.
13111 * gui.c (get_gui_callback):
13112 * gui.c (gui_item_add_keyval_pair):
13113 * gui.c (gui_item_init):
13114 * gui.c (gui_add_item_keywords_to_plist):
13115 * gui.c (mark_gui_item):
13116 * gui.c (gui_item_hash):
13117 * gui.c (gui_item_equal):
13118 * gui.c (copy_gui_item):
13119 * gui.c (syms_of_gui):
13120 recognize callback-ex in a number of places.
13121 also, fix the annoying "can't get out of yes-no dialog" bug.
13124 * gui.h (struct Lisp_Gui_Item):
13125 recognize callback-ex in a number of places.
13127 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13128 new parameter in button_item_to_widget_value.
13130 * glyphs-x.c (x_update_widget):
13131 * glyphs-x.c (x_button_instantiate):
13132 * glyphs-x.c (x_button_update):
13133 * glyphs-x.c (x_progress_gauge_instantiate):
13134 * glyphs-x.c (x_edit_field_instantiate):
13135 * glyphs-x.c (x_combo_box_instantiate):
13136 * glyphs-x.c (x_tab_control_instantiate):
13137 * glyphs-x.c (x_label_instantiate):
13138 new image instance parameter in various places.
13141 * event-Xt.c (enqueue_Xt_dispatch_event):
13142 this fun gets exported.
13145 * gui-msw.c (mswindows_handle_gui_wm_command):
13146 handle both :callback and :callback-ex, and generate our own
13147 event because it's one of the callback-ex arguments.
13150 * gui-x.c (popup_selection_callback):
13151 handle both :callback and :callback-ex, and generate our own
13152 event because it's one of the callback-ex arguments.
13153 * gui-x.c (button_item_to_widget_value):
13154 * gui-x.c (gui_items_to_widget_values_1):
13155 * gui-x.c (gui_item_children_to_widget_values):
13156 * gui-x.c (gui_items_to_widget_values):
13157 new image instance parameter in various places.
13159 * fns.c (Freplace_list):
13160 fix small typo in doc string.
13163 declare enqueue_Xt_dispatch_event.
13165 2000-04-28 Ben Wing <ben@xemacs.org>
13168 * buffer.c (Frecord_buffer):
13169 * buffer.c (syms_of_buffer):
13170 delete record-buffer-hook.
13173 * fns.c (Freplace_list):
13174 * fns.c (syms_of_fns):
13175 new primitive replace-list.
13178 slot for old buffer-alist.
13181 exfun replace-list.
13184 * redisplay.c (redisplay_frame):
13185 * redisplay.c (syms_of_redisplay):
13186 * redisplay.c (vars_of_redisplay):
13187 new hook buffer-list-changed-hook.
13190 2000-04-27 Ben Wing <ben@xemacs.org>
13192 * extents.h: extern in_modeline_generation.
13194 * redisplay.c (generate_formatted_string_db): set
13195 in_modeline_generation.
13197 * extents.c (extent_changed_for_redisplay): don't mark redisplay
13198 flags if in modeline generation. otherwise frame-modified-tick
13199 is ticked far too often.
13200 Declare in_modeline_generation.
13202 2000-04-26 Ben Wing <ben@xemacs.org>
13204 * emacs.c (vars_of_emacs): document quick-build "error-checking"
13206 (vars_of_emacs): add quick-build as an error-checking option.
13207 A bit kludgy, but there doesn't seem much point in creating
13208 a real var for this.
13210 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13212 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
13214 * redisplay.h (struct display_line): Add a new variable,
13217 * redisplay.c (create_text_block): Set dl->line_continuation if
13218 the line continues.
13219 (create_string_text_block): Ditto.
13220 (regenerate_window_incrementally): Use line_continuation instead
13221 of searching continuation glyph.
13222 (add_margin_runes): Call add_glyph_rune.
13223 (add_glyph_rune): Handle margin glyph.
13225 2000-04-20 Martin Buchholz <martin@xemacs.org>
13227 * filelock.c (fill_in_lock_file_name):
13229 Check for IS_ANY_SEP instead of '/'.
13231 Avoid generating gratuitous garbage. Call user_login_name() directly.
13232 Never check errno without first seeing that system call failed.
13233 (unlock_file): Add GCPRO.
13234 (Flock_buffer): Fix docstring.
13235 (Ffile_locked_p): Fix docstring. Add GCPRO.
13237 2000-04-19 Martin Buchholz <martin@xemacs.org>
13239 * sysdep.c (get_pty_max_bytes):
13240 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13241 strings longer than 252 bytes.
13243 * md5.c: Unconditionally include ANSI header <limits.h>
13245 * glyphs-x.c (convert_EImage_to_XImage):
13246 * lisp-union.h (union Lisp_Object):
13247 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13249 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
13251 * filelock.c (current_lock_owner): Remove unused variable o, p.
13253 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
13255 * callint.c: Remove multiply defined symbol Qlet
13256 (syms_of_callint): ditto.
13258 2000-04-14 Andy Piper <andy@xemacs.org>
13260 * general.c (syms_of_general): add last-command, this-command, let
13263 * lisp.h: declare various symbols.
13265 * glyphs.h: declare Qwidget_callback_current_channel;
13267 * glyphs-widget.c (syms_of_glyphs_widget): add
13268 Qgui_callback_current_channel.
13269 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13271 * gui-msw.c (mswindows_handle_gui_wm_command): bind
13272 widget-callback-current-channel when invoking the interactive
13273 arg. Also bind last-command and next-command when invoking the
13275 * gui-x.c (popup_selection_callback): ditto.
13277 * gui.c (get_gui_callback): massage args so that we are always
13278 calling eval. This allows us to add our own variable bindings
13281 * glyphs-x.c (x_button_instantiate): use
13282 gui_items_to_widget_values since this is GC safe.
13283 (x_progress_gauge_instantiate): ditto.
13284 (x_edit_field_instantiate): ditto.
13285 (x_label_instantiate): ditto.
13287 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13288 (emacs_Xt_event_widget_focus_out): new function
13289 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13291 (emacs_Xt_event_add_widget_actions): new function. add focus
13292 functions as actions.
13293 (init_event_Xt_late): use it.
13295 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
13297 * event-stream.c (Fdispatch_event): Doc fix.
13299 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
13301 * postgresql.c: Remove all references to PQsetenv*.
13303 * postgresql.h: Remove references to PGsetenvHandler object.
13304 * lrecord.h (lrecord_type): Ditto.
13306 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13308 * glyphs-msw.h (struct mswindows_image_instance_data): Added
13309 real_heigh and real_width members, and accessor macros for these.
13311 * glyphs-msw.c (init_image_instance_geometry): New function.
13312 (init_image_instance_from_dibitmap): Use it.
13313 (mswindows_resource_instantiate): Use it.
13314 (init_image_instance_from_xbm_inline): Use it.
13315 (mswindows_initialize_image_instance_mask): Use real bitmap
13317 (mswindows_create_resized_bitmap): Ditto.
13318 (mswindows_create_resized_mask): Ditto.
13320 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13321 and bitmap to their surface size.
13323 2000-04-11 Jan Vroonhof <jan@xemacs.org>
13325 * process-unix.c (unix_send_process): Guard against process MIA
13326 after Faccept_process_output.
13328 2000-04-11 Ben Wing <ben@xemacs.org>
13330 * eval.c (unbind_to_hairy): fix brokenness introduced by
13331 nanosecond speed improvements.
13333 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
13335 * sunplay.c (init_device): To play sounds correctly, the device
13336 apparently needs to be initialized at least once by XEmacs. Make
13339 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
13341 * redisplay.c (add_margin_runes): Add text image glyph
13344 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
13346 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13347 gcc is newer than 2.5.
13349 2000-04-06 Colin Rafferty <colin@xemacs.org>
13351 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13353 * fns.c (size_bit_vector):
13354 * alloc.c (size_vector):
13355 (make_vector_internal):
13356 (make_bit_vector_internal):
13357 (sweep_bit_vectors_1):
13358 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13360 2000-04-06 Andy Piper <andy@xemacs.org>
13362 * gmalloc.c (malloc): undo previous change.
13367 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
13369 * line-number.c (buffer_line_number): Revert to former version.
13371 2000-04-06 Andy Piper <andy@xemacs.org>
13373 * gmalloc.c (malloc): add error checking.
13378 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13379 button_item_to_widget_value arg.
13381 * glyphs-x.c (x_button_instantiate): add extra
13382 button_item_to_widget_value arg.
13383 (x_progress_gauge_instantiate): ditto.
13384 (x_edit_field_instantiate): ditto.
13385 (x_label_instantiate): ditto.
13387 * gui-x.c (gui_items_to_widget_values_1): add extra
13388 button_item_to_widget_value arg.
13389 (button_item_to_widget_value): add extra menu_item_p arg.
13391 * gui-x.h: change signature of button_item_to_widget_value.
13393 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13394 button_item_to_widget_value arg.
13396 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
13398 * buffer.h (struct buffer): auto_save_modified should be long.
13400 2000-04-05 Andy Piper <andy@xemacs.org>
13402 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13404 (button_query_geometry): give a little more room so that athena
13407 2000-04-05 Andy Piper <andy@xemacs.org>
13409 * faces.c (complex_vars_of_faces): The widget face should inherit
13410 the font of the gui-element face.
13412 2000-04-04 Andy Piper <andy@xemacs.org>
13414 * glyphs-x.c (x_button_update): new function. unconditionally
13415 update a button's state when the instance is dirty.
13416 (image_instantiator_format_create_glyphs_x): add x_button_update.
13417 (x_widget_instantiate): remove old resize cruft.
13419 2000-04-02 Andy Piper <andy@xemacs.org>
13421 * frame.c (change_frame_size_1): The introduction of gutters means
13422 that we need to allow 0 as a potential frame dimension.
13424 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
13426 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13427 image glyph if allow_cursor.
13428 (add_hscroll_rune): Don't allow cursor to border glyph.
13429 (create_text_block): Ditto.
13431 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13432 text not in buffer.
13433 (redisplay_output_layout): Call ensure_face_cachel_complete for
13437 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
13439 * redisplay.c (add_glyph_rune): Adding text image as text runes.
13441 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13444 * redisplay-tty.c (tty_output_display_block): Delete the routine
13445 for text image glyph
13446 * redisplay-x.c (x_output_display_block): ditto
13447 * redisplay-msw.c (mswindows_output_display_block): ditto
13449 2000-02-02 Mike Alexander <mta@arbortext.com>
13451 Note: Some of these were committed by accident as part of other
13454 * regex.c (regex_compile): Avoid compiler warnings.
13456 * ntproc.c (sys_spawnve): Avoid compiler warnings.
13458 * nt.h: Declare term_ntproc correctly.
13460 * nt.c: Remove incorrect declaration of get_home_directory which
13461 is declared correctly in lisp.h.
13463 * keymap.c (get_keyelt): Avoid compiler warnings.
13464 (raw_lookup_key_mapper): Avoid compiler warnings.
13466 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13468 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13470 * filemode.c (mode_string): Avoid compiler warnings.
13472 * file-coding.c (Fcoding_system_aliasee): Add return statement to
13475 * events-mod.h: Undef some things that winuser.h defines differently.
13477 * data.c (Faset): Avoid compiler warnings.
13479 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13481 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13483 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13484 Fall through to simple beep on error.
13485 Replace "extern" by real header file.
13487 * linuxplay.c: Use nativesound.h
13488 (play_sound_data): Return error code. Be less verbose on error.
13490 * sunplay.c: Use nativesound.h
13491 (play_sound_data): Return error code. Be less verbose on error.
13493 * ntplay.c: Use nativesound.h
13494 (play_sound_data): Return fake error code
13496 * sgiplay.c: Use nativesound.h
13497 (play_sound_data): Return error code
13499 * hpplay.c: Use nativesound.h, partially implement
13500 new error code. Break compilation until finished.
13501 (play_sound_data): error code.
13503 * nativesound.h (play_sound_file):
13504 (play_sound_data): Prototype in new header.
13506 2000-03-31 Andy Piper <andy@xemacs.org>
13508 * glyphs-widget.c: (button_query_geometry): new function. Adjust
13509 for toggle and radio buttons.
13510 (image_instantiator_buttons): use it.
13512 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13514 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13515 (x_update_horizontal_scrollbar_callback): Return if no mirror was
13516 found. Scrollbar event probably belonged to some old config.
13518 2000-03-31 Andy Piper <andy@xemacs.org>
13520 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13522 (initialize_widget_image_instance): default layout to
13523 LAYOUT_HORIZONTAL rather than 0.
13524 (widget_instantiate): reverse the item list at the end rather than
13526 (layout_layout): re-code for the border text at the front of the
13527 item list rather than at the end.
13528 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13529 provided by the user.
13530 (widget_query_geometry): comment.
13532 2000-03-30 Andy Piper <andy@xemacs.org>
13534 * glyphs-widget.c (image_instantiator_layout): allow standard
13535 widget keywords in layouts.
13537 * gutter.c (output_gutter): cope with nil gutter contents.
13539 * frame.c (Fset_frame_properties): add gutter docs.
13541 2000-03-29 Andy Piper <andy@xemacs.org>
13543 * toolbar-msw.c (TBSTYLE_FLAT): add.
13544 (mswindows_output_toolbar): minor fiddling.
13546 2000-03-29 Andy Piper <andy@xemacs.org>
13548 * gutter.c (output_gutter): force gutter size recalculation if
13549 what we are trying to display won't fit.
13550 (update_gutter_geometry): new function. A per-gutter version of
13551 update_frame_gutter_geometry.
13552 (update_frame_gutter_geometry): use it.
13553 (redraw_exposed_gutter): add extra debugging output.
13555 2000-03-28 Mike Alexander <mta@arbortext.com>
13557 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13558 (pdump_file_unmap): Implement it on Windows
13559 (pdump_file_get): Save alocated handles for pdump_file_unmap
13561 2000-03-28 Andy Piper <andy@xemacs.org>
13563 * gui.c (get_gui_callback): treat Quit specially.
13565 2000-03-27 Andy Piper <andy@xemacs.org>
13567 * glyphs.c (image_instantiate): be careful to check in the same
13570 2000-03-27 Didier Verna <didier@xemacs.org>
13572 * config.h.in: define the proper SMART_INCLUDE macro.
13573 handle renaming of `foo_h_path' to `foo_h_file'.
13575 * database.c: ditto.
13579 * linuxplay.c: ditto.
13581 * terminfo.c: ditto.
13583 * tooltalk.h: ditto.
13585 2000-03-27 Andy Piper <andy@xemacs.org>
13587 * glyphs-msw.c (mswindows_update_widget): make sure the widget
13588 gets updated whenever the face might have changed.
13590 2000-03-26 Mike Alexander <mta@arbortext.com>
13592 * dumper.c (pdump_resource_free): Fix the comment.
13594 2000-03-21 Olivier Galibert <galibert@pobox.com>
13596 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13598 2000-03-22 Mike Alexander <mta@arbortext.com>
13600 * dumper.c: Include Windows headers on Windows
13601 (pdump_resource_free): Add a body to the function
13602 (pdump_load): exe_name -> exe_path and add some comments.
13604 2000-03-25 Mike Alexander <mta@arbortext.com>
13606 * gui.c (copy_gui_item_tree): Return a value in all cases
13608 2000-03-21 Didier Verna <didier@xemacs.org>
13610 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13612 (SMART_INCLUDE): new macro.
13613 (POSTGRES_INCLUDE): new macro to include postgresql headers from
13614 the proper location.
13616 * postgresql.c: use it.
13620 2000-03-24 Andy Piper <andy@xemacs.org>
13622 * gutter.c (redraw_exposed_gutters): must be "in display" when we
13625 2000-03-24 Andy Piper <andy@xemacs.org>
13627 * redisplay-output.c (compare_runes): use image_instance_changed
13628 to detect changes. Do not depend on glyphs_changed, only depend on
13630 (redisplay_output_layout): add debug messages.
13631 (compare_runes): ditto.
13633 * glyphs.h: declare new functions.
13634 (struct Lisp_Image_Instance): remove percent and associated
13637 * gui.h: declare new copying functions.
13639 * gui.c (copy_gui_item_tree): new function.
13640 (copy_gui_item): new function.
13641 (gui_item_id_hash): revert to standard hash.
13642 (gui_item_hash): ditto.
13643 (gui_item_hash_internal): deleted.
13644 (mark_gui_item): mark value.
13645 (gui_item_add_keyval_pair): add value.
13646 (gui_item_init): ditto.
13647 (gui_add_item_keywords_to_plist): ditto.
13648 (gui_item_equal): ditto.
13649 (syms_of_gui): add Q_value.
13651 * glyphs-x.c (x_progress_gauge_update): use pending items and
13652 value for setting the state.
13653 (x_update_widget): don't set items from pending here.
13655 * glyphs-widget.c (update_widget): update items here.
13656 (progress_gauge_set_property): use items for storing value. Put
13657 new value in pending items.
13659 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13660 items for new value. Convert percent -> value.
13661 (mswindows_tab_control_update): don't update items here.
13663 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13664 (update_subwindow): ditto.
13665 (image_instance_changed): new function. Compare hash values and
13666 past and present widget items.
13667 (image_instantiate): We more careful about where we instantiate
13669 (image_instantiate): add error checking.
13671 * gutter.c (syms_of_gutter): use -hook.
13673 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
13675 * console-tty.c (Fset_console_tty_input_coding_system): Use
13677 (Fset_console_tty_output_coding_system): Use Qterminal.
13678 (tty_init_console): Use Qkeyboard and Qterminal.
13680 2000-03-21 Ben Wing <ben@xemacs.org>
13682 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13683 From Mike Alexander <mta@arbortext.com>.
13685 2000-03-21 Ben Wing <ben@xemacs.org>
13687 * event-msw.c (mswindows_need_event): Horrible kludge to fix
13688 process brokenness. Proper implementation to come.
13690 Rename call-process-internal to old-call-process-internal.
13691 New impl. in process.el.
13693 2000-03-21 Martin Buchholz <martin@xemacs.org>
13695 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13697 2000-03-20 Andy Piper <andy@xemacs.org>
13699 * glyphs.c (full_list_hash): make hashes of the same elements in
13700 different orders return different values.
13702 2000-03-20 Martin Buchholz <martin@xemacs.org>
13704 * XEmacs 21.2.32 is released.
13706 2000-03-20 Martin Buchholz <martin@xemacs.org>
13708 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13709 (DFC_MALLOC_USE_CONVERTED_DATA):
13710 Add aliasing-safe casts to allow use with char* or unsigned char*
13713 * eldap.c (Fldap_open):
13714 (Fldap_search_basic):
13717 Make C++-compilable.
13718 Make sure GCPRO'ed variables are initialized.
13719 Use temp variables to avoid repeated calls to Flength.
13721 2000-03-16 Martin Buchholz <martin@xemacs.org>
13724 Make sure PATH_MAX is always defined.
13725 Include limits.h for PATH_MAX.
13726 Deprecate use of MAXPATHLEN.
13728 2000-03-10 Martin Buchholz <martin@xemacs.org>
13730 * emacs.c: Add reinit_vars_of_fileio.
13731 * symsinit.h: Add reinit_vars_of_fileio.
13732 * fileio.c (reinit_vars_of_fileio): New.
13733 * fileio.c (Fmake_temp_name):
13734 Initialize temp_name random number from microseconds to make
13735 collisions even less likely. Initialize always at process startup
13736 time. (make-temp-name) used to return the same file name twice in
13738 Random stylistic fiddling.
13741 2000-03-20 Andy Piper <andy@xemacs.org>
13743 * glyphs.c (image_instantiate): allow text glyphs to be
13744 instantiated in the minibuffer window.
13746 2000-03-19 Andy Piper <andy@xemacs.org>
13748 * glyphs.c (image_instance_hash): be careful about which items we
13751 * glyphs-widget.c (tab_control_set_property): record into pending
13752 items rather than the actual items.
13754 * glyphs-x.c (x_update_widget): use pending items to update with.
13756 * glyphs-msw.c (mswindows_tab_control_update): use pending items
13759 * glyphs.c (mark_image_instance): mark pending items.
13761 * window.c (Fset_window_configuration): record the buffer.
13762 (Fselect_window): totally revert previous change which breaks many
13765 2000-03-18 Andy Piper <andy@xemacs.org>
13767 * glyphs-msw.c (mswindows_tab_control_update): force selected
13770 * glyphs.c (image_instantiate): don't allow the minibuffer as a
13771 window domain cache, otherwise we get inconsistencies at
13772 startup. There is something fishy at startup which can lead to the
13773 minibuffer being the selected window when the gutter content is
13776 * gui.c (parse_gui_item_tree_list): add probably unnecessary
13778 (parse_gui_item_tree_children): ditto.
13779 (parse_gui_item_tree_item): ditto.
13781 * glyphs.c (Fupdate_widget_instances): return something.
13783 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
13785 * window.c (Fselect_window): Undo 2000-03-17 change.
13787 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
13789 * postgresql.c (Fpq_setenv): Remove this turkey when linking
13790 against v7.0 libraries. Insta-coredump city until the postgres
13793 2000-03-17 Andy Piper <andy@xemacs.org>
13795 * faces.c (complex_vars_of_faces): don't give the widget face an
13796 inherited background pixmap.
13798 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13801 * event-stream.c (Fdispatch_non_command_events): return something.
13803 * gutter.c (output_gutter): use widget face.
13804 (clear_gutter): ditto.
13806 * NEWS: adjust again.
13808 * window.c (Fselect_window): make sure this runs to completion to
13809 avoid oddities with Fset_window_configuration.
13810 (Fcurrent_window_configuration): in general do not save the
13811 minibuffer as the selected window.
13813 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13815 2000-03-16 Olivier Galibert <galibert@pobox.com>
13817 * emacs.c (Frunning_temacs_p): Revert previous patch.
13818 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13820 2000-03-16 Andy Piper <andy@xemacs.org>
13822 * glyphs-x.c (x_tab_control_update): if no widget values then
13825 * NEWS: update for new features.
13827 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13828 synthetic event to the native system.
13829 (reinit_vars_of_event_Xt): set force_event_pending to
13830 emacs_Xt_force_event_pending.
13832 * events.h (struct event_stream): add force_event_pending.
13834 * specifier.c (recompute_one_cached_specifier_in_window): add
13837 * redisplay.c (redisplay_frame): don't call
13838 update_frame_subwindows. Reset subwindow cachels when
13839 subwindows_changed, removing this was an optimization too far.
13841 * redisplay-output.c (compare_runes): reorganize so that we catch
13842 glyph changes when we want them. Set optimize_output when this
13843 would help layouts.
13844 (redisplay_output_layout): remove frame_really_changed, use
13845 optimize_output instead.
13847 * redisplay-msw.c (mswindows_output_display_block): reset
13848 optimize_output after outputting a glyph.
13849 * redisplay-x.c (x_output_display_block): ditto.
13850 * redisplay-tty.c (tty_output_display_block): ditto.
13852 * gutter.c: (specifier_vars_of_gutter): use new spec changed
13854 (gutter_specs_changed): do specific gutter positions.
13855 (top_gutter_specs_changed): new function. Only update the
13856 specified gutter specs.
13857 (bottom_gutter_specs_changed): ditto.
13858 (left_gutter_specs_changed): ditto.
13859 (right_gutter_specs_changed): ditto.
13861 * gui.c (gui_item_hash_internal): new function, does a real hash.
13862 (gui_item_id_hash): use it.
13863 (gui_item_hash): hash the eval'ed gui_item.
13865 * gui-x.c (popup_selection_callback): send an eval event to call
13866 Fupdate_widget_instances.
13868 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13869 to call Fupdate_widget_instances.
13871 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13872 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13874 * glyphs.c: (update_frame_subwindows): deleted.
13875 (Fupdate_widget_instances): new function for updating the dirty
13876 state of widgets that might have changed.
13877 (syms_of_glyphs): add Qupdate_widget_instances.
13878 (full_list_hash): hash a list completely.
13879 (image_instance_hash): use it for items and properties.
13881 * frame-msw.c (mswindows_size_frame_internal): remove unused
13884 * faces.h (struct face_cachel): fix comment.
13886 * event-stream.c (Fdispatch_non_command_events): new
13887 function. Process non-command events, forcing an event cycle
13889 (syms_of_event_stream): declare.
13890 (event_stream_force_event_pending): new function. Force an event
13891 on the native event queue so that an event cycle will occur next
13895 (struct ntpipe_shove_stream):
13896 (mswindows_enqueue_dispatch_event):
13897 (mswindows_dequeue_dispatch_event):
13898 (mswindows_cancel_dispatch_event):
13899 (mswindows_pump_outstanding_events):
13900 (mswindows_drain_windows_queue):
13901 (mswindows_handle_paint):
13902 (mswindows_wnd_proc):
13903 (mswindows_key_to_emacs_keysym):
13904 (get_process_input_waitable):
13905 (emacs_mswindows_delete_stream_pair): re-indent file.
13906 (mswindows_need_event): do not process further fds if the windows
13907 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13908 fixes the 100% cpu problem.
13909 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13911 2000-03-15 Olivier Galibert <galibert@pobox.com>
13917 * emacs.c: Moved dump file searching to dumper.c.
13918 (Frunning_temacs_p): Fixed.
13920 * alloc.c: Moved everything pdump-related to dumper.c. Removed
13921 last_lrecord_type_index_assigned.
13923 2000-02-20 Olivier Galibert <galibert@pobox.com>
13925 * symsinit.h: Added reinit parameter to init_console_stream
13928 * lisp.h: Added file parameter to pdump_load declaration.
13930 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13931 support. Added dump file searching.
13933 * config.h.in: Added EMACS_PROGNAME.
13935 * console-stream.c (init_console_stream): Fix reinitialisation
13936 when running from temacs.
13938 * alloc.c (pdump): Add id support.
13939 (pdump_load): Add file parameter and signature/id support.
13941 * Makefile.in.in: Add full pdump support.
13943 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
13945 * postgresql.c: Update documentation to reflect latest code
13947 (print_result): Show tuple counts in printed representation when
13949 (Fpq_put_nbytes): MULE-ize.
13950 (Fpq_get_line_async): Ditto.
13952 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
13954 * postgresql.c (Fpq_lo_import): Fix return value.
13955 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13957 2000-03-13 Ben Wing <ben@xemacs.org>
13959 * alloc.c (pdump_load):
13960 Fix compile warning under mswin.
13962 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
13964 * postgresql.c: Mule-ization, bug fixes.
13965 Use PG_CODING to encapsulate coding system name changes.
13966 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13967 (pg-coding-system): Create.
13969 (Fpq_conn_defaults): Mule-ize.
13970 (Fpq_connectdb): Mule-ize & bug fix.
13971 (Fpq_connect_start): Mule-ize.
13972 (Fpq_set_client_encoding): Mule-ize.
13973 (Fpq_finish): Document `DEAD' connection status.
13974 (Fpq_clear): Ditto.
13975 (Fpq_pgconn): Mule-ize.
13976 (Fpq_exec): Mule-ize & bug fix.
13977 (Fpq_send_query): Ditto.
13978 (Fpq_get_result): Ditto.
13979 (Fpq_res_status): Mule-ize.
13980 (Fpq_result_error_message): Mule-ize.
13981 (Fpq_ntuples): fix comments.
13982 (Fpq_fname): Mule-ize.
13983 (Fpq_fnumber): Mule-ize.
13984 (Fpq_ftype): fix comments.
13985 (Fpq_get_value): Mule-ize.
13986 (Fpq_cmd_status): Ditto.
13987 (Fpq_cmd_tuples): Ditto.
13988 (Fpq_oid_value): Ditto.
13989 (Fpq_notifies): Ditto.
13990 (Fpq_lo_import): Ditto.
13991 (Fpq_lo_export): Ditto.
13992 (Fpq_get_line): Ditto.
13993 (Fpq_put_line): Mule-ize and bug fix.
13994 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13996 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
13998 * postgresql.c (vars_of_postgresql): Mule-ize.
13999 (Fpq_conn_defaults): Ditto.
14001 2000-03-12 Ben Wing <ben@xemacs.org>
14003 * alloc.c (Fmake_byte_code):
14004 * alloc.c (debug_string_purity_print):
14005 * alloc.c (pdump_backtrace):
14006 * alloc.c (pdump_get_indirect_count):
14007 * alloc.c (pdump_register_sub):
14008 * alloc.c (pdump_register_object):
14009 * alloc.c (pdump_register_struct):
14010 * alloc.c (pdump_dump_data):
14011 * alloc.c (pdump_reloc_one):
14015 * console-msw.c (GetConsoleHwnd):
14016 * console-msw.c (msw_hide_console):
14017 * console-msw.c (msw_show_console):
14018 * console-msw.c (msw_ensure_console_buffered):
14019 * console-msw.c (msw_output_console_string):
14020 * console-msw.c (console_type_create_mswindows):
14022 a) Added functions to manipulate the console window for use with
14025 b) Added support for writing text to the console, which is now
14026 used under Windows when xemacs is not being run non-interactively,
14027 to write text that would otherwise be destined for stdout because
14028 under these circumstances, text written to stdout tends to
14029 disappear and not be seen.
14033 * event-Xt.c (x_event_to_emacs_event):
14034 * event-Xt.c (describe_event_window):
14035 * events-mod.h (XEMACS_MOD_CONTROL):
14037 * events.c (Fmake_event):
14038 * events.c (character_to_event):
14039 * events.c (event_to_character):
14040 * events.c (format_event_object):
14041 * events.c (Fevent_modifiers):
14043 * events.h (struct key_data):
14044 * events.h (struct button_data):
14045 * events.h (struct misc_user_data):
14046 * frame-x.c (Fcde_start_drag_internal):
14047 * frame-x.c (Foffix_start_drag_internal):
14048 * gpmevent.c (Freceive_gpm_event):
14050 * keymap.c (bucky_sym_to_bucky_bit):
14051 * keymap.c (control_meta_superify):
14052 * keymap.c (make_key_description):
14053 * keymap.c (keymap_lookup_directly):
14054 * keymap.c (create_bucky_submap):
14055 * keymap.c (keymap_store):
14056 * keymap.c (define_key_check_and_coerce_keysym):
14057 * keymap.c (define_key_parser):
14058 * keymap.c (define_key_alternate_name):
14059 * keymap.c (Fdefine_key):
14060 * keymap.c (raw_lookup_key_mapper):
14061 * keymap.c (struct map_keymap_unsorted_closure):
14062 * keymap.c (map_keymap_unsorted_mapper):
14063 * keymap.c (map_keymap_sort_predicate):
14064 * keymap.c (map_keymap_sorted):
14065 * keymap.c (accessible_keymaps_mapper_1):
14066 * keymap.c (where_is_recursive_mapper):
14067 * keymap.c (describe_map_mapper):
14068 * keymap.c (describe_map_sort_predicate):
14069 * keymap.c (describe_map):
14070 * keymap.c (complex_vars_of_keymap):
14071 And a number of other files, the key modifier preprocessor
14072 constants that xemacs uses have names that conflict with constants
14073 defined under MS Windows for other purposes, so they were renamed
14074 to begin with the prefix XEMACS_. The variables that hold such
14075 modifiers were changed to consistently be of type int to fix
14076 various compile warnings.
14078 * console.c (complex_vars_of_console):
14081 * device-msw.c (mswindows_finish_init_device):
14082 * device-msw.c (msw_get_workspace_coords):
14083 * device-msw.c (mswindows_device_system_metrics):
14084 and various other files, added support for a new
14085 device property called offset-workspace which returns the position
14086 of the upper left corner of the workspace area and goes along with
14087 the existing size-workspace property.
14090 * dialog-msw.c (push_bufbyte_string_as_unicode):
14091 * dialog-msw.c (mswindows_popup_dialog_box):
14092 Added support for XEmacs-style accelerator specifications in
14093 button text. Note: I didn't add support for this under X Windows,
14094 and somebody needs to do this.
14097 * dialog.c (Fpopup_dialog_box):
14098 Documented the support for accelerators that was just mentioned.
14100 editfns.c (get_home_directory): Changed behavior under Windows
14101 when HOME not defined; former behavior was irretrievably broken.
14104 * emacs.c (main_1):
14106 * minibuf.c (clear_echo_area_internal):
14107 * minibuf.c (echo_area_append):
14109 * print.c (std_handle_out_external):
14110 * print.c (std_handle_out_va):
14112 * print.c (write_string_to_stdio_stream):
14113 * print.c (output_string):
14114 * print.c (debug_print):
14115 * print.c (debug_backtrace):
14116 * print.c (debug_short_backtrace):
14117 Cleaned up the code that prints text to stdout so that this can be
14118 changed to output into a console window instead under MS Windows,
14119 as described above.
14122 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14123 * eval.c (internal_catch):
14124 * eval.c (unwind_to_catch):
14125 * eval.c (throw_or_bomb_out):
14126 * eval.c (condition_case_1):
14127 * eval.c (signal_1):
14128 * eval.c (check_error_state_sanity):
14129 * eval.c (call_with_suspended_errors_1):
14130 * eval.c (call_with_suspended_errors):
14131 * eval.c (reinit_vars_of_eval):
14132 Added code to catch throw loops and check for a pesky bug that may
14136 * event-msw.c (key_needs_default_processing_p):
14137 * event-msw.c (mswindows_wnd_proc):
14138 * event-msw.c (mswindows_modifier_state):
14139 * event-msw.c (emacs_mswindows_quit_p):
14140 * event-msw.c (vars_of_event_mswindows):
14141 a) Added support for using the alt key to select menu items as is
14142 standard under MS Windows. This is controlled using the variable
14143 menu-accelerator-enabled, just like under X Windows. There is an
14144 option on the options menu to turn this support on. I really
14145 think that it should be on by default under Windows, but I'm not
14146 going to make this change yet.
14148 b) Added support for dynamic display size changes under Windows.
14151 * event-stream.c (maybe_echo_keys):
14152 * event-stream.c (Fnext_event):
14153 * event-stream.c (command_builder_find_leaf):
14154 * event-stream.c (lookup_command_event):
14155 * event-stream.c (execute_command_event):
14156 * event-stream.c (pre_command_hook):
14157 * event-stream.c (post_command_hook):
14158 * event-stream.c (syms_of_event_stream):
14159 * event-stream.c (vars_of_event_stream):
14160 * event-stream.c (complex_vars_of_event_stream):
14161 * events.h (struct command_builder):
14163 a) Tried to clean up a little bit the horribly written x-specific
14164 accelerator code that crept into this file. I moved this code
14165 into menubar-x.c where it belongs. I also needed to move the
14166 command builder structure into the file events.h because it is
14167 accessed directly by this accelerator code. What I didn't do, but
14168 which should be done at some point, is to properly abstract this
14169 code using device methods instead of the kludgy way that it
14170 currently hooks into the event code.
14172 b) Added the lisp variables this-command-properties and
14173 last-command- properties, which should be used to synchronize two
14174 adjacent commands in preference to playing games with the variable
14175 this-command, which is typically what happens.
14177 c) Added some slightly nasty code to hook into the lisp support
14178 for shifted- motion-key selection. This is actually necessary for
14179 somewhat complicated reasons, which are described in
14180 simple.el. (NB: I think the proper thing would be to have the code
14181 that calls the pre and post command hooks also call out to generic
14182 lisp functions in simple.el, where all built-in stuff could be
14183 added. I will think about this more.)
14185 * event-unixoid.c (poll_fds_for_input):
14186 * lread.c (readchar):
14187 * redisplay-tty.c (tty_clear_frame):
14188 * redisplay-x.c (x_get_gc):
14189 * signal.c (interrupt_signal):
14190 And a whole bunch of other files: fixed up places that printed
14191 directly to stderr to instead call the function stderr_out so that
14192 the changes I made under Windows work correctly.
14194 * filemode.c (mode_string):
14198 * frame-msw.c (mswindows_size_frame_internal):
14199 Fixed the computation of frame size and position to keep the frame
14200 within the workspace area, rather than within the physical
14201 dimensions of the screen, so that the frame doesn't overlap window
14202 manager decorations, such as the start menu and toolbar, typically
14203 at the bottom of the screen.
14205 * frame.c (vars_of_frame):
14206 Changed the default frame title format under MS Windows to consist
14207 of buffername-XEmacs, which is standard under MS Windows. I think
14208 it might be a good idea to change this everywhere because I think
14209 it is superior to the current frame title format, but this is the
14210 kind of change that is likely to cause some people to get annoyed,
14211 so I'm not making it.
14213 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14215 * gui-msw.c (mswindows_handle_gui_wm_command):
14216 Fixed compile warnings.
14219 * gui-x.c (strdup_and_add_accel):
14220 * gui-x.c (button_item_to_widget_value):
14222 Added code to automatically put an accelerator onto the beginning
14223 of menu items that don't have one as is now the standard, and is
14224 described more later. Also fixed things so that the menu item
14225 name can be an evaluated expression, again a new standard.
14228 * gui.c (gui_item_add_keyval_pair):
14229 * gui.c (make_gui_item_from_keywords_internal):
14230 * gui.c (gui_add_item_keywords_to_plist):
14231 * gui.c (gui_item_accelerator):
14232 * gui.c (gui_name_accelerator):
14233 * gui.c (gui_item_included_p):
14234 * gui.c (gui_item_display_flush_left):
14235 * gui.c (gui_item_display_flush_right):
14236 * gui.c (parse_gui_item_tree_item):
14237 * gui.c (parse_gui_item_tree_children):
14238 * gui.c (parse_gui_item_tree_list):
14239 Mule-ized. Cleanup. GCPRO addition.
14241 * line-number.c (buffer_line_number):
14243 * lisp.h (EMACS_INT_MAX):
14244 Added the manifest constant EMACS_INT_MIN corresponding to the
14245 existing constant EMACS_INT_MAX. This is partially to fix compile
14246 warnings under Windows, and partly for cleanliness.
14249 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14250 * menubar-msw.c (msw_translate_menu_or_dialog_item):
14251 * menubar-msw.c (displayable_menu_item):
14252 * menubar-msw.c (populate_menu_add_item):
14253 * menubar-msw.c (populate_or_checksum_helper):
14254 * menubar-msw.c (populate_menu):
14255 * menubar-msw.c (update_frame_menubar_maybe):
14256 * menubar-msw.c (prune_menubar):
14257 * menubar-msw.c (msw_char_is_accelerator):
14258 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14259 * menubar-msw.c (mswindows_handle_wm_command):
14260 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14261 * menubar-msw.c (mswindows_handle_wm_initmenu):
14262 * menubar-msw.c (mswindows_update_frame_menubars):
14263 * menubar-msw.c (mswindows_free_frame_menubars):
14264 * menubar-msw.c (mswindows_popup_menu):
14265 Fixed a bug in handling accelerators where an extra character
14266 would be displayed in the menu item. Also generalized the
14267 function displayable_menu_item because it is now used by the
14268 dialog box code as well. And finally, added code in the functions
14269 that create the menubar to extract a list of accelerators for the
14270 top level menubar, which is used in the event code to determine
14271 whether a particular alt-key combination should be used to invoke
14272 a menu item, or should be passed through to access the standard
14273 XEmacs keymap binding for this key combination.
14275 Much needed GCPROing.
14278 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14279 * menubar-x.c (menu_item_descriptor_to_widget_value):
14280 * menubar-x.c (restore_in_menu_callback):
14281 * menubar-x.c (x_popup_menu):
14282 * menubar-x.c (menu_move_up):
14283 * menubar-x.c (menu_move_down):
14284 * menubar-x.c (menu_move_left):
14285 * menubar-x.c (menu_move_right):
14286 * menubar-x.c (menu_select_item):
14287 * menubar-x.c (command_builder_operate_menu_accelerator):
14288 * menubar-x.c (menu_accelerator_junk_on_error):
14289 * menubar-x.c (command_builder_find_menu_accelerator):
14290 * menubar-x.c (Faccelerate_menu):
14292 Moved a whole bunch of code here that was previously in
14293 event-stream.c as described above. There is also code connected
14294 to the new standard of adding an accelerator to the beginning of
14295 menu items that don't have one as described above and below.
14298 * menubar.c (menu_parse_submenu_keywords):
14299 * menubar.c (Fmenu_find_real_submenu):
14300 * menubar.c (Fnormalize_menu_item_name):
14301 * menubar.c (syms_of_menubar):
14302 * menubar.c (vars_of_menubar):
14303 * menubar.c (complex_vars_of_menubar):
14305 a) Cleaned up a bunch of documentation and improved it.
14307 b) XEmacs now automatically adds an accelerator onto the beginning
14308 of any menu items that don't have one. I did this because there
14309 will inevitably be some menu items on the main menubar that don't
14310 have accelerators on them because the package that adds that
14311 particular menu item hasn't yet been fixed up to have accelerators
14312 in them and it looked rather strange to have some items with and
14313 some items without accelerators, especially since even in items
14314 without accelerators, you can, at least under windows, still
14315 access the item through an accelerator corresponding to the first
14316 character in the item's name. If people don't like this behavior,
14317 I can add a variable to turn it off optionally, but I'm not sure
14318 this is a good idea because we really do need to have accelerators
14319 on all of the menu items, and if a package doesn't like the
14320 accelerators being put on the first character, then it should put
14321 the accelerators where they belong.
14323 c) I made a behavior change, which is that the descriptor that
14324 specifies the text of the menu item, which formerly was just a
14325 string, can now also be an evaluated expression. This makes this
14326 descriptor parallel with all of the others, which could also be
14327 evaluated expressions. This also obviates the need for the
14328 keyword :label, which was previously listed in the documentation
14329 as unimplemented, and which was for the same purpose.
14334 * ntproc.c (new_child):
14335 * ntproc.c (sys_spawnve):
14336 * ntproc.c (find_child_console):
14337 * ntproc.c (sys_kill):
14338 Fixed compile warnings. By the way, this file should really go
14339 away entirely, and this will happen as soon as Kirill makes his
14340 final round of process cleanups, which affect the function
14344 * process-nt.c (struct nt_process_data):
14345 * process-nt.c (find_process_from_pid):
14346 * process-nt.c (send_signal_the_nt_way):
14347 * process-nt.c (enable_child_signals):
14348 * process-nt.c (find_child_console):
14349 * process-nt.c (send_signal_the_95_way):
14350 * process-nt.c (nt_finalize_process_data):
14351 * process-nt.c (ensure_console_window_exists):
14352 * process-nt.c (nt_create_process):
14353 * process-nt.c (nt_kill_child_process):
14354 * process-nt.c (nt_kill_process_by_pid):
14355 * process-nt.c (nt_open_network_stream):
14356 * process-nt.c (vars_of_process_nt):
14357 Copied over code from Emacs 20.5 to correctly send signals to sub-
14358 processes under Windows 95. Also added code to automatically
14359 create and hide console window when a sub-process is created under
14360 Windows 95, which obviates the need for the separate runemacs.exe
14361 executable, and finally implemented some variables that were
14362 implemented in Emacs 20.5, but previously not in XEmacs. These
14363 include mswindows- start-process-share-console and
14364 mswindows-start-process-inherit-error-mode. (Both of these only
14365 apply to Windows 95.)
14367 * regex.c (regex_compile): Fixed a compile warning.
14370 * select-msw.c (mswindows_own_selection):
14371 * select-msw.c (mswindows_get_foreign_selection):
14372 * select-msw.c (mswindows_disown_selection):
14373 * select-msw.c (console_type_create_select_mswindows):
14374 * select-msw.c (syms_of_select_mswindows):
14375 Cleaned up the file and implemented the device method
14376 selection_exists_p, which had accidentally been left out. Also
14377 removed four lisp functions that were remnants from before the
14378 time when the selection code was properly device abstracted.
14379 These functions are no longer needed because there are generic
14380 equivalents, and because they were added recently and don't exist
14381 in FSF Emacs, I don't think there's any problem with just deleting
14385 * sysdep.c (sys_subshell):
14386 Fixed a compile warning, although in this case there's probably
14387 something wrong with this code, and it ought to be looked into
14388 more thoroughly by somebody who understands it.
14391 * window.c (Fwindow_text_area_height):
14392 * window.c (Fwindow_width):
14393 * window.c (Fwindow_full_width):
14394 * window.c (Fwindow_pixel_width):
14395 * window.c (debug_print_window):
14396 * window.c (syms_of_window):
14397 Added functions window-text-area-height and window-full-width,
14398 which are functions for returning various width and height
14399 characteristics of a window. (One of these functions is necessary
14400 for making the file dialog box work correctly, and the other one
14401 was added for completeness.) Also added a table to the
14402 documentation for window-height which describes the entire scheme
14403 for accessing width and height characteristics of a window.
14405 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14407 * nt.c (fstat): Added a comment for another problem with
14408 non-encapsulated [f]stat(), reported by Adrian Aichner
14409 <aichner@ecf.teradyne.com>.
14411 2000-03-11 Andy Piper <andy@xemacs.org>
14413 * window.c (make_dummy_parent): initialize subwindow instance
14415 (Fset_window_configuration): zero extent_modiff.
14417 2000-03-10 Andy Piper <andy@xemacs.org>
14419 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14420 more changes can be triggered.
14421 (Fredisplay_frame): ditto.
14422 (Fredraw_device): ditto.
14423 (Fredisplay_device): ditto.
14424 (redisplay_frame): make non-static.
14425 (redisplay_frame): call update_frame_gutter_geometry outside of
14428 * gutter.h: declare update_frame_gutter_geometry.
14430 * redisplay.h: declare redisplay_frame.
14432 * gutter.c (update_frame_gutter_geometry): move geometry changes
14433 in update_frame_gutters here. Geometry changes can only occur
14434 outside of redisplay.
14435 (update_frame_gutters): remove geometry change code.
14436 (Fredisplay_gutter_area): make sure that we are in display when we
14437 update and that we have flushed any size changes.
14439 2000-03-11 Andy Piper <andy@xemacs.org>
14441 * alloc.c (pdump_dump_data): remove i & count shadows.
14443 2000-02-27 Mike Alexander <mta@arbortext.com>
14445 * sysdep.h: Declare pdump_read_file
14447 * sysdep.c (pdump_read_file): New function
14449 * alloc.c (pdump_load): Call pdump_read_file to get the portable
14452 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
14454 * lrecord.h: add `lrecord_type_pgsetenv'.
14456 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
14458 * symsinit.h: declare (vars|syms)_of* functions.
14459 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14461 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
14463 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14465 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14468 * emacs.c (main_1): Call postgres initialization code.
14470 * postgresql.h: New file. PostgreSQL RDBMS support.
14471 * postgresql.c: New file.
14473 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
14475 * redisplay-output.c (redisplay_output_display_block): Disable
14478 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14480 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14481 (Fcanna_henkan_next): Ditto.
14482 (Fcanna_bunsetu_henkou): Ditto.
14483 (Fcanna_henkan_kakutei): Ditto.
14484 (Fcanna_henkan_end): Ditto.
14485 (Fcanna_henkan_quit): Ditto.
14486 (Fcanna_henkan_next): Set retun value correctly.
14487 (c2mu): Use unsigned char instead of signed char.
14489 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14491 * emacs.c (main_1): Always call syms_of_gui.
14492 * inline.c: include gui.h
14494 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14496 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14497 converted to Lisp_Object.
14498 (Qtop_bottom): New variable.
14499 (syms_of_redisplay): Initialize it.
14500 * redisplay.h (Vvisible_bell): Ditto.
14501 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14502 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14503 only flash top and bottom.
14505 2000-03-08 Andy Piper <andy@xemacs.org>
14507 * buffer.c (Frename_buffer): record new buffer name the right way.
14509 2000-03-08 Andy Piper <andy@xemacs.org>
14511 * glyphs.c (update_subwindow): increase hash depth so that widget
14512 items get picked up properly.
14514 * redisplay-output.c (compare_runes): increase hash depth so that
14515 widget items get picked up properly.
14517 2000-03-08 Andy Piper <andy@xemacs.org>
14519 * gutter.c (output_gutter): add some debug.
14521 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14522 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14523 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14525 * redisplay-output.c (compare_runes): use display_hash to
14526 determine if glyphs really are not the same.
14528 * glyphs.c (update_subwindow): check display_hash to see if
14529 anything really needs to be updated. If not then do
14530 nothing. Record the display_hash after updating.
14531 (image_instance_equal): compare the image_instance face also.
14533 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
14535 * redisplay.h: Fix comment style.
14537 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
14539 * consle-msw.h (struct mswindows_frame):
14540 Added new member paint_pending to indicate whether a WM_PAINT
14541 magic event has been queued for this frame.
14543 * event-msw.c (mswindows_drain_windows_queue):
14544 Don't queue a WM_PAINT magic event if one is already queued.
14545 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14547 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14549 2000-03-07 Didier Verna <didier@xemacs.org>
14551 * dired.c: #include `regex.h' after `sysfile.h'.
14553 2000-03-06 Martin Buchholz <martin@xemacs.org>
14555 * sound.c (init_nas_sound): Fix compiler warning.
14557 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14559 (MARK_STRUCT_AS_FREE):
14560 (MARK_STRUCT_AS_NOT_FREE):
14561 Make `gcc -fstrict-aliasing' work properly.
14563 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
14565 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14566 (mswindows_delete_device): Call CoUnnitialize().
14568 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14570 2000-02-25 <CraigL@DyCon.com>
14572 * process-nt.c: MinGW now has <shellapi.h>, but still needs
14575 * sysdep.c: This extern declaration for environ prevents MinGW
14576 from finding the variable in CRTDLL.DLL.
14578 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14580 (SHGFI_EXETYPE): ..
14581 (WM_MOUSEWHEEL): ..
14582 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14584 (MMRESULT): Removed, now defined in cygwin's windows headers.
14586 (uid_t,gid_t,pid_t,ssize_t): ..
14587 (_timeb): Removed, MinGW defines both _timeb and timeb.
14588 (HAVE_H_ERRNO): Added.
14589 (HAVE_TZNAME): Added, configure is not detecting this.
14591 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
14593 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14594 * syntax.c (syntax_match): Use it.
14596 * cmds.c: Import auto-fill-chars from FSF Emacs.
14597 (Vauto_fill_chars): New variables.
14598 (internal_self_insert): Check Vauto_fill_chars.
14600 Declare auto-fill-chars as a Lisp variable and initialize it.
14602 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
14604 * fileio.c (Fmake_symbolic_link):
14606 Run handlers even if local machine doesn't have symlinks.
14608 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
14610 * event-msw.c (mswindows_drain_windows_queue):
14611 Don't generate paint magic events for non-XEmacs frames.
14613 2000-03-05 Andy Piper <andy@xemacs.org>
14615 * redisplay.c (redisplay_frame): generate_displayable_area and
14616 friends assumes that we are not in GC, we therefore have to make
14617 sure that this doesn't happen.
14619 * gutter.c (calculate_gutter_size): generate_displayable_area
14620 assumes that we are not in GC, we therefore have to make sure that
14621 this doesn't happen.
14623 2000-03-05 Martin Buchholz <martin@xemacs.org>
14625 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14627 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
14629 * redisplay.c (regenerate_window): Make sure we set a sane value
14630 for end_pos even if we jump out of the loop.
14631 (regenerate_window): Answer Ben's question :-).
14632 (start_end_of_last_line): Add may_error argument.
14633 (start_of_last_line):
14634 (end_of_last_line): Pass may_error = 0.
14635 (end_of_last_line_may_error): New function.
14636 (pixel_to_glyph_translation): Use it, so we don't crash in
14639 2000-03-04 Andy Piper <andy@xemacs.org>
14641 * window.h (struct window): add gutter_extent_modiff.
14643 * window.c (allocate_window): zero out gutter_extent_modiff.
14645 * redisplay.h: declare sync_display_line_structs.
14647 * redisplay.c (add_glyph_rune): add a better comment.
14649 * redisplay-output.c (sync_display_line_structs): made non-static.
14650 (compare_runes): remove unneccesary glyph cachel access.
14652 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14654 * gutter.c (output_gutter): don't output the gutter if extent
14655 changes only involve extents in buffers. use 4 sets of display
14657 (gutter_extent_signal_changed_region_maybe): new function. Mark
14658 extents in gutters as changed.
14659 (update_frame_gutters): use 4 sets of display lines.
14660 (reset_gutter_display_lines): ditto.
14661 (free_frame_gutters): ditto.
14662 (redraw_exposed_gutter): force output of gutters.
14664 * frame.h (struct frame): add 4 sets of gutter display lines.
14666 * extents.c: (extent_changed_for_redisplay): signal changes to
14667 extents in strings in the gutter as well as extents in buffers.
14669 2000-03-02 Andy Piper <andy@xemacs.org>
14671 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14673 * frame.c (Fmake_frame): make sure the gutters get initialized
14674 after the frame is visible.
14675 (set_frame_selected_window): re-arrange compilation macros a
14677 (change_frame_size_1): mark gutters changed.
14679 * device.c (Fset_device_class): mark gutters changed.
14681 2000-03-01 Andy Piper <andy@xemacs.org>
14683 * window.c (window_top_frame_gutter_height): deleted.
14684 (window_bottom_frame_gutter_height): ditto.
14685 (window_left_frame_gutter_height): ditto.
14686 (window_right_frame_gutter_height): ditto.
14687 (window_top_gutter_height): don't use them.
14688 (window_bottom_gutter_height): ditto.
14689 (window_left_gutter_width): ditto.
14690 (window_right_gutter_width): ditto.
14691 (Fsplit_window): ditto.
14692 (Fwindow_pixel_edges): don't use border dimensions here.
14694 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14695 (update_scrollbar_instance): ditto.
14697 * redisplay.c (generate_modeline): don't take gutters into account.
14698 (generate_modeline): ditto.
14699 (redisplay_frame): small gutter display optimization.
14701 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14703 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14704 gutters into account.
14706 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14707 for window position and type.
14709 * gutter.c (get_gutter_coords): fix for frame gutters.
14710 (update_frame_gutters): update frame geometry if the gutters have
14712 (init_frame_gutters): record current gutter geometries.
14714 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14716 (mswindows_widget_instantiate): ditto.
14718 * frame.h (struct frame): add current_gutter_bounds.
14720 * frame.c (change_frame_size_1): position window and minibuffer
14721 appropriately taking into account the frame gutters.
14723 * frame-x.c: (x_initialize_frame_size): take into account the
14726 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
14728 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
14730 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
14732 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14734 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14736 * file-coding.c (reset_decoding_stream): Clear previous
14737 detection state when autodetect.
14739 2000-02-29 Didier Verna <didier@xemacs.org>
14741 * extents.c (set_extent_glyph_1): don't require extents to be
14744 2000-02-27 Andy Piper <andy@xemacs.org>
14746 * gutter.c (Fset_default_gutter_position): don't default left and
14747 right gutter visibility to t.
14748 (Fset_default_gutter_position): run
14749 default-gutter-position-changed-hook.
14750 (syms_of_gutter): add default-gutter-position-changed-hook.
14752 2000-02-26 Andy Piper <andy@xemacs.org>
14754 * specifier.c (Fmake_specifier): add gutter references.
14756 * gutter.h (RAW_WINDOW_GUTTER): new macro.
14758 * lisp.h: declare Fvalid_plist_p.
14760 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14762 (default_gutter_visible_p_changed_in_window): invalidate gutter as
14763 well as its visibility so that it gets reconstructed.
14764 (construct_window_gutter_spec): new function. Construct a string
14765 to be displayed in the gutter from a plist of strings. Take care
14766 to only use elements that are declared as visible.
14767 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14769 (gutter_validate): allow plists of strings in the specifier.
14770 (gutter_specs_changed): construct the real_gutter from the gutter
14771 specs using construct_window_gutter_spec.
14772 (gutter_visible_validate): gutter-visible is a new specifier type.
14773 (Fgutter_visible_specifier_p): new function for the new specifier.
14774 (syms_of_gutter): declare gutter-visible and
14775 Fgutter_visible_specifier_p.
14776 (specifier_type_create_gutter): intitalize new gutter-visible
14778 (reinit_specifier_type_create_gutter): ditto.
14779 (specifier_vars_of_gutter): use new specifier type for gutter
14781 (init_frame_gutters): construct real_gutter correctly.
14782 (Fgutter_specifier_p): beef up documentation.
14783 (Fgutter_size_specifier_p): ditto.
14785 * winslots.h: add real_gutter slots.
14787 2000-02-25 Andy Piper <andy@xemacs.org>
14789 * device-msw.c: Be kind to older cygwin versions. From Raymond
14790 Toy <toy@rtp.ericsson.se>.
14792 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14793 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14795 2000-02-25 Martin Buchholz <martin@xemacs.org>
14797 * elhash.c (MARK_OBJ): Practice macro hygiene.
14799 2000-02-24 Martin Buchholz <martin@xemacs.org>
14801 * miscplay.c: s/__inline__/inline/g;
14802 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14803 (get_device_compdc): INLINE ==> static inline
14804 * *.[ch]: Change INLINE to INLINE_HEADER globally.
14805 find -name '*.h' | \
14806 xargs global-replace \
14807 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14809 2000-02-25 Andy Piper <andy@xemacs.org>
14811 * window.c (window_top_frame_gutter_height): new function.
14812 (window_top_window_gutter_height): ditto.
14813 (window_top_gutter_height): use them.
14814 (window_bottom_frame_gutter_height): new function.
14815 (window_bottom_window_gutter_height): ditto.
14816 (window_bottom_gutter_height): use them.
14817 (window_left_window_gutter_width): new function.
14818 (window_left_frame_gutter_width): ditto.
14819 (window_left_gutter_width): use them.
14820 (window_right_window_gutter_width): new function.
14821 (window_right_frame_gutter_width): ditto.
14822 (window_right_gutter_width): use them.
14823 (window_pixel_height): new function. calulate window pixel height
14824 with frame gutter involvement.
14825 (Fsplit_window): calculate new sizes taking frame gutters into
14827 (window_char_height_to_pixel_height): don't include frame gutters.
14828 (window_char_height): use window_pixel_height.
14829 (window_pixheight): rename from window_pixel_height.
14830 (change_window_height): use it.
14831 (window_pixel_height_to_char_height): don't include frame gutters.
14832 (window_char_width_to_pixel_width): ditto.
14834 2000-02-25 Andy Piper <andy@xemacs.org>
14836 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14839 2000-02-24 Martin Buchholz <martin@xemacs.org>
14841 * alloc.c (staticpro):
14842 (staticpro_nodump):
14847 (compact_string_chars):
14848 (pdump_dump_wired):
14849 Convert: if (foo) abort(); ==> assert (! foo);
14851 * eldap.c (Fldap_search_basic):
14855 Fix compiler warnings, and possible crashes if (random) return
14856 value were to be used.
14858 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14860 * device-msw.c: Workaround ResetDC failure.
14862 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14863 applying a devmode.
14865 * redisplay-msw.c (get_frame_dc): Added start_page_p.
14866 (mswindows_text_width): Do not start printer page.
14868 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14870 * glyphs-msw.c: Added image methods to msprinter console and
14871 msprinter-specific image instantiation.
14873 2000-02-20 Mike Alexander <mta@arbortext.com>
14875 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14876 to avoid crashes when selection-sets-clipboard is on
14877 (mswindows_own_selection): ditto
14879 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14882 * redisplay-msw.c (get_frame_dc):
14883 (get_frame_compdc):
14885 * device-msw.c (mswindows_init_device):
14886 (mswindows_delete_device):
14887 (msprinter_init_device):
14888 (msprinter_delete_device):
14889 * frame-msw.c (mswindows_init_frame_1):
14890 (mswindows_delete_frame):
14891 (msprinter_init_frame_3):
14892 (msprinter_delete_frame): Move compatible DC to device object from
14893 frame object, for both mswindows and msprinter. Only one at a time
14894 is needed, it is a real waste to have one per frame!
14896 2000-02-23 Andy Piper <andy@xemacs.org>
14898 * glyphs.c: add dynamic width and height elements.
14899 (image_instance_equal): ditto.
14901 * glyphs-widget.c (widget_query_geometry): calculate width and
14902 height dynamically if required.
14903 (initialize_widget_image_instance): initialize dynamic dimensions.
14904 (widget_instantiate): pick-up dynamic dimensions.
14906 * glyphs.h (struct Lisp_Image_Instance): add width and height for
14907 dynamic determination. Add appropriate macros.
14909 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14911 (WINDOW_GUTTER_SIZE): ditto.
14912 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14914 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14916 (get_frame_dc): ditto.
14918 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14921 2000-02-23 Martin Buchholz <martin@xemacs.org>
14923 * XEmacs 21.2.31 is released.
14925 2000-02-22 Ben Wing <ben@xemacs.org>
14927 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14929 2000-02-22 Andy Piper <andy@xemacs.org>
14931 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14933 2000-02-21 Mike Sperber <mike@xemacs.org>
14937 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14940 2000-02-21 Mike Sperber <mike@xemacs.org>
14942 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14944 2000-02-21 Martin Buchholz <martin@xemacs.org>
14946 * XEmacs 21.2.30 is released.
14948 2000-02-20 Martin Buchholz <martin@xemacs.org>
14950 Performance hacking.
14952 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14953 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14954 * emacs.c (main_1):
14956 * console.c (DEFVAR_CONSOLE_LOCAL_1):
14957 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14958 * symeval.h (DEFVAR_SYMVAL_FWD):
14959 * symbols.c (guts_of_unbound_marker):
14960 Make all c_readonly objects also lisp_readonly and marked for life.
14961 * lrecord.h (struct lrecord_implementation):
14962 Document flags better.
14963 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14964 * lrecord.h (DECLARE_LRECORD):
14965 * lrecord.h (XSETRECORD):
14966 * lrecord.h (RECORDP):
14967 * lrecord.h (RECORD_TYPEP):
14968 * lrecord.h (RECORD_MARKER): New.
14969 * lrecord.h (error_check_*):
14970 * lrecord.h (CONCHECK_NONRECORD):
14971 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14972 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14973 * lrecord.h (set_lheader_implementation):
14974 * lrecord.h (enum lrecord_type): New.
14975 * symeval.h (SYMBOL_VALUE_MAGIC_P):
14976 * alloc.c (disksave_object_finalization_1):
14977 * alloc.c (mark_object):
14978 * alloc.c (lrecord_type_index):
14979 * alloc.c (tick_lcrecord_stats):
14980 * alloc.c (Fgarbage_collect):
14981 * alloc.c (init_alloc_once_early):
14982 * alloc.c (pdump_load):
14983 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14984 * alloc.c (lrecord_type_index): Delete.
14985 Make lisp object type indexes be constant.
14986 Makes (byte-compile) 5% faster.
14987 Put all marker functions into their own array.
14988 Makes (garbage-collect) 5% faster.
14989 Optimize SYMBOL_VALUE_MAGIC_P.
14990 Makes (byte-compile) 2-3% faster.
14991 * config.h.in (gc_checking_assert): New.
14992 * alloc.c: Use gc_checking_assert().
14993 * .dbxrc: Make compatible with new object type implementation.
14994 * .gdbinit: Make compatible with new object type implementation.
14995 * alloc.c: Delete all symbols defined only for debugging, such as
14996 Lisp_Type_Vector and lrecord_charset.
14998 2000-02-21 Andy Piper <andy@xemacs.org>
15000 * gui-msw.c (Fmswindows_shell_execute): fix file location
15003 * buffer.c (Fkill_buffer): remove buffer from alist buffer
15004 unshowing so that set_window_buffer doesn't undo
15005 kill_buffer_hook's hard work.
15007 * glyphs-widget.c (tab_control_query_geometry): don't count the
15008 first item when calculating geometry.
15010 * glyphs.c (map_subwindow): remove redundant code.
15011 (update_frame_subwindows): be more circumspect about when to
15014 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15015 when items haven't changed. Update faces if faces have changed as
15016 well as just the widget face.
15017 (x_tab_control_update): Update faces if faces have changed as well
15018 as just the widget face.
15020 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
15022 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15024 (build_syscolor_string): Use mswindows_color_to_string to try to
15026 (mswindows_device_system_metrics): Reverse the foreground and
15027 background colors so that they match the documentation.
15029 * objects-msw.c: (mswindows_X_color_map): tweak some values so
15030 they match the default Windows palette.
15031 (mswindows_color_to_string): New function.
15033 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
15035 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15037 2000-02-18 Olivier Galibert <galibert@pobox.com>
15039 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15040 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15042 * symbols.c (init_symbols_once_early): Removed obsolete
15043 DATA_SEG_BITS related kludge.
15044 (defvar_magic): Ditto.
15046 * malloc.c: Removed obsolete DATA_SEG_BITS
15048 * mem-limits.h: Ditto.
15050 * Makefile.in.in: Removed obsolete HAVE_SHM
15053 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
15055 * device-msw.c (mswindows_delete_device): Free DDE string
15058 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15060 * keymap.c (get_keyelt):
15061 * unexnt.c (unexec):
15062 * vm-limit.c (memory_warnings):
15063 * ntheap.c (recreate_heap):
15064 * ntheap.h (UNINIT_PTR):
15065 * select-msw.c (Fmswindows_get_clipboard):
15066 (Fmswindows_set_clipboard):
15067 * objects-msw.h (MSWINDOWS_BAD_HFONT):
15069 * menubar-msw.c (displayable_menu_item):
15071 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15072 * sysdep.c (sys_subshell):
15073 * process-nt.c (nt_create_process):
15074 * nt.c (normalize_filename):
15075 (dostounix_filename):
15076 (unixtodos_filename):
15077 * ntproc.c (win32_executable_type):
15078 * ntplay.c (play_sound_data_1):
15080 * editfns.c (get_home_directory):
15081 * event-msw.c (struct winsock_stream):
15082 (mswindows_dde_callback):
15083 * device-msw.c (msprinter_init_device):
15084 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15086 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15087 mswindows_clear_toolbar were swapped!
15089 * objects-msw.c:(colormap_t):
15091 * emacs.c (struct standard_args): Fixed const jumble.
15093 * glyphs-widget.c (update_widget): Fixed comparison notation.
15095 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15097 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15098 __declspec(noreturn) syntax.
15100 2000-02-19 Martin Buchholz <martin@xemacs.org>
15102 * eldap.c (Fldap_open):
15103 (Fldap_search_basic):
15106 Use new coding system conversion macros.
15108 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15110 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15112 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
15114 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15115 (Fldap_add, Fldap_modify, Fldap_delete): New functions
15117 * eldap.c (Qadd, Qreplace): New constant symbols
15118 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15119 interruptions by XEmacs signals
15120 Remove unnecessary calls to slow_down_interrupts and
15121 speed_up_interrupts
15122 (Fldap_search_basic): Renamed from Fldap_search_internal
15123 Added new optional parameter VERBOSE that triggers the
15124 display of progress messages
15125 Remove unnecessary calls to slow_down_interrupts and
15126 speed_up_interrupts
15127 LDAP result code analysis rewritten
15128 (Fldap_add, Fldap_modify, Fldap_delete): New functions
15129 (syms_of_eldap): Define the new symbols and functions
15132 2000-02-17 Martin Buchholz <martin@xemacs.org>
15134 * realpath.c: Determine PATH_MAX maximally portably.
15136 * insdel.c (bytecount_to_charcount): Optimize.
15137 The function used to be optimized for entirely ASCII sequences.
15138 Now it is optimized for successive characters from the same
15139 charset. This also wins big for _mostly_ ASCII sequences.
15141 * fileio.c (Ffile_truename): convert return from realpath() using
15142 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
15143 - Rewrite GCPROing slightly.
15145 * sysdep.c (sys_open): Do filename conversion, like all other
15146 sys_* functions. Fixes bug:
15147 (let ((file-name-coding-system 'iso-8859-2))
15148 (write-region x y latin2-name))
15149 ==> writes filename using internal encoding.
15151 2000-02-18 Martin Buchholz <martin@xemacs.org>
15153 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15154 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15155 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15156 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15157 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15158 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15159 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15160 (CONST_IF_NOT_DEBUG): Delete.
15161 * alloc.c (this_one_is_unmarkable): Delete.
15162 (mark_object): Don't check for this_one_is_unmarkable. Use the
15163 c_readonly flag instead.
15164 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15166 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
15168 * event-msw.c (mswindows_drain_windows_queue):
15169 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15170 away redundant repaint events.
15172 2000-02-17 Andy Piper <andy@xemacs.org>
15174 * redisplay.h: declare mark_redisplay_structs.
15176 * redisplay.c (redisplay_window):
15177 (redisplay_frame): don't check subwindows_state_changed.
15178 (mark_redisplay): mark gutters here.
15180 * glyphs.c: (instantiate_image_instantiator): always layout if we
15181 haven't done so already.
15182 (allocate_image_instance): don't mark as dirty.
15183 (update_subwindow): bind inhibit_quit.
15185 * gutter.c (mark_gutters): new function.
15187 * glyphs-x.c (x_update_widget): Always resize to get round a
15190 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15191 breaking absolutely everything.
15193 * gutter.h: declare mark_gutters.
15195 2000-02-16 Martin Buchholz <martin@xemacs.org>
15197 * XEmacs 21.2.29 is released.
15199 2000-02-15 Olivier Galibert <galibert@pobox.com>
15201 * fns.c (size_bit_vector): Fix computation of the size.
15203 2000-02-15 Martin Buchholz <martin@xemacs.org>
15205 * *.[ch]: Change CONST to const globally.
15206 find -name '*.[ch]' | \
15207 xargs global-replace \
15208 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15209 - Remove vestigial references to CONST_IS_LOSING
15211 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
15213 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15214 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15215 events instead of dispatching them directly.
15216 (mswindows_handle_paint): New function to do repainting.
15217 (mswindows_wnd_proc):
15218 (emacs_mswindows_handle_magic_event): Call above function.
15220 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
15222 * objects-msw.c (mswindows_create_font_variant): Return the new
15224 (initialize_font_instance): Get font metrics from the underlined
15225 variant of the font to cope with the case where the underlined
15226 font has a bigger descent.
15228 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
15230 * gui.c (gui_item_accelerator): Return the first underlined
15231 character in item name.
15233 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15235 * lisp.h: Added Qprinter.
15237 * general.c (syms_of_general): Initialized it.
15239 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15241 (get_frame_compdc): Made inline.
15243 * console.h (struct console_methods): Added eject_page method.
15245 * frame.h: Added FRAME_DISPLAY_P and friends.
15246 Aligned backslahes in many macros in more readable fashion.
15247 Added page_number to struct frame, and an accessor macro
15250 * defice.h: Added DEVICE_DISPLAY_P and friends.
15252 * device.c (Fdevice_printer_p): Used these.
15254 * frame.c (allocate_frame_core): Initialize page number.
15255 (Fprint_job_page_number):
15256 (Fprint_job_eject_page): Implemented.
15258 * frame-msw.c (msprinter_eject_page): Added method.
15259 (msprinter_start_page): Added.
15261 * window.c (Fwindow_truncated_p): Fixed docstring.
15262 (Fwindow_last_line_visible_height): Implemented.
15264 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
15266 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15268 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15270 * syntax.c (scan_words): Always advance at least one character.
15272 2000-02-13 Andy Piper <andy@xemacs.org>
15274 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15275 to make sure the glyph is in the cachels.
15277 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15278 global image instance flag.
15279 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15280 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15282 * glyphs.c (allocate_image_instance): set dirty bits correctly.
15283 (Fset_image_instance_property): mark layout as changed.
15284 (invalidate_glyph_geometry_maybe): mark layout as changed.
15285 (glyph_width): use new NEEDS_LAYOUT macro.
15286 (glyph_ascent): ditto.
15287 (glyph_descent): ditto.
15288 (glyph_height): ditto.
15289 (image_instance_layout): mark layout as clean after laying out.
15290 (update_subwindow): don't mark layout as clean here.
15292 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15293 should no longer be needed.
15295 * glyphs-x.c (x_update_widget): sanitize asserts.
15296 (x_finalize_image_instance): sanitize assignment to widgets.
15298 * glyphs-widget.c (widget_instantiate): don't need to clear the
15301 2000-02-13 Martin Buchholz <martin@xemacs.org>
15303 * sysdep.c (getcwd): Use standard prototype.
15304 * sysdep.h (getcwd): Use standard prototype.
15306 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15307 (sequence, start, end).
15308 Remove redundant type checking.
15309 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15310 view of `caller-protects') to avoid a crash where the real fix was
15313 2000-02-12 Martin Buchholz <martin@xemacs.org>
15315 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15317 * s/sol2.h: Remove feature macro initialization.
15319 * alloc.c (alloc_lcrecord): Add more type checking assertions.
15320 (vector_hash): New. Code from internal_hash.
15322 Fix up allocation subsystem comments.
15324 * config.h.in: Add __EXTENSIONS__ for Solaris.
15326 * systime.h (EMACS_GETTIMEOFDAY): New.
15327 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15328 Remove Solaris-specific code.
15329 Use void* for the (ignored) second arg for gettimeofday().
15331 * elhash.c (hash_table_hash): Implement it, finally.
15332 * elhash.c: Use hashcode_t.
15334 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15335 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15337 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15338 * fns.c (size_bit_vector):
15339 * alloc.c (size_vector):
15340 (make_vector_internal):
15341 (make_bit_vector_internal):
15342 (sweep_bit_vectors_1):
15343 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15345 2000-02-10 Martin Buchholz <martin@xemacs.org>
15347 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15348 Include strings.h to avoid warnings for bzero and strcasecmp.
15350 2000-02-10 Olivier Galibert <galibert@pobox.com>
15352 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15353 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15355 * fns.c (size_bit_vector): New. Declare bit vectors as a
15358 2000-02-10 Olivier Galibert <galibert@pobox.com>
15360 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15361 use a value field instead.
15362 (symbol_value_forward_forward): Use value field.
15363 (DEFVAR_SYMVAL_FWD): Use value field.
15364 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
15365 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15366 (DEFVAR_CONST_INT): Ditto.
15367 (DEFVAR_BOOL): Ditto.
15368 (DEFVAR_CONST_BOOL): Ditto.
15369 (DEFVAR_INT_MAGIC): Ditto.
15370 (DEFVAR_BOOL_MAGIC): Ditto.
15372 * symbols.c (guts_of_unbound_marker): Use value field.
15373 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15374 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15376 * lisp.h: Declare dumpopaque and noninteractive1.
15378 * alloc.c (dumpopaque): Added.
15379 (pdump_dump_opaquevec): Added.
15380 (pdump): Call pdump_dump_opaquevec to dump opaque data.
15381 (pdump_load): Reload opaque data. Sync noninteractive1 with
15384 2000-02-10 Andy Piper <andy@xemacs.org>
15386 * glyphs.c (image_instance_layout): if the size changes, mark it
15389 * redisplay-output.c (redisplay_output_layout): Update the
15391 (redisplay_output_subwindow): ditto.
15393 * glyphs.c (update_subwindow): make sure we reset flags for
15394 layouts as well as everything else.
15396 * glyphs-widget.c (layout_layout): don't need to set the instances
15399 2000-02-09 Martin Buchholz <martin@xemacs.org>
15401 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
15402 not HAVE_DLOPEN, which is a lower-level thing.
15404 * .cvsignore: Ignore gmon.out
15406 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
15408 * .cvsignore: Ignore portable dumper xemacs.dmp file
15410 2000-02-09 Andy Piper <andy@xemacs.org>
15412 * redisplay-output.c (redisplay_output_layout): be more clever
15413 about when we output based on the changed flags.
15415 * glyphs.h (struct image_instantiator_methods): add update_method.
15416 (struct Lisp_Image_Instance): add changed flags. Declare new
15417 macros for manipulating them.
15419 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15420 (image_instance_parent_glyph): find an image_instance's parent
15421 glyph or image_instance.
15422 (image_instance_layout): mark the size as changed.
15423 (set_image_instance_dirty_p): new function. mark an image
15424 instance, plus all of its parents, as dirty.
15425 (Fset_image_instance_property): use it.
15426 (Fglyph_animated_timeout_handler): use it.
15427 (update_subwindow): call update_widget and device methods for
15428 update_subwindow. Mark all changed flags as clean.
15429 (Fresize_subwindow): mark size as changed.
15431 * glyphs-x.c (x_finalize_image_instance): try and detect gc
15433 (x_update_subwindow): only resize subwindows here.
15434 (x_update_widget): new function. Update all changed properties of
15436 (x_resize_subwindow): deleted.
15437 (x_widget_set_property): deleted.
15438 (x_progress_gauge_set_property): deleted.
15439 (x_progress_gauge_update): new function. Implement recorded
15441 (x_tab_control_update): ditto.
15442 (x_tab_control_set_property): deleted.
15443 (console_type_create_glyphs_x): declare new functions.
15444 (image_instantiator_format_create_glyphs_x): ditto.
15446 * glyphs-widget.c (widget_set_property): mark text changed.
15447 (update_widget): new function. Update properties of a widget.
15448 (widget_instantiate): for layouts make sure we set their
15449 children's parent correctly.
15450 (tab_control_set_property): new function. Record changes that will
15451 take place under redisplay's control.
15452 (progress_gauge_set_property): ditto.
15453 (image_instantiator_progress_guage): declare new functions.
15454 (image_instantiator_tab_control): ditto.
15456 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15458 (mswindows_update_widget): new function. Update all properties on
15459 a widget that have changed.
15460 (mswindows_button_update): new function. Update a button's set
15462 (mswindows_tab_control_update): new function. Update the items in
15464 (mswindows_tab_control_set_property): deleted.
15465 (mswindows_progress_gauge_update): new function. Update the
15466 progress gauge's progress.
15467 (mswindows_widget_set_property): deleted. This is all done
15468 asynchronously now.
15469 (mswindows_progress_gauge_set_property): ditto.
15470 (console_type_create_glyphs_mswindows): declare new methods.
15471 (image_instantiator_format_create_glyphs_mswindows): ditto.
15473 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15474 (msprinter_set_frame_properties): ditto.
15476 * console.h (struct console_methods): Add update_widget_method.
15478 2000-02-09 Andy Piper <andy@xemacs.org>
15480 * gui-msw.c (Fmswindows_shell_execute): Make
15481 mswindows-shell-execute industrial strength.
15483 2000-02-08 Martin Buchholz <martin@xemacs.org>
15485 * lrecord.h: Make macro argument `props' match member function `plist'.
15488 * fns.c (Fremprop):
15489 * fns.c (Fobject_plist):
15492 Object property list frobbing cleanup.
15493 - Allow any lisp object (compared with `eq'), not just symbols, as
15494 keys in object plists.
15495 - Move symbol plist frobbing into symbols.c, where it belongs.
15496 - Move string plist frobbing into alloc.c, where it belongs.
15497 - Everything's an lrecord now, so no need to test for symbolp, etc.
15498 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15500 * extents.c: Reorder code to remove declarations.
15502 * frame.h (store_in_alist): Remove useless declaration.
15504 2000-02-07 Martin Buchholz <martin@xemacs.org>
15506 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15507 * config.h.in: Add HAVE_XCONVERTCASE.
15509 2000-02-07 Andy Piper <andy@xemacs.org>
15511 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15512 it breaks many things.
15514 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
15516 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15517 actually can start a common comment type.
15518 * src/syntax.h (SYNTAX_END_P): ditto for end.
15520 2000-02-07 Martin Buchholz <martin@xemacs.org>
15522 * XEmacs 21.2.28 is released.
15524 2000-02-06 Martin Buchholz <martin@xemacs.org>
15526 * event-Xt.c (x_keysym_to_character): New.
15527 (maybe_define_x_key_as_self_inserting_character): New.
15528 (x_has_keysym): New.
15529 Auto-define all keys on the keyboard as self-insert-key.
15531 2000-02-02 Martin Buchholz <martin@xemacs.org>
15533 * menubar.c (vars_of_menubar): A small code simplification.
15535 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15538 * ExternalClient.c:
15539 * EmacsShell-sub.c:
15542 Use consistent style for specifying X resources.
15544 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15545 This makes (dontusethis-set-symbol-value-handler) actually usable.
15547 * lrecord.h (lrecord_decription_type):
15548 * alloc.c (pdump_register_sub):
15551 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15552 Comply with XEmacs coding style.
15553 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15554 args, and XD_LISP_OBJECT_ARRAY with 3 args.
15556 * keymap.c (Faccessible_keymaps):
15557 Make (accessible-keymaps map "\C-h") do the Right Thing.
15558 Make (accessible-keymaps map []) do the Right Thing.
15559 Make (accessible-keymaps map "") do the Right Thing.
15560 (check_keymap_definition_loop): New function.
15561 (keymap_store_internal): Keep luser from shooting self in foot,
15562 via (define-key ctl-x-4-map "p" global-map).
15563 Remove fullness slot from struct Lisp_Keymap, since hash tables
15565 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15567 2000-01-30 Martin Buchholz <martin@xemacs.org>
15569 * redisplay.c (init_redisplay): Fix small memory leak.
15571 * elhash.c (pdump_reorganize_hash_table):
15572 Rename from reorganize_hash_table. Change prototype.
15573 Reuse the original memory for hentries. Save 100k.
15574 * alloc.c (PDUMP_READ): new macro.
15575 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15576 * alloc.c: No need to #ifndef before #undef.
15578 * print.c: Allow debug_print() to print readably by modifying
15579 debug_print_readably. Use consistent variable names.
15581 * .dbxrc: Try to get things to work even if stopped in a function
15582 without source available by explicitly specifying source files.
15583 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15585 * unexnt.c (_start): Removed bogus code which caused loading heap
15586 from differrent executable file.
15587 Removed bogus assignment to _fmode, which caused inconsistencies.
15589 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15591 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15592 Have spawnve encapsulation regard DONT_ENCAPSULATE.
15593 Do not preliminary `#define signal sigset'.
15595 * systime.h: Do not prototype environ on windows nt and cygwin,
15596 this conflicts with system header.
15598 * syssignal.h: Use correct define for WINDOWSNT
15600 * sysdep.h: Do not prototype environ on windows nt, this conflicts
15601 with system header.
15603 * sysdep.c (near start of file): Fixed commentary and rearranged
15604 ifdefs in readable order.
15605 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15608 (end_of_data): Do not compile in if using PDUMP.
15610 * symsinit.h: Prototyped vars_of_nt().
15612 * ntproc.c (windows9x_p): Added, instead of os_subtype.
15613 (find_child_console): Use it.
15614 (sys_kill): Use it.
15616 * ntheap.h: Do not extern os_subtype.
15618 * ntheap.c (cache_system_info): Do not cache unneeded:
15619 nt_major_version, nt_minor_version and os_subtype.
15620 (recreate_heap): Do not compile in when PDUMPing.
15622 * nt.c (geteuid and friends): Use the new varibale
15623 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15624 (init_user_info): Removed the above mentioned hackery.
15625 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15626 stat has been fixed in the C runtime.
15627 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15629 * file-coding.c (struct file_coding_dump): Do not define
15630 ucs_to_mule_table in the struct if not MULE.
15631 (struct struct lrecord_description fcd_description_1): Do not dump
15634 * emacs.c (main_1): Call vars_of_nt().
15635 (right before Fdump_emacs_data): Don't need lastfile if using both
15636 portabe dumper and system malloc.
15638 * alloc.c (Fmemory_limit): Conditionalized out.
15639 (pdump): Use OPEN_BINARY for the portable dump file.
15640 (pdump_load): Ditto.
15642 2000-02-02 Mike Alexander <mta@arbortext.com>
15644 * nt.c (convert_time): Set tm_isdst before calling mktime and
15645 avoid calling it at all if the compiler supports 64 bit integers.
15646 Also initialize utc_base_ft before using it.
15648 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
15650 * frame.c (change_frame_size_1): Take f->internal_border_width
15651 into consideration when calculating the width of the frame.
15653 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15655 * window.c (frame_min_height):
15656 (frame_size_valid_p):
15657 (frame_pixsize_valid_p): Added.
15658 (check_frame_size): Generalized.
15660 * window.h: Prototyped the above.
15663 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15664 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15665 Deleted Vwin32_* and Vbinary_process_* unused variables.
15667 * device-msw.c (msprinter_init_device): Do not get printer font
15668 list; Added DEVMODE functions.
15670 * frame-msw.c: Added lots of printer code.
15672 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15675 * console-msw.h: Added more msprinter device private slots.
15677 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15679 * event-msw.c (key_needs_default_processing_p): Added.
15680 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15682 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15684 * glyphs.c (image_instance_layout): Mark image instance as clean
15686 (glyph_dirty_p): Removed redundant function.
15687 (invalidate_glyph_geometry_maybe): Added.
15688 (update_glyph_cachel_data): Call it.
15690 * glyphs.h: Prototyped it.
15692 * redisplay.c (add_glyph_rune): Call it.
15693 (redisplay_window): Reset glyphs cachels when frame faces have
15694 changed, thus forcing recomputation of built-in border glyphs.
15696 2000-01-30 Martin Buchholz <martin@xemacs.org>
15698 * Makefile.in.in: Make portable dumper and purify play well together.
15699 Add imperfect, but better than nothing, support for pdump.
15700 Remove xemacs.dmp when temacs is re-generated.
15701 Don't ignore errors when dumping xemacs.
15703 * symbols.c (maybe_call_magic_handler): Remove one magic number.
15705 2000-01-28 Andy Piper <andy@xemacs.org>
15707 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15708 (setup_normal_frame): ditto.
15709 (setup_frame_without_minibuffer): ditto.
15710 (setup_minibuffer_frame): ditto.
15711 (delete_frame_internal): ditto.
15712 (Fmake_frame_invisible): ditto.
15713 (Ficonify_frame): ditto.
15715 * window.h: change Fset_window_buffer signature.
15717 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15718 (Fset_window_buffer): allow recording of buffer if the window is
15719 the selected window.
15720 (window_loop): Use new Fset_window signature.
15722 2000-01-23 Daniel Pittman <daniel@danann.net>
15724 * config.h.in: Added template for `HAVE_ATHENA_3D'
15726 2000-01-29 Andy Piper <andy@xemacs.org>
15728 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15730 * gutter.c (output_gutter): Don't output if the window isn't live.
15732 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15734 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15735 of 01/12/00: Moved SetFocus back here where it belongs.
15737 2000-01-23 Andy Piper <andy@xemacs.org>
15739 * s/cygwin32.h: declare printer things.
15741 2000-01-26 Andy Piper <andy@xemacs.org>
15743 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15746 2000-01-24 Andy Piper <andy@xemacs.org>
15748 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15749 (mswindows_button_instantiate): Make sure glyph is a pixmap.
15751 * glyphs-widget.c (widget_instantiate): Avoid shadows.
15753 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15755 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15757 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15758 (mswindows_output_display_block): Avoid local shadows.
15760 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15761 (mswindows_enqueue_mouse_button_event): ditto.
15762 (mswindows_handle_gui_wm_command): remove declaration.
15764 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15767 * console-msw.h: Avoid shadows.
15768 (mswindows_get_toolbar_button_text):
15769 (emacs_mswindows_create_stream_pair):
15770 (emacs_mswindows_delete_stream_pair):
15771 (mswindows_handle_toolbar_wm_command): declare.
15773 * device-msw.c (build_syscolor_string): Avoid shadows.
15775 2000-01-23 Andy Piper <andy@xemacs.org>
15777 * glyphs-widget.c (widget_instantiate): reverse the items for
15778 layouts so that children are in the expected order.
15780 2000-01-28 Martin Buchholz <martin@xemacs.org>
15782 * ralloc.c: safe_bcopy ==> memmove
15783 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15784 * s/msdos.h: Remove BCOPY macros.
15785 * insdel.c (gap_right): Remove BCOPY conditional code.
15786 * insdel.c (gap_left): Remove BCOPY conditional code.
15787 XEmacs demands a working ANSI C compiler - hence memmove.
15789 * regex.c (regex_compile): Remove accidental use of trigraphs.
15791 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15793 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15796 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15798 * event-msw.c (mswindows_drain_windows_queue): Added the
15800 (mswindows_need_event): Commented the call to
15801 mswindows_drain_windows_queue().
15802 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15805 * console-msw.h: Moved a few function prototypes here from
15808 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15809 parameter from unsigned short to unsigned long.
15810 (Fmswindows_shell_execute): Added return value.
15812 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15814 * sysdep.c (init_system_name):
15815 process-unix.c (unix_canonicalized_host_name):
15816 Don't call freeaddrinfo() if getaddrinfo() fails.
15818 * process-unix.c (unix_open_unix_network_stream):
15819 Moved the code to get a port # into address loop.
15821 2000-01-27 Martin Buchholz <martin@xemacs.org>
15823 * buffer.c (reinit_vars_of_buffer):
15824 The right place to initialize conversion_in_dynarr and
15825 conversion_out_dynarr.
15827 * alloc.c (pdump): Use the real open() till sys_open() is functional.
15829 * process-unix.c (unix_canonicalize_host_name): Muleize.
15830 (unix_open_network_stream): Muleize.
15832 * buffer.h: Fix up prototypes for ralloc.c functions.
15834 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15835 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15836 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15837 instead of gethostbyname()
15838 * process-unix.c: In unix_canonicalize_host_name() and
15839 unix_open_network_stream(), add code to use getaddrinfo()
15840 instead of gethostbyname().
15842 2000-01-27 Daniel Pittman <daniel@danann.net>
15844 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15845 libs when built with flat Athena.
15847 2000-01-27 Martin Buchholz <martin@xemacs.org>
15849 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15850 Use coding standards for function prototypes.
15852 2000-01-25 Martin Buchholz <martin@xemacs.org>
15854 * dialog-msw.c (push_lisp_string_as_unicode):
15855 * doc.c (unparesseuxify_doc_string):
15856 * dired.c (Fuser_name_completion_1):
15857 * dired.c (Fuser_name_all_completions):
15858 * dired.c (free_user_cache):
15859 * dired.c (user_name_completion):
15860 * console-x.c (get_display_arg_connection):
15861 * minibuf.c (clear_echo_area_internal):
15862 * minibuf.c (echo_area_append):
15863 * eldap.c (Fldap_open):
15864 * eldap.c (Fldap_search_internal):
15865 * frame-x.c (x_set_frame_text_value):
15866 * frame-x.c (x_set_frame_properties):
15867 * frame-x.c (x_create_widgets):
15868 * redisplay-tty.c (term_get_fkeys_1):
15869 * objects-x.c (x_parse_nearest_color):
15870 * objects-x.c (x_valid_color_name_p):
15871 * objects-x.c (x_initialize_font_instance):
15872 * objects-x.c (x_list_fonts):
15873 * objects-x.c (x_find_charset_font):
15874 * tooltalk.c (Fadd_tooltalk_message_arg):
15875 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15876 * tooltalk.c (Fadd_tooltalk_pattern_arg):
15877 * process-unix.c (unix_create_process):
15878 * ntproc.c (sys_spawnve):
15879 * sound.c (Fplay_sound_file):
15880 * sound.c (Fplay_sound):
15881 * buffer.c (init_initial_directory):
15882 * buffer.c (init_buffer):
15883 * editfns.c (init_editfns):
15884 * editfns.c (Ftemp_directory):
15885 * editfns.c (Fuser_full_name):
15886 * editfns.c (uncache_home_directory):
15887 * editfns.c (get_home_directory):
15888 * editfns.c (Fuser_home_directory):
15889 * editfns.c (Fformat_time_string):
15890 * editfns.c (Fcurrent_time_string):
15891 * gui-x.c (button_item_to_widget_value):
15892 * database.c (Fopen_database):
15893 * event-Xt.c (x_to_emacs_keysym):
15894 * event-Xt.c (x_event_to_emacs_event):
15895 * event-Xt.c (describe_event_window):
15896 * event-msw.c (mswindows_wnd_proc):
15897 * glyphs-eimage.c (jpeg_instantiate):
15898 * glyphs-eimage.c (gif_instantiate):
15899 * glyphs-eimage.c (png_instantiate):
15900 * glyphs-eimage.c (tiff_instantiate):
15901 * glyphs-x.c (xbm_instantiate_1):
15902 * glyphs-x.c (x_xbm_instantiate):
15903 * glyphs-x.c (x_xface_instantiate):
15904 * glyphs-x.c (autodetect_instantiate):
15905 * glyphs-x.c (cursor_font_instantiate):
15906 * glyphs-x.c (x_widget_instantiate):
15907 * glyphs-x.c (x_widget_set_property):
15908 * glyphs-x.c (x_widget_property):
15909 * glyphs-x.c (BUILD_GLYPH_INST):
15910 * print.c (write_string_to_stdio_stream):
15911 * print.c (output_string):
15912 * print.c (Falternate_debugging_output):
15913 * print.c (Fexternal_debugging_output):
15914 * glyphs-msw.c (extract_xpm_color_names):
15915 * glyphs-msw.c (mswindows_xpm_instantiate):
15916 * glyphs-msw.c (bmp_instantiate):
15917 * glyphs-msw.c (resource_name_to_resource):
15918 * glyphs-msw.c (mswindows_resource_instantiate):
15919 * glyphs-msw.c (xbm_instantiate_1):
15920 * glyphs-msw.c (mswindows_xbm_instantiate):
15921 * glyphs-msw.c (mswindows_xface_instantiate):
15922 * glyphs-msw.c (mswindows_widget_instantiate):
15923 * glyphs-msw.c (add_tree_item):
15924 * glyphs-msw.c (add_tab_item):
15925 * glyphs-msw.c (mswindows_combo_box_instantiate):
15926 * glyphs-msw.c (mswindows_widget_property):
15927 * glyphs-msw.c (mswindows_combo_box_property):
15928 * glyphs-msw.c (mswindows_widget_set_property):
15929 * console.c (stuff_buffered_input):
15930 * objects-msw.c (mswindows_initialize_color_instance):
15931 * objects-msw.c (mswindows_valid_color_name_p):
15932 * objects-msw.c (mswindows_list_fonts):
15933 * objects-msw.c (mswindows_font_instance_truename):
15934 * bytecode.c (optimize_compiled_function):
15935 * select-x.c (symbol_to_x_atom):
15936 * select-x.c (x_atom_to_symbol):
15937 * select-x.c (hack_motif_clipboard_selection):
15938 * select-x.c (selection_data_to_lisp_data):
15939 * select-x.c (lisp_data_to_selection_data):
15940 * select-x.c (Fx_get_cutbuffer_internal):
15941 * select-x.c (Fx_store_cutbuffer_internal):
15942 * buffer.h (TO_EXTERNAL_FORMAT): New function.
15943 * buffer.h (TO_INTERNAL_FORMAT): New function.
15944 * emacs.c (make_arg_list_1):
15945 * emacs.c (make_argc_argv):
15946 * emacs.c (main_1):
15947 * emacs.c (Fdump_emacs):
15948 * emacs.c (split_string_by_emchar_1):
15953 * device-x.c (x_init_device):
15954 * device-x.c (Fx_valid_keysym_name_p):
15955 * device-x.c (Fx_get_font_path):
15956 * device-x.c (Fx_set_font_path):
15957 * glyphs.c (bitmap_to_lisp_data):
15958 * glyphs.c (pixmap_to_lisp_data):
15959 * alloc.c (make_ext_string): Use coding system arguments. Update
15961 * alloc.c (build_string):
15962 * callproc.c (child_setup):
15963 * callproc.c (init_callproc):
15964 * fileio.c (lisp_strerror):
15965 * fileio.c (directory_file_name):
15966 * fileio.c (Fexpand_file_name):
15967 * fileio.c (Ffile_truename):
15968 * fileio.c (Fsysnetunam):
15969 * fileio.c (Fdo_auto_save):
15970 * sysdep.c (sys_readdir):
15971 * tests.c: New file. Allow adding C tests.
15972 Replace GET_* macros with a more comprehensible and flexible
15973 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15975 Any coding system can be used to do format conversion.
15976 Eliminate enum external_data_format.
15977 Eliminate convert_to_external_format.
15978 Eliminate convert_to_internal_format.
15979 Make sure file-name, keyboard, terminal, and ctext are always
15980 defined as coding systems or aliases. Make
15981 file-name-coding-system, terminal-coding-system, and
15982 keyboard-coding-system magical variables that are equivalent to
15983 defining the corresponding coding system aliases.
15985 * file-coding.c (Fcoding_system_canonical_name_p): New function.
15986 * file-coding.c (Fcoding_system_alias_p): New function.
15987 * file-coding.c (Fcoding_system_aliasee): New function.
15988 * file-coding.c (append_suffix_to_symbol): New function.
15989 * file-coding.c (dangling_coding_system_alias_p): New function.
15990 * file-coding.c (Ffind_coding_system):
15991 * file-coding.c (Fcopy_coding_system):
15992 * file-coding.c (encode_coding_no_conversion):
15993 * file-coding.c (syms_of_file_coding):
15994 * file-coding.c (vars_of_file_coding):
15995 Rewrite coding system alias code.
15996 Allow nested aliases, like symbolic links.
15997 Allow redefinition of coding system aliases.
15998 Prevent existence of dangling coding system aliases.
16000 * dired.c (Fuser_name_completion_1):
16001 * dired.c (Fuser_name_all_completions):
16002 A crash would happen if user did QUIT in the middle of building
16003 user_name_cache. Remove redundant code in mainline and unwind_protect.
16006 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
16008 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16009 an unsigned char *. Update all callers.
16011 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16013 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16015 2000-01-25 Martin Buchholz <martin@xemacs.org>
16017 * elhash.c (hentry_description): Use more portable definition.
16018 (resize_hash_table): Initialize new hentries using
16019 xnew_array_and_zero, thereby simplifying the code.
16021 * mule-charset.c (make_charset): Make sure entire object is
16022 initialized, to avoid Purify warnings.
16024 * alloc.c (resize_string): Fix unlikely crash with big strings.
16026 2000-01-24 Martin Buchholz <martin@xemacs.org>
16028 * realpath.c (xrealpath):
16029 Don't call getwd().
16031 2000-01-25 Martin Buchholz <martin@xemacs.org>
16033 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16035 1999-12-28 Max Matveev <max@melbourne.sgi.com>
16037 * unexelfsgi.c (unexec): Change the way we decide which segment
16038 should be extended.
16040 Assumption that .bss section should be outside the PT_LOADable
16041 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16042 it's present) is inside the 'data' segment. This would fail the
16043 test which was used to find a segment to grow and cover new
16044 heap. Instead of this assumption, I created another one - on IRIX
16045 the segment to grow should start below .bss and it's address
16046 should extent above the end of .bss. Once this segment is
16047 identified, it's grown to accommodate the new heap and new
16048 zero-length .bss section is added at the end of .data2.
16050 2000-01-25 Martin Buchholz <martin@xemacs.org>
16052 * eval.c (Feval): Wrong number of arguments should use original
16053 function, not the indirect_function version of it.
16055 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
16057 * glyphs-x.c (x_button_instantiate): Don't add image if
16058 it is not a pixmap.
16059 (x_locate_pixmap_file): Call Fexpand_file_name when file name
16062 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
16064 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16066 (DEFVAR_INT_MAGIC): Ditto.
16067 (DEFVAR_BOOL_MAGIC): Ditto.
16068 * glyphs.h: Reindent backslash.
16070 2000-01-24 Martin Buchholz <martin@xemacs.org>
16072 * glyphs-widget.c (layout_query_geometry):
16073 (layout_layout): Use correct types for gheight, gwidth.
16075 2000-01-24 Martin Buchholz <martin@xemacs.org>
16077 * EmacsManager.c (QueryGeometry): Purified.
16079 2000-01-23 Martin Buchholz <martin@xemacs.org>
16081 * alloc.c (make_float): Make sure entire object is initialized, to
16082 avoid Purify warnings.
16083 (pdump_register_sub): Remove useless assignment.
16084 (pdump): Use xmalloc, not malloc.
16085 (pdump_load): Use xmalloc, not malloc.
16087 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16094 * sysdep.c: Removed redundant #include <windows.h>
16096 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16098 * frame.c (delete_frame_internal): Do not delete device when its
16099 implementation so declares.
16100 (delete_frame_internal): Set device selected frame to nil when
16101 last frame goes away.
16103 * device-msw.c (msprinter_device_system_metrics): Implemented.
16104 (mswindows_device_system_metrics): Added 'device-dpi property.
16106 * device.c: (Fdevice_printer_p): Added.
16107 Added 'offset-workspace device metric.
16109 * console.h (device_metrics): Declared DM_offset_workspace.
16111 2000-01-23 Martin Buchholz <martin@xemacs.org>
16113 * fileio.c (Ffile_truename): Remove pointless and confusing
16114 initialization of elen.
16116 * glyphs-widget.c: Compiler warning fixes.
16118 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
16120 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16121 instead of a Lisp_Object as argument to make it consistent with
16122 the other LIVE_P macros.
16123 (CHECK_LIVE_PROCESS): New macro.
16125 * process.c: Declare Qprocess_live_p.
16126 (Fprocess_live_p): New function.
16127 (create_process): Use PROCESS_LIVE_P.
16128 (read_process_output): Ditto.
16129 (set_process_filter): Ditto.
16130 (Fdelete_process): Ditto.
16131 (kill_buffer_processes): Ditto
16132 (process_send_signal): Use CHECK_LIVE_PROCESS.
16133 (Fprocess_input_coding_system): Check whether process is still
16134 alive (fix PR#1061).
16135 (Fprocess_output_coding_system): Ditto.
16136 (Fprocess_coding_system): Ditto.
16137 (Fset_process_input_coding_system): Ditto.
16138 (Fset_process_output_coding_system): Ditto.
16140 2000-01-23 Andy Piper <andy@xemacs.org>
16142 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16145 * glyphs.c (mark_image_instance): take into account changed
16146 image_instance format.
16147 (image_instance_equal): ditto.
16148 (image_instance_hash): ditto.
16150 * glyphs-widget.c (widget_instantiate): Incorporate layout
16151 instantiation here. Delay layout of the layout until later.
16152 (layout_instantiate): deleted.
16153 (layout_query_geometry): new function. get the geometry of a
16155 (layout_layout): layout a layout dynamically.
16156 (image_instantiator_widget): New function - splitting up
16157 image_instantiator_format_create_glyphs_widget for netwinder
16159 (image_instantiator_buttons):
16160 (image_instantiator_edit_fields):
16161 (image_instantiator_combo_box):
16162 (image_instantiator_scrollbar):
16163 (image_instantiator_progress_guage):
16164 (image_instantiator_tree_view):
16165 (image_instantiator_tab_control):
16166 (image_instantiator_labels):
16167 (image_instantiator_layout): ditto.
16168 (image_instantiator_format_create_glyphs_widget): Call preceding
16171 2000-01-22 Martin Buchholz <martin@xemacs.org>
16173 * process.c (Fset_process_coding_system):
16174 * device-x.c (Fx_keysym_hash_table):
16177 * lstream.c (Lstream_write): Return documented value, not 0.
16179 * fileio.c (directory_file_name):
16180 (Fsubstitute_in_file_name):
16181 (Fsubstitute_insert_file_contents_internal):
16182 (Fwrite_region_internal):
16187 Remove vestigial APOLLO-conditional code.
16189 2000-01-21 Martin Buchholz <martin@xemacs.org>
16191 * getpagesize.h: Add guard macros.
16192 * libsst.h: Add guard macros.
16193 * libst.h: Add guard macros.
16194 * line-number.h: Add guard macros.
16195 * ndir.h: Add guard macros.
16196 * sysfloat.h: Add guard macros.
16197 * sysfile.h: Add guard macros.
16198 * sysproc.h: Add guard macros.
16199 * syswait.h: Add guard macros.
16200 * xintrinsic.h: Add guard macros.
16201 * xintrinsicp.h: Add guard macros.
16202 * xmmanager.h: Add guard macros.
16203 * xmmanagerp.h: Add guard macros.
16204 * xmprimitive.h: Add guard macros.
16205 * xmu.h: Add guard macros.
16206 * gpmevent.h: Add copyright statement. Add guard macros.
16207 * miscplay.h: Add guard macros.
16208 * *.h: Use consistent C-standards-approved guard macro names.
16210 * opaque.c (make_opaque): Switch parameter order.
16211 * opaque.h (make_opaque): Switch parameter order.
16212 Update all callers.
16213 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16215 * config.h.in (type_checking_assert): Added.
16216 (bufpos_checking_assert): Added.
16218 2000-01-21 Martin Buchholz <martin@xemacs.org>
16220 * alloc.c: Harmless pdump changes.
16222 - spell alignment correctly.
16223 * sysdep.c: Use countof()
16225 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16227 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16228 initially_selected_for_input() console method, default to 0.
16229 (semi_canonicalize_console_connection): Try to delegate to
16230 canonicalize_console_connection if no such console method.
16231 (canonicalize_console_connection): Vice versa.
16232 (print_console): Do not print nil connection.
16234 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16235 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16236 (XDEVIMPF_FRAMELESS_OK): Added.
16237 (CONSOLE_INHERITS_METHOD): Added.
16239 * console-msw.c (mswindows_canonicalize_console_connection):
16241 (mswindows_canonicalize_device_connection): Added.
16243 * console-msw.h (struct msprinter_device): Added this struct and
16245 (mswindows_device): Made fontlist a lisp object.
16247 * device.c (semi_canonicalize_device_connection): Try to delegate
16248 to canonicalize_device_connection if no such console method.
16249 (canonicalize_device_connection): Vice versa.
16250 (print_device): Do not print nil connection.
16252 * device-msw.c (mswindows_init_device): Call InitCommonControls
16254 (mswindows_delete_device): Removed fontlist deallocation.
16255 (mswindows_mark_device): Added.
16257 * events.c (event_equal): Added abort() at unreached code.
16258 (event_hash): Ditto.
16260 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16261 fallback tags of Windows devices.
16263 * general.c (syms_of_general): Initialized Qmsprinter.
16265 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16266 of fallback tags of Windows devices.
16268 * lisp.h: Declared Qmsprinter.
16270 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16272 (mswindows_list_fonts): Ditto.
16273 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16274 that it can be used by both mswindows and msprinter devices.
16275 (initialize_font_instance): Added.
16276 (mswindows_initialize_font_instance): Use it.
16277 (msprinter_initialize_font_instance): Added.
16279 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16280 and implementation flags check.
16281 (redisplay_without_hooks): Changed the call to the above.
16282 (Fredraw_device): Ditto.
16283 (Fredisplay_device): Ditto.
16285 * redisplay-msw.c (get_frame_dc): Implemented.
16286 (get_frame_compdc): Implemented.
16287 (many functions): Use the two functions above to get device
16288 contexts, ether for a window or a printer.
16290 2000-01-21 Olivier Galibert <galibert@pobox.com>
16292 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16293 initialization here.
16294 (init_symbols_once_early): Call it.
16295 * emacs.c (main_1): Call it.
16296 * symsinit.h: Declare it.
16298 2000-01-19 Olivier Galibert <galibert@pobox.com>
16300 * alloc.c: Use a lrecord_header * in the backtrace instead of a
16302 (pdump_backtrace): Ditto.
16303 (pdump_register_object): Ditto. Cleanup use of the pointers.
16304 (pdump_get_entry): Abort if trying to register a null pointer.
16305 (pdump_dump_data): Cleanup types when relocating.
16306 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16307 (pdump_dump_rtables): Remove bad casts.
16308 (pdump_load): Cleanup relocation w.r.t union type. Use a
16309 Lisp_Object instead of a EMACS_INT for the hashtable
16312 2000-01-20 Martin Buchholz <martin@xemacs.org>
16314 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16316 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16318 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16320 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16322 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16324 * faces.h (FACE_STRIKETHRU_P): Added.
16326 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16329 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16330 (mswindows_set_dc_font): New function, aware of font variants,
16331 separated from mswindows_update_dc.
16333 * objects-msw.h (struct mswindows_font_instance_data): Added
16336 * objects-msw.c (mswindows_finalize_font_instance): Delete all
16337 cached fonts and the data structure.
16338 (mswindows_initialize_font_instance): Added creation of font data
16340 (mswindows_print_font_instance): Print at least something.
16341 (mswindows_create_font_variant): Implemented.
16342 (mswindows_get_hfont): Implemented.
16344 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
16346 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16347 prototyping problem with msvc.
16349 * emacs.c (main_1): added syms_of_gui_mswindows() call
16351 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16352 syms_of_gui_mswindows() function
16354 * symsinit.h: added the prototype for syms_of_gui_mswindows()
16356 2000-01-18 Martin Buchholz <martin@xemacs.org>
16358 * XEmacs 21.2.27 is released.
16360 2000-01-18 Martin Buchholz <martin@xemacs.org>
16362 * glyphs-eimage.c (struct tiff_error_struct):
16364 (tiff_warning_func):
16365 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16370 * unexec.c: Remove vestigial Lucid C code.
16374 * libsst.c: Ansify.
16375 Remove declarations of errno and strerror().
16377 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
16379 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16381 2000-01-16 Martin Buchholz <martin@xemacs.org>
16383 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16386 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16391 Change enum eol_type to eol_type_t.
16393 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16395 * gui.c (get_gui_callback): Check cons before accessing car.
16397 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16399 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16400 (XSETSPECIFIER_TYPE): Ditto.
16402 2000-01-17 Didier Verna <didier@xemacs.org>
16404 * redisplay.c (generate_fstring_runes): compute string size in
16405 characters, not bytes.
16407 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
16409 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16411 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
16413 * print.c (print_error_message): Call print_prepare().
16415 2000-01-14 Martin Buchholz <martin@xemacs.org>
16417 * .dbxrc: Renamed from dbxrc.
16419 * events.c (event_to_character):
16420 Use `assert (foo)' instead of `if (!foo) abort()'
16422 * .gdbinit (xtype): Add documentation.
16423 * .gdbinit (check-temacs): New function.
16424 * .gdbinit (check-xemacs): New function.
16425 * dbxrc (check-xemacs): New function.
16426 * dbxrc (check-xemacs): New function.
16428 2000-01-14 Andy Piper <andy@xemacs.org>
16430 * glyphs-widget.c (widget_query_geometry): Make sure that we
16431 calculate default dimensions correctly.
16433 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16435 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16437 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16438 pdump_wire'd variable.
16440 * emacs.c: (main_1): Conditionalized calls to
16441 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16443 2000-01-13 Martin Buchholz <martin@xemacs.org>
16445 * window.c (Fset_window_configuration):
16446 * sysdep.c (_start):
16447 * input-method-motif.c (res):
16448 * event-Xt.c (Xt_process_to_emacs_event):
16449 Simple compiler warning fixes.
16451 * bytecode.c (funcall_compiled_function): Use the original
16452 function symbol on the backtrace list in preference to the
16453 compiled_function object in error messages.
16455 2000-01-13 Andy Piper <andy@xemacs.org>
16457 * glyphs-x.c (update_widget_face): Make sure we update the widget
16458 background as well as foreground.
16460 2000-01-13 Andy Piper <andy@xemacs.org>
16462 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16463 fields to subwindow.
16464 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16465 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16466 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16467 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16469 * glyphs-widget.c (check_valid_tab_orientation): new function.
16470 (initialize_widget_image_instance): zero orientation and
16472 (widget_instantiate): pick up orientation.
16473 (tab_control_query_geometry): return appropriate values for
16476 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16477 appropriate creation flags for left, right and bottom tabs.
16479 * s/cygwin32.h: add tab definitions.
16481 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16483 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16484 frame upon hiding a subwindow.
16485 (mswindows_button_instantiate): Changed the push button style to
16487 (mswindows_button_instantiate): Removed button BS_NOTIFY
16489 (mswindows_button_instantiate): Removed redundant check for
16490 a disabled gui item.
16491 (mswindows_button_instantiate): Made use of WS_TABSTOP
16492 consistent: "operable" controls (edit, button, tree, scroll) have
16493 this style, "display-only" ones (static, progress gauge) do
16494 not. This style is currently ignored by XEmacs though. Also,
16495 removed the WS_EX_CONTROLPARENT style - it is not for children,
16496 it is for their parents!
16497 (mswindows_edit_field_instantiate): Ditto.
16498 (mswindows_progress_gauge_instantiate): Ditto.
16499 (mswindows_tree_view_instantiate): Ditto.
16500 (mswindows_tab_control_instantiate): Ditto.
16501 (mswindows_scrollbar_instantiate): Ditto.
16502 (mswindows_combo_box_instantiate): Ditto.
16503 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16504 style to the "clip" window.
16505 (mswindows_button_instantiate): Removed compilation warning by
16506 equally typing terms of the ?: operator.
16508 2000-01-12 Didier Verna <didier@xemacs.org>
16510 * redisplay.c (generate_fstring_runes): new parameter holding the
16511 last modeline-format extent.
16512 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16513 extent, fill the glyph block with it.
16514 (generate_fstring_runes): handle these parameters.
16515 (generate_formatted_string_db): ditto.
16517 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16518 glyphs'extents in the modeline.
16520 1999-01-11 Mike Woolley <mike@bulsara.com>
16522 * ntheap.c: Reduced the reserved heap space from 1Gb down to
16523 256Mb, as a workaround for the non-starting problem many people
16526 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16528 * console-tty.c (Fset_console_tty_output_coding_system):
16529 Force redrawing tty frame.
16531 2000-01-10 Didier Verna <didier@xemacs.org>
16533 * redisplay.c (generate_fstring_runes): fix size computation bug.
16535 2000-01-09 William M. Perry <wmperry@aventail.com>
16537 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16539 2000-01-09 Andy Piper <andy@xemacs.org>
16541 * glyphs-msw.c: index -> i to avoid shadows.
16542 (xbm_create_bitmap_from_data): make static.
16543 (check_valid_string_or_int): deleted.
16544 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16546 * glyphs-x.c (x_update_subwindow): remove unused args.
16548 * glyphs.c (glyph_image_instance): return the thing. Don't set the
16549 back pointer - this is done in allocate_image_instance.
16550 (query_string_font): return Qnil to make the compiler happy.
16551 (unmap_subwindow): set to ~0 to make the compiler happy.
16552 (glyph_query_geometry): comment out until used.
16553 (glyph_layout): ditto.
16555 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
16557 * insdel.c (signal_after_change): Remove extraneous unbind_to().