1 2006-04-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * concord.c: Add EXFUNs for Fconcord_decode_object and
5 (Fconcord_make_object): Change order of arguments.
6 (Fconcord_decode_object): Modify for Fconcord_make_object.
7 (func_for_each_object): Likewise.
8 (concord_object_validate): Likewise.
9 (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
11 2006-04-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
13 * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
15 2006-04-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
17 * concord.c (Fconcord_decode_object): Try to use readable print
18 form as a key of Concord-index.
19 (Fconcord_object_get): Try to use readable print form as an ID of
21 (Fconcord_object_put): Try to use readable print form as an ID of
22 Concord-object and a feature value.
23 (Fconcord_object_spec): Try to use readable print form as an ID of
26 2006-04-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
28 * concord.c (print_concord_object): Support readable form.
30 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
32 * emacs.c (main_1): Call `structure_type_create_concord' when
33 HAVE_CONCORD is defined.
35 * symsinit.h (structure_type_create_concord): New prototype.
37 * concord.c (Qconcord_object): New variable.
40 (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
42 (add_feature_to_list_mapper): Use <char*> instead of <unsigned
43 char*> for genre-name.
44 (Fconcord_feature_list): Likewise.
45 (Fconcord_make_object): Likewise.
46 (Fconcord_decode_object): Likewise; use <char*> instead of
47 <unsigned char*> for feature_name and strid.
48 (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
49 c_obj and feature_name.
50 (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
52 (struct closure_for_object_spec): Use <char*> instead of <unsigned
53 char*> for member `object_id'.
54 (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
55 char*> for feature-name.
56 (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
58 (func_for_each_object): Cast to avoid warnings.
59 (Fconcord_foreach_object_in_feature): Use <char*> instead of
60 <unsigned char*> for genre_name and feature_name.
61 (concord_name_validate): New function.
62 (concord_object_validate): Likewise.
63 (concord_object_instantiate): Likewise.
64 (syms_of_concord): Add new builtin symbols `concord-object',
66 (structure_type_create_concord): New function.
68 2006-04-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
70 * concord.c (Vconcord_ds_hash_table): New variable.
71 (Vconcord_genre_hash_table): New variable.
72 (Fconcord_open_ds): Use Vconcord_ds_hash_table.
73 (Fconcord_ds_directory): New function.
74 (Fconcord_assign_genre): New function.
75 (Fconcord_genre_directory): New function.
76 (Fconcord_genre_ds): New function.
77 (Fconcord_feature_list): Allow to omit `ds'.
78 (Fconcord_make_object): Likewise.
79 (Fconcord_decode_object): Likewise.
80 (Fconcord_foreach_object_in_feature): Likewise.
81 (syms_of_concord): Add new builtin function Fconcord_ds_directory,
82 Fconcord_assign_genre, Fconcord_genre_directory and
84 (vars_of_concord): Setup Vconcord_ds_hash_table and
85 Vconcord_genre_hash_table.
87 2006-02-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
89 * concord.c (struct closure_for_each_object): Add new member
91 (func_for_each_object): Setup the return value to
92 `for_each_object_closure->ret'.
93 (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
94 returns the value instead of Qt.
96 2005-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
98 * concord.c: New file.
100 2005-12-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
102 * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
103 `lrecord_type_concord_object'.
105 2005-09-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
107 * symsinit.h (syms_of_concord): New prototype.
108 (vars_of_concord): New prototype.
110 * emacs.c (main_1): Setup symbols and variable about concord if
111 HAVE_CONCORD is defined.
113 * config.h.in (HAVE_CONCORD): New macro.
115 2005-09-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
117 * chartab.c (Fput_char_attribute): For each character relation
118 feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
120 2005-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
122 * chartab.c (Fput_char_attribute): Use
123 `Fchar_refs_simplify_char_specs' for `=>decomposition' before
124 calling `put_char_composition'.
126 2005-08-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
128 * chartab.c (Q_halfwidth_of): New variable.
129 (put_char_composition): Return `<-halfwidth' instead of
130 `=decomposition' for compatibility mapping to single character
132 (Fput_char_attribute): Convert char-specs in value of
133 `{<-|->}halfwidth[^*]*' to characters and put reverse links.
134 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
136 (syms_of_chartab): Add new symbol `<-halfwidth'.
138 2005-08-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
140 * chartab.c (put_char_composition): Return
141 `<-formed@{isolated|initial|medial|final}' for compatibility
142 mapping to single character tagged
143 `{isolated|initial|medial|final}'.
145 2005-08-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
147 * chartab.c (Q_compat_of): Deleted.
148 (put_char_composition): Return `<-FOO' for compatibility mapping
149 to single character tagged `FOO'; use `Fsymbol_name (...)' instead
150 of `symbol_name (XSYMBOL(...))'.
151 (Fput_char_attribute): Convert char-specs in value of
152 `{<-|->}font[^*]*' to characters and put reverse links.
153 (Fsave_char_attribute_table): Don't refer Q_compat_of.
154 (syms_of_chartab): Delete builtin symbol `<-compat'.
156 2005-08-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
158 * chartab.c (Q_circled_of): New variable.
159 (put_char_composition): Return `<-circled' instead of
160 `=decomposition' for compatibility mapping to single character
162 (Fput_char_attribute): Convert char-specs in value of
163 `{<-|->}circled[^*]*' to characters and put reverse links.
164 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
166 (syms_of_chartab): Add new symbol `<-circled'.
168 2005-08-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
170 * chartab.c (Qto_decomposition_at_circled): New variable.
171 (put_char_composition): Return `=>decomposition@circled' instead
172 of `=decomposition' for compatibility decomposition mapping tagged
174 (syms_of_chartab): Add new symbol `=>decomposition@circled'.
176 2005-08-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
178 * chartab.c (Q_subscript_of): New variable.
179 (put_char_composition): Return `<-subscript' instead of
180 `=decomposition' for compatibility mapping to single character
182 (Fput_char_attribute): Convert char-specs in value of
183 `{<-|->}subscript[^*]*' to characters and put reverse links.
184 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
186 (syms_of_chartab): Add new symbol `<-subscript'.
188 2005-08-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
190 * chartab.c (Q_superscript_of): New variable.
191 (put_char_composition): Return `<-superscript' instead of
192 `=decomposition' for compatibility mapping to single character
194 (Fput_char_attribute): Convert char-specs in value of
195 `{<-|->}superscript[^*]*' to characters and put reverse links.
196 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
198 (syms_of_chartab): Add new symbol `<-superscript'.
200 2005-08-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
202 * chartab.c (Qto_decomposition_at_compat): Deleted.
203 (Qto_decomposition_at_superscript): New variable.
204 (put_char_composition): Use `=>decomposition@superscript' instead
205 of `=decomposition' for compatibility decomposition mapping tagged
207 (Fput_char_attribute): Fix condition about `put_char_composition'.
208 (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
209 add news symbol `=>decomposition@superscript'.
211 2005-07-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
213 * chartab.c (put_char_composition): Return `=>decomposition@FOO'
214 for compatibility decomposition mapping tagged FOO.
215 (Fput_char_attribute): Modify for `put_char_composition'.
217 2005-07-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
219 * chartab.c (Qto_decomposition_at_compat): New variable.
220 (Q_compat_of): Renamed from `Q_compatibility_of'.
221 (put_char_composition): Rename `Q_compatibility_of' to
222 `Q_compat_of'; return `=>decomposition@compat' for compatibility
223 decomposition mapping.
224 (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
226 (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
227 `<-compatibility' to `<-compat'.
229 2005-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
231 * chartab.c (Q_compatibility_of): New variable.
232 (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
233 object is proved to be a cons cell; return `<-compatibility' if
234 the first element of argument `value' is `compat'.
235 (Fput_char_attribute): Eliminate the first value if
236 `put_char_composition' returns `<-compatibility'.
237 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
238 for `<-compatibility'.
239 (syms_of_chartab): Add new symbol `<-compatibility'.
241 2005-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
243 * chartab.c (Q_canonical): New variable.
244 (put_char_composition): Return a feature name: return
245 `->canonical' if argument `value' specifies single character.
246 (Fput_char_attribute): Use `put_char_composition' to determine
247 feature name for `=decomposition' or `->denotational'.
248 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
250 (syms_of_chartab): Add new symbol `->canonical'.
252 2005-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
254 * chartab.c (Qmap_decomposition): New variable.
255 (Fput_char_attribute): Convert `->decomposition' to
257 (syms_of_chartab): Add new symbol `=decomposition'.
259 2005-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
261 * chartab.c (Fget_range_char_table): Fix serious problem when
264 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
266 * chartab.c (char_table_get_db): Use `read_from_c_string'.
268 2005-06-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
270 * lread.c (read_from_c_string): New function.
272 * lisp.h (read_from_c_string): New prototype.
274 2005-05-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
276 * chartab.c (Fput_char_attribute): Convert char-specs in value of
277 `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
278 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
279 for `{<-|->}Oracle-Bones[^*]*'.
281 2005-05-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
283 * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
286 2005-02-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
288 * text-coding.c (Qccs_priority_list): New variable in XEmacs
290 (Fmake_coding_system): Support new property `ccs-priority-list' in
292 (Fcoding_system_property): Likewise.
293 (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
294 Vdefault_coded_charset_priority_list in XEmacs CHISE.
295 (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
297 (complex_vars_of_file_coding): Define new coding-system-property
298 `ccs-priority-list' in XEmacs CHISE.
300 * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
302 2004-12-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
304 * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
305 changed to normal function.
306 (encode_char_2): Likewise.
308 * mule-charset.c (decoding_table_put_char): Copied from
309 char-ucs.h; changed to normal function.
310 (encode_char_2): Likewise.
312 2004-12-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
314 * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
316 (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
317 (encode_char_2_search_children): New inline function.
318 (encode_char_2): Refer
319 `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
320 and use `encode_char_2_search_children'.
322 2004-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
325 (Vdisplay_coded_charset_priority_use_inheritance): New variable.
326 (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
327 (vars_of_mule_charset): Add new variable
328 `display-coded-charset-priority-use-inheritance' and
329 `display-coded-charset-priority-use-hierarchy-order'.
331 2004-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
333 * char-ucs.h (Q_subsumptive): New extern.
334 (Q_denotational): Likewise.
335 (encode_char_2): Search children specified by `->subsumptive' and
338 2004-11-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
340 * mule-charset.c (complex_vars_of_mule_charset): Modify the
341 X-registry of `ucs-bmp'.
343 2004-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
345 * chartab.c (char-variants): Refer `->subsumptive',
346 `->denotational' and `->identical' as same as `->ucs-unified'.
348 2004-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
350 * chartab.c (Fput_char_attribute): Convert char-specs in value of
351 `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
354 2004-09-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
356 * text-coding.c: Add EXFUN for `Fregexp_quote'.
357 (decode_add_er_char): Fix problem about infinite loop when a CCS
358 specified in `coded-charset-entity-reference-alist' is not
361 2004-09-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
363 * mule-charset.c (syms_of_mule_charset): Rename
364 `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
366 2004-08-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
368 * fns.c (simplify_char_spec): Don't allocate new character-object
369 if specified char_spec does not have any CCS-features.
371 * chartab.h: Add EXFUN for Fdefine_char.
373 * chartab.c: Delete EXFUN for Fdefine_char.
375 2004-08-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
377 * fns.c (simplify_char_spec): Use Fdefine_char instead of
378 Ffind_char for char-spec.
380 2004-07-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
382 * lisp-disunion.h (XCHARVAL): Fix condition about
385 2004-07-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
387 * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
389 (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
390 point; use <Emchar> instead of <int> for character-id.
392 2004-07-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
394 * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
395 (make_char): Likewise.
396 (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
398 (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
399 instead of <int> as the type of return value; use <Lisp_Object>
400 instead of <Emchar> as the type of argument.
401 (XCHARVAL[macro version]): Cast the result into <Emchar>.
403 * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
404 syntaxcode> instead of <int>.
406 2004-07-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
408 * chartab.c (put_char_composition): Use DECODE_CHAR to get
409 character corresponding with UCS code point.
410 (Fput_char_attribute): Likewise.
412 * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
413 character in the UCS decoding-table if the char-id is not equal to
416 2004-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
418 * mule-charset.c (Fsave_charset_properties): Use `true-name' only
419 for aliases; write `description'; write
420 `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
423 2004-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
425 * chartab.c (Fsave_char_attribute_table): Don't use
426 `save_charset_properties'.
428 * mule-charset.c (Fsave_charset_properties): Renamed from
429 `save_charset_properties' and changed to Lisp function again;
430 write property `type' as `CCS'; write properties `final-byte' and
431 `mother' if they exists.
432 (syms_of_mule_charset): Revive builtin function
433 `save-charset-properties' when HAVE_LIBCHISE is defined.
435 2004-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
437 * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
438 instead of Vexec_directory.
439 (char_attribute_system_db_file): Likewise.
441 2004-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
443 * chartab.c (Fsave_char_attribute_table): Use
444 `save_charset_properties' for CCS features when HAVE_LIBCHISE is
447 * mule-charset.c (save_charset_properties): Renamed from
448 `Fsave_charset_properties'; changed to non-Lisp function.
449 (syms_of_mule_charset): Abolish builtin function
450 `save-charset-properties'.
452 2004-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
454 * mule-charset.c (Fsave_charset_properties): New function when
455 HAVE_LIBCHISE is defined.
456 (syms_of_mule_charset): Add new builtin function
457 `save-charset-properties' when HAVE_LIBCHISE is defined.
459 2004-06-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
461 * chartab.c (Fput_char_attribute): Convert char-specs in value of
462 `{<-|->}ancient[^*]*' to characters and put reverse links.
463 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
464 for `{<-|->}ancient[^*]*'.
466 2004-06-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
468 * chartab.c (Fput_char_attribute): Convert char-specs in value of
469 `{<-|->}original[^*]*' to characters and put reverse links.
470 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
471 for `{<-|->}original[^*]*'.
473 2004-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
475 * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
477 2004-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
479 * mule-charset.c (Qsystem_char_id): New variable.
481 * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
482 defined and HAVE_LIBCHISE_LIBCHISE is not defined.
484 2004-05-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
486 * chartab.c (Fput_char_attribute): When processing a reference of
487 a character, put into the end of the reversed reference of each
490 2004-05-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
492 * chartab.c (Q_same): Deleted.
493 (Q_same_of): Deleted.
494 (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
495 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
497 (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
499 2004-05-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
501 * chartab.c (Q_vulgar): Deleted.
502 (Q_vulgar_of): Deleted.
503 (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
504 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
506 (syms_of_chartab): Don't define `{<-|->}vulgar'.
508 2004-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
510 * chartab.c (Fput_char_attribute): Convert char-specs in value of
511 `{<-|->}wrong[^*]*' to characters and put reverse links.
512 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
513 for `{<-|->}wrong[^*]*'.
515 2004-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
517 * chartab.c (Q_vulgar): New variable.
518 (Q_vulgar_of): New variable.
519 (Fput_char_attribute): Convert char-specs in value of
520 `{->|<-}vulgar' to characters and put reverse links.
521 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
523 (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
525 2004-04-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
527 * text-coding.c (decode_add_er_char): Must to quote prefix string
530 2004-04-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
532 * mule-charset.c (put_char_ccs_code_point): Store characters of
533 =ucs whose code_points >= 0xF0000.
535 2004-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
537 * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
539 (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
541 (complex_vars_of_mule_charset): Add new coded-charset
542 `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
543 builtin characters over 0xEFFFF.
545 * chartab.c (syms_of_chartab): Don't define symbol
546 `system-char-id' in every case.
548 * char-ucs.h (Qsystem_char_id): New extern variable.
549 (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
551 2004-04-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
553 * text-coding.c (char_encode_utf8): Try to use entity-references
554 for U-000F0000 ... U-0010FFFF.
556 2004-04-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
558 * text-coding.c (ER_BUF_SIZE): New macro.
559 (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
561 (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
562 (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
564 2004-03-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
566 * chartab.c (find_char_feature_in_family): New function.
567 (Fchar_feature): Use `find_char_feature_in_family' with
568 `->identical', `<-subsumptive' and `<-denotational'.
570 2004-03-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
572 * text-coding.c (char_encode_as_entity_reference): Allow prefix
573 within 8 characters; fix infinite loop.
575 2004-03-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
577 * chartab.c (Q_same): New variable.
578 (Q_same_of): New variable.
579 (Fput_char_attribute): Convert char-specs in value of
580 `{->|<-}same' to characters and put reverse links.
581 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
583 (syms_of_chartab): Add new symbols `{->|<-}same'.
585 2004-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
587 * chartab.c (Q_component): New variable.
588 (Q_component_of): Likewise.
589 (Fput_char_attribute): Convert char-specs in value of
590 `{->|<-}ideographic-component-forms' to characters and put reverse
592 (syms_of_chartab): Add new symbols
593 `{->|<-}ideographic-component-forms'.
595 2004-02-24 MORIOKA Tomohiko <tomo@m17n.org>
597 * chartab.c (Q_identical): New variable.
598 (Q_identical_from): New variable.
599 (Fchar_feature): Regard `->identical' as a feature to find
601 (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
602 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
603 for `{->|<-}identical'.
604 (syms_of_chartab): Add new symbols `{->|<-}identical'.
606 2004-02-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
608 * char-ucs.h (encode_char_2): New inline function.
609 (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
611 2004-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
613 * chartab.c (Fput_char_attribute): Convert char-specs to
614 characters in value of `ideographic-structure'.
615 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
616 for `{<-|->}simplified(@...)'.
617 (Fdefine_char): Try to use predefined character's id.
619 2004-02-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
621 * fns.c (simplify_char_spec): Try to convert builtin chars to
624 2004-02-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
626 * chartab.c (Fput_char_attribute): Convert char-specs in value of
627 `<-simplified[^*]*' to characters and put reverse links.
629 2004-02-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
631 * chartab.c (Q_subsumptive): Renamed from Q_unified.
632 (Q_subsumptive_from): Renamed from Q_unified_from.
633 (Fchar_feature): Use `Q_subsumptive_from' instead of
635 (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
637 (syms_of_chartab): Rename `->unified' to `->subsumptive' and
638 `<-unified' to `<-subsumptive'.
640 2004-02-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
642 * chartab.c (Fchar_feature): Check `<-denotational' to avoid
643 inheritance itself; fix typo; stop recursive search if cyclic
644 inheritance is found.
646 2004-02-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
648 * chartab.c (Q_denotational): New variable.
649 (Q_denotational_from): New variable.
650 (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
651 (put_char_attribute): New function.
652 (Fput_char_attribute): Use `put_char_attribute'; regard
653 `->denotational' and `<-denotational' as same as `->unified' and
655 (syms_of_chartab): Add new symbols `->denotational' and
658 2004-02-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
660 * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
661 `Fget_char_attribute'.
662 (Fchar_variants): Likewise.
663 (get_char_table): Likewise.
664 (Fchar_feature): New function.
665 (put_char_composition): Use `Fchar_feature' instead of
666 `Fget_char_attribute'.
667 (Fput_char_attribute): Likewise; don't put the target character
668 into its `->unified' value.
669 (syms_of_chartab): Add new builtin function `char-feature'.
671 2004-01-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
673 * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
674 `Fget_char_attribute'.
675 (char_encode_utf8): Likewise.
677 * chartab.h: Add an EXFUN for `Fchar_feature'.
679 2004-01-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
681 * chartab.c (Vnext_defined_char_id): New variable.
682 (Fput_char_attribute): Accept characters in `->unified'.
683 (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
684 new characters which are not related with builtin char-id ranges.
685 (vars_of_chartab): Add new variable `next-defined-char-id'.
687 2004-01-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
689 * chartab.c (Q_unified): New variable.
690 (Q_unified_from): New variable.
691 (Fput_char_attribute): Add code for `->unified'.
692 (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
695 2003-11-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
697 * mule-charset.c (decode_ccs_conversion): New function.
698 (decode_defined_char): Use `decode_ccs_conversion'.
699 (decode_builtin_char): Likewise.
701 2003-11-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
703 * char-ucs.h: Change some charset-ids of private coded-charsets.
705 2003-11-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
707 * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
708 (char_encode_as_entity_reference): Likewise.
709 (decode_coding_big5): Modify for `decode_defined_char' and
711 (decode_coding_utf8): Modify for `decode_defined_char'; modify to
712 avoid compiler warning.
713 (decode_coding_iso2022): Modify for `DECODE_CHAR'.
715 * mule-charset.c (decode_defined_char): Add new argument
716 `without_inheritance'.
717 (Fdecode_char): Add new optional argument `without_inheritance'.
718 (Fdecode_builtin_char): Modify for `Fdecode_char'.
720 * fns.c (ids_format_unit): Modify for `Fdecode_char'.
721 (simplify_char_spec): Likewise.
723 * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
726 * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
727 (map_char_table): Likewise.
728 (Fdefine_char): Use `Fdecode_char' without inheritance.
729 (Ffind_char): Modify for `Fdecode_char'.
731 * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
733 * char-ucs.h (decode_defined_char): Add new argument
734 `without_inheritance'.
735 (DECODE_CHAR): Likewise.
736 (MAKE_CHAR): Modify for `DECODE_CHAR'.
738 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
740 * chartab.c (Vchise_system_db_directory): New variable.
741 (vars_of_chartab): Add new variable `chise-system-db-directory'.
743 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
745 * chartab.c: EXFUN `Fmount_char_attribute_table'.
746 (print_chartab_range): Don't define when `UTF2000' is defined.
747 (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
750 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
752 * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
753 and optional argument `rehash' is specified, call
754 `open_chise_data_source_maybe' before
755 `chise_ds_foreach_char_feature_name' is called.
757 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
759 * chartab.c (char_attribute_list_reset_map_func): New function
760 when HAVE_LIBCHISE is defined.
761 (Fchar_attribute_list): Add new optional argument `rehash' when
762 HAVE_LIBCHISE is defined.
763 (open_chise_data_source_maybe): Use "chise-db" instead of
765 (char_attribute_system_db_file): Likewise.
766 (Fload_char_attribute_table): Use
767 `chise_feature_foreach_char_with_value' instead of
768 `chise_char_feature_value_iterate'.
770 2003-10-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
772 * chartab.c (Vchise_db_directory): New variable.
773 (vars_of_chartab): Add new built-in variable `chise-db-directory'.
775 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
777 * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
778 instead of HAVE_CHISE to specify using with libchise.
780 * config.h.in (HAVE_CHISE_CLIENT): Deleted.
782 * chartab.h: Don't use HAVE_CHISE_CLIENT.
784 * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
785 defined or HAVE_LIBCHISE_LIBCHISE is defined.
786 (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
788 (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
789 HAVE_CHISE to specify using with libchise.
790 (syms_of_chartab): Don't define symbol `system-char-id' when
791 HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
793 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
795 * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
796 specify CHISE DB support.
797 (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
798 of `char_attribute_system_db_file' to check feature DB file.
800 * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
801 HAVE_CHISE_CLIENT to specify CHISE DB support.
803 * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
804 specify CHISE DB support.
805 (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
807 (Freset_char_attribute_table): Use `chise_feature_setup_db'
808 instead of `char_attribute_system_db_file' to check feature DB
811 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
813 * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
816 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
818 * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
819 (Fsave_charset_mapping_table): Don't use
820 `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
822 * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
823 (HAVE_LIBCHISE): New macro.
825 * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
827 * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
828 (Fsave_char_attribute_table): Don't use
829 `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
831 2003-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
833 * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
835 (save_uint16_byte_table): Likewise.
836 (save_byte_table): Likewise.
837 (char_table_get_db): Use `chise_ds_load_char_feature_value'
838 instead of `chise_char_load_feature_value'.
839 (Fsave_char_attribute_table): Use libchise when CHISE is defined.
841 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
843 * chartab.h (struct Lisp_Char_Table): Delete member
844 `feature_table' if CHISE is defined.
846 * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
847 (Fcopy_char_table): Likewise.
848 (char_table_open_db_maybe): Likewise.
849 (char_table_close_db_maybe): Likewise.
850 (char_table_get_db): Likewise.
851 (Fmount_char_attribute_table): Likewise.
852 (Fload_char_attribute_table): Likewise.
854 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
856 * mule-charset.c (load_char_decoding_entry_maybe): Use
857 `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
860 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
862 * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
863 instead of `chise_open_data_source'.
864 (Fclose_char_data_source): Use `CHISE_DS_close' instead of
867 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
869 * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
870 instead of `chise_ds_open_feature_table'.
871 (char_table_close_db_maybe): Don't use `chise_ft_close'.
873 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
875 * mule-charset.c (Fsave_charset_mapping_table): Use
876 `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
877 `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
878 `chise_ccs_sync' instead of `chise_ccst_close'.
879 (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
881 * chartab.c (open_chise_data_source_maybe): Modify for
882 `chise_open_data_source'.
883 (char_table_open_db_maybe): Modify for
884 `chise_ds_open_feature_table'.
886 2003-08-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
888 * mule-charset.c (load_char_decoding_entry_maybe): Use
889 `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
892 2003-08-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
894 * mule-charset.c (Fsave_charset_mapping_table): Use
895 `chise_ds_open_ccs_table', `chise_ccst_put_char' and
896 `chise_ccst_close' instead of `chise_ds_open_decoding_table',
897 `chise_dt_put_char' and `chise_dt_close'.
898 (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
899 `chise_ccs_decode' and `chise_ccst_close' instead of
900 `chise_ds_open_decoding_table', `chise_dt_get_char' and
903 * chartab.c (char_table_get_db): Use
904 `chise_char_load_feature_value' instead of `chise_ft_get_value'.
905 (load_char_attribute_table_map_func): Modify for
906 `chise_char_feature_value_iterate'.
907 (Fload_char_attribute_table): Use
908 `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
910 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
912 * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
914 2003-08-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
916 * chartab.c (put_char_table): Modify for inherited coded-charsets
919 2003-08-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
921 * chartab.c (Fput_char_table_map_function): Fixed.
922 (word_boundary_p): Don't check charset in XEmacs CHISE.
924 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
926 * mule-charset.c (Fsave_charset_mapping_table): Use
927 `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
928 instead of `chise_open_decoding_table'; refer
929 `default_chise_data_source'; use `chise_dt_close' instead of
930 `chise_close_decoding_table'.
931 (load_char_decoding_entry_maybe): Likewise.
933 * chartab.c (default_chise_data_source): New variable when `CHISE'
935 (Fcopy_char_table): `ct->ds' is deleted.
936 (open_chise_data_source_maybe): New function.
937 (Fclose_char_data_source): New function.
938 (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
939 use `chise_ds_open_feature_table' instead of
940 `chise_open_feature_table'.
941 (char_table_close_db_maybe): Use `chise_ft_close' instead of
942 `chise_close_feature_table'; `cit->ds' is deleted.
943 (syms_of_chartab): Add new builtin function
944 `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
946 * chartab.h (default_chise_data_source): New extern variable.
947 (open_chise_data_source_maybe): New prototype.
948 (struct Lisp_Char_Table): Delete `ds'.
950 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
952 * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
955 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
957 * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
958 not defined; add code for non-libchise setting.
959 (char_table_close_db_maybe): Likewise.
960 (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
962 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
963 even if `CHISE' is not defined.
964 (Freset_char_attribute_table): Likewise.
965 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
966 `char_table_close_db_maybe' even if `CHISE' is not defined; use
968 (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
969 `char_table_close_db_maybe' even if `CHISE' is not defined.
971 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
973 * chartab.c (char_table_open_db_maybe): New function.
974 (char_table_close_db_maybe): New function.
975 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
976 (Freset_char_attribute_table): Likewise.
977 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
978 `char_table_close_db_maybe'.
979 (Fload_char_attribute_table): Likewise.
981 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
983 * chartab.c: Don't include <chise.h> because it is included in
985 (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
987 (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
989 (Fmount_char_attribute_table): Initialize `ct->feature_table' when
991 (Fclose_char_attribute_table): Close `ct->feature_table' and
992 `ct->ds' when `CHISE' is defined.
993 (Freset_char_attribute_table): Likewise.
994 (load_char_attribute_maybe): Use `cit->ds' and
995 `cit->feature_table' when `CHISE' is defined.
996 (Fload_char_attribute_table): Likewise.
998 * chartab.h: Include <chise.h> when `CHISE' is defined.
999 (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1000 when `CHISE' is defined.
1002 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1004 * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1006 (char_table_description): Likewise.
1007 (Fmake_char_table): Likewise.
1008 (Fcopy_char_table): Likewise.
1009 (Fmount_char_attribute_table): Likewise.
1010 (Fclose_char_attribute_table): Likewise.
1011 (Freset_char_attribute_table): Likewise.
1012 (load_char_attribute_maybe): Likewise.
1013 (Fload_char_attribute_table): Likewise.
1015 * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1018 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1020 * chartab.c (load_char_attribute_table_map_func): New function
1021 when CHISE is defined.
1022 (Qload_char_attribute_table_map_function): Don't define when CHISE
1024 (Fload_char_attribute_table_map_function): Likewise.
1025 (Fload_char_attribute_table): Use libchise when `CHISE' is
1027 (syms_of_chartab): Don't define
1028 `load-char-attribute-table-map-function' when CHISE is defined.
1030 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1032 * chartab.c: Include <chise.h> when `CHISE' is defined.
1033 (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1035 2003-07-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037 * mule-charset.c (charset_code_point): Fix problem when searching
1038 in mother CCS fails with `defined_only' mode.
1040 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1042 * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1043 (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1044 (put_char_composition): Likewise.
1045 (Fput_char_attribute): Likewise.
1046 (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1048 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1050 * chartab.c (Q_ucs): Deleted.
1051 (Fput_char_attribute): Don't refer `->ucs'.
1052 (Fdefine_char): Likewise.
1053 (Ffind_char): Likewise.
1054 (syms_of_chartab): Delete `->ucs'.
1056 2003-04-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1058 * mule-charset.c (Qmap_cns11643_2): Renamed from
1059 `Qchinese_cns11643_2'.
1060 (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1061 `chinese-cns11643-2'.
1062 (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1065 2003-04-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1067 * mule-charset.c (Qmap_cns11643_1): Renamed from
1068 `Qchinese_cns11643_1'.
1069 (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1070 `chinese-cns11643-1'.
1071 (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1074 2003-04-24 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1076 * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1077 (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1079 (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1082 2003-04-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1084 * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1085 (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1087 (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1090 2003-04-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1092 * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1093 (syms_of_mule_charset): Add new symbol `=big5' instead of
1095 (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1097 2003-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1099 * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1100 (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1102 (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1105 2003-04-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1107 * mule-charset.c (Qmap_jis_x0212): Renamed from
1108 `Qjapanese_jisx0212'.
1109 (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1110 `japanese-jisx0212'.
1111 (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1114 2003-04-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1116 * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1117 `Qjapanese_jisx0208'.
1118 (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1119 of `japanese-jisx0208'.
1120 (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1123 2003-04-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1125 * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1126 `Qjapanese_jisx0208_1978'.
1127 (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1128 of `japanese-jisx0208-1978'.
1129 (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1132 2003-04-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1134 * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1135 only for XEmacs CHISE.
1137 2003-04-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1139 * char-ucs.h: Compact non-ISO-IR charset-ids.
1140 (LEADING_BYTE_UCS): Changed to -177.
1141 (LEADING_BYTE_CONTROL_1): Changed to -77.
1142 (LEADING_BYTE_UCS_BMP): Changed to -176.
1143 (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1145 2003-04-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1147 * mule-charset.c (Qiso_ir): New variable.
1148 (Fmake_charset): Recognise new property `iso-ir'.
1149 (syms_of_mule_charset): Add new symbol `iso-ir'.
1151 2003-04-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1153 * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1154 n to -n; charset-id of non ISO-IR sets are changed to positive
1157 2003-03-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1159 * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1160 for &MCS-XXXXXXXX; values.
1162 2003-03-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1164 * mule.c (Vxemacs_chise_version): Renamed from
1165 `Vutf_2000_version'.
1166 (vars_of_mule): Add new variable `xemacs-chise-version'; define
1167 `utf-2000-version' as an alias for `xemacs-chise-version'.
1169 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1171 * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1172 (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1175 * config.h.in (CHISE): New macro.
1177 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1179 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1181 (Qmap_ucs): New variable.
1182 (syms_of_mule_charset): Add new symbol `=ucs'.
1183 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1185 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1186 (simplify_char_spec): Likewise.
1188 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1190 * char-ucs.h (Qmap_ucs): New extern variable.
1192 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1194 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1195 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1196 don't define it when UTF2000 is not defined.
1197 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1198 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1199 when UTF2000 is not defined.
1200 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1201 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1203 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1205 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1207 * mule-charset.c (Vcharset_ucs_gb): Deleted.
1209 (syms_of_mule_charset): Delete `ucs-gb'.
1210 (complex_vars_of_mule_charset): Likewise.
1212 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1214 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1216 * mule-charset.c (Vcharset_ucs_cns): Deleted.
1217 (Qucs_cns): Deleted.
1218 (syms_of_mule_charset): Delete `ucs-cns'.
1219 (complex_vars_of_mule_charset): Likewise.
1221 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1225 * mule-charset.c (Vcharset_ucs_jis): Deleted.
1226 (Qucs_jis): Deleted.
1227 (syms_of_mule_charset): Delete `ucs-jis'.
1228 (complex_vars_of_mule_charset): Likewise.
1230 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1232 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1234 * mule-charset.c (Vcharset_ucs_ks): Deleted.
1236 (syms_of_mule_charset): Delete `ucs-ks'.
1237 (complex_vars_of_mule_charset): Likewise.
1239 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1241 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1242 (Qideograph_daikanwa_2): Deleted.
1243 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1244 (complex_vars_of_mule_charset): Likewise.
1246 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1247 (LEADING_BYTE_DAIKANWA_1): Deleted.
1248 (LEADING_BYTE_DAIKANWA_2): Deleted.
1249 (MIN_CHAR_DAIKANWA): Deleted.
1250 (MAX_CHAR_DAIKANWA): Deleted.
1252 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1254 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1255 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1256 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1258 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1259 (Vcharset_ideograph_daikanwa): Deleted.
1260 (Qideograph_hanziku_{1..12}): Deleted.
1261 (Qideograph_daikanwa): Deleted.
1262 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1263 Vcharset_ideograph_daikanwa.
1264 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1265 `ideograph-hanziku-{1..12}'.
1266 (complex_vars_of_mule_charset): Likewise.
1268 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1270 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1272 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1273 (Qideograph_gt_pj_{1..11}): Deleted.
1274 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1275 (complex_vars_of_mule_charset): Likewise.
1277 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279 * mule-charset.c (Vcharset_ucs_big5): Deleted.
1280 (Vcharset_ideograph_gt): Deleted.
1281 (Qucs_big5): Deleted.
1282 (Qideograph_gt): Deleted.
1283 (syms_of_mule_charset): Delete symbol `ucs-big5' and
1285 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1288 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1289 (LEADING_BYTE_GT): Deleted.
1290 (MIN_CHAR_GT): Deleted.
1291 (MAX_CHAR_GT): Deleted.
1293 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1295 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1297 2003-01-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1299 * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1300 (save_uint16_byte_table): Likewise.
1301 (save_byte_table): Likewise; convert values by it.
1302 (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1303 for `ideographic-structure'.
1304 (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1305 as the filter for `ideographic-structure'.
1307 2003-01-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1309 * chartab.c (put_char_composition): New function.
1310 (Fput_char_attribute): Use `put_char_composition'; use
1311 `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1313 * fns.c (simplify_char_spec): New function.
1314 (char_ref_simplify_spec): New function.
1315 (Fchar_refs_simplify_char_specs): New function.
1316 (syms_of_fns): Add new builtin function
1317 `char-refs-simplify-char-specs'.
1319 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1321 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1322 (Qideograph_cbeta): Deleted.
1323 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1324 (complex_vars_of_mule_charset): Likewise.
1326 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1327 (MIN_CHAR_CBETA): Comment out.
1328 (MAX_CHAR_CBETA): Likewise.
1330 2002-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1332 * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1333 `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1334 CHISE client feature.
1336 2002-12-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1338 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1340 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1342 * mule-charset.c (charset_lookup_description_1): Use
1343 `NUM_LEADING_BYTES' in UTF-2000.
1345 2002-12-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1347 * char-ucs.h (GC_CHARSETP): Deleted.
1349 2002-12-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351 * char-ucs.h (MAX_CHAR_GT): Updated.
1353 2002-12-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1355 * text-coding.c: Sync with XEmacs 21.4.10.
1357 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1359 * mule-charset.c (Vcharset_china3_jef): Deleted.
1360 (Qchina3_jef): Deleted.
1361 (syms_of_mule_charset): Don't define `china3-jef'.
1362 (complex_vars_of_mule_charset): Likewise.
1364 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1365 (MIN_CHAR_CHINA3_JEF): Comment out.
1366 (MAX_CHAR_CHINA3_JEF): Comment out.
1368 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1370 * mule-charset.c (Vcharset_ucs_gb): New variable.
1371 (Qucs_gb): New variable.
1372 (syms_of_mule_charset): Add new symbol `ucs-gb'.
1373 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1375 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1377 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379 * mule-charset.c (charset_code_point): if a coded-charset has a
1380 final-byte, don't inherit the builtin range of the mother CCS.
1382 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384 * mule-charset.c (charset_code_point): Fix problem about
1387 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1389 * mule-charset.c (decode_builtin_char): Reorganized.
1391 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1393 * text-coding.c (char_encode_as_entity_reference): Modify for
1394 `charset_code_point'.
1395 (char_encode_shift_jis): Likewise.
1396 (char_encode_big5): Likewise.
1397 (char_encode_utf8): Likewise.
1398 (char_encode_iso2022): Likewise.
1400 * mule-charset.c (charset_code_point): Add new argument
1402 (Fencode_char): Add new optional argument `defined_only'.
1404 * chartab.c (put_char_table): Modify for `charset_code_point'.
1406 * char-ucs.h (charset_code_point): Add new argument
1408 (encode_char_1): Modify for `charset_code_point'.
1410 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1412 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1413 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1415 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1418 (Qjis_x0208): Likewise.
1419 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1420 XCHARSET_FINAL(charset).
1421 (charset_code_point): Modify condition for final-byte based
1423 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1424 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1425 in UTF-2000; specify `=jis-x0208' as the mother of
1426 `japanese-jisx0208-1978', `japanese-jisx0208' and
1427 `japanese-jisx0208-1990' in UTF-2000.
1429 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1431 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1433 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435 * text-coding.c (decode_coding_utf16): Support UTF-16.
1436 (char_encode_utf16): Fixed.
1438 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1440 * text-coding.c (Qutf16): New variable in MULE.
1441 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1442 (Fcoding_system_type): Add `utf-16' in MULE.
1443 (struct detection_state): Add a structure for utf16 in MULE.
1444 (detect_coding_type): Setup st->utf16.mask in MULE.
1445 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1447 (reset_encoding_stream): Use `char_encode_utf16' and
1448 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1449 (detect_coding_utf16): New function [incomplete].
1450 (decode_coding_utf16): New function [support only UCS-2].
1451 (char_encode_utf16): New function.
1452 (char_finish_utf16): New function.
1453 (syms_of_file_coding): Add new symbol `utf-16'; setup
1454 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1456 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1458 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1459 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1461 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1463 * chartab.c (put_char_table): When a charset is specified as a
1464 range in UTF-2000, don't support builtin characters.
1466 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1468 * mule-charset.c (decode_defined_char): Don't refer external
1469 database if Qunbound or Qnil are found.
1470 (Fsave_charset_mapping_table): Don't define it if
1471 HAVE_CHISE_CLIENT is not defined.
1472 (Freset_charset_mapping_table): New function.
1473 (load_char_decoding_entry_maybe): Store Qnil if a character is not
1474 found in external database.
1475 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1476 if HAVE_CHISE_CLIENT is not defined; add new builtin function
1477 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1479 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1481 * text-coding.c (decode_coding_utf8): Check CCS is specified or
1484 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1486 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1487 Q_lowercase, Q_uppercase in UTF-2000.
1489 * chartab.c (get_char_table): Add special code for the standard
1490 case table to use character attribute `->downcase' and
1491 `->uppercase' for case operations in UTF-2000.
1493 * casetab.c (Qflippedcase): New variable in UTF-2000.
1494 (Q_lowercase): Likewise.
1495 (Q_uppercase): Likewise.
1496 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1497 and `->uppercase' in UTF-2000.
1498 (complex_vars_of_casetab): Assign attribute name `downcase' to
1499 downcase and CANON table of Vstandard_case_table in UTF-2000;
1500 assign attribute name `flippedcase' to upcase and EQV table of
1501 Vstandard_case_table in UTF-2000.
1503 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1505 * text-coding.c (decode_add_er_char): Support isolated-chars.
1506 (char_encode_as_entity_reference): Likewise.
1508 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1510 * emacs.c (Vutf_2000_lisp_directory): New variable.
1511 (Vconfigure_utf_2000_lisp_directory): Likewise.
1512 (complex_vars_of_emacs): Add new variable
1513 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1515 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1517 * char-ucs.h (DECODE_CHAR): Delete special code for
1518 `chinese-big5-1' and `chinese-big5-2'.
1520 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1521 (Qbig5_2): Likewise.
1522 (decode_defined_char): Support CONVERSION_BIG5_1 and
1524 (decode_builtin_char): Likewise.
1525 (charset_code_point): Likewise.
1526 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1527 'conversion in UTF-2000.
1528 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1529 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1530 `chinese-big5-2' as children of `chinese-big5'.
1532 * char-ucs.h (CONVERSION_BIG5_1): New macro.
1533 (CONVERSION_BIG5_2): New macro.
1535 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1537 * text-coding.c (char_encode_big5): Support entity-reference.
1539 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1541 * text-coding.c (char_encode_as_entity_reference): New function.
1542 (char_encode_utf8): Use `char_encode_as_entity_reference'.
1544 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1546 * text-coding.c (decode_coding_big5): Support entity-reference
1549 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1551 * text-coding.c (allocate_coding_system): Initialize initial
1552 charsets for CODESYS_UTF8.
1553 (Fmake_coding_system): Accept charset-g0, charset-g1 and
1554 charset-g2 for CODESYS_UTF8.
1555 (decode_coding_utf8): Use charset-g0.
1556 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1557 to force variants to map to UCS.
1559 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561 * text-coding.c (Qutf_8_mcs): New variable.
1562 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1563 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1564 instead of `utf-8' in UTF-2000.
1566 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1568 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1569 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1570 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1571 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1572 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1573 CONVERSION_96x96x96x96 are introduced.
1574 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1575 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1576 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1578 * char-ucs.h (CONVERSION_94): New macro.
1579 (CONVERSION_96): New macro.
1580 (CONVERSION_94x94): New macro.
1581 (CONVERSION_96x96): New macro.
1582 (CONVERSION_94x94x94): New macro.
1583 (CONVERSION_96x96x96): New macro.
1584 (CONVERSION_94x94x94x60): New macro.
1585 (CONVERSION_94x94x94x94): New macro.
1586 (CONVERSION_96x96x96x96): New macro.
1588 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1590 * chartab.c (Vcharacter_variant_table): Deleted.
1591 (Fchar_variants): Use character-attribute `->ucs-variants' instead
1592 of `Vcharacter_variant_table'.
1593 (Fput_char_attribute): Likewise.
1594 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1595 (complex_vars_of_chartab): Likewise.
1597 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1599 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1601 * fns.c (Qideographic_structure): New variable.
1602 (Qkeyword_char): New variable.
1603 (ids_format_unit): New function.
1604 (Fideographic_structure_to_ids): New function.
1605 (syms_of_fns): Add new symbols `ideographic-structure' and
1606 `:char'; add new builtin function `ideographic-structure-to-ids'.
1608 * data.c (Fchar_ref_p): New function.
1609 (syms_of_data): Add new builtin function `char-ref-p'.
1611 * chartab.h: Add an EXFUN for `Ffind_char'.
1613 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1615 * text-coding.c (Vcharacter_composition_table): Deleted.
1616 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1619 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1621 (Vcharacter_composition_table): Deleted.
1622 (Fget_composite_char): Use the implementation for external-DB
1623 support in every UTF-2000.
1624 (Fput_char_attribute): Likewise.
1625 (char_attribute_system_db_file): Don't define if external-DB
1626 feature is not available.
1627 (Fsave_char_attribute_table): Likewise.
1628 (Fmount_char_attribute_table): Likewise.
1629 (Fclose_char_attribute_table): Likewise.
1630 (Freset_char_attribute_table): Likewise.
1631 (Fload_char_attribute_table): Likewise.
1632 (syms_of_chartab): Don't define `save-char-attribute-table',
1633 `mount-char-attribute-table', `reset-char-attribute-table',
1634 `close-char-attribute-table' and `load-char-attribute-table' if
1635 external-DB feature is not available.
1636 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1638 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1640 * text-coding.c (Qcomposition): Add extern if external-DB feature
1642 (Vcharacter_composition_table): Don't add extern if external-DB
1643 feature is supported.
1644 (COMPOSE_ADD_CHAR): Modify for new data-representation of
1645 character composition rule if external-DB feature is supported.
1647 * chartab.c (Vcharacter_composition_table): Don't define if
1648 external-DB feature is supported.
1649 (Qcomposition): New variable.
1650 (Fget_composite_char): New implementation for external-DB support.
1651 (Fput_char_attribute): Use `composition' property of each
1652 character instead of `Vcharacter_composition_table' to store
1653 character-composition rules if external-DB feature is supported.
1654 (syms_of_chartab): Add new symbol `composition'.
1655 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1656 external-DB feature is supported.
1658 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1660 * chartab.c (Vchar_db_stingy_mode): New variable.
1661 (load_char_attribute_maybe): Close database if
1662 Vchar_db_stingy_mode is not NIL.
1663 (Fload_char_attribute_table_map_function): Use
1664 `get_char_id_table_0' instead of `get_char_id_table'.
1665 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1667 * chartab.h (get_char_id_table_0): New inline function.
1668 (get_char_id_table): Use `get_char_id_table_0'.
1670 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1672 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1673 and `COMPOSE_ADD_CHAR'.
1674 (decode_coding_iso2022): Use `decode_flush_er_chars'.
1676 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1678 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1679 instead of `DECODE_ADD_UCS_CHAR'.
1680 (COMPOSE_ADD_CHAR): Likewise.
1682 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1684 * text-coding.c (decode_flush_er_chars): New inline function.
1685 (decode_add_er_char): New function.
1686 (decode_coding_utf8): Use `decode_flush_er_chars' and
1687 `decode_add_er_char'.
1689 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1691 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1692 done before `decode_output_utf8_partial_char'.
1694 * mule-charset.c (complex_vars_of_mule_charset): Specify
1695 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1696 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1698 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700 * mule-charset.c (decode_defined_char): New function; search
1702 (decode_builtin_char): Don't search mother if
1703 XCHARSET_MAX_CODE(charset) == 0.
1704 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1705 == 0 even if code >= XCHARSET_MAX_CODE(charset).
1706 (Fdecode_char): Use `decode_defined_char' instead of
1707 `DECODE_DEFINED_CHAR'.
1708 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1709 mother of `Vcharset_ucs_jis'.
1711 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1712 instead of `DECODE_DEFINED_CHAR'.
1714 * char-ucs.h (decode_defined_char): Renamed from
1715 `DECODE_DEFINED_CHAR'; changed to normal function.
1716 (DECODE_CHAR): Use `decode_defined_char' instead of
1717 `DECODE_DEFINED_CHAR'.
1719 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1721 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1723 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1725 * text-coding.c (Vcoded_charset_entity_reference_alist): New
1727 (Quse_entity_reference): New variable.
1731 (coding_system_description): Add description for
1732 `ccs_priority_list'.
1733 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1734 (allocate_coding_system): Initialize `ccs_priority_list' in
1736 (Fmake_coding_system): Add description about
1737 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1739 (Fcoding_system_property): Accept `disable-composition' and
1740 `use-entity-reference' in UTF-2000.
1741 (struct decoding_stream): Add new member `er_counter' and `er_buf'
1743 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1744 (decode_coding_utf8): Decode entity-reference if
1745 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1746 (char_encode_utf8): Encode non-Unicode characters as
1747 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1749 (syms_of_file_coding): Add new symbols `use-entity-reference',
1751 (vars_of_file_coding): Add new variable
1752 `coded-charset-entity-reference-alist'.
1753 (complex_vars_of_file_coding): Declare `disable-composition' and
1754 `use-entity-reference' to be coding-system-properties in UTF-2000.
1756 * file-coding.h (struct Lisp_Coding_System): Add new member
1757 `use_entity_reference' and `ccs_priority_list'.
1758 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1759 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1760 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1762 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1764 * chartab.c (save_uint8_byte_table): Don't clear the table.
1765 (save_uint16_byte_table): Likewise.
1766 (save_byte_table): Likewise.
1767 (Fmount_char_attribute_table): New function.
1768 (syms_of_chartab): Add new builtin function
1769 `mount-char-attribute-table'.
1771 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1773 * mule-charset.c (Fsave_charset_mapping_table): Open database as
1775 (load_char_decoding_entry_maybe): Open database as read-only mode.
1777 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1778 open database as "w+" mode.
1779 (load_char_attribute_maybe): Open database as read-only mode.
1780 (Fload_char_attribute_table): Likewise.
1782 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1784 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1785 (char_table_description): Delete member `db_file'.
1786 (Fmake_char_table): Don't refer `ct->db_file'.
1787 (Fcopy_char_table): Likewise.
1788 (Fsave_char_attribute_table): Likewise.
1789 (Fclose_char_attribute_table): Likewise.
1790 (Freset_char_attribute_table): Likewise.
1791 (load_char_attribute_maybe): Likewise.
1792 (Fload_char_attribute_table): Likewise.
1794 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1796 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1799 (Fsave_char_attribute_table): Don't check `ct->db_file' if
1801 (load_char_attribute_maybe): Likewise.
1802 (Fload_char_attribute_table): Likewise.
1804 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1806 * chartab.c (Fclose_char_attribute_table): Set Qnil on
1807 `ct->db_file' unconditionally.
1809 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1811 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1813 (char_table_description): Add description for `db_file' and `db'
1815 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1817 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1818 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1819 (Fclose_char_attribute_table): New function.
1820 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1821 (load_char_attribute_maybe): Change interface; use `cit->db_file'
1823 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1824 (syms_of_chartab): Add new builtin function
1825 `Fclose_char_attribute_table'.
1827 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1829 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1831 (load_char_attribute_maybe): Change interface.
1832 (get_char_id_table): Modify for `load_char_attribute_maybe'.
1834 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1836 * database.h: Add an EXFUN for `Fdatabase_live_p'.
1838 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1840 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1841 instead of `DECODE_CHAR' for mother; don't use special code for
1842 chinese-big5 to use code space of chinese-big5-1 and
1844 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1845 `MAX_CHAR_BIG5_CDP' for chinese-big5.
1847 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1848 (MAX_CHAR_BIG5_CDP): Revival.
1850 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1853 the XLFD registry-encoding name of `chinese-big5'.
1855 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1857 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1858 (Qchinese_big5_cdp): Deleted.
1859 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1860 (complex_vars_of_mule_charset): Delete coded-charset
1863 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1864 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1865 `CHARSET_ID_OFFSET - n' for private CCS.
1866 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1867 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1868 of `MIN_LEADING_BYTE'.
1869 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1870 `(CHARSET_ID_OFFSET - 97)'.
1871 (MIN_CHAR_BIG5_CDP): Deleted.
1872 (MAX_CHAR_BIG5_CDP): Deleted.
1874 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1876 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1878 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1880 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1881 (vars_of_mule): Add new variable `utf-2000-version' [moved from
1884 * chartab.c (Vutf_2000_version): Moved to mule.c.
1885 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1887 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1889 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1890 when HAVE_CHISE_CLIENT is not defined.
1892 * mule.c (vars_of_mule): Provide feature `chise' when
1893 HAVE_CHISE_CLIENT is defined.
1895 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1897 * config.h.in (UTF2000): Add comment.
1898 (HAVE_CHISE_CLIENT): New macro.
1900 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1902 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1904 (Fput_char_attribute): Likewise.
1905 (char_attribute_system_db_file): Encode file-name of attribute.
1906 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1909 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1911 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1912 (Fsave_charset_mapping_table): Use
1913 `char_attribute_system_db_file'.
1914 (load_char_decoding_entry_maybe): Likewise.
1916 * chartab.h (Qsystem_char_id): New external variable.
1917 (char_attribute_system_db_file): New prototype.
1919 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1920 (char_attribute_system_db_file): New function.
1921 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1922 (Freset_char_attribute_table): Likewise.
1923 (load_char_attribute_maybe): Likewise.
1924 (Fload_char_attribute_table): Likewise.
1925 (syms_of_chartab): Add new symbol `system-char-id'.
1927 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1929 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1930 `XCHARSET_GRAPHIC(ccs)'.
1932 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1934 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1936 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1938 * chartab.c (Q_ucs_variants): New variable.
1939 (syms_of_chartab): Add new symbol `->ucs-variants'.
1940 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1941 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1942 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1944 * mule-charset.c (load_char_decoding_entry_maybe): New function.
1946 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1947 `HAVE_DATABASE' is defined.
1948 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1949 `HAVE_DATABASE' is defined.
1951 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1953 * chartab.c (Fsave_char_attribute_table): Don't clear internal
1955 (Freset_char_attribute_table): New function.
1956 (syms_of_chartab): Add new builtin function
1957 `reset-char-attribute-table'.
1959 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1961 * chartab.c (load_char_attribute_maybe): Don't make directories.
1963 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1965 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1967 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1970 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1972 * mule-charset.c (Fsave_charset_mapping_table): Use
1973 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1975 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1976 instead of `XCHARSET_CHARS'.
1978 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1980 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1981 (XCHARSET_BYTE_SIZE): Likewise.
1983 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1985 (XCHARSET_BYTE_SIZE): Likewise.
1987 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1989 * chartab.c (Fput_char_attribute): Use exec-directory instead of
1990 data-directory to store database.
1991 (Fsave_char_attribute_table): Likewise.
1992 (load_char_attribute_maybe): Likewise.
1993 (Fload_char_attribute_table): Likewise.
1995 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1997 * mule-charset.c (Fsave_charset_mapping_table): New function.
1998 (syms_of_mule_charset): Add new builtin function
1999 `save-charset-mapping-table'.
2001 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2003 * char-ucs.h (decoding_table_check_elements): Delete prototype.
2004 (get_ccs_octet_table): New inline function.
2005 (put_ccs_octet_table): Likewise.
2006 (decoding_table_put_char): Use `get_ccs_octet_table' and
2007 `put_ccs_octet_table'.
2008 (decoding_table_remove_char): Use `decoding_table_put_char'.
2009 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2011 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2012 into encoding_table.
2013 (make_charset): Use Qunbound instead Qnil as initial value of
2016 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2018 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2019 element is Qunloaded.
2020 (map_over_uint16_byte_table): Likewise.
2021 (map_over_byte_table): Likewise.
2022 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2023 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2024 database support, load encoding-table of the specified
2025 coded-charset if it is not loaded yet.
2026 (save_uint8_byte_table): New function of UTF-2000 with external
2028 (save_uint16_byte_table): Likewise.
2029 (save_byte_table): Likewise.
2030 (Fput_char_attribute): Don't store value into external database
2031 even if the external database feature is supported in UTF-2000;
2032 set `attribute' as name of char-table if the external database
2033 feature is supported.
2034 (Fsave_char_attribute_table): New function in UTF-2000.
2035 (syms_of_chartab): Add new builtin function
2036 `save-char-attribute-table' in UTF-2000.
2038 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2040 * chartab.c (char_attribute_table_to_put): New variable in
2042 (Qput_char_table_map_function): Likewise.
2043 (value_to_put): Likewise.
2044 (Fput_char_table_map_function): New function in UTF-2000.
2045 (put_char_table): Use `Fmap_char_attribute' for
2046 CHARTAB_RANGE_CHARSET in UTF-2000.
2047 (Fput_char_attribute): Store symbol instead of string in
2048 `XCHAR_TABLE_NAME (table)'.
2049 (load_char_attribute_maybe): Likewise.
2050 (syms_of_chartab): Add new symbol/function
2051 `put-char-table-map-function'.
2053 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2055 * database.h: Add new EXFUN for `Fmap_database'.
2057 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2058 (syms_of_database): Likewise.
2060 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2062 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2063 (XCHAR_TABLE_UNLOADED): Likewise.
2065 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2066 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2067 HAVE_DATABASE is defined.
2068 (char_attribute_table_to_load): New variable of UTF-2000 with
2069 external database support.
2070 (Qload_char_attribute_table_map_function): Likewise.
2071 (Fload_char_attribute_table_map_function): New function of
2072 UTF-2000 with external database support.
2073 (Fload_char_attribute_table): New function of UTF-2000.
2074 (Fmap_char_attribute): Call Fload_char_attribute_table if
2075 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2076 (syms_of_chartab): Add new symbol and function
2077 `load-char-attribute-table-map-function' in UTF-2000 with external
2078 database support; add new function `load-char-attribute-table' in
2081 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083 * chartab.h (load_char_attribute_maybe): New prototype for
2084 UTF-2000 with DATABASE support.
2085 (get_char_id_table): Use `load_char_attribute_maybe' if
2086 HAVE_DATABASE is defined.
2088 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2089 with DATABASE support.
2091 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2093 * chartab.c (Fput_char_attribute): Use S-expression as key of
2096 * chartab.h (get_char_id_table): Use S-expression as key of
2099 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2102 if an element is not loaded, load the corresponding attributes
2103 from an external database.
2104 (map_over_uint16_byte_table): Likewise.
2105 (map_over_byte_table): Likewise.
2106 (map_char_table): Modify for `map_over_uint8_byte_table',
2107 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2108 element is not loaded, load the corresponding attributes from an
2110 (Fput_char_attribute): Change initial values to Qunloaded.
2112 * chartab.h (get_char_id_table): If a character attribute is not
2113 loaded and the attribute value is not found in an external
2114 database, store Qunbound as the attribute value.
2116 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2118 * chartab.c (BT_UINT8_unloaded): New macro.
2119 (UINT8_VALUE_P): Accept Qunloaded.
2120 (UINT8_ENCODE): Likewise.
2121 (UINT8_DECODE): Likewise.
2122 (BT_UINT16_unloaded): New macro.
2123 (UINT16_VALUE_P): Accept Qunloaded.
2124 (UINT16_ENCODE): Likewise.
2125 (UINT16_DECODE): Likewise.
2126 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2128 (mark_char_table): Mark `ct->name' in UTF-2000.
2129 (char_table_description): Add `name' in UTF-2000.
2130 (Fmake_char_table): Initialize `ct->name'.
2131 (Fcopy_char_table): Copy `ct->name'.
2132 (Fput_char_attribute): Store value into an external database if
2133 HAVE_DATABASE is defined.
2135 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2137 (CHAR_TABLE_NAME): New macro in UTF-2000.
2138 (XCHAR_TABLE_NAME): New macro in UTF-2000.
2139 (get_char_id_table): Try to read an external database if Qunloaded
2140 is stored in a table.
2142 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2145 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2147 * database.h: Add EXFUN definitions for Fopen_database,
2148 Fput_database, Fget_database and Fclose_database.
2150 * data.c (Qunloaded): New variable in UTF-2000.
2152 * lisp.h (Qunloaded): New variable in UTF-2000.
2154 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2156 * mule-charset.c (put_char_ccs_code_point): Modify for
2157 `decoding_table_remove_char' and `decoding_table_put_char'.
2158 (remove_char_ccs): Modify for `decoding_table_remove_char'.
2160 * char-ucs.h (decoding_table_remove_char): Change arguments to
2161 hide decoding_table vector.
2162 (decoding_table_put_char): Likewise.
2164 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2166 * mule-charset.c (decoding_table_remove_char): Moved to
2168 (decoding_table_put_char): Likewise.
2170 * char-ucs.h (decoding_table_check_elements): New prototype [moved
2171 from mule-charset.c].
2172 (decoding_table_remove_char): New inline function [moved from
2174 (decoding_table_put_char): Likewise.
2176 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2178 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2181 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2183 * mule-charset.c (decode_builtin_char): Support mother charsets.
2185 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2187 * mule-charset.c (Q94x94x60): New variable.
2188 (charset_code_point): Support conversion `94x94x60'.
2189 (Fmake_charset): Likewise.
2190 (syms_of_mule_charset): Add new symbol `94x94x60'.
2192 * char-ucs.h (CONVERSION_94x94x60): New macro.
2194 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2196 * mule-charset.c (charset_code_point): Unify code about
2199 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2201 * mule-charset.c (charset_code_point): Merge code about builtin
2202 characters into code about mother charsets; don't use
2203 `range_charset_code_point'.
2204 (range_charset_code_point): Deleted.
2206 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2208 * mule-charset.c (Qcode_offset): New variable.
2209 (Fmake_charset): Use `XUINT' to get value of `min-code' and
2210 `max-code'; accept new property `code-offset'.
2211 (syms_of_mule_charset): Add new symbol `code-offset'.
2213 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2215 * mule-charset.c (range_charset_code_point): Fixed.
2217 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2219 * mule-charset.c (decode_builtin_char): Change semantics of
2220 code-offset of coded-charset.
2221 (charset_code_point): Likewise.
2222 (range_charset_code_point): Likewise.
2223 (complex_vars_of_mule_charset): Modify for the change.
2225 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2227 * mule-charset.c (Fencode_char): Reverse arguments.
2229 * mule-charset.c (charset_code_point): Fixed.
2231 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2233 * mule-charset.c (Vcharset_mojikyo): Deleted.
2234 (Vcharset_mojikyo_2022_1): Deleted.
2235 (Vcharset_mojikyo_pj_{1..21}): Deleted.
2236 (Qmin_code): New variable in UTF-2000.
2237 (Qmax_code): Likewise.
2238 (Qmother): Likewise.
2239 (Qconversion): Likewise.
2241 (Qmojikyo): Deleted.
2242 (Qmojikyo_2022_1): Deleted.
2243 (Qmojikyo_pj_{1..22}): Deleted.
2244 (mark_charset): Mark `cs->mother'.
2245 (charset_description): Add description for `mother'.
2246 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2247 new arguments `mother' and `conversion'; use
2248 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2249 (charset_code_point): Moved from char-ucs.h; support `mother'
2251 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2252 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2253 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2254 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2255 allow 2 as the value of `graphic' in UTF-2000; add new properties
2256 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2257 require `final' in UTF-2000; modify for `make_charset'.
2258 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2259 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2260 (Fcharset_property): Support `mother', `min-code' and `max-code'.
2261 (Fencode_char): New function.
2262 (syms_of_mule_charset): Add new builtin function `encode-char' in
2263 UTF-2000; add new symbols `min-code', `max-code', `mother',
2264 `conversion' and `94x60'; delete symbols `mojikyo',
2265 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2266 (complex_vars_of_mule_charset): Modify for `make_charset' change;
2267 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2268 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2270 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2271 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2273 * char-ucs.h (Vcharset_mojikyo): Deleted.
2274 (Vcharset_mojikyo_2022_1): Deleted.
2275 (LEADING_BYTE_MOJIKYO): Deleted.
2276 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2277 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2278 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2279 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2280 add new member `mother'; add new member `conversion'.
2281 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2282 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2283 (CHARSET_MOTHER): New macro.
2284 (CHARSET_CONVERSION): New macro.
2285 (CONVERSION_IDENTICAL): New macro.
2286 (CONVERSION_94x60): New macro.
2287 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2288 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2289 (XCHARSET_MOTHER): New macro.
2290 (XCHARSET_CONVERSION): New macro.
2291 (MIN_CHAR_MOJIKYO): Deleted.
2292 (MAX_CHAR_MOJIKYO): Deleted.
2293 (DECODE_MOJIKYO_2022): Deleted.
2294 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2295 (charset_code_point): Changed to non-inline function.
2296 (encode_char_1): Use `charset_code_point'.
2297 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2299 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2301 * lread.c (read_compiled_function): Fix prototype.
2302 (read_vector): Likewise.
2304 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2306 * lrecord.h (struct lrecord_header): Delete `older'.
2307 (set_lheader_implementation): Delete code for `older'.
2308 (set_lheader_older_implementation): Deleted.
2309 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2310 (OLDER_RECORD_P): Deleted.
2311 (OLDER_RECORD_HEADER_P): Deleted.
2312 (alloc_older_lcrecord): Deleted.
2313 (alloc_older_lcrecord_type): Deleted.
2315 * alloc.c (all_older_lcrecords): Deleted.
2316 (alloc_older_lcrecord): Deleted.
2317 (disksave_object_finalization_1): Delete code for older objects.
2318 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2319 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2321 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2323 * mule-charset.c (decoding_table_put_char): Use `make_vector'
2324 instead of `make_older_vector'.
2325 (put_char_ccs_code_point): Likewise.
2326 (mark_charset): Mark `cs->decoding_table'.
2327 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2329 * lisp.h (make_older_vector): Deleted.
2330 (make_vector_newer): Deleted.
2332 * config.h.in (HAVE_GGC): Deleted.
2334 * alloc.c (make_older_vector): Deleted.
2335 (make_vector_newer_1): Deleted.
2336 (make_vector_newer): Deleted.
2338 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2341 (Qideograph_daikanwa_2): New variable.
2342 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2343 (complex_vars_of_mule_charset): Add new coded-charset
2344 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2345 `LEADING_BYTE_DAIKANWA'.
2347 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2348 (LEADING_BYTE_DAIKANWA_1): New macro.
2349 (LEADING_BYTE_DAIKANWA_2): New macro.
2350 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2352 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2354 * mule-charset.c (complex_vars_of_mule_charset): Change
2355 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2356 the second revised version.
2358 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360 * mule-charset.c (Vcharset_ucs_smp): New variable.
2361 (Vcharset_ucs_sip): New variable.
2362 (Qucs_smp): New variable.
2363 (Qucs_sip): New variable.
2364 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2365 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2366 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2367 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2368 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2369 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2371 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2372 (LEADING_BYTE_UCS_SIP): New macro.
2373 (MIN_CHAR_SMP): New macro.
2374 (MAX_CHAR_SMP): New macro.
2375 (MIN_CHAR_SIP): New macro.
2376 (MAX_CHAR_SIP): New macro.
2378 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
2380 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2383 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2386 value; don't store value into `encoding_table' of `Lisp_Charset'.
2387 (mark_charset): `encoding_table' was deleted.
2388 (charset_description): Likewise.
2389 (make_charset): Likewise.
2390 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2391 `put_char_ccs_code_point'.
2393 * chartab.h (Fput_char_attribute): New EXFUN.
2395 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2396 is unified with normal symbol space.
2397 (Fget_char_attribute): Likewise.
2398 (Fput_char_attribute): Likewise; behavior of
2399 `put_char_ccs_code_point' is changed.
2401 * char-ucs.h: Include "elhash.h".
2402 (Vchar_attribute_hash_table): New external variable.
2403 (struct Lisp_Charset): Delete `encoding_table'.
2404 (CHARSET_ENCODING_TABLE): New implementation; refer
2405 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2408 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2410 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2413 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2415 * text-coding.c (char_encode_big5): Prefer charset-g1 than
2418 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2420 * chartab.c (uint8_byte_table_description): New constant.
2421 (uint8-byte-table): Use `uint8_byte_table_description'.
2422 (uint16_byte_table_description): New constant.
2423 (uint16-byte-table): Use `uint16_byte_table_description'.
2425 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2427 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2428 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2430 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2432 * mule-charset.c (Vcharset_ucs_ks): New variable.
2433 (Qucs_ks): New variable.
2434 (syms_of_mule_charset): Add new symbol `ucs-ks'.
2435 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2437 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2439 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2441 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2442 (Fdecode_char): Likewise.
2444 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2446 (Fdefine_char): Modify for Fdecode_char.
2447 (Ffind_char): Likewise.
2449 * mule-charset.c (Fdecode_char): Add new optional argument
2451 (Fdecode_builtin_char): Modify for `Fdecode_char'.
2453 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2455 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2456 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2457 (allocate_coding_system): Initialize initial-charsets of
2458 CODESYS_BIG5 in XEmacs UTF-2000.
2459 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2460 CODESYS_BIG5 in XEmacs UTF-2000.
2461 (decode_coding_big5): Use initial-charset-g0 and -g1 of
2462 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2464 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2466 (Qideograph_hanziku_{1 .. 12}): Likewise.
2467 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2469 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2470 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2471 `ideograph-hanziku-{1 .. 12}'.
2473 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2474 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2475 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2476 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2477 (DECODE_DEFINED_CHAR): New inline function.
2478 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2480 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2482 * mule-charset.c (Vcharset_china3_jef): Renamed from
2483 `Vcharset_japanese_jef_china3'.
2484 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2485 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2486 `{MIN|MAX}_CHAR_JEF_CHINA3'..
2487 (syms_of_mule_charset): Rename `china3-jef' from
2488 `japanese-jef-china3'.
2489 (complex_vars_of_mule_charset): Likewise; rename
2490 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2492 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2493 `LEADING_BYTE_JEF_CHINA3'.
2494 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2495 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2497 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2499 * mule-charset.c (encode_builtin_char_1): Comment out special code
2500 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2502 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2503 (MAX_CHAR_MOJIKYO_0): Comment out.
2504 (MIN_CHAR_CBETA): Changed to 0x00E20000.
2505 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2506 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2507 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2509 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2511 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2512 (Qideograph_cbeta): New variable.
2513 (encode_builtin_char_1): Comment out special code for
2514 coded-charset `mojikyo' and `japanese-jef-china3'.
2515 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2516 (complex_vars_of_mule_charset): Add new coded-charset
2519 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2520 (MIN_CHAR_CBETA): New macro.
2521 (MAX_CHAR_CBETA): New macro.
2523 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2526 (LEADING_BYTE_JEF_CHINA3): New macro.
2527 (MIN_CHAR_JEF_CHINA3): New macro.
2528 (MAX_CHAR_JEF_CHINA3): Likewise.
2529 (DECODE_CHAR): Fixed.
2531 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2533 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2534 (Qjapanese_jef_china3): New variable.
2535 (encode_builtin_char_1): Support `japanese-jef-china3'.
2536 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2537 (complex_vars_of_mule_charset): Add new coded-charset
2538 `japanese-jef-china3'.
2540 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2542 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2543 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2544 94^4, 96^3, 96^4, 128^n and 256^n set.
2545 (put_char_table): Use `XCHARSET_CELL_RANGE'.
2546 (map_char_table): Likewise.
2548 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2550 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2553 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2555 * chartab.h (get_char_id_table): New inline function.
2557 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2560 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2562 * chartab.h (decode_char_table_range): New prototype in XEmacs
2564 (put_char_id_table): New inline function in XEmacs UTF-2000.
2566 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2568 (decode_char_table_range): Delete static declaration in XEmacs
2571 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2573 * chartab.c (put_char_id_table): Use `put_char_table'.
2575 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2577 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2578 (map_over_uint16_byte_table): Likewise.
2579 (map_over_byte_table): Likewise.
2580 (map_char_table): Modify for `map_over_uint8_byte_table',
2581 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2584 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2586 * chartab.c (struct map_char_table_for_charset_arg): New
2588 (map_char_table_for_charset_fun): New function.
2589 (map_char_table): Use `map_char_table' for encoding_table of
2592 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2594 * chartab.c (map_char_table): Check a character is found in
2595 range->charset instead of non default value is defined in
2596 char-table when range is CHARTAB_RANGE_ROW.
2598 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2600 * chartab.c (map_char_id_table): Deleted.
2601 (Fmap_char_attribute): Use `map_char_table' instead of
2602 `map_char_id_table'.
2604 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2606 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2608 (update_syntax_table): Deleted in XEmacs UTF-2000.
2610 * syntax.c (find_defun_start): Use `syntax_table' instead of
2611 `mirror_syntax_table' in XEmacs UTF-2000.
2612 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2614 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2616 (Fmatching_paren): Likewise.
2617 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2619 (find_start_of_comment): Likewise.
2620 (find_end_of_comment): Likewise.
2621 (Fforward_comment): Likewise.
2622 (scan_lists): Likewise.
2623 (char_quoted): Likewise.
2624 (Fbackward_prefix_chars): Likewise.
2625 (scan_sexps_forward): Likewise.
2626 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2627 (update_syntax_table): Likewise.
2629 * search.c (skip_chars): Use `syntax_table' instead of
2630 `mirror_syntax_table' in XEmacs UTF-2000.
2631 (wordify): Likewise.
2632 (Freplace_match): Likewise.
2634 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2635 `mirror_syntax_table' in XEmacs UTF-2000.
2636 (WORDCHAR_P_UNSAFE): Likewise.
2637 (re_match_2_internal): Likewise.
2639 * font-lock.c (find_context): Use `buf->syntax_table' instead of
2640 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2642 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2643 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2645 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2648 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2650 (print_char_table): Print `default_value' in XEmacs UTF-2000.
2651 (char_table_description): Delete `mirror_table' in XEmacs
2653 (fill_char_table): Don't call `update_syntax_table' in XEmacs
2655 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2656 (Fcopy_char_table): Likewise.
2657 (put_char_table): Don't call `update_syntax_table' in XEmacs
2660 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2661 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2662 (casify_region_internal): Likewise.
2664 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2666 * buffer.c (common_init_complex_vars_of_buffer): Don't use
2667 `mirror_syntax_table' in XEmacs UTF-2000.
2669 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2670 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2671 (Fexpand_abbrev): Likewise.
2673 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2677 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2679 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2680 (map_over_uint16_byte_table): Likewise.
2681 (map_over_byte_table): Likewise.
2682 (get_char_id_table): Refer `cit->default_value'.
2683 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2684 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2685 of character-id ranges.
2686 (mark_char_table): Mark `ct->default_value'.
2687 (char_table_description): Add `default_value'.
2688 (fill_char_table): Use `default_value'.
2689 (decode_char_table_range): Decode `nil' as
2690 `CHARTAB_RANGE_DEFAULT'.
2691 (get_char_id_table): Refer `cit->default_value'.
2692 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2693 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2694 temporary hack; check value of char-table is bound or not.
2695 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2697 * chartab.h (struct Lisp_Char_Table): Add new member
2698 `default_value' in XEmacs UTF-2000.
2699 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2700 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2703 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2705 * chartab.h (Lisp_Char_ID_Table): Deleted.
2707 * chartab.c (char_table_description): Fix typo.
2708 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2709 `Lisp_Char_ID_Table'.
2711 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2716 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2719 * chartab.h (XCHAR_ID_TABLE): Deleted.
2720 (XSETCHAR_ID_TABLE): Deleted.
2721 (CHAR_ID_TABLE_P): Deleted.
2723 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2725 (Fget_composite_char): Likewise.
2726 (put_char_table): Likewise.
2727 (add_char_attribute_alist_mapper): Fixed.
2728 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2730 (Fget_char_attribute): Likewise.
2731 (Fget_char_attribute): Likewise.
2732 (Fmap_char_attribute): Likewise.
2734 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2736 (encode_char_1): Likewise.
2738 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2743 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2744 instead of `XCHAR_ID_TABLE'.
2745 (remove_char_ccs): Likewise.
2747 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2749 (Fget_composite_char): Likewise.
2750 (Fchar_variants): Likewise.
2751 (put_char_table): Likewise.
2752 (add_char_attribute_alist_mapper): Likewise.
2753 (Fchar_attribute_alist): Likewise.
2754 (Fget_char_attribute): Likewise.
2755 (Fput_char_attribute): Likewise.
2756 (Fmap_char_attribute): Likewise.
2757 (Fmap_char_attribute): Likewise.
2759 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2761 (encode_char_1): Likewise.
2763 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2765 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2766 `Lisp_Char_ID_Table'.
2767 (mark_char_id_table): Deleted.
2768 (print_char_id_table): Likewise.
2769 (char_id_table_equal): Likewise.
2770 (char_id_table_hash): Likewise.
2771 (char_id_table_description): Likewise.
2772 (char_id_table): Likewise.
2773 (make_char_id_table): Use `Fmake_char_table' and
2775 (get_char_id_table): Use `Lisp_Char_Table' instead of
2776 `Lisp_Char_ID_Table'.
2777 (put_char_id_table): Likewise.
2778 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2780 (Fremove_char_attribute): Likewise.
2781 (syms_of_chartab): Don't define type `char-id-table'.
2783 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2784 (char_id_table): Likewise.
2785 (GC_CHAR_ID_TABLE_P): Likewise.
2786 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2787 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2788 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2789 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2790 (get_char_id_table): Use `Lisp_Char_Table' instead of
2791 `Lisp_Char_ID_Table'.
2792 (put_char_id_table_0): Likewise.
2793 (put_char_id_table): Likewise.
2795 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2797 * chartab.h: Lisp_Byte_Table related codes are moved from
2800 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2802 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2804 * chartab.h: Don't include "chartab.h".
2805 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2806 (Lisp_Char_ID_Table): Likewise.
2807 (char_id_table): Likewise.
2808 (XCHAR_ID_TABLE): Likewise.
2809 (XSETCHAR_ID_TABLE): Likewise.
2810 (CHAR_ID_TABLE_P): Likewise.
2811 (GC_CHAR_ID_TABLE_P): Likewise.
2812 (get_char_id_table): Likewise.
2814 * char-ucs.h: Include "chartab.h".
2815 (struct Lisp_Char_ID_Table): Moved to chartab.h.
2816 (Lisp_Char_ID_Table): Likewise.
2817 (char_id_table): Likewise.
2818 (XCHAR_ID_TABLE): Likewise.
2819 (XSETCHAR_ID_TABLE): Likewise.
2820 (CHAR_ID_TABLE_P): Likewise.
2821 (GC_CHAR_ID_TABLE_P): Likewise.
2822 (get_char_id_table): Likewise.
2824 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2826 * chartab.c (copy_uint8_byte_table): New function.
2827 (copy_uint16_byte_table): New function.
2828 (copy_byte_table): New function.
2829 (map_over_uint8_byte_table): Modify to avoid huge numbers of
2831 (map_over_uint16_byte_table): Likewise.
2832 (map_over_byte_table): Likewise.
2833 (get_byte_table): Move prototype to chartab.h.
2834 (put_byte_table): Likewise.
2835 (put_char_id_table_0): Moved to chartab.h.
2836 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2837 (char_table_entry_equal): Likewise.
2838 (char_table_entry_hash): Likewise.
2839 (char_table_entry_description): Likewise.
2840 (char_table_entry): Likewise.
2841 (make_char_table_entry): Likewise.
2842 (copy_char_table_entry): Likewise.
2843 (get_non_ascii_char_table_value): Likewise.
2844 (map_over_charset_ascii): Likewise.
2845 (map_over_charset_control_1): Likewise.
2846 (map_over_charset_row): Likewise.
2847 (map_over_other_charset): Likewise.
2848 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2849 (print_char_table): Likewise.
2850 (char_table_equal): Likewise.
2851 (char_table_hash): Likewise.
2852 (char_table_description): Likewise.
2853 (fill_char_table): Likewise.
2854 (Fcopy_char_table): Likewise.
2855 (get_char_table): Likewise.
2856 (Fget_range_char_table): Likewise.
2857 (put_char_table): Likewise.
2858 (map_char_table): Likewise.
2859 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2862 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2864 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2865 `Vauto_fill_chars' in XEmacs UTF-2000.
2867 * chartab.h (get_byte_table): New prototype [moved from
2869 (put_byte_table): Likewise [moved from chartab.c].
2870 (put_char_id_table_0): New inline function [moved from chartab.c].
2871 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2872 (Lisp_Char_Table_Entry): Likewise.
2873 (char_table_entry): Likewise.
2874 (XCHAR_TABLE_ENTRY): Likewise.
2875 (XSETCHAR_TABLE_ENTRY): Likewise.
2876 (CHAR_TABLE_ENTRYP): Likewise.
2877 (CHECK_CHAR_TABLE_ENTRY): Likewise.
2878 (NUM_ASCII_CHARS): Likewise.
2879 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2880 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2882 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2884 * chartab.c (get_char_id_table): Change interface.
2885 (put_char_id_table_0): New function.
2886 (put_char_id_table): Change interface; new implementation.
2887 (Fget_composite_char): Modify for interface change of
2888 `get_char_id_table'.
2889 (Fchar_variants): Likewise.
2890 (add_char_attribute_alist_mapper): Likewise.
2891 (Fchar_attribute_alist): Likewise.
2892 (Fget_char_attribute): Likewise.
2893 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2894 as same as character as the first argument like `put-char-table';
2895 modify for interface change of `put_char_id_table'.
2896 (Fremove_char_attribute): Modify for interface change of
2897 `put_char_id_table'.
2899 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2901 * text-coding.c: Sync up with XEmacs 21.2.41.
2902 (COMPOSE_ADD_CHAR): Modify for interface change of
2903 `get_char_id_table'.
2905 * mule-charset.c (put_char_ccs_code_point): Modify for interface
2906 change of `put_char_id_table'.
2907 (remove_char_ccs): Likewise.
2909 * chartab.h (put_char_id_table): Change interface.
2911 * char-ucs.h (get_char_id_table): Change interface.
2912 (charset_code_point): Modify for interface change of
2913 `get_char_id_table'.
2914 (encode_char_1): Likewise.
2916 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2918 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2920 (map_over_uint16_byte_table): Likewise.
2921 (map_over_byte_table): Likewise.
2922 (map_char_id_table): Add new argument `range' like
2924 (Fmap_char_attribute): Add new argument `range' like
2927 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2929 * chartab.c (map_over_uint8_byte_table): Change interface of
2930 mapping function to use struct chartab_range instead of Emchar.
2931 (map_over_uint16_byte_table): Likewise.
2932 (map_over_byte_table): Likewise.
2933 (map_char_id_table): Likewise.
2934 (struct slow_map_char_id_table_arg): Deleted.
2935 (slow_map_char_id_table_fun): Deleted.
2936 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2937 function `slow_map_char_table_fun' instead of struct
2938 `slow_map_char_id_table_arg' and function
2939 `slow_map_char_id_table_fun'.
2941 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2943 * mule-charset.c: Move char-it-table related codes to chartab.c.
2944 (Vutf_2000_version): Moved to chartab.c.
2945 (Fdefine_char): Likewise.
2946 (Ffind_char): Likewise.
2947 (syms_of_mule_charset): Move types `uint8-byte-table',
2948 `uint16-byte-table', `byte-table' and `char-id-table' to
2949 chartab.c; move functions `char_attribute_list,
2950 `find_char_attribute_table, `char_attribute_alist,
2951 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2952 `map_char_attribute, `define_char, `find_char, `char_variants and
2953 `get_composite_char to chartab.c; move symbols `=>ucs',
2954 `->decomposition', `compat', `isolated', `initial', `medial',
2955 `final', `vertical', `noBreak', `fraction', `super', `sub',
2956 `circle', `square', `wide', `narrow', `small' and `font' to
2958 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2959 setting codes for `Vcharacter_composition_table' and
2960 `Vcharacter_variant_table' to chartab.c.
2961 (complex_vars_of_mule_charset): Move setting code for
2962 `Vchar_attribute_hash_table' to chartab.c.
2964 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2965 (make_char_id_table): New prototype.
2966 (put_char_id_table): Likewise.
2967 (Fget_char_attribute): Likewise.
2969 * chartab.c: Move char-id-table related code from mule-charset.c.
2970 (Vutf_2000_version): Moved from mule-charset.c.
2972 * char-ucs.h (Qucs): New external variable.
2973 (put_char_ccs_code_point): New prototype.
2974 (remove_char_ccs): Likewise.
2976 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
2978 * mule-charset.c (Vcharset_ucs_jis): New variable.
2979 (Qucs_jis): Likewise.
2980 (syms_of_mule_charset): Add new symbol `ucs-jis'.
2981 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2983 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2985 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2987 * mule-charset.c (map_over_uint8_byte_table): New function.
2988 (map_over_uint16_byte_table): Likewise.
2989 (map_over_byte_table): Likewise.
2990 (map_char_id_table): Likewise.
2991 (slow_map_char_id_table_fun): Likewise.
2992 (Fmap_char_attribute): Likewise.
2993 (syms_of_mule_charset): Add new function `map-char-attribute'.
2995 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2997 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2998 (syms_of_mule_charset): Add new function `find-char'.
3000 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3004 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3005 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3007 (complex_vars_of_mule_charset): Add new coded-charset
3008 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3009 `ideograph-gt-pj-*'.
3011 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3013 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3015 * mule-charset.c (encode_builtin_char_1): Purge codes about
3016 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3017 {MIN|MAX}_CHAR_HEBREW.
3018 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3019 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3021 * char-ucs.h (MIN_CHAR_GREEK): Purged.
3022 (MAX_CHAR_GREEK): Purged.
3023 (MIN_CHAR_CYRILLIC): Purged.
3024 (MAX_CHAR_CYRILLIC): Purged.
3025 (MIN_CHAR_HEBREW): Commented out.
3026 (MAX_CHAR_HEBREW): Likewise.
3028 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3030 * mule-charset.c (Qto_ucs): New variable.
3031 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3032 (Fdefine_char): Likewise.
3033 (syms_of_mule_charset): Add new symbol `=>ucs'.
3035 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3037 * mule-charset.c (Fdecode_char): Fixed.
3039 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3041 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3042 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3045 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3047 * mule-charset.c (Vcharset_ucs_big5): New variable.
3048 (Qucs_big5): Likewise.
3049 (syms_of_mule_charset): Add new symbol `ucs-big5'.
3050 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3052 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3054 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3056 * mule-charset.c (decode_builtin_char): Check Big5 code range
3057 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3059 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3061 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3062 (Qchinese_gb12345): Likewise.
3063 (Fdecode_builtin_char): Fixed.
3064 (syms_of_mule_charset): Add `chinese-gb12345'.
3065 (complex_vars_of_mule_charset): Add coded-charset
3068 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3069 (LEADING_BYTE_CHINESE_GB12345): New macro.
3071 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3073 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3074 and `latin-viscii-upper' for `latin-viscii'.
3076 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3078 * mule-charset.c (Fdecode_builtin_char): Comment out
3079 regularization code for ISO-IR GR representation.
3081 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3083 * mule-charset.c (decode_builtin_char): New function; renamed from
3084 `make_builtin_char'; return -1 instead of signal.
3085 (Fdecode_builtin_char): Use `decode_builtin_char'.
3087 * char-ucs.h (decode_builtin_char): New prototype; renamed from
3088 `make_builtin_char'.
3089 (DECODE_CHAR): Use `decode_builtin_char' instead of
3090 `make_builtin_char'; use mapping table of `chinese-big5' for
3091 `chinese-big5-{1,2}'.
3093 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3095 * text-coding.c (char_encode_big5): New function.
3096 (char_finish_big5): Likewise.
3097 (reset_encoding_stream): Use `char_encode_big5' and
3098 `char_finish_big5' for CODESYS_BIG5.
3099 (mule_encode): Don't use `encode_coding_big5'.
3100 (encode_coding_big5): Deleted.
3102 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3104 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3105 0x81- in XEmacs UTF-2000.
3106 (detect_coding_big5): Likewise.
3108 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3110 * mule-charset.c (Fdefine_char): Don't use a CCS property to
3111 generate character-id if the CCS property does not have
3112 corresponding predefined character.
3113 (make_builtin_char): Return -1 if corresponding predefined
3114 character is not found.
3115 (Fdecode_char): Return nil if corresponding character is not
3117 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3118 don't map to builtin ucs space.
3120 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3122 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3123 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3125 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3127 * mule-charset.c (Vcharset_ideograph_gt): New variable.
3128 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3129 (Qideograph_gt): Likewise.
3130 (Qideograph_gt_pj_{1..11}): Likewise.
3131 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3132 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3133 `ideograph-gt-pj-11'.
3134 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3135 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3136 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3138 * char-ucs.h (LEADING_BYTE_GT): New macro.
3139 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3140 (MIN_CHAR_GT): Likewise.
3141 (MAX_CHAR_GT): Likewise.
3143 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3145 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3146 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3148 * doprnt.c (unsigned_int_converters): Add `c'.
3149 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3151 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3152 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3154 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3155 (MAX_CHAR_MOJIKYO_0): New macro.
3156 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3158 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3160 * mule-charset.c (Fdefine_char): Delete cemented out code.
3161 (encode_builtin_char_1): Modify for new allocation of builtin
3164 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3166 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3168 * mule-charset.c (Vcharset_ucs_cns): New variable.
3169 (Qucs_cns): New variable.
3170 (syms_of_mule_charset): Add new symbol `ucs-cns'.
3171 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3173 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3175 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3177 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
3179 * search.c (search_buffer): Make `charset_base_code' as
3180 character-id >> 6 to eliminate the corresponding last byte in
3181 UTF-8 representation [I'm not sure it is right thing].
3182 (boyer_moore): Likewise.
3184 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
3186 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3187 representation in MULE.
3189 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3191 * text-coding.c (Fmake_coding_system): Use
3192 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3193 `EXTERNAL_PROPERTY_LIST_LOOP'.
3195 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3197 * text-coding.c (decode_output_utf8_partial_char): New function.
3198 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3200 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3202 * text-coding.c (decode_coding_utf8): Output original byte
3203 sequence if it is broken; change order of conditions.
3205 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3208 * mb-multibyte.h (BYTE_ASCII_P):
3209 Use bit ops for char-signedness safety.
3210 (BYTE_C0_P): Use bit ops for char-signedness safety.
3211 (BYTE_C1_P): Use bit ops for char-signedness safety.
3213 * character.h: (XCHAR_OR_CHAR_INT):
3214 Always use inline function.
3215 Remove redundant type checking assert() - XINT will abort quite
3218 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3220 * text-coding.c: (Fencode_shift_jis_char):
3221 (Fencode_big5_char):
3222 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
3223 Replace 0 with '\0' when working with bytes.
3224 Replace initial "(" with "\(" in docstrings.
3226 (Fmake_coding_system):
3227 When type is ccl and value is vector, register it with a proper
3228 symbol. And checks whether the given ccl program is valid.
3229 (mule_decode): When calling ccl_driver, if src indicates
3230 NULL pointer, set an empty string instead.
3231 (mule_encode): Likewise.
3234 (detect_coding_sjis):
3235 (decode_coding_sjis):
3236 (detect_coding_big5):
3237 (decode_coding_big5):
3238 (detect_coding_ucs4):
3239 (decode_coding_ucs4):
3240 (detect_coding_utf8):
3241 (decode_coding_utf8):
3242 (detect_coding_iso2022):
3243 (decode_coding_iso2022):
3244 (decode_coding_no_conversion):
3246 Make all detecting and decoding functions take an Extbyte * arg.
3247 (text_encode_generic):
3248 (encode_coding_big5):
3249 (encode_coding_no_conversion):
3251 Make all encoding functions take a Bufbyte * arg.
3252 Use size_t instead of unsigned int for memory sizes.
3253 Only cast to unsigned char whenever dereferencing Extbyte *.
3255 (struct lrecord_description fcd_description_1): Use countof.
3256 (complex_vars_of_file_coding):
3257 Use countof instead of sizeof.
3258 Use CHECK_NATNUM instead of CHECK_INT.
3260 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3262 * mule-charset.c (Fget_char_attribute): Add new optional argument
3264 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3265 (remove_char_ccs): Likewise.
3267 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3269 * text-coding.c (char_encode_shift_jis): New implementation in
3271 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3274 * mule-charset.c (Vcharset_chinese_big5): New variable in
3276 (Qchinese_big5): New variable in UTF-2000.
3277 (BIG5_SAME_ROW): New macro in UTF-2000.
3278 (make_builtin_char): Use builtin characters of
3279 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3280 characters of `Vcharset_chinese_big5'.
3281 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3282 (complex_vars_of_mule_charset): Add new coded-charset
3283 `chinese-big5' in UTF-2000.
3285 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3286 (Vcharset_chinese_big5): New external variable declaration.
3287 (Vcharset_japanese_jisx0208_1990): Likewise.
3289 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3291 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3293 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3295 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3297 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3298 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3299 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3302 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3304 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3306 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3308 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3311 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3313 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3314 for `CHARSET_BY_ATTRIBUTES'.
3315 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3316 `CHARSET_BY_ATTRIBUTES'.
3318 * text-coding.c (struct decoding_stream): Rename member `CH' to
3320 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3321 (decode_coding_sjis): Likewise.
3322 (decode_coding_big5): Likewise.
3323 (decode_coding_ucs4): Likewise.
3324 (decode_coding_utf8): Likewise.
3325 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3326 `CHARSET_BY_ATTRIBUTES'.
3327 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3328 `str->counter'; decode 3, 4 bytes sets.
3329 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3331 (decode_coding_no_conversion): Use `str->cpos' instead of
3334 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3335 (Qmojikyo_2022_1): New variable.
3336 (make_charset): Don't use `CHARSET_TYPE_*'.
3337 (range_charset_code_point): Support coded-charset
3339 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3340 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3341 `CHARSET_BY_ATTRIBUTES'.
3342 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3343 `CHARSET_BY_ATTRIBUTES'.
3344 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3345 (complex_vars_of_mule_charset): Add new coded-charset
3348 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3349 interface; changed to inline function.
3351 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3352 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3353 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3354 (CHARSET_TYPE_94): Deleted.
3355 (CHARSET_TYPE_94X94): Deleted.
3356 (CHARSET_TYPE_96): Deleted.
3357 (CHARSET_TYPE_96X96): Deleted.
3358 (CHARSET_TYPE_128): Deleted.
3359 (CHARSET_TYPE_128X128): Deleted.
3360 (CHARSET_TYPE_256): Deleted.
3361 (CHARSET_TYPE_256X256): Deleted.
3362 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3364 (DECODE_MOJIKYO_2022): New inline function.
3365 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3366 `Vcharset_mojikyo_2022_1'.
3368 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3370 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3372 (put_byte_table): Likewise.
3373 (char_id_table_equal): Use `get_byte_table' [new implementation].
3375 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3377 * mule-charset.c: Include <limits.h> in UTF-2000.
3378 (BT_UINT8_MIN): New macro in UTF-2000.
3379 (BT_UINT8_MAX): New macro in UTF-2000.
3380 (BT_UINT8_t): New macro in UTF-2000.
3381 (BT_UINT8_nil): New macro in UTF-2000.
3382 (BT_UINT8_unbound): New macro in UTF-2000.
3383 (INT_UINT8_P): New inline function in UTF-2000.
3384 (UINT8_VALUE_P): New inline function in UTF-2000.
3385 (UINT8_ENCODE): New inline function in UTF-2000.
3386 (UINT8_DECODE): New inline function in UTF-2000.
3387 (mark_uint8_byte_table): New function in UTF-2000.
3388 (print_uint8_byte_table): New function in UTF-2000.
3389 (uint8_byte_table_equal): New function in UTF-2000.
3390 (uint8_byte_table_hash): New function in UTF-2000.
3391 (make_uint8_byte_table): New function in UTF-2000.
3392 (uint8_byte_table_same_value_p): New function in UTF-2000.
3393 (BT_UINT16_MIN): New macro in UTF-2000.
3394 (BT_UINT16_MAX): New macro in UTF-2000.
3395 (BT_UINT16_t): New macro in UTF-2000.
3396 (BT_UINT16_nil): New macro in UTF-2000.
3397 (BT_UINT16_unbound): New macro in UTF-2000.
3398 (INT_UINT16_P): New inline function in UTF-2000.
3399 (UINT16_VALUE_P): New inline function in UTF-2000.
3400 (UINT16_ENCODE): New inline function in UTF-2000.
3401 (UINT16_DECODE): New inline function in UTF-2000.
3402 (UINT8_TO_UINT16): New inline function in UTF-2000.
3403 (mark_uint16_byte_table): New function in UTF-2000.
3404 (print_uint16_byte_table): New function in UTF-2000.
3405 (uint16_byte_table_equal): New function in UTF-2000.
3406 (uint16_byte_table_hash): New function in UTF-2000.
3407 (make_uint16_byte_table): New function in UTF-2000.
3408 (uint16_byte_table_same_value_p): New function in UTF-2000.
3409 (print_byte_table): New function in UTF-2000.
3410 (byte-table): Use `print_byte_table' as printer.
3411 (make_byte_table): Delete second argument `older'.
3412 (byte_table_same_value_p): New function in UTF-2000.
3413 (copy_byte_table): Deleted.
3414 (get_byte_table): New function in UTF-2000.
3415 (put_byte_table): New function in UTF-2000.
3416 (print_char_id_table): New function in UTF-2000.
3417 (char-id-table): Use `print_char_id_table' as printer.
3418 (make_char_id_table): Delete second argument `older'.
3419 (get_char_id_table): Use `get_byte_table [new implementation].
3420 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3422 (Ffind_char_attribute_table): New function in UTF-2000.
3423 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3424 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3425 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3426 (syms_of_mule_charset): Add new function
3427 `find-char-attribute-table' in UTF-2000.
3429 * lrecord.h (enum lrecord_type): Add
3430 `lrecord_type_uint16_byte_table' and
3431 `lrecord_type_uint8_byte_table'.
3433 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3434 (Lisp_Uint8_Byte_Table): New type.
3435 (XUINT8_BYTE_TABLE): New macro.
3436 (XSETUINT8_BYTE_TABLE): New macro.
3437 (UINT8_BYTE_TABLE_P): New macro.
3438 (GC_UINT8_BYTE_TABLE_P): New macro.
3439 (struct Lisp_Uint16_Byte_Table): New structure.
3440 (Lisp_Uint16_Byte_Table): New type.
3441 (XUINT16_BYTE_TABLE): New macro.
3442 (XSETUINT16_BYTE_TABLE): New macro.
3443 (UINT16_BYTE_TABLE_P): New macro.
3444 (GC_UINT16_BYTE_TABLE_P): New macro.
3446 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3448 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3449 (Vcharacter_ideographic_strokes_table): Deleted.
3450 (Vcharacter_total_strokes_table): Deleted.
3451 (Vcharacter_morohashi_daikanwa_table): Deleted.
3452 (Vcharacter_decomposition_table): Deleted.
3453 (Qname): Deleted because it is duplicated.
3454 (Qideographic_radical): Deleted.
3455 (Qideographic_strokes): Deleted.
3456 (Qtotal_strokes): Deleted.
3457 (Qmorohashi_daikanwa): Deleted.
3458 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3459 `ideographic-radical', `ideographic-strokes', `total-strokes',
3460 `morohashi-daikanwa' and `->decomposition'.
3461 (Fget_char_attribute): Likewise.
3462 (Fput_char_attribute): Likewise; use `make-vector' instead of
3463 `make_older_vector' for `->decomposition' value.
3464 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3465 `ideograph-daikanwa'.
3466 (syms_of_mule_charset): Delete builtin symbols `name',
3467 `ideographic-radical', `ideographic-strokes', `total-strokes' and
3468 `morohashi-daikanwa'.
3469 (vars_of_mule_charset): Don't setup
3470 `Vcharacter_ideographic_radical_table',
3471 `Vcharacter_ideographic_strokes_table',
3472 `Vcharacter_total_strokes_table',
3473 `Vcharacter_morohashi_daikanwa_table' and
3474 `Vcharacter_decomposition_table'.
3476 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3478 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3479 `make_older_vector', `make_vector_newer_1' and
3480 `make_vector_newer'.
3482 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3483 `make_older_vector' and `make_vector_newer'.
3485 * config.h.in (HAVE_GGC): New macro.
3487 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3489 * mule-charset.c (struct char_attribute_list_closure): New
3490 structure in UTF-2000.
3491 (add_char_attribute_to_list_mapper): New function in UTF-2000.
3492 (Fchar_attribute_list): Likewise.
3493 (Fset_charset_mapping_table): Use `make_vector_newer'.
3494 (Fdecode_builtin_char): New function in UTF-2000.
3495 (syms_of_mule_charset): Add new function `char-attribute-list' and
3496 `decode-builtin-char' in UTF-2000.
3498 * lisp.h (make_vector_newer): New prototype.
3500 * alloc.c (make_vector_newer_1): New function.
3501 (make_vector_newer): New function.
3503 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3505 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3508 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3510 * mule-charset.c (Vchar_attribute_hash_table): New variable.
3511 (Vcharacter_attribute_table): Deleted.
3512 (Vcharacter_name_table): Deleted.
3513 (put_char_attribute): Deleted.
3514 (remove_char_attribute): Deleted.
3515 (struct char_attribute_alist_closure): New structure.
3516 (add_char_attribute_alist_mapper): New function.
3517 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3518 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3519 (Fget_char_attribute): Likewise.
3520 (Fput_char_attribute): Likewise.
3521 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3522 of `remove_char_attribute'.
3523 (Fdefine_char): Return character.
3524 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3525 and `Vcharacter_name_table'.
3526 (complex_vars_of_mule_charset): Likewise
3527 `Vchar_attribute_hash_table'.
3529 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3531 * character.h (CHARC_CHARSET): New macro.
3532 (CHARC_CHARSET_ID): New macro.
3533 (CHARC_CODE_POINT): New macro.
3534 (CHARC_COLUMNS): New macro.
3535 (CHARC_TO_CHAR): New inline function.
3536 (CHARC_EQ): New inline function.
3537 (CHARC_ASCII_EQ): New inline function.
3538 (CHARC_IS_SPACE): New inline function.
3539 (ASCII_TO_CHARC): New inline function.
3541 * char-ucs.h (encode_char_2): Deleted.
3542 (ENCODE_CHAR): Use `encode_char_1' again.
3543 (breakup_char_1): Likewise.
3544 (CHAR_TO_CHARC): New inline function.
3546 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3548 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3550 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3551 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3552 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3553 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3554 (create_string_text_block): Use `CHARC_ASCII_EQ' and
3556 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3558 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3560 (x_output_display_block): Use `CHARC_CHARSET' and
3563 * redisplay-tty.c (tty_output_display_block): Use
3565 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3567 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3569 * insdel.c (find_charsets_in_charc_string): Use
3571 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3572 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3573 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3574 (convert_charc_string_into_malloced_string): Likewise.
3576 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3578 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3579 instead of <Emchar_dynarr *> for buf; use
3580 `convert_bufbyte_string_into_charc_dynarr' instead of
3581 `convert_bufbyte_string_into_emchar_dynarr'; use
3582 `find_charsets_in_charc_string' instead of
3583 `find_charsets_in_emchar_string'.
3586 - Include "character.h".
3587 (struct rune): New member `cglyph'; delete member `chr'.
3589 * redisplay.c (redisplay_text_width_charc_string): New function;
3590 delete `redisplay_text_width_emchar_string'.
3591 (rtw_charc_dynarr): New variable; renamed from
3592 `rtw_emchar_dynarr'.
3593 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3594 `rtw_emchar_dynarr'; use
3595 `convert_bufbyte_string_into_charc_dynarr' instead of
3596 `convert_bufbyte_string_into_emchar_dynarr'; use
3597 `redisplay_text_width_charc_string' instead of
3598 `redisplay_text_width_emchar_string'.
3599 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3600 instead of `rtw_emchar_dynarr'; use
3601 `convert_bufbyte_string_into_charc_dynarr' instead of
3602 `convert_bufbyte_string_into_emchar_dynarr'.
3603 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3604 `redisplay_text_width_charc_string' instead of
3605 `redisplay_text_width_emchar_string'.
3606 (create_text_block): Modify for <struct rune> change.
3607 (generate_formatted_string_db): Likewise.
3608 (create_string_text_block): Likewise.
3609 (pixel_to_glyph_translation): Likewise.
3611 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3612 instead of <const Emchar *>.
3613 (x_text_width): Likewise.
3614 (x_output_display_block): Use <Charc_dynarr *> instead
3615 <Emchar_dynarr *>; modify for <structure rune> change.
3616 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3619 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3620 <const Emchar *>; use `charc_string_displayed_columns' instead of
3621 `emchar_string_displayed_columns'.
3622 (tty_output_display_block): Use <Charc_dynarr *> instead of
3623 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3624 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3625 (tty_output_charc_dynarr_dynarr): New variable; renamed from
3626 `tty_output_emchar_dynarr_dynarr'.
3627 (tty_output_charc_dynarr): New function; delete
3628 `tty_output_charc_dynarr'.
3630 * redisplay-output.c (compare_runes): Modify for `struct rune'.
3631 (redisplay_output_layout): Use <Charc_dynarr *> instead of
3632 <Emchar_dynarr *> for buf; use
3633 `convert_bufbyte_string_into_charc_dynarr' instead of
3634 `convert_bufbyte_string_into_emchar_dynarr'.
3636 * frame.c (title_string_charc_dynarr): New variable; renamed from
3637 `title_string_emchar_dynarr'.
3638 (generate_title_string): Use `title_string_charc_dynarr' instead
3639 of `title_string_emchar_dynarr'; use
3640 `convert_charc_string_into_malloced_string' instead of
3641 `convert_emchar_string_into_malloced_string'.
3642 (init_frame): Use `title_string_charc_dynarr' instead of
3643 `title_string_emchar_dynarr'.
3646 - Include "character.h".
3647 (struct console_methods): Use <const Charc *> instead of <const
3648 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3649 <Emchar_dynarr *> in output_string_method.
3651 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3654 * console-stream.c (stream_text_width): Use <const Charc *>
3655 instead of <const Emchar *>.
3657 * character.h (Charc_dynarr): New type.
3659 * char-ucs.h (structure Charc): New structure; define new type
3662 * char-lb.h (DECODE_CHAR): New inline function.
3663 (encode_char_1): New inline function.
3664 (ENCODE_CHAR): New macro.
3665 (structure Charc): New structure; define new type `Charc'.
3667 * char-1byte.h (Vcharset_control_1): New macro.
3668 (Vcharset_latin_iso8859_1): New macro.
3669 (DECODE_CHAR): New inline function.
3670 (encode_char_1): New inline function.
3671 (ENCODE_CHAR): New macro.
3672 (structure Charc): New structure; define new type `Charc'.
3674 * insdel.c (find_charsets_in_charc_string): New function; delete
3675 `find_charsets_in_emchar_string'.
3676 (charc_string_displayed_columns): New function; delete
3677 `emchar_string_displayed_columns'.
3678 (convert_bufbyte_string_into_charc_dynarr): New function; delete
3679 `convert_bufbyte_string_into_emchar_dynarr'.
3680 (convert_charc_string_into_bufbyte_dynarr): New function; delete
3681 `convert_charc_string_into_bufbyte_dynarr'.
3682 (convert_charc_string_into_malloced_string): New function; delete
3683 `convert_charc_string_into_malloced_string'.
3685 * buffer.h (find_charsets_in_charc_string): New prototype; delete
3686 `find_charsets_in_emchar_string'.
3687 (charc_string_displayed_columns): New prototype; delete
3688 `emchar_string_displayed_columns'.
3689 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3690 `convert_charc_string_into_bufbyte_dynarr'.
3691 (convert_charc_string_into_malloced_string): New prototype; delete
3692 `convert_charc_string_into_malloced_string'.
3694 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3696 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3698 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3700 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3702 * char-ucs.h: Use <short> for <Charset_ID>.
3704 * mule-charset.h, char-1byte.h: Use <unsigned char> for
3707 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3709 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3712 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3714 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3716 (Qmorohashi_daikanwa): New variable.
3717 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3718 for `morohashi-daikanwa' attribute.
3719 (Fget_char_attribute): Likewise.
3720 (Fput_char_attribute): Likewise.
3721 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3722 has the same value of `ideograph-daikanwa'.
3723 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3724 (vars_of_mule_charset): Setup
3725 `Vcharacter_morohashi_daikanwa_table'.
3727 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3729 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3731 (add_charset_to_list_mapper): Add `key' instead of
3732 `XCHARSET_NAME (value)' to return aliases.
3734 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3736 * mule-charset.c (Vcharacter_ideographic_radical_table): New
3738 (Vcharacter_ideographic_strokes_table): New variable.
3739 (Qideographic_radical): New variable.
3740 (Qideographic_strokes): New variable.
3741 (Fchar_attribute_alist): Use
3742 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3743 attribute; use `Vcharacter_ideographic_strokes_table' for
3744 `ideographic-strokes' attribute.
3745 (Fget_char_attribute): Likewise.
3746 (Fput_char_attribute): Likewise.
3747 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3748 `ideographic-strokes'.
3749 (vars_of_mule_charset): Setup
3750 `Vcharacter_ideographic_radical_table' and
3751 `Vcharacter_ideographic_strokes_table'.
3753 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3755 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3756 (Qtotal_strokes): New variable.
3757 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3758 `total-strokes' attribute.
3759 (Fget_char_attribute): Likewise.
3760 (Fput_char_attribute): Likewise.
3761 (syms_of_mule_charset): Add new symbol `total-strokes'.
3762 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3764 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3766 * mule-charset.c (Vcharacter_decomposition_table): New variable.
3767 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3769 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3770 `->decomposition' attribute.
3771 (Fput_char_attribute): Likewise.
3772 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3774 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3776 * mule-charset.c (decoding_table_check_elements): New function.
3777 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3779 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3781 * mule-charset.c (Fset_charset_mapping_table): Use
3782 `put_char_ccs_code_point'.
3784 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3786 * mule-charset.c (decoding_table_put_char): New inline function.
3787 (put_char_ccs_code_point): Use `decoding_table_put_char'.
3789 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3791 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3792 (XCHARSET_BYTE_SIZE): New macro.
3793 (decoding_table_remove_char): New inline function.
3794 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3795 `decoding_table_remove_char'.
3796 (remove_char_ccs): Use `decoding_table_remove_char'.
3797 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3799 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3801 * mule-charset.c (Vcharacter_name_table): New variable.
3802 (Qname): New variable.
3803 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3805 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3806 `Vcharacter_name_table' for `name' attribute.
3807 (Fremove_char_attribute): Use function `remove_char_ccs'.
3808 (put_char_ccs_code_point): New function.
3809 (remove_char_ccs): New function.
3810 (syms_of_mule_charset): Add new symbol `name'.
3811 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3813 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3815 * mule-charset.c (make_byte_table): Add new argument `older'.
3816 (make_char_id_table): Likewise.
3817 (copy_char_id_table): Comment out because it is not used.
3818 (put_char_id_table): Modify for `make_byte_table'.
3819 (Fput_char_attribute): Make encoding_table as older object;
3820 inherit older bit of `Vcharacter_composition_table'.
3821 (mark_charset): Don't mark `cs->encoding_table'.
3822 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3823 normal object; make `Vcharacter_composition_table' as an older
3824 object; delete staticpro for `Vcharacter_composition_table'; make
3825 `Vcharacter_variant_table' as a normal object.
3827 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3828 (mark_object): Don't check older object in UTF-2000.
3830 * lrecord.h (struct lrecord_header): Add new member `older' in
3832 (set_lheader_implementation): Setup `SLI_header->older' in
3834 (set_lheader_older_implementation): New macro in UTF-2000.
3835 (OLDER_RECORD_P): New macro in UTF-2000.
3836 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3837 (alloc_older_lcrecord): New prototype in UTF-2000.
3838 (alloc_older_lcrecord_type): New macro in UTF-2000.
3840 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3842 * mule-charset.c (byte_table_description): Use
3843 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3844 (char_id_table_description): Delete bogus `, 1'.
3845 (Fget_char_attribute): Refer encoding_table of each coded-charset
3846 to get value of coded-charset attribute of a character.
3847 (Fput_char_attribute): Use `make_older_vector' instead of
3848 `make_vector'; use encoding_table of each coded-charset to store
3849 value of coded-charset attribute of a character.
3850 (Fremove_char_attribute): Use encoding_table of each coded-charset
3851 to store value of coded-charset attribute of a character.
3852 (mark_charset): Mark `cs->encoding_table'; don't mark
3853 `cs->decoding_table'.
3854 (charset_description): Add description of new member
3856 (make_charset): Initialize `encoding_table'.
3858 * char-ucs.h (struct Lisp_Charset): Add new member
3860 (CHARSET_ENCODING_TABLE): New macro.
3861 (XCHARSET_ENCODING_TABLE): New macro.
3862 (charset_code_point): New implementation.
3863 (encode_char_1): Likewise.
3865 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3866 (disksave_object_finalization_1): Call finalizers of
3867 `all_older_lcrecords' in UTF-2000.
3868 (make_older_vector): New function in UTF-2000.
3869 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3872 * lisp.h (make_older_vector): New prototype in UTF-2000.
3874 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3876 * lrecord.h (enum lrecord_type): Rename
3877 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3879 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3880 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3881 `get_char_code_table'.
3883 * mule-charset.c (mark_char_id_table): Renamed from
3884 `mark_char_code_table'.
3885 (char_id_table_equal): Renamed from `char_code_table_equal'.
3886 (char_id_table_hash): Renamed from `char_code_table_hash'.
3887 (make_char_id_table): Renamed from `make_char_code_table'.
3888 (copy_char_id_table): Renamed from `copy_char_code_table'.
3889 (get_char_id_table): Renamed from `get_char_code_table'.
3890 (put_char_id_table): Renamed from `put_char_code_table'.
3891 (to_char_id): Renamed from `to_char_code'.
3893 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3894 `Lisp_Char_Code_Table'.
3895 (char_id_table): Renamed from `char_code_table'.
3896 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3897 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3898 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3899 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3900 (get_char_id_table): Renamed from `get_char_code_table'.
3902 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3904 * lrecord.h (enum lrecord_type): Rename
3905 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3907 * mule-charset.c (mark_byte_table): Renamed from
3908 `mark_char_byte_table'.
3909 (byte_table_equal): Renamed from `char_byte_table_equal'.
3910 (byte_table_hash): Renamed from `byte_table_hash'.
3911 (make_byte_table): Renamed from `make_byte_table'.
3912 (copy_byte_table): Renamed from `copy_char_byte_table'.
3914 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3915 `Lisp_Char_Byte_Table'.
3916 (byte_table): Renamed from `char_byte_table'.
3917 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3918 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3919 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3920 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3922 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3924 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3925 (dfc_convert_to_internal_format): Likewise.
3927 * text-coding.c (Fcoding_system_canonical_name_p): New function.
3928 * text-coding.c (Fcoding_system_alias_p): New function.
3929 * text-coding.c (Fcoding_system_aliasee): New function.
3930 * text-coding.c (append_suffix_to_symbol): New function.
3931 * text-coding.c (dangling_coding_system_alias_p): New function.
3932 * text-coding.c (Ffind_coding_system):
3933 * text-coding.c (Fcopy_coding_system):
3934 * text-coding.c (encode_coding_no_conversion):
3935 * text-coding.c (syms_of_file_coding):
3936 * text-coding.c (vars_of_file_coding):
3937 Rewrite coding system alias code.
3938 Allow nested aliases, like symbolic links.
3939 Allow redefinition of coding system aliases.
3940 Prevent existence of dangling coding system aliases.
3941 Eliminate convert_to_external_format.
3942 Eliminate convert_to_internal_format.
3944 * text-coding.c: Change enum eol_type to eol_type_t.
3946 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3948 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3949 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3951 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3952 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3954 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3956 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3957 `ideograph-daikanwa'.
3959 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3960 (Vcharset_ucs_bmp): Likewise.
3961 (Vcharset_mojikyo): Add new extern variable definition.
3962 (Vcharset_latin_iso8859_2): Deleted because it is not used.
3963 (Vcharset_latin_iso8859_3): Likewise.
3964 (Vcharset_latin_iso8859_4): Likewise.
3965 (Vcharset_latin_iso8859_9): Likewise.
3966 (Vcharset_latin_viscii_lower): Likewise.
3967 (Vcharset_latin_viscii_upper): Likewise.
3968 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3969 `mojikyo' code-point is used to decode.
3970 (encode_char_2): New function [to convert `mojikyo' code-point to
3971 Mojikyo font encoding].
3972 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3973 (breakup_char_1): Likewise.
3974 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3976 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3978 * text-coding.c (Fmake_coding_system): Add document about
3979 `disable-composition' property.
3981 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3983 * text-coding.c (Qdisable_composition): New variable; delete
3985 (Fmake_coding_system): Add new property `disable-composite';
3986 delete property `composite'.
3987 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3988 instead of `!CODING_SYSTEM_COMPOSITE'.
3989 (syms_of_file_coding): Add new symbol `disable-composition';
3990 delete symbol `composite'.
3992 * file-coding.h (struct Lisp_Coding_System): Add
3993 `disable_composition'; delete `enable_composition'.
3994 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3995 `CODING_SYSTEM_COMPOSITE'.
3996 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3997 `XCODING_SYSTEM_COMPOSITE'.
3999 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4001 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4004 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4006 * text-coding.c (Qcomposite): New variable.
4007 (Fmake_coding_system): Add new property `composite'.
4008 (struct decoding_stream): Add `combined_char_count',
4009 `combined_chars' and `combining_table' in UTF-2000.
4010 (COMPOSE_FLUSH_CHARS): New macro.
4011 (COMPOSE_ADD_CHAR): New macro.
4012 (reset_decoding_stream): Reset `str->combined_char_count' and
4013 `str->combining_table' in UTF-2000.
4014 (decode_coding_iso2022): Modify for character-decomposition.
4015 (syms_of_file_coding): Add new symbol `composite'.
4017 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4019 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4020 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4021 of `Vcharacter_composition_table' if `->decomposition' property
4023 (Qlatin_tcvn5712): New variable.
4024 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4025 (complex_vars_of_mule_charset): Add new coded-charset
4028 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4030 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4032 * file-coding.h (struct Lisp_Coding_System): Add
4033 `enable_composition'.
4034 (CODING_SYSTEM_COMPOSITE): New macro.
4035 (XCODING_SYSTEM_COMPOSITE): New macro.
4037 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
4039 * mule-canna.c (c2mu): Fix problem with UTF-2000.
4041 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
4043 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4044 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4046 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
4048 * mule-charset.c (Vcharset_mojikyo): New variable.
4049 (Fdefine_char): Don't use coded-charset which does not have
4050 non-builtin character range to allocate character-id.
4051 (Qmojikyo): New variable.
4052 (syms_of_mule_charset): Add new symbol `mojikyo'.
4053 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4055 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4056 (LEADING_BYTE_MOJIKYO): New macro.
4057 (MIN_CHAR_MOJIKYO): New macro.
4058 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4059 (MAX_CHAR_MOJIKYO): New macro.
4061 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
4063 * mule-charset.c (remove_char_attribute): Fixed.
4065 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
4067 * mule-charset.c (remove_char_attribute): New function.
4068 (Fremove_char_attribute): New function.
4069 (encode_builtin_char_1): Comment out builtin-support for
4070 greek-iso8859-7 and cyrillic-iso8859-5.
4071 (Fdecode_char): Check `code' is an integer.
4072 (syms_of_mule_charset): Add `remove-char-attribute'.
4073 (MIN_CHAR_GREEK): Deleted.
4074 (MAX_CHAR_GREEK): Likewise.
4075 (MIN_CHAR_CYRILLIC): Likewise.
4076 (MAX_CHAR_CYRILLIC): Likewise.
4077 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4078 MAX_CHAR_GREEK for `greek-iso8859-7'.
4080 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4081 (MAX_CHAR_GREEK): Likewise.
4082 (MIN_CHAR_CYRILLIC): Likewise.
4083 (MAX_CHAR_CYRILLIC): Likewise.
4085 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
4087 * mule-charset.c (Fdefine_char): Fix problem when new code-point
4088 format is used without `ucs' property.
4089 (Fdecode_char): Fix problem with GR representation.
4090 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4091 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4093 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4095 * mule-charset.c (make_builtin_char): New function.
4096 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4097 (Fset_charset_mapping_table): Modify for new representation of
4099 (Fdecode_char): New function.
4100 (syms_of_mule_charset): Add new builtin function `decode-char' in
4103 * char-ucs.h (make_builtin_char): New prototype.
4104 (DECODE_CHAR): New inline function.
4105 (MAKE_CHAR): Use `DECODE_CHAR'.
4107 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
4109 * text-coding.c (parse_charset_conversion_specs): Use
4110 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4112 (iso2022_designate): Likewise.
4114 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4115 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4117 * mule-charset.c (Vcharset_ucs): New variable.
4118 (print_charset): Change design; use `CHARSET_CHARS' and
4119 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4120 (make_charset): Change signature to specify `chars' and
4121 `dimension' instead of `type'.
4122 (range_charset_code_point): Modify for 256^n-set.
4123 (encode_builtin_char_1): Encode as `ucs' in default.
4124 (Fmake_charset): Modify for `make_charset'.
4125 (Fmake_reverse_direction_charset): Likewise.
4126 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4128 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4131 * char-ucs.h (Vcharset_ucs): New variable.
4132 (LEADING_BYTE_UCS): New macro.
4133 (struct Lisp_Charset): Delete `type'; change type of `dimension'
4134 and `chars' to `unsigned short' from `unsigned int'.
4135 (CHARSET_TYPE): Deleted.
4136 (XCHARSET_TYPE): Deleted.
4138 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
4140 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4142 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4143 (ENCODE_CHAR): New macro.
4145 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4147 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4148 to 0.14 (Kawachi-Katakami).
4150 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4152 * text-coding.c (char_encode_shift_jis): Modify for
4153 `charset_code_point'.
4154 (char_encode_iso2022): Likewise.
4156 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4157 (integer) instead of list of <Lisp_Object>s (integers) as the
4158 format of code-point of a coded-charset.
4159 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4160 (encode_builtin_char_1): New function; delete
4161 `split_builtin_char'.
4162 (charset_code_point): Return <int> instead of <Lisp_Object>.
4163 (Fsplit_char): Don't use `SPLIT_CHAR'.
4165 * char-ucs.h (encode_builtin_char_1): New prototype; delete
4166 prototype for `split_builtin_char'.
4167 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4168 (charset_code_point): Likewise.
4169 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4170 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4172 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
4174 * mule-charset.c (complex_vars_of_mule_charset): Don't define
4175 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4177 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4179 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4181 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4182 (MAX_CHAR_OBS_94x94): Deleted.
4184 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4186 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4188 * char-ucs.h (MAX_CHAR_BMP): New macro.
4190 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4192 * text-coding.c: Sync with r21-2-24.
4194 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
4196 * file-coding.c: Modify for UTF-2000.
4198 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
4200 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4203 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4205 * mule-charset.c (split_builtin_char): Delete builtin support for
4206 `katakana-jisx0201'.
4207 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4208 BMP area in builtin representation.
4210 * char-ucs.h (MAKE_CHAR): Delete builtin support for
4211 `Vcharset_katakana_jisx0201'.
4213 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
4215 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4216 (Qisolated): New variable.
4217 (Qinitial): New variable.
4218 (Qmedial): New variable.
4219 (Qfinal): New variable.
4220 (Qvertical): New variable.
4221 (Qsmall): New variable.
4222 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4223 `Qvertical' and `Qsmall'.
4224 (Qmojikyo_pj_[1 .. 21]): New variable.
4225 (syms_of_mule_charset): Add new symbols `isolated', `initial',
4226 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4227 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4230 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
4232 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4233 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4234 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4236 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
4238 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4239 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4241 (Qjapanese_jisx0208_1990): New variable.
4242 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4243 (complex_vars_of_mule_charset): Add new coded-charset
4244 `japanese-jisx0208-1990'.
4246 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4247 (MIN_CHAR_JIS_X0208_1990): New macro.
4248 (MAX_CHAR_JIS_X0208_1990): New macro.
4250 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
4252 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4253 coded-charset is not found.
4255 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
4257 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4258 (Fdefine_char): Use `Fmake_char'.
4260 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
4262 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4263 (Vcharset_hiragana_jisx0208): Deleted.
4264 (Vcharset_katakana_jisx0208): Deleted.
4265 (Qideograph_daikanwa): New variable.
4266 (Qhiragana_jisx0208): Deleted.
4267 (Qkatakana_jisx0208): Deleted.
4268 (split_builtin_char): Split `ideograph-daikanwa'.
4269 (Fsplit_char): New implementation for UTF-2000.
4270 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4271 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4272 (complex_vars_of_mule_charset): Add new coded-charset
4273 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4274 `katakana-jisx0208'.
4276 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4277 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4278 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4279 (MIN_CHAR_DAIKANWA): New macro.
4280 (MAX_CHAR_DAIKANWA): New macro.
4282 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
4284 * data.c (Fstring_to_number): Don't recognize floating point if
4287 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
4289 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4291 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4293 * mule-charset.c (Qsquare): New variable.
4294 (to_char_code): Add `Qsquare'.
4295 (syms_of_mule_charset): Add new symbol `square'.
4297 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4299 * mule-charset.c (Qcircle): New variable.
4300 (to_char_code): Add `Qcircle'.
4301 (syms_of_mule_charset): Add new symbol `circle'.
4303 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4305 * mule-charset.c (Qfont): New variable.
4306 (to_char_code): Add `Qfont'.
4307 (syms_of_mule_charset): Add new symbol `font'.
4309 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4311 * mule-charset.c (Qsub): New variable.
4312 (to_char_code): Add `Qsub'.
4313 (syms_of_mule_charset): Add new symbol `sub'.
4315 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4317 * mule-charset.c (Fput_char_attribute): Convert each element of
4318 VALUE to GL position if ATTRIBUTE is a GR-set,
4320 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4322 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4323 coded-charset is a GR-set.
4325 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4327 * mule-charset.c (Fput_char_attribute): Check each element of
4328 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4330 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4332 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4334 (Qethiopic_ucs): New variable in UTF-2000.
4335 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4336 (complex_vars_of_mule_charset): Add new coded-charset
4337 `ethiopic-ucs' in UTF-2000.
4339 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4340 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4342 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4344 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4346 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
4348 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4351 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4353 * mule-charset.c (Vcharacter_variant_table): New variable.
4354 (Q_ucs): New variable.
4355 (Fchar_variants): New function.
4356 (Fput_char_attribute): Register `->ucs' value to
4357 `Vcharacter_variant_table'.
4358 (syms_of_mule_charset): Add new function `char-variants' and new
4360 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4362 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4364 * mule-charset.c (get_char_code_table): Allow negative character
4366 (put_char_code_table): Likewise.
4367 (Vcharacter_composition_table): New variable.
4368 (Q_decomposition): New variable.
4369 (Qwide): New variable.
4370 (Qnarrow): New variable.
4371 (Qcompat): New variable.
4372 (QnoBreak): New variable.
4373 (Qsuper): New variable.
4374 (Qfraction): New variable.
4375 (to_char_code): New function.
4376 (Fget_composite_char): New function.
4377 (Fput_char_attribute): Register `->decomposition' value to
4378 `Vcharacter_composition_table'.
4379 (syms_of_mule_charset): Add new function `get-composite-char', new
4380 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4381 `super' and `fraction'.
4382 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4384 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4386 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4387 character; copy the return value.
4389 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4391 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4393 * mule-charset.c (range_charset_code_point): Must use make_int.
4394 (split_builtin_char): New function.
4396 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4398 * mule-charset.c (char_byte_table): Change name from
4399 "char-code-table" to "char-byte-table".
4400 (mark_char_code_table): New function.
4401 (char_code_table_equal): New function.
4402 (char_code_table_hash): New function.
4403 (char_code_table_description): New constant.
4404 (char_code_table): New type.
4405 (make_char_code_table): New function.
4406 (copy_char_code_table): New function.
4407 (get_char_code_table): Modify for `char_code_table' type.
4408 (put_char_code_table): Likewise.
4409 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4412 * char-ucs.h (char_code_table): New type.
4413 (XCHAR_CODE_TABLE): New macro.
4414 (XSETCHAR_CODE_TABLE): New macro.
4415 (CHAR_CODE_TABLE_P): New macro.
4416 (GC_CHAR_CODE_TABLE_P): New macro.
4417 (struct Lisp_Char_Code_Table): New structure.
4419 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4421 * mule-charset.c (Fmake_charset): Setup byte_offset for
4424 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
4426 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4429 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4431 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4434 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4436 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4437 charset, it is regarded as a charset.
4438 (put_char_attribute): New function in UTF-2000.
4439 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4440 charset, mapping-table of the charset is modified.
4441 (Fdefine_char): New function in UTF-2000.
4442 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4443 `Fput_char_attribute'.
4444 (syms_of_mule_charset): Add new function `define-char' and new
4445 symbol `ucs' in UTF-2000.
4446 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4448 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4450 * mule-charset.c (Fcharset_name): Define `byte_offset' in
4451 non-UTF-2000 configuration.
4453 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4455 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4456 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4458 * mule-charset.c (mark_charset): `cs->encoding_table' has been
4460 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4461 (Fset_charset_mapping_table): Likewise.
4463 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4464 (CHARSET_ENCODING_TABLE): Delete.
4465 (XCHARSET_ENCODING_TABLE): Delete.
4466 (charset_code_point): New interface.
4468 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4470 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4471 instead of `charset_get_byte1' and `charset_get_byte2'.
4473 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4474 (charset_get_byte2): Deleted.
4476 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4478 * char-ucs.h (SPLIT_CHAR): New inline function.
4479 (breakup_char_1): Use `SPLIT_CHAR'.
4481 * mule-charset.c (range_charset_code_point): New function.
4482 (charset_code_point): New function.
4484 * char-ucs.h (range_charset_code_point): New interface.
4485 (breakup_char_1): Use `range_charset_code_point'.
4487 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4489 * mule-charset.c (Fmake_charset): Delete unused local variable
4492 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4493 (breakup_char_1): Find a charset and code-point in
4494 `Vcharacter_attribute_table'.
4496 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4498 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4501 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4503 * mule-charset.c (Vcharacter_attribute_table): New variable.
4504 (Fchar_attribute_alist): New function.
4505 (Fget_char_attribute): New function.
4506 (Fput_char_attribute): New function.
4507 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4509 (syms_of_mule_charset): Add new function `char-attribute-alist',
4510 `get-char-attribute' and `put-char-attribute'.
4511 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4513 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
4515 * mule-charset.c (Fmake_charset): Just use
4516 `get_unallocated_leading_byte'.
4518 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4519 sets; don't use final-byte based number for private sets.
4521 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4523 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4526 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4528 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4531 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4533 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4534 of `CHAR_LEADING_BYTE' in UTF-2000.
4536 * insdel.c (find_charsets_in_bufbyte_string): Use
4537 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4538 (find_charsets_in_emchar_string): Likewise.
4540 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4541 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4543 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4544 (CHAR_CHARSET_ID): New macro.
4546 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4548 * chartab.c (get_char_table): Don't use type `Charset_ID' for
4549 charset-id - MIN_LEADING_BYTE.
4550 (put_char_table): Likewise.
4552 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4554 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4555 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4556 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4557 (CHARSET_ID_OFFSET): New macro.
4558 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4559 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4560 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4561 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4563 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4565 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4566 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4567 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4568 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4569 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4571 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4573 * mule-charset.c (next_allocated_leading_byte): New variable in
4575 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4576 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4577 (get_unallocated_leading_byte): Simply use
4578 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4579 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4582 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4583 (MAX_LEADING_BYTE_PRIVATE): New macro.
4584 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4585 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4587 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4589 * mule-charset.c (Fmake_charset): Allocate final-byte based
4590 charset-id for 94-set, 96-set and 94x94-set.
4592 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4594 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4596 (Fmake_charset): Likewise.
4597 (complex_vars_of_mule_charset): Modify the font registry of
4598 `ucs-bmp' not to match `Ethiopic-Unicode'.
4600 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4602 * mule-charset.c (complex_vars_of_mule_charset): Add font
4603 registory of `ucs-bmp'.
4605 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4607 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4608 coded-charsets in `default-coded-charset-priority-list' when
4609 breaking up a character.
4611 * mule-charset.c (Vcharset_latin_viscii): New variable.
4612 (Qlatin_viscii): New variable.
4613 (make_charset): Don't use `decoding_table'.
4614 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4616 (Fset_charset_mapping_table): New implementation.
4617 (syms_of_mule_charset): Add new symbol `latin-viscii'.
4618 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4619 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4620 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4621 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4622 charset `latin_viscii'.
4624 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4625 (CHARSET_TYPE_94X94): Change to 1 from 2.
4626 (CHARSET_TYPE_96): Change to 2 from 1.
4627 (CHARSET_TYPE_128): New macro.
4628 (CHARSET_TYPE_128X128): Change to 5 from 4.
4629 (CHARSET_TYPE_256): New macro.
4630 (CHARSET_TYPE_256X256): Change to 7 from 5.
4631 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4633 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4635 * text-coding.c (char_encode_shift_jis): Refer
4636 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4637 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4639 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4640 (char_byte_table_equal): New function in UTF-2000.
4641 (char_byte_table_hash): New function in UTF-2000.
4642 (char_byte_table_description): New constant in UTF-2000.
4643 (char_byte_table): New type in UTF-2000.
4644 (make_char_byte_table): New function in UTF-2000.
4645 (copy_char_byte_table): New function in UTF-2000.
4646 (make_char_code_table): New macro in UTF-2000.
4647 (get_char_code_table): New function in UTF-2000.
4648 (put_char_code_table): New function in UTF-2000.
4649 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4650 (charset_description): Add setting in UTF-2000.
4651 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4652 `CHARSET_TO_BYTE1_TABLE(cs)'.
4653 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4654 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4655 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4656 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4657 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4658 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4659 `CHARSET_TO_BYTE2_TABLE(cs)'.
4661 * char-ucs.h (char_byte_table): New type.
4662 (XCHAR_BYTE_TABLE): New macro.
4663 (XSETCHAR_BYTE_TABLE): New macro.
4664 (CHAR_BYTE_TABLE_P): New macro.
4665 (GC_CHAR_BYTE_TABLE_P): New macro.
4666 (struct Lisp_Char_Byte_Table): New structure.
4667 (get_char_code_table): New interface.
4668 (Emchar_to_byte_table): Deleted.
4669 (get_byte_from_character_table): Deleted.
4670 (struct Lisp_Charset): Add `encoding_table'; delete
4671 `to_byte1_table' and `to_byte2_table'.
4672 (CHARSET_ENCODING_TABLE): New macro.
4673 (CHARSET_TO_BYTE1_TABLE): Deleted.
4674 (CHARSET_TO_BYTE2_TABLE): Deleted.
4675 (XCHARSET_ENCODING_TABLE): New macro.
4676 (XCHARSET_TO_BYTE1_TABLE): Deleted.
4677 (XCHARSET_TO_BYTE2_TABLE): Deleted.
4679 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4681 * mule-charset.c (syms_of_mule_charset): Delete charset alias
4682 `vietnamese-viscii-*'.
4684 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4686 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4687 (Qvietnamese_viscii_upper): New variable.
4688 (Fdefine_charset_alias): New function.
4689 (syms_of_mule_charset): Add new function `define-charset-alias'.
4690 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4691 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4694 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
4696 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4697 (MAX_CHAR_OBS_94x94): New macro.
4698 (breakup_char_1): Support obsolete XEmacs-UCS private code space
4701 * mule-charset.c (put_byte_from_character_table): Change unit size
4703 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4705 (Fmake_reverse_direction_charset): Modify dummy argument of
4706 `make_charset' for non-UTF-2000 environment.
4708 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
4710 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4712 * mule-charset.c (destroy_byte_from_character_table): New macro.
4713 (latin_jisx0201_to_ucs): Deleted.
4714 (latin_iso8859_2_to_ucs): Deleted.
4715 (latin_iso8859_3_to_ucs): Deleted.
4716 (latin_iso8859_4_to_ucs): Deleted.
4717 (latin_iso8859_9_to_ucs): Deleted.
4718 (latin_viscii_lower_to_ucs): Deleted.
4719 (latin_viscii_upper_to_ucs): Deleted.
4720 (mark_charset): Mark `cs->decoding_table'.
4721 (Fcharset_mapping_table): Fix DOC-string.
4722 (Fset_charset_mapping_table): New function.
4723 (syms_of_mule_charset): Add nwe function
4724 `set-charset-mapping-table'.
4725 (complex_vars_of_mule_charset): Don't setup and use
4728 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
4730 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4733 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
4735 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4736 (Vcharset_katakana_jisx0208): New variable.
4737 (Qhiragana_jisx0208): New variable.
4738 (Qkatakana_jisx0208): New variable.
4739 (make_charset): Add new argument `byte_offset'.
4740 (charset_get_byte1): Modify for new coded-charset definition; use
4741 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4742 `XCHARSET_BYTE_OFFSET'.
4743 (Fmake_charset): Modify for `make_charset'.
4744 (Fmake_reverse_direction_charset): Likewise.
4745 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4746 `katakana-jisx0208'.
4747 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4748 `.' in font registry of charset `katakana-jisx0201',
4749 `latin-jisx0201', `vietnamese-viscii-lower' and
4750 `vietnamese-viscii-upper'; modify DOC-string of charset
4751 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4752 registry of charset `japanese-jisx0208' not to use font for JIS
4753 X0208:1990; add new charset `hiragana-jisx0208' and
4754 `katakana-jisx0208'.
4756 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4757 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4758 (struct Lisp_Charset): Add `byte_offset'.
4759 (CHARSET_BYTE_OFFSET): New macro.
4760 (XCHARSET_UCS_MIN): New macro.
4761 (XCHARSET_UCS_MAX): New macro.
4762 (XCHARSET_CODE_OFFSET): New macro.
4763 (XCHARSET_BYTE_OFFSET): New macro.
4764 (MIN_CHAR_HIRAGANA): New macro.
4765 (MAX_CHAR_HIRAGANA): New macro.
4766 (MIN_CHAR_KATAKANA): New macro.
4767 (MAX_CHAR_KATAKANA): New macro.
4768 (MAKE_CHAR): Modify for new coded-charset definition; use
4769 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4770 `XCHARSET_BYTE_OFFSET'.
4772 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4774 * mule-charset.c (CHAR96): Deleted.
4775 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4777 (latin_iso8859_2_to_ucs): Likewise.
4778 (latin_iso8859_3_to_ucs): Likewise.
4779 (latin_iso8859_4_to_ucs): Likewise.
4780 (latin_iso8859_9_to_ucs): Likewise.
4781 (latin_viscii_lower_to_ucs): Likewise.
4782 (latin_viscii_upper_to_ucs): Likewise.
4783 (latin_tcvn5712_to_ucs): Commented out.
4784 (make_charset): Change type of argument `decoding_table' from
4785 <Emchar*> to <Lisp_Object> [vector of characters].
4786 (Fmake_charset): Modify for `make_charset'.
4787 (Fmake_reverse_direction_charset): Likewise.
4788 (Fcharset_mapping_table): New function in UTF-2000.
4789 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4791 (complex_vars_of_mule_charset): Modify for type change of
4792 `*_to_ucs'; modify for `make_charset'.
4794 * char-ucs.h (struct Lisp_Charset): Change type of
4795 `decoding_table' from <Emchar*> to <Lisp_Object>.
4796 (MAKE_CHAR): Modify for new specification of `decoding_table'.
4798 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
4800 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4801 error with non-UTF-2000-Mule.
4803 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
4805 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4807 (Vcharset_chinese_cns11643_4): Likewise.
4808 (Vcharset_chinese_cns11643_5): Likewise.
4809 (Vcharset_chinese_cns11643_6): Likewise.
4810 (Vcharset_chinese_cns11643_7): Likewise.
4811 (Qchinese_cns11643_3): Likewise.
4812 (Qchinese_cns11643_4): Likewise.
4813 (Qchinese_cns11643_5): Likewise.
4814 (Qchinese_cns11643_6): Likewise.
4815 (Qchinese_cns11643_7): Likewise.
4816 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4817 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4818 and `chinese-cns11643-7' to lisp/mule/chinese.el.
4819 (complex_vars_of_mule_charset): Likewise.
4821 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
4823 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4825 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4826 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4828 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4830 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4832 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4833 (breakup_char_1): Likewise.
4835 * text-coding.c (char_encode_iso2022): Keep designated charsets if
4836 one of them includes the specified character.
4838 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4840 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4842 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4844 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4846 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4848 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4849 definition for non-UTF-2000 Mule.
4850 (latin_iso8859_3_to_ucs): Likewise.
4851 (latin_iso8859_4_to_ucs): Likewise.
4852 (latin_iso8859_9_to_ucs): Likewise.
4853 (latin_jisx0201_to_ucs): Likewise.
4854 (MIN_CHAR_THAI): Likewise.
4855 (MAX_CHAR_THAI): Likewise.
4856 (MIN_CHAR_GREEK): Likewise.
4857 (MAX_CHAR_GREEK): Likewise.
4858 (MIN_CHAR_HEBREW): Likewise.
4859 (MAX_CHAR_HEBREW): Likewise.
4860 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4861 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4862 (MIN_CHAR_CYRILLIC): Likewise.
4863 (MAX_CHAR_CYRILLIC): Likewise.
4865 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
4867 * char-ucs.h (breakup_char_1): Use
4868 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4869 thai-tis620 and katakana-jisx0201 area.
4871 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4873 * char-ucs.h (breakup_char_1): Use
4874 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4877 * text-coding.c (reset_encoding_stream): Fixed.
4878 (char_encode_ucs4): Delete `& 255'.
4880 * char-ucs.h (breakup_char_1): Use
4881 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4883 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4885 * file-coding.c (Fmake_coding_system): Don't set up
4886 `codesys->fixed.size'.
4887 (encode_coding_no_conversion): Don't refer
4888 `str->codesys->fixed.size'.
4890 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4892 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4893 (latin_a_char_to_byte1): Deleted.
4894 (latin_a_char_to_byte2): Deleted.
4896 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4898 * mule-charset.c (make_charset): Add new argument `ucs_min',
4899 `ucs_max' and `code_offset'.
4900 (charset_get_byte1): New implementation [delete specific charset
4901 depended implementations].
4902 (Fmake_charset): Modify for `make_charset'.
4903 (Fmake_reverse_direction_charset): Likewise.
4904 (complex_vars_of_mule_charset): Likewise.
4906 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4908 (CHARSET_UCS_MIN): New macro.
4909 (CHARSET_UCS_MAX): New macro.
4910 (CHARSET_CODE_OFFSET): New macro.
4911 (MAKE_CHAR): Delete charset depended definitions [except
4914 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
4916 * char-ucs.h (breakup_char_1): Use
4917 `Vdefault_coded_charset_priority_list' for C0-Controls,
4918 Basic-Latin, C1-Controls and Latin-1-Supplement area.
4920 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4922 * char-ucs.h (charset_get_byte1): New function.
4923 (XCHARSET_GET_BYTE1): Deleted.
4924 (charset_get_byte2): New function.
4925 (XCHARSET_GET_BYTE2): Deleted.
4926 (Vdefault_coded_charset_priority_list): New external variable.
4927 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4928 `Vdefault_preferred_coded_charset_list'.
4930 * mule-charset.c (charset_get_byte1): New function.
4931 (charset_get_byte2): New function.
4932 (Vdefault_coded_charset_priority_list): New variable.
4933 (vars_of_mule_charset): Add new variable
4934 `default-coded-charset-priority-list'.
4936 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4938 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4939 (XCHARSET_GET_BYTE2): New inline function.
4940 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4941 `XCHARSET_GET_BYTE2'.
4943 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4945 * mule-charset.c (make_charset): Initialize
4946 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4947 NULL if table is not defined.
4949 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4951 * text-coding.c (char_encode_shift_jis): Use
4952 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4953 `ucs_to_latin_jisx0201'.
4955 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4956 (ucs_to_latin_iso8859_2): Deleted.
4957 (ucs_to_latin_iso8859_3): Deleted.
4958 (ucs_to_latin_iso8859_4): Deleted.
4959 (ucs_to_latin_iso8859_9): Deleted.
4960 (ucs_to_latin_viscii_lower): Deleted.
4961 (ucs_to_latin_viscii_upper): Deleted.
4962 (ucs_to_latin_tcvn5712): Deleted.
4963 (make_charset): Add new argument `decoding_table'; set up
4964 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4965 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4966 `decoding_table' is defined in UTF-2000.
4967 (Fmake_charset): Modify for `make_charset'.
4968 (Fmake_reverse_direction_charset): Likewise.
4969 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4970 and `GENERATE_96_SET'.
4972 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4973 (ucs_to_latin_jisx0201): Deleted.
4974 (latin_iso8859_2_to_ucs): Deleted.
4975 (ucs_to_latin_iso8859_2): Deleted.
4976 (latin_iso8859_3_to_ucs): Deleted.
4977 (ucs_to_latin_iso8859_3): Deleted.
4978 (latin_iso8859_4_to_ucs): Deleted.
4979 (ucs_to_latin_iso8859_4): Deleted.
4980 (latin_iso8859_9_to_ucs): Deleted.
4981 (ucs_to_latin_iso8859_9): Deleted.
4982 (latin_viscii_lower_to_ucs): Deleted.
4983 (ucs_to_latin_viscii_lower): Deleted.
4984 (latin_viscii_upper_to_ucs): Deleted.
4985 (ucs_to_latin_viscii_upper): Deleted.
4986 (struct Lisp_Charset): Renamed `encoding_table' to
4987 `to_byte1_table'; add `to_byte2_table'.
4988 (CHARSET_DECODING_TABLE): New macro.
4989 (CHARSET_TO_BYTE1_TABLE): New macro.
4990 (CHARSET_TO_BYTE2_TABLE): New macro.
4991 (XCHARSET_DECODING_TABLE): New macro.
4992 (XCHARSET_TO_BYTE1_TABLE): New macro.
4993 (XCHARSET_TO_BYTE2_TABLE): New macro.
4994 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4996 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4997 don't use `ucs_to_*' tables.
4999 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
5001 * text-coding.c (Fmake_coding_system): Don't set up
5002 `codesys->fixed.size'.
5003 (encode_coding_no_conversion): Use `if' instead of `switch'.
5005 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5007 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
5009 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5010 (Fmake_charset): Modify for `make_charset'.
5011 (Fmake_reverse_direction_charset): Likewise.
5012 (complex_vars_of_mule_charset): Likewise.
5014 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
5016 * text-coding.c (char_encode_shift_jis): Use table
5017 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5019 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
5021 * text-coding.c (text_encode_generic): Use `if' instead of
5023 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5026 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5028 * text-coding.c (encode_coding_sjis): Deleted.
5029 (char_encode_shift_jis): New function.
5030 (char_finish_shift_jis): New function.
5031 (reset_encoding_stream): Set up `encode_char' and `finish' for
5032 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5033 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5034 (char_encode_utf8): Treat `eol_type'.
5036 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5038 * file-coding.c (decode_coding_iso2022): Use
5039 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5041 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5043 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5046 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5048 * char-lb.h (CHAR_COLUMNS): New macro.
5050 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
5052 * text-coding.c (char_encode_ucs4): New function.
5053 (char_finish_ucs4): New function.
5054 (encode_coding_ucs4): Deleted.
5055 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5056 (text_encode_generic): Delete local variable `charset' and `half'.
5057 (ucs_to_mule_table): Deleted.
5058 (mule_to_ucs_table): Deleted.
5059 (Fset_ucs_char): Deleted.
5060 (ucs_to_char): Deleted.
5061 (Fucs_char): Deleted.
5062 (Fset_char_ucs): Deleted.
5063 (Fchar_ucs): Deleted.
5064 (decode_ucs4): Deleted.
5065 (mule_char_to_ucs4): Deleted.
5066 (encode_ucs4): Deleted.
5067 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5068 (decode_coding_utf8): Likewise.
5069 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5070 (char_encode_iso2022): Fixed.
5071 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5072 `Fset_char_ucs' and `Fchar_ucs'.
5073 (complex_vars_of_file_coding): Don't initialize
5074 `ucs_to_mule_table'.
5076 * objects-tty.c (tty_initialize_font_instance): Don't use
5079 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5082 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5083 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5085 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5086 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5087 (emchar_string_displayed_columns): Likewise.
5089 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5090 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5091 (string_column_at_point): Likewise.
5092 (Fmove_to_column): Likewise.
5094 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5095 `encoding_table' and `decoding_table'.
5096 (CHARSET_REP_BYTES): Deleted.
5097 (XCHARSET_REP_BYTES): Deleted.
5098 (XCHARSET_COLUMNS): Deleted.
5099 (CHAR_COLUMNS): New macro.
5100 (lookup_composite_char): Deleted unconditionally.
5101 (composite_char_string): Likewise.
5103 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
5105 * char-ucs.h (Emchar_to_byte_table): New type.
5106 (get_byte_from_character_table): New function interface.
5107 (Vcharset_latin_jisx0201): New variable.
5108 (latin_jisx0201_to_ucs): New variable.
5109 (ucs_to_latin_jisx0201): New variable.
5110 (Vcharset_latin_iso8859_2): New variable.
5111 (latin_iso8859_2_to_ucs): New variable.
5112 (ucs_to_latin_iso8859_2): New variable.
5113 (Vcharset_latin_iso8859_3): New variable.
5114 (latin_iso8859_3_to_ucs): New variable.
5115 (ucs_to_latin_iso8859_3): New variable.
5116 (Vcharset_latin_iso8859_4): New variable.
5117 (latin_iso8859_4_to_ucs): New variable.
5118 (ucs_to_latin_iso8859_4): New variable.
5119 (Vcharset_latin_iso8859_9): New variable.
5120 (latin_iso8859_9_to_ucs): New variable.
5121 (ucs_to_latin_iso8859_9): New variable.
5122 (Vcharset_latin_viscii_lower): New variable.
5123 (latin_viscii_lower_to_ucs): New variable.
5124 (ucs_to_latin_viscii_lower): New variable.
5125 (Vcharset_latin_viscii_upper): New variable.
5126 (latin_viscii_upper_to_ucs): New variable.
5127 (ucs_to_latin_viscii_upper): New variable.
5128 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5129 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5130 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5131 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5132 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5133 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5134 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5135 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5136 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5137 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5139 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5140 (Vcharset_latin_viscii_upper): New variable.
5141 (make_byte_from_character_table): New function.
5142 (put_byte_from_character_table): New function.
5143 (get_byte_from_character_table): New function.
5144 (CHAR96): New macro.
5145 (ucs_to_latin_jisx0201): New variable.
5146 (latin_jisx0201_to_ucs): New variable.
5147 (ucs_to_latin_iso8859_2): New variable.
5148 (latin_iso8859_2_to_ucs): New variable.
5149 (ucs_to_latin_iso8859_3): New variable.
5150 (latin_iso8859_3_to_ucs): New variable.
5151 (ucs_to_latin_iso8859_4): New variable.
5152 (latin_iso8859_4_to_ucs): New variable.
5153 (ucs_to_latin_iso8859_9): New variable.
5154 (latin_iso8859_9_to_ucs): New variable.
5155 (ucs_to_latin_viscii_lower): New variable.
5156 (latin_viscii_lower_to_ucs): New variable.
5157 (ucs_to_latin_viscii_upper): New variable.
5158 (latin_viscii_upper_to_ucs): New variable.
5159 (ucs_to_latin_tcvn5712): New variable.
5160 (latin_tcvn5712_to_ucs): New variable.
5161 (Qlatin_viscii_lower): New variable.
5162 (Qlatin_viscii_upper): New variable.
5163 (syms_of_mule_charset): Set up new symbol
5164 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5165 (complex_vars_of_mule_charset): Set up new charset
5166 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5167 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5168 `ucs_to_<CHARSET>' tables.
5170 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
5172 * text-coding.c: New file.
5174 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
5176 * mule-charset.c (Fmake_char): Fix problem of 256-set.
5178 * char-ucs.h (Vcharset_ucs_bmp): New variable.
5179 (MAKE_CHAR): Modify for `ucs-bmp'.
5180 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5181 non-MULE characters of BMP.
5183 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
5185 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5188 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
5191 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5192 - Include character.h for `CHAR_ASCII_P'.
5194 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5196 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5197 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5199 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5200 (BYTE_C0_P): Likewise.
5201 (BYTE_C1_P): Likewise.
5202 (Lstream_get_emchar_1): Likewise.
5203 (Lstream_fput_emchar): Likewise.
5204 (Lstream_funget_emchar): Likewise.
5205 (copy_internal_to_external): Likewise.
5206 (copy_external_to_internal): Likewise.
5208 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5209 (BYTE_C0_P): Likewise.
5210 (BYTE_C1_P): Likewise.
5211 (Lstream_get_emchar_1): Likewise.
5212 (Lstream_fput_emchar): Likewise.
5213 (Lstream_funget_emchar): Likewise.
5214 (copy_internal_to_external): Likewise.
5215 (copy_external_to_internal): Likewise.
5217 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5218 (REP_BYTES_BY_FIRST_BYTE): Likewise.
5220 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5221 (BYTE_ASCII_P): Moved to mb-1byte.h.
5223 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
5225 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5227 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5228 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5229 (VALID_CHARPTR_P): Moved to mb-*byte.h.
5230 (VALIDATE_CHARPTR_BACKWARD): Likewise.
5231 (VALIDATE_CHARPTR_FORWARD): Likewise.
5232 (simple_charptr_emchar): Moved to mb-multibyte.h.
5233 (simple_set_charptr_emchar): Likewise.
5234 (simple_charptr_copy_char): Likewise.
5235 (non_ascii_charptr_emchar): Likewise.
5236 (non_ascii_set_charptr_emchar): Likewise.
5237 (non_ascii_charptr_copy_char): Likewise.
5238 (charptr_emchar): Moved to mb-*byte.h.
5239 (set_charptr_emchar): Likewise.
5240 (charptr_copy_char): Likewise.
5242 * mb-1byte.h, mb-multibyte.h: New files.
5244 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
5246 * mb-utf-8.h (MULTIBYTE): New macro.
5247 (MAX_EMCHAR_LEN): Moved from buffer.h.
5248 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5250 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5252 * mb-lb.h, multibyte.h: New files.
5254 * char-1byte.h (Charset_ID): Moved from buffer.h.
5255 (MIN_LEADING_BYTE): Likewise.
5256 (LEADING_BYTE_ASCII): Likewise.
5257 (NUM_LEADING_BYTES): Likewise.
5258 (CHARSETP): Likewise.
5259 (CHARSET_BY_LEADING_BYTE): Likewise.
5260 (XCHARSET_LEADING_BYTE): Likewise.
5261 (XCHARSET_GRAPHIC): Likewise.
5262 (XCHARSET_COLUMNS): Likewise.
5263 (XCHARSET_DIMENSION): Likewise.
5264 (CHAR_CHARSET): Likewise.
5265 (CHAR_LEADING_BYTE): Likewise.
5266 (BREAKUP_CHAR): Likewise.
5267 (Vcharset_ascii): Likewise.
5269 * buffer.h: Include multibyte.h unconditionally.
5270 (VALID_CHARPTR_P): Moved to multibyte.h.
5271 (ASSERT_VALID_CHARPTR): Likewise.
5272 (REAL_INC_CHARPTR): Likewise.
5273 (REAL_INC_CHARBYTIND): Likewise.
5274 (REAL_DEC_CHARPTR): Likewise.
5275 (INC_CHARPTR): Likewise.
5276 (INC_CHARBYTIND): Likewise.
5277 (DEC_CHARPTR): Likewise.
5278 (VALIDATE_CHARPTR_BACKWARD): Likewise.
5279 (VALIDATE_CHARPTR_FORWARD): Likewise.
5280 (charptr_n_addr): Likewise.
5281 (MAX_EMCHAR_LEN): Moved to mb-*.h.
5282 (simple_charptr_emchar): Moved to multibyte.h.
5283 (simple_set_charptr_emchar): Likewise.
5284 (simple_charptr_copy_char): Likewise.
5285 (non_ascii_charptr_emchar): Likewise.
5286 (non_ascii_set_charptr_emchar): Likewise.
5287 (non_ascii_charptr_copy_char): Likewise.
5288 (charptr_emchar): Likewise.
5289 (set_charptr_emchar): Likewise.
5290 (charptr_copy_char): Likewise.
5291 (charptr_emchar_n): Likewise.
5292 (Charset_ID): Moved to char-1byte.h.
5293 (Vcharset_ascii): Likewise.
5294 (CHAR_CHARSET): Likewise.
5295 (CHAR_LEADING_BYTE): Likewise.
5296 (LEADING_BYTE_ASCII): Likewise.
5297 (NUM_LEADING_BYTES): Likewise.
5298 (MIN_LEADING_BYTE): Likewise.
5299 (CHARSETP): Likewise.
5300 (CHARSET_BY_LEADING_BYTE): Likewise.
5301 (XCHARSET_LEADING_BYTE): Likewise.
5302 (XCHARSET_GRAPHIC): Likewise.
5303 (XCHARSET_COLUMNS): Likewise.
5304 (XCHARSET_DIMENSION): Likewise.
5305 (BREAKUP_CHAR): Likewise.
5307 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
5309 * character.h: Add document about interface for characters.
5311 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5312 (MAKE_CHAR): Delete comment about
5313 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5314 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5315 (BREAKUP_CHAR): Modify name of arguments.
5316 (CHAR_CHARSET): Modify name of argument.
5318 * buffer.h: Delete document about Emchar accessors.
5320 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
5322 * character.h (CHAR_INTP): Moved from buffer.h
5323 (CHAR_OR_CHAR_INTP): Likewise.
5324 (XCHAR_OR_CHAR_INT): Likewise.
5325 (CHECK_CHAR_COERCE_INT): Likewise.
5327 * buffer.h (CHAR_INTP): Moved to character.h
5328 (CHAR_OR_CHAR_INTP): Likewise.
5329 (XCHAR_OR_CHAR_INT): Likewise.
5330 (CHECK_CHAR_COERCE_INT): Likewise.
5332 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
5335 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5336 - Include char-1byte.h, char-lb.h or char-ucs.h.
5338 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5340 * buffer.h: Include character unconditionally.
5341 (valid_char_p): Moved to char-*.h.
5342 (non_ascii_valid_char_p): Moved to char-lb.h.
5344 * char-1byte.h, char-lb.h, char-ucs.h: New files.
5346 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
5348 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5349 in UTF-2000 because it is not ported yet and not to use
5350 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5351 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5352 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5354 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5355 (CHAR_ASCII_P): Moved from character.h.
5357 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5358 (CHAR_ASCII_P): Likewise.
5359 (CHAR_FIELD1_MASK): Deleted.
5360 (CHAR_FIELD2_MASK): Deleted.
5361 (CHAR_FIELD3_MASK): Deleted.
5362 (MAX_CHAR_BASIC_LATIN): New macro.
5363 (CHAR_FIELD1): Deleted.
5364 (CHAR_FIELD2_INTERNAL): Deleted.
5365 (CHAR_FIELD3_INTERNAL): Deleted.
5366 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5367 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5368 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5369 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5370 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5371 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5372 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5373 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5374 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5375 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5376 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5377 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5378 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5379 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5380 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5381 (MIN_CHAR_COMPOSITION): Deleted.
5382 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5383 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5385 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
5387 * buffer.h: Include mb-utf-8.h in UTF-2000.
5389 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5391 * mb-utf-8.h: New file.
5393 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
5395 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5398 * mule-charset.h, buffer.h (Charset_ID): New type.
5400 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
5402 * mule-canna.c (c2mu): Use `MAKE_CHAR',
5403 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5404 instead of `MULE_CHAR_PRIVATE_OFFSET',
5405 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5406 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5407 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5409 * character.h (Vcharset_japanese_jisx0212): New variable
5412 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
5414 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5415 (charset_by_attributes): Delete array about direction.
5416 (latin_a_char_to_charset): New variable in UTF-2000.
5417 (latin_a_char_to_byte1): New variable in UTF-2000.
5418 (latin_a_char_to_byte2): New variable in UTF-2000.
5419 (Qucs_bmp): New variable.
5420 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5422 (next_allocated_2_byte_leading_byte): Likewise.
5423 (non_ascii_set_charptr_emchar): Likewise.
5424 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5425 `CHARSET_TYPE_256X256' in UTF-2000; modify for
5426 `charset_by_attributes'.
5427 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5428 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5429 and `CHARSET_BY_LEADING_BYTE'.
5430 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5431 `utf-2000-version' to `vars_of_mule_charset'.
5432 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5433 define `leading-code-private-11' in UTF-2000; move setting of
5434 `utf-2000-version' from `syms_of_mule_charset'.
5435 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5438 * character.h (Charset_ID): New type.
5439 (LEADING_BYTE_UCS_BMP): New macro.
5440 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5441 (CHARSET_ID_OFFSET_94): New macro.
5442 (MIN_CHARSET_ID_PRIVATE_94): New macro.
5443 (MAX_CHARSET_ID_PRIVATE_94): New macro.
5444 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5446 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5447 (LEADING_BYTE_LATIN_JISX0201): Likewise.
5448 (CHARSET_ID_OFFSET_96): New macro.
5449 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5450 CHARSET_ID_OFFSET_96 and final-byte.
5451 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5452 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5453 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5454 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5455 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5456 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5457 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5458 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5459 (LEADING_BYTE_THAI_TIS620): Likewise.
5460 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5461 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5462 (CHARSET_ID_OFFSET_94x94): New macro.
5463 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5464 CHARSET_ID_OFFSET_94x94 and final-byte.
5465 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5466 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5467 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5468 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5469 (LEADING_BYTE_CHINESE_GB2312): Likewise.
5470 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5471 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5472 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5473 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5474 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5475 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5476 (CHARSET_TYPE_128X128): New macro.
5477 (CHARSET_TYPE_256X256): New macro.
5478 (XCHARSET_PRIVATE_P): Delete unconditionally.
5479 (charset_by_attributes): Delete array about direction.
5480 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5481 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5482 (MIN_CHAR_94): New macro.
5483 (MAX_CHAR_94): New macro.
5484 (MIN_CHAR_96): New macro.
5485 (MAX_CHAR_96): New macro.
5486 (MIN_CHAR_94x94): New macro.
5487 (MAX_CHAR_94x94): New macro.
5488 (MIN_CHAR_96x96): New macro.
5489 (MAX_CHAR_96x96): New macro.
5490 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5491 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5492 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5494 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5495 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5496 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5497 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5498 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5499 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5500 `XCHARSET_LEADING_BYTE' to make code-point.
5501 (latin_a_char_to_charset): New variable.
5502 (latin_a_char_to_byte1): New variable.
5503 (latin_a_char_to_byte2): New variable.
5504 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5505 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5506 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5508 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5509 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5510 (find_charsets_in_emchar_string): Likewise.
5511 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5513 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5515 (decode_coding_iso2022): Likewise.
5517 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5520 * redisplay.c (redisplay_text_width_emchar_string): Use
5521 `Charset_ID' instead of `unsigned char'.
5522 (redisplay_frame_text_width_string): Likewise.
5524 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5527 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5528 instead of `unsigned char'.
5529 (face_cachel_charset_font_metric_info): Likewise.
5531 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5532 (get_non_ascii_char_table_value): Likewise.
5533 (get_char_table): Likewise.
5534 (put_char_table): Likewise.
5535 (map_over_other_charset): Likewise.
5536 (map_char_table): Likewise.
5538 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5539 instead of `unsigned char'.
5541 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
5543 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5544 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5546 * mule-charset.c (leading_code_private_11): Don't define in
5549 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5550 in UTF-2000 because it is not ported yet and not to use
5551 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5553 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
5555 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5557 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
5559 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5562 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5563 of unsigned char to store leading-byte.
5565 * chartab.c (get_non_ascii_char_table_value): Don't use
5566 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5568 * file-coding.c (encode_coding_big5): Delete bogus implementation
5571 * character.h (LEADING_BYTE_*): Delete definition for
5573 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5574 (LEADING_BYTE_PREFIX_P): Deleted.
5575 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5576 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5577 (BUFBYTE_LEADING_BYTE_P): Deleted.
5578 (CHARSET_PRIVATE_P): Deleted unconditionally.
5579 (rep_bytes_by_first_byte): Deleted unconditionally.
5580 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5581 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5582 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5583 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5584 (CHAR_FIELD2): Deleted.
5585 (CHAR_FIELD3): Deleted.
5586 (MAKE_CHAR): Delete definition for non-UTF-2000.
5587 (BREAKUP_CHAR_1_UNSAFE): Deleted.
5588 (breakup_char_1): New implementation.
5589 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5590 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5592 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
5594 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5597 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
5599 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5600 (CHARSET_PRIVATE_P): Likewise.
5601 (XCHARSET_PRIVATE_P): Likewise.
5602 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5604 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5606 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5608 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
5610 * character.h (LEADING_BYTE_*): Changed in UTF2000.
5611 (NUM_LEADING_BYTES): Changed from 128 to 256.
5612 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5613 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5615 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5617 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5619 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5620 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5621 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5622 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5623 (Qchinese_cns11643_3): New variable in UTF2000.
5624 (Qchinese_cns11643_4): New variable in UTF2000.
5625 (Qchinese_cns11643_5): New variable in UTF2000.
5626 (Qchinese_cns11643_6): New variable in UTF2000.
5627 (Qchinese_cns11643_7): New variable in UTF2000.
5628 (syms_of_mule_charset): Define `chinese-cns11643-3',
5629 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5630 and `chinese-cns11643-7' in UTF2000.
5631 (vars_of_mule_charset): Initialize
5632 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5634 (complex_vars_of_mule_charset): Setup charset
5635 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5636 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5638 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5640 * mule-charset.c: Move setting for `leading-code-private-11' from
5641 `syms_of_mule_charset' to `vars_of_mule_charset'.
5643 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5645 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5646 and `NUM_LEADING_BYTES' in assert.
5648 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5650 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5652 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5653 `NUM_LEADING_BYTES' instead of 128.
5655 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
5657 * mule-charset.h (charset_by_leading_byte): Use
5658 `NUM_LEADING_BYTES' instead of 128.
5659 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5661 * mule-charset.c (charset_by_leading_byte): Use
5662 `NUM_LEADING_BYTES' instead of 128.
5663 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5665 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5668 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
5670 * mule-charset.c (syms_of_mule_charset): Update to
5673 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5675 * file-coding.c (encode_coding_sjis): New implementation for
5676 UTF2000. (decode_coding_sjis): Ditto.
5678 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
5680 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5681 Don't define in UTF2000.
5683 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5686 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5687 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5690 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
5692 * config.h.in (CHAR_IS_UCS4): New macro.
5694 * mule-charset.c (rep_bytes_by_first_byte): Modify for
5695 conventional MULE representation.
5696 (syms_of_mule_charset): Update to 0.3 (Imamiya).
5698 * mule-charset.h: Reverted to original.
5700 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5701 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5702 "mule-charset.h" if CHAR_IS_UCS4 is defined.
5704 * character.h: New file.
5706 * file-coding.c (Fmake_coding_system): Set 1 to
5707 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5709 (encode_coding_no_conversion): New implementation for UTF2000.
5711 * file-coding.h (struct Lisp_Coding_System): Add new member
5714 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
5716 * file-coding.c (decode_coding_iso2022): Code-point arguments of
5717 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5718 (encode_coding_iso2022): New implementation for UTF2000.
5720 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5722 * mule-canna.c (c2mu): New implementation for UTF2000.
5725 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5727 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5729 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5731 * file-coding.c (reset_encoding_stream): Set 0 to
5732 `str->iso2022.current_char_boundary' in UTF2000.
5733 (encode_utf8): Don't define in UTF2000.
5734 (encode_coding_utf8): New implementation for UTF-8 representation
5736 (complex_vars_of_file_coding): Define coding-system `utf-8'.
5738 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5740 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5742 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5744 (REP_BYTES_BY_FIRST_BYTE): Likewise.
5746 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5748 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5749 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5750 as UTF-8 in UTF2000.
5751 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5752 (non_ascii_valid_char_p): Don't define in UTF2000.
5753 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5754 (Lstream_get_emchar_1): Likewise.
5755 (utf-2000-version): New variable in UTF2000.
5757 * lread.c (read_escape): Add new reader `u'.
5759 * insdel.c (three_to_one_table): Don't define in UTF2000.
5760 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5761 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5763 (bytind_to_bufpos_func): Likewise.
5764 (buffer_mule_signal_inserted_region): Likewise.
5765 (vars_of_insdel): Don't initialize `three_to_one_table'.
5766 (init_buffer_text): Use `buf->text->mule_size' instead of
5767 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5770 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5771 UTF-8 representation in UTF2000.
5772 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5773 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5774 (decode_coding_iso2022): Don't define local variable `lb' in
5775 UTF2000; don't use LEADING_BYTE in UTF2000; use
5776 `DECODE_ADD_UCS_CHAR' in UTF2000.
5777 (convert_to_external_format): Decode as UTF-8 in UTF2000.
5779 * config.h.in (UTF2000): New macro.
5781 * buffer.h (struct buffer_text): Add new member `mule_size' and
5782 don't add `mule_shifter' and `mule_three_p' in UTF2000.
5783 (valid_char_p): Return always 1 in UTF2000.
5784 (MAX_EMCHAR_LEN): 6 in UTF2000.
5785 (three_to_one_table): Don't define in UTF2000.
5786 (real_bufpos_to_bytind): Modify for UTF-8 representation in
5788 (real_bytind_to_bufpos): Likewise.
5790 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5792 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5794 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5795 representation change.
5796 (Vutf_2000_version): New variable.
5797 (leading_code_private_11): New variable.
5798 (syms_of_mule_charset): Add new variables `utf-2000-version' and
5799 `leading-code-private-11'.
5801 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5802 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5803 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5804 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5805 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5806 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5807 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5808 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5809 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5810 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5811 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5812 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5813 (MIN_CHAR_GREEK): New macro.
5814 (MAX_CHAR_GREEK): New macro.
5815 (MIN_CHAR_CYRILLIC): New macro.
5816 (MAX_CHAR_CYRILLIC): New macro.
5817 (MIN_CHAR_HEBREW): New macro.
5818 (MAX_CHAR_HEBREW): New macro.
5819 (MIN_CHAR_THAI): New macro.
5820 (MAX_CHAR_THAI): New macro.
5821 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5822 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5823 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5824 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5825 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5826 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5827 (CHAR_FIELD2): New inline function.
5828 (CHAR_FIELD3): New inline function.
5829 (MULE_CHAR_PRIVATE_OFFSET): New macro.
5830 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5831 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5832 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5833 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5834 (MIN_CHAR_COMPOSITION): Likewise.
5835 (CHAR_LEADING_BYTE): Modified for character representation change.
5836 (MAKE_CHAR): Likewise.
5838 * lisp.h (Vcharset_latin_iso8859_1): New variable.
5839 (Vcharset_greek_iso8859_7): Likewise.
5840 (Vcharset_cyrillic_iso8859_5): Likewise.
5841 (Vcharset_hebrew_iso8859_8): Likewise.
5842 (Vcharset_thai_tis620): Likewise.
5843 (Vcharset_katakana_jisx0201): Likewise.
5845 2005-02-06 Vin Shelton <acs@xemacs.org>
5847 * XEmacs 21.4.17 is released
5849 2005-01-31 Ben Wing <ben@xemacs.org>
5852 Define assert_failed() always.
5854 Always define ABORT().
5856 2005-01-25 Ben Wing <ben@xemacs.org>
5859 * Makefile.in.in (%.o):
5860 Don't compile executable as Windows (-mwindows) under Cygwin.
5861 Semi-recent changes to Cygwin's executable-startup handling make
5862 it impossible to access the TTY this way.
5864 Don't use special linker file under Cygwin (cygwin.sc) except
5865 when non-PDUMP (even in this case it is highly questionable); you
5868 1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5869 5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5871 2005-01-29 Ben Wing <ben@xemacs.org>
5873 Port this: 2003-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5875 * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5877 2005-01-29 Ben Wing <ben@xemacs.org>
5879 * bytecode.c (optimize_compiled_function):
5881 * print.c (long_to_string):
5882 Add casts to avoid warning.
5885 Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5886 #### The better solution is to move the TIFF and JPEG code to
5889 * glyphs-msw.c (mswindows_xbm_instantiate):
5890 Define __STDC__ to avoid problems with compface.h.
5892 * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5894 * EmacsShell-sub.c (ABORT):
5895 * EmacsShell-sub.c (SuperClassRootGeometryManager):
5896 * EmacsShell-sub.c (RootGeometryManager):
5898 * EmacsShell.c (ABORT):
5899 * EmacsShell.c (EmacsShellUpdateSizeHints):
5900 * alloc.c (free_lcrecord):
5901 * alloca.c (i00afunc):
5902 * buffer.c (delete_from_buffer_alist):
5903 * buffer.c (MARKED_SLOT):
5904 * bytecode.c (execute_rare_opcode):
5905 * bytecode.c (optimize_byte_code):
5906 * bytecode.c (Ffetch_bytecode):
5907 * chartab.c (char_table_type_to_symbol):
5908 * chartab.c (Freset_char_table):
5909 * chartab.c (decode_char_table_range):
5910 * chartab.c (Fget_range_char_table):
5911 * chartab.c (check_valid_char_table_value):
5912 * chartab.c (map_char_table):
5913 * chartab.c (slow_map_char_table_fun):
5914 * chartab.c (chartab_instantiate):
5915 * cm.c (cmcheckmagic):
5916 * console-msw.c (DHEADER):
5917 * console.c (MARKED_SLOT):
5918 * data.c (finish_marking_weak_lists):
5919 * data.c (encode_weak_list_type):
5920 * debug.h (DASSERT):
5921 * device-gtk.c (gtk_init_device):
5922 * device-msw.c (mswindows_get_default_margin):
5923 * device-tty.c (tty_init_device):
5924 * device-x.c (get_device_from_display):
5925 * device-x.c (x_get_visual_depth):
5926 * doprnt.c (parse_doprnt_spec):
5927 * doprnt.c (get_doprnt_args):
5928 * dumper.c (pdump_get_indirect_count):
5929 * dumper.c (pdump_register_sub):
5930 * dumper.c (pdump_register_object):
5931 * dumper.c (pdump_register_struct):
5932 * dumper.c (pdump_dump_data):
5933 * dumper.c (pdump_reloc_one):
5934 * elhash.c (print_hash_table):
5935 * elhash.c (make_standard_lisp_hash_table):
5936 * elhash.c (hash_table_instantiate):
5938 * emacs.c (Fforce_debugging_signal):
5939 * emacs.c (sort_args):
5941 * emacs.c (assert_failed):
5942 * eval.c (throw_or_bomb_out):
5943 * eval.c (signal_1):
5946 * event-Xt.c (emacs_Xt_mapping_action):
5947 * event-Xt.c (Xt_process_to_emacs_event):
5949 * event-stream.c (check_event_stream_ok):
5950 * event-stream.c (Fadd_timeout):
5951 * event-stream.c (Fadd_async_timeout):
5952 * event-stream.c (Fdiscard_input):
5953 * event-stream.c (execute_internal_event):
5954 * event-stream.c (Frecent_keys):
5955 * event-stream.c (extract_this_command_keys_nth_mouse_event):
5956 * event-stream.c (lookup_command_event):
5957 * event-unixoid.c (poll_fds_for_input):
5959 * events.c (mark_event):
5960 * events.c (event_equal):
5961 * events.c (event_hash):
5962 * events.c (Fmake_event):
5963 * events.c (Fdeallocate_event):
5964 * events.c (event_chain_find_previous):
5965 * events.c (event_to_character):
5966 * events.c (format_event_object):
5967 * events.c (Fevent_type):
5968 * events.c (event_pixel_translation):
5969 * events.c (Fevent_properties):
5970 * extents.c (extent_in_region_p):
5971 * extents.c (print_extent):
5972 * extents.c (process_extents_for_insertion_mapper):
5973 * extents.c (report_extent_modification_mapper):
5974 * extents.c (glyph_layout_to_symbol):
5975 * faces.c (face_validate):
5976 * file-coding.c (eol_type_to_symbol):
5977 * file-coding.c (subsidiary_coding_system):
5978 * file-coding.c (Fcoding_system_type):
5979 * file-coding.c (Fcoding_system_property):
5980 * file-coding.c (mule_decode):
5981 * file-coding.c (mule_encode):
5982 * file-coding.c (encode_coding_ucs4):
5983 * file-coding.c (encode_coding_utf8):
5984 * file-coding.c (parse_iso2022_esc):
5985 * file-coding.c (encode_coding_iso2022):
5990 * fns.c (Fbase64_encode_region):
5991 * fns.c (Fbase64_encode_string):
5992 * fns.c (Fbase64_decode_region):
5993 * fns.c (Fbase64_decode_string):
5994 * font-lock.c (find_context):
5995 * font-lock.c (context_to_symbol):
5996 * frame-gtk.c (gtk_set_frame_pointer):
5997 * frame-gtk.c (gtk_update_frame_external_traits):
5998 * frame-x.c (x_wm_mark_shell_size_user_specified):
5999 * frame-x.c (x_wm_mark_shell_position_user_specified):
6000 * frame-x.c (x_wm_set_shell_iconic_p):
6001 * frame-x.c (x_wm_set_cell_size):
6002 * frame-x.c (x_wm_set_variable_size):
6003 * frame-x.c (x_wm_store_class_hints):
6004 * frame-x.c (x_wm_maybe_store_wm_command):
6005 * frame-x.c (x_initialize_frame_size):
6006 * frame-x.c (x_update_frame_external_traits):
6008 * frame.c (delete_frame_internal):
6009 * frame.c (mouse_pixel_position_1):
6010 * frame.c (change_frame_size_1):
6011 * free-hook.c (check_free):
6012 * free-hook.c (check_realloc):
6013 * free-hook.c (note_block_input):
6014 * free-hook.c (log_gcpro):
6015 * gccache-gtk.c (gc_cache_lookup):
6016 * glyphs-eimage.c (tiff_memory_write):
6017 * glyphs-gtk.c (gtk_finalize_image_instance):
6018 * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6019 * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6020 * glyphs-gtk.c (gtk_xpm_instantiate):
6021 * glyphs-gtk.c (gtk_unmap_subwindow):
6022 * glyphs-gtk.c (gtk_map_subwindow):
6023 * glyphs-gtk.c (gtk_button_redisplay):
6025 * glyphs-msw.c (init_image_instance_from_xbm_inline):
6026 * glyphs-x.c (init_image_instance_from_xbm_inline):
6027 * glyphs-x.c (extract_xpm_color_names):
6028 * glyphs-x.c (x_xpm_instantiate):
6029 * glyphs.c (get_image_instantiator_governing_domain):
6030 * glyphs.c (print_image_instance):
6031 * glyphs.c (image_instance_equal):
6032 * glyphs.c (image_instance_hash):
6033 * glyphs.c (encode_image_instance_type):
6034 * glyphs.c (make_image_instance_1):
6035 * glyphs.c (inherit_instantiate):
6036 * glyphs.c (image_instantiate):
6037 * glyphs.c (allocate_glyph):
6038 * glyphs.c (Fglyph_type):
6039 * glyphs.c (redisplay_subwindow):
6040 * glyphs.c (display_table_entry):
6041 * gtk-glue.c (xemacs_list_to_gtklist):
6042 * gtk-glue.c (xemacs_gtklist_to_list):
6043 * gtk-glue.c (xemacs_list_to_array):
6044 * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6045 * gutter.c (gutter_was_visible):
6046 * gutter.c (get_gutter_coords):
6047 * input-method-xlib.c (get_XIM_input):
6048 * insdel.c (bufpos_to_bytind_func):
6049 * insdel.c (bytind_to_bufpos_func):
6050 * insdel.c (move_gap):
6051 * intl.c (x_get_composed_input):
6052 * keymap.c (keymap_lookup_directly):
6053 * keymap.c (keymap_delete_inverse_internal):
6054 * keymap.c (ensure_meta_prefix_char_keymapp):
6055 * keymap.c (accessible_keymaps_mapper_1):
6056 * keymap.c (where_is_recursive_mapper):
6059 * lread.c (read_atom):
6060 * lstream.c (Lstream_delete):
6061 * lstream.c (make_lisp_buffer_stream_1):
6062 * macros.c (pop_kbd_macro_event):
6063 * malloc.c (malloc):
6065 * marker.c (bi_marker_position):
6066 * marker.c (set_bi_marker_position):
6067 * menubar-gtk.c (menu_descriptor_to_widget_1):
6068 * menubar-msw.c (prune_menubar):
6069 * menubar-x.c (set_frame_menubar):
6070 * mule-charset.c (get_unallocated_leading_byte):
6071 * mule-charset.h (CHAR_LEADING_BYTE):
6072 * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6073 * nt.c (init_environment):
6074 * nt.c (generate_inode_val):
6075 * ntproc.c (delete_child):
6076 * ntproc.c (_sys_read_ahead):
6077 * ntproc.c (create_child):
6078 * objects.c (color_instantiate):
6079 * objects.c (font_instantiate):
6080 * objects.c (face_boolean_instantiate):
6081 * print.c (printing_major_badness):
6082 * process-nt.c (nt_send_process):
6083 * process-unix.c (unix_send_process):
6084 * process.c (get_process):
6085 * ralloc.c (obtain):
6086 * ralloc.c (relinquish):
6087 * ralloc.c (relocate_blocs):
6088 * ralloc.c (resize_bloc):
6089 * ralloc.c (r_alloc_free):
6090 * ralloc.c (r_re_alloc):
6091 * ralloc.c (r_alloc_thaw):
6092 * ralloc.c (init_ralloc):
6093 * ralloc.c (Free_Addr_Block):
6094 * ralloc.c (r_alloc):
6095 * redisplay-gtk.c (gtk_output_display_block):
6096 * redisplay-msw.c (mswindows_output_display_block):
6097 * redisplay-output.c (get_next_display_block):
6098 * redisplay-output.c (get_cursor_size_and_location):
6099 * redisplay-output.c (redisplay_output_layout):
6100 * redisplay-output.c (redisplay_clear_region):
6101 * redisplay-tty.c (tty_output_display_block):
6102 * redisplay-x.c (x_output_display_block):
6103 * redisplay.c (add_propagation_runes):
6104 * redisplay.c (add_glyph_rune):
6105 * redisplay.c (create_text_block):
6106 * redisplay.c (add_margin_runes):
6107 * redisplay.c (create_left_glyph_block):
6108 * redisplay.c (create_right_glyph_block):
6109 * redisplay.c (create_string_text_block):
6110 * redisplay.c (regenerate_window):
6111 * redisplay.c (REGEN_INC_FIND_START_END):
6112 * redisplay.c (redisplay_frame):
6113 * redisplay.c (point_in_line_start_cache):
6116 * regex.c (re_compile_fastmap):
6117 * regex.c (re_match_2_internal):
6118 * regex.c (regerror):
6119 * scrollbar-gtk.c (gtk_scrollbar_loop):
6120 * scrollbar-gtk.c (scrollbar_cb):
6121 * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6122 * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6123 * scrollbar-x.c (x_update_scrollbar_instance_status):
6124 * scrollbar-x.c (x_scrollbar_loop):
6125 * scrollbar-x.c (x_update_frame_scrollbars):
6126 * search.c (search_command):
6127 * search.c (Fmatch_data):
6128 * select-x.c (motif_clipboard_cb):
6129 * signal.c (interrupt_signal):
6130 * specifier.c (specifier_add_spec):
6131 * specifier.c (specifier_instance_from_inst_list):
6132 * specifier.c (specifier_instance):
6134 * specifier.h (struct specifier_methods):
6135 * strftime.c (add_num_time_t):
6136 * sunplay.c (init_device):
6137 * symbols.c (Fsetplist):
6138 * symbols.c (do_symval_forwarding):
6139 * symbols.c (store_symval_forwarding):
6141 * symbols.c (Fbuilt_in_variable_type):
6142 * symbols.c (decode_magic_handler_type):
6143 * symbols.c (handler_type_from_function_symbol):
6144 * syntax.c (update_syntax_cache):
6145 * sysdep.c (init_baud_rate):
6146 * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6147 * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6148 * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6149 * toolbar.c (get_toolbar_coords):
6150 * ui-gtk.c (build_gtk_boxed):
6151 * ui-gtk.c (describe_gtk_arg):
6152 * ui-gtk.c (gtk_type_to_lisp):
6153 * ui-gtk.c (lisp_to_gtk_type):
6154 * ui-gtk.c (lisp_to_gtk_ret_type):
6155 * ui-gtk.c (lisp_to_flag):
6156 * unexnt.c (read_in_bss):
6157 * unexnt.c (map_in_heap):
6158 * window.c (real_window):
6159 * window.c (window_display_lines):
6160 * window.c (window_display_buffer):
6161 * window.c (set_window_display_buffer):
6162 * window.c (window_modeline_height):
6163 * window.c (unshow_buffer):
6164 * window.c (window_loop):
6165 * window.c (Fget_lru_window):
6166 * window.c (Fsplit_window):
6167 * window.c (Fset_window_configuration):
6168 * window.c (saved_window_index):
6169 * xgccache.c (gc_cache_lookup):
6170 abort() -> ABORT(). Eliminate preprocessor games with abort()
6171 since it creates huge problems in VC7, solvable only by including
6172 massive amounts of files in every compile (and not worth it).
6176 Inclusion of process.h does not need to be before lisp.h any more.
6177 Move later and remove comment about abort().
6179 2005-01-26 Arnaud Giersch <arnaud.giersch@free.fr>
6181 * regex.c (re_match_2_internal):
6182 Correctly initialize loop which clears uninitialized registers.
6184 2005-01-28 Vin Shelton <acs@xemacs.org>
6186 * sheap.c (more_static_core): Applied Ben's version of the long
6189 2005-01-24 Vin Shelton <acs@xemacs.org>
6191 * sheap.c (more_static_core): Reformatted printf string so
6192 gcc-3.3.3 will compile this on Cygwin.
6194 2004-02-22 Stephen J. Turnbull <stephen@xemacs.org>
6196 * console.c (function_key_map): Reference `key-binding'.
6198 * keymap.c (Vkey_translation_map): Improve docstring.
6200 2004-03-30 Zajcev Evgeny <zevlg@yandex.ru>
6202 * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6203 * window.c (window_loop): [fix] Take into account
6204 `allow-deletion-of-last-visible-frame' variable.
6205 * window.c (replace-buffer-in-windows): Ditto.
6207 2004-12-15 Stephen J. Turnbull <stephen@xemacs.org>
6209 * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6211 2005-01-20 Malcolm Purvis <malcolmp@xemacs.org>
6213 * event-gtk.c: Recognise AltGr as a valid modifier.
6215 2005-01-12 Ville Skyttä <scop@xemacs.org>
6217 * console-x.h: #include X11/keysym.h before xintrinsic.h.
6219 2005-01-13 Stephen J. Turnbull <stephen@xemacs.org>
6221 Fix backreference bug caught by test suite.
6223 * regex.c (regex_compile):
6224 Make backref duplicate internal register.
6226 2005-01-13 Stephen J. Turnbull <stephen@xemacs.org>
6228 Documentation, code clarification, and warning suppression.
6230 * regex.c (regex_compile):
6232 (re_match_2_internal):
6233 Improve comments and avoid redundant braces. [Most of the big hunk
6234 at l. 4710 is indentation; use diff -w to see the real changes.]
6235 (alt_match_null_string_p):
6236 (common_op_match_null_string_p):
6237 Avoid shadowing global on Mac OS X 10.4, at least.
6239 2004-09-08 Stephen J. Turnbull <stephen@xemacs.org>
6241 * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6242 introduced with shy groups fix). [Already applied, probably
6243 with the second "fix shy groups" patch of 2004-10-07.]
6245 2005-01-10 Steve Youngs <steve@sxemacs.org>
6247 From Andrey Slusar <anrays@gmail.com>:
6249 * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6251 2004-11-21 Malcolm Purvis <malcolmp@xemacs.org>
6253 * Makefile (RECURSIVE_MAKE): Removed.
6254 * Makefile (RECURSIVE_MAKE_ARGS): New. The new method for
6255 handling parallel builds.
6257 2004-09-08 Malcolm Purvis <malcolmp@xemacs.org>
6259 * Makefile.in.in: Enable support for parallel builds.
6261 2005-01-09 Steve Youngs <steve@sxemacs.org>
6263 From Andrey Slusar <anrays@gmail.com>:
6265 * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6266 FreeBSD version is >= 199701 _and_ < 600006.
6268 2005-01-06 Zajcev Evgeny <zevlg@yandex.ru>
6270 * scrollbar.c (compute_scrollbar_instance_usage):
6271 Only call device method compute_scrollbar_instance_usage() if it
6274 2004-12-05 Vin Shelton <acs@xemacs.org>
6276 * XEmacs 21.4.16 is released
6278 2004-12-04 Vin Shelton <acs@xemacs.org>
6280 * depend: Regenerated.
6282 2004-10-07 Stephen J. Turnbull <stephen@xemacs.org>
6284 * regex.c (re_match_2_internal): Map internal to external
6285 registers. Fixes bug identified by Steve Youngs 2004-09-30
6286 <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6288 2004-09-02 Yoshiki Hayashi <yoshiki@xemacs.org>
6290 * buffer.c (Frecord_buffer): Make sure the argument is buffer
6291 to fix a crash. Also, check the buffer is live and it
6292 really exists in buffer_list. If the buffer is not in the list,
6295 2004-09-08 Stephen J. Turnbull <stephen@xemacs.org>
6297 Fix shy groups by implementing recording of all groups for
6298 repetition and backtracking. Backport from 21.5.
6300 * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6301 external_to_internal_register, external_to_internal_register_size,
6302 and update comments for re_nsub.
6304 * regex.c (re_opcode_t): Update comments.
6305 (print_compiled_pattern): Ouput external_to_internal_register,
6306 external_to_internal_register_size, and re_ngroups for debugging.
6307 (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6308 (regex_compile): Update header comment.
6309 Ensure that all groups are recorded so that repeat matches and
6310 backtracking work correctly. Comment related warning for groups >
6312 (re_search_2): Construct map of API indexes (which count only
6313 nonshy groups) to internal register numbers, and keep it updated.
6315 2004-07-27 Malcolm Purvis <malcolmp@xemacs.org>
6317 * frame-gtk.c (gtk_make_frame_visible):
6318 * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6319 show/hide. This is what X uses and is prevents previously hidden
6320 widgets from suddenly reappearing.
6321 * gtk-xemacs.c (gtk_xemacs_paint):
6322 * gtk-xemacs.c (gtk_xemacs_draw):
6323 * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6325 * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6326 size and location changes so that they can be seen before the next
6327 idle event. Without this rapid changes to scrollbar properties
6330 2004-07-02 Malcolm Purvis <malcolmp@xemacs.org>
6333 * console-gtk.h (struct gtk_frame):
6334 * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6335 Add hash tables track tab_control callback data.
6336 Added #defines for GTK object data names.
6337 Declaration of gtk_widget_to_frame().
6338 * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6339 * frame-gtk.c (gtk_widget_to_frame): New.
6340 * frame-gtk.c (gtk_create_widgets):
6341 * frame-gtk.c (allocate_gtk_frame_struct):
6342 * frame-gtk.c (gtk_mark_frame):
6343 Manage frame callbakc hash tables.
6344 * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6345 * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6346 * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6348 * glyphs-gtk.c (gtk_widget_query_geometry): New
6349 * glyphs-gtk.c (gtk_register_gui_item): New
6350 * glyphs-gtk.c (gtk_add_tab_item): New
6351 * glyphs-gtk.c (gtk_tab_control_callback): New
6352 * glyphs-gtk.c (gtk_tab_control_instantiate): New
6353 * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6354 Use correct list when loading item.
6355 * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6356 Register new methods.
6357 * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6358 default size, for widgets.
6359 * gui-x.c: Improved comment.
6360 * menubar-gtk.c (__generic_button_callback): Use
6361 gtk_widget_to_frame instead of __get_channel.
6363 * ui-gtk.c: Use symbolic names for GTK object data.
6365 2004-06-23 Ilya N. Golubev <gin@mo.msk.ru>
6367 * s/usg5-4.h (NSIG): Define only inside emacs binary.
6369 2002-03-04 Stephen J. Turnbull <stephen@xemacs.org>
6371 * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6373 2004-06-16 Malcolm Purvis <malcolmp@xemacs.org>
6375 * malloc.c (morecore): siz is a long because in some architectures
6376 (eg ia-64) an int cannot hold the address range. Additional patch
6377 from the SuSe distribution.
6379 2004-06-13 Malcolm Purvis <malcolmp@xemacs.org>
6382 * malloc.c: lim_data is a long because in some architectures
6383 (eg ia-64) an int cannot hold the address range.
6384 * mem-limits.h: lim-data is a long. Linux uses getrlimit()
6385 instead of ulimit() because ulimit() always returns -1.
6387 2004-06-09 Stephen J. Turnbull <stephen@xemacs.org>
6389 * search.c: Reenable an ansync semaphore. Remove bogus comments.
6391 2004-06-11 David Kastrup <dak@gnu.org>
6393 * search.c (match_limit): Don't flag an error if match-data
6394 exceeding the allocated search_regs.num_regs gets requested, just
6397 2003-07-21 Malcolm Purvis <malcolmpurvis@optushome.com.au>
6399 * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6400 replace symbolic color entries with the real colors specified in
6401 xpm-color-symbols, before passing the XPM to gtk.
6402 * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6403 instead of a GTK specific field, so that it is used in by generic
6406 2004-05-05 Chuck Hines <chuck.hines@baesystems.com>
6408 * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6409 coredump from deref of NULL ptr (ExtData)
6411 2004-04-19 Jerry James <james@xemacs.org>
6413 * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6414 VALBITS to compute the location of the sign bit.
6415 * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6416 of VALBITS with EMACS_INT_MAX.
6417 * events.c (Fevent_timestamp): Ditto.
6418 * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6419 compute the halfway point to timestamp wraparound.
6420 * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6421 EMACS_INT_MIN instead of using VALBITS.
6422 * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6423 incorrect number with VALBITS.
6424 * fns.c (Frandom): Correct number of integer bits in docstring.
6425 Use INT_VALBITS instead of VALBITS to compute the denominator.
6426 * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6427 build random numbers.
6429 2004-03-23 Malcolm Purvis <malcolmpurvis@optushome.com.au>
6431 * event-gtk.c (gtk_event_to_emacs_event):
6433 * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6434 * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6435 * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6436 * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6437 * menubar-gtk.c (__activate_menu):
6438 * menubar-gtk.c (convert_underscores):
6439 * menubar-gtk.c (remove_underscores):
6440 * menubar-gtk.c (menu_convert):
6441 * menubar-gtk.c (menu_descriptor_to_widget_1):
6442 * menubar-gtk.c (menu_descriptor_to_widget):
6443 * menubar-gtk.c (menu_can_reuse_widget):
6444 * menubar-gtk.c (menu_create_menubar):
6445 * menubar-gtk.c (gtk_popup_menu):
6446 * menubar-gtk.c (Fgtk_build_xemacs_menu):
6447 Added support for Gtk menu bar and menu item mnemonics.
6449 2004-03-23 Malcolm Purvis <malcolmpurvis@optushome.com.au>
6451 * sysdll.c: (dll_function): Added support for finding symbols in
6452 Darwin shared libraries as well in Darwin bundles.
6453 * sysdll.c (image_for_address): New
6454 * sysdll.c (my_find_image): New
6455 * sysdll.c (search_linked_libs): New
6457 2004-03-23 Malcolm Purvis <malcolmpurvis@optushome.com.au>
6459 * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6460 return to GTK requires a different API to marshalling data to use
6462 * ui-gtk.c (lisp_to_gtk_ret_type): New.
6464 2004-03-08 Lutz Euler <lutz.euler@freenet.de>
6466 * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6468 2004-02-19 Stephen J. Turnbull <stephen@xemacs.org>
6470 * glyphs.c (process_image_string_instantiator):
6471 (Fset_console_type_image_conversion_list):
6472 Stop GCC from warning about shadowing of `exp'.
6474 * redisplay-x.c (x_output_string): Fix unsigned lossage.
6476 2004-02-19 Stephen J. Turnbull <stephen@xemacs.org>
6478 * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6480 2004-02-03 Vin Shelton <acs@xemacs.org>
6482 * glyphs.c (image_instance_layout): Remove pointless assertion.
6483 * regex.c (regex_grow_registers): Return type is void.
6485 2004-02-02 Vin Shelton <acs@xemacs.org>
6487 * XEmacs 21.4.15 is released
6489 2004-01-30 Glynn Clements <glynn.clements@virgin.net>
6491 * device-x.c (x_error_handler): Don't call stderr_out
6493 2003-11-07 Katsumi Yamaoka <yamaoka@jpl.org>
6495 * buffer.c (other-buffer): Clarify documentation of order of
6496 arguments for FSF Emacs.
6498 2003-10-11 Olivier Galibert <galibert@pobox.com>
6500 * window.c (Fdelete_window): Dirty the mirror structure _before_
6501 marking the window deleted.
6503 2003-09-15 Jerry James <james@xemacs.org>
6505 * event-msw.c (debug_mswin_messages): Conditionally compile
6506 messages missing from the Cygwin headers.
6508 2003-06-16 Stephen J. Turnbull <stephen@xemacs.org>
6510 * data.c (eq_with_ebola_notice): Fix typo in comment.
6511 (Ftrue_list_p): Improve docstring.
6513 2003-10-13 Stephen J. Turnbull <stephen@xemacs.org>
6515 * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6517 2003-09-27 Stephen J. Turnbull <stephen@xemacs.org>
6519 * search.c (trivial_regexp_p): Regexps containing "\{" are
6520 nontrivial. Thanks to Manfred Bartz for reporting the bug and
6521 Stefan Monnier for suggesting a diagnosis.
6523 2003-09-25 Stephen J. Turnbull <stephen@xemacs.org>
6525 * elhash.c (make-hash-table): Clarify use of :test #'equal.
6527 2003-09-12 Stephen J. Turnbull <stephen@xemacs.org>
6529 * search.c (Fsearch_forward):
6531 Document negative count.
6533 2003-09-13 Stephen J. Turnbull <stephen@xemacs.org>
6535 * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6537 2003-09-13 Martin Buchholz <martin@xemacs.org>
6539 * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6541 2003-09-15 Vin Shelton <acs@xemacs.org>
6543 * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6546 2003-09-12 Yoshiki Hayashi <yoshiki@xemacs.org>
6548 * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6549 (re_search_2): Match the first byte of Bufbyte, not Emchar.
6550 (re_match_2_internal): Use TRANSLATE instead of
6551 TRANSLATE_EXTENDED_UNSAFE. The latter was a hack to bypass
6552 non-ASCII char case conversion.
6554 2003-09-08 Mike Sperber <mike@xemacs.org>
6556 * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6557 RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6559 2003-06-14 Ilya N. Golubev <gin@mo.msk.ru>
6561 * .gdbinit (pobj): fix printing of symbol name.
6563 2003-08-01 Ilya N. Golubev <gin@mo.msk.ru>
6565 * frame-x.c (x_layout_widgets): When resizing is about to cause
6566 frame size slip, mark it for redisplay.
6568 2003-08-18 Jerry James <james@xemacs.org>
6570 * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6572 2003-09-03 Vin Shelton <acs@xemacs.org>
6574 * XEmacs 21.4.14 is released
6576 2003-08-15 Stephen J. Turnbull <stephen@xemacs.org>
6578 * config.h.in (REGEX_MALLOC): Make it configure'able.
6580 2003-08-14 Andrew Begel <abegel@CS.Berkeley.EDU>
6582 * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6584 * sysdll.c (dll_init):
6585 * sysdll.c (dll_open):
6586 * sysdll.c (dll_close):
6587 * sysdll.c (dll_function):
6588 * sysdll.c (dll_variable):
6589 * sysdll.c (dll_error):
6590 Add support for loading bundles using Darwin/MacOSX
6593 2003-08-12 Stephen J. Turnbull <stephen@xemacs.org>
6595 * process.c (start-process-internal): Document coding systems.
6597 2003-07-30 Jerry James <james@xemacs.org>
6599 * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6601 2003-07-31 René Kyllingstad <listmailxemacs@kyllingstad.com>
6603 * event-msw.c (mswindows_enqueue_mouse_button_event):
6604 * event-msw.c (mswindows_wnd_proc):
6605 enqueue button event when scrollwheel event isn't handled by
6606 mswindows_handle_mousewheel_event, such as when the scrollbars
6609 2003-07-29 Stephen J. Turnbull <stephen@xemacs.org>
6611 * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6613 2003-03-24 Stephen J. Turnbull <stephen@xemacs.org>
6615 * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6617 2003-03-21 Stephen J. Turnbull <stephen@xemacs.org>
6619 * regex.c (re_match_2_internal): Fix matching degenerate word
6622 2003-05-25 XEmacs Build Bot <builds@cvs.xemacs.org>
6624 * XEmacs 21.4.13 is released
6626 2003-03-20 Stephen J. Turnbull <stephen@xemacs.org>
6628 * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H):
6629 * lisp.h (<inttypes.h>):
6630 Cygwin defines these types in <cygwin/types.h>. Don't duplicate
6633 2003-03-15 Martin Buchholz <martin@xemacs.org>
6635 * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6636 Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6637 Result: "temacs can only be run in -batch mode."
6638 Fix: Check xemacs executable candidate for directory-ness.
6640 2003-03-03 Robert Pluim <rpluim@bigfoot.com>
6642 * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6643 they conflict with <sys/types.h>.
6645 2003-02-14 Martin Buchholz <martin@xemacs.org>
6647 * database.c: Berkeley DB wants __STDC__ to be defined.
6649 2003-02-13 Martin Buchholz <martin@xemacs.org>
6651 * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6653 2003-02-01 Martin Buchholz <martin@xemacs.org>
6655 * process-unix.c (unix_send_process): Fix C++ compile error.
6657 2003-02-25 Andrew Begel <abegel@cs.berkeley.edu>
6659 * Added .dylib as an acceptable shared library file extension
6660 * to support MacOSX.
6662 2003-02-01 Martin Buchholz <martin@xemacs.org>
6664 * EmacsFrameP.h (EmacsFramePart):
6665 Kludge to allow compiling with Motif1, but linking with Motif2.
6667 2003-01-28 Martin Buchholz <martin@xemacs.org>
6669 * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6672 2003-02-23 Stephen J. Turnbull <stephen@xemacs.org>
6674 * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6676 2003-02-06 Andrew Begel <abegel@CS.Berkeley.EDU>
6678 * sysdll.c: Included lisp.h to define needed alloca_array.
6680 2003-02-13 Martin Buchholz <martin@xemacs.org>
6682 Make XEmacs redisplay 10 times faster.
6683 If, that is, you're using a slow X connection and MoveOpaque.
6684 Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6685 Use compress_motion = TRUE.
6686 * EmacsFrame.c (emacsFrameClassRec):
6687 * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6688 * EmacsManager.c (emacsManagerClassRec):
6689 * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6691 2003-01-30 Vin Shelton <acs@xemacs.org>
6693 * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6695 2003-01-17 Stephen J. Turnbull <stephen@xemacs.org>
6697 * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6698 Patch by Martin Buchholz.
6700 2003-01-16 Stephen J. Turnbull <stephen@xemacs.org>
6702 * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6703 Thanks to icc for warning and Martin Buchholz for reporting.
6705 2003-01-29 Vin Shelton <acs@xemacs.org>
6707 Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6709 * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6710 remember to multiply by the element size.
6712 2003-01-15 Stephen J. Turnbull <stephen@xemacs.org>
6714 * XEmacs 21.4.12 "Portable Code" is released.
6716 2003-01-14 Sergey Okhapkin <sos@prospect.com.ru>
6718 * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6719 * s/cygwin.sc: new linker file.
6721 2003-01-14 Stephen J. Turnbull <stephen@xemacs.org>
6723 Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6725 * redisplay-x.c (x_output_string): Use X11-specified types.
6726 * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6727 * emacs.c (__free_hook): Use typeof with Intel compiler.
6728 * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6730 2003-01-08 Andy Piper <andy@xemacs.org>
6732 * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6733 reserve size during unexec().
6735 2003-01-07 Daiki Ueno <daiki@xemacs.org>
6737 * process-unix.c (unix_create_process): Don't let outchannel block.
6739 2003-01-05 Rick Rankin <rick_rankin@yahoo.com>
6741 * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6742 Needed for IsBadReadPtr().
6744 2003-01-03 Stephen J. Turnbull <stephen@xemacs.org>
6746 * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6748 2002-12-14 Ben Wing <ben@xemacs.org>
6750 * callint.c: Declaration error.
6752 * dumper.c (pdump_load): Warning fix.
6753 * process.c: GCPRO error.
6754 * glyphs.c (unmap_subwindow):
6755 * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6756 * event-stream.c (maybe_kbd_translate): Wrong argument to
6757 character_to_event().
6759 * alloc.c (garbage_collect_1):
6761 * emacs.c (debug_can_access_memory):
6762 * emacs.c (fatal_error_signal):
6763 * emacs.c (mswindows_handle_hardware_exceptions):
6766 * emacs.c (assert_failed):
6767 * emacs.c (syms_of_emacs):
6770 * print.c (std_handle_out_va):
6771 * print.c (write_string_to_stdio_stream):
6772 * print.c (write_fmt_string):
6773 * print.c (printing_badness):
6774 * print.c (printing_major_badness):
6775 * print.c (print_internal):
6776 * print.c (debug_print_no_newline):
6777 * print.c (debug_backtrace):
6778 Be more defensive in handling bad values when printing. Add code
6779 from trunk involving inhibit_non_essential_printing_operations.
6780 When going down or in debug_print(), don't do external conversion
6781 and such and try really, really hard when printing to avoid core
6782 dumping. Add force-debugging-signal, debug_break().
6784 2002-12-12 Stephen J. Turnbull <stephen@xemacs.org>
6786 * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6787 Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6789 2002-12-02 Greg Allen <greg_allen@westlb-systems.co.uk>
6791 * database.c: Fix open_database. Berkeley DB API has changed in
6792 4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6794 2002-11-26 Stephen J. Turnbull <stephen@xemacs.org>
6796 * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6798 2002-11-13 Stephen J. Turnbull <stephen@xemacs.org>
6800 * event-Xt.c (Xt_timeout):
6801 (Xt_timeout_callback):
6802 (emacs_Xt_add_timeout):
6803 (emacs_Xt_remove_timeout):
6804 (Xt_timeout_to_emacs_event):
6805 Turn completed_timeouts from a stack into a queue. Fixes
6806 deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6808 2002-11-07 Wolfram Gloger <wg@malloc.de>
6810 * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6811 * emacs.c (main): Assert that mmap'd allocation is disabled.
6813 2002-10-14 Andy Piper <andy@xemacs.org>
6815 * glyphs-widget.c (layout_query_geometry): add in fiddle
6816 factor. Include border text in width layout calculation.
6817 (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6819 2002-11-02 Stephen J. Turnbull <stephen@xemacs.org>
6821 * XEmacs 21.4.10 "Military Intelligence" is released.
6823 2002-10-17 Raymond Toy <toy@rtp.ericsson.se>
6825 * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was
6826 using the NAS private array SoundFileInfo that no longer exists in
6827 NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a
6828 and earlier. This is broken for some versions between 1.5a and
6831 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org>
6833 * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6835 * emacs.c (shut_down_emacs): Improve crash message.
6837 2002-10-09 Stephen J. Turnbull <stephen@xemacs.org>
6839 * file-coding.c (determine_real_coding_system): Check for coding
6840 cookie in first LINES_TO_CHECK lines (currently 2). Cater to
6841 shebangs and Python PEP 263.
6843 2002-10-08 Andy Piper <andy@xemacs.org>
6845 * glyphs-widget.c (layout_query_geometry): only resize dynamically
6846 if static sizes haven't been set.
6848 2002-08-30 Mike Alexander <mta@arbortext.com>
6850 * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6853 2002-10-03 Stephen J. Turnbull <stephen@xemacs.org>
6855 * callproc.c (child_setup): 21.4 doesn't have retry_close.
6857 2002-09-20 Mike Sperber <mike@xemacs.org>
6859 (This partially gets back my patch from 2002-07-20 without the
6861 * callproc.c (child_setup): Remove Ben's comment noting confusion
6862 over the file descriptors >= 3: close_process_descs() doesn't
6863 close those. Fix fd range to go up to MAXDESC-1 instead of 64.
6864 * process-unix.c (unix_create_process): Call
6865 begin_dont_check_for_quit to inhibit unwanted interaction (and
6866 thus breaking of X event synchronicity) in the child.
6868 2002-09-26 Golubev I. N. <gin@mo.msk.ru>
6870 * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6873 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu>
6875 * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6876 instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout,
6877 the xemacs process did not exit, but looped infinitely here. This
6880 2002-09-28 Stephen J. Turnbull <stephen@xemacs.org>
6882 * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6883 (find_context): Improve comments.
6885 * regex.c (re_compile_fastmap): Gratuitous #ifdef comment fixes.
6886 (re_match_2): An XCHAR_TABLE operation was missing.
6888 Many of the following changes were inspired by Andy Piper's (now
6889 obsolete) patch to make syntax-table text property lookup optional.
6893 * syntax.h (top level): Document semantics of syntax flags.
6894 * syntax.c (comstr_start, Fforward_comment): Improve comments.
6895 * syntax.c, syntax.h (top level): Document syntax cache better in
6898 [Instrument syntax caching (temporary change)]
6900 * syntax.h (enum syntax_cache_statistics_functions, struct
6901 syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6902 SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6903 * syntax.c (scan_words, Fforward_comment, scan_lists,
6904 Fbackward_prefix_characters):
6905 * font-lock.c (find_context):
6906 Use them to instrument syntax caching.
6907 * syntax.c (struct syntax_cache_statistics, scs_statistics,
6908 syntax_cache_statistics_function_names): New type and variables.
6909 * syntax.c (update_syntax_cache): Update and report statistics.
6911 [Major syntax cache optimizations]
6913 syntax.c (lookup_syntax_properties): Default off.
6915 * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6916 * syntax.c (update_syntax_cache):
6917 Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6919 [Minor syntax cache optimizations and code clarifications]
6921 * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6922 SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6923 SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6924 SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6925 SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6926 (Code clarification.)
6928 * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6929 scan_lists): Compute code from syncode, use Boolean macros instead
6930 of redundant masking operations. (Code clarification; any decent
6931 compiler can do this optimization.)
6933 * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6936 * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6937 PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6938 use F*_single_property_change instead of F*_extent_change.
6939 Currently F*_single_property_change is _much_ less efficient.
6941 * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6942 * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT): Initialize
6943 syntax_cache.object properly, don't leave Qt or Qnil.
6944 (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6945 * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6946 tests for Qt or Qnil.
6948 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org>
6950 * redisplay.c (point_in_line_start_cache):
6951 * extents.c (print_extent_1):
6954 * extents.c (Fset_extent_property): Document `syntax-table' property.
6956 * extents.h (Fnext_single_property_change): EXFUN it.
6958 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
6960 * search.c (clear_unused_search_regs): New static function.
6964 Use it. Fixes "stale match data" bug reported by Martin Stjernholm.
6965 Minor clarifications in comments.
6967 * regex.c (re_match_2_internal): Ensure no stale submatches.
6969 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
6971 * event-Xt.c (enqueue_focus_event): Add missing prototype.
6973 2002-08-29 Jerry James <james@xemacs.org>
6975 * lisp.h: structrures -> structures.
6977 2002-06-03 Andy Piper <andy@xemacs.org>
6979 * frame.c (frame_conversion_internal): add conversion appropriate
6980 for setting frame dimensions in pixels.
6982 * console.h (struct console_methods): add device-specific widget
6985 * emacs.c (main_1): initialize glyph vars.
6987 * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6988 (handle_focus_event_2): new function. Allow focus to
6989 be set to a particular window and widget.
6990 (enqueue_focus_event): new function. Create a
6991 synthetic focus event.
6992 (emacs_Xt_handle_magic_event): call
6993 handle_focus_event_2.
6995 * frame.c (Fset_frame_pixel_height): new function. Allow
6996 pixel-based sizing. Does the right thing on character-oriented
6998 (Fset_frame_pixel_width): ditto.
6999 (Fset_frame_pixel_size): ditto.
7000 (syms_of_frame): declare.
7002 * general-slots.h: add :vertically-justify and
7003 :horizontally-justify.
7005 * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7006 (mswindows_widget_border_width): new function.
7007 (mswindows_combo_box_instantiate): set border widths.
7008 (console_type_create_glyphs_mswindows): declare.
7011 (check_valid_justification): allow vertical and horizontal
7013 (widget_border_width): new function. Call device methods.
7014 (widget_instance_border_width): ditto.
7015 (logical_unit_height): new function. Determine the height of a
7016 logical-unit. Logical units are intended to provide grid-like
7017 layout for subcontrols in a layout. If the layout is
7018 :vertically-justify top then subcontrols will be positioned on
7019 logical-unit boundaries, thus allowing adjacent subcontrols to
7021 (widget_logical_unit_height): ditto for widgets.
7022 (redisplay_widget): misc cleanup.
7023 (widget_spacing): new function. Call device specific
7024 methods. Intended to be the default gap between adjacent widgets.
7025 (widget_query_geometry): use new spacing functions to determine
7026 appropriate geometry.
7027 (initialize_widget_image_instance): initialize horizontal and
7028 vertical justification.
7029 (widget_instantiate): use logica-units where appropriate for
7030 sizing large widgets.
7031 (button_query_geometry): use widget_instance_border_width.
7032 (tree_view_query_geometry): ditto.
7033 (tab_control_query_geometry): ditto.
7034 (edit_field_query_geometry): new function.
7035 (layout_update): pick up :justify, :horizontally-justify and
7036 :vertically-justify none of which worked previously. :justify is
7037 used as a fallback for both horizontal and vertical justification.
7038 (layout_query_geometry): use logical units to size appropriately.
7039 (layout_layout): ditto.
7040 (Fwidget_logical_to_character_width): new function. Allow users to
7041 convert from logical units to characters so that frame sizes can
7042 be set appropriately.
7043 (Fwidget_logical_to_character_height): ditto.
7044 (syms_of_glyphs_widget): declare.
7045 (image_instantiator_edit_fields): add edit_field_query_geometry.
7046 (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7047 :horizontally-justify.
7048 (specifier_vars_of_glyphs_widget): new function. Declare
7049 Vwidget_border_width which is not yet used.
7051 * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7052 (x_widget_border_width): new function.
7053 (x_widget_instantiate): create a sensible name for widgets.
7054 (console_type_create_glyphs_x): declare x_widget_border_width.
7056 * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7057 (struct Lisp_Image_Instance): add :vertically-justify and
7058 :horizontally-justify.
7059 (LAYOUT_JUSTIFY_TOP): new.
7060 (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7061 (ROUND_UP): new macro. Round argument up to next integral
7064 * redisplay-output.c (redisplay_output_layout): misc formatting.
7066 * symsinit.h: declare specifier_vars_of_glyphs_widget.
7068 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
7070 * XEmacs 21.4.9 "Informed Management" is released.
7072 2002-08-19 Andy Piper <andy@xemacs.org>
7074 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7077 * realpath.c (xrealpath): normalize drive spec also so that dir
7078 sep chars are not mixed on cygwin.
7080 2002-08-06 Jerry James <james@xemacs.org>
7082 * window.c (Fsplit_window): Count only half of the divider width
7083 against the left window when splitting horizontally.
7085 2002-06-24 Andy Piper <andy@xemacs.org>
7087 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7088 toolbar was cleared.
7090 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7091 function. Split out from mswindows_output_frame_toolbars.
7092 (mswindows_output_frame_toolbars): move clear pieces to
7093 mswindows_output_frame_toolbars.
7095 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7096 out from gtk_output_frame_toolbars.
7097 (gtk_output_frame_toolbars): move clear pieces to
7098 gtk_clear_frame_toolbars.
7100 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7101 the frame is cleared. How this ever worked before is a mystery.
7102 (x_output_frame_toolbars): Only output toolbars.
7103 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7105 * gutter.c (update_gutter_geometry):
7106 Mark frame layout changed.
7107 (update_frame_gutter_geometry, update_frame_gutters):
7108 Respect frame_layout_changed.
7110 * console.h (struct console_methods): add
7111 clear_frame_toolbars_method.
7113 * redisplay.c (redisplay_frame): call
7114 update_frame_toolbars_geometry and re-order update_frame_toolbars.
7116 * toolbar.h: declare update_frame_toolbars_geometry.
7118 * toolbar.c (update_frame_toolbars_geometry): new function. Split
7119 out from update_frame_toolbars. Call clear_frame_toolbars.
7120 (update_frame_toolbars): only output, do not change geometry.
7122 * redisplay.c: add frame_layout_changed.
7124 * redisplay.h: add frame_layout_changed.
7125 (CLASS_RESET_CHANGED_FLAGS): set it.
7126 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7127 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7128 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7130 * device.h (struct device): add frame_layout_changed.
7131 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7133 * frame.h (struct frame): add frame_layout_changed.
7134 (MARK_FRAME_LAYOUT_CHANGED): new.
7136 2002-06-30 Mike Alexander <mta@arbortext.com>
7138 * event-msw.c (mswindows_need_event): Don't wait for a new message
7139 if the queue is not empty. Suggested by Paul Moore.
7141 2002-06-12 Andy Piper <andy@xemacs.org>
7143 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7144 for printing on accurately.
7146 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
7148 * event-msw.c (mswindows_wnd_proc): Add a handler for the
7149 WM_ACTIVATE message. Make sure that the frame is visible if the
7150 window is visible. This seemss to fix the problem where XEmacs
7151 appears to freeze after switching desktops with certain virtual
7153 (debug_output_mswin_message): Added code to output message
7154 parameters for WM_WINDOWPOSCHANGED,
7155 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7157 2002-05-25 Andy Piper <andy@xemacs.org>
7159 * select-x.c (vars_of_select_x): Fix docstring of
7160 x-selection-strict-motif-ownership
7162 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
7164 * keymap.c (get_keymap):
7165 Add comment about do_autoload GCPROs own args.
7167 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
7169 * bytecode.c (execute_optimized_program): check_opcode ifdef
7170 ERROR_CHECK_BYTE_CODE.
7172 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
7174 Thanks to Ben Wing and Michael Sperber.
7176 * eval.c (Fcommand_execute):
7179 (Fmacroexpand_internal):
7180 (function_argcount):
7181 callint.c (Fcall_interactively):
7182 Add comment about do_autoload GCPROs own args.
7184 * (do_autoload): GCPRO both args as well as local Lisp_Object.
7186 * eval.c (Ffuncall): Extra braces to placate GCC.
7188 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
7190 * backtrace.h (grow_specpdl):
7192 * EmacsFrame.c (EmacsFrameSetValues):
7193 * eval.c (grow_specpdl):
7194 * ExternalShell.c (hack_event_masks_1):
7195 * glyphs-x.c (convert_EImage_to_XImage):
7196 (x_finalize_image_instance):
7197 * ralloc.c (page_size):
7199 * xgccache.c (gc_cache_hash):
7200 Fix unsigned comparison warnings.
7202 2002-07-29 Jerry James <james@xemacs.org>
7204 * lread.c (locate_file): Any nonnegative return value indicates
7205 success if MODE is nonnegative.
7207 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
7209 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7212 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
7214 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7216 * dumper.c (pdump_get_indirect_count):
7217 (pdump_scan_by_alignment):
7218 (pdump_dump_root_struct_ptrs):
7219 (pdump_dump_rtables):
7220 (pdump_dump_root_objects):
7222 * nas.c (WaveOpenDataForReading):
7223 * fns.c (print_bit_vector):
7224 * font-lock.c (SINGLE_SYNTAX_STYLE):
7225 * glyphs.c (check_for_ignored_expose):
7226 (find_matching_subwindow):
7228 * imgproc.c (get_histogram):
7229 * redisplay.c (point_in_line_start_cache):
7230 * redisplay-output.c (redisplay_unmap_subwindows):
7231 * symbols.c (defsymbol_massage_name_1):
7232 (defkeyword_massage_name):
7233 (deferror_massage_name_and_message):
7234 * redisplay-x.c (x_output_string):
7235 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7236 * frame.h (struct frame):
7237 * filelock.c (current_lock_owner):
7238 * doprnt.c (emacs_doprnt_1):
7239 * lisp.h (struct Lisp_Bit_Vector):
7243 2002-02-13 Ben Wing <ben@xemacs.org>
7245 * event-stream.c (reset_key_echo):
7246 * event-stream.c (reset_this_command_keys):
7247 * event-stream.c (execute_command_event):
7248 If console is dead as a result of C-x 5 0, then post-command stuff
7249 needs to be careful and do only non-console-specific stuff.
7251 2002-07-01 Mike Sperber <mike@xemacs.org>
7253 * process-unix.c (unix_send_process): Mark coding_outstream as
7254 non-open upon SIGPIPE.
7256 * event-stream.c (Fnext_event): Reorder switch cases to something
7259 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
7261 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7262 Don't bogusly reinitialize ascii_character property.
7264 2002-07-08 Mike Sperber <mike@xemacs.org>
7266 * process.c (Fstart_process_internal): Do error checking before we
7267 fork off the child, so the child can't muck with the state of the
7270 2002-07-08 Mike Sperber <mike@xemacs.org>
7272 * ralloc.c (init_ralloc): Allocate properly for pdump.
7274 2002-06-12 Andy Piper <andy@xemacs.org>
7276 * glyphs.c (query_string_geometry): check the string.
7278 * glyphs-widget.c (widget_logical_unit_height): cope with nil
7281 2002-06-17 Jerry James <james@xemacs.org>
7283 * sysdll.c: Remove RTLD_GLOBAL initialization.
7284 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7286 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
7288 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7290 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
7292 * sysdep.c (sys_rename): Make sys_rename work for the case where
7293 Windows rename sets errno to EACCES if target file exists.
7295 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
7297 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7298 Fix detection of metric units to work on Win95
7300 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
7302 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
7304 2002-04-25 Andy Piper <andy@xemacs.org>
7306 * redisplay.c (create_text_block): Remove extra comment trailer.
7308 2002-04-24 Andy Piper <andy@xemacs.org>
7310 * redisplay.c (create_text_block): Don't actually add propagation
7311 data if the line ends after we have added a glyph.
7313 2002-04-22 Andy Piper <andy@xemacs.org>
7315 * extents.c (extent_fragment_update): check for glyphs we have
7316 previously displayed.
7317 * extents.c (print_extent_1): warning removal.
7318 * extents.h: change prototype.
7319 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7320 widths correctly for wide glyphs.
7321 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7322 * redisplay.c (prop_type): add PROP_GLYPH.
7323 * redisplay.c (struct prop_block): add glyph type
7324 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7325 to the propagation data.
7326 * redisplay.c (create_text_block): if there is a glyph in the
7327 propagation data use it to salt extent_fragment_update.
7328 * redisplay.c (create_string_text_block): ditto.
7330 2002-04-13 Nix <nix@esperi.demon.co.uk>
7332 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7333 * redisplay-output.c (compare_runes): Compare them.
7334 * redisplay.c: Update copyright date.
7335 * redisplay.c (pos_data): Add need_baseline_computation field.
7336 * redisplay.c (add_glyph_rune): Update ascent, descent, and
7337 need_baseline_computation; zero yoffset. Set max_pixmap_height
7338 for all pixmaps, not just automatically positioned ones.
7339 * redisplay.c (calculate_yoffset): New, compute yoffset values.
7340 * redisplay.c (calculate_baseline): New, compute textual baseline.
7341 * redisplay.c (add_glyph_rune): Call them.
7342 * redisplay.c (create_text_block): Likewise.
7343 * redisplay.c (create_overlay_glyph_block): Likewise.
7344 * redisplay.c (add_margin_runes): Likewise.
7345 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7347 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7348 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7349 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7350 * redisplay-msw.c (mswindows_output_string): Likewise.
7351 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7352 * redisplay-gtk.c (gtk_output_display_block): Likewise.
7353 * redisplay-x.c (x_output_display_block): Likewise.
7355 2002-03-28 Ben Wing <ben@xemacs.org>
7357 * redisplay.c: Fixed bug in redisplay
7358 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7359 and down of the lines, since they're bigger than the line
7360 size. (It was seen most obviously when there's a horizontal scroll
7361 bar, e.g. do C-h a glyph or something like that.) The problem was
7362 that the glyph-contrib-p setting on glyphs was ignored even if it
7363 was set properly, which it wasn't until now.
7365 2002-04-24 Andy Piper <andy@xemacs.org>
7367 * lisp.h (Dynarr_end): Fix definition.
7369 2002-02-06 Adrian Aichner <adrian@xemacs.org>
7371 * redisplay.c (mark_redisplay): Remove call to
7372 update_frame_window_mirror.
7374 2001-11-15 Andy Piper <andy@xemacs.org>
7376 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7379 2002-02-13 Andy Piper <andy@xemacs.org>
7381 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7382 we did in fact enqueue the XM_MAPFRAME event.
7384 2002-01-15 Adrian Aichner <adrian@xemacs.org>
7386 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7387 to fix problem switching between virtual desktops under virtuawin
7388 virtual window manager.
7390 2001-07-30 Adrian Aichner <adrian@xemacs.org>
7392 * event-msw.c: Typo fix.
7393 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7394 magic XM_MAPFRAME event has been sent.
7396 2001-11-23 Andy Piper <andy@xemacs.org>
7398 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7400 2001-11-21 Andy Piper <andy@xemacs.org>
7402 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7403 mouse events outside the frame.
7405 2002-03-20 Andy Piper <andy@xemacs.org>
7407 * menubar-msw.c (mswindows_popup_menu): warning removal.
7408 * dialog-msw.c (dialog_popped_down): ditto.
7410 2001-12-11 Andy Piper <andy@xemacs.org>
7412 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7413 * dialog-msw.c (mswindows_make_dialog_box_internal): set
7415 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7416 * menubar-msw.c (mswindows_handle_wm_command): ditto.
7417 * menubar-msw.c (mswindows_popup_menu): ditto.
7419 2001-10-29 Andy Piper <andy@xemacs.org>
7421 * dialog-msw.c (handle_directory_dialog_box): quit if the user
7424 2002-01-03 Andy Piper <andy@xemacs.org>
7426 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7430 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
7432 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7433 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7434 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7435 Detect and handle case where machine is set up for metric units
7437 2002-04-02 Andy Piper <andy@xemacs.org>
7439 * dired-msw.c (mswindows_get_files):
7440 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7441 completely handled by XEmacs. Suggested by Thomas Vogler
7442 <mail@thomas-vogler.de>.
7444 2001-11-14 Andy Piper <andy@xemacs.org>
7446 * nt.c (REG_ROOT): change registry key to XEmacs.
7448 2002-04-27 Andy Piper <andy@xemacs.org>
7450 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7452 2002-04-26 Andy Piper <andy@xemacs.org>
7454 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7457 2002-03-14 Mike Alexander <mta@arbortext.com>
7459 * event-msw.c (mswindows_unwait_process): New, remove process from
7461 * process-nt.c (nt_finalize_process_data): Call
7462 mswindows_unwait_process
7463 * console-msw.h: Declare mswindows_unwait_process
7465 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
7467 * editfns.c (Fdecode_time):
7468 (Fformat_time_string):
7469 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
7470 (make_time): Warning elimination (change arg name).
7472 2001-11-24 Andy Piper <andy@xemacs.org>
7474 * window.c (Fsplit_window): Doc return type.
7476 2002-04-01 Andy Piper <andy@xemacs.org>
7478 * emacs.c (Fkill_emacs): Only output message box in interactive
7481 2002-04-26 Andy Piper <andy@xemacs.org>
7483 * config.h.in: pull in 21.5.x change to stop alloca warnings under
7486 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
7488 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
7491 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
7493 * XEmacs 21.4.8 "Honest Recruiter" is released.
7495 2002-05-07 Nix <nix@esperi.demon.co.uk>
7497 Supersedes 2002-04-17 patch.
7499 * process.h (PROCESS_LIVE_P): Use the process status as
7500 evidence of health, not the state of the input stream.
7501 (PROCESS_READABLE_P): Say if the process is readable
7502 from. (It may be dead nonetheless.)
7503 (CHECK_READABLE_PROCESS): Test for that condition.
7505 * process.c (create_process): Use PROCESS_READABLE_P.
7506 (read_process_output, set_process_filter): Likewise.
7508 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7509 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7511 This code is #if 0'd, this is not the time to add new functions:
7513 * process.c (Fprocess_readable_p): Report readability status.
7514 * process.c (Qprocess_readable_p): New, associated symbol...
7515 * process.c (syms_of_process): ... initialize it.
7517 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
7519 * XEmacs 21.4.7 "Economic Science" is released.
7521 2002-04-17 Nix <nix@esperi.demon.co.uk>
7523 * process.h (PROCESS_LIVE_P): Use the process status as
7524 evidence of health, not the state of the input stream.
7526 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
7528 * sysdep.c (sys_siglist): change "signum" to "signal"
7530 2001-04-21 Martin Buchholz <martin@xemacs.org>
7532 * s/darwin.h: New file.
7533 Thanks to Greg Parker <gparker@cs.stanford.edu>.
7535 2002-04-23 Andreas Jaeger <aj@suse.de>
7537 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7538 which use lib64 for 64-bit libs.
7539 (START_FILES): Likewise.
7541 2002-02-11 Mike Sperber <mike@xemacs.org>
7544 (x_IO_error_handler):
7545 (x_init_device): Temporarily keep device in static variable
7546 `device_being_initialized' so we can recover gracefully from
7547 internal XOpenDevice failure. (XOpenDevice is documented to
7548 return NULL on failure, but sometimes calls the IO error handler
7551 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
7553 * dired.c (Ffile_name_all_completions): Change documentation --
7554 remove reference to completion-ignored-extensions.
7555 * dired.c (vars_of_dired): Change documentation for
7556 completion-ignored-extensions -- remove reference to
7557 file-name-all-completions.
7559 2002-03-06 Jerry James <james@xemacs.org>
7561 * emodules.c (emodules_load): Fix multiple loading of same module.
7563 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
7564 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7565 RTLD_LAZY to avoid incorrect symbol binding when using nested
7566 shared libraries on Solaris.
7568 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
7570 * fileio.c (Ffind_file_name_handler): Improve docstring.
7572 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
7574 * fns.c (Fmapconcat): Improve docstring.
7576 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
7578 * device-gtk.c: Add prototype for
7579 emacs_gtk_selection_clear_event_handle.
7580 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7581 selection. Setup signal handler for "selection_clear_event"
7582 (emacs_gtk_selection_clear_event_handle).
7584 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7585 other applications owning the clipboard (based on
7586 x_handle_selection_clear).
7588 2001-12-23 William M. Perry <wmperry@gnu.org>
7590 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
7592 2002-01-04 Martin Buchholz <martin@xemacs.org>
7594 * keymap.c (define_key_alternate_name): Parenthesize EQ.
7596 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
7598 * XEmacs 21.4.6 "Common Lisp" is released.
7600 2001-12-16 Torsten Duwe <duwe@caldera.de>
7602 * search.c (Freplace_match): Add missing sub-expression functionality.
7604 * buffer.c (decode_buffer): Add a check for pointer type to
7605 decode_buffer, before gcc's CSE optimization reorders a
7606 dereference in front of the allow_string test.
7608 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
7610 * window.c (window_loop): Fix bug that sometimes prevented
7611 window_loop() from iterating across multiple devices. Also, at
7612 Ben's request, changed infloop-detecting code to abort() instead
7613 of silently terminating window_loop().
7615 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
7617 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7618 * editfns.c (make_time): New function.
7619 (Fencode_time): Use it instead of wasteful_word_to_lisp.
7620 * lisp.h (make_time): Prototype and comment it.
7621 * dired.c (wasteful_word_to_lisp): Deprecate.
7622 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7624 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
7626 * fileio.c (auto_save_1): Use current coding system, not
7629 2001-11-13 Ben Wing <ben@xemacs.org>
7632 * window.c (window_truncation_on):
7633 * window.c (syms_of_window):
7634 truncate-partial-width-windows should respect the buffer being
7635 displayed, like other redisplay vars.
7637 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
7639 * event-stream.c (Fread_key_sequence): save current buffer.
7641 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
7643 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7645 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
7647 * alloc.c (lcrecord_stats): Add space for types defined in modules.
7649 2001-10-26 Mike Alexander <mta@arbortext.com>
7651 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7653 2001-10-25 Andy Piper <andy@xemacs.org>
7656 * dialog-msw.c (handle_directory_proc): new function.
7657 (handle_directory_dialog_box): new fucntion.
7658 (handle_file_dialog_box): use new directory dialog support.
7659 (mswindows_make_dialog_box_internal): ditto.
7660 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7662 (mswindows_find_frame): make global.
7663 * fileio.c (Fexpand_file_name): build fix.
7664 * general-slots.h: add Qdirectory.
7665 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7667 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7668 cygwin not leaving win32 paths unchanged.
7669 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7670 cygwin runtime to do path conversion.
7671 (Fmswindows_shell_execute): fix cygwin handling of URLs.
7672 (syms_of_win32): add new function.
7673 * window.c (window_loop): build fix.
7675 2001-10-15 Andy Piper <andy@xemacs.org>
7677 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7679 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
7681 * XEmacs 21.4.5 "Civil Service" is released.
7683 2001-04-08 Danny Colascione <qtmstr@optonline.net>
7685 * glyphs-x.c: Force buffer-tab highlight update when moving the
7686 buffer, avoiding an ugly black border, used for keyboard focus
7687 indication, on a widget that can never have keyboard focus, the
7690 2001-08-30 Daiki Ueno <ueno@unixuser.org>
7692 * process-unix.c (unix_open_multicast_group): Remove too much
7693 conversion between host and network byte order.
7695 2001-09-10 Nix <nix@esperi.demon.co.uk>
7697 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7698 before replacing them.
7700 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7703 * src/window.c (undedicate_windows): Use it.
7704 * src/window.h: Add prototype.
7706 2001-09-17 Ben Wing <ben@xemacs.org>
7708 * fileio.c (normalize_filename):
7709 * fileio.c (Fexpand_file_name):
7710 Fix various C++ compile errors in Andy's recent code.
7712 * callint.c (Fcall_interactively):
7713 * editfns.c (Ftemp_directory):
7714 * editfns.c (Fuser_full_name):
7715 * emacs.c (argmatch):
7716 * lread.c (locate_file_map_suffixes):
7717 * redisplay-x.c (x_ring_bell):
7718 Fix sign-compare warnings.
7720 2001-09-08 Andy Piper <andy@xemacs.org>
7722 * fileio.c (normalize_filename): copied from nt.c
7723 * (Ffile_name_directory): enable win32 paths under cygwin.
7724 * (Ffile_name_nondirectory): ditto.
7725 * (directory_file_name): ditto.
7726 * (Fexpand_file_name): ditto.
7727 * (Ffile_truename): ditto.
7728 * (Fsubstitute_in_file_name): ditto.
7729 * (Ffile_name_absolute_p): ditto.
7730 * (Ffile_readable_p): ditto.
7732 2001-09-08 Andy Piper <andy@xemacs.org>
7734 * device-msw.c (mswindows_finish_init_device): remove dde
7736 * device-msw.c (mswindows_init_dde): factor out from
7737 mswindows_finish_init_device()
7738 * device-msw.c (init_mswindows_very_early): new function
7739 initialize but don't enable dde.
7740 * emacs.c (main_1): call init_mswindows_very_early.
7742 * event-msw.c (mswindows_dde_callback): only execute when we are
7744 * symsinit.h: declare init_mswindows_very_early.
7746 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7748 [sjt: This has been in 21.5 for months with no complaints.]
7750 * console.h (struct console_methods): Added flags member.
7751 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7752 (CONMETH_IMPL_FLAG):
7753 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7754 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7756 * device.c (window_system_pixelated_geometry): Use the above macros.
7758 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7759 implememntation flag.
7760 * device.h (DEVICE_DISPLAY_P): Use it.
7762 * frame.c (delete_frame_internal): Use the above macro.
7764 * redisplay.c (redisplay_device): Use it.
7765 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7766 (redisplay_frame): Ditto.
7768 * device-msw.c (mswindows_device_implementation_flags): Removed.
7769 (msprinter_device_implementation_flags): Removed.
7770 (console_type_create_device_mswindows): Removed references to
7771 implementation_flags methods, set implementation flags here.
7772 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7774 * device-gtk.c (gtk_device_implementation_flags): Removed method.
7775 (console_type_create_device_gtk): Removed method declaration.
7776 Added commented out statement which semantically matches the
7777 commented out statement in the above removed method.
7779 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
7781 The attached patch fixes a few warnings.
7783 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7784 * src/frame-gtk.c: guard against GNOME calls in GTK only
7785 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7786 * src/select-gtk.c: prototype lisp_to_time
7788 2001-06-08 Ben Wing <ben@xemacs.org>
7790 ------ gc-in-window-procedure fixes ------
7793 * alloc.c (struct post_gc_action):
7794 * alloc.c (register_post_gc_action):
7795 * alloc.c (run_post_gc_actions):
7796 * alloc.c (garbage_collect_1):
7797 Create "post-gc actions", to avoid those dreaded "GC during window
7798 procedure" problems.
7801 Abort, clean and simple, when GC in window procedure. We want
7802 to flush these puppies out.
7805 * glyphs-msw.c (finalize_destroy_window):
7806 * glyphs-msw.c (mswindows_finalize_image_instance):
7807 Use a post-gc action when destroying subwindows.
7810 Declare register_post_gc_action().
7813 * scrollbar-msw.c (unshow_that_mofo):
7814 Use a post-gc action when unshowing scrollbar windows, if in gc.
7816 * redisplay.c (mark_redisplay):
7817 Add comment about the utter evilness of what's going down here.
7819 ------ cygwin setitimer fixes ------
7821 * Makefile.in.in (sheap_objs):
7822 * Makefile.in.in (profile_objs):
7823 * Makefile.in.in (objs):
7824 Compile profile.c only when HAVE_SETITIMER.
7826 * nt.c (mswindows_sigset):
7827 * nt.c (mswindows_sighold):
7828 * nt.c (mswindows_sigrelse):
7829 * nt.c (mswindows_sigpause):
7830 * nt.c (mswindows_raise):
7831 * nt.c (close_file_data):
7835 Move setitimer() emulation to win32.c, because Cygwin needs it too.
7838 * profile.c (Fstart_profiling):
7839 * profile.c (Fstop_profiling):
7840 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
7841 instead of just plain setitimer().
7844 * signal.c (set_one_shot_timer):
7846 Define qxe_setitimer() as an encapsulation around setitimer() --
7847 call setitimer() directly unless Cygwin or MS Win, in which case
7848 we use our simulated version in win32.c.
7851 * systime.h (struct itimerval):
7852 * systime.h (ITIMER_REAL):
7853 Prototype mswindows_setitimer() and qxe_setitimer(). Long
7854 comment about "qxe" and the policy regarding encapsulation.
7857 * win32.c (setitimer_helper_proc):
7858 * win32.c (setitimer_helper_period):
7859 * win32.c (setitimer_helper):
7860 * win32.c (mswindows_setitimer):
7861 Move setitimer() emulation here, so Cygwin can use it.
7862 Rename a couple of functions and variables to be longer and more
7863 descriptive. In setitimer_helper_proc(), send the signal
7864 using either mswindows_raise() or (on Cygwin) kill(). If for
7865 some reason we are still getting lockups, we'll change the kill()
7866 to directly invoke the signal handlers.
7868 ------ windows shell fixes ------
7872 Comments about how these two files must die.
7874 * callproc.c (init_callproc):
7875 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7876 not just COMSPEC. (more correct and closer to FSF.) Don't
7877 force a value for SHELL into the environment. (Comments added
7878 to explain why not.)
7880 * nt.c (init_user_info):
7881 Don't shove a fabricated SHELL into the environment. See above.
7883 2001-06-01 Ben Wing <ben@xemacs.org>
7885 * Makefile.in.in (ldflags):
7886 eliminate that pesky "defaulting to 00401000" warning.
7890 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
7892 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7893 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7895 2001-04-24 Jerry James <james@xemacs.org>
7897 * faces.h: pass parameters to Fadd_spec_to_specifier in the
7900 2001-06-01 Ben Wing <ben@xemacs.org>
7902 * event-msw.c (debug_mswin_messages):
7903 conditionalize the messages that were causing compile errors.
7904 (if only macros could generate #ifdef statements ...)
7906 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
7908 * XEmacs 21.4.4 "Artificial Intelligence" is released.
7910 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
7912 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7914 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
7916 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7917 * process-unix.c (unix_canonicalize_host_name):
7918 sysdep.c (init_system_name):
7919 Use it to conditionally support IPv6 canonicalization.
7921 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
7924 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7926 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
7928 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7929 attempt is made to scroll when no scroll bar is available.
7931 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
7933 * input-method-motif.c (XIM_delete_frame): New callback.
7934 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
7935 got deleted from 21.4.3.)
7937 2001-06-01 Ben Wing <ben@xemacs.org>
7939 * nt.c (mswindows_utime):
7940 * nt.c (close_file_data):
7941 fix off-by-one-indirection error.
7943 2001-05-29 Adrian Aichner <adrian@xemacs.org>
7945 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
7946 because set_file_times() now takes Lisp_Object path, instead of
7948 * nt.c: Include buffer.h.
7949 * nt.c (convert_from_time_t): New.
7950 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
7951 not set mtime correctly.
7952 * nt.h: Declare mswindows_utime().
7953 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7954 path, instead of char*.
7955 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7957 2001-05-30 Ben Wing <ben@xemacs.org>
7961 (Stephen, just take all event-msw.c patches. This includes
7962 the "iconify" fix below.)
7965 * event-msw.c (mswindows_dequeue_dispatch_event):
7966 * event-msw.c (assert):
7967 * event-msw.c (emacs_mswindows_quit_p):
7968 * event-msw.c (debug_mswin_messages):
7969 * event-msw.c (debug_output_mswin_message):
7970 * event-msw.c (vars_of_event_mswindows):
7971 Fix yet more problems with C-g handling.
7972 Implement debug-mswindows-events.
7974 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7976 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7978 2001-05-23 Ben Wing <ben@xemacs.org>
7980 * event-msw.c (winsock_writer):
7981 * event-msw.c (winsock_closer):
7982 prior kludgy code was clobbering the buffer, thinking it was
7983 "unused" space to store an unneeded return value; instead, use
7984 the variable we've already got staring us in the face.
7986 2001-05-17 Andy Piper <andy@xemacs.org>
7988 * sysfile.h: don't assume that file attributes are boolean
7990 2001-05-23 Ben Wing <ben@xemacs.org>
7992 * device-msw.c (msprinter_init_device):
7993 signal an error rather than crash with an unavailable network
7994 printer (from Mike Alexander).
7997 * event-msw.c (struct winsock_stream):
7998 * event-msw.c (winsock_writer):
7999 * event-msw.c (winsock_closer):
8000 * event-msw.c (make_winsock_stream_1):
8001 cleanup headers. fix (hopefully) an error with data corruption
8002 when sending to a network connection.
8004 * fileio.c (Fexpand_file_name): Fix evil code that attempts
8005 to handle the ~user prefix by (a) always assuming we're referencing
8006 ourselves and not even verifying the user -- hence any file with
8007 a tilde as its first char is invalid! (b) if there wasn't a slash
8008 following the filename, the pointer was set *past* the end of
8009 file and we started reading from uninitialized memory. Now we
8010 simply treat these as files, always.
8012 * buffer.c (common_init_complex_vars_of_buffer): comment change.
8014 2001-05-19 Ben Wing <ben@xemacs.org>
8016 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8019 * process-nt.c (vars_of_process_nt):
8020 remove unused mswindows-quote-process-args. rec for 21.4.
8022 2001-05-12 Ben Wing <ben@xemacs.org>
8024 * event-msw.c (mswindows_dde_callback):
8025 * event-msw.c (mswindows_wnd_proc):
8026 eliminate cygwin warnings.
8028 2001-05-06 Ben Wing <ben@xemacs.org>
8032 * device-msw.c (print_dialog_worker):
8033 * device-msw.c (mswindows_handle_print_dialog_box):
8034 * device-msw.c (syms_of_device_mswindows):
8035 * dialog-msw.c (mswindows_make_dialog_box_internal):
8037 implement printing the selection when it's selected.
8039 2001-05-20 Drazen Kacar <dave@arsdigita.com>
8041 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8043 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8045 * lisp.h (EMACS_INT_MAX): This should be one bit less since
8046 EMACS_INT is signed.
8048 2001-04-15 Michael Lausch <mla@1012surf.net>
8050 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8051 gtk_widget_request_size() to give scrollbar >0 width for
8054 2001-05-30 William M. Perry <wmperry@gnu.org>
8056 * event-gtk.c: Check for buttons as modifier keys.
8058 2001-05-25 Craig Lanning <CraigL@Knology.net>
8061 Properly find MinGW's <process.h> inside Cygwin's restructured
8062 include directories. Don't try to include <cygwin/version.h>
8063 since we are dropping support for MinGW in versions of Cygwin
8066 Drop support for MinGW in versions of Cygwin before b21.
8068 Properly find MinGW's <process.h> inside Cygwin's restructured
8069 include directories.
8071 Drop support for MinGW in versions of Cygwin before b21.
8073 Even though a.out.h is no longer detected by configure, allow
8074 MinGW to use it until we figure out how to do the job with Win32.
8076 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
8078 * syntax.c (find_start_of_comment):
8079 Fix `unbalanced parentheses' bug when dealing with mixed comment
8080 styles in c++/java/etc. mode
8082 2001-05-29 Mike Alexander <mta@arbortext.com>
8084 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8085 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8087 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
8089 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8091 2001-03-31 Mike Sperber <mike@xemacs.org>
8093 * search.c (Freplace_match): Support FSF-style specification of
8094 match subexpression when applied to a buffer.
8096 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
8098 * event-stream.c (is_scrollbar_event): add missing semicolon
8100 2001-05-22 Isaac Hollander <ysh@mindspring.com>
8102 * Makefile.in.in: Use TAR macro instead of hardcoding
8103 tar. Allows use of GNU tar instead of system tar
8105 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
8107 * event-stream.c (is_scrollbar_event): add missing semicolon
8109 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
8111 * XEmacs 21.4.3 "Academic Rigor" is released.
8113 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
8115 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8117 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8119 * buffer.c (Vcase_fold_search): Remove obsolete
8120 comment about non ASCII case-fold-search. This
8121 bug has been fixed by case-table changes.
8123 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
8125 * event-msw.c: Restore include of events-mod.h.
8127 2001-04-22 zhaoway <zw@debian.org>
8129 * event-stream.c (is_scrollbar_event): Noop returning 0 if
8132 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
8134 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8136 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
8138 * mule-charset.c (Fmake_charset): Add missing else.
8140 2001-04-23 Ben Wing <ben@xemacs.org>
8142 * event-msw.c (FAKE_MOD_QUIT):
8143 * event-msw.c (mswindows_dequeue_dispatch_event):
8144 * event-msw.c (mswindows_wnd_proc):
8145 * event-msw.c (emacs_mswindows_quit_p):
8146 Get critical quit working.
8148 2001-05-05 Ben Wing <ben@xemacs.org>
8152 * device-msw.c (mswindows_get_default_margin):
8153 * frame-msw.c (mswindows_size_frame_internal):
8154 * frame-msw.c (msprinter_init_frame_1):
8155 * frame-msw.c (vars_of_frame_mswindows):
8156 Change top/bottom margin defaults to 0.5 inches.
8158 2001-05-01 Martin Buchholz <martin@xemacs.org>
8160 Fix link error with gcc 3.0 on Linux.
8161 * terminfo.c (UP): Remove.
8162 * terminfo.c (BC): Remove.
8163 * terminfo.c (PC): Remove.
8164 They weren't used, and in any case, these symbols should be
8165 defined in the *library*.
8167 2001-05-03 Martin Buchholz <martin@xemacs.org>
8169 * s/aix4.h: Fix crash with xlc -O3.
8170 Improve comment explaining how -O3 works.
8172 2001-04-15 Ben Wing <ben@xemacs.org>
8175 * event-stream.c (Fnext_event):
8176 * event-stream.c (is_scrollbar_event):
8177 * event-stream.c (execute_command_event):
8178 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8179 crash' problem. His fix introduces other problems. We filter
8180 out scrollbar events specifically, making them somewhat invisible
8181 to command-building, and not appearing in `this-command-keys'.
8182 More work is still needed (see comments in event-stream.c), but
8183 this fixes all the major problems.
8185 2001-04-20 Ben Wing <ben@xemacs.org>
8187 * .cvsignore: Added stuff for Windows.
8189 2001-04-28 Ben Wing <ben@xemacs.org>
8191 * buffer.c (Ferase_buffer):
8192 * editfns.c (buffer_insert1):
8193 * editfns.c (Finsert_before_markers):
8194 * editfns.c (Finsert_string):
8195 * editfns.c (Finsert_char):
8196 * editfns.c (Fdelete_region):
8197 * editfns.c (Fwiden):
8198 * editfns.c (Fnarrow_to_region):
8199 remove bogus lines setting zmacs_region_stays to 0.
8201 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
8203 * process-unix.c (unix_open_network_stream): If connect() fails
8204 invalidate file descriptor after closing it.
8206 2001-03-08 Mike Alexander <mta@arbortext.com>
8208 * event-msw.c (mswindows_need_event_in_modal_loop):
8209 Don't dispatch a message if we didn't get one.
8210 (mswindows_need_event):
8211 Terminate the correct process when one exits instead of the first
8212 one on Vprocess_list and look for process termination when in
8213 mswindows_protect_modal_loop.
8215 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
8217 * XEmacs 21.4.1 "Copyleft" is released.
8219 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
8221 * input-method-motif.c (XIM_delete_frame): New callback.
8222 (XIM_init_frame): Register it.
8224 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
8226 * XEmacs 21.4.0 "Solid Vapor" is released.
8228 2001-04-15 Ben Wing <ben@xemacs.org>
8230 * cmdloop.c (call_command_loop):
8231 Fix braino in bit-rotting code.
8233 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
8235 * extents.c (Fset_extent_endpoints): Force creation of extent info
8236 in buffer_or_string.
8238 * extents.c (process_extents_for_insertion_mapper): Correctly
8239 check for open-open zero-length extents.
8241 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
8243 * lisp.h: New typedefs Memory_count, Element_count.
8246 Sign-compare warning elimination: several unsigned -> signed.
8247 Based on work by Ben Wing <ben@xemacs.org>.
8249 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
8251 * XEmacs 21.2.47 "Zephir" is released.
8253 2001-04-02 Jan Vroonhof <jan@xemacs.org>
8255 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8257 2001-04-03 Mike Sperber <mike@xemacs.org>
8259 * search.c: Revert previous patch due because of release.
8261 2001-03-30 Ben Wing <ben@xemacs.org>
8264 Add missing killpg prototype.
8267 Add a comment about fixing problems when a new entry is added
8270 * frame-msw.c (mswindows_init_frame_1):
8271 Fix compile warnings.
8273 * menubar.c (vars_of_menubar):
8274 Provide `menu-accelerator-support' to indicate that we properly
8275 support %_ in menu specifications, so that package code can
8276 conditionalize on this (and remove %_ from menu specifications
8281 * scrollbar-msw.c (can_scroll):
8283 Fix handling of mouse wheel under Windows to follow standards --
8284 now scrolls window under pointer, not selected window.
8286 2001-03-31 Mike Sperber <mike@xemacs.org>
8288 * search.c (Freplace_match): Support FSF-style specification of
8289 match subexpression when applied to a buffer.
8291 2001-03-15 Martin Buchholz <martin@xemacs.org>
8293 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8294 function to modify KEYMAP, so map over a copy of the hash table.
8296 2001-03-21 Martin Buchholz <martin@xemacs.org>
8298 * XEmacs 21.2.46 "Urania" is released.
8300 2001-03-20 Dan Holmsand <dan@eyebee.com>
8302 * realpath.c (xrealpath): Make file-truename work with symlinks to
8303 /cygdrive paths on cygwin. Always lowercase drive-letters on
8305 (cygwin_readlink): Don't try to find canonical filename unless
8308 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
8310 * ChangeLog: Log GTK merge.
8316 Revert gratuitous whitespace changes from GTK merge.
8318 * emacs.c: Document end of complex #ifdef @ l. 1495.
8321 2001-03-12 Andy Piper <andy@xemacs.org>
8323 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8324 have to do likewise.
8326 2001-03-12 Andy Piper <andy@xemacs.org>
8328 * sysdep.c: we only support mingw now.
8330 2001-03-09 Andy Piper <andy@xemacs.org>
8332 * unexcw.c (copy_executable_and_dump_data_section): making approx
8333 overrun a warning only.
8335 2001-03-10 William M. Perry <wmperry@aventail.com>
8337 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8338 satisfy Stephen's identical-after-cpp plea.
8340 2001-03-02 Ben Wing <ben@xemacs.org>
8343 * cmds.c (Fforward_char):
8347 Augment documentation of the most common motion commands to make
8348 note of the shifted-motion support.
8350 2001-03-02 Ben Wing <ben@xemacs.org>
8352 * nt.c (mswindows_fstat):
8353 * nt.c (mswindows_stat):
8354 * search.c (boyer_moore):
8355 Fix compile warnings under Windows.
8357 * sysdep.c (sys_readdir):
8358 Fix buggy filename-conversion code under Mule.
8360 2001-03-09 William M. Perry <wmperry@aventail.com>
8382 * redisplay-output.c:
8388 The Great GTK Merge.
8395 * emacs-widget-accessors.c:
8409 * native-gtk-toolbar.c:
8420 The Great GTK Merge: new files.
8422 2001-02-26 Ben Wing <ben@xemacs.org>
8424 Reapplied Lstream change.
8426 2001-02-26 Ben Wing <ben@xemacs.org>
8428 Undid the last change, since it is more controversial than I
8429 thought. It should be back in at some point soon.
8431 2001-02-25 Ben Wing <ben@xemacs.org>
8434 * callproc.c (Fold_call_process_internal):
8435 * event-msw.c (ntpipe_slurp_reader):
8436 * event-msw.c (ntpipe_shove_writer):
8437 * event-msw.c (winsock_reader):
8438 * event-msw.c (winsock_writer):
8440 * file-coding.c (detect_eol_type):
8441 * file-coding.c (detect_coding_type):
8442 * file-coding.c (determine_real_coding_system):
8443 * file-coding.c (Fdetect_coding_region):
8444 * file-coding.c (decoding_reader):
8445 * file-coding.c (decoding_writer):
8446 * file-coding.c (mule_decode):
8447 * file-coding.c (Fdecode_coding_region):
8448 * file-coding.c (encoding_reader):
8449 * file-coding.c (encoding_writer):
8450 * file-coding.c (mule_encode):
8451 * file-coding.c (Fencode_coding_region):
8452 * file-coding.c (detect_coding_sjis):
8453 * file-coding.c (decode_coding_sjis):
8454 * file-coding.c (encode_coding_sjis):
8455 * file-coding.c (detect_coding_big5):
8456 * file-coding.c (decode_coding_big5):
8457 * file-coding.c (encode_coding_big5):
8458 * file-coding.c (detect_coding_ucs4):
8459 * file-coding.c (decode_coding_ucs4):
8460 * file-coding.c (encode_coding_ucs4):
8461 * file-coding.c (detect_coding_utf8):
8462 * file-coding.c (decode_coding_utf8):
8463 * file-coding.c (encode_coding_utf8):
8464 * file-coding.c (detect_coding_iso2022):
8465 * file-coding.c (decode_coding_iso2022):
8466 * file-coding.c (encode_coding_iso2022):
8467 * file-coding.c (decode_coding_no_conversion):
8468 * file-coding.c (encode_coding_no_conversion):
8469 * glyphs-x.c (write_lisp_string_to_temp_file):
8470 * gpmevent.c (tty_get_foreign_selection):
8473 * lstream.c (Lstream_flush_out):
8474 * lstream.c (Lstream_adding):
8475 * lstream.c (Lstream_write_1):
8476 * lstream.c (Lstream_write):
8477 * lstream.c (Lstream_raw_read):
8478 * lstream.c (Lstream_read_more):
8479 * lstream.c (Lstream_read):
8480 * lstream.c (Lstream_unread):
8481 * lstream.c (Lstream_fputc):
8482 * lstream.c (stdio_reader):
8483 * lstream.c (stdio_writer):
8484 * lstream.c (filedesc_reader):
8485 * lstream.c (filedesc_writer):
8486 * lstream.c (lisp_string_reader):
8487 * lstream.c (struct fixed_buffer_stream):
8488 * lstream.c (make_fixed_buffer_input_stream):
8489 * lstream.c (make_fixed_buffer_output_stream):
8490 * lstream.c (fixed_buffer_reader):
8491 * lstream.c (fixed_buffer_writer):
8492 * lstream.c (struct resizing_buffer_stream):
8493 * lstream.c (resizing_buffer_writer):
8494 * lstream.c (dynarr_writer):
8495 * lstream.c (lisp_buffer_reader):
8496 * lstream.c (lisp_buffer_writer):
8498 * lstream.h (lstream_implementation):
8499 * lstream.h (struct lstream):
8501 * process-nt.c (nt_send_process):
8502 * process-unix.c (unix_send_process):
8504 Correct Lstream lossage due to mixing of signed and unsigned
8505 quantities. All Lstream uses of size_t and ssize_t are now a
8506 single signed data type Lstream_data_count. This fixes problems
8507 under Windows with sending large quantities of data to a process,
8508 and may well fix other subtle bugs.
8510 2001-02-23 Martin Buchholz <martin@xemacs.org>
8512 * XEmacs 21.2.45 "Thelxepeia" is released.
8514 2001-02-21 Martin Buchholz <martin@xemacs.org>
8516 * lisp-union.h (XSETINT):
8519 Reverse previous change of 2001-02-06.
8521 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
8523 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8525 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8526 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8527 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8528 * regex.c (POS_AS_IN_BUFFER): removed
8529 * regex.c (re_search_2):
8530 * regex.c (re_match_2):
8531 Don't use an offset of 1 when calculating buffer positions, since
8532 `BI_BUF_BEGV' does it already.
8534 2001-02-18 Wim Dumon <wim@easics.be>
8536 * insdel.c (prepare_to_modify_buffer): Also check for
8537 supersession when clash-detection is enabled.
8539 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
8541 * regex.c (re_match_2_internal):
8542 Convert temp characters from 'const unsigned char' to 're_char'.
8543 Fix crashing bug with extended characters under mule.
8544 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8545 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8546 font-lock, pdump, and new syntax-table code.
8547 * syntax.c (find_start_of_comment):
8548 (find_end_of_comment):
8550 Fix crashing bugs involving moving beyond end of buffer.
8551 * syntax.c (find_start_of_comment):
8552 Fixed logic to allow proper detection of cases where the same
8553 character is used to end both a two-char comment start and a
8554 two-char comment end sequence. Fixes `(forward-comment -1)'.
8555 * syntax.c (find_start_of_comment):
8556 Return position just past last comment-end character for all cases
8557 (previously was only done for two-char comment-end sequences).
8558 * syntax.c (forward-comment):
8559 Take value returned from `find_end_of_comment', rather than
8561 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8562 Properly deal with BUFFERP (syntax_cache.object)
8564 2001-02-17 Martin Buchholz <martin@xemacs.org>
8566 * alloc.c (Fgarbage_collect):
8567 * alloc.c (make_bit_vector_from_byte_vector):
8568 -Wsign-compare-correctness.
8570 2001-02-16 Martin Buchholz <martin@xemacs.org>
8572 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8573 (XSETCHAR): Likewise.
8574 (XSETOBJ): Likewise.
8576 2001-02-15 Martin Buchholz <martin@xemacs.org>
8578 * mule-canna.c (canna-func-delete_previous):
8579 Rename to canna-func-delete-previous.
8581 2001-02-14 Martin Buchholz <martin@xemacs.org>
8583 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
8585 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
8587 * font-lock.c (find_context): Fix C++ compile errors introduced by
8590 2001-02-13 Martin Buchholz <martin@xemacs.org>
8592 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8593 pragma, but earlier ones barf on the same pragma.
8595 2001-02-06 Mike Sperber <mike@xemacs.org>
8597 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8598 `configure-mule-lisp-directory'.
8600 2001-02-12 Martin Buchholz <martin@xemacs.org>
8602 Make sure dump-id.c is compiled in the same way as other .c's.
8603 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8604 * dump-id.h: Remove.
8605 * emacs.c: Move dump-id.h into dumper.h.
8606 * dumper.h: Move dump-id.h into dumper.h.
8608 Use standard .c.o rule for building dump-id.o.
8609 Remove preprocessor flags from link command.
8610 Add dump-id.o to ${otherobjs} if PDUMP.
8612 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
8614 Port FSF 20.7 syntax table improvements.
8618 Fixups for new syntax table stuff.
8619 * dired.c: Include syntax.c.
8620 (Fdirectory_files): Initialize regex_match_object and
8622 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8623 and Fget_char_property.
8625 Use ported FSF 20.7 syntax table improvements.
8630 2001-02-09 Martin Buchholz <martin@xemacs.org>
8632 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8633 Unixware's enum boolean from sys/types.h.
8635 2001-02-10 Martin Buchholz <martin@xemacs.org>
8637 Fix support for building with latest Purify.
8638 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8639 (PURIFY_FLAGS): Likewise.
8641 2001-02-09 Martin Buchholz <martin@xemacs.org>
8643 * fileio.c (lisp_string_set_file_times): New.
8644 * fileio.c (Fcopy_file): Use it.
8646 (copy-file filename non-ascii-filename t t)
8647 ==> No such file or directory, non-ascii-filename
8649 2001-02-10 Martin Buchholz <martin@xemacs.org>
8651 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8652 USHRT_MAX seems clearer than ~0 anyways.
8654 2001-02-09 Martin Buchholz <martin@xemacs.org>
8656 dumper improvements. Inspired by Olivier.
8657 * dumper.c (pdump_max_align): New.
8658 * dumper.c (pdump_add_entry): Use pdump_max_align.
8659 * dumper.c (pdump_get_entry_list): Likewise.
8660 * dumper.c (pdump_scan_by_alignment): Likewise.
8661 Don't iterate through unnecessary alignments.
8662 * dumper.c (pdump_file_get): No need to align result of malloc().
8663 * dumper.c (pdump_mallocadr): Remove.
8664 The result of malloc() is guaranteed to be maximally aligned.
8665 * dumper.c: s/elmt/elt/g;
8666 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8667 * dumper.c (pdump_alert_undump_object): Likewise.
8668 * dumper.c (pdump_align_table):
8669 Don't support alignments > 64.
8670 Store ALIGNOF's, not shift counts, in table.
8672 2001-02-09 Martin Buchholz <martin@xemacs.org>
8674 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8675 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8676 * systime.h: Use HAVE_UTIME.
8677 * sysdep.c (struct utimbuf): Remove.
8678 * sysdep.c (set_file_times): Prefer utime() to utimes().
8679 * config.h.in (HAVE_UTIME): New.
8680 * config.h.in (HAVE_UTIME_H): Remove.
8681 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8683 2001-02-09 Martin Buchholz <martin@xemacs.org>
8685 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8687 2001-02-08 Martin Buchholz <martin@xemacs.org>
8689 * s/irix6-0.h: Use the standard system memmove, not bcopy.
8691 2001-02-08 Martin Buchholz <martin@xemacs.org>
8693 * XEmacs 21.2.44 "Thalia" is released.
8695 2001-02-06 Martin Buchholz <martin@xemacs.org>
8697 Fixes crashes in kill-emacs on some systems.
8698 * process-unix.c (unix_kill_child_process):
8699 It's OK for kill() to fail with ESRCH.
8701 2001-02-07 Martin Buchholz <martin@xemacs.org>
8703 Contortions to make .gdbinit tricks work on most systems.
8704 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8705 * alloc.c (dbg_valmask): Make non-const.
8706 * alloc.c (dbg_typemask): Make non-const.
8707 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8708 * alloc.c (dbg_valbits): Make non-const.
8709 * alloc.c (dbg_gctypebits): Make non-const.
8710 * .gdbinit (decode_object): Make it work with AIX cc.
8712 2001-02-06 Martin Buchholz <martin@xemacs.org>
8714 * elhash.c (make_general_lisp_hash_table):
8715 Use simpler and more efficient calloc to clear entries.
8717 2001-02-07 Martin Buchholz <martin@xemacs.org>
8719 * window.c (window_scroll): Work around an AIX C compiler bug.
8720 Fixes 'scroll-up' does nothing problem with xlC.
8722 2001-02-05 Martin Buchholz <martin@xemacs.org>
8724 * .gdbinit: Remove obsolete comment.
8726 2001-01-31 Mike Alexander <mta@arbortext.com>
8728 * select.c (Fown_selection_internal): Set owned_p for device
8731 2001-02-01 Martin Buchholz <martin@xemacs.org>
8734 "not" cannot be used as a macro name as it is an operator in C++
8735 * config.h.in: Stop #defining `not'.
8736 * chartab.c (check_category_char): not ==> not_p
8737 * chartab.h: Likewise.
8738 * regex.c (re_match_2_internal): Likewise.
8740 2001-02-02 Martin Buchholz <martin@xemacs.org>
8742 * lisp-disunion.h: Fix up comments.
8744 2001-01-31 Martin Buchholz <martin@xemacs.org>
8746 * keymap.c (define_key_check_and_coerce_keysym):
8748 Support mouse-6 and mouse-7 bindings in the obvious way.
8750 2001-02-01 Martin Buchholz <martin@xemacs.org>
8752 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8754 2001-01-30 Martin Buchholz <martin@xemacs.org>
8756 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8757 Previous patch missed DEFVAR_INT_MAGIC.
8758 Make sure future DEFVAR_foo use correct types.
8759 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8760 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8761 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8762 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8763 * (DEFVAR_INT): Likewise.
8764 * redisplay.c (vertical_clip): Should be of type Fixnum.
8765 * redisplay.c (horizontal_clip): Likewise.
8766 * lisp.h (dump_add_opaque_int): New.
8767 (dump_add_opaque_fixnum): New.
8769 2001-01-29 Andy Piper <andy@xemacs.org>
8771 * glyphs-widget.c (check_valid_int_or_function): allow symbols
8772 since they can be eval'ed
8774 2001-01-29 Martin Buchholz <martin@xemacs.org>
8776 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8777 Oops, XEmacs redefines `class'. Use `typename' instead.
8779 2001-01-28 Martin Buchholz <martin@xemacs.org>
8781 * dumper.c: Fix C++ compile errors.
8783 2001-01-29 Martin Buchholz <martin@xemacs.org>
8785 * tparam.c: Use correct prototypes.
8787 2001-01-28 Martin Buchholz <martin@xemacs.org>
8789 * sysproc.h: #include util.h for NetBSD's openpty.
8791 2001-01-27 Martin Buchholz <martin@xemacs.org>
8793 More 64-bit correctness.
8794 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8795 Use a typedef `fixnum' for the type used for DEFVAR_INT.
8797 This finally finishes the 64-bit SGI port.
8798 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8799 * symbols.c: Fix up comments and type casts.
8800 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8801 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8802 * symeval.h (Fixnum): New type.
8803 * symeval.h (symbol_value_type): Fix up comment.
8819 * mule-canna.c: A million DEFVAR_INTs here...
8820 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8833 s/int/Fixnum/g in DEFVAR_INT declarations.
8835 2001-01-26 Martin Buchholz <martin@xemacs.org>
8837 Port pdump to SGI alignment-sensitive environment.
8838 Lisp Object sizeof methods now return aligned sizes. Rely on that.
8839 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8841 Define and use aligned reading and writing macros.
8842 Use buffered stdio instead of posix i/o for faster dumping.
8843 Eliminate kludgy 256 byte space for header.
8844 Read and write from dump file using structs for alignment safety.
8845 * dumper.c (pdump_align_stream): New.
8846 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8847 * dumper.c (PDUMP_READ_ALIGNED): New.
8848 * dumper.c (PDUMP_WRITE_ALIGNED): New.
8849 * dumper.c (pdump_static_Lisp_Object): New struct.
8850 * dumper.c (pdump_static_pointer): New struct.
8851 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8852 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8853 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8854 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8856 * dumper.c (pdump_backtrace):
8857 * dumper.c (pdump_get_indirect_count):
8858 * dumper.c (pdump_register_object):
8859 * dumper.c (pdump_register_struct):
8860 * dumper.c (pdump_reloc_one):
8861 * dumper.c (pdump_scan_by_alignment):
8862 * dumper.c (pdump_dump_from_root_struct_ptrs):
8863 * dumper.c (pdump_dump_opaques):
8864 * dumper.c (pdump_dump_rtables):
8865 * dumper.c (pdump_dump_from_root_objects):
8867 * dumper.c (pdump_load_finish):
8868 Use aligned reading and writing.
8870 * dumper.c (pdump_free): Make static.
8871 * dumper.c (pdump_hFile): Likewise.
8872 * dumper.c (pdump_hMap): Likewise.
8874 2001-01-26 Martin Buchholz <martin@xemacs.org>
8876 * XEmacs 21.2.43 "Terspichore" is released.
8878 2001-01-25 Martin Buchholz <martin@xemacs.org>
8880 Type fiddling for window_config.saved_windows_count
8881 * window.c (struct window_config):
8882 Make saved_windows_count member unsigned.
8883 * window.c (sizeof_window_config_for_n_windows):
8884 Make parameter unsigned.
8885 * window.c (mark_window_config):
8886 * window.c (window_config_equal):
8887 * window.c (free_window_configuration):
8888 * window.c (Fset_window_configuration):
8889 * window.c (count_windows):
8890 * window.c (Fcurrent_window_configuration):
8891 * window.c (reinit_vars_of_window):
8892 Update all callers and users.
8894 2001-01-25 Martin Buchholz <martin@xemacs.org>
8896 Alignment correctness for flexible arrays.
8897 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8898 Make alignment-correct. Add interesting comments.
8899 * alloc.c (size_vector):
8900 * alloc.c (make_vector_internal):
8901 * alloc.c (make_bit_vector_internal):
8902 * alloc.c (sweep_bit_vectors_1):
8903 * fns.c (size_bit_vector):
8904 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8905 * window.c (sizeof_window_config_for_n_windows):
8906 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8908 2001-01-24 Martin Buchholz <martin@xemacs.org>
8910 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8912 2001-01-23 Andy Piper <andy@xemacs.org>
8914 * select.c (Fown_selection_internal): pass owned_p
8916 * select-msw.c (mswindows_own_selection): New Signature.
8918 * console.h (struct console_methods): add owned_p to
8921 * select-x.c (x_own_selection): pass owned_p
8922 (hack_motif_clipboard_selection): use owned_p
8923 (vars_of_select_x): new variable -
8924 x_selection_strict_motif_ownership.
8926 2001-01-23 Martin Buchholz <martin@xemacs.org>
8928 * specifier.h (specifier_data_offset): Remove pointless parens.
8929 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8931 2001-01-24 Martin Buchholz <martin@xemacs.org>
8933 Make Lisp_Object sizeof methods be alignment-correct.
8934 pdump must restore objects to the same alignment as the C compiler
8935 assumes. It really matters on SGIs.
8936 * lstream.c (aligned_sizeof_lstream): New.
8937 (sizeof_lstream): Use aligned_sizeof_lstream.
8938 (Lstream_new): Likewise.
8939 * opaque.c (aligned_sizeof_opaque): New.
8940 (sizeof_opaque): Use aligned_sizeof_opaque.
8941 (make_opaque): Likewise.
8942 * specifier.c (aligned_sizeof_specifier): New.
8943 (sizeof_specifier): Use aligned_sizeof_specifier.
8944 (make_specifier_internal): Likewise.
8946 2001-01-23 Martin Buchholz <martin@xemacs.org>
8948 * lstream.h (struct lstream): Use max_align_t for trailing data.
8949 * specifier.h (struct Lisp_Specifier): Likewise.
8951 2001-01-22 Martin Buchholz <martin@xemacs.org>
8953 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8954 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8955 (CCL_SUSPEND): Likewise.
8956 (CCL_INVALID_CMD): Likewise.
8957 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8958 (ccl_driver): Likewise.
8959 (CCL_WRITE_CHAR): Macro hygiene.
8960 (CCL_WRITE_STRING): Macro hygiene.
8962 2001-01-22 Martin Buchholz <martin@xemacs.org>
8964 Port "portable" dumper to SunOS 4 and HP-UX.
8965 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8966 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8967 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8969 2001-01-22 Martin Buchholz <martin@xemacs.org>
8971 * lisp.h (ALIGNOF): A better definition for C++.
8973 2001-01-20 Martin Buchholz <martin@xemacs.org>
8976 Fix printf warnings: int format, long int arg.
8977 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8978 (PUSH_FAILURE_POINT): Use correct printf formats.
8979 (POP_FAILURE_POINT): Use correct printf formats.
8980 Use do {...} while (0)
8982 2001-01-20 Martin Buchholz <martin@xemacs.org>
8984 * XEmacs 21.2.42 "Poseidon" is released.
8986 2001-01-20 Martin Buchholz <martin@xemacs.org>
8988 * console-x.h: typo fix du jour. Remove #if 0'ed code.
8990 2001-01-19 Martin Buchholz <martin@xemacs.org>
8992 De-kludgify FIXED_TYPE free list frobbing.
8993 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8994 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8995 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8996 * alloc.c (Lisp_Free): New pseudo lisp object definition.
8997 * alloc.c (LRECORD_FREE_P): New.
8998 * alloc.c (MARK_LRECORD_AS_FREE): New.
8999 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9000 * alloc.c (STRUCT_FREE_P): Deleted.
9001 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9002 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9003 * alloc.c (STRING_CHARS_FREE_P): New.
9004 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9005 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9006 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9007 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9008 * alloc.c (resize_string): Use new definitions.
9009 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9010 * alloc.c (verify_string_chars_integrity): Use new definitions.
9011 * alloc.c (compact_string_chars): Use new definitions.
9012 * alloc.c: Update monster comments.
9013 * lrecord.h (lrecord_type): Add some new lrecord types for
9016 2001-01-18 Martin Buchholz <martin@xemacs.org>
9018 Improve alignment hackery.
9019 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9020 (max_align_t): Moved from opaque.h - general purpose.
9021 (ALIGN_PTR): Use size_t, not long.
9022 * opaque.h (max_align_t): Move to lisp.h.
9024 2001-01-18 Norbert Koch <nk@LF.net>
9026 * gui.h: Fix and add prototypes to fix build problems.
9028 2001-01-18 Martin Buchholz <martin@xemacs.org>
9030 temacs is going away, so `dump-temacs' is now a bad name.
9031 * .dbxrc (dump-temacs): Rename to `dmp'.
9032 * .gdbinit (dump-temacs): Rename to `dmp'.
9034 2001-01-17 Andy Piper <andy@xemacs.org>
9036 * glyphs.c (print_image_instance): comment to make martin happy.
9038 * glyphs-x.c (x_redisplay_widget): update faces after a frame
9041 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9043 (mswindows_tab_control_redisplay): warning suppression.
9045 * glyphs-widget.c (widget_update): re-write to cope with updated
9047 (widget_instantiate): use new gui_item functions.
9048 (tab_control_update): deleted.
9049 (progress_gauge_update): deleted.
9050 (image_instantiator_progress_guage): take out update reference.
9051 (image_instantiator_tree_view): ditto.
9052 (image_instantiator_tab_control): ditto.
9054 * gui.c (widget_gui_parse_item_keywords): new function. Do things
9056 (gui_item_add_keyval_pair): re-write to cope with descriptors and
9057 return whether anything was changed.
9058 (update_gui_item_keywords): as it sounds.
9060 * gui.h: declare widget_gui_parse_item_keywords.
9062 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9063 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9065 2001-01-17 Martin Buchholz <martin@xemacs.org>
9067 * XEmacs 21.2.41 "Polyhymnia" is released.
9069 2001-01-16 Didier Verna <didier@xemacs.org>
9071 * glyphs.c (image_instantiate): don't use fallbacks when
9072 instantiating a face's background pixmap by inheritance.
9074 2001-01-14 Mike Sperber <mike@xemacs.org>
9076 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9077 Conditionalize accordingly.
9079 2001-01-16 Martin Buchholz <martin@xemacs.org>
9081 * dumper.c (pdump_file_get): Fix a compiler warning.
9083 2001-01-15 Martin Buchholz <martin@xemacs.org>
9085 Make Purify happy when pdumping.
9086 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9087 iniitalizing all bits of new lisp object memory.
9088 * symbols.c (Fmake_local_variable): Likewise.
9089 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9090 * symbols.c (Fdefvaralias): Likewise.
9091 * mule-charset.c (vars_of_mule_charset): Likewise.
9093 2001-01-15 Martin Buchholz <martin@xemacs.org>
9094 Add the `-nd' flag when running pre-dump operations under the debugger.
9095 * .dbxrc (run-temacs): Add `-nd'.
9096 * .dbxrc (update-elc): Likewise.
9097 * .dbxrc (dump-temacs): Likewise.
9098 * .gdbinit (run-temacs): Likewise.
9099 * .gdbinit (check-temacs): Likewise.
9100 * .gdbinit (update-elc): Likewise.
9101 * .gdbinit (dump-temacs): Likewise.
9103 2001-01-14 Martin Buchholz <martin@xemacs.org>
9105 Allow building 64-bit executables on AIX with GNU malloc, e.g.
9106 export OBJECT_MODE=64
9107 configure --pdump --use-union-type=no
9108 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9109 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9111 * miscplay.c (sndcnv8U_2mono):
9112 Avoid two uses of `++' in the same expression.
9113 Suppresses a GCC warning.
9115 2001-01-13 Martin Buchholz <martin@xemacs.org>
9117 Make sure future compilers don't miscompile alloc.c.
9119 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9120 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9122 2001-01-12 Martin Buchholz <martin@xemacs.org>
9124 * dumper.c: A little post-pdump-rename comment fixup.
9126 2001-01-09 Jerry James <james@eecs.ku.edu>
9128 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9130 2001-01-13 Martin Buchholz <martin@xemacs.org>
9132 * *.[ch]: Globally rename symbols using the following `pdump-rename'
9136 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9139 replace_symbol pdump_wire_lists pdump_weak_object_chains
9140 replace_symbol pdump_wire_list dump_add_weak_object_chain
9142 replace_symbol pdump_wires pdump_root_objects
9143 replace_symbol pdump_wire dump_add_root_object
9145 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9146 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9148 replace_symbol dumpstructinfos pdump_root_struct_ptrs
9149 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9150 replace_symbol dumpstructinfo pdump_root_struct_ptr
9151 replace_symbol dumpstruct dump_add_root_struct_ptr
9153 replace_symbol dumpopaque dump_add_opaque
9154 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9155 replace_symbol dumpopaqueinfos pdump_opaques
9156 replace_symbol dumpopaqueinfo pdump_opaque
9158 replace_symbol nb_structdump nb_root_struct_ptrs
9159 replace_symbol nb_opaquedump nb_opaques
9161 replace_symbol align_table pdump_align_table
9162 replace_symbol dump_header pdump_header
9164 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9165 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9168 2001-01-12 Martin Buchholz <martin@xemacs.org>
9170 * s/aix4.h: Keep the C for AIX compiler from overaggressively
9171 optimizing bytecount_to_charcount().
9173 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
9176 (HAVE_DLFCN_H): Removed.
9177 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9179 2001-01-06 Martin Buchholz <martin@xemacs.org>
9181 Portable dumper maintainability improvements.
9182 * alloc.c (staticpro):
9183 * alloc.c (staticpro_nodump):
9184 * alloc.c (garbage_collect_1):
9185 * alloc.c (reinit_alloc_once_early):
9186 * alloc.c (init_alloc_once_early):
9187 * alloc.c: Move dumper functions to alloc.c.
9188 * dumper.c (pdump_backtrace):
9189 * dumper.c (pdump_dump_structs):
9190 * dumper.c (pdump_dump_opaques):
9191 * dumper.c (pdump_dump_rtables):
9192 * dumper.c (pdump_dump_wired):
9194 * dumper.c (pdump_load_check):
9195 * dumper.c (pdump_load_finish):
9196 * dumper.c (pdump_file_unmap):
9197 * dumper.c (pdump_file_get):
9198 * dumper.c (pdump_resource_free):
9199 * dumper.c (pdump_resource_get):
9200 * dumper.c (pdump_file_free):
9201 * dumper.c (pdump_file_try):
9202 * dumper.c (pdump_load):
9203 Remove fixed size limits on staticpro(), staticpro_nodump(),
9204 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9205 Remove custom code for dumping lrecord_implementations_table - use
9207 Remove (most of the) custom code for dumping staticpros - dump it
9208 like any other dynarr.
9210 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
9211 * dumper.c: Moved functions from alloc.c.
9212 * alloc.c (dumpstruct): Moved to dumper.c.
9213 * alloc.c (dumpopaque): Likewise.
9214 * alloc.c (pdump_wire): Likewise.
9215 * alloc.c (pdump_wire_list): Likewise.
9217 * lisp.h (Dynarr_sizeof): New.
9218 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
9219 * lisp.h (Dynarr_end): New. Very slightly C++oid.
9220 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
9222 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9223 * lisp.h (dumpopaque): ditto.
9224 * lisp.h (pdump_wire): ditto.
9225 * lisp.h (pdump_wire_list): ditto.
9227 2001-01-09 Martin Buchholz <martin@xemacs.org>
9229 * make-src-depend (PrintPatternDeps):
9230 Use `sort' to make output independent of perl version.
9232 2001-01-08 Martin Buchholz <martin@xemacs.org>
9235 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9236 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9238 2001-01-03 Didier Verna <didier@xemacs.org>
9240 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9241 that `focus_frame' is alive before thinking of calling
9242 `redisplay_redraw_cursor' on it.
9244 2001-01-08 Martin Buchholz <martin@xemacs.org>
9246 * XEmacs 21.2.40 is released.
9248 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
9250 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9252 2001-01-06 Martin Buchholz <martin@xemacs.org>
9254 * alloc.c (dbg_valmask): Make const.
9255 * alloc.c (dbg_typemask): Make const.
9256 * alloc.c (dbg_USE_UNION_TYPE): Make const.
9257 * alloc.c (dbg_valbits): Make const.
9258 * alloc.c (dbg_gctypebits): Make const.
9260 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
9262 * redisplay-x.c (x_bevel_area):
9263 redisplay.h (struct rune):
9264 Typo fixes in comments.
9266 2001-01-05 Andy Piper <andy@xemacs.org>
9268 * glyphs-x.c (x_redisplay_widget): use size changed for offset
9271 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9273 2001-01-05 Martin Buchholz <martin@xemacs.org>
9275 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9277 * mule-ccl.c (stack_idx_of_map_multiple):
9278 Non const global data must not be initialized!
9279 Found by MIYASHITA Hisashi.
9281 2001-01-02 Andy Piper <andy@xemacs.org>
9283 * frame.c (change_frame_size): make sure frame size is always
9286 * glyphs.c (image_instance_layout): minor code reuse.
9288 * window.c (Fcurrent_window_configuration): revert previous
9291 2001-01-02 Martin Buchholz <martin@xemacs.org>
9294 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9296 2000-12-31 Andy Piper <andy@xemacs.org>
9298 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9299 when widget gets unmapped.
9301 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9302 function. Make sure widgets losing focus don't just drop it.
9303 (handle_focus_event_1): record the widget with focus.
9305 2000-12-31 Andy Piper <andy@xemacs.org>
9307 * window.c (allocate_window): use
9308 make_image_instance_cache_hash_table.
9309 (make_dummy_parent): ditto.
9310 (Fset_window_configuration): ditto.
9312 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
9314 * glyphs.c (process_image_string_instantiator): use
9316 (get_image_instantiator_governing_domain): ditto.
9317 (normalize_image_instantiator): ditto.
9318 (instantiate_image_instantiator): ditto.
9319 (make_image_instance_1): ditto.
9320 (image_instantiate): ditto. Key on glyph *and* instantiator type.
9321 (instantiator_eq_equal): new function for use with instance hash
9323 (instantiator_eq_hash): ditto.
9324 (make_image_instance_cache_hash_table): create a suitable hash
9325 table for storing image instances.
9327 * elhash.h (hash_table_weakness): new internal weakness type
9328 HASH_TABLE_KEY_CAR_VALUE_WEAK.
9329 declare new functions.
9331 * elhash.c (finish_marking_weak_hash_tables): introduce yet
9332 another weakness type for glyphs.
9333 (make_standard_lisp_hash_table): new function split out from
9334 make_general_lisp_hash_table.
9335 (make_lisp_hash_table): call make_standard_lisp_hash_table.
9336 (hash_table_instantiate): ditto.
9337 (Fmake_hash_table): ditto.
9339 2000-12-31 Martin Buchholz <martin@xemacs.org>
9341 * XEmacs 21.2.39 is released.
9343 2000-12-29 Andy Piper <andy@xemacs.org>
9345 * menubar.c (menubar_visible_p_changed): signal the frame changed.
9347 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9348 the frame has changed so that we pick up geometry changes such as
9351 2000-12-28 Andy Piper <andy@xemacs.org>
9353 * lastfile.c (my_ebss): make a char array so we can pad the
9354 bss. Fixes cygwin unexec.
9356 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9358 2000-12-26 Andy Piper <andy@xemacs.org>
9360 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9361 comments and try and be more precise about a non-/SIGIO world.
9362 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9365 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9366 we don't normalize to zero width or height.
9368 2000-12-24 Andy Piper <andy@xemacs.org>
9370 * Makefile.in.in (ldflags): add -mwindows when appropriate.
9372 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
9374 * s/sco5.h: SCO 5 has pty support.
9376 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
9378 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9379 input-method-xlib.c contains whole contents of input-method-xfs.c,
9380 so we can use input-method-xlib.c's code for USE_XFONTSET
9382 * input-method-xfs.c: removed.
9384 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
9386 * file-coding.h (enum coding_category_type): reorder enumerators to
9387 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
9388 (now one greater than largest real coding_category_type enumerator).
9389 * file-coding.c (coding_category_symbol, coding_category_by_priority,
9390 coding_category_system, fcd_descriptihon_1, decode_coding_category,
9391 Fcoding_category_list, Fset_coding_priority_list,
9392 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9393 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9395 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
9397 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9398 * redisplay-output.c (redisplay_output_window): Clear top of window
9399 when face is changed.
9400 * redisplay-x.c (x_redraw_exposed_window): Call
9401 redisplay_clear_top_of_window.
9402 * redisplay.h: Publish redisplay_clear_top_of_window.
9404 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
9406 * buffer.c (Fkill_buffer): Map over all devices.
9407 * window.c (window_loop): Remove UNSHOW_BUFFER code.
9408 (list_windows): New function.
9409 (list_all_windows): Ditto.
9410 (Freplace_buffer_in_windows): Use them.
9412 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9414 * database.c (berkdb_subtype): Recognize new subtype `queue'.
9415 (Fopen_database): Use `db_create' instead of `db_open'.
9416 (syms_of_database): Initialize Qqueue.
9418 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9420 * buffer.c (common_init_complex_vars_of_buffer): Initialize
9421 buffer_local_face_property.
9422 * buffer.h (struct buffer): New member buffer_local_face_property.
9423 * window.c (Fset_window_buffer): Mark window's face as changed
9424 when buffer has buffer local face.
9425 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9426 * objects.c (color_after_change): Set buffer_local_face_property
9427 when locale of face specifier is buffer.
9428 * objects.c (font_after_change): Ditto.
9429 * objects.c (face_boolean_after_change): Ditto.
9430 * glyphs.c (image_after_change): Ditto.
9432 2000-12-09 Dan Holmsand <dan@eyebee.com>
9434 * nt.c (mswindows_fstat): Report file permissions, volume serial
9435 number, etc. Code adapted from FSF Emacs 20.7.
9437 2000-12-09 Dan Holmsand <dan@eyebee.com>
9439 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9440 of stat when we don't have symbolic links, to make sure
9441 mswindows_stat is called on mswindows.
9443 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
9445 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9447 2000-12-12 Martin Buchholz <martin@xemacs.org>
9449 * doprnt.c (emacs_doprnt_1): More printing fixes.
9450 Make printing of numbers compatible with libc and FSF Emacs.
9451 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9452 Use the system printf to do most of the hard work of formatting,
9453 instead of doprnt_1().
9454 Calculate memory to allocate for format string.
9455 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9456 (doprnt_1): Cleaner code and documentation.
9458 2000-12-01 Jerry James <james@eecs.ukans.edu>
9460 * Makefile.in.in: Use the loop variable to install headers.
9462 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
9464 * window.c (Fsplit_window): Don't invalidate face cache.
9466 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
9468 * minibuf.c (Fall_completions): Undo the previous change
9469 which removed checking elements start with space.
9471 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
9473 * mule-canna.c: Didier suppression.
9475 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
9477 * mule-canna.c: rename static unsigned char buf[] to key_buffer
9478 (warning suppression). Add English comment translations.
9480 2000-12-05 Martin Buchholz <martin@xemacs.org>
9482 * unexelfsgi.c (unexec): Better test for mmap failure.
9484 2000-12-05 Martin Buchholz <martin@xemacs.org>
9486 * XEmacs 21.2.38 is released.
9488 2000-12-05 Martin Buchholz <martin@xemacs.org>
9490 * redisplay.c (bar-cursor): Make a user variable.
9492 * symsinit.h: Add init_postgresql_from_environment.
9494 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
9496 * regex.c: Convert to clean C.
9498 2000-12-05 Dan Holmsand <dan@eyebee.com>
9501 Don't #include sysfile.h. Revert to duplicating PATH_MAX
9503 (sys_readlink): renamed to system_readlink to avoid conflict with
9504 the other sys_readlink.
9506 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
9508 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9510 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
9512 * postgresql.c (init_postgresql_from_environment): new function.
9513 (vars_of_postgresql): Move code initializing Lisp variables out and
9514 into init_postgresql_from_environment.
9515 emacs.c (main_1): Call init_postgresql_from_environment if and only
9516 if running a dumped XEmacs.
9518 2000-08-31 Dan Holmsand <dan@eyebee.com>
9520 * buffer.c: Make find-file-compare-truenames default to true on
9523 * realpath.c (win32_abs_start):
9525 (win32_readlink): New functions.
9526 (xrealpath): Return really real filenames on windows.
9528 * fileio.c (Ffile_truename): Make file-truename work on windows.
9530 2000-11-29 Didier Verna <didier@xemacs.org>
9532 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9533 * faces.c (update_face_cachel_data): use it.
9534 * faces.c (add_face_cachel): use it. Complete background pixmap
9535 frobbing in face cache if `update_face_cachel_data' has not done so.
9537 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
9539 * search.c (string_match_1): Don't set last_thing_searched
9542 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
9544 * buffer.c: Include casetab.h
9545 (common_init_complex_vars_of_buffer): Use new case-table object.
9546 * buffer.h: Include casetab.h
9547 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9548 (DOWNCASE_TABLE_OF): Ditto.
9549 * bufslots.h: Remove char-tables and add case-table.
9550 * casetab.c: Include casetab.h
9551 (CASE_TABLE_P): Removed.
9552 (mark_case_table): New function.
9553 (allocate_case_table): New function.
9554 (Fcase_table_p): Use new case-table.
9555 (case_table_char): New function.
9556 (Fget_case_table): Ditto.
9557 (Fput_case_table): Ditto.
9558 (Fput_case_table_pair): Ditto.
9559 (Fcopy_case_table): Ditto.
9560 (Fcurrent_case_table): Return case-table.
9561 (Fstandard_case_table): Return case-table.
9562 (Fset_case_table): Fix doc-string.
9563 (set_case_table): Use case-table
9564 (syms_of_casetab): DEFSUBR new functions.
9565 (complex_vars_of_casetab): Set up standard case-table.
9566 * casetab.h: New file.
9567 * editfns.c: Include casetab.h
9568 (Fcompare_buffer_substrings): Use case-table.
9569 * inline.c: Include casetab.h
9570 * lisp.h: Remove bogus extern.
9571 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9572 * search.c: Include casetab.h
9573 (TRANSLATE_ASCII): Removed.
9574 (TRANSLATE): Unconditionally translate character.
9575 (looking_at_1): Use case-table.
9576 (string_match_1): Ditto.
9577 (fast_string_match): Ditto.
9578 (search_command): Ditto.
9579 (search_buffer): Separate boyer_moore. Check whether
9580 boyer_moore is possible.
9581 (simple_search): New function.
9582 (boyer_moore): Separated from search_buffer. Translate char.
9584 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
9586 * regex.c (RE_TR_ASCII): Removed.
9587 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9588 (PATFETCH): Call PATFETCH_RAW.
9589 (PATFETCH_RAW): Fetch Emchar.
9590 (PATUNFETCH): Decrement charptr.
9591 (GET_BUFFER_SPACE): Rename b to buf_end.
9593 (BUF_PUSH_2): Ditto.
9594 (BUF_PUSH_3): Ditto.
9595 (EXTEND_BUFFER): Ditto.
9596 (SET_LIST_BIT): Ditto.
9597 (regex_compile): Ditto. Translate non ASCII char.
9598 (compile_range): Ditto.
9599 (re_search_2): Ditto.
9600 (re_match_2_internal): Compare Emchar.
9601 (bcmp_translate): Ditto.
9603 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
9605 * lisp.h (basic char/int typedefs): comment improvement.
9607 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
9609 * emacs.c (main_1): unconditional pdump unstomping; don't save and
9610 unstomp inhibit_site_lisp. Improve comments.
9612 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
9614 * mule-charset.c (Fcharset_property): improve type checking, comments.
9616 2000-11-28 Andy Piper <andy@xemacs.org>
9618 * redisplay-output.c (redisplay_output_subwindow): make sure we do
9619 clipped display for windows in the gutter also.
9620 (redisplay_display_boxes_in_window_p): change semantics of return
9621 codes to be more intuitive.
9623 * gutter.h: declare display_boxes_in_gutter_p.
9625 * gutter.c (display_boxes_in_gutter_p): new function for
9628 2000-11-22 Andy Piper <andy@xemacs.org>
9630 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9633 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
9635 * callproc.c (Fold_call_process_internal):
9636 * gpm.c (Freceive_gpm_event):
9637 (tty_get_foreign_selection): Might be just warning supression.
9638 * fileio.c (Fwrite_region_internal):
9639 (Fset_visited_file_modtime):
9640 * keymap.c (event_matches_key_specifier_p):
9641 Initialize GCPROed variable.
9643 * menubar-x.c (command_builder_find_menu_accelerator):
9644 Initialize before use.
9646 2000-11-23 Andy Piper <andy@xemacs.org>
9648 * unexcw.c (unexec): make the resulting executable executable.
9650 2000-11-21 Martin Buchholz <martin@xemacs.org>
9652 * doc.c (get_doc_string):
9653 Use size_t, not int, for result of XSTRING_LENGTH.
9655 * cmds.c (Fdelete_char):
9656 * cmds.c (Fpoint_at_eol):
9657 * cmds.c (Fself_insert_command):
9658 Use EMACS_INT, not int, for result of XINT.
9659 Someday, someone will want to insert more than 2**31 identical characters.
9661 * cmds.c (Fdelete_char):
9662 * cmds.c (Fdelete_backward_char):
9663 * syntax.c (Fforward_word):
9664 * syntax.c (Fforward_comment):
9665 Make COUNT argument optional, for consistency with forward-char et al.
9667 2000-11-22 Martin Buchholz <martin@xemacs.org>
9670 * print.c (long_to_string):
9671 Return a useful value: the pointer at end of data written.
9674 Use `static const char * const' for constant strings.
9675 (union printf_arg): Delete `i', `ui' members.
9678 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9679 Do all printf-ing via the `l' specifier.
9680 Use EMACS_INT instead of int.
9683 2000-11-20 Didier Verna <didier@xemacs.org>
9685 * faces.c (update_face_cachel_data): don't frob the background
9686 pixmap when the window is being created. The face is needed but
9689 2000-11-20 Andy Piper <andy@xemacs.org>
9691 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9692 messing with a debug environment.
9694 2000-11-20 Martin Buchholz <martin@xemacs.org>
9696 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9698 2000-11-20 Martin Buchholz <martin@xemacs.org>
9700 * casetab.c (Fcase_table_p): Fix compile error and crash.
9702 2000-11-18 Philip Aston <philipa@mail.com>
9704 * s/cygwin32.h: Cygwin has SVR4-like pty support.
9706 2000-11-18 Martin Buchholz <martin@xemacs.org>
9708 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
9709 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9711 2000-11-17 Martin Buchholz <martin@xemacs.org>
9713 * config.h.in: Define HAVE_ELF_H if elf.h exists.
9714 * unexelf.c: Use HAVE_ELF_H.
9715 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9716 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9717 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9718 Greg Harrington <greg_harrington@hotmail.com> provided a machine
9720 So this is an unexelfsgi.c from a different line of development.
9722 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
9724 * regex.c (RE_TR_ASCII): New function.
9725 (RE_TRANSLATE): Call it.
9727 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
9729 * buffer.h (TRT_TABLE_OF): Remove assert.
9730 (IN_TRT_TABLE_DOMAIN): Removed.
9732 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
9734 * free-hook.c (log_gcpro):
9735 (show_gcprohist): Add support for GCPRO5.
9737 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
9739 * emacs.c (main_1): Improve -sd error message when --pdump=no.
9741 2000-11-16 Olivier Galibert <galibert@xemacs.org>
9743 * symeval.h: Declare flush_all_buffer_local_cache.
9745 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9746 (flush_buffer_local_cache): Added.
9747 (flush_all_buffer_local_cache): Added.
9749 * lrecord.h: Remove unused XD_LO_RESET_NIL.
9751 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9752 (pdump_dump_data): Ditto.
9753 (pdump_reloc_one): Ditto.
9754 (pdump): Remove unused pdump_qnil. Flush buffer local caches
9758 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
9760 * buffer.c: Remove if 0'ed entry.
9761 * buffer.h: Rewrite TRT to use char-table.
9762 * bufslots.h: Remove mirror tables.
9763 * casetab.c: Remove mirror tables.
9764 (CASE_TABLE_P): New macro.
9765 (Fcase_table_p): Element of a case table is string or char-table.
9766 (make_mirror_trt_table): Removed.
9767 (set_case_table): Setup char-table from strings for backward
9769 * dired.c (Fdirectory_files):
9770 * dired-msw.c: (mswindows_get_files):
9771 * lisp.h: Change prototype of re_pattern_buffer.
9772 * regex.c: (RE_TRANSLATE): New macro.
9773 (TRANSLATE_P): Ditto.
9774 Change translate to type RE_TRANSLATE_TYPE.
9775 * regex.h: Define RE_TRANSLATE_TYPE
9776 * search.c (TRANSLATE): New macro.
9777 (TRANSLATE_ASCII): New macro.
9778 Translate table is changed to Lisp_Object.
9779 (signal_failure): Inhibit return.
9781 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
9788 Do UNGCPRO before return.
9790 2000-11-14 Martin Buchholz <martin@xemacs.org>
9792 * XEmacs 21.2.37 is released.
9794 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9796 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9797 Add comments about discarded return value.
9799 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
9802 * event-stream.c: Fix comments. Remove some #if 0'ed part.
9804 2000-10-27 Andy Piper <andy@xemacs.org>
9806 * gutter.c (Fset_default_gutter_position): default left and right
9808 (calculate_gutter_size): calculate resonable heuristic for left
9809 and right gutter sizes.
9810 (specifier_vars_of_gutter): change left and right gutter sizes to
9812 (calculate_gutter_size_from_display_lines): new function.
9813 (output_gutter): check for resizing on left and right gutters.
9814 (clear_gutter): don't special case top and left gutters.
9815 (specifier_vars_of_gutter): use new signature for
9816 set_specifier_caching.
9818 * glyphs-x.c (x_redisplay_widget): spelling fix.
9819 * glyphs.c (specifier_vars_of_glyphs):
9820 * menubar.c (specifier_vars_of_menubar):
9821 * redisplay.c (specifier_vars_of_redisplay):
9822 * toolbar.c (specifier_vars_of_toolbar):
9823 * window.c (specifier_vars_of_window):
9824 * scrollbar.c (specifier_vars_of_scrollbar):
9825 (complex_vars_of_scrollbar): use new signature for
9826 set_specifier_caching.
9828 * specifier.c (set_specifier_caching): include recompute flag.
9829 (recompute_one_cached_specifier_in_window): always recompute if
9831 (recompute_one_cached_specifier_in_frame): ditto.
9833 * specifier.h (struct specifier_caching): add recompute flag.
9835 2000-10-24 Andy Piper <andy@xemacs.org>
9837 * unexcw.c (copy_executable_and_dump_data_section): add new
9838 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9841 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9843 * console-x.h (x_device): New member modifier_release_time.
9844 * event-Xt.c (x_handle_sticky_modifiers):
9845 Bound interval modifier keys are sticky.
9846 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9847 * events.h: extern it.
9849 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9851 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9853 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9855 * event-stream.c (execute_command_event): Preserve current_events
9856 and the like when event is misc-user-event.
9857 Inhibit quit during the call to maybe_echo_keys.
9859 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
9861 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9862 symlink when buffer is killed.
9863 (inhibit_clash_detection): New variable.
9865 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
9867 * console.c (Fset_input_method): Trigger redisplay on tty.
9869 2000-11-07 Martin Buchholz <martin@xemacs.org>
9871 * process.c (Fprocess_status): Revert to previous behavior:
9872 (process-status "nosuchprocess") ==> nil
9874 2000-11-06 Martin Buchholz <martin@xemacs.org>
9876 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9877 Work around another GCC 2.95.2 optimizer bug.
9879 2000-11-02 Martin Buchholz <martin@xemacs.org>
9881 * process.c (Fget_process): Use LIST_LOOP_2.
9882 (kill_buffer_processes): Use LIST_LOOP_2.
9884 * minibuf.c (Fall_completions):
9885 Delete old non-functional code for FSF fourth argument.
9887 * frame.c (frame_matches_frame_spec):
9888 Renamed from `frame_matches_frametype'. Update all callers.
9889 (device_matches_device_spec):
9890 Renamed from 'device_matches_console_spec'. Update all callers.
9892 * doc.c (Fsubstitute_command_keys):
9893 Remove buffer overflow crash. Small code cleanups.
9895 * casetab.c (check_case_table): Simpler code.
9897 * window.c (Freplace_buffer_in_windows):
9898 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9899 (and similar implementation) as Fdelete_windows_on.
9902 * alloc.c (Fmake_list):
9903 * alloc.c (make_vector):
9904 * alloc.c (Fmake_vector):
9905 * alloc.c (make_bit_vector):
9906 * alloc.c (Fmake_bit_vector):
9907 * alloc.c (Fbit_vector):
9908 * alloc.c (Fmake_string):
9909 * alloc.c (Fpurecopy):
9910 * alloc.c (Fmemory_limit):
9912 * buffer.c (Fget_buffer):
9913 * buffer.c (Fkill_buffer):
9914 * buffer.c (complex_vars_of_buffer):
9915 * bytecode.c (Fcompiled_function_stack_depth):
9916 * callint.c (Fprefix_numeric_value):
9918 * event-stream.c (Fread_key_sequence):
9920 * casetab.c (Fcase_table_p):
9921 * casetab.c (check_case_table):
9922 * casetab.c (Fset_case_table):
9923 * casetab.c (Fset_standard_case_table):
9925 * chartab.c (Fchar_table_type):
9926 * chartab.c (Freset_char_table):
9927 * chartab.c (Fget_char_table):
9928 * chartab.c (Fget_range_char_table):
9929 * chartab.c (Fput_char_table):
9930 * chartab.c (Fmap_char_table):
9931 * chartab.c (Fcategory_table_p):
9932 * chartab.c (Fcheck_category_at):
9933 * chartab.c (Fchar_in_category_p):
9934 * chartab.c (Fcategory_table):
9935 * chartab.c (Fcopy_category_table):
9936 * chartab.c (Fset_category_table):
9937 * chartab.c (Fcategory_designator_p):
9938 * chartab.c (Fcategory_table_value_p):
9939 * cmds.c (Fdelete_char):
9940 * cmds.c (Fdelete_backward_char):
9941 * cmds.c (Fself_insert_command):
9942 * cmds.c (Fself_insert_internal):
9943 * console.c (Fvalid_console_type_p):
9944 * console.c (Fcdfw_console):
9945 * console.c (Fconsole_type):
9946 * console.c (Fconsole_name):
9947 * console.c (Fconsole_device_list):
9948 * console.c (Fconsole_on_window_system_p):
9952 * data.c (Fsubr_interactive):
9953 * data.c (Fchar_to_int):
9954 * data.c (Fint_to_char):
9957 * data.c (Fnumber_to_string):
9958 * data.c (Fstring_to_number):
9960 * database.c (mark_database):
9961 * database.c (finalize_database):
9962 * database.c (Fdatabase_live_p):
9963 * database.c (Fdatabasep):
9964 * device-x.c (Fx_get_resource):
9965 * device.c (Fdfw_device):
9967 * dired.c (Ffile_name_completion):
9968 * dired.c (Ffile_name_all_completions):
9969 * dired.c (Fuser_name_completion):
9970 * dired.c (Fuser_name_completion_1):
9971 * dired.c (Fuser_name_all_completions):
9972 * doc.c (Fdocumentation):
9973 * doc.c (Fdocumentation_property):
9974 * doc.c (Fsubstitute_command_keys):
9976 * editfns.c (Fchar_to_string):
9977 * editfns.c (Fstring_to_char):
9978 * editfns.c (Ftemp_directory):
9979 * editfns.c (Finsert_char):
9980 * editfns.c (Fbuffer_substring_no_properties):
9981 * editfns.c (Fnarrow_to_region):
9982 * editfns.c (Fchar_equal):
9983 * editfns.c (Fchar_Equal):
9984 * editfns.c (Ftranspose_regions):
9985 * emacs.c (Fdump_emacs):
9987 * eval.c (Fcommand_execute):
9988 * eval.c (Fautoload):
9989 * eval.c (Fbacktrace):
9990 * eval.c (Fbacktrace_frame):
9992 * events.c (Fcopy_event):
9993 * events.c (Fcharacter_to_event):
9994 * events.c (Fevent_button):
9995 * events.c (Fevent_process):
9997 * extents.c (Fnext_extent_change):
9998 * extents.c (Fextent_property):
10000 * faces.c (Fmake_face):
10002 * file-coding.c (Fencode_shift_jis_char):
10003 * file-coding.c (Fencode_big5_char):
10004 * fileio.c (Ffile_name_directory):
10005 * fileio.c (Ffile_name_nondirectory):
10006 * fileio.c (Ffile_name_as_directory):
10007 * fileio.c (Fdirectory_file_name):
10008 * fileio.c (Ffile_truename):
10009 * fileio.c (Fsubstitute_in_file_name):
10010 * fileio.c (Ffile_modes):
10011 * fileio.c (Fset_file_modes):
10012 * fileio.c (Fset_default_file_modes):
10013 * fileio.c (Fverify_visited_file_modtime):
10014 * floatfns.c (Facos):
10015 * floatfns.c (Fasin):
10016 * floatfns.c (Fatan):
10017 * floatfns.c (Fcos):
10018 * floatfns.c (Fsin):
10019 * floatfns.c (Ftan):
10020 * floatfns.c (Fbessel_j0):
10021 * floatfns.c (Fbessel_j1):
10022 * floatfns.c (Fbessel_jn):
10023 * floatfns.c (Fbessel_y0):
10024 * floatfns.c (Fbessel_y1):
10025 * floatfns.c (Fbessel_yn):
10026 * floatfns.c (Ferf):
10027 * floatfns.c (Ferfc):
10028 * floatfns.c (Flog_gamma):
10029 * floatfns.c (Fexp):
10030 * floatfns.c (Fexpt):
10031 * floatfns.c (Flog):
10032 * floatfns.c (Flog10):
10033 * floatfns.c (Fsqrt):
10034 * floatfns.c (Fcube_root):
10035 * floatfns.c (Facosh):
10036 * floatfns.c (Fasinh):
10037 * floatfns.c (Fatanh):
10038 * floatfns.c (Fcosh):
10039 * floatfns.c (Fsinh):
10040 * floatfns.c (Ftanh):
10041 * floatfns.c (Fabs):
10042 * floatfns.c (Ffloat):
10043 * floatfns.c (Flogb):
10044 * floatfns.c (Fceiling):
10045 * floatfns.c (Ffloor):
10046 * floatfns.c (Fround):
10047 * floatfns.c (Ftruncate):
10048 * floatfns.c (Ffceiling):
10049 * floatfns.c (Fffloor):
10050 * floatfns.c (Ffround):
10051 * floatfns.c (Fftruncate):
10052 * fns.c (Fstring_equal):
10053 * fns.c (Fstring_lessp):
10056 * fns.c (vconcat2):
10057 * fns.c (vconcat3):
10058 * fns.c (Fsubstring):
10060 * fns.c (Fold_assoc):
10061 * fns.c (assoc_no_quit):
10063 * fns.c (Fold_assq):
10064 * fns.c (assq_no_quit):
10066 * fns.c (Fold_rassoc):
10068 * fns.c (Fold_rassq):
10069 * fns.c (rassq_no_quit):
10070 * fns.c (Fremassoc):
10071 * fns.c (remassoc_no_quit):
10072 * fns.c (Fremassq):
10073 * fns.c (remassq_no_quit):
10074 * fns.c (Fremrassoc):
10075 * fns.c (Fremrassq):
10076 * fns.c (remrassq_no_quit):
10078 * fns.c (Fplist_get):
10079 * fns.c (Fplist_put):
10080 * fns.c (Fplist_remprop):
10081 * fns.c (Fplist_member):
10082 * fns.c (Flax_plist_get):
10083 * fns.c (Flax_plist_put):
10084 * fns.c (Flax_plist_remprop):
10085 * fns.c (Flax_plist_member):
10087 * fns.c (Fold_equal):
10088 * fns.c (Frequire):
10089 * fns.c (Fbase64_encode_region):
10090 * fns.c (Fbase64_encode_string):
10091 * fns.c (Fbase64_decode_region):
10093 * frame.c (frame_matches_frame_spec):
10094 * frame.c (device_matches_device_spec):
10095 * frame.c (next_frame):
10096 * frame.c (previous_frame):
10097 * frame.c (Fnext_frame):
10098 * frame.c (Fprevious_frame):
10099 * frame.c (Fframe_property):
10100 * frame.c (Fset_frame_height):
10101 * frame.c (Fset_frame_size):
10105 * glyphs.c (decode_error_behavior_flag):
10106 * glyphs.c (Fmake_image_instance):
10107 * indent.c (Findent_to):
10108 * intl.c (Fignore_defer_gettext):
10109 * keymap.c (Fkeymapp):
10110 * keymap.c (Flookup_key):
10112 * lread.c (Fload_internal):
10113 * lread.c (Feval_buffer):
10114 * lread.c (Feval_region):
10115 * macros.c (Fexecute_kbd_macro):
10116 * marker.c (set_marker_internal):
10117 * marker.c (Fset_marker):
10118 * marker.c (set_marker_restricted):
10119 * marker.c (Fcopy_marker):
10120 * marker.c (noseeum_copy_marker):
10122 * menubar.c (Fpopup_menu):
10124 * mule-charset.c (Fcharset_name):
10125 * mule-charset.c (Fchar_charset):
10126 * mule-charset.c (Fchar_octet):
10127 * mule-charset.c (Fsplit_char):
10128 * mule-wnnfns.c (Fwnn_open):
10129 * mule-wnnfns.c (Fwnn_dict_comment):
10130 * mule-wnnfns.c (Fwnn_quit_henkan):
10131 * mule-wnnfns.c (Fwnn_word_toroku):
10132 * mule-wnnfns.c (Fwnn_word_sakujo):
10133 * mule-wnnfns.c (Fwnn_word_use):
10134 * mule-wnnfns.c (Fwnn_hindo_set):
10136 * objects.c (Fmake_color_instance):
10137 * objects.c (Fmake_font_instance):
10138 * print.c (Fwrite_char):
10140 * process.c (mark_process):
10141 * process.c (print_process):
10142 * process.c (get_process_from_usid):
10143 * process.c (Fprocessp):
10144 * process.c (Fprocess_live_p):
10145 * process.c (Fget_process):
10146 * process.c (Fget_buffer_process):
10147 * process.c (get_process):
10148 * process.c (Fprocess_id):
10149 * process.c (Fprocess_name):
10150 * process.c (Fprocess_command):
10151 * process.c (init_process_io_handles):
10152 * process.c (start_process_unwind):
10153 * process.c (Fstart_process_internal):
10154 * process.c (Fopen_multicast_group_internal):
10155 * process.c (Fset_process_window_size):
10156 * process.c (read_process_output):
10157 * process.c (send_process):
10158 * process.c (Fprocess_tty_name):
10159 * process.c (Fset_process_buffer):
10160 * process.c (Fprocess_buffer):
10161 * process.c (Fprocess_mark):
10162 * process.c (set_process_filter):
10163 * process.c (Fset_process_filter):
10164 * process.c (Fprocess_filter):
10165 * process.c (Fprocess_send_region):
10166 * process.c (Fprocess_send_string):
10167 * process.c (exec_sentinel):
10168 * process.c (Fset_process_sentinel):
10169 * process.c (Fprocess_sentinel):
10170 * process.c (status_notify):
10171 * process.c (Fprocess_status):
10172 * process.c (Fprocess_exit_status):
10173 * process.c (process_send_signal):
10174 * process.c (Fprocess_send_eof):
10175 * process.c (deactivate_process):
10176 * process.c (remove_process):
10177 * process.c (Fdelete_process):
10178 * process.c (kill_buffer_processes):
10179 * process.c (Fprocess_kill_without_query):
10180 * process.c (Fprocess_kill_without_query_p):
10182 * rangetab.c (Fget_range_table):
10183 * rangetab.c (Fput_range_table):
10184 * rangetab.c (Fremove_range_table):
10185 * rangetab.c (Fclear_range_table):
10187 * search.c (Fskip_chars_forward):
10188 * search.c (Fskip_chars_backward):
10189 * search.c (Fskip_syntax_forward):
10190 * search.c (Fskip_syntax_backward):
10191 * search.c (search_command):
10192 * search.c (Freplace_match):
10193 * search.c (Fregexp_quote):
10194 * select.c (Fown_selection_internal):
10195 * select.c (Fselection_owner_p):
10196 * select.c (Fselection_exists_p):
10197 * select.c (Fget_selection_internal):
10200 * symbols.c (Fintern):
10201 * symbols.c (Fintern_soft):
10202 * symbols.c (Funintern):
10203 * symbols.c (Fapropos_internal):
10204 * symbols.c (Fset_default):
10206 * syntax.c (Fsyntax_table_p):
10207 * syntax.c (Fcopy_syntax_table):
10208 * syntax.c (Fset_syntax_table):
10209 * syntax.c (Fchar_syntax):
10210 * syntax.c (syntax_match):
10211 * syntax.c (Fmatching_paren):
10212 * syntax.c (Fforward_word):
10213 * syntax.c (scan_lists):
10214 * syntax.c (Fscan_lists):
10215 * syntax.c (Fscan_sexps):
10216 * syntax.c (Fparse_partial_sexp):
10217 * toolbar.c (Fcheck_toolbar_button_syntax):
10220 * window.c (Fwindowp):
10221 * window.c (Fwindow_live_p):
10222 * window.c (Fwindow_point):
10223 * window.c (Fdelete_window):
10224 * window.c (Fnext_window):
10225 * window.c (Fprevious_window):
10226 * window.c (Fother_window):
10227 * window.c (window_loop):
10228 * window.c (Fget_lru_window):
10229 * window.c (Fsplit_window):
10230 * window.c (Fenlarge_window):
10231 * window.c (Fenlarge_window_pixels):
10232 * window.c (Fshrink_window):
10233 * window.c (Fshrink_window_pixels):
10234 * window.c (change_window_height):
10235 * window.c (Fwindow_configuration_p):
10236 * window.c (Fcurrent_window_configuration):
10238 * casefiddle.c (casify_object):
10239 * casefiddle.c (Fupcase):
10240 * casefiddle.c (Fdowncase):
10241 * casefiddle.c (Fcapitalize):
10242 * casefiddle.c (Fupcase_initials):
10243 * casefiddle.c (casify_region_internal):
10244 * casefiddle.c (casify_region):
10245 * casefiddle.c (Fupcase_region):
10246 * casefiddle.c (Fdowncase_region):
10247 * casefiddle.c (Fcapitalize_region):
10248 * casefiddle.c (Fupcase_initials_region):
10249 * casefiddle.c (Fupcase_word):
10250 * casefiddle.c (Fdowncase_word):
10251 * casefiddle.c (Fcapitalize_word):
10252 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
10253 Replace 0 with '\0' when working with bytes.
10254 Replace initial "(" with "\(" in docstrings.
10256 2000-11-01 Martin Buchholz <martin@xemacs.org>
10258 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10260 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10262 2000-10-31 Martin Buchholz <martin@xemacs.org>
10264 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
10266 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
10268 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10271 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
10273 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10274 (inhibit_auto_save_session): New variable.
10275 (vars_of_fileio): Declare and initialize them.
10276 * fileio.c (Fdo_auto_save): Don't create session file if
10277 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10279 2000-10-31 Martin Buchholz <martin@xemacs.org>
10281 * sgiplay.c (play_internal): C++ compilability.
10282 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10283 * callproc.c (Fold_call_process_internal):
10284 Remove unused vars `env', `first'.
10285 * scrollbar.c (update_scrollbar_instance):
10286 #### unused var `current_window'.
10287 * redisplay-tty.c: Put currently unused vars insert_mode_on,
10288 etc. within #ifdef NOT_YET.
10289 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10290 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10291 * specifier.c (specifier_instance):
10292 #### unused var `tag'.
10293 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10295 2000-10-27 Martin Buchholz <martin@xemacs.org>
10297 * fns.c (Fbutlast):
10298 * fns.c (list_sort):
10299 * fns.c (Ffillarray):
10300 * fns.c (bytecode_nconc2):
10303 * fns.c (Fmapconcat):
10304 Be pedantically 64-bit correct. For the time when someone will
10305 want to have a list with length > 2**32.
10307 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10308 Work around MIPSpro compiler bug.
10310 * process-unix.c (unix_kill_child_process): Add snarky comment.
10311 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
10313 * config.h.in: Oops, _getpt ==> _getpty
10315 2000-10-26 Martin Buchholz <martin@xemacs.org>
10319 Use void*, not char*, as return type of alloca().
10321 * alloc.c (free_marker): Side effect inside assert expression!
10323 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
10325 * mule-charset.c (Fset_charset_ccl_program): To check
10326 if the given ccl program is valid, use setup_ccl_program()
10327 instead of CHECK_VECTOR().
10328 (Fmake_charset): Likewise.
10330 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
10332 * faces.c (get_extent_fragment_face_cache_index):
10333 Fix cachel.merged_faces memory leak.
10335 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
10337 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10338 Reset MSB of octets obtained by DECODE_SJIS
10339 because of the incompatibility with Emacs.
10340 (ccl_driver)<CCL_ENCODE_SJIS>:
10341 Set MSB of octets before passing them to
10342 ENCODE_SJIS because of the incompatibility
10345 2000-10-18 Daiki Ueno <ueno@unixuser.org>
10347 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10348 (DECLARE_LRECORD): Undo the last change.
10349 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10351 2000-10-17 Daiki Ueno <ueno@unixuser.org>
10353 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10354 the implementation to lrecord_implementations_table.
10356 2000-10-14 Daiki Ueno <ueno@unixuser.org>
10358 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10359 initial value of `lrecord_type_##c_name' and
10360 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10361 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10362 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10363 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10364 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10366 2000-10-17 Martin Buchholz <martin@xemacs.org>
10368 * miscplay.c (sndcnv8S_2mono):
10369 (sndcnv2monounsigned):
10370 (sndcnvULaw_2linear):
10372 Remove implementation-defined behavior.
10374 2000-10-12 Martin Buchholz <martin@xemacs.org>
10376 * input-method-xlib.c: Warning suppression.
10378 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
10380 * mule-ccl.c: Sync up with Emacs 21.0.90.
10381 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10383 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10385 (ccl_driver[WriteMultibyteChar2]): Bug fix.
10386 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10387 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10388 leading char belongs to official 2-dimensional charset.
10389 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10390 write the given character as is. Otherwise,
10391 if it is a multibyte char, convert it by
10392 non_ascii_set_charptr_emchar, then write it.
10393 (CCL_WRITE_STRING): Likewise.
10394 (ccl_get_compiled_code): New function.
10395 (setup_ccl_program): When ccl_prog is invalid,
10397 (Fregister_code_conversion_map): New function.
10398 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10400 * mule-ccl.h: Sync up with Emacs 21.0.90.
10401 (Fregister_ccl_program): export it.
10403 * redisplay-msw.c (separate_textual_runs):
10404 If ccl program is not valid, don't do ccl conversion.
10406 * redisplay-x.c (separate_textual_runs): Ditto.
10408 * file-coding.c (Fmake_coding_system):
10409 When type is ccl and value is vector, register it
10410 with a proper symbol. And checks whether the
10411 given ccl program is valid.
10412 (mule_decode): When calling ccl_driver, if src indicates
10413 NULL pointer, set an empty string instead.
10414 (mule_encode): Likewise.
10416 2000-10-11 Martin Buchholz <martin@xemacs.org>
10418 The following large batch of changes gets us back to a state of
10419 C++ compilability. Extbyte is now a char, which means that
10420 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10422 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10424 * sound.c (Fplay_sound): Type correctness.
10426 * select-x.c (hack_motif_clipboard_selection): Type correctness.
10427 (x_get_window_property): Type correctness.
10428 (receive_incremental_selection): unsigned char ==> Extbyte
10429 (selection_data_to_lisp_data): unsigned char ==> Extbyte
10430 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10431 (Fx_store_cutbuffer_internal): Type correctness.
10433 * process-unix.c (try_to_initialize_subtty): Type correctness.
10435 * objects-x.c (x_print_color_instance): Type correctness.
10436 (x_print_font_instance): Type correctness.
10437 (x_list_fonts): SExtbyte ==> Extbyte.
10438 (valid_x_font_name_p): SExtbyte ==> Extbyte.
10439 (x_find_charset_font): SExtbyte ==> Extbyte.
10440 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
10441 (truename_via_XListFonts): SExtbyte ==> Extbyte.
10442 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10443 Use bufbyte_strcmp.
10445 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10446 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10447 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10448 (BYTE_C0_P): Use bit ops for char-signedness safety.
10449 (BYTE_C1_P): Use bit ops for char-signedness safety.
10450 (CHARSET_BY_LEADING_BYTE):
10451 (CHARSET_BY_ATTRIBUTES):
10452 Always use inline function.
10453 Use type_checking_assert.
10456 * mule-charset.c (non_ascii_charptr_copy_char):
10457 Modify to work with both ASCII and non-ASCII characters.
10458 Improve docs and variable names.
10459 Replace over-clever fall-through switch with a simple loop.
10460 (Lstream_get_emchar_1):
10461 Replace over-clever fall-through switch with a simple loop.
10463 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10464 Warning suppression.
10466 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10467 the return value of Lstream_getc, which could be EOF as well.
10469 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10471 * lisp.h: Make Extbyte a char, not unsigned char, so that external
10472 APIs can be used on Extbytes without casts. Risky!
10473 (SExtbyte): Remove.
10474 (UExtbyte): Remove.
10476 * input-method-xlib.c (XIM_init_device):
10477 Use Xlib.h instead of IntrinsicP.h.
10478 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10479 which will break in X11R7.
10480 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10481 to call XRegisterIMInstantiateCallback with correct types.
10483 * gui-x.c (button_item_to_widget_value): Type correctness.
10485 * glyphs.c (bitmap_to_lisp_data): Type correctness.
10487 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10488 (xbm_instantiate_1): Type correctness.
10489 (BUILD_GLYPH_INST): Type correctness.
10491 * fileio.c (Fsubstitute_in_file_name): Type correctness.
10494 (decode_coding_sjis):
10495 (decode_coding_big5):
10496 (decode_coding_ucs4):
10497 (decode_coding_utf8):
10498 (decode_coding_iso2022):
10499 (decode_coding_no_conversion):
10500 Make all decoding functions take an Extbyte * arg.
10501 (encode_coding_sjis):
10502 (encode_coding_big5):
10503 (encode_coding_ucs4):
10504 (encode_coding_utf8):
10505 (encode_coding_iso2022):
10506 (encode_coding_no_conversion):
10507 Make all encoding functions take a Bufbyte * arg.
10508 Use size_t instead of unsigned int for memory sizes.
10509 Only cast to unsigned char whenever dereferencing Extbyte *.
10511 * doc.c (unparesseuxify_doc_string): Type correctness.
10513 * console-x.c (split_up_display_spec):
10514 Rewrite without using details of internal string representation.
10515 (x_semi_canonicalize_device_connection): Type correctness.
10518 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10519 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10520 (HAVE_XFREE386): Removed.
10522 * buffer.h (DEC_CHARPTR): `const' correctness.
10523 (bufbyte_strcmp): New.
10524 (bufbyte_memcmp): New.
10526 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10528 * buffer.h (XCHAR_OR_CHAR_INT):
10529 Always use inline function.
10530 Remove redundant type checking assert() - XINT will abort quite nicely.
10532 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
10534 * search.c (Freplace_match): Set newtext to an empty string.
10536 2000-10-10 Martin Buchholz <martin@xemacs.org>
10538 * s/decosf1-3.h: Remove #include of stropts.h
10539 * s/ptx.h: Remove #include of stropts.h
10540 * s/usg5-4.h: Remove #include of stropts.h
10543 Use stropts.h, not sys/stropts.h.
10544 Use strtio.h, not sys/strtio.h.
10546 2000-10-04 Martin Buchholz <martin@xemacs.org>
10548 * XEmacs 21.2.36 is released.
10550 2000-09-21 Andy Piper <andy@xemacs.org>
10552 * glyphs-x.c (x_redisplay_widget): make sure non-structural
10553 changes still involve copying the widget tree.
10554 (update_widget_face): make sure a change is register in the widget
10555 tree. Call update_tab_widget_face appropriately.
10556 (update_tab_widget_face): ditto.
10557 (x_tab_control_redisplay): make sure non-structural changes still
10558 involve copying the widget tree.
10560 2000-08-31 Daiki Ueno <ueno@unixuser.org>
10562 * lread.c (locate_file): Check the path element is non-nil.
10564 2000-10-02 Martin Buchholz <martin@xemacs.org>
10566 * lisp.h: Warning suppression for SCO compilers.
10568 * redisplay-tty.c (reset_tty_modes): Fix crash.
10569 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10571 2000-09-27 Martin Buchholz <martin@xemacs.org>
10573 Big signal/process handling overhaul. Bugs fixed:
10574 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10575 M-x comint-kill-subjob should work for both values nil and t of
10576 process-connection-type. It was broken on most platforms.
10577 Testing on Irix and Cygwin still needed. Other plaforms tested.
10578 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
10579 * process-unix.c: Signal/Process handling overhaul.
10580 (pty_name): make 64 bytes, as `expect' does, for paranoia.
10581 (allocate_pty): Use all available modern methods of allocating
10582 ptys, falling back to old style BSD allocation as a last resort.
10583 Use allegedly more secure Unix98 pty allocation by default.
10584 (allocate_pty_the_old_fashioned_way): New. the last resort.
10585 (unix_create_process): Push ptem, ldterm, ttcompat where
10586 available. Autoconfiscate.
10587 (try_to_initialize_subtty): New.
10588 (unix_kill_child_process): Proper signal handling for ptys on most
10589 platforms, using special knowledge of AIX, BSD, etc...
10590 (unix_create_process): Always disconnect_controlling_terminal() for
10591 subprocesses, whether using ptys or not.
10592 * process.h: Remove old getpt-dependent PTY code.
10593 * process.c (Fprocess_send_signal): New, obvious generic function.
10594 (decode_signal): New.
10595 (Finterrupt_process):
10599 (Fcontinue_process):
10600 (Fsignal_process): Use decode_signal.
10601 (process_send_signal):
10602 Many docstring corrections.
10603 Allow any signal to be sent to a process object.
10604 * config.h.in: Add symbols for big signal/process overhaul.
10605 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10606 * sysproc.h: Include process-related headers, where available:
10607 sys/stropts.h sys/strtio.h pty.h libutil.h
10615 Remove old S&M pty stuff.
10616 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10617 * systty.h: Simplify cpp hackery, improve comments.
10618 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10620 * editfns.c (Fformat_time_string):
10621 Be a little more paranoid with the return value of ctime.
10623 * fileio.c (check_executable):
10625 Use symbolic constants X_OK, W_OK.
10627 * console-x.c (split_up_display_spec): Fix a warning.
10629 2000-10-02 Martin Buchholz <martin@xemacs.org>
10631 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10632 * ntproc.c (sys_spawnve): make_string ==> build_string
10633 Small clarity improvements.
10635 2000-09-30 Martin Buchholz <martin@xemacs.org>
10637 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10639 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10641 * config.h.in (HAVE_STRCASECMP): Remove.
10643 2000-09-29 Martin Buchholz <martin@xemacs.org>
10645 * redisplay-output.c (redisplay_output_pixmap):
10646 Cleaner and possibly more 64-bit correct code.
10648 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
10650 * dumper.c (pdump_load_finish): move restoration of
10651 `noninteractive1' to emacs.c (main_1).
10652 * emacs.c (main_1): protect LISP-visible command-line flags
10655 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
10657 * Makefile.in.in (versionclean): Use EXE_TARGET and
10658 DUMP_TARGET instead of literal program names.
10660 2000-09-20 Martin Buchholz <martin@xemacs.org>
10662 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10664 2000-09-19 Martin Buchholz <martin@xemacs.org>
10666 * *: Spelling mega-patch
10668 2000-09-19 Martin Buchholz <martin@xemacs.org>
10670 * fns.c (bad_bad_turtle):
10671 Delete "Eek!" comment, since we fixed the bug to which it refers.
10673 2000-09-16 Martin Buchholz <martin@xemacs.org>
10675 * alloca.c: Replace REGISTER with register.
10677 2000-09-16 Daiki Ueno <ueno@unixuser.org>
10679 * file-coding.c (ucs_to_char): Use countof.
10681 2000-09-16 Martin Buchholz <martin@xemacs.org>
10683 * file-coding.c: (ucs_to_char):
10684 (complex_vars_of_file_coding):
10685 Use countof instead of sizeof.
10686 Use CHECK_NATNUM instead of CHECK_INT.
10688 * sysdep.c (strcasecmp): Remove.
10689 * device-x.c (ascii_strcasecmp): New.
10690 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10691 Avoid using non-standard non-portable strcasecmp.
10693 2000-09-16 Martin Buchholz <martin@xemacs.org>
10695 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10696 * font-lock.c: remove reference to emacsfns.h.
10697 * search.c: small doc improvement.
10698 * event-Xt.c: correct file names in comments.
10699 * console-x.h Correct file names in comments.
10700 * frame.c: Correct file names in comments.
10701 * event-stream.c: remove Energize from comments.
10703 2000-09-15 Martin Buchholz <martin@xemacs.org>
10705 * symeval.h (DEFERROR_STANDARD):
10708 (DEFSYMBOL_NO_DUMP):
10709 (DEFSYMBOL_MULTIWORD_PREDICATE):
10710 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10712 The construct &##name is not sensible C.
10713 Fixes compilation errors with Unixware native compiler.
10715 2000-09-14 Martin Buchholz <martin@xemacs.org>
10717 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10718 (next_frame_internal): Removed. We now just have next_frame.
10720 Write a simpler and cleaner one-pass algorithm.
10721 Remove called_from_delete_device arg and #ifdefed-out code.
10723 Renamed from prev_frame. Update callers.
10724 Cleaned up to have an analogous implementation to next_frame.
10725 (other_visible_frames_internal): Remove the
10726 called_from_delete_device bogus arg, and hence, remove this
10727 function. Just use other_visible_frames().
10729 * window.c (Fnext_window):
10730 Prettify docstring.
10731 Since next_frame() is guaranteed to return a frame, remove check
10732 for nil inserted in previous patch.
10733 (Fprevious_window):
10734 Prettify docstring.
10735 Make code look more like Fnext_window.
10737 Respect the `console' arg when iterating through windows.
10738 Fixes bug: (get-buffer-window buffer t device) not respecting
10740 This function needs more work, as others have pointed out.
10742 * frame.h: Rename prev_frame to previous_frame.
10743 device_matches_console_spec no longer takes a `frame' arg.
10748 Use EMACS_BLOCK_SIGNAL instead of sigblock.
10749 From "Golubev I. N." <gin@mo.msk.ru>.
10751 * make-src-depend: Fix typo.
10753 2000-09-13 Martin Buchholz <martin@xemacs.org>
10755 * window.c (Fnext_window):
10756 next_frame() might return nil, not a frame.
10758 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10760 * frame.c (next_frame_internal):
10761 We've passed a frame if we've passed its device.
10763 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10764 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10766 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
10768 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10769 Allow option to suppress accelerators in menu/dialog items.
10770 (populate_or_checksum_helper): Pass dialog title through above.
10772 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
10774 * event-msw.c (mswindows_key_to_emacs_keysym):
10775 Add "pause" key, fix "menu" key.
10777 2000-09-09 Martin Buchholz <martin@xemacs.org>
10779 * eval.c (reinit_vars_of_eval):
10780 Increase max_lisp_eval_depth to 1000,
10781 required for thai-xtis.el to byte-compile under some circumstances.
10783 2000-09-04 Martin Buchholz <martin@xemacs.org>
10785 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10786 From Kenichi Handa.
10788 2000-09-01 Martin Buchholz <martin@xemacs.org>
10790 * make-src-depend: Make the generated Makefiles smaller.
10792 * s/hpux.h (SETUP_SLAVE_PTY):
10793 Provide a %d in the format string for the errno argument.
10795 * editfns.c (Ftemp_directory):
10797 Avoid buffer overrun on very long file name.
10799 * input-method-xlib.c (XIM_init_device):
10800 6th parameter of XRegisterIMInstantiateCallback has different
10801 pointer types on different OSes, so simply cast to (void *).
10803 * unexhp9k800.c: Warning fixes. Fiddly changes.
10805 * sysdll.c (dll_open):
10806 shl_load will hang hard if passed a NULL filename.
10807 Simply return NULL for compatibility with dlopen.
10808 * sysdll.c: Conform to XEmacs coding standards.
10810 * sysdep.c (get_pty_max_bytes):
10811 Support pty input lines longer than 512 bytes on HP-UX 10.20.
10813 2000-08-31 Martin Buchholz <martin@xemacs.org>
10815 * tooltalk.c: Add #include <syssignal.h>
10817 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
10819 * s/hpux.h: Don't use undefined function sigunblock().
10821 2000-08-31 Martin Buchholz <martin@xemacs.org>
10823 * config.h.in: Add HAVE_BALLOON_HELP.
10824 * emacs.c: Use HAVE_BALLOON_HELP.
10825 * Makefile.in.in (x_objs):
10826 Make Balloon Help conditional on finding shape.h.
10828 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
10830 * syntax.c (regex_emacs_buffer_p): New variable.
10831 * syntax.h (regex_emacs_buffer_p): extern.
10832 * search.c (looking_at_1):
10834 (fast_string_match):
10835 (search_buffer): Set regex_emacs_buffer_p.
10836 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10837 when before_dot, at_dot, after_dot.
10839 2000-08-23 Andy Piper <andy@xemacs.org>
10841 * gui-x.c (popup_selection_callback): Only set action_occurred
10842 when we really have an image instance.
10843 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10845 2000-08-23 Andy Piper <andy@xemacs.org>
10847 * gui-msw.c (mswindows_handle_gui_wm_command): set
10849 * gui-x.c (popup_selection_callback): ditto.
10851 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10852 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10853 (struct Lisp_Image_Instance): add action_occurred flag.
10855 * glyphs.c (redisplay_subwindow): use action_occurred flag.
10856 (image_instance_changed): ditto.
10857 (reset_frame_subwindow_instance_cache): only unmap windows - do
10858 not remove them from the cache also.
10860 * glyphs-widget.c (tab_control_update): better debug.
10861 (progress_gauge_update): ditto.
10862 (layout_update): ditto.
10863 (layout_instantiate): ditto.
10864 (tab_control_order_only_changed): cope with null pending items.
10866 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10867 debug. Force selection of an item when an action occurred. Cope
10868 with null pending_items.
10869 (mswindows_progress_gauge_redisplay): better debug.
10870 * glyphs-x.c (x_tab_control_redisplay): ditto.
10872 * redisplay.c (redisplay_frame): reset the frame cache if the
10875 * window.c (Fset_window_configuration): potentially re-enable
10877 (window_unmap_subwindows): need to finalize instances here since
10878 it is only used in mark_window_as_deleted.
10880 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
10882 * nas.c (SndOpenDataForReading):
10883 nas.c (WaveOpenDataForReading):
10884 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10885 Somehow escaped from the 2000-08-14 patch.
10887 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
10889 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10890 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10892 2000-08-21 Andy Piper <andy@xemacs.org>
10894 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10895 window if it is not already displayed.
10897 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10898 it is not already displayed.
10900 * window.c (Fset_window_configuration): don't reset the frame
10903 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10904 instances from the frame cache if we are actually finalizing them.
10905 (reset_frame_subwindow_instance_cache): reset frame cache only
10906 after unmapping everything.
10907 (map_subwindow): set displayed flag after mapping.
10909 2000-08-21 Martin Buchholz <martin@xemacs.org>
10911 * data.c (indirect_function):
10912 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10914 * eval.c (function_argcount):
10915 Use original function when signaling errors.
10917 2000-08-18 Andy Piper <andy@xemacs.org>
10919 * frame.c (delete_frame_internal): use new
10920 free_frame_subwindow_instances name.
10922 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10923 (add_tab_item): make return type correct.
10924 (mswindows_tab_control_instantiate): assert index of tab.
10925 (mswindows_tab_control_redisplay): Re-code to use
10926 gui_item_equal_sans_selected and gui_item_list_find_selected.
10928 * glyphs-widget.c (tab_control_update): Correct comment.
10930 * window.c (window_unmap_subwindows): use new
10931 unmap_subwindow_instance_cache_mapper.
10932 (window_unmap_subwindows_cache_mapper): deleted.
10933 (Fset_window_configuration): comparisons should now be with
10934 EQ. Preserve the subwindow instance cache across configuration
10936 (allocate_window): ditto.
10937 (make_dummy_parent): ditto.
10939 * glyphs.c (free_frame_subwindow_instances): rename from
10940 free_frame_subwindow_instance_cache. finalize all instances rather
10941 than just those in the display cache.
10942 (finalize_all_subwindow_instances): walk windows unmapping and
10943 finalizing subwindows.
10944 (unmap_subwindow_instance_cache_mapper): moved from
10945 window.c. Allow finalization as well as unmapping.
10947 * gui.c (gui_item_list_find_selected): new function.
10949 * gui.h (gui_item_list_find_selected): declare.
10951 * glyphs-x.c (x_tab_control_redisplay): pick tab
10952 explicitly. Re-code to use gui_item_equal_sans_selected and
10953 gui_item_list_find_selected.
10955 * glyphs-x.h: add lwlib-utils.h
10957 * buffer.c (Frecord_buffer): undo previous change.
10959 2000-08-09 Vin Shelton <acs@xemacs.org>
10961 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10962 possible. Create temporary files more securely. The patch was
10963 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10964 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
10965 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10968 2000-08-07 Ben Wing <ben@xemacs.org>
10970 * getloadavg.c: remove duplicate (and windows-breaking)
10971 includes of fcntl.h and sys/file.h.
10973 * nt.c: remove duplicate getloadavg() definition.
10975 * sysdll.h (Qdll_filename_encoding): add missing stand-in
10978 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
10980 * eval.c (function_argcount): If function needs to be autoloaded
10981 actually use the loaded definition.
10984 2000-08-05 Ben Wing <ben@xemacs.org>
10986 * getloadavg.c: add prototype for getloadavg(). remove
10987 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10988 of the code). remove duplicate header includes.
10990 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10992 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10993 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10994 useful load average.
10996 * alloc.c (reinit_alloc_once_early): removed references to
10997 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10998 the lisp vars are the only things referencing the malloc_sbrk_*
10999 vars, and they were already if 0'd out. these vars only exist
11000 in the older malloc.c, which is basically unused, and they're
11001 only for informational purposes.
11003 * m\*.h: removed useless VIRT_ADDR_VARIES.
11005 * m\powerpc.h: removed stray NO_ARG_ARRAY.
11007 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
11009 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11010 color if the image is a mono pixmap.
11012 2000-07-30 Ben Wing <ben@xemacs.org>
11014 * Makefile.in.in (release):
11017 * buffer.c (directory_is_current_directory):
11018 * dired-msw.c (mswindows_get_files):
11020 * dired.c (Fdirectory_files):
11021 * dired.c (file_name_completion_stat):
11022 * dired.c (Ffile_attributes):
11023 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11024 preprocessor tricks, to avoid problems on some machines
11027 * callproc.c (egetenv): GC docs.
11030 * console-msw.h (struct mswindows_dialog_id):
11031 * lrecord.h (lrecord_type):
11032 New object for use with MSW dialogs.
11034 * console.h (struct console_methods):
11035 New enable/disable frame methods, for proper modal dialogs.
11037 * device-msw.c (msprinter_default_printer): Fix to follow
11038 proper Mule conventions.
11041 * device-msw.c (signal_open_printer_error):
11042 * device-msw.c (msprinter_init_device):
11043 * device-msw.c (ensure_not_printing):
11044 * device-msw.c (plist_get_margin):
11045 * device-msw.c (Fmsprinter_select_settings):
11046 * device-msw.c (finalize_devmode):
11047 * device-msw.c (Fmsprinter_settings_despecialize):
11048 * device-msw.c (signal_enum_priner_error):
11049 * extents.c (decode_extent):
11050 * extents.c (decode_map_extents_flags):
11051 * extents.c (decode_extent_at_flag):
11052 * extents.c (Fextent_at):
11053 * extents.c (Fextents_at):
11054 * extents.c (symbol_to_glyph_layout):
11055 [[[[2]]]] Use structured errors.
11058 * dialog-msw.c (mswindows_is_dialog_msg):
11059 * dialog-msw.c (mark_mswindows_dialog_id):
11060 * dialog-msw.c (dialog_proc):
11061 * dialog-msw.c (handle_question_dialog_box):
11062 * dialog-msw.c (syms_of_dialog_mswindows):
11063 Define new object to clean up marking; use it as a dialog identifier.
11064 Call new delete-dialog-box-hook.
11066 * dialog-x.c (dbox_selection_callback):
11067 * dialog-x.c (dbox_descriptor_to_widget_value):
11068 * dialog-x.c (x_make_dialog_box_internal):
11069 Call new delete-dialog-box-hook.
11073 * dialog.c (syms_of_dialog):
11074 * dialog.c (vars_of_dialog):
11075 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11078 * eval.c (signal_call_debugger):
11079 when noninteractive, output stack traces on the console instead
11080 of in a (never-seen) buffer.
11082 * eval.c (signal_type_error):
11083 * eval.c (invalid_argument_2):
11085 new funs for use w/structured errors.
11088 * event-Xt.c (x_to_emacs_keysym):
11089 * event-Xt.c (describe_event):
11090 * event-Xt.c (emacs_Xt_event_handler):
11091 * event-Xt.c (vars_of_event_Xt):
11093 * event-msw.c (mswindows_wnd_proc):
11094 * event-msw.c (vars_of_event_mswindows):
11095 rename {x,mswindows}-debug-events to debug-{}-events for
11096 consistency with other debug-foo variables.
11099 document next-event more clearly.
11101 * fileio.c (Ffile_name_directory):
11102 * fileio.c (Ffile_name_nondirectory):
11103 * fileio.c (Funhandled_file_name_directory):
11104 * fileio.c (file_name_as_directory):
11105 * fileio.c (Ffile_name_as_directory):
11106 * fileio.c (directory_file_name):
11107 * fileio.c (Fdirectory_file_name):
11108 * fileio.c (Fmake_temp_name):
11109 * fileio.c (Ffile_truename):
11110 * fileio.c (Fsubstitute_in_file_name):
11111 * fileio.c (expand_and_dir_to_file):
11112 * fileio.c (barf_or_query_if_file_exists):
11113 * fileio.c (check_executable):
11114 * fileio.c (Ffile_exists_p):
11115 * fileio.c (Ffile_writable_p):
11116 * fileio.c (Ffile_directory_p):
11117 * fileio.c (Ffile_regular_p):
11118 * fileio.c (Ffile_modes):
11119 * fileio.c (Ffile_newer_than_file_p):
11120 * fileio.c (Fverify_visited_file_modtime):
11121 * fileio.c (Fset_visited_file_modtime):
11122 * fileio.c (auto_save_1):
11127 * frame-msw.c (mswindows_init_frame_1):
11128 * frame-msw.c (mswindows_enable_frame):
11129 * frame-msw.c (error_frame_unsizable):
11130 * frame-msw.c (msprinter_init_frame_1):
11131 * frame-msw.c (msprinter_init_frame_3):
11132 * frame-msw.c (console_type_create_frame_mswindows):
11134 implement new enable/disable frame methods.
11137 * frame-x.c (x_enable_frame):
11138 * frame-x.c (console_type_create_frame_x):
11139 implement new enable/disable frame methods.
11142 * frame.c (Fdisable_frame):
11143 * frame.c (syms_of_frame):
11144 * frame.h (struct frame):
11145 implement new enable/disable frame methods/functions.
11150 * glyphs-msw.c (mswindows_widget_instantiate):
11151 comment that initial-focus should be implemented.
11154 * glyphs-widget.c (check_valid_instantiator):
11155 * glyphs-widget.c (check_valid_orientation):
11156 * glyphs-widget.c (check_valid_tab_orientation):
11157 * glyphs-widget.c (check_valid_justification):
11158 * glyphs-widget.c (check_valid_border):
11159 * glyphs-widget.c (check_valid_callback):
11160 * glyphs-widget.c (check_valid_int_or_function):
11161 * glyphs-widget.c (check_valid_string_or_vector):
11162 * glyphs-widget.c (check_valid_item_list_1):
11163 * glyphs-widget.c (widget_validate):
11164 * glyphs-widget.c (combo_box_validate):
11165 * glyphs-widget.c (widget_instantiate):
11166 * glyphs-widget.c (syms_of_glyphs_widget):
11167 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11168 * glyphs-widget.c (image_instantiator_combo_box):
11169 * glyphs-widget.c (image_instantiator_scrollbar):
11170 * glyphs-widget.c (image_instantiator_tab_control):
11171 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11173 support (unimplemented) keyword initial-focus.
11174 reindent long macros.
11176 * glyphs-x.c (x_redisplay_widget):
11177 * glyphs-x.c (x_button_instantiate):
11178 * glyphs-x.c (x_button_redisplay):
11179 * glyphs-x.c (x_progress_gauge_instantiate):
11180 * glyphs-x.c (x_edit_field_instantiate):
11181 * glyphs-x.c (x_combo_box_instantiate):
11182 * glyphs-x.c (x_tab_control_instantiate):
11183 * glyphs-x.c (x_label_instantiate):
11185 * gui-x.c (button_item_to_widget_value):
11186 * gui-x.c (gui_items_to_widget_values_1):
11187 * gui-x.c (gui_item_children_to_widget_values):
11188 * gui-x.c (gui_items_to_widget_values):
11190 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11191 add new flag to gui-parsing routines to indicate whether
11192 accelerator specs should be supported.
11194 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11196 * glyphs.h (struct Lisp_Image_Instance):
11197 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11198 add initial-focus flag.
11201 * gui.c (syms_of_gui):
11202 * gui.c (vars_of_gui):
11203 clean up menu-no-selection-hook.
11206 support delete-dialog-box-hook.
11208 * lread.c (Fload_internal):
11209 * lread.c (locate_file_in_directory_mapper):
11213 * lrecord.h (struct toolbar_button):
11214 * lrecord.h (syms_of_toolbar):
11215 document how to create a new object.
11217 * menubar-msw.c (mswindows_char_is_accelerator):
11218 may be called on frames w/o menus.
11220 * menubar.c (vars_of_menubar):
11221 clean up :filter docs.
11228 * process-nt.c (validate_signal_number):
11229 * process-nt.c (signal_cannot_launch):
11230 * process-nt.c (nt_create_process):
11231 * process-nt.c (nt_send_process):
11232 * process-nt.c (nt_kill_child_process):
11233 * process-nt.c (nt_open_network_stream):
11234 * process-nt.c (syms_of_process_nt):
11236 delete quote-handling. call new lisp code that does it better.
11238 * process-unix.c (connect_to_file_descriptor):
11239 * process-unix.c (allocate_pty):
11240 * process-unix.c (unix_send_process):
11241 * process-unix.c (unix_kill_child_process):
11242 * process-unix.c (unix_open_network_stream):
11243 * process-unix.c (unix_open_multicast_group):
11247 * process.c (Fstart_process_internal):
11248 (2). need to canonicalize process path even if absolute.
11250 * select-msw.c (symbol_to_ms_cf):
11251 * select-msw.c (ms_cf_to_symbol):
11252 * select-msw.c (cf_is_autofreed):
11253 * select-msw.c (mswindows_destroy_selection):
11255 * select.c (syms_of_select):
11257 support dibv5, fix bugs. (from Mike Alexander)
11259 * select.c (Fget_selection_internal):
11260 * select.c (select_convert_out):
11263 * sysdep.c (xemacs_stat):
11266 * sysdep.c (mkdir):
11267 * sysdep.c (rmdir):
11268 but keep original stat() here because we provide encapsulation
11272 * sysfile.h (fstat):
11273 remove stat garbage.
11276 fix X/MSW conflict.
11277 don't include tchar.h. it's inappropriate because it makes
11278 compile-time distinctions when we want runtime distinctions.
11279 (we provide our own tchar replacements)
11282 use default object printer for toolbar-button.
11285 make sure we don't encapsulate.
11287 * window.c (vars_of_window):
11288 emphasize that temp-buffer-show-hook is obsolete.
11290 2000-08-05 Martin Buchholz <martin@xemacs.org>
11292 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11293 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11295 * events.c (Fevent_timestamp_lessp):
11296 Not 64-bit clean. Use EMACS_INT, not int.
11298 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
11300 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11301 unsigned int and changed the last enum to
11302 lrecord_type_last_built_in_type.
11303 (lrecord_implementations_table): changed prototype to know how
11304 long the array is supposed to be.
11305 (lrecord_type_count): new unsigned int to keep track of the
11306 current number of lisp lrecord types.
11307 (DEFINE_EXTERNAL_LRECORD):
11308 (DECLARE_EXTERNAL_LRECORD): Added these two for external
11309 dynamic-modules to declare new lisp types. They are the same
11310 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11311 int for each new type, and increment lrecord_type_count by 1.
11313 * alloc.c (lrecord_implementations_table): Changed to reference
11314 lrecord_type_last_built_in_type for the size of the array.
11315 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11317 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
11319 * glyphs.h (check_valid_item_list): Renamed from
11320 check_valid_item_list_1.
11322 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11324 * select.c (Qselect_coerce): New.
11325 * select.c (Vselection_coercion_alist): New.
11326 * select.c (syms_of_select): Declare.
11327 * select.c (get-selection-internal): Use it.
11328 Use the new select-coerce functionality.
11330 * select.c (select_coerce): New.
11331 * select.h (select_coerce): Declare.
11332 New function to coerce one type of data into another.
11334 2000-08-03 Martin Buchholz <martin@xemacs.org>
11336 * callproc.c (Fcall_process_internal):
11337 (Fcall_process_internal):
11338 * process-unix.c (unix_create_process):
11339 Save and restore the value of errno, so that error messages are accurate.
11341 2000-08-01 Martin Buchholz <martin@xemacs.org>
11343 * elhash.c (print_hash_table):
11344 Fix printing of hash tables to also use `key-and-value' instead of `t'.
11345 Prettify docstrings and indentation.
11347 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
11349 * window.c (Fwindow_pixel_edges): Subtract frame border and
11352 2000-07-31 Andy Piper <andy@xemacs.org>
11354 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11355 will acknowledge the change.
11357 * glyphs.h: declare tab_control_order_only_changed.
11359 * glyphs-x.c (x_tab_control_redisplay): use
11360 tab_control_order_only_changed.
11362 * glyphs-widget.c (tab_control_order_only_changed): new function.
11364 * glyphs-msw.c (mswindows_tab_control_redisplay): use
11365 tab_control_order_only_changed.
11367 * gui.c (gui_item_equal_sans_selected): new function.
11368 (gui_item_equal): use it.
11370 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11371 :properties in favor of :items..
11373 * glyphs-widget.c (check_valid_item_list): rename from
11374 check_valid_item_list_1.
11375 (check_valid_item_list_1): renamed.
11376 (combo_box_validate): deprecate :properties in favor of :items.
11377 (widget_instantiate): ditto.
11378 (tab_control_update): ditto.
11379 (image_instantiator_combo_box): ditto.
11380 (image_instantiator_tree_view): ditto.
11381 (image_instantiator_tab_control): ditto.
11382 (layout_post_instantiate): remove dead code.
11384 * print.c (debug_print_no_newline): only write to debugger if in
11387 * elhash.c (Fmake_hash_table): update doc string.
11389 * event-msw.c (mswindows_wnd_proc): don't allow processing of
11390 messages whilst in GC. This at least stops XEmacs crashing but has
11391 the potential for wierd behaviour.
11393 2000-07-31 Martin Buchholz <martin@xemacs.org>
11396 Make existence of s&m files optional.
11398 * s/bsd386.h: Remove HAVE_GETLOADAVG.
11399 * s/freebsd.h: Remove HAVE_GETLOADAVG.
11400 * s/gnu.h: Remove HAVE_GETLOADAVG.
11401 * s/netbsd.h: Remove HAVE_GETLOADAVG.
11402 * s/sol2.h: Remove HAVE_GETLOADAVG.
11403 * lisp.h: Remove getloadavg() declaration.
11405 Include <sys/loadavg.h> if available.
11406 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11407 * config.h.in: Group together getloadavg()-related macros.
11408 Use only configure-time tests to detect getloadavg().
11410 2000-07-30 Martin Buchholz <martin@xemacs.org>
11412 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11414 2000-07-25 Andy Piper <andy@xemacs.org>
11416 * syswindows.h: add tchar.h for native builds.
11418 * frame.c (syms_of_frame): remove set-glyph-image.
11420 * general-slots.h: add Qset_glyph_image.
11422 * glyphs-widget.c (layout_update): add domain arg to
11424 (syms_of_glyphs_widget): remove set-glyph-image.
11426 2000-07-23 Ben Wing <ben@xemacs.org>
11428 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11431 2000-07-22 Andy Piper <andy@xemacs.org>
11433 * symsinit.h: add syms_of_win32().
11435 * gui-msw.c (syms_of_gui_mswindows): remove
11436 Fmswindows_shell_execute.
11437 (Fmswindows_shell_execute): moved to win32.c.
11439 * emacs.c (main_1): add syms_of_win32 ().
11441 * win32.c (init_potentially_nonexistent_functions): rewrite in
11442 compiler-friendly terms.
11443 (Fmswindows_shell_execute): move here from gui-msw.c.
11444 (syms_of_win32): new.
11446 * device-msw.c (Fmswindows_printer_list): clean up args to
11448 Don't include tchar under cygwin or mingw.
11449 (msprinter_default_printer): make cygwin-friendly.
11451 2000-07-21 Andy Piper <andy@xemacs.org>
11453 * glyphs-widget.c (image_instantiator_tree_view): use tab
11454 control's update function.
11455 (layout_property): new function. Retrieve items.
11457 * glyphs-msw.c (mswindows_tree_view_redisplay): new
11458 function. Re-populate the tree view from the pending items.
11460 * glyphs.c (instantiate_image_instantiator): Make sure the domain
11461 is designated the parent if the domain is an image instance. This
11462 is needed so that dirtiness can be cascade up the hierarchy and
11463 thus for layout children to be redisplayed correctly.
11464 (allocate_image_instance): rename glyph -> parent.
11466 * redisplay.h: change redisplay_output_layout signature.
11468 * redisplay-msw.c (mswindows_output_display_block): use domain
11471 * redisplay-x.c (x_output_display_block): use domain arg.
11473 2000-07-10 Andy Piper <andy@xemacs.org>
11475 * window.c (Fset_window_configuration): add comment.
11477 * redisplay-output.c (compare_runes):
11478 (redisplay_output_subwindow): redisplay rather than update subwindow.
11479 (redisplay_output_layout): ditto.
11481 * redisplay-msw.c (mswindows_frame_output_end):
11482 (mswindows_frame_output_end): make defer window pos optional.
11484 * lisp.h: add Flast.
11486 * glyphs.h (struct image_instantiator_methods): add dest_mask top
11487 normalize method. Change update method to be for changed
11488 instantiators. Add redisplay method. Change signature of layout
11490 (struct Lisp_Image_Instance): add instantiator.
11491 (IMAGE_INSTANCE_INSTANTIATOR): new.
11492 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11493 (XIMAGE_INSTANCE_INSTANTIATOR): new.
11494 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11497 (find_instantiator_differences): new function.
11498 (Fset_instantiator_property): new convenience function.
11499 (check_image_instance_structure): strictly check for vector
11501 (normalize_image_instantiator): make non-static.
11502 (instantiate_image_instantiator): pass on dest_mask and use new
11503 signatures for image_instance_layout and friends.
11504 (mark_image_instance): mark the instantiator. Mark the subwindow
11505 face not the widget face.
11506 (image_instance_equal): add instantiator.
11507 (image_instance_hash): ditto.
11508 (allocate_image_instance): ditto.
11509 (Fset_image_instance_property): removed.
11510 (Fimage_instance_file_name): ditto.
11511 (Fcolorize_image_instance): ditto.
11512 (image_instance_layout): add offsets to be set.
11513 (update_image_instance): new function. update an image instance
11514 from its changed instantiator.
11515 (inherit_normalize): add dest_mask.
11516 (xbm_normalize): ditto.
11517 (xface_normalize): ditto.
11518 (xpm_normalize): ditto.
11519 (text_update): set_property -> update.
11520 (image_instantiate): use the glyph identity as a hash key, not the
11522 (glyph_width): use new image_instance_layout signature.
11523 (glyph_ascent): ditto.
11524 (glyph_descent): ditto.
11525 (glyph_height): ditto.
11526 (glyph_query_geometry): ressurrect.
11527 (glyph_layout): ditto.
11528 (redisplay_subwindow): update -> redisplay.
11529 (syms_of_glyphs): add Fset_instantiator_property.
11530 (image_instantiator_format_create): set_property -> update.
11533 (autodetect_normalize): add dest_maks to signature.
11534 (x_redisplay_subwindow): update -> redisplay.
11535 (x_redisplay_widget): ditto.
11536 (x_button_redisplay): ditto.
11537 (x_progress_gauge_redisplay): ditto.
11538 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11540 (console_type_create_glyphs_x): update -> redisplay.
11541 (image_instantiator_format_create_glyphs_x): ditto.
11544 (check_valid_instantiator): disallow glyphs in the instantiator,
11545 they must now be vectors.
11546 (check_valid_instantiator_list): ditto.
11547 (glyph_instantiator_to_glyph): use internal symbol rather than
11549 (widget_update): renamed from widget_set_property. Call cascaded
11551 (redisplay_widget): renamed from update_widget.
11552 (widget_layout): image_instance_layout now takes position as well
11554 (widget_normalize): ditto.
11555 (widget_instantiate): ditto.
11556 (tab_control_query_geometry) ditto.:
11557 (tab_control_update): renamed from tab_control_set_property.
11558 (progress_gauge_update): set_property -> update.
11559 (layout_normalize): rewrite so that child instantiators are
11561 (layout_update): new function. Create glyphs from the normalized
11562 children and cope with any other layout keywords. We do not
11563 instantiate children here that will be take care of by
11564 redisplay_output_layout.
11565 (layout_instantiate): call layout_update and not much else.
11566 (layout_post_instantiate): not sure whether this is needed
11568 (layout_query_geometry): query glyph geometry rather than
11569 image_instance geometry.
11570 (layout_layout): set offsets from pass in parameters. Use glyph
11571 geometry and layout functions rather than image instance ones.
11572 (native_layout_layout): ditto.
11573 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11574 (image_instantiator_widget): set_property -> update.
11575 (image_instantiator_buttons): ditto.
11576 (image_instantiator_progress_guage): ditto.
11577 (image_instantiator_tab_control): ditto.
11578 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11579 (image_instantiator_layout): add update method.
11581 * glyphs-msw.c (bmp_normalize):
11582 (mswindows_resource_normalize): add dest_mask so that it can be
11583 proprogated by layout_normalize.
11584 (begin_defer_window_pos): make optional because it may not be the
11585 right thing to do and it introduces differences with X.
11586 (mswindows_unmap_subwindow): ditto.
11587 (mswindows_map_subwindow): ditto.
11588 (mswindows_redisplay_subwindow): renamed from
11589 mswindows_update_subwindow.
11590 (mswindows_redisplay_widget): ditto.
11591 (mswindows_button_redisplay): renamed from
11592 mswindows_button_update. Update is now what the instantiation
11593 function does for a changed instantiator.
11594 (mswindows_progress_gauge_instantiate): set the progress value
11595 here if appropriate.
11596 (mswindows_tab_control_redisplay): cope with re-ordering of the
11597 members of the tab widget by simply selecting the new top
11598 widget. This makes things appear ok if you click on a tab.
11599 (mswindows_combo_box_instantiate): image_instance_layout now takes
11600 position as well as size.
11601 (mswindows_progress_gauge_redisplay): renamed from
11602 mswindows_progress_gauge_update.
11603 (console_type_create_glyphs_mswindows): fix update -> redisplay.
11604 (image_instantiator_format_create_glyphs_mswindows): ditto.
11606 * glyphs-eimage.c (jpeg_normalize):
11609 (tiff_normalize): add dest_mask so that it can be proprogated by
11613 (print_hash_table):
11614 (hash_table_weakness_validate):
11615 (decode_hash_table_weakness):
11616 (Fhash_table_weakness):
11617 (Fhash_table_type):
11618 (syms_of_elhash): use Ben's naming scheme for hashtable types..
11620 * console.h (struct console_methods): move update_* to
11623 2000-07-20 Ben Wing <ben@xemacs.org>
11625 * *.[ch] (XSETOBJ): remove unused middle argument.
11626 lisp-disunion.h: correct wrap_object() to one argument.
11628 2000-07-15 Ben Wing <ben@xemacs.org>
11631 * s/cygwin32.h (CYGWIN_CONV_PATH):
11632 Add missing logb prototype for v1.1.
11633 Use post-b20 names and alias to pre-b20 names when pre-b20.
11635 * s/windowsnt.h: [5].
11637 2000-07-15 Ben Wing <ben@xemacs.org>
11639 * Makefile.in.in (x_objs):
11640 * Makefile.in.in (sheap_objs):
11641 * Makefile.in.in (objs):
11642 added win32.o, cosmetic cleanups.
11644 * alloc.c (Fmake_byte_code):
11645 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11646 etc. macros which declare their own args now.
11648 * alloc.c (syms_of_alloc):
11649 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11652 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11654 * buffer.c (Fget_file_buffer):
11655 Fixed GCPRO problem.
11657 * buffer.c (get_truename_buffer):
11658 Fixed comment about GC checking.
11660 * buffer.c (syms_of_buffer):
11661 Undeclared those dedicated frame funs.
11665 Define convenience macros for internal/external conversions.
11666 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11667 and Qenvironment_variable_encoding for cleaner code.
11670 Remove dedicated-frame; in lisp.
11672 * bytecode.c (funcall_compiled_function):
11675 * bytecode.c (syms_of_bytecode):
11679 * console-msw.c (mswindows_show_console): Rewrote.
11681 * console-msw.c (Fmswindows_debugging_output): New.
11682 Sends to OutputDebugString (special MSWin debugger interface).
11684 * console-msw.c (Fmswindows_message_box):
11685 Fixed stupid bugs so it works when called from kill-emacs.
11687 * console-msw.c (syms_of_console_mswindows):
11688 Declare Fmswindows_debugging_output.
11691 New MSWin prototypes.
11693 * console-msw.h (struct mswindows_frame):
11694 New entry last-click-mods for improved button-modifier support.
11696 * console-msw.h (FRAME_MSWINDOWS_POPUP):
11697 New struct entry `popup' with corresponding accessor.
11700 * console-x.c (split_up_display_spec):
11701 * console-x.c (get_display_arg_connection):
11702 * console-x.c (x_semi_canonicalize_console_connection):
11703 * console-x.c (x_canonicalize_device_connection):
11704 [[[6]]]: Change char to more specific type.
11705 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11707 * console-x.c (x_semi_canonicalize_console_connection):
11708 * console-x.c (x_canonicalize_device_connection):
11709 [[[9]]]: Fix up error signalling to use new structured error system.
11712 [[[4]]]: Define codesys aliases:
11713 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11714 Qx_color_name_encoding, Qx_display_name_encoding.
11716 * console.h (struct console_methods):
11717 New method make_dialog_box_internal supersedes older
11718 popup_dialog_box method.
11721 Define many new errors, part of new structured errors.
11723 * data.c (init_errors_once_early):
11724 * data.c (syms_of_data):
11727 * device-msw.c (mswindows_init_device):
11728 [[[5]]]: Cleanup to support NT 3.51.
11730 * device-msw.c (decode_devmode): Cleanup.
11732 * device-msw.c (mswindows_handle_print_setup_dialog_box):
11733 * device-msw.c (mswindows_handle_print_dialog_box):
11734 * device-msw.c (mswindows_handle_page_setup_dialog_box):
11735 * device-msw.c (syms_of_device_mswindows):
11736 Delete the dialog box primitives recently introduced by Kirill and
11737 instead interface to general dialog box interface.
11740 * device-x.c (compute_x_app_name):
11741 * device-x.c (x_init_device):
11742 * device-x.c (Fx_valid_keysym_name_p):
11743 * device-x.c (Fx_set_font_path):
11747 * device.h (wrap_device): New.
11748 First of its kind; meant to replace XSETDEVICE.
11750 * dialog-msw.c: Many file-dialog symbols.
11752 * dialog-msw.c (mswindows_register_popup_frame): New.
11753 * dialog-msw.c (mswindows_is_dialog_msg): New.
11754 For supporting kbd traversal in dialog boxes.
11756 * dialog-msw.c (dialog_proc):
11757 Support hitting ESC in dialogs.
11759 * dialog-msw.c (struct):
11760 Common dialog box errors.
11762 * dialog-msw.c (handle_file_dialog_box): New.
11763 Add file dialog code.
11765 * dialog-msw.c (handle_question_dialog_box):
11766 Redo existing code to support new question dialog syntax.
11768 * dialog-msw.c (console_type_create_dialog_mswindows):
11769 We support new dialog console method.
11771 * dialog-msw.c (syms_of_dialog_mswindows):
11772 * dialog-msw.c (vars_of_dialog_mswindows):
11773 New file dialog symbols, vars.
11776 * dialog-x.c (maybe_run_dbox_text_callback):
11777 * dialog-x.c (dbox_descriptor_to_widget_value):
11778 * dialog-x.c (x_make_dialog_box_internal):
11779 * dialog-x.c (console_type_create_dialog_x):
11780 Mule-ize entire file.
11781 Redo to support question dialog syntax.
11785 * dialog.c (Fmake_dialog_box_internal):
11786 * dialog.c (syms_of_dialog):
11787 Kill old popup-dialog-box, replace with new primitive.
11788 Just call device method or signal error.
11790 * eldap.c (Fldap_open):
11791 * eldap.c (Fldap_search_basic):
11792 * eldap.c (Fldap_add):
11793 * eldap.c (Fldap_modify):
11798 * emacs.c (make_arg_list_1):
11799 * emacs.c (make_arg_list):
11800 Mule-ize call to dll_init().
11804 * emacs.c (make_argc_argv):
11805 * emacs.c (free_argc_argv):
11806 * emacs.c (init_cmdargs):
11807 * emacs.c (main_1):
11808 * emacs.c (Fkill_emacs):
11809 * emacs.c (Fdump_emacs):
11810 Update comments about what can be used in syms_* etc.
11811 Call init_win32() when necessary.
11812 Fix up MS Win dialog box in kill-buffer to actually work right.
11823 * eval.c (condition_case_3):
11825 * eval.c (function_argcount):
11826 * eval.c (funcall_lambda):
11829 * eval.c (type_error): New.
11830 * eval.c (maybe_type_error): New.
11831 * eval.c (continuable_type_error): New.
11832 * eval.c (maybe_continuable_type_error): New.
11833 * eval.c (type_error_with_frob): New.
11834 * eval.c (maybe_type_error_with_frob): New.
11835 * eval.c (continuable_type_error_with_frob): New.
11836 * eval.c (maybe_continuable_type_error_with_frob): New.
11837 New functions for use with structured errors.
11840 * event-Xt.c (x_event_to_emacs_event):
11841 Buttons are now modifiers too.
11843 * event-Xt.c (emacs_Xt_current_event_timestamp):
11844 Implement new event method.
11845 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11848 * event-msw.c (ntpipe_shove_writer): [5].
11849 * event-msw.c (mswindows_enqueue_mouse_button_event):
11850 * event-msw.c (mswindows_drain_windows_queue):
11851 * event-msw.c (mswindows_wnd_proc): [7].
11852 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11853 * event-msw.c (mswindows_modifier_state):
11854 Throughout: support new button modifiers.
11856 * event-msw.c (emacs_mswindows_current_event_timestamp):
11857 Implement new event method.
11858 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11861 * event-stream.c (event_stream_current_event_timestamp): New.
11862 * event-stream.c (maybe_kbd_translate): New functionality.
11863 * event-stream.c (vars_of_event_stream):
11864 Document new kbd-translate-table functionality.
11866 * event-stream.c (Fcurrent_event_timestamp): New.
11867 New primitive for use in fabricated events.
11868 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11870 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11873 * events.c (Fmake_event):
11874 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11878 * events.c (format_event_object): fix gcc warnings.
11880 * events.c (Fevent_timestamp): Document new primitives.
11882 * events.c (TIMESTAMP_HALFSPACE): New.
11884 * events.c (Fevent_timestamp_lessp): New. New primitive for
11885 comparing timestamps correctly (half-space algorithm).
11887 * events.c (Fevent_modifier_bits): Doc fix.
11889 * events.c (Fevent_modifiers): Major doc addition.
11890 * events.c (event_x_y_pixel_internal): Typo fix.
11891 * events.c (syms_of_events): Declare new primitives.
11894 Update long comment for button modifiers, timestamps.
11896 * events.h (struct event_stream):
11897 New current_event_timestamp method.
11900 * extents.c (extent_in_region_p):
11901 * extents.c (decode_extent):
11902 * extents.c (Fset_extent_parent):
11903 * extents.c (decode_map_extents_flags):
11907 * extents.c (struct extent_at_arg):
11908 * extents.c (decode_extent_at_flag):
11909 * extents.c (extent_at_mapper):
11910 * extents.c (extent_at_bytind):
11911 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11912 * extents.c (Fextents_at): New primitive. [9].
11913 * extents.c (symbol_to_glyph_layout): [9].
11914 Support new primitive `extents-at'.
11917 * extents.c (get_text_property_bytind):
11918 extent_at_bytind has another arg.
11921 * extents.c (syms_of_extents): New primitive.
11923 * file-coding.c (Fmake_coding_system): [1].
11924 * file-coding.c (subsidiary_coding_system): fix gcc warning
11925 * file-coding.c (syms_of_file_coding): [2].
11927 * fileio.c (Fexpand_file_name):
11928 * fileio.c (Fsysnetunam):
11929 * fileio.c (Ffile_exists_p):
11930 * fileio.c (Ffile_executable_p):
11931 * fileio.c (Fverify_visited_file_modtime):
11934 * fileio.c (syms_of_fileio): [2].
11936 * filelock.c (lock_file_1):
11937 * filelock.c (current_lock_owner):
11938 * filelock.c (lock_if_free):
11939 * filelock.c (lock_file):
11940 * filelock.c (unlock_file):
11943 * fns.c (concat): Fix gcc warning.
11946 * fns.c (Fold_member):
11948 * fns.c (Fold_memq):
11949 * fns.c (memq_no_quit):
11951 * fns.c (Fold_assoc):
11953 * fns.c (Fold_assq):
11954 * fns.c (assq_no_quit):
11956 * fns.c (Fold_rassoc):
11958 * fns.c (Fold_rassq):
11959 * fns.c (rassq_no_quit):
11961 * fns.c (Fold_delete):
11963 * fns.c (Fold_delq):
11964 * fns.c (delq_no_quit):
11965 * fns.c (Fremassoc):
11966 * fns.c (Fremassq):
11967 * fns.c (remassq_no_quit):
11968 * fns.c (Fremrassoc):
11969 * fns.c (Fremrassq):
11970 * fns.c (remrassq_no_quit):
11971 * fns.c (Freverse):
11975 * frame-msw.c (mswindows_init_frame_1):
11976 * frame-msw.c (mswindows_delete_frame):
11977 Register popups with dialog code so keyboard traversing works.
11979 * frame-tty.c (tty_raise_frame_no_select): [1].
11982 * frame-x.c (x_set_frame_text_value):
11983 * frame-x.c (x_set_frame_properties):
11984 * frame-x.c (x_create_widgets):
11988 * frame.c (Fmouse_pixel_position): Minor doc fixes.
11990 * frame.h (wrap_frame): New.
11991 Macro like wrap_device.
11994 * general.c (SYMBOL):
11995 * general.c (syms_of_general):
11996 Major reorg. This is now just a wrapper and symbols themselves
11997 are listed in general-slots.h.
11999 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12000 * glyphs-msw.c (mswindows_resource_instantiate): [5].
12002 * glyphs-msw.c (mswindows_native_layout_instantiate):
12003 Add DS_CONTROL so keyboard traversal will work.
12006 * glyphs-widget.c (syms_of_glyphs_widget):
12007 Move some symbols to general-slots.h.
12010 * glyphs-x.c (xbm_instantiate_1):
12011 * glyphs-x.c (x_xbm_instantiate):
12012 * glyphs-x.c (x_xface_instantiate):
12013 * glyphs-x.c (autodetect_instantiate):
12014 * glyphs-x.c (cursor_font_instantiate):
12015 * glyphs-x.c (x_update_widget):
12016 * glyphs-x.c (x_widget_instantiate):
12017 * glyphs.c (bitmap_to_lisp_data):
12018 * glyphs.c (pixmap_to_lisp_data):
12021 * glyphs.c (syms_of_glyphs):
12025 * gui-x.c (print_widget_value):
12026 * gui-x.c (menu_separator_style_and_to_external):
12027 * gui-x.c (add_accel_and_to_external):
12028 * gui-x.c (button_item_to_widget_value):
12029 * gui-x.c (gui_items_to_widget_values_1):
12030 * gui-x.c (gui_items_to_widget_values):
12031 * gui-x.c (syms_of_gui_x):
12032 * gui-x.c (vars_of_gui_x):
12033 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
12037 Muleize, prototype changes matching gui-x.c.
12040 * gui.c (separator_string_p):
12041 * gui.c (gui_item_add_keyval_pair):
12042 * gui.c (make_gui_item_from_keywords_internal):
12043 * gui.c (signal_too_long_error):
12044 * gui.c (parse_gui_item_tree_item):
12045 * gui.c (syms_of_gui):
12046 * gui.c (vars_of_gui):
12048 menu-no-selection-hook moved here (used by MSWin).
12049 Move some symbols to general-slots.h.
12053 * insdel.c (get_buffer_pos_char):
12054 * insdel.c (get_buffer_range_char):
12057 * keymap.c (keymap_lookup_directly):
12058 * keymap.c (keymap_store):
12059 * keymap.c (ensure_meta_prefix_char_keymapp):
12060 * keymap.c (describe_map):
12062 Support new button modifiers.
12064 * lisp-disunion.h (wrap_object):
12065 * lisp-disunion.h (XSETOBJ):
12066 Rename make_obj to wrap_object.
12069 * lisp-union.h (make_int):
12070 * lisp-union.h (make_char):
12071 Support wrap_object.
12074 * lisp.h (LIST_LOOP):
12075 * lisp.h (EXTERNAL_LIST_LOOP):
12076 * lisp.h (LIST_LOOP_2):
12077 * lisp.h (EXTERNAL_LIST_LOOP_1):
12078 * lisp.h (EXTERNAL_LIST_LOOP_2):
12079 * lisp.h (EXTERNAL_LIST_LOOP_3):
12080 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12081 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12082 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12083 * lisp.h (EXTERNAL_ALIST_LOOP_5):
12084 * lisp.h (EXTERNAL_ALIST_LOOP_6):
12085 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12086 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12087 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12088 * lisp.h (struct Lisp_Symbol):
12089 * lisp.h (maybe_continuable_error_with_frob):
12090 Fix up section comments.
12091 Add new types for char to indicate usage.
12092 Delete symbols auto-generated from general-slots.h.
12093 Add prototypes for structured error functions.
12094 Add long comments describing looping macros and change interface
12095 so that lvalues are automatically declared.
12096 Add NO_DECLARE macro in case callers want to declare lvalues
12099 * lread.c (read_syntax_error):
12100 * lread.c (continuable_read_syntax_error):
12101 * lread.c (read_structure):
12102 * lread.c (sequence_reader):
12103 * lread.c (read_list_conser):
12104 * lread.c (read_compiled_function):
12105 Rename syntax_error and continuable_syntax_error to avoid clash
12106 with same-named structured error functions.
12108 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12109 * menubar-msw.c (populate_menu_add_item):
12110 * menubar-msw.c (populate_or_checksum_helper):
12115 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12116 Mule-ize whole file.
12118 * menubar.c (Fnormalize_menu_item_name): Add optimization.
12120 * mule-charset.c (Fmake_charset):
12121 * mule-wnnfns.c (Fwnn_set_param):
12124 * ntproc.c (create_child):
12125 * ntproc.c (Fwin32_set_current_locale):
12126 Add comments portending doom.
12129 * objects-msw.c (old_font_enum_callback_2):
12130 * objects-msw.c (font_enum_callback_1):
12131 * objects-msw.c (mswindows_enumerate_fonts):
12135 * objects-x.c (allocate_nearest_color):
12136 * objects-x.c (x_parse_nearest_color):
12137 * objects-x.c (x_initialize_color_instance):
12138 * objects-x.c (x_print_color_instance):
12139 * objects-x.c (x_finalize_color_instance):
12140 * objects-x.c (x_valid_color_name_p):
12141 * objects-x.c (x_initialize_font_instance):
12142 * objects-x.c (x_print_font_instance):
12143 * objects-x.c (valid_x_font_name_p):
12144 * objects-x.c (truename_via_FONT_prop):
12145 * objects-x.c (truename_via_random_props):
12146 * objects-x.c (truename_via_XListFonts):
12147 * objects-x.c (x_font_truename):
12148 * objects-x.c (x_font_instance_truename):
12149 * objects-x.c (x_font_instance_properties):
12150 * objects-x.c (x_list_fonts):
12151 * objects-x.c (x_find_charset_font):
12152 Mule-ize entire file.
12159 * print.c (std_handle_out_external):
12160 * print.c (debug_print_no_newline):
12161 * print.c (syms_of_print):
12162 Output to all debugger kinds in debug-print.
12163 Fix console-output code under MSWin to actually work.
12165 * process-nt.c (send_signal):
12166 * process-nt.c (nt_create_process):
12167 Use newer Unicode macros.
12169 * process-unix.c (unix_create_process):
12170 * process-unix.c (unix_canonicalize_host_name):
12171 * process-unix.c (unix_open_network_stream):
12177 * search.c (syms_of_search):
12180 * select-msw.c (mswindows_destroy_selection):
12183 * select-x.c (symbol_to_x_atom):
12186 * select.c (syms_of_select):
12189 * sound.c (Fplay_sound_file):
12193 * specifier.c (decode_specifier_type):
12194 * specifier.c (Fvalid_specifier_locale_type_p):
12195 * specifier.c (check_valid_locale_or_locale_type):
12196 * specifier.c (decode_locale):
12197 * specifier.c (decode_locale_type):
12198 * specifier.c (decode_locale_list):
12199 * specifier.c (check_valid_domain):
12200 * specifier.c (decode_specifier_tag_set):
12201 * specifier.c (Fcanonicalize_tag_set):
12202 * specifier.c (Fdefine_specifier_tag):
12203 * specifier.c (Fspecifier_tag_predicate):
12204 * specifier.c (check_valid_inst_list):
12205 * specifier.c (check_valid_spec_list):
12206 * specifier.c (decode_how_to_add_specification):
12207 * specifier.c (check_modifiable_specifier):
12208 * specifier.c (specifier_add_spec):
12209 * specifier.c (boolean_validate):
12210 * specifier.c (display_table_validate):
12213 * specifier.c (syms_of_specifier):
12214 Move some symbols to general-slots.h.
12218 * symbols.c (Fmapatoms):
12219 * symbols.c (Fapropos_internal):
12222 * symbols.c (set_default_buffer_slot_variable):
12223 * symbols.c (set_default_console_slot_variable):
12226 * symbols.c (defsymbol_massage_name_1):
12227 * symbols.c (defkeyword_massage_name):
12228 * symbols.c (deferror_1):
12229 * symbols.c (deferror):
12230 * symbols.c (deferror_massage_name_and_message):
12232 * symeval.h (DEFSYMBOL):
12233 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12235 * symbols.c (syms_of_symbols):
12239 * symsinit.h (init_win32): New.
12240 Also new is syms_of_dialog_mswindows.
12243 Add new Unicode macros, missing Cygwin wide-char functions,
12244 convenience conversion macros for Qmswindows_tstr, macros for
12245 encapsulating required MSWin <-> Cygwin filename conversions,
12246 prototype for dynamically-extracted (not in NT 3.51) functions.
12251 * tooltalk.c (Fadd_tooltalk_message_arg):
12252 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12253 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12256 * tooltalk.c (syms_of_tooltalk):
12260 * unexnt.c (unexec):
12261 Fix up headers, declaration of unexec() to be more standard.
12263 2000-07-20 Martin Buchholz <martin@xemacs.org>
12265 * offix.h: Revert change to guard macros - they're used in offix.c!
12267 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12269 * lisp.h: Defsubred Fdelete.
12271 * console-msw.h: (msprinter_default_printer): Added.
12273 * console-msw.c (msprinter_canonicalize_console_connection):
12274 (msprinter_canonicalize_device_connection): Added.
12276 * device-msw.c (msprinter_default_printer):
12277 (Fmswingows_get_default_printer):
12278 (signal_enum_priner_error):
12279 (Fmswingows_printer_list): Added.
12281 2000-07-19 Martin Buchholz <martin@xemacs.org>
12283 * XEmacs 21.2.35 is released.
12285 2000-07-19 Martin Buchholz <martin@xemacs.org>
12287 * select-x.c (x_handle_selection_request):
12288 Text selected in xemacs and pasted into xterm failed to appear.
12289 Spelling fixes and cosmetic changes.
12291 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12293 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12294 XEmacs frame (fix for doubling chars in dialog boxes).
12296 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12298 * select.c (select_convert_in, select_convert_out):
12299 Don't call intern() every time.
12301 * select.c (Qselect_convert_in, Qselect_convert_out): New.
12302 * select.c (vars_of_select): Initialise them.
12304 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12306 * select.c (selection-coercible-types): New.
12308 * select.c (own-selection-internal):
12309 * select.c (get-selection-internal):
12310 MULE bug fix - these should default to COMPOUND_TEXT and not
12311 STRING for MULE. I think.
12313 * select.c (select_convert_out): Use selection-coercible-types
12314 to find types that we can attempt to perform coercions on.
12316 2000-07-18 Martin Buchholz <martin@xemacs.org>
12320 Add coding: cookie to identify encoding.
12322 * mule-canna.c (CANNA_mode_keys): make static.
12323 Use proper prototypes, even for functions of no arguments.
12324 Remove external prototype for Fding().
12326 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12328 * select.c (syms_of_select): Add missing DEFSUBR.
12330 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12332 * select.c (get_selection_internal, own_selection_internal):
12333 Make the type default to STRING, rather than placing a nil type
12334 into Vselection_alist.
12336 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12338 * gpmevent.c (tty_selection_exists_p):
12339 * gpmevent.c (tty_own_selection):
12340 Updated parameter lists.
12342 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12344 * select.h (selection-alist): Removed declaration.
12346 * select.h (get_local_selection):
12347 * select.c (get_local_selection):
12350 * select.h (convert_selection): Removed declaration.
12351 * select.c (convert_selection): Removed.
12352 This function belongs in Lisp.
12354 * select.h (select_convert_in): Declare.
12355 * select.h (select_convert_out): Declare.
12356 * select.c (select_convert_in): New.
12357 * select.c (select_convert_out): New.
12358 New conversion functions for other files to call.
12360 * select.h (select_notify_buffer_kill): Declare.
12361 * select.c (select_notify_buffer_kill): New.
12362 New functions that get called from kill-buffer.
12364 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12365 X-specific lisp code.
12367 * select.h: Declare some of the lisp-visible functions for
12370 * select.c (clean_local_selection_data): Removed. This was
12371 a disgusting function, and previously should have been in
12372 select-x.c in any case. The functionality is now provided
12373 in select-convert-from-integer (select.el).
12375 * select.c (available-selection-types): Fixed stupidity where
12376 INTEGER and ATOM got added twice. Also add STRING when we see an
12379 * select.c (get-selection-internal): Removed symbol stripping. No
12380 longer causes conversion when data comes from the internal cache.
12382 * select.c (syms_of_select): Added new functions.
12384 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12385 error checking - previously this called abort!
12387 * select-x.c (x_own_selection): Changed comment.
12389 * select-x.c (x_handle_selection_request): Use select_convert_out.
12390 Don't mess with selection-alist; it's an internal variable of select.c.
12392 * select-x.c (x_get_foreign_selection): Use select_convert_in.
12394 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12395 rather than messing with selection-alist.
12397 * select-msw.c (mswindows_get_foreign_selection):
12398 Use TO_INTERNAL_FORMAT rather than hacking.
12400 2000-07-14 Martin Buchholz <martin@xemacs.org>
12402 * process-unix.c (unix_open_multicast_group):
12403 (unix_open_multicast_group): Remove useless casts.
12405 2000-07-13 Martin Buchholz <martin@xemacs.org>
12407 * sound.c (Fplay_sound): Fix `unused variable' warning.
12409 * emacs.c (main): Use correct type for _environ on SCO5.
12411 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12413 * console.h (own_selection_method):
12414 * console.h (selection_exists_p_method):
12415 * console.h (available_selection_types_method): New.
12416 * console.h (register_selection_data_type_method): New.
12417 * console.h (selection_data_type_name): New.
12419 * console-msw.h (mswindows_destroy_selection): Declare it. New
12420 function & alist to track GlobalAlloc()'d handles that need
12421 releasing when the clipboard data gets replaced or emptied.
12423 * event-msw.c (mswindows_wnd_proc): Call it.
12425 * lisp.h, general.c (Qappend): New symbol representing a
12428 * select.c (own-selection-internal):
12429 * select.c (selection-exists-p):
12430 * select.c (available-selection-types): New.
12431 * select.c (register-selection-data-type): New.
12432 * select.c (selection-data-type-name): New. New functions to deal
12433 with device-specific selection data formats.
12434 * select.c (selection-converter-out-alist): Renamed.
12435 * select.c (selection-converter-in-alist): New.
12436 * select.c (selection-appender-alist): New. Added new alists.
12437 * select.c (syms_of_select, vars_of_select): Added new symbols &
12439 * select.c (get_local_selection): Split.
12440 * select.c: Removed spurious type checking - selections may now be
12441 of any type, not just strings.
12442 * select.c (own-selection-internal):
12444 * select.h, select.c (convert_selection): New. Created
12445 convert_selection() function based on get_local_selection().
12446 * select.h, select.c (QCF_*): New symbols representing mswindows
12448 * select.h, select.c (Qreplace_all, Qreplace_existing): New
12449 symbols representing `how-to-add' modes.
12451 * select-msw.c (x_sym_p): New.
12452 * select-msw.c (symbol_to_ms_cf): New.
12453 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12454 symbols & clipboard formats. Can also handle string names.
12455 * select-msw.c (mswindows_own_selection):
12456 * select-msw.c (mswindows_selection_exists_p):
12457 Added `data-type' parameter. Use it.
12458 * select-msw.c (mswindows_available_selection_types): New.
12459 * select-msw.c (mswindows_register_selection_data_type): New.
12460 * select-msw.c (mswindows_selection_data_type_name): New.
12461 * select-msw.c (mswindows_own_selection):
12462 * select-msw.c (mswindows_get_foreign_selection):
12463 * select-msw.c (mswindows_selection_exists_p): Rewrote.
12464 * select-msw.c (console_create_select_mswindows): Added new methods.
12465 * select-msw.c (mswindows_destroy_selection): New.
12466 * select-msw.c (Vhandle_alist): New list.
12467 * select-msw.c (mswindows_own_selection):
12469 * select-x.c (x_own_selection):
12470 * select-x.c (x_selection_exists_p):
12471 * select-x.c: Added some comments about maybe using new
12473 * select-x.c (x_own_selection):
12475 * specifier.c: Remove definition of Qappend (now in general.c)
12476 * specifier.c (syms_of_specifier): Remove Qappend.
12478 2000-07-12 Martin Buchholz <martin@xemacs.org>
12480 * config.h.in: Add socklen_t.
12482 * s/decosf4-0.h: No special compiler flags needed or desired.
12483 In particular, undefine _BSD for DEC OSF 4.0.
12485 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12487 * redisplay-msw.c (msprinter_frame_output_end): Added.
12488 (console_type_create_redisplay_mswindows): Referred the above.
12490 * frame.c (setup_frame_without_minibuffer): Do not create a
12491 default minibuffer frame on a printer device.
12493 * frame-msw.c (apply_dc_geometry): Added.
12494 (msprinter_start_page):
12495 (msprinter_init_frame_3):
12496 (msprinter_eject_page): Use it.
12498 * console-msw.h (struct msprinter_frame): Added pix_left and top,
12499 and removed residual duplex and orientation properties.
12501 2000-07-11 Martin Buchholz <martin@xemacs.org>
12503 * eval.c (function_argcount): Work around a DEC CC compiler bug.
12505 * unexalpha.c: Remove system prototypes from C sources!
12507 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
12509 * eval.c: Remove references to M-x edit-options in DEFUNs for
12510 `defvar' and `defconst'.
12512 2000-07-09 Martin Buchholz <martin@xemacs.org>
12514 * config.h.in: Remove SMART_INCLUDE hackery.
12516 PostgreSQL hacking:
12517 * config.h.in: Don't use SMART_INCLUDE.
12519 * postgresql.h: Include libpq-fe.h here. Fix typo.
12520 * inline.c: Simply #include "postgresql.h"
12522 - Don't use SMART_INCLUDE
12523 - Use simply "const".
12524 - Use standard doc string conventions.
12525 - Use correct type for result of PQstatus.
12527 2000-07-09 Martin Buchholz <martin@xemacs.org>
12529 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12531 C++ compilation changes.
12532 * config.h.in (EXTERN_C): Define.
12533 * config.h.in (not): This is also a C++ keyword.
12534 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12535 * cm.c: Use EXTERN_C.
12536 * redisplay-tty.c: Use EXTERN_C.
12537 * sysdep.c: Use EXTERN_C. Remove Gould support.
12539 2000-07-09 Martin Buchholz <martin@xemacs.org>
12541 * general.c: Remove duplicate definition for Qfunction.
12543 2000-07-08 Ben Wing <ben@xemacs.org>
12545 * device-msw.c (msprinter_init_device):
12546 * device-msw.c (sync_printer_with_devmode):
12547 * device-msw.c (handle_devmode_changes):
12548 * device-msw.c (print_dialog_worker):
12549 * device-msw.c (Fmsprinter_apply_settings):
12550 * device-msw.c (hash_devmode):
12551 * device-msw.c (Fmsprinter_settings_despecialize):
12552 use Qmswindows_tstr, not Qctext.
12554 * vm-limit.c (check_memory_limits):
12555 avoid infinite loop printing warning messages.
12557 2000-07-05 Craig Lanning <lanning@scra.org>
12559 * Makefile.in.in: Add support for including the Windows resources
12560 when building with the cygwin and mingw targets.
12562 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12563 not set or not correct.
12564 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12565 (init_initial_directory): Don't try to use $PWD on the
12566 WIN32_NATIVE target.
12569 [[Add -mwindows to eliminate console window.]] not required --ben
12570 (HAVE_NATIVE_SOUND): removed; now handled by configure.
12571 (MAIL_USE_POP): removed; now handled by configure.
12573 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12574 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12575 (HAVE_NATIVE_SOUND): removed; now handled by configure.
12576 (MAIL_USE_POP): removed; now handled by configure.
12577 (ENCAPSULATE_STAT): from Dan Holmsand, added.
12578 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12579 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12581 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12582 up from <winsock.h> via systime.h.
12583 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12584 (getpagesize): from Dan Holmsand, added.
12585 Added #endif which was left dangling by Ben's mega patch; added
12586 comment to help prevent this in the future.
12588 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12590 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12592 * console-msw.h (struct mswindows_device): Removed unnecessary
12593 cached device geometry values.
12594 Added update_tick and an accessor macro.
12595 (Lisp_Devmode): Added lrecord declaration.
12596 (struct msprinter_device): Contain devmode as a Lisp object.
12597 Added mswindows_get_selected_frame_hwnd();
12599 * console.h (struct console_methods): Indentation nitpicking.
12601 * device-msw.c (mswindows_init_device): Do not initialize geometry
12602 cache. Initialize update tick.
12603 (mswindows_device_system_metrics): Ask the device for its geometry.
12604 (global_free_2_maybe):
12605 (devmode_to_hglobal):
12606 (handle_printer_changes):
12607 (ensure_not_printing):
12608 (print_dialog_worker):
12609 (Fmsprinter_print_setup_dialog):
12610 (Fmsprinter_print_dialog):
12611 (plist_get_margin):
12612 (plist_set_margin):
12613 (Fmsprinter_page_setup_dialog): Added functions.
12614 (sync_printer_with_devmode):
12615 (handle_devmode_changes):
12616 (Fmsprinter_get_settings):
12617 (Fmsprinter_select_settings):
12618 (Fmsprinter_apply_settings):
12619 (allocate_devmode):
12620 (Fmsprinter_settings_copy):
12621 (Fmsprinter_settings_despecialize):
12623 (finalize_devmode):
12625 (hash_devmode): Added functions
12626 (syms_of_device_mswindows): Init devmode lrecord class.
12628 * device.h: Added an exfun for find-device.
12630 * event-msw.c (mswindows_wnd_proc): Do not update the cached
12631 geometry; although, recreate the device compatible DC.
12633 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12634 (msprinter_init_frame_3):
12635 (msprinter_frame_property):
12636 (msprinter_internal_frame_property_p):
12637 (msprinter_frame_properties):
12638 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12639 print job properties (will move to device settings).
12641 * lisp.h: Added symbols.
12643 * general.c (syms_of_general): Declared them.
12645 * hash.c (string_hash): Added.
12647 * lrecord.h (lrecord_type): Added devmode lrecord type.
12649 2000-07-02 Mike Sperber <mike@xemacs.org>
12651 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12654 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
12656 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12659 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
12661 * data.c (Fstring_to_number): Don't recognize floating point if
12664 2000-06-22 Martin Buchholz <martin@xemacs.org>
12666 * glyphs-widget.c (tab_control_query_geometry):
12667 (widget_query_geometry):
12668 (button_query_geometry):
12669 * glyphs.c (text_query_geometry):
12670 Enforce type correctness.
12672 2000-06-18 Martin Buchholz <martin@xemacs.org>
12674 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12675 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12677 2000-06-17 Martin Buchholz <martin@xemacs.org>
12679 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12680 conflicts with gcc's fixincluded version of FOO.h.
12682 * glyphs.h (image_instance_geometry): Remove trailing `,'
12684 2000-06-08 Mike Alexander <mta@arbortext.com>
12686 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12687 (shove_thread): Don't write the same output twice
12688 (make_ntpipe_output_stream): Increase priority of shove thread
12689 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12691 (ntpipe_shove_closer): Don't delete the pipe until we're done with
12694 2000-06-12 Ben Wing <ben@xemacs.org>
12696 * s\mingw32.h (sigset):
12697 * s\windowsnt.h (sigset):
12698 rename msw_ to mswindows_ for consistency with general convention.
12700 2000-06-12 Ben Wing <ben@xemacs.org>
12703 * console-msw.c (mswindows_get_console_hwnd):
12704 * console-msw.c (mswindows_ensure_console_allocated):
12705 * console-msw.c (mswindows_hide_console):
12706 * console-msw.c (mswindows_show_console):
12707 * console-msw.c (mswindows_ensure_console_buffered):
12708 * console-msw.c (mswindows_output_console_string):
12709 * console-msw.c (mswindows_windows9x_p):
12711 * device-msw.c (mswindows_get_workspace_coords):
12712 * device-msw.c (mswindows_device_system_metrics):
12713 * dialog-msw.c (mswindows_popup_dialog_box):
12714 * event-msw.c (mswindows_wnd_proc):
12715 * frame-msw.c (mswindows_size_frame_internal):
12716 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12717 * menubar-msw.c (displayable_menu_item):
12718 * menubar-msw.c (mswindows_char_is_accelerator):
12720 * nt.c (mswindows_sigset):
12721 * nt.c (mswindows_sigrelse):
12722 * nt.c (mswindows_sigpause):
12723 * nt.c (mswindows_raise):
12724 * nt.c (timer_proc):
12726 * ntproc.c (find_child_console):
12727 * ntproc.c (sys_kill):
12729 * print.c (std_handle_out_external):
12730 * process-nt.c (find_child_console):
12731 * process-nt.c (send_signal_the_95_way):
12732 * process-nt.c (ensure_console_window_exists):
12733 * process-nt.c (nt_create_process):
12735 rename msw_ to mswindows_ for consistency with general convention.
12739 include nt.h, not syswindows.h.
12741 * nt.c (mswindows_fstat):
12742 * nt.c (mswindows_stat):
12743 prefix mswindows_ instead of attempting to directly override the
12744 library functions. fix declarations.
12747 include syswindows.h. move some sysdep.h stuff here.
12750 include syswindows.h, not <windows.h>.
12758 * sysdep.c (sys_fstat):
12759 * sysdep.c (sys_stat):
12760 call mswindows versions when appropriate.
12763 move mswin decls to nt.h.
12766 add long comment describing appropriate use of the various windows
12769 2000-06-11 Ben Wing <ben@xemacs.org>
12771 * device-x.c: Correct doc string for sixth arg of x-get-resource.
12773 2000-06-10 Ben Wing <ben@xemacs.org>
12775 * Makefile.in.in (release):
12776 Correction to make sure xemacs.exe always dumped when correct.
12780 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12782 * buffer.c (set_buffer_internal):
12783 [[[[2]]]]: Remove HAVE_FEP code.
12785 * buffer.c (init_initial_directory):
12789 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12793 * callproc.c (call_process_cleanup):
12794 * callproc.c (Fold_call_process_internal):
12795 * callproc.c (child_setup):
12796 * callproc.c (getenv_internal):
12797 * callproc.c (init_callproc):
12798 * callproc.c (vars_of_callproc):
12799 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12800 __CYGWIN32__ -> CYGWIN.
12801 DOS_NT -> WIN32_NATIVE.
12802 Remove MSDOS support/references, converting to WIN32_NATIVE
12804 __MINGW32__ -> MINGW.
12805 Fix windows.h includes.
12806 Remove bogus HAVE_NTGUI.
12812 mswindows_message_outputted added for use in allowing startup
12813 errors on the console to be seen.
12815 * console-msw.c (msw_ensure_console_allocated):
12816 * console-msw.c (msw_output_console_string):
12817 * console-msw.c (DHEADER):
12818 * console-msw.c (DOPAQUE_DATA):
12819 * console-msw.c (DEVENT):
12820 * console-msw.c (DCONS):
12821 * console-msw.c (DCONSCDR):
12822 * console-msw.c (DSTRING):
12823 * console-msw.c (DVECTOR):
12824 * console-msw.c (DSYMBOL):
12825 * console-msw.c (DSYMNAME):
12828 * console-stream.c (stream_init_console):
12829 Fix text/binary problems.
12832 * device-msw.c (mswindows_finish_init_device):
12833 * device-msw.c (mswindows_delete_device):
12836 * device.c (handle_asynch_device_change):
12840 * dgif_lib.c (DGifOpenFileName):
12841 * dgif_lib.c (DGifOpenFileHandle):
12842 * dgif_lib.c (DGifGetLine):
12843 * dgif_lib.c (DGifGetPixel):
12844 Added config.h/lisp.h, fix up includes.
12851 * dired.c (file_name_completion):
12852 * dired.c (Ffile_attributes):
12853 * dired.c (syms_of_dired):
12857 * dumper.c (pdump_file_unmap):
12858 * dumper.c (pdump_load):
12862 * editfns.c (Ftemp_directory):
12863 * editfns.c (user_login_name):
12864 * editfns.c (Fuser_real_login_name):
12865 * editfns.c (get_home_directory):
12868 * elhash.c (finish_marking_weak_hash_tables):
12869 [[[[5]]]]: Fix GCC warnings.
12872 * emacs.c (mswindows_handle_hardware_exceptions):
12873 * emacs.c (make_arg_list_1):
12874 * emacs.c (main_1):
12875 * emacs.c (Fkill_emacs):
12876 * emacs.c (Fdump_emacs):
12878 Fix problems with nested crashes, add long comment.
12880 * event-Xt.c (init_event_Xt_late):
12884 * event-msw.c (mswindows_dde_callback):
12885 * event-msw.c (mswindows_handle_sticky_modifiers):
12886 * event-msw.c (mswindows_wnd_proc):
12890 * events.c (character_to_event):
12894 * fileio.c (Ffile_name_directory):
12895 * fileio.c (Ffile_name_nondirectory):
12896 * fileio.c (directory_file_name):
12897 * fileio.c (Fexpand_file_name):
12898 * fileio.c (Fsubstitute_in_file_name):
12899 * fileio.c (Ffile_name_absolute_p):
12900 * fileio.c (check_executable):
12901 * fileio.c (Ffile_readable_p):
12902 * fileio.c (Ffile_accessible_directory_p):
12903 * fileio.c (Ffile_modes):
12904 * fileio.c (Funix_sync):
12905 * fileio.c (vars_of_fileio):
12908 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12910 Expand getdefdir defn.
12911 Fix bogus rename() comment.
12913 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
12914 to use standard XEmacs include files, e.g. sysfile.h, rather
12915 than system-specific includes.
12921 * frame.c (vars_of_frame):
12925 * getloadavg.c (getloadavg):
12927 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
12928 (We don't use it elsewhere in the code; just add a comment.)
12935 * glyphs-msw.c (mswindows_resource_instantiate):
12938 * glyphs-x.c (x_native_layout_instantiate):
12941 * gui-msw.c (Fmswindows_shell_execute):
12950 * lread.c (locate_file_in_directory_mapper):
12957 * mem-limits.h (get_lim_data):
12969 * nt.c (rva_to_section):
12970 * nt.c (mswindows_executable_type):
12972 Fix closedir() defn.
12975 [[[[8]]]]: *_OK defs moved to sysfile.h.
12984 * print.c (std_handle_out_external):
12988 * process-nt.c (nt_create_process):
12990 try to fix process quoting somewhat.
12992 * process-unix.c (unix_create_process):
12996 * process.c (vars_of_process):
13003 * realpath.c (xrealpath):
13006 * redisplay-tty.c (init_tty_for_redisplay):
13016 * sheap.c (more_static_core):
13017 * sheap.c (report_sheap_usage):
13021 * signal.c (alarm_signal):
13028 * strftime.c (zone_name):
13031 * symsinit.h (init_sunpro):
13035 commctrl.h not in Cygwin b20.1.
13038 * sysdep.c (endif):
13039 * sysdep.c (sys_subshell):
13040 * sysdep.c (init_baud_rate):
13041 * sysdep.c (emacs_get_tty):
13042 * sysdep.c (emacs_set_tty):
13043 * sysdep.c (tty_init_sys_modes_on_device):
13044 * sysdep.c (init_system_name):
13045 * sysdep.c (sys_open):
13046 * sysdep.c (interruptible_open):
13047 * sysdep.c (sys_fopen):
13048 * sysdep.c (sys_mkdir):
13049 * sysdep.c (sys_rename):
13050 * sysdep.c (get_process_times_1):
13057 * sysdir.h (DIRENTRY_NONEMPTY):
13060 * sysdll.c (dll_init):
13066 added text/binary defs.
13072 * sysproc.h (EDESTADDRREQ):
13073 * sysproc.h (poll_fds_for_input):
13090 Always define WIN32_LEAN_AND_MEAN.
13092 * unexcw.c (unexec):
13096 * unexec.c (copy_text_and_data):
13097 * unexec.c (adjust_lnnoptrs):
13101 * unexnt.c (_start):
13104 2000-06-07 Ben Wing <ben@xemacs.org>
13106 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
13107 was used only as a model. We've long since extracted any useful
13108 logic or code out of this. (I just did an exhaustive search.)
13110 * s\msdos.h: Removed.
13112 * s\windows95.h: Removed.
13114 2000-06-10 Ben Wing <ben@xemacs.org>
13118 Don't use extern with fun defs.
13122 Remove nt\inc include.
13123 Remove getdisk, getdefdir. (The former is unused, the latter
13124 expanded in fileio.h.)
13127 * s\windowsnt.h (WIN32_NATIVE):
13128 * s\windowsnt.h (HAVE_STRCASECMP):
13130 Add long comment about preprocessor changes.
13131 Remove getdisk, getdefdir. (The former is unused, the latter
13132 expanded in fileio.h.)
13134 2000-06-10 Ben Wing <ben@xemacs.org>
13143 Remove bogus/unused NO_SOCK_SIGIO.
13145 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
13147 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13150 2000-06-04 Mike Sperber <mike@xemacs.org>
13152 * casetab.c (set_case_table): For `set-standard-case-table',
13153 actually deposit the new case tables where the rest of XEmacs can
13156 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
13158 * data.c (Faset): Don't cast XCHAR() to unsigned char.
13160 2000-06-05 Ben Wing <ben@xemacs.org>
13162 * callproc.c (child_setup): Don't do close_load_descs() under
13163 MS Windows. Put in a comment explaining why.
13165 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
13167 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13168 Toolkit shell" which breaks `kill-compilation' on Windows NT
13169 native, retaining STDERR handling improvements.
13171 2000-06-01 Andreas Jaeger <aj@suse.de>
13173 * s/s390.h: Support for S390, based on a patch by Martin
13174 Schwidefsky <schwidefsky@de.ibm.com>.
13176 2000-05-30 Andy Piper <andy@xemacs.org>
13178 * window.c (allocate_window):
13179 (make_dummy_parent):
13180 (Fset_window_configuration): use new hashtable type.
13182 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13183 (struct image_instantiator_methods):
13184 (struct Lisp_Image_Instance): make instance geometry signed.
13186 * glyphs.c (instantiate_image_instantiator):
13187 (image_instance_query_geometry):
13188 (image_instance_layout):
13189 (image_instance_layout):
13190 (query_string_geometry):
13191 (text_query_geometry):
13192 (image_instantiate):
13193 (image_instantiate):
13194 (cache_subwindow_instance_in_frame_maybe):
13195 (subwindow_query_geometry): make instance geometry signed.
13197 * glyphs-widget.c (widget_query_geometry):
13199 (button_query_geometry):
13200 (tree_view_query_geometry):
13201 (tab_control_query_geometry):
13202 (layout_query_geometry):
13204 (native_layout_layout): make instance geometry signed.
13206 2000-05-29 Olivier Galibert <galibert@pobox.com>
13208 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13211 * general.c (syms_of_general): Add Qfull_assoc symbol.
13213 * data.c (finish_marking_weak_lists): Mark full-assoc lists
13215 (decode_weak_list_type): Decode full-assoc type.
13216 (encode_weak_list_type): Encode full-assoc type.
13217 (Fmake_weak_list): Update doc string.
13219 2000-05-30 Andy Piper <andy@xemacs.org>
13221 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13223 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13224 (decode_hash_table_weakness): ditto.
13225 (Fhash_table_weakness): ditto.
13226 (Fhash_table_type): ditto.
13227 (finish_marking_weak_hash_tables): ditto.
13228 (hash_table_weakness_validate): ditto.
13229 (syms_of_elhash): ditto.
13231 2000-05-28 Martin Buchholz <martin@xemacs.org>
13233 * XEmacs 21.2.34 is released.
13235 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
13237 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13239 (updating_line_start_cache): Gone.
13240 (regenerate_window): Replace resetting of VERTICAL_CLIP by
13241 generic code to force a minimum of 1 line laid out in the
13244 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
13246 * glyphs.c (instantiate_image_instantiator): Check for initialized
13247 height & width no longer special cases IMAGE_NOTHING.
13248 (nothing_instantiate): Set height and width of instance.
13250 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
13252 * unexelf.c (unexec): Search for ".data" section.
13253 Initialize new_data2_offset from old_data_index.
13254 Remove redundant check for ElfW.
13256 2000-05-23 Andy Piper <andy@xemacs.org>
13258 * glyphs.c (get_image_instantiator_governing_domain): allow more
13259 specific domains as the governing domain rather than expecting an
13260 exact match. This fixes problems with layouts.
13262 2000-05-22 Andy Piper <andy@xemacs.org>
13264 * redisplay-output.c (compare_runes): check for non-images
13266 * glyphs.c (set_glyph_dirty_p): ditto.
13267 (update_glyph_cachel_data): ditto.
13269 * glyphs-widget.c (layout_post_instantiate): ditto.
13270 (layout_post_instantiate): ditto.
13272 * event-msw.c (mswindows_wnd_proc): warning removal.
13274 2000-05-12 Craig Lanning <CraigL@DyCon.com>
13276 * s\mingw32.h: Added #undef for CLASH_DETECTION.
13278 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13280 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13282 * nt.c (rva_to_section): mingw32 needs rva_to_section.
13283 (mswindows_executable_type): mingw32 now has enough headers for
13286 2000-05-20 Andy Piper <andy@xemacs.org>
13288 * console-msw.c (mswindows_output_last_error): ; -> ,
13290 2000-05-12 Andy Piper <andy@xemacs.org>
13292 * console-msw.c (FROB): compare ints with ints.
13294 2000-05-11 Andy Piper <andy@xemacs.org>
13296 * glyphs-x.c (x_finalize_image_instance): make minimal build
13299 2000-05-20 Ben Wing <ben@xemacs.org>
13302 * event-Xt.c (vars_of_event_Xt):
13303 move modifier-keys-are-sticky to event-stream.c.
13306 * event-msw.c (mswindows_enqueue_mouse_button_event):
13307 * event-msw.c (key_needs_default_processing_p):
13308 * event-msw.c (XEMSW_LCONTROL):
13309 * event-msw.c (mswindows_handle_sticky_modifiers):
13310 * event-msw.c (FROB):
13311 * event-msw.c (clear_sticky_modifiers):
13312 * event-msw.c (output_modifier_keyboard_state):
13313 * event-msw.c (output_alt_keyboard_state):
13314 * event-msw.c (mswindows_wnd_proc):
13315 * event-msw.c (mswindows_modifier_state):
13316 * event-msw.c (emacs_mswindows_handle_magic_event):
13317 implement sticky modifiers.
13320 * event-stream.c (vars_of_event_stream):
13321 move modifier-keys-are-sticky here.
13324 add CHECK_FUNCTION.
13327 implement map-range-table.
13330 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
13332 * redisplay-tty.c (reset_tty_modes):
13333 (tty_redisplay_shutdown): Adjust argument type to
13334 tty_frame_output_end.
13336 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
13338 * eval.c (Fbacktrace): Don't output a line with only right
13341 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
13343 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13344 (Fpq_reset_poll): Ditto.
13346 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
13348 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13350 2000-05-16 Ben Wing <ben@xemacs.org>
13353 * buffer.c (dfc_convert_to/from_internal_format):
13354 * buffer.c (reinit_vars_of_buffer):
13355 Fix conversion functions to allow reentrancy.
13358 * console-msw.c (mswindows_output_last_error):
13359 New fun, generally useful -- output a human-readable
13360 version of GetLastError() on the console.
13363 * console-msw.h (struct mswindows_frame):
13364 Changes for DeferWindowPos. Declare mswindows_output_last_error().
13366 * console-stream.c (stream_output_begin):
13367 * console-stream.c (stream_output_end):
13368 * console-stream.c (stream_output_vertical_divider):
13369 * console-stream.c (stream_clear_region):
13370 * console-stream.c (stream_flash):
13371 * console-stream.c (console_type_create_stream):
13372 Delete blank stream methods, not needed.
13374 * console.h (struct console_methods):
13375 Split begin/end methods into window and frame.
13378 * event-msw.c (mswindows_handle_paint):
13379 * event-msw.c (output_alt_keyboard_state):
13380 * event-msw.c (mswindows_wnd_proc):
13381 * event-msw.c (vars_of_event_mswindows):
13382 Comment about problems with ignored-expose.
13383 Define mswindows-debug-events; not really implemented.
13385 * frame-msw.c (mswindows_init_frame_1):
13389 * glyphs-msw.c (begin_defer_window_pos):
13390 * glyphs-msw.c (mswindows_unmap_subwindow):
13391 * glyphs-msw.c (mswindows_map_subwindow):
13392 * glyphs-msw.c (mswindows_resize_subwindow):
13393 Use DeferWindowPos to reduce flashing when mapping/unmapping.
13395 * glyphs.c (make_image_instance_1):
13398 * gutter.c (Fredisplay_gutter_area):
13399 Use new begin/end methods.
13401 * lisp.h (Dynarr_new2):
13405 * redisplay-msw.c (mswindows_frame_output_begin):
13406 * redisplay-msw.c (mswindows_frame_output_end):
13407 * redisplay-msw.c (console_type_create_redisplay_mswindows):
13408 New begin/end methods -- handle DeferWindowPos.
13410 * redisplay-output.c (redisplay_move_cursor):
13411 * redisplay-output.c (redraw_cursor_in_window):
13412 * redisplay-output.c (redisplay_update_line):
13413 * redisplay-output.c (redisplay_output_window):
13414 New begin/end methods.
13417 * redisplay-tty.c (tty_frame_output_begin):
13418 * redisplay-tty.c (tty_frame_output_end):
13419 * redisplay-tty.c (console_type_create_redisplay_tty):
13420 New begin/end methods.
13423 * redisplay-x.c (x_window_output_begin):
13424 * redisplay-x.c (x_window_output_end):
13425 * redisplay-x.c (console_type_create_redisplay_x):
13426 New begin/end methods.
13428 * redisplay.c (redisplay_frame):
13429 * redisplay.c (Fredisplay_echo_area):
13430 New begin/end methods.
13431 use MAYBE_DEVMETH for clear_frame; it may not exist.
13433 * window.h (WINDOW_XFRAME):
13434 WINDOW_XFOO macros -- get locale and decode struct pointer.
13437 2000-05-12 Ben Wing <ben@xemacs.org>
13440 * emacs.c (ensure_no_quitting_from_now_on):
13441 * emacs.c (fatal_error_signal):
13442 * emacs.c (mswindows_handle_hardware_exceptions):
13444 * emacs.c (Fkill_emacs):
13445 * emacs.c (shut_down_emacs):
13446 * emacs.c (assert_failed):
13447 various improvements in fatal error handling.
13450 move preparing_for_armageddon to emacs.c.
13453 declare fatal_error_in_progress.
13456 * print.c (std_handle_out_external):
13457 * print.c (std_handle_out_va):
13458 * print.c (stderr_out):
13459 * print.c (stdout_out):
13460 use console under mswin when no standard output.
13461 don't do code conversion during fatal error.
13463 * scrollbar.c (Fscrollbar_page_up):
13464 * scrollbar.c (Fscrollbar_page_down):
13465 fix missing else. reindent.
13467 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
13471 * glyphs.h (GLYPH_CACHEL_DESCENT):
13472 (GLYPH_CACHEL_DESCENT):
13473 (GLYPH_CACHEL_DESCENT):
13474 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13475 used in case these are inline functions.
13476 Use more absurd values to error check.
13478 include window.h for error check functions.
13480 2000-05-11 Ben Wing <ben@xemacs.org>
13482 * cmdloop.c (Freally_early_error_handler):
13483 Display message box under windows; otherwise, message will disappear
13484 before it can be viewed.
13487 * console-msw.c (Fmswindows_message_box):
13488 * console-msw.c (FROB):
13489 * console-msw.c (syms_of_console_mswindows):
13490 Define new fun `mswindows-message-box'.
13491 #### I will merge this into `popup-dialog-box'; just give me
13495 * general.c (syms_of_general):
13496 Some new symbols used in `mswindows-message-box'.
13499 * glyphs.c (Fset_image_instance_property):
13500 put warning in this fun.
13503 * glyphs.h (GLYPH_CACHEL_WIDTH):
13504 * glyphs.h (GLYPH_CACHEL_ASCENT):
13505 * glyphs.h (GLYPH_CACHEL):
13506 * glyphs.h (GLYPH_CACHEL_GLYPH):
13507 define error-checking versions to try to catch a bug i've seen --
13508 redisplay gets in an infinite loop because the glyph width of the
13509 continuation glyph is 65535.
13512 Extern message-box stuff.
13514 * window.c (allocate_window):
13515 * window.c (make_dummy_parent):
13516 * window.c (Fset_window_configuration):
13517 Use EQUAL not EQ for subwindow caches to make them work a bit
13518 better. (Something is still very broken.)
13521 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
13523 * glyphs.c (image_instantiate): Suppress gcc warnings.
13524 (Fmake_image_instance): Fix doc string.
13525 * specifier.c (Fmake_specifier): Ditto.
13527 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
13529 * paths.h.in (PATH_LOCK): Removed.
13530 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13531 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13533 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
13535 * fns.c (Ffeaturep): Update e-mail address in doc-string.
13536 Document (featurep '(and xemacs 21.02)).
13538 2000-05-09 Ben Wing <ben@xemacs.org>
13540 * buffer.c (complex_vars_of_buffer):
13541 update modeline-format doc.
13544 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13547 timeline of all released versions of Emacs, for use in creating
13548 authorship comments and in synching up.
13550 * glyphs-widget.c (image_instantiator_buttons):
13551 * glyphs-widget.c (image_instantiator_edit_fields):
13552 * glyphs-widget.c (image_instantiator_combo_box):
13553 * glyphs-widget.c (image_instantiator_scrollbar):
13554 * glyphs-widget.c (image_instantiator_progress_guage):
13555 * glyphs-widget.c (image_instantiator_tree_view):
13556 * glyphs-widget.c (image_instantiator_tab_control):
13557 * glyphs-widget.c (image_instantiator_labels):
13558 * glyphs-widget.c (image_instantiator_layout):
13559 * glyphs-widget.c (image_instantiator_native_layout):
13560 rename decode_domain method to governing_domain.
13563 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13564 * glyphs.c (add_entry_to_device_ii_format_list):
13565 make sure we don't put an entry more than once into the list.
13566 * glyphs.c (check_instance_cache_mapper):
13567 *************************************************************
13568 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13570 *************************************************************
13571 * glyphs.c (get_image_instantiator_governing_domain):
13572 clean up, expand on new concept of governing domain.
13573 * glyphs.c (instantiate_image_instantiator):
13574 * glyphs.c (allocate_image_instance):
13575 use governing_domain instead of cache_domain in naming.
13576 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13577 * glyphs.c (make_image_instance_1):
13578 * glyphs.c (Fmake_image_instance):
13579 allow for any domain (not just device), and process the
13580 governing domain correctly. very big doc fix.
13581 * glyphs.c (Fimage_instance_domain):
13582 new primitive, to retrieve the governing domain of an image instance.
13583 * glyphs.c (image_instantiate):
13584 use new governing_domain stuff. this fixes a crash you could get
13585 by instantiating certain widget glyphs in frame locales. (should
13586 signal an error instead of crashing.)
13587 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13588 * glyphs.c (Fglyphp): clean up doc.
13589 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13590 * glyphs.c (syms_of_glyphs):
13591 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13592 * glyphs.c (image_instantiator_format_create): add some comments about
13594 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13595 for current-display-table. (Apparently Hrjove implemented in 1998 a
13596 design I wrote up in 1996, but didn't update the doc string.)
13598 * glyphs.h: clean up a doc string.
13599 * glyphs.h (governing_domain):
13600 * glyphs.h (struct image_instantiator_methods):
13601 changes for governing_domain stuff.
13604 * gutter.c (Fgutter_specifier_p):
13605 * gutter.c (Fgutter_size_specifier_p):
13606 * gutter.c (Fgutter_visible_specifier_p):
13608 * objects.c (Fcolor_specifier_p):
13609 * objects.c (Ffont_specifier_p):
13610 * objects.c (Fface_boolean_specifier_p):
13611 doc strings moved to make-*-specifier.
13613 * redisplay.c (add_disp_table_entry_runes_1):
13614 * redisplay.c (generate_fstring_runes):
13615 * redisplay.c (screen):
13616 add random comments and doc strings.
13619 * specifier.c (Fmake_specifier):
13620 major overhaul of this doc string.
13622 * specifier.c (Fvalid_specifier_domain_p):
13623 comment about the bogosity of image instances being domains.
13624 * specifier.c (decode_domain):
13625 now non-static, used in glyphs.c.
13626 * specifier.c (specifier_instance):
13627 comment about the bogosity of image instances being domains.
13628 * specifier.c (Fgeneric_specifier_p):
13629 move doc string to make-generic-specifier.
13630 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13634 * specifier.h (DOMAIN_FRAME):
13635 * specifier.h (DOMAIN_LIVE_P):
13636 * specifier.h (DOMAIN_XDEVICE):
13638 add comments about problems with these macros.
13639 prototype for decode_domain.
13642 * toolbar.c (Ftoolbar_specifier_p):
13643 move doc string to `make-toolbar-specifier'.
13645 * window.c (window_unmap_subwindows_cache_mapper):
13646 *************************************************************
13647 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13649 *************************************************************
13651 2000-05-09 Andy Piper <andy@xemacs.org>
13653 * glyphs.h: declare reset_frame_subwindow_instance_cache.
13655 * window.c (Fset_window_configuration): reset the frame subwindow
13656 cache and re-initialize the window subwindow caches.
13658 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13660 2000-05-09 Ben Wing <ben@xemacs.org>
13662 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13665 2000-04-26 Mike Woolley <mike@bulsara.com>
13667 * ntheap.c: Changed recreate_heap to limit the amount reserved
13668 for the heap to that which is actually available. Also now
13669 displays a message box (with some dignostics) in the event that
13670 it still can't start.
13672 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
13674 * callproc.c (Fold_call_process_internal): GCPRO path
13676 2000-05-08 Jan Vroonhof <jan@xemacs.org>
13678 Patch by Bill Perry.
13680 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13681 back data instead of #ifdef.
13682 (Fscrollbar_page_down): ditto.
13684 2000-05-07 Ben Wing <ben@xemacs.org>
13687 Kludge for defining Qmswindows_tstr.
13690 * nt.c (open_input_file):
13691 * nt.c (open_output_file):
13692 * nt.c (rva_to_section):
13693 * nt.c (mswindows_executable_type):
13694 Move all memory-mapped-file routines here (some were in unexnt.c,
13695 which is bad because they are used by process-nt.c, and unexnt
13696 won't be around when portable dumping). Synched the above routines
13700 Removed ifdef'd out bogus code.
13701 Fixed some prototypes.
13703 * nt.h (file_data):
13704 * nt.h (OFFSET_TO_RVA):
13705 * nt.h (RVA_TO_OFFSET):
13706 * nt.h (RVA_TO_PTR):
13707 Moved the memory-mapped-file structures, macros and prototypes
13708 here, to parallel nt.c. ntheap.h should really be removed
13709 entirely, and it's a non-portable-dumper specific file.
13711 * ntheap.h (round_to_next):
13712 Moved the memory-mapped-file structures, macros and prototypes
13715 * ntproc.c (compare_env):
13716 Moved rva_to_section and mswindows_executable_type to nt.c.
13717 Moved compare_env to process-nt.c.
13718 ntproc.c will die, one day.
13720 * ntproc.c (sys_spawnve):
13721 Account for win32_ -> mswindows_.
13724 * process-nt.c (struct nt_process_data):
13725 * process-nt.c (ensure_console_window_exists):
13726 * process-nt.c (compare_env):
13727 * process-nt.c (nt_create_process):
13728 * process-nt.c (nt_kill_process_by_pid):
13729 * process-nt.c (syms_of_process_nt):
13730 * process-nt.c (vars_of_process_nt):
13731 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13732 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13733 changes). Eliminate our old `nt-quote-process-args' mechanism.
13734 Synch up nt_create_process with FSF 20.6 sys_spawnve.
13735 Move compare_env here from ntproc.c.
13737 * process.c (Fprocess_send_region):
13738 Takes an optional fourth argument, BUFFER, which should fix some
13739 problems with call-process.
13742 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13745 Move ICC_BAR_CLASSES to syscommctrl.h.
13746 Add preliminary macros for MSWindows/Mule. More to come.
13749 * unexnt.c (unexec):
13750 open_output_file moved to nt.c.
13753 2000-05-05 Andy Piper <andy@xemacs.org>
13755 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13756 instance from the frame cache also since GC may catch up too late
13757 to make frame deletion sane.
13759 2000-05-04 Andy Piper <andy@xemacs.org>
13761 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13762 (x_finalize_image_instance): ungcpro on deletion.
13764 * glyphs.c (image_instantiator_format_create): give pointers a
13765 query geometry method so that the geometry is at least set.
13767 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13768 initialize layouts if using widgets.
13770 2000-05-03 Andy Piper <andy@xemacs.org>
13772 * nt.c: remove bogus reference to sysmmsystem.h
13774 * gui-x.c (popup_selection_callback): fix no selection abort.
13776 2000-05-02 Andy Piper <andy@xemacs.org>
13778 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13779 (mswindows_widget_instantiate): ditto.
13781 * glyphs-widget.c (initialize_widget_image_instance): initialize
13782 children correctly.
13783 (widget_instantiate): cope with children and items in the same
13786 * glyphs.c (mark_image_instance): cope with children as a first
13788 (image_instance_equal): ditto.
13789 (image_instance_hash): ditto.
13790 (image_instance_changed): ditto.
13792 2000-04-30 Andy Piper <andy@xemacs.org>
13794 * glyphs.c (subwindow_query_geometry): new function. Return some
13796 (subwindow_instantiate): don't assign dimensions if none have been
13798 (image_instantiator_format_create): add subwindow_query_geometry.
13799 (print_image_instance): cope with layouts as widgets.
13801 2000-04-29 Andy Piper <andy@xemacs.org>
13803 * frame.c (delete_frame_internal): call
13804 free_frame_subwindow_instance_cache so that all subwindows are
13805 finalized before their parent.
13806 (mark_frame): remove subwindow_cachels.
13807 (Fmake_frame): remove subwindow_cachel manipulation.
13808 (allocate_frame_core): subwindow_instance_cache is a weak list.
13809 (delete_frame_internal): set subwindow_instance_cache to nil.
13811 * glyphs-msw.c (mswindows_finalize_image_instance): make double
13813 (mswindows_finalize_image_instance): use the device
13814 not the domain as the domain may have died already.
13816 * glyphs-x.c (x_finalize_image_instance): ditto.
13817 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13820 * redisplay-output.c (redisplay_unmap_subwindows): update for
13821 subwindow instance cache as a weak list.
13822 (redisplay_unmap_subwindows_maybe): ditto.
13823 (redisplay_unmap_subwindows_except_us): ditto.
13825 * glyphs.c (unmap_subwindow): error checking will check the domain
13826 so don't deal with it here. Don't use cachels anymore.
13827 (map_subwindow): ditto.
13828 (update_subwindow_cachel_data): remove old accessor names.
13829 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13830 (Fresize_subwindow): don't update cachel.
13831 (mark_subwindow_cachels):
13832 (update_subwindow_cachel_data):
13833 (add_subwindow_cachel):
13834 (get_subwindow_cachel_index):
13835 (update_subwindow_cachel):
13836 (reset_subwindow_cachels):
13837 (mark_subwindow_cachels_as_not_updated): deleted.
13838 (cache_subwindow_instance_in_frame_maybe): new function. Add a
13839 subwindow instance to the frame cache.
13840 (find_matching_subwindow): update for subwindow instance cache as
13842 (update_widget_instances): ditto.
13843 (image_instance_type_to_mask):inlined.
13844 (free_frame_subwindow_instance_cache): new function. finalize all
13845 subwindows that are instantiated.
13847 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13848 of cachel information.
13849 (IMAGE_INSTANCE_DISPLAY_X):
13850 (IMAGE_INSTANCE_DISPLAY_Y):
13851 (IMAGE_INSTANCE_DISPLAY_WIDTH):
13852 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13853 (XIMAGE_INSTANCE_DISPLAY_X):
13854 (XIMAGE_INSTANCE_DISPLAY_Y):
13855 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13856 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13857 remove subwindow_cachel structure and function references.
13858 (image_instance_type_to_mask): inline from glyphs.c
13860 * redisplay.c (redisplay_frame): remove subwindow_cachel
13863 * frame.h (struct frame): remove subwindow_cachels.
13864 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13866 * frameslots.h: add subwindow_instance_cache.
13868 * window.c (replace_window): check subwindow cache of replacement.
13869 (window_unmap_subwindows_cache_mapper):
13870 (window_unmap_subwindows): new functions. Unmap all subwindows
13871 cached on this window.
13872 (mark_window_as_deleted): unmap all subwindows.
13874 2000-04-27 Andy Piper <andy@xemacs.org>
13876 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13878 * glyphs-widget.c (widget_layout): return something.
13879 (layout_layout): return something. Fail if not initialized.
13880 (layout_query_geometry): ditto.
13881 (image_instantiator_native_layout): new function. Initialized the
13882 native layout type.
13883 (widget_instantiate): don't do layout stuff here.
13885 * glyphs.c (instantiate_image_instantiator): reorded calling or
13886 instantiate and post_instantiate with layout in between.
13887 (image_instance_layout): be more selective about deciding whether
13888 the layout has been done or not.
13890 * glyphs.h (struct image_instantiator_methods): return a value
13891 from layout_method.
13893 2000-04-26 Andy Piper <andy@xemacs.org>
13895 * glyphs.c (allocate_image_instance): make initial width and
13896 height unspecified. Set initialized to 0.
13898 * syscommctrl.h new file. Encapsulates commctrl.h.
13900 * syswindows.h new file. Encapsulates windows.h.
13902 * ntplay.c: use new syswindows.h and syscommctrl.h header.
13904 * console-msw.h: ditto.
13906 * redisplay-tty.c (tty_output_display_block): remove layout references.
13908 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13909 window handle rather than just the frame.
13911 * glyphs.c (mark_image_instance): remove layout references.
13912 (print_image_instance): ditto.
13913 (image_instance_equal): ditto.
13914 (image_instance_hash): ditto.
13915 (decode_image_instance_type): ditto.
13916 (encode_image_instance_type): ditto.
13917 (image_instantiate): ditto.
13918 (allocate_glyph): ditto.
13919 (Fimage_instance_height): ditto.
13920 (Fimage_instance_width): ditto.
13921 (update_subwindow): ditto.
13923 * redisplay-x.c (x_output_display_block): recode for layouts as
13926 * redisplay-output.c (redisplay_output_layout): recode for layouts
13928 (compare_runes): remove layout references.
13930 * redisplay-msw.c (mswindows_output_display_block): recode for
13931 layouts as widgets.
13933 * glyphs-widget.c (image_instantiator_layout): remove
13934 layout_possible_dest_types.
13935 (layout_possible_dest_types): deleted.
13937 * glyphs.h (image_instance_type): remove layout references.
13938 (struct Lisp_Image_Instance): ditto. Add initialized flag.
13939 (IMAGE_INSTANCE_INITIALIZED): new accessor.
13940 (XIMAGE_INSTANCE_INITIALIZED): ditto.
13942 2000-04-25 Andy Piper <andy@xemacs.org>
13944 * glyphs-widget.c (image_instantiator_buttons):
13945 (image_instantiator_edit_fields):
13946 (image_instantiator_combo_box):
13947 (image_instantiator_scrollbar):
13948 (image_instantiator_progress_guage):
13949 (image_instantiator_tree_view):
13950 (image_instantiator_tab_control):
13951 (image_instantiator_labels):
13952 (image_instantiator_layout): call default post_instantiate method.
13953 (widget_post_instantiate): new function. Simply lays out the
13956 * glyphs.h (struct image_instantiator_methods): add
13957 post_instantiate method.
13959 * glyphs.c (instantiate_image_instantiator): add post_instantiate
13962 2000-04-23 Andy Piper <andy@xemacs.org>
13964 * glyphs.h (struct image_instantiator_methods): add
13965 decode_domain_method.
13966 (struct Lisp_Image_Instance): remove subwindow frame - it can be
13967 derived from the domain.
13968 (IMAGE_INSTANCE_FRAME): new accessor.
13969 (XIMAGE_INSTANCE_FRAME): ditto.
13971 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13972 instead of _SUBWINDOW_FRAME.
13973 (finalize_image_instance): ditto.
13974 (Fimage_instance_foreground): ditto.
13975 (Fimage_instance_background): ditto.
13976 (image_instantiate): ditto.
13977 (update_subwindow_cachel): ditto.
13978 (update_subwindow): ditto.
13979 (unmap_subwindow): ditto.
13980 (map_subwindow): ditto
13981 (subwindow_instantiate): ditto.
13982 * glyphs-msw.c (mswindows_update_widget): ditto.
13983 (mswindows_progress_gauge_instantiate): ditto.
13984 (mswindows_tab_control_update): ditto.
13985 * glyphs-x.c (x_update_widget): ditto.
13986 (x_widget_instantiate): ditto.
13987 (x_tab_control_instantiate): ditto.
13988 (x_tab_control_update): ditto.
13989 * event-msw.c (mswindows_wnd_proc): ditto
13991 * glyphs-widget.c (image_instantiator_layout): use
13992 subwindow_decode_domain.
13993 (image_instantiator_buttons): ditto.
13994 (image_instantiator_edit_fields): ditto.
13995 (image_instantiator_combo_box): ditto.
13996 (image_instantiator_scrollbar): ditto.
13997 (image_instantiator_progress_guage): ditto.
13998 (image_instantiator_tree_view): ditto.
13999 (image_instantiator_tab_control): ditto.
14000 (image_instantiator_labels): ditto.
14001 (image_instantiator_layout): ditto.
14003 * glyphs.c: add instance error checking to many functions.
14004 (instantiate_image_instantiator): decode device from cache_domain.
14005 (image_instantiate): partially rewrite by using
14006 decode_image_instantiator_domain to determine what domain the
14007 instance needs to be cached in.
14008 (decode_image_instantiator_domain): new function. Determine what
14009 domain the image needs to be cached in.
14010 (check_window_subwindow_cache): new error checking function.
14011 (check_instance_cache_mapper): ditto.
14012 (check_image_instance_structure): ditto.
14013 (subwindow_decode_domain): new function. Encodes a window as a
14014 subwindow's cache domain.
14015 (image_instantiator_format_create): use it for text and
14018 2000-04-21 Andy Piper <andy@xemacs.org>
14020 * glyphs.c (image_instance_device): new function.
14021 (image_instance_frame): new function.
14022 (image_instance_window): new function.
14023 (image_instance_live_p): new function.
14025 * window.c (mark_window_as_deleted): reset the subwindow_instance_
14028 * glyphs.h (struct Lisp_Image_Instance): device->domain.
14029 (IMAGE_INSTANCE_DOMAIN): new accessor.
14030 (XIMAGE_INSTANCE_DOMAIN): ditto.
14032 * glyphs-x.c (x_finalize_image_instance): device->domain.
14034 * glyphs-msw.c (init_image_instance_geometry): device->domain.
14035 (mswindows_finalize_image_instance): ditto.
14037 * glyphs-eimage.c (jpeg_instantiate): device->domain.
14038 (gif_instantiate): ditto.
14039 (png_instantiate): ditto.
14040 (tiff_instantiate): ditto.
14042 * glyphs.c (instantiate_image_instantiator): use domain rather
14044 (mark_image_instance): device -> domain.
14045 (print_image_instance): ditto.
14046 (finalize_image_instance): ditto.
14047 (image_instance_equal): ditto.
14048 (allocate_image_instance): ditto.
14049 (Fcolorize_image_instance): ditto.
14050 (query_string_geometry): ditto.
14051 (image_instantiate): ditto
14052 (query_string_font): ditto.
14053 (image_instantiate): ditto.
14054 (update_subwindow): ditto.
14055 (unmap_subwindow): ditto.
14056 (map_subwindow): ditto.
14057 (subwindow_instantiate): ditto.
14059 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14060 (DOMAIN_FRAME): ditto.
14061 (DOMAIN_WINDOW): ditto.
14062 (DOMAIN_LIVE_P): ditto.
14063 (XDOMAIN_DEVICE): ditto.
14064 (XDOMAIN_FRAME): ditto.
14065 (XDOMAIN_WINDOW): ditto.
14067 * specifier.c (Fvalid_specifier_domain_p): add image instances as
14068 a valid specifier domain.
14070 2000-04-19 Andy Piper <andy@xemacs.org>
14072 * glyphs-widget.c (syms_of_glyphs_widget): remove
14073 widget-callback-current-channel.
14074 (vars_of_glyphs_widget): ditto.
14077 * gui.c (get_gui_callback): revert to previous behaviour.
14079 2000-04-18 Andy Piper <andy@xemacs.org>
14081 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14082 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14083 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14085 * glyphs.c (image_instance_equal): add margin_width.
14086 (image_instance_hash): ditto.
14088 * glyphs-widget.c (widget_instantiate): deal with margin-width.
14089 (layout_query_geometry): ditto.
14090 (layout_layout): ditto.
14091 (syms_of_glyphs_widget): add margin-width.
14092 (image_instantiator_layout): allow margin-width.
14094 * glyphs.c (update_widget_instances): make a normal function.
14095 (syms_of_glyphs): remove Qupdate_widget_instances.
14098 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14099 so that we don't corrupt ideas about the last event or
14100 command. Remove widget-callback-current-channel fiddling.
14101 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14103 2000-05-01 Martin Buchholz <martin@xemacs.org>
14105 * XEmacs 21.2.33 is released.
14107 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
14109 * make-src-depend: Allow dots in header file name.
14111 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
14113 * mule-charset.h (struct charset_lookup): Add
14114 next_allocated_1_byte_leading_byte and
14115 next_allocated_2_byte_leading_byte.
14116 * mule-charset.c: Move above two variables so that those values
14119 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
14121 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14122 when string length is zero.
14123 (find_charsets_in_emchar_string): Ditto.
14125 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
14127 * lisp.h: extern Qdialog and Qmenubar.
14129 * gui-x.c: added events.h.
14130 also fixed typo which made the file uncompilable.
14132 * general.c: Added Qmenubar and Qdialog
14134 2000-04-28 Ben Wing <ben@xemacs.org>
14136 * frame-msw.c (mswindows_init_frame_1):
14137 * frame-msw.c (mswindows_mark_frame):
14138 * event-msw.c (mswindows_enqueue_dispatch_event):
14140 * console-msw.h (struct mswindows_frame):
14141 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14142 there are now three hash tables for callbacks.
14143 mswindows_enqueue_dispatch_event is no longer static.
14145 * dialog-x.c (maybe_run_dbox_text_callback):
14146 * dialog-x.c (dbox_descriptor_to_widget_value):
14147 switch to new cons3 form for callbacks.
14149 * glyphs-msw.c (mswindows_register_gui_item):
14150 * glyphs-msw.c (mswindows_widget_instantiate):
14151 * glyphs-msw.c (add_tree_item):
14152 * glyphs-msw.c (add_tab_item):
14153 new image instance parameter, so it can be passed to callback-ex.
14154 respect :callback-ex as well as :callback.
14156 * glyphs-widget.c (VALID_GUI_KEYWORDS):
14159 * glyphs.c (print_image_instance):
14160 prettify, e.g. now prints widget type.
14163 certain funs have new image instance parameter.
14166 * gui.c (get_gui_callback):
14167 * gui.c (gui_item_add_keyval_pair):
14168 * gui.c (gui_item_init):
14169 * gui.c (gui_add_item_keywords_to_plist):
14170 * gui.c (mark_gui_item):
14171 * gui.c (gui_item_hash):
14172 * gui.c (gui_item_equal):
14173 * gui.c (copy_gui_item):
14174 * gui.c (syms_of_gui):
14175 recognize callback-ex in a number of places.
14176 also, fix the annoying "can't get out of yes-no dialog" bug.
14179 * gui.h (struct Lisp_Gui_Item):
14180 recognize callback-ex in a number of places.
14182 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14183 new parameter in button_item_to_widget_value.
14185 * glyphs-x.c (x_update_widget):
14186 * glyphs-x.c (x_button_instantiate):
14187 * glyphs-x.c (x_button_update):
14188 * glyphs-x.c (x_progress_gauge_instantiate):
14189 * glyphs-x.c (x_edit_field_instantiate):
14190 * glyphs-x.c (x_combo_box_instantiate):
14191 * glyphs-x.c (x_tab_control_instantiate):
14192 * glyphs-x.c (x_label_instantiate):
14193 new image instance parameter in various places.
14196 * event-Xt.c (enqueue_Xt_dispatch_event):
14197 this fun gets exported.
14200 * gui-msw.c (mswindows_handle_gui_wm_command):
14201 handle both :callback and :callback-ex, and generate our own
14202 event because it's one of the callback-ex arguments.
14205 * gui-x.c (popup_selection_callback):
14206 handle both :callback and :callback-ex, and generate our own
14207 event because it's one of the callback-ex arguments.
14208 * gui-x.c (button_item_to_widget_value):
14209 * gui-x.c (gui_items_to_widget_values_1):
14210 * gui-x.c (gui_item_children_to_widget_values):
14211 * gui-x.c (gui_items_to_widget_values):
14212 new image instance parameter in various places.
14214 * fns.c (Freplace_list):
14215 fix small typo in doc string.
14218 declare enqueue_Xt_dispatch_event.
14220 2000-04-28 Ben Wing <ben@xemacs.org>
14223 * buffer.c (Frecord_buffer):
14224 * buffer.c (syms_of_buffer):
14225 delete record-buffer-hook.
14228 * fns.c (Freplace_list):
14229 * fns.c (syms_of_fns):
14230 new primitive replace-list.
14233 slot for old buffer-alist.
14236 exfun replace-list.
14239 * redisplay.c (redisplay_frame):
14240 * redisplay.c (syms_of_redisplay):
14241 * redisplay.c (vars_of_redisplay):
14242 new hook buffer-list-changed-hook.
14245 2000-04-27 Ben Wing <ben@xemacs.org>
14247 * extents.h: extern in_modeline_generation.
14249 * redisplay.c (generate_formatted_string_db): set
14250 in_modeline_generation.
14252 * extents.c (extent_changed_for_redisplay): don't mark redisplay
14253 flags if in modeline generation. otherwise frame-modified-tick
14254 is ticked far too often.
14255 Declare in_modeline_generation.
14257 2000-04-26 Ben Wing <ben@xemacs.org>
14259 * emacs.c (vars_of_emacs): document quick-build "error-checking"
14261 (vars_of_emacs): add quick-build as an error-checking option.
14262 A bit kludgy, but there doesn't seem much point in creating
14263 a real var for this.
14265 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14267 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
14269 * redisplay.h (struct display_line): Add a new variable,
14272 * redisplay.c (create_text_block): Set dl->line_continuation if
14273 the line continues.
14274 (create_string_text_block): Ditto.
14275 (regenerate_window_incrementally): Use line_continuation instead
14276 of searching continuation glyph.
14277 (add_margin_runes): Call add_glyph_rune.
14278 (add_glyph_rune): Handle margin glyph.
14280 2000-04-20 Martin Buchholz <martin@xemacs.org>
14282 * filelock.c (fill_in_lock_file_name):
14284 Check for IS_ANY_SEP instead of '/'.
14286 Avoid generating gratuitous garbage. Call user_login_name() directly.
14287 Never check errno without first seeing that system call failed.
14288 (unlock_file): Add GCPRO.
14289 (Flock_buffer): Fix docstring.
14290 (Ffile_locked_p): Fix docstring. Add GCPRO.
14292 2000-04-19 Martin Buchholz <martin@xemacs.org>
14294 * sysdep.c (get_pty_max_bytes):
14295 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14296 strings longer than 252 bytes.
14298 * md5.c: Unconditionally include ANSI header <limits.h>
14300 * glyphs-x.c (convert_EImage_to_XImage):
14301 * lisp-union.h (union Lisp_Object):
14302 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14304 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
14306 * filelock.c (current_lock_owner): Remove unused variable o, p.
14308 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
14310 * callint.c: Remove multiply defined symbol Qlet
14311 (syms_of_callint): ditto.
14313 2000-04-14 Andy Piper <andy@xemacs.org>
14315 * general.c (syms_of_general): add last-command, this-command, let
14318 * lisp.h: declare various symbols.
14320 * glyphs.h: declare Qwidget_callback_current_channel;
14322 * glyphs-widget.c (syms_of_glyphs_widget): add
14323 Qgui_callback_current_channel.
14324 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14326 * gui-msw.c (mswindows_handle_gui_wm_command): bind
14327 widget-callback-current-channel when invoking the interactive
14328 arg. Also bind last-command and next-command when invoking the
14330 * gui-x.c (popup_selection_callback): ditto.
14332 * gui.c (get_gui_callback): massage args so that we are always
14333 calling eval. This allows us to add our own variable bindings
14336 * glyphs-x.c (x_button_instantiate): use
14337 gui_items_to_widget_values since this is GC safe.
14338 (x_progress_gauge_instantiate): ditto.
14339 (x_edit_field_instantiate): ditto.
14340 (x_label_instantiate): ditto.
14342 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14343 (emacs_Xt_event_widget_focus_out): new function
14344 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14346 (emacs_Xt_event_add_widget_actions): new function. add focus
14347 functions as actions.
14348 (init_event_Xt_late): use it.
14350 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
14352 * event-stream.c (Fdispatch_event): Doc fix.
14354 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
14356 * postgresql.c: Remove all references to PQsetenv*.
14358 * postgresql.h: Remove references to PGsetenvHandler object.
14359 * lrecord.h (lrecord_type): Ditto.
14361 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14363 * glyphs-msw.h (struct mswindows_image_instance_data): Added
14364 real_heigh and real_width members, and accessor macros for these.
14366 * glyphs-msw.c (init_image_instance_geometry): New function.
14367 (init_image_instance_from_dibitmap): Use it.
14368 (mswindows_resource_instantiate): Use it.
14369 (init_image_instance_from_xbm_inline): Use it.
14370 (mswindows_initialize_image_instance_mask): Use real bitmap
14372 (mswindows_create_resized_bitmap): Ditto.
14373 (mswindows_create_resized_mask): Ditto.
14375 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14376 and bitmap to their surface size.
14378 2000-04-11 Jan Vroonhof <jan@xemacs.org>
14380 * process-unix.c (unix_send_process): Guard against process MIA
14381 after Faccept_process_output.
14383 2000-04-11 Ben Wing <ben@xemacs.org>
14385 * eval.c (unbind_to_hairy): fix brokenness introduced by
14386 nanosecond speed improvements.
14388 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
14390 * sunplay.c (init_device): To play sounds correctly, the device
14391 apparently needs to be initialized at least once by XEmacs. Make
14394 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
14396 * redisplay.c (add_margin_runes): Add text image glyph
14399 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
14401 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14402 gcc is newer than 2.5.
14404 2000-04-06 Colin Rafferty <colin@xemacs.org>
14406 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14408 * fns.c (size_bit_vector):
14409 * alloc.c (size_vector):
14410 (make_vector_internal):
14411 (make_bit_vector_internal):
14412 (sweep_bit_vectors_1):
14413 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14415 2000-04-06 Andy Piper <andy@xemacs.org>
14417 * gmalloc.c (malloc): undo previous change.
14422 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
14424 * line-number.c (buffer_line_number): Revert to former version.
14426 2000-04-06 Andy Piper <andy@xemacs.org>
14428 * gmalloc.c (malloc): add error checking.
14433 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14434 button_item_to_widget_value arg.
14436 * glyphs-x.c (x_button_instantiate): add extra
14437 button_item_to_widget_value arg.
14438 (x_progress_gauge_instantiate): ditto.
14439 (x_edit_field_instantiate): ditto.
14440 (x_label_instantiate): ditto.
14442 * gui-x.c (gui_items_to_widget_values_1): add extra
14443 button_item_to_widget_value arg.
14444 (button_item_to_widget_value): add extra menu_item_p arg.
14446 * gui-x.h: change signature of button_item_to_widget_value.
14448 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14449 button_item_to_widget_value arg.
14451 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
14453 * buffer.h (struct buffer): auto_save_modified should be long.
14455 2000-04-05 Andy Piper <andy@xemacs.org>
14457 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14459 (button_query_geometry): give a little more room so that athena
14462 2000-04-05 Andy Piper <andy@xemacs.org>
14464 * faces.c (complex_vars_of_faces): The widget face should inherit
14465 the font of the gui-element face.
14467 2000-04-04 Andy Piper <andy@xemacs.org>
14469 * glyphs-x.c (x_button_update): new function. unconditionally
14470 update a button's state when the instance is dirty.
14471 (image_instantiator_format_create_glyphs_x): add x_button_update.
14472 (x_widget_instantiate): remove old resize cruft.
14474 2000-04-02 Andy Piper <andy@xemacs.org>
14476 * frame.c (change_frame_size_1): The introduction of gutters means
14477 that we need to allow 0 as a potential frame dimension.
14479 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
14481 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14482 image glyph if allow_cursor.
14483 (add_hscroll_rune): Don't allow cursor to border glyph.
14484 (create_text_block): Ditto.
14486 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14487 text not in buffer.
14488 (redisplay_output_layout): Call ensure_face_cachel_complete for
14492 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
14494 * redisplay.c (add_glyph_rune): Adding text image as text runes.
14496 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14499 * redisplay-tty.c (tty_output_display_block): Delete the routine
14500 for text image glyph
14501 * redisplay-x.c (x_output_display_block): ditto
14502 * redisplay-msw.c (mswindows_output_display_block): ditto
14504 2000-02-02 Mike Alexander <mta@arbortext.com>
14506 Note: Some of these were committed by accident as part of other
14509 * regex.c (regex_compile): Avoid compiler warnings.
14511 * ntproc.c (sys_spawnve): Avoid compiler warnings.
14513 * nt.h: Declare term_ntproc correctly.
14515 * nt.c: Remove incorrect declaration of get_home_directory which
14516 is declared correctly in lisp.h.
14518 * keymap.c (get_keyelt): Avoid compiler warnings.
14519 (raw_lookup_key_mapper): Avoid compiler warnings.
14521 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14523 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14525 * filemode.c (mode_string): Avoid compiler warnings.
14527 * file-coding.c (Fcoding_system_aliasee): Add return statement to
14530 * events-mod.h: Undef some things that winuser.h defines differently.
14532 * data.c (Faset): Avoid compiler warnings.
14534 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14536 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
14538 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14539 Fall through to simple beep on error.
14540 Replace "extern" by real header file.
14542 * linuxplay.c: Use nativesound.h
14543 (play_sound_data): Return error code. Be less verbose on error.
14545 * sunplay.c: Use nativesound.h
14546 (play_sound_data): Return error code. Be less verbose on error.
14548 * ntplay.c: Use nativesound.h
14549 (play_sound_data): Return fake error code
14551 * sgiplay.c: Use nativesound.h
14552 (play_sound_data): Return error code
14554 * hpplay.c: Use nativesound.h, partially implement
14555 new error code. Break compilation until finished.
14556 (play_sound_data): error code.
14558 * nativesound.h (play_sound_file):
14559 (play_sound_data): Prototype in new header.
14561 2000-03-31 Andy Piper <andy@xemacs.org>
14563 * glyphs-widget.c: (button_query_geometry): new function. Adjust
14564 for toggle and radio buttons.
14565 (image_instantiator_buttons): use it.
14567 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
14569 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14570 (x_update_horizontal_scrollbar_callback): Return if no mirror was
14571 found. Scrollbar event probably belonged to some old config.
14573 2000-03-31 Andy Piper <andy@xemacs.org>
14575 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14577 (initialize_widget_image_instance): default layout to
14578 LAYOUT_HORIZONTAL rather than 0.
14579 (widget_instantiate): reverse the item list at the end rather than
14581 (layout_layout): re-code for the border text at the front of the
14582 item list rather than at the end.
14583 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14584 provided by the user.
14585 (widget_query_geometry): comment.
14587 2000-03-30 Andy Piper <andy@xemacs.org>
14589 * glyphs-widget.c (image_instantiator_layout): allow standard
14590 widget keywords in layouts.
14592 * gutter.c (output_gutter): cope with nil gutter contents.
14594 * frame.c (Fset_frame_properties): add gutter docs.
14596 2000-03-29 Andy Piper <andy@xemacs.org>
14598 * toolbar-msw.c (TBSTYLE_FLAT): add.
14599 (mswindows_output_toolbar): minor fiddling.
14601 2000-03-29 Andy Piper <andy@xemacs.org>
14603 * gutter.c (output_gutter): force gutter size recalculation if
14604 what we are trying to display won't fit.
14605 (update_gutter_geometry): new function. A per-gutter version of
14606 update_frame_gutter_geometry.
14607 (update_frame_gutter_geometry): use it.
14608 (redraw_exposed_gutter): add extra debugging output.
14610 2000-03-28 Mike Alexander <mta@arbortext.com>
14612 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14613 (pdump_file_unmap): Implement it on Windows
14614 (pdump_file_get): Save alocated handles for pdump_file_unmap
14616 2000-03-28 Andy Piper <andy@xemacs.org>
14618 * gui.c (get_gui_callback): treat Quit specially.
14620 2000-03-27 Andy Piper <andy@xemacs.org>
14622 * glyphs.c (image_instantiate): be careful to check in the same
14625 2000-03-27 Didier Verna <didier@xemacs.org>
14627 * config.h.in: define the proper SMART_INCLUDE macro.
14628 handle renaming of `foo_h_path' to `foo_h_file'.
14630 * database.c: ditto.
14634 * linuxplay.c: ditto.
14636 * terminfo.c: ditto.
14638 * tooltalk.h: ditto.
14640 2000-03-27 Andy Piper <andy@xemacs.org>
14642 * glyphs-msw.c (mswindows_update_widget): make sure the widget
14643 gets updated whenever the face might have changed.
14645 2000-03-26 Mike Alexander <mta@arbortext.com>
14647 * dumper.c (pdump_resource_free): Fix the comment.
14649 2000-03-21 Olivier Galibert <galibert@pobox.com>
14651 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14653 2000-03-22 Mike Alexander <mta@arbortext.com>
14655 * dumper.c: Include Windows headers on Windows
14656 (pdump_resource_free): Add a body to the function
14657 (pdump_load): exe_name -> exe_path and add some comments.
14659 2000-03-25 Mike Alexander <mta@arbortext.com>
14661 * gui.c (copy_gui_item_tree): Return a value in all cases
14663 2000-03-21 Didier Verna <didier@xemacs.org>
14665 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14667 (SMART_INCLUDE): new macro.
14668 (POSTGRES_INCLUDE): new macro to include postgresql headers from
14669 the proper location.
14671 * postgresql.c: use it.
14675 2000-03-24 Andy Piper <andy@xemacs.org>
14677 * gutter.c (redraw_exposed_gutters): must be "in display" when we
14680 2000-03-24 Andy Piper <andy@xemacs.org>
14682 * redisplay-output.c (compare_runes): use image_instance_changed
14683 to detect changes. Do not depend on glyphs_changed, only depend on
14685 (redisplay_output_layout): add debug messages.
14686 (compare_runes): ditto.
14688 * glyphs.h: declare new functions.
14689 (struct Lisp_Image_Instance): remove percent and associated
14692 * gui.h: declare new copying functions.
14694 * gui.c (copy_gui_item_tree): new function.
14695 (copy_gui_item): new function.
14696 (gui_item_id_hash): revert to standard hash.
14697 (gui_item_hash): ditto.
14698 (gui_item_hash_internal): deleted.
14699 (mark_gui_item): mark value.
14700 (gui_item_add_keyval_pair): add value.
14701 (gui_item_init): ditto.
14702 (gui_add_item_keywords_to_plist): ditto.
14703 (gui_item_equal): ditto.
14704 (syms_of_gui): add Q_value.
14706 * glyphs-x.c (x_progress_gauge_update): use pending items and
14707 value for setting the state.
14708 (x_update_widget): don't set items from pending here.
14710 * glyphs-widget.c (update_widget): update items here.
14711 (progress_gauge_set_property): use items for storing value. Put
14712 new value in pending items.
14714 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14715 items for new value. Convert percent -> value.
14716 (mswindows_tab_control_update): don't update items here.
14718 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14719 (update_subwindow): ditto.
14720 (image_instance_changed): new function. Compare hash values and
14721 past and present widget items.
14722 (image_instantiate): We more careful about where we instantiate
14724 (image_instantiate): add error checking.
14726 * gutter.c (syms_of_gutter): use -hook.
14728 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
14730 * console-tty.c (Fset_console_tty_input_coding_system): Use
14732 (Fset_console_tty_output_coding_system): Use Qterminal.
14733 (tty_init_console): Use Qkeyboard and Qterminal.
14735 2000-03-21 Ben Wing <ben@xemacs.org>
14737 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14738 From Mike Alexander <mta@arbortext.com>.
14740 2000-03-21 Ben Wing <ben@xemacs.org>
14742 * event-msw.c (mswindows_need_event): Horrible kludge to fix
14743 process brokenness. Proper implementation to come.
14745 Rename call-process-internal to old-call-process-internal.
14746 New impl. in process.el.
14748 2000-03-21 Martin Buchholz <martin@xemacs.org>
14750 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14752 2000-03-20 Andy Piper <andy@xemacs.org>
14754 * glyphs.c (full_list_hash): make hashes of the same elements in
14755 different orders return different values.
14757 2000-03-20 Martin Buchholz <martin@xemacs.org>
14759 * XEmacs 21.2.32 is released.
14761 2000-03-20 Martin Buchholz <martin@xemacs.org>
14763 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14764 (DFC_MALLOC_USE_CONVERTED_DATA):
14765 Add aliasing-safe casts to allow use with char* or unsigned char*
14768 * eldap.c (Fldap_open):
14769 (Fldap_search_basic):
14772 Make C++-compilable.
14773 Make sure GCPRO'ed variables are initialized.
14774 Use temp variables to avoid repeated calls to Flength.
14776 2000-03-16 Martin Buchholz <martin@xemacs.org>
14779 Make sure PATH_MAX is always defined.
14780 Include limits.h for PATH_MAX.
14781 Deprecate use of MAXPATHLEN.
14783 2000-03-10 Martin Buchholz <martin@xemacs.org>
14785 * emacs.c: Add reinit_vars_of_fileio.
14786 * symsinit.h: Add reinit_vars_of_fileio.
14787 * fileio.c (reinit_vars_of_fileio): New.
14788 * fileio.c (Fmake_temp_name):
14789 Initialize temp_name random number from microseconds to make
14790 collisions even less likely. Initialize always at process startup
14791 time. (make-temp-name) used to return the same file name twice in
14793 Random stylistic fiddling.
14796 2000-03-20 Andy Piper <andy@xemacs.org>
14798 * glyphs.c (image_instantiate): allow text glyphs to be
14799 instantiated in the minibuffer window.
14801 2000-03-19 Andy Piper <andy@xemacs.org>
14803 * glyphs.c (image_instance_hash): be careful about which items we
14806 * glyphs-widget.c (tab_control_set_property): record into pending
14807 items rather than the actual items.
14809 * glyphs-x.c (x_update_widget): use pending items to update with.
14811 * glyphs-msw.c (mswindows_tab_control_update): use pending items
14814 * glyphs.c (mark_image_instance): mark pending items.
14816 * window.c (Fset_window_configuration): record the buffer.
14817 (Fselect_window): totally revert previous change which breaks many
14820 2000-03-18 Andy Piper <andy@xemacs.org>
14822 * glyphs-msw.c (mswindows_tab_control_update): force selected
14825 * glyphs.c (image_instantiate): don't allow the minibuffer as a
14826 window domain cache, otherwise we get inconsistencies at
14827 startup. There is something fishy at startup which can lead to the
14828 minibuffer being the selected window when the gutter content is
14831 * gui.c (parse_gui_item_tree_list): add probably unnecessary
14833 (parse_gui_item_tree_children): ditto.
14834 (parse_gui_item_tree_item): ditto.
14836 * glyphs.c (Fupdate_widget_instances): return something.
14838 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
14840 * window.c (Fselect_window): Undo 2000-03-17 change.
14842 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
14844 * postgresql.c (Fpq_setenv): Remove this turkey when linking
14845 against v7.0 libraries. Insta-coredump city until the postgres
14848 2000-03-17 Andy Piper <andy@xemacs.org>
14850 * faces.c (complex_vars_of_faces): don't give the widget face an
14851 inherited background pixmap.
14853 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14856 * event-stream.c (Fdispatch_non_command_events): return something.
14858 * gutter.c (output_gutter): use widget face.
14859 (clear_gutter): ditto.
14861 * NEWS: adjust again.
14863 * window.c (Fselect_window): make sure this runs to completion to
14864 avoid oddities with Fset_window_configuration.
14865 (Fcurrent_window_configuration): in general do not save the
14866 minibuffer as the selected window.
14868 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14870 2000-03-16 Olivier Galibert <galibert@pobox.com>
14872 * emacs.c (Frunning_temacs_p): Revert previous patch.
14873 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14875 2000-03-16 Andy Piper <andy@xemacs.org>
14877 * glyphs-x.c (x_tab_control_update): if no widget values then
14880 * NEWS: update for new features.
14882 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14883 synthetic event to the native system.
14884 (reinit_vars_of_event_Xt): set force_event_pending to
14885 emacs_Xt_force_event_pending.
14887 * events.h (struct event_stream): add force_event_pending.
14889 * specifier.c (recompute_one_cached_specifier_in_window): add
14892 * redisplay.c (redisplay_frame): don't call
14893 update_frame_subwindows. Reset subwindow cachels when
14894 subwindows_changed, removing this was an optimization too far.
14896 * redisplay-output.c (compare_runes): reorganize so that we catch
14897 glyph changes when we want them. Set optimize_output when this
14898 would help layouts.
14899 (redisplay_output_layout): remove frame_really_changed, use
14900 optimize_output instead.
14902 * redisplay-msw.c (mswindows_output_display_block): reset
14903 optimize_output after outputting a glyph.
14904 * redisplay-x.c (x_output_display_block): ditto.
14905 * redisplay-tty.c (tty_output_display_block): ditto.
14907 * gutter.c: (specifier_vars_of_gutter): use new spec changed
14909 (gutter_specs_changed): do specific gutter positions.
14910 (top_gutter_specs_changed): new function. Only update the
14911 specified gutter specs.
14912 (bottom_gutter_specs_changed): ditto.
14913 (left_gutter_specs_changed): ditto.
14914 (right_gutter_specs_changed): ditto.
14916 * gui.c (gui_item_hash_internal): new function, does a real hash.
14917 (gui_item_id_hash): use it.
14918 (gui_item_hash): hash the eval'ed gui_item.
14920 * gui-x.c (popup_selection_callback): send an eval event to call
14921 Fupdate_widget_instances.
14923 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14924 to call Fupdate_widget_instances.
14926 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14927 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14929 * glyphs.c: (update_frame_subwindows): deleted.
14930 (Fupdate_widget_instances): new function for updating the dirty
14931 state of widgets that might have changed.
14932 (syms_of_glyphs): add Qupdate_widget_instances.
14933 (full_list_hash): hash a list completely.
14934 (image_instance_hash): use it for items and properties.
14936 * frame-msw.c (mswindows_size_frame_internal): remove unused
14939 * faces.h (struct face_cachel): fix comment.
14941 * event-stream.c (Fdispatch_non_command_events): new
14942 function. Process non-command events, forcing an event cycle
14944 (syms_of_event_stream): declare.
14945 (event_stream_force_event_pending): new function. Force an event
14946 on the native event queue so that an event cycle will occur next
14950 (struct ntpipe_shove_stream):
14951 (mswindows_enqueue_dispatch_event):
14952 (mswindows_dequeue_dispatch_event):
14953 (mswindows_cancel_dispatch_event):
14954 (mswindows_pump_outstanding_events):
14955 (mswindows_drain_windows_queue):
14956 (mswindows_handle_paint):
14957 (mswindows_wnd_proc):
14958 (mswindows_key_to_emacs_keysym):
14959 (get_process_input_waitable):
14960 (emacs_mswindows_delete_stream_pair): re-indent file.
14961 (mswindows_need_event): do not process further fds if the windows
14962 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14963 fixes the 100% cpu problem.
14964 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14966 2000-03-15 Olivier Galibert <galibert@pobox.com>
14972 * emacs.c: Moved dump file searching to dumper.c.
14973 (Frunning_temacs_p): Fixed.
14975 * alloc.c: Moved everything pdump-related to dumper.c. Removed
14976 last_lrecord_type_index_assigned.
14978 2000-02-20 Olivier Galibert <galibert@pobox.com>
14980 * symsinit.h: Added reinit parameter to init_console_stream
14983 * lisp.h: Added file parameter to pdump_load declaration.
14985 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14986 support. Added dump file searching.
14988 * config.h.in: Added EMACS_PROGNAME.
14990 * console-stream.c (init_console_stream): Fix reinitialisation
14991 when running from temacs.
14993 * alloc.c (pdump): Add id support.
14994 (pdump_load): Add file parameter and signature/id support.
14996 * Makefile.in.in: Add full pdump support.
14998 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
15000 * postgresql.c: Update documentation to reflect latest code
15002 (print_result): Show tuple counts in printed representation when
15004 (Fpq_put_nbytes): MULE-ize.
15005 (Fpq_get_line_async): Ditto.
15007 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
15009 * postgresql.c (Fpq_lo_import): Fix return value.
15010 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15012 2000-03-13 Ben Wing <ben@xemacs.org>
15014 * alloc.c (pdump_load):
15015 Fix compile warning under mswin.
15017 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
15019 * postgresql.c: Mule-ization, bug fixes.
15020 Use PG_CODING to encapsulate coding system name changes.
15021 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15022 (pg-coding-system): Create.
15024 (Fpq_conn_defaults): Mule-ize.
15025 (Fpq_connectdb): Mule-ize & bug fix.
15026 (Fpq_connect_start): Mule-ize.
15027 (Fpq_set_client_encoding): Mule-ize.
15028 (Fpq_finish): Document `DEAD' connection status.
15029 (Fpq_clear): Ditto.
15030 (Fpq_pgconn): Mule-ize.
15031 (Fpq_exec): Mule-ize & bug fix.
15032 (Fpq_send_query): Ditto.
15033 (Fpq_get_result): Ditto.
15034 (Fpq_res_status): Mule-ize.
15035 (Fpq_result_error_message): Mule-ize.
15036 (Fpq_ntuples): fix comments.
15037 (Fpq_fname): Mule-ize.
15038 (Fpq_fnumber): Mule-ize.
15039 (Fpq_ftype): fix comments.
15040 (Fpq_get_value): Mule-ize.
15041 (Fpq_cmd_status): Ditto.
15042 (Fpq_cmd_tuples): Ditto.
15043 (Fpq_oid_value): Ditto.
15044 (Fpq_notifies): Ditto.
15045 (Fpq_lo_import): Ditto.
15046 (Fpq_lo_export): Ditto.
15047 (Fpq_get_line): Ditto.
15048 (Fpq_put_line): Mule-ize and bug fix.
15049 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15051 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
15053 * postgresql.c (vars_of_postgresql): Mule-ize.
15054 (Fpq_conn_defaults): Ditto.
15056 2000-03-12 Ben Wing <ben@xemacs.org>
15058 * alloc.c (Fmake_byte_code):
15059 * alloc.c (debug_string_purity_print):
15060 * alloc.c (pdump_backtrace):
15061 * alloc.c (pdump_get_indirect_count):
15062 * alloc.c (pdump_register_sub):
15063 * alloc.c (pdump_register_object):
15064 * alloc.c (pdump_register_struct):
15065 * alloc.c (pdump_dump_data):
15066 * alloc.c (pdump_reloc_one):
15070 * console-msw.c (GetConsoleHwnd):
15071 * console-msw.c (msw_hide_console):
15072 * console-msw.c (msw_show_console):
15073 * console-msw.c (msw_ensure_console_buffered):
15074 * console-msw.c (msw_output_console_string):
15075 * console-msw.c (console_type_create_mswindows):
15077 a) Added functions to manipulate the console window for use with
15080 b) Added support for writing text to the console, which is now
15081 used under Windows when xemacs is not being run non-interactively,
15082 to write text that would otherwise be destined for stdout because
15083 under these circumstances, text written to stdout tends to
15084 disappear and not be seen.
15088 * event-Xt.c (x_event_to_emacs_event):
15089 * event-Xt.c (describe_event_window):
15090 * events-mod.h (XEMACS_MOD_CONTROL):
15092 * events.c (Fmake_event):
15093 * events.c (character_to_event):
15094 * events.c (event_to_character):
15095 * events.c (format_event_object):
15096 * events.c (Fevent_modifiers):
15098 * events.h (struct key_data):
15099 * events.h (struct button_data):
15100 * events.h (struct misc_user_data):
15101 * frame-x.c (Fcde_start_drag_internal):
15102 * frame-x.c (Foffix_start_drag_internal):
15103 * gpmevent.c (Freceive_gpm_event):
15105 * keymap.c (bucky_sym_to_bucky_bit):
15106 * keymap.c (control_meta_superify):
15107 * keymap.c (make_key_description):
15108 * keymap.c (keymap_lookup_directly):
15109 * keymap.c (create_bucky_submap):
15110 * keymap.c (keymap_store):
15111 * keymap.c (define_key_check_and_coerce_keysym):
15112 * keymap.c (define_key_parser):
15113 * keymap.c (define_key_alternate_name):
15114 * keymap.c (Fdefine_key):
15115 * keymap.c (raw_lookup_key_mapper):
15116 * keymap.c (struct map_keymap_unsorted_closure):
15117 * keymap.c (map_keymap_unsorted_mapper):
15118 * keymap.c (map_keymap_sort_predicate):
15119 * keymap.c (map_keymap_sorted):
15120 * keymap.c (accessible_keymaps_mapper_1):
15121 * keymap.c (where_is_recursive_mapper):
15122 * keymap.c (describe_map_mapper):
15123 * keymap.c (describe_map_sort_predicate):
15124 * keymap.c (describe_map):
15125 * keymap.c (complex_vars_of_keymap):
15126 And a number of other files, the key modifier preprocessor
15127 constants that xemacs uses have names that conflict with constants
15128 defined under MS Windows for other purposes, so they were renamed
15129 to begin with the prefix XEMACS_. The variables that hold such
15130 modifiers were changed to consistently be of type int to fix
15131 various compile warnings.
15133 * console.c (complex_vars_of_console):
15136 * device-msw.c (mswindows_finish_init_device):
15137 * device-msw.c (msw_get_workspace_coords):
15138 * device-msw.c (mswindows_device_system_metrics):
15139 and various other files, added support for a new
15140 device property called offset-workspace which returns the position
15141 of the upper left corner of the workspace area and goes along with
15142 the existing size-workspace property.
15145 * dialog-msw.c (push_bufbyte_string_as_unicode):
15146 * dialog-msw.c (mswindows_popup_dialog_box):
15147 Added support for XEmacs-style accelerator specifications in
15148 button text. Note: I didn't add support for this under X Windows,
15149 and somebody needs to do this.
15152 * dialog.c (Fpopup_dialog_box):
15153 Documented the support for accelerators that was just mentioned.
15155 editfns.c (get_home_directory): Changed behavior under Windows
15156 when HOME not defined; former behavior was irretrievably broken.
15159 * emacs.c (main_1):
15161 * minibuf.c (clear_echo_area_internal):
15162 * minibuf.c (echo_area_append):
15164 * print.c (std_handle_out_external):
15165 * print.c (std_handle_out_va):
15167 * print.c (write_string_to_stdio_stream):
15168 * print.c (output_string):
15169 * print.c (debug_print):
15170 * print.c (debug_backtrace):
15171 * print.c (debug_short_backtrace):
15172 Cleaned up the code that prints text to stdout so that this can be
15173 changed to output into a console window instead under MS Windows,
15174 as described above.
15177 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15178 * eval.c (internal_catch):
15179 * eval.c (unwind_to_catch):
15180 * eval.c (throw_or_bomb_out):
15181 * eval.c (condition_case_1):
15182 * eval.c (signal_1):
15183 * eval.c (check_error_state_sanity):
15184 * eval.c (call_with_suspended_errors_1):
15185 * eval.c (call_with_suspended_errors):
15186 * eval.c (reinit_vars_of_eval):
15187 Added code to catch throw loops and check for a pesky bug that may
15191 * event-msw.c (key_needs_default_processing_p):
15192 * event-msw.c (mswindows_wnd_proc):
15193 * event-msw.c (mswindows_modifier_state):
15194 * event-msw.c (emacs_mswindows_quit_p):
15195 * event-msw.c (vars_of_event_mswindows):
15196 a) Added support for using the alt key to select menu items as is
15197 standard under MS Windows. This is controlled using the variable
15198 menu-accelerator-enabled, just like under X Windows. There is an
15199 option on the options menu to turn this support on. I really
15200 think that it should be on by default under Windows, but I'm not
15201 going to make this change yet.
15203 b) Added support for dynamic display size changes under Windows.
15206 * event-stream.c (maybe_echo_keys):
15207 * event-stream.c (Fnext_event):
15208 * event-stream.c (command_builder_find_leaf):
15209 * event-stream.c (lookup_command_event):
15210 * event-stream.c (execute_command_event):
15211 * event-stream.c (pre_command_hook):
15212 * event-stream.c (post_command_hook):
15213 * event-stream.c (syms_of_event_stream):
15214 * event-stream.c (vars_of_event_stream):
15215 * event-stream.c (complex_vars_of_event_stream):
15216 * events.h (struct command_builder):
15218 a) Tried to clean up a little bit the horribly written x-specific
15219 accelerator code that crept into this file. I moved this code
15220 into menubar-x.c where it belongs. I also needed to move the
15221 command builder structure into the file events.h because it is
15222 accessed directly by this accelerator code. What I didn't do, but
15223 which should be done at some point, is to properly abstract this
15224 code using device methods instead of the kludgy way that it
15225 currently hooks into the event code.
15227 b) Added the lisp variables this-command-properties and
15228 last-command- properties, which should be used to synchronize two
15229 adjacent commands in preference to playing games with the variable
15230 this-command, which is typically what happens.
15232 c) Added some slightly nasty code to hook into the lisp support
15233 for shifted- motion-key selection. This is actually necessary for
15234 somewhat complicated reasons, which are described in
15235 simple.el. (NB: I think the proper thing would be to have the code
15236 that calls the pre and post command hooks also call out to generic
15237 lisp functions in simple.el, where all built-in stuff could be
15238 added. I will think about this more.)
15240 * event-unixoid.c (poll_fds_for_input):
15241 * lread.c (readchar):
15242 * redisplay-tty.c (tty_clear_frame):
15243 * redisplay-x.c (x_get_gc):
15244 * signal.c (interrupt_signal):
15245 And a whole bunch of other files: fixed up places that printed
15246 directly to stderr to instead call the function stderr_out so that
15247 the changes I made under Windows work correctly.
15249 * filemode.c (mode_string):
15253 * frame-msw.c (mswindows_size_frame_internal):
15254 Fixed the computation of frame size and position to keep the frame
15255 within the workspace area, rather than within the physical
15256 dimensions of the screen, so that the frame doesn't overlap window
15257 manager decorations, such as the start menu and toolbar, typically
15258 at the bottom of the screen.
15260 * frame.c (vars_of_frame):
15261 Changed the default frame title format under MS Windows to consist
15262 of buffername-XEmacs, which is standard under MS Windows. I think
15263 it might be a good idea to change this everywhere because I think
15264 it is superior to the current frame title format, but this is the
15265 kind of change that is likely to cause some people to get annoyed,
15266 so I'm not making it.
15268 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15270 * gui-msw.c (mswindows_handle_gui_wm_command):
15271 Fixed compile warnings.
15274 * gui-x.c (strdup_and_add_accel):
15275 * gui-x.c (button_item_to_widget_value):
15277 Added code to automatically put an accelerator onto the beginning
15278 of menu items that don't have one as is now the standard, and is
15279 described more later. Also fixed things so that the menu item
15280 name can be an evaluated expression, again a new standard.
15283 * gui.c (gui_item_add_keyval_pair):
15284 * gui.c (make_gui_item_from_keywords_internal):
15285 * gui.c (gui_add_item_keywords_to_plist):
15286 * gui.c (gui_item_accelerator):
15287 * gui.c (gui_name_accelerator):
15288 * gui.c (gui_item_included_p):
15289 * gui.c (gui_item_display_flush_left):
15290 * gui.c (gui_item_display_flush_right):
15291 * gui.c (parse_gui_item_tree_item):
15292 * gui.c (parse_gui_item_tree_children):
15293 * gui.c (parse_gui_item_tree_list):
15294 Mule-ized. Cleanup. GCPRO addition.
15296 * line-number.c (buffer_line_number):
15298 * lisp.h (EMACS_INT_MAX):
15299 Added the manifest constant EMACS_INT_MIN corresponding to the
15300 existing constant EMACS_INT_MAX. This is partially to fix compile
15301 warnings under Windows, and partly for cleanliness.
15304 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15305 * menubar-msw.c (msw_translate_menu_or_dialog_item):
15306 * menubar-msw.c (displayable_menu_item):
15307 * menubar-msw.c (populate_menu_add_item):
15308 * menubar-msw.c (populate_or_checksum_helper):
15309 * menubar-msw.c (populate_menu):
15310 * menubar-msw.c (update_frame_menubar_maybe):
15311 * menubar-msw.c (prune_menubar):
15312 * menubar-msw.c (msw_char_is_accelerator):
15313 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15314 * menubar-msw.c (mswindows_handle_wm_command):
15315 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15316 * menubar-msw.c (mswindows_handle_wm_initmenu):
15317 * menubar-msw.c (mswindows_update_frame_menubars):
15318 * menubar-msw.c (mswindows_free_frame_menubars):
15319 * menubar-msw.c (mswindows_popup_menu):
15320 Fixed a bug in handling accelerators where an extra character
15321 would be displayed in the menu item. Also generalized the
15322 function displayable_menu_item because it is now used by the
15323 dialog box code as well. And finally, added code in the functions
15324 that create the menubar to extract a list of accelerators for the
15325 top level menubar, which is used in the event code to determine
15326 whether a particular alt-key combination should be used to invoke
15327 a menu item, or should be passed through to access the standard
15328 XEmacs keymap binding for this key combination.
15330 Much needed GCPROing.
15333 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15334 * menubar-x.c (menu_item_descriptor_to_widget_value):
15335 * menubar-x.c (restore_in_menu_callback):
15336 * menubar-x.c (x_popup_menu):
15337 * menubar-x.c (menu_move_up):
15338 * menubar-x.c (menu_move_down):
15339 * menubar-x.c (menu_move_left):
15340 * menubar-x.c (menu_move_right):
15341 * menubar-x.c (menu_select_item):
15342 * menubar-x.c (command_builder_operate_menu_accelerator):
15343 * menubar-x.c (menu_accelerator_junk_on_error):
15344 * menubar-x.c (command_builder_find_menu_accelerator):
15345 * menubar-x.c (Faccelerate_menu):
15347 Moved a whole bunch of code here that was previously in
15348 event-stream.c as described above. There is also code connected
15349 to the new standard of adding an accelerator to the beginning of
15350 menu items that don't have one as described above and below.
15353 * menubar.c (menu_parse_submenu_keywords):
15354 * menubar.c (Fmenu_find_real_submenu):
15355 * menubar.c (Fnormalize_menu_item_name):
15356 * menubar.c (syms_of_menubar):
15357 * menubar.c (vars_of_menubar):
15358 * menubar.c (complex_vars_of_menubar):
15360 a) Cleaned up a bunch of documentation and improved it.
15362 b) XEmacs now automatically adds an accelerator onto the beginning
15363 of any menu items that don't have one. I did this because there
15364 will inevitably be some menu items on the main menubar that don't
15365 have accelerators on them because the package that adds that
15366 particular menu item hasn't yet been fixed up to have accelerators
15367 in them and it looked rather strange to have some items with and
15368 some items without accelerators, especially since even in items
15369 without accelerators, you can, at least under windows, still
15370 access the item through an accelerator corresponding to the first
15371 character in the item's name. If people don't like this behavior,
15372 I can add a variable to turn it off optionally, but I'm not sure
15373 this is a good idea because we really do need to have accelerators
15374 on all of the menu items, and if a package doesn't like the
15375 accelerators being put on the first character, then it should put
15376 the accelerators where they belong.
15378 c) I made a behavior change, which is that the descriptor that
15379 specifies the text of the menu item, which formerly was just a
15380 string, can now also be an evaluated expression. This makes this
15381 descriptor parallel with all of the others, which could also be
15382 evaluated expressions. This also obviates the need for the
15383 keyword :label, which was previously listed in the documentation
15384 as unimplemented, and which was for the same purpose.
15389 * ntproc.c (new_child):
15390 * ntproc.c (sys_spawnve):
15391 * ntproc.c (find_child_console):
15392 * ntproc.c (sys_kill):
15393 Fixed compile warnings. By the way, this file should really go
15394 away entirely, and this will happen as soon as Kirill makes his
15395 final round of process cleanups, which affect the function
15399 * process-nt.c (struct nt_process_data):
15400 * process-nt.c (find_process_from_pid):
15401 * process-nt.c (send_signal_the_nt_way):
15402 * process-nt.c (enable_child_signals):
15403 * process-nt.c (find_child_console):
15404 * process-nt.c (send_signal_the_95_way):
15405 * process-nt.c (nt_finalize_process_data):
15406 * process-nt.c (ensure_console_window_exists):
15407 * process-nt.c (nt_create_process):
15408 * process-nt.c (nt_kill_child_process):
15409 * process-nt.c (nt_kill_process_by_pid):
15410 * process-nt.c (nt_open_network_stream):
15411 * process-nt.c (vars_of_process_nt):
15412 Copied over code from Emacs 20.5 to correctly send signals to sub-
15413 processes under Windows 95. Also added code to automatically
15414 create and hide console window when a sub-process is created under
15415 Windows 95, which obviates the need for the separate runemacs.exe
15416 executable, and finally implemented some variables that were
15417 implemented in Emacs 20.5, but previously not in XEmacs. These
15418 include mswindows- start-process-share-console and
15419 mswindows-start-process-inherit-error-mode. (Both of these only
15420 apply to Windows 95.)
15422 * regex.c (regex_compile): Fixed a compile warning.
15425 * select-msw.c (mswindows_own_selection):
15426 * select-msw.c (mswindows_get_foreign_selection):
15427 * select-msw.c (mswindows_disown_selection):
15428 * select-msw.c (console_type_create_select_mswindows):
15429 * select-msw.c (syms_of_select_mswindows):
15430 Cleaned up the file and implemented the device method
15431 selection_exists_p, which had accidentally been left out. Also
15432 removed four lisp functions that were remnants from before the
15433 time when the selection code was properly device abstracted.
15434 These functions are no longer needed because there are generic
15435 equivalents, and because they were added recently and don't exist
15436 in FSF Emacs, I don't think there's any problem with just deleting
15440 * sysdep.c (sys_subshell):
15441 Fixed a compile warning, although in this case there's probably
15442 something wrong with this code, and it ought to be looked into
15443 more thoroughly by somebody who understands it.
15446 * window.c (Fwindow_text_area_height):
15447 * window.c (Fwindow_width):
15448 * window.c (Fwindow_full_width):
15449 * window.c (Fwindow_pixel_width):
15450 * window.c (debug_print_window):
15451 * window.c (syms_of_window):
15452 Added functions window-text-area-height and window-full-width,
15453 which are functions for returning various width and height
15454 characteristics of a window. (One of these functions is necessary
15455 for making the file dialog box work correctly, and the other one
15456 was added for completeness.) Also added a table to the
15457 documentation for window-height which describes the entire scheme
15458 for accessing width and height characteristics of a window.
15460 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15462 * nt.c (fstat): Added a comment for another problem with
15463 non-encapsulated [f]stat(), reported by Adrian Aichner
15464 <aichner@ecf.teradyne.com>.
15466 2000-03-11 Andy Piper <andy@xemacs.org>
15468 * window.c (make_dummy_parent): initialize subwindow instance
15470 (Fset_window_configuration): zero extent_modiff.
15472 2000-03-10 Andy Piper <andy@xemacs.org>
15474 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15475 more changes can be triggered.
15476 (Fredisplay_frame): ditto.
15477 (Fredraw_device): ditto.
15478 (Fredisplay_device): ditto.
15479 (redisplay_frame): make non-static.
15480 (redisplay_frame): call update_frame_gutter_geometry outside of
15483 * gutter.h: declare update_frame_gutter_geometry.
15485 * redisplay.h: declare redisplay_frame.
15487 * gutter.c (update_frame_gutter_geometry): move geometry changes
15488 in update_frame_gutters here. Geometry changes can only occur
15489 outside of redisplay.
15490 (update_frame_gutters): remove geometry change code.
15491 (Fredisplay_gutter_area): make sure that we are in display when we
15492 update and that we have flushed any size changes.
15494 2000-03-11 Andy Piper <andy@xemacs.org>
15496 * alloc.c (pdump_dump_data): remove i & count shadows.
15498 2000-02-27 Mike Alexander <mta@arbortext.com>
15500 * sysdep.h: Declare pdump_read_file
15502 * sysdep.c (pdump_read_file): New function
15504 * alloc.c (pdump_load): Call pdump_read_file to get the portable
15507 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
15509 * lrecord.h: add `lrecord_type_pgsetenv'.
15511 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
15513 * symsinit.h: declare (vars|syms)_of* functions.
15514 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15516 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
15518 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15520 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15523 * emacs.c (main_1): Call postgres initialization code.
15525 * postgresql.h: New file. PostgreSQL RDBMS support.
15526 * postgresql.c: New file.
15528 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
15530 * redisplay-output.c (redisplay_output_display_block): Disable
15533 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
15535 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15536 (Fcanna_henkan_next): Ditto.
15537 (Fcanna_bunsetu_henkou): Ditto.
15538 (Fcanna_henkan_kakutei): Ditto.
15539 (Fcanna_henkan_end): Ditto.
15540 (Fcanna_henkan_quit): Ditto.
15541 (Fcanna_henkan_next): Set retun value correctly.
15542 (c2mu): Use unsigned char instead of signed char.
15544 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
15546 * emacs.c (main_1): Always call syms_of_gui.
15547 * inline.c: include gui.h
15549 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
15551 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15552 converted to Lisp_Object.
15553 (Qtop_bottom): New variable.
15554 (syms_of_redisplay): Initialize it.
15555 * redisplay.h (Vvisible_bell): Ditto.
15556 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15557 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15558 only flash top and bottom.
15560 2000-03-08 Andy Piper <andy@xemacs.org>
15562 * buffer.c (Frename_buffer): record new buffer name the right way.
15564 2000-03-08 Andy Piper <andy@xemacs.org>
15566 * glyphs.c (update_subwindow): increase hash depth so that widget
15567 items get picked up properly.
15569 * redisplay-output.c (compare_runes): increase hash depth so that
15570 widget items get picked up properly.
15572 2000-03-08 Andy Piper <andy@xemacs.org>
15574 * gutter.c (output_gutter): add some debug.
15576 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15577 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15578 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15580 * redisplay-output.c (compare_runes): use display_hash to
15581 determine if glyphs really are not the same.
15583 * glyphs.c (update_subwindow): check display_hash to see if
15584 anything really needs to be updated. If not then do
15585 nothing. Record the display_hash after updating.
15586 (image_instance_equal): compare the image_instance face also.
15588 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
15590 * redisplay.h: Fix comment style.
15592 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
15594 * consle-msw.h (struct mswindows_frame):
15595 Added new member paint_pending to indicate whether a WM_PAINT
15596 magic event has been queued for this frame.
15598 * event-msw.c (mswindows_drain_windows_queue):
15599 Don't queue a WM_PAINT magic event if one is already queued.
15600 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15602 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15604 2000-03-07 Didier Verna <didier@xemacs.org>
15606 * dired.c: #include `regex.h' after `sysfile.h'.
15608 2000-03-06 Martin Buchholz <martin@xemacs.org>
15610 * sound.c (init_nas_sound): Fix compiler warning.
15612 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15614 (MARK_STRUCT_AS_FREE):
15615 (MARK_STRUCT_AS_NOT_FREE):
15616 Make `gcc -fstrict-aliasing' work properly.
15618 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
15620 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15621 (mswindows_delete_device): Call CoUnnitialize().
15623 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15625 2000-02-25 <CraigL@DyCon.com>
15627 * process-nt.c: MinGW now has <shellapi.h>, but still needs
15630 * sysdep.c: This extern declaration for environ prevents MinGW
15631 from finding the variable in CRTDLL.DLL.
15633 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15635 (SHGFI_EXETYPE): ..
15636 (WM_MOUSEWHEEL): ..
15637 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15639 (MMRESULT): Removed, now defined in cygwin's windows headers.
15641 (uid_t,gid_t,pid_t,ssize_t): ..
15642 (_timeb): Removed, MinGW defines both _timeb and timeb.
15643 (HAVE_H_ERRNO): Added.
15644 (HAVE_TZNAME): Added, configure is not detecting this.
15646 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
15648 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15649 * syntax.c (syntax_match): Use it.
15651 * cmds.c: Import auto-fill-chars from FSF Emacs.
15652 (Vauto_fill_chars): New variables.
15653 (internal_self_insert): Check Vauto_fill_chars.
15655 Declare auto-fill-chars as a Lisp variable and initialize it.
15657 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
15659 * fileio.c (Fmake_symbolic_link):
15661 Run handlers even if local machine doesn't have symlinks.
15663 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
15665 * event-msw.c (mswindows_drain_windows_queue):
15666 Don't generate paint magic events for non-XEmacs frames.
15668 2000-03-05 Andy Piper <andy@xemacs.org>
15670 * redisplay.c (redisplay_frame): generate_displayable_area and
15671 friends assumes that we are not in GC, we therefore have to make
15672 sure that this doesn't happen.
15674 * gutter.c (calculate_gutter_size): generate_displayable_area
15675 assumes that we are not in GC, we therefore have to make sure that
15676 this doesn't happen.
15678 2000-03-05 Martin Buchholz <martin@xemacs.org>
15680 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15682 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
15684 * redisplay.c (regenerate_window): Make sure we set a sane value
15685 for end_pos even if we jump out of the loop.
15686 (regenerate_window): Answer Ben's question :-).
15687 (start_end_of_last_line): Add may_error argument.
15688 (start_of_last_line):
15689 (end_of_last_line): Pass may_error = 0.
15690 (end_of_last_line_may_error): New function.
15691 (pixel_to_glyph_translation): Use it, so we don't crash in
15694 2000-03-04 Andy Piper <andy@xemacs.org>
15696 * window.h (struct window): add gutter_extent_modiff.
15698 * window.c (allocate_window): zero out gutter_extent_modiff.
15700 * redisplay.h: declare sync_display_line_structs.
15702 * redisplay.c (add_glyph_rune): add a better comment.
15704 * redisplay-output.c (sync_display_line_structs): made non-static.
15705 (compare_runes): remove unneccesary glyph cachel access.
15707 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15709 * gutter.c (output_gutter): don't output the gutter if extent
15710 changes only involve extents in buffers. use 4 sets of display
15712 (gutter_extent_signal_changed_region_maybe): new function. Mark
15713 extents in gutters as changed.
15714 (update_frame_gutters): use 4 sets of display lines.
15715 (reset_gutter_display_lines): ditto.
15716 (free_frame_gutters): ditto.
15717 (redraw_exposed_gutter): force output of gutters.
15719 * frame.h (struct frame): add 4 sets of gutter display lines.
15721 * extents.c: (extent_changed_for_redisplay): signal changes to
15722 extents in strings in the gutter as well as extents in buffers.
15724 2000-03-02 Andy Piper <andy@xemacs.org>
15726 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15728 * frame.c (Fmake_frame): make sure the gutters get initialized
15729 after the frame is visible.
15730 (set_frame_selected_window): re-arrange compilation macros a
15732 (change_frame_size_1): mark gutters changed.
15734 * device.c (Fset_device_class): mark gutters changed.
15736 2000-03-01 Andy Piper <andy@xemacs.org>
15738 * window.c (window_top_frame_gutter_height): deleted.
15739 (window_bottom_frame_gutter_height): ditto.
15740 (window_left_frame_gutter_height): ditto.
15741 (window_right_frame_gutter_height): ditto.
15742 (window_top_gutter_height): don't use them.
15743 (window_bottom_gutter_height): ditto.
15744 (window_left_gutter_width): ditto.
15745 (window_right_gutter_width): ditto.
15746 (Fsplit_window): ditto.
15747 (Fwindow_pixel_edges): don't use border dimensions here.
15749 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15750 (update_scrollbar_instance): ditto.
15752 * redisplay.c (generate_modeline): don't take gutters into account.
15753 (generate_modeline): ditto.
15754 (redisplay_frame): small gutter display optimization.
15756 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15758 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15759 gutters into account.
15761 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15762 for window position and type.
15764 * gutter.c (get_gutter_coords): fix for frame gutters.
15765 (update_frame_gutters): update frame geometry if the gutters have
15767 (init_frame_gutters): record current gutter geometries.
15769 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15771 (mswindows_widget_instantiate): ditto.
15773 * frame.h (struct frame): add current_gutter_bounds.
15775 * frame.c (change_frame_size_1): position window and minibuffer
15776 appropriately taking into account the frame gutters.
15778 * frame-x.c: (x_initialize_frame_size): take into account the
15781 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
15783 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
15785 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
15787 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15789 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15791 * file-coding.c (reset_decoding_stream): Clear previous
15792 detection state when autodetect.
15794 2000-02-29 Didier Verna <didier@xemacs.org>
15796 * extents.c (set_extent_glyph_1): don't require extents to be
15799 2000-02-27 Andy Piper <andy@xemacs.org>
15801 * gutter.c (Fset_default_gutter_position): don't default left and
15802 right gutter visibility to t.
15803 (Fset_default_gutter_position): run
15804 default-gutter-position-changed-hook.
15805 (syms_of_gutter): add default-gutter-position-changed-hook.
15807 2000-02-26 Andy Piper <andy@xemacs.org>
15809 * specifier.c (Fmake_specifier): add gutter references.
15811 * gutter.h (RAW_WINDOW_GUTTER): new macro.
15813 * lisp.h: declare Fvalid_plist_p.
15815 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15817 (default_gutter_visible_p_changed_in_window): invalidate gutter as
15818 well as its visibility so that it gets reconstructed.
15819 (construct_window_gutter_spec): new function. Construct a string
15820 to be displayed in the gutter from a plist of strings. Take care
15821 to only use elements that are declared as visible.
15822 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15824 (gutter_validate): allow plists of strings in the specifier.
15825 (gutter_specs_changed): construct the real_gutter from the gutter
15826 specs using construct_window_gutter_spec.
15827 (gutter_visible_validate): gutter-visible is a new specifier type.
15828 (Fgutter_visible_specifier_p): new function for the new specifier.
15829 (syms_of_gutter): declare gutter-visible and
15830 Fgutter_visible_specifier_p.
15831 (specifier_type_create_gutter): intitalize new gutter-visible
15833 (reinit_specifier_type_create_gutter): ditto.
15834 (specifier_vars_of_gutter): use new specifier type for gutter
15836 (init_frame_gutters): construct real_gutter correctly.
15837 (Fgutter_specifier_p): beef up documentation.
15838 (Fgutter_size_specifier_p): ditto.
15840 * winslots.h: add real_gutter slots.
15842 2000-02-25 Andy Piper <andy@xemacs.org>
15844 * device-msw.c: Be kind to older cygwin versions. From Raymond
15845 Toy <toy@rtp.ericsson.se>.
15847 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15848 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15850 2000-02-25 Martin Buchholz <martin@xemacs.org>
15852 * elhash.c (MARK_OBJ): Practice macro hygiene.
15854 2000-02-24 Martin Buchholz <martin@xemacs.org>
15856 * miscplay.c: s/__inline__/inline/g;
15857 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15858 (get_device_compdc): INLINE ==> static inline
15859 * *.[ch]: Change INLINE to INLINE_HEADER globally.
15860 find -name '*.h' | \
15861 xargs global-replace \
15862 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15864 2000-02-25 Andy Piper <andy@xemacs.org>
15866 * window.c (window_top_frame_gutter_height): new function.
15867 (window_top_window_gutter_height): ditto.
15868 (window_top_gutter_height): use them.
15869 (window_bottom_frame_gutter_height): new function.
15870 (window_bottom_window_gutter_height): ditto.
15871 (window_bottom_gutter_height): use them.
15872 (window_left_window_gutter_width): new function.
15873 (window_left_frame_gutter_width): ditto.
15874 (window_left_gutter_width): use them.
15875 (window_right_window_gutter_width): new function.
15876 (window_right_frame_gutter_width): ditto.
15877 (window_right_gutter_width): use them.
15878 (window_pixel_height): new function. calulate window pixel height
15879 with frame gutter involvement.
15880 (Fsplit_window): calculate new sizes taking frame gutters into
15882 (window_char_height_to_pixel_height): don't include frame gutters.
15883 (window_char_height): use window_pixel_height.
15884 (window_pixheight): rename from window_pixel_height.
15885 (change_window_height): use it.
15886 (window_pixel_height_to_char_height): don't include frame gutters.
15887 (window_char_width_to_pixel_width): ditto.
15889 2000-02-25 Andy Piper <andy@xemacs.org>
15891 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15894 2000-02-24 Martin Buchholz <martin@xemacs.org>
15896 * alloc.c (staticpro):
15897 (staticpro_nodump):
15902 (compact_string_chars):
15903 (pdump_dump_wired):
15904 Convert: if (foo) abort(); ==> assert (! foo);
15906 * eldap.c (Fldap_search_basic):
15910 Fix compiler warnings, and possible crashes if (random) return
15911 value were to be used.
15913 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15915 * device-msw.c: Workaround ResetDC failure.
15917 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15918 applying a devmode.
15920 * redisplay-msw.c (get_frame_dc): Added start_page_p.
15921 (mswindows_text_width): Do not start printer page.
15923 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15925 * glyphs-msw.c: Added image methods to msprinter console and
15926 msprinter-specific image instantiation.
15928 2000-02-20 Mike Alexander <mta@arbortext.com>
15930 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15931 to avoid crashes when selection-sets-clipboard is on
15932 (mswindows_own_selection): ditto
15934 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15937 * redisplay-msw.c (get_frame_dc):
15938 (get_frame_compdc):
15940 * device-msw.c (mswindows_init_device):
15941 (mswindows_delete_device):
15942 (msprinter_init_device):
15943 (msprinter_delete_device):
15944 * frame-msw.c (mswindows_init_frame_1):
15945 (mswindows_delete_frame):
15946 (msprinter_init_frame_3):
15947 (msprinter_delete_frame): Move compatible DC to device object from
15948 frame object, for both mswindows and msprinter. Only one at a time
15949 is needed, it is a real waste to have one per frame!
15951 2000-02-23 Andy Piper <andy@xemacs.org>
15953 * glyphs.c: add dynamic width and height elements.
15954 (image_instance_equal): ditto.
15956 * glyphs-widget.c (widget_query_geometry): calculate width and
15957 height dynamically if required.
15958 (initialize_widget_image_instance): initialize dynamic dimensions.
15959 (widget_instantiate): pick-up dynamic dimensions.
15961 * glyphs.h (struct Lisp_Image_Instance): add width and height for
15962 dynamic determination. Add appropriate macros.
15964 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15966 (WINDOW_GUTTER_SIZE): ditto.
15967 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15969 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15971 (get_frame_dc): ditto.
15973 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15976 2000-02-23 Martin Buchholz <martin@xemacs.org>
15978 * XEmacs 21.2.31 is released.
15980 2000-02-22 Ben Wing <ben@xemacs.org>
15982 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15984 2000-02-22 Andy Piper <andy@xemacs.org>
15986 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15988 2000-02-21 Mike Sperber <mike@xemacs.org>
15992 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15995 2000-02-21 Mike Sperber <mike@xemacs.org>
15997 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15999 2000-02-21 Martin Buchholz <martin@xemacs.org>
16001 * XEmacs 21.2.30 is released.
16003 2000-02-20 Martin Buchholz <martin@xemacs.org>
16005 Performance hacking.
16007 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16008 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16009 * emacs.c (main_1):
16011 * console.c (DEFVAR_CONSOLE_LOCAL_1):
16012 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16013 * symeval.h (DEFVAR_SYMVAL_FWD):
16014 * symbols.c (guts_of_unbound_marker):
16015 Make all c_readonly objects also lisp_readonly and marked for life.
16016 * lrecord.h (struct lrecord_implementation):
16017 Document flags better.
16018 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16019 * lrecord.h (DECLARE_LRECORD):
16020 * lrecord.h (XSETRECORD):
16021 * lrecord.h (RECORDP):
16022 * lrecord.h (RECORD_TYPEP):
16023 * lrecord.h (RECORD_MARKER): New.
16024 * lrecord.h (error_check_*):
16025 * lrecord.h (CONCHECK_NONRECORD):
16026 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16027 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16028 * lrecord.h (set_lheader_implementation):
16029 * lrecord.h (enum lrecord_type): New.
16030 * symeval.h (SYMBOL_VALUE_MAGIC_P):
16031 * alloc.c (disksave_object_finalization_1):
16032 * alloc.c (mark_object):
16033 * alloc.c (lrecord_type_index):
16034 * alloc.c (tick_lcrecord_stats):
16035 * alloc.c (Fgarbage_collect):
16036 * alloc.c (init_alloc_once_early):
16037 * alloc.c (pdump_load):
16038 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16039 * alloc.c (lrecord_type_index): Delete.
16040 Make lisp object type indexes be constant.
16041 Makes (byte-compile) 5% faster.
16042 Put all marker functions into their own array.
16043 Makes (garbage-collect) 5% faster.
16044 Optimize SYMBOL_VALUE_MAGIC_P.
16045 Makes (byte-compile) 2-3% faster.
16046 * config.h.in (gc_checking_assert): New.
16047 * alloc.c: Use gc_checking_assert().
16048 * .dbxrc: Make compatible with new object type implementation.
16049 * .gdbinit: Make compatible with new object type implementation.
16050 * alloc.c: Delete all symbols defined only for debugging, such as
16051 Lisp_Type_Vector and lrecord_charset.
16053 2000-02-21 Andy Piper <andy@xemacs.org>
16055 * gui-msw.c (Fmswindows_shell_execute): fix file location
16058 * buffer.c (Fkill_buffer): remove buffer from alist buffer
16059 unshowing so that set_window_buffer doesn't undo
16060 kill_buffer_hook's hard work.
16062 * glyphs-widget.c (tab_control_query_geometry): don't count the
16063 first item when calculating geometry.
16065 * glyphs.c (map_subwindow): remove redundant code.
16066 (update_frame_subwindows): be more circumspect about when to
16069 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16070 when items haven't changed. Update faces if faces have changed as
16071 well as just the widget face.
16072 (x_tab_control_update): Update faces if faces have changed as well
16073 as just the widget face.
16075 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
16077 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16079 (build_syscolor_string): Use mswindows_color_to_string to try to
16081 (mswindows_device_system_metrics): Reverse the foreground and
16082 background colors so that they match the documentation.
16084 * objects-msw.c: (mswindows_X_color_map): tweak some values so
16085 they match the default Windows palette.
16086 (mswindows_color_to_string): New function.
16088 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
16090 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16092 2000-02-18 Olivier Galibert <galibert@pobox.com>
16094 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16095 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16097 * symbols.c (init_symbols_once_early): Removed obsolete
16098 DATA_SEG_BITS related kludge.
16099 (defvar_magic): Ditto.
16101 * malloc.c: Removed obsolete DATA_SEG_BITS
16103 * mem-limits.h: Ditto.
16105 * Makefile.in.in: Removed obsolete HAVE_SHM
16108 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
16110 * device-msw.c (mswindows_delete_device): Free DDE string
16113 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16115 * keymap.c (get_keyelt):
16116 * unexnt.c (unexec):
16117 * vm-limit.c (memory_warnings):
16118 * ntheap.c (recreate_heap):
16119 * ntheap.h (UNINIT_PTR):
16120 * select-msw.c (Fmswindows_get_clipboard):
16121 (Fmswindows_set_clipboard):
16122 * objects-msw.h (MSWINDOWS_BAD_HFONT):
16124 * menubar-msw.c (displayable_menu_item):
16126 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16127 * sysdep.c (sys_subshell):
16128 * process-nt.c (nt_create_process):
16129 * nt.c (normalize_filename):
16130 (dostounix_filename):
16131 (unixtodos_filename):
16132 * ntproc.c (win32_executable_type):
16133 * ntplay.c (play_sound_data_1):
16135 * editfns.c (get_home_directory):
16136 * event-msw.c (struct winsock_stream):
16137 (mswindows_dde_callback):
16138 * device-msw.c (msprinter_init_device):
16139 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16141 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16142 mswindows_clear_toolbar were swapped!
16144 * objects-msw.c:(colormap_t):
16146 * emacs.c (struct standard_args): Fixed const jumble.
16148 * glyphs-widget.c (update_widget): Fixed comparison notation.
16150 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16152 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16153 __declspec(noreturn) syntax.
16155 2000-02-19 Martin Buchholz <martin@xemacs.org>
16157 * eldap.c (Fldap_open):
16158 (Fldap_search_basic):
16161 Use new coding system conversion macros.
16163 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16165 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16167 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
16169 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16170 (Fldap_add, Fldap_modify, Fldap_delete): New functions
16172 * eldap.c (Qadd, Qreplace): New constant symbols
16173 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16174 interruptions by XEmacs signals
16175 Remove unnecessary calls to slow_down_interrupts and
16176 speed_up_interrupts
16177 (Fldap_search_basic): Renamed from Fldap_search_internal
16178 Added new optional parameter VERBOSE that triggers the
16179 display of progress messages
16180 Remove unnecessary calls to slow_down_interrupts and
16181 speed_up_interrupts
16182 LDAP result code analysis rewritten
16183 (Fldap_add, Fldap_modify, Fldap_delete): New functions
16184 (syms_of_eldap): Define the new symbols and functions
16187 2000-02-17 Martin Buchholz <martin@xemacs.org>
16189 * realpath.c: Determine PATH_MAX maximally portably.
16191 * insdel.c (bytecount_to_charcount): Optimize.
16192 The function used to be optimized for entirely ASCII sequences.
16193 Now it is optimized for successive characters from the same
16194 charset. This also wins big for _mostly_ ASCII sequences.
16196 * fileio.c (Ffile_truename): convert return from realpath() using
16197 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
16198 - Rewrite GCPROing slightly.
16200 * sysdep.c (sys_open): Do filename conversion, like all other
16201 sys_* functions. Fixes bug:
16202 (let ((file-name-coding-system 'iso-8859-2))
16203 (write-region x y latin2-name))
16204 ==> writes filename using internal encoding.
16206 2000-02-18 Martin Buchholz <martin@xemacs.org>
16208 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16209 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16210 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16211 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16212 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16213 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16214 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16215 (CONST_IF_NOT_DEBUG): Delete.
16216 * alloc.c (this_one_is_unmarkable): Delete.
16217 (mark_object): Don't check for this_one_is_unmarkable. Use the
16218 c_readonly flag instead.
16219 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16221 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
16223 * event-msw.c (mswindows_drain_windows_queue):
16224 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16225 away redundant repaint events.
16227 2000-02-17 Andy Piper <andy@xemacs.org>
16229 * redisplay.h: declare mark_redisplay_structs.
16231 * redisplay.c (redisplay_window):
16232 (redisplay_frame): don't check subwindows_state_changed.
16233 (mark_redisplay): mark gutters here.
16235 * glyphs.c: (instantiate_image_instantiator): always layout if we
16236 haven't done so already.
16237 (allocate_image_instance): don't mark as dirty.
16238 (update_subwindow): bind inhibit_quit.
16240 * gutter.c (mark_gutters): new function.
16242 * glyphs-x.c (x_update_widget): Always resize to get round a
16245 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16246 breaking absolutely everything.
16248 * gutter.h: declare mark_gutters.
16250 2000-02-16 Martin Buchholz <martin@xemacs.org>
16252 * XEmacs 21.2.29 is released.
16254 2000-02-15 Olivier Galibert <galibert@pobox.com>
16256 * fns.c (size_bit_vector): Fix computation of the size.
16258 2000-02-15 Martin Buchholz <martin@xemacs.org>
16260 * *.[ch]: Change CONST to const globally.
16261 find -name '*.[ch]' | \
16262 xargs global-replace \
16263 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16264 - Remove vestigial references to CONST_IS_LOSING
16266 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
16268 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16269 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16270 events instead of dispatching them directly.
16271 (mswindows_handle_paint): New function to do repainting.
16272 (mswindows_wnd_proc):
16273 (emacs_mswindows_handle_magic_event): Call above function.
16275 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
16277 * objects-msw.c (mswindows_create_font_variant): Return the new
16279 (initialize_font_instance): Get font metrics from the underlined
16280 variant of the font to cope with the case where the underlined
16281 font has a bigger descent.
16283 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
16285 * gui.c (gui_item_accelerator): Return the first underlined
16286 character in item name.
16288 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16290 * lisp.h: Added Qprinter.
16292 * general.c (syms_of_general): Initialized it.
16294 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16296 (get_frame_compdc): Made inline.
16298 * console.h (struct console_methods): Added eject_page method.
16300 * frame.h: Added FRAME_DISPLAY_P and friends.
16301 Aligned backslahes in many macros in more readable fashion.
16302 Added page_number to struct frame, and an accessor macro
16305 * defice.h: Added DEVICE_DISPLAY_P and friends.
16307 * device.c (Fdevice_printer_p): Used these.
16309 * frame.c (allocate_frame_core): Initialize page number.
16310 (Fprint_job_page_number):
16311 (Fprint_job_eject_page): Implemented.
16313 * frame-msw.c (msprinter_eject_page): Added method.
16314 (msprinter_start_page): Added.
16316 * window.c (Fwindow_truncated_p): Fixed docstring.
16317 (Fwindow_last_line_visible_height): Implemented.
16319 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
16321 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16323 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16325 * syntax.c (scan_words): Always advance at least one character.
16327 2000-02-13 Andy Piper <andy@xemacs.org>
16329 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16330 to make sure the glyph is in the cachels.
16332 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16333 global image instance flag.
16334 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16335 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16337 * glyphs.c (allocate_image_instance): set dirty bits correctly.
16338 (Fset_image_instance_property): mark layout as changed.
16339 (invalidate_glyph_geometry_maybe): mark layout as changed.
16340 (glyph_width): use new NEEDS_LAYOUT macro.
16341 (glyph_ascent): ditto.
16342 (glyph_descent): ditto.
16343 (glyph_height): ditto.
16344 (image_instance_layout): mark layout as clean after laying out.
16345 (update_subwindow): don't mark layout as clean here.
16347 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16348 should no longer be needed.
16350 * glyphs-x.c (x_update_widget): sanitize asserts.
16351 (x_finalize_image_instance): sanitize assignment to widgets.
16353 * glyphs-widget.c (widget_instantiate): don't need to clear the
16356 2000-02-13 Martin Buchholz <martin@xemacs.org>
16358 * sysdep.c (getcwd): Use standard prototype.
16359 * sysdep.h (getcwd): Use standard prototype.
16361 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16362 (sequence, start, end).
16363 Remove redundant type checking.
16364 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16365 view of `caller-protects') to avoid a crash where the real fix was
16368 2000-02-12 Martin Buchholz <martin@xemacs.org>
16370 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16372 * s/sol2.h: Remove feature macro initialization.
16374 * alloc.c (alloc_lcrecord): Add more type checking assertions.
16375 (vector_hash): New. Code from internal_hash.
16377 Fix up allocation subsystem comments.
16379 * config.h.in: Add __EXTENSIONS__ for Solaris.
16381 * systime.h (EMACS_GETTIMEOFDAY): New.
16382 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16383 Remove Solaris-specific code.
16384 Use void* for the (ignored) second arg for gettimeofday().
16386 * elhash.c (hash_table_hash): Implement it, finally.
16387 * elhash.c: Use hashcode_t.
16389 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16390 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16392 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16393 * fns.c (size_bit_vector):
16394 * alloc.c (size_vector):
16395 (make_vector_internal):
16396 (make_bit_vector_internal):
16397 (sweep_bit_vectors_1):
16398 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16400 2000-02-10 Martin Buchholz <martin@xemacs.org>
16402 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16403 Include strings.h to avoid warnings for bzero and strcasecmp.
16405 2000-02-10 Olivier Galibert <galibert@pobox.com>
16407 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16408 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16410 * fns.c (size_bit_vector): New. Declare bit vectors as a
16413 2000-02-10 Olivier Galibert <galibert@pobox.com>
16415 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16416 use a value field instead.
16417 (symbol_value_forward_forward): Use value field.
16418 (DEFVAR_SYMVAL_FWD): Use value field.
16419 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
16420 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16421 (DEFVAR_CONST_INT): Ditto.
16422 (DEFVAR_BOOL): Ditto.
16423 (DEFVAR_CONST_BOOL): Ditto.
16424 (DEFVAR_INT_MAGIC): Ditto.
16425 (DEFVAR_BOOL_MAGIC): Ditto.
16427 * symbols.c (guts_of_unbound_marker): Use value field.
16428 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16429 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16431 * lisp.h: Declare dumpopaque and noninteractive1.
16433 * alloc.c (dumpopaque): Added.
16434 (pdump_dump_opaquevec): Added.
16435 (pdump): Call pdump_dump_opaquevec to dump opaque data.
16436 (pdump_load): Reload opaque data. Sync noninteractive1 with
16439 2000-02-10 Andy Piper <andy@xemacs.org>
16441 * glyphs.c (image_instance_layout): if the size changes, mark it
16444 * redisplay-output.c (redisplay_output_layout): Update the
16446 (redisplay_output_subwindow): ditto.
16448 * glyphs.c (update_subwindow): make sure we reset flags for
16449 layouts as well as everything else.
16451 * glyphs-widget.c (layout_layout): don't need to set the instances
16454 2000-02-09 Martin Buchholz <martin@xemacs.org>
16456 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
16457 not HAVE_DLOPEN, which is a lower-level thing.
16459 * .cvsignore: Ignore gmon.out
16461 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
16463 * .cvsignore: Ignore portable dumper xemacs.dmp file
16465 2000-02-09 Andy Piper <andy@xemacs.org>
16467 * redisplay-output.c (redisplay_output_layout): be more clever
16468 about when we output based on the changed flags.
16470 * glyphs.h (struct image_instantiator_methods): add update_method.
16471 (struct Lisp_Image_Instance): add changed flags. Declare new
16472 macros for manipulating them.
16474 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16475 (image_instance_parent_glyph): find an image_instance's parent
16476 glyph or image_instance.
16477 (image_instance_layout): mark the size as changed.
16478 (set_image_instance_dirty_p): new function. mark an image
16479 instance, plus all of its parents, as dirty.
16480 (Fset_image_instance_property): use it.
16481 (Fglyph_animated_timeout_handler): use it.
16482 (update_subwindow): call update_widget and device methods for
16483 update_subwindow. Mark all changed flags as clean.
16484 (Fresize_subwindow): mark size as changed.
16486 * glyphs-x.c (x_finalize_image_instance): try and detect gc
16488 (x_update_subwindow): only resize subwindows here.
16489 (x_update_widget): new function. Update all changed properties of
16491 (x_resize_subwindow): deleted.
16492 (x_widget_set_property): deleted.
16493 (x_progress_gauge_set_property): deleted.
16494 (x_progress_gauge_update): new function. Implement recorded
16496 (x_tab_control_update): ditto.
16497 (x_tab_control_set_property): deleted.
16498 (console_type_create_glyphs_x): declare new functions.
16499 (image_instantiator_format_create_glyphs_x): ditto.
16501 * glyphs-widget.c (widget_set_property): mark text changed.
16502 (update_widget): new function. Update properties of a widget.
16503 (widget_instantiate): for layouts make sure we set their
16504 children's parent correctly.
16505 (tab_control_set_property): new function. Record changes that will
16506 take place under redisplay's control.
16507 (progress_gauge_set_property): ditto.
16508 (image_instantiator_progress_guage): declare new functions.
16509 (image_instantiator_tab_control): ditto.
16511 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16513 (mswindows_update_widget): new function. Update all properties on
16514 a widget that have changed.
16515 (mswindows_button_update): new function. Update a button's set
16517 (mswindows_tab_control_update): new function. Update the items in
16519 (mswindows_tab_control_set_property): deleted.
16520 (mswindows_progress_gauge_update): new function. Update the
16521 progress gauge's progress.
16522 (mswindows_widget_set_property): deleted. This is all done
16523 asynchronously now.
16524 (mswindows_progress_gauge_set_property): ditto.
16525 (console_type_create_glyphs_mswindows): declare new methods.
16526 (image_instantiator_format_create_glyphs_mswindows): ditto.
16528 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16529 (msprinter_set_frame_properties): ditto.
16531 * console.h (struct console_methods): Add update_widget_method.
16533 2000-02-09 Andy Piper <andy@xemacs.org>
16535 * gui-msw.c (Fmswindows_shell_execute): Make
16536 mswindows-shell-execute industrial strength.
16538 2000-02-08 Martin Buchholz <martin@xemacs.org>
16540 * lrecord.h: Make macro argument `props' match member function `plist'.
16543 * fns.c (Fremprop):
16544 * fns.c (Fobject_plist):
16547 Object property list frobbing cleanup.
16548 - Allow any lisp object (compared with `eq'), not just symbols, as
16549 keys in object plists.
16550 - Move symbol plist frobbing into symbols.c, where it belongs.
16551 - Move string plist frobbing into alloc.c, where it belongs.
16552 - Everything's an lrecord now, so no need to test for symbolp, etc.
16553 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16555 * extents.c: Reorder code to remove declarations.
16557 * frame.h (store_in_alist): Remove useless declaration.
16559 2000-02-07 Martin Buchholz <martin@xemacs.org>
16561 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16562 * config.h.in: Add HAVE_XCONVERTCASE.
16564 2000-02-07 Andy Piper <andy@xemacs.org>
16566 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16567 it breaks many things.
16569 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
16571 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16572 actually can start a common comment type.
16573 * src/syntax.h (SYNTAX_END_P): ditto for end.
16575 2000-02-07 Martin Buchholz <martin@xemacs.org>
16577 * XEmacs 21.2.28 is released.
16579 2000-02-06 Martin Buchholz <martin@xemacs.org>
16581 * event-Xt.c (x_keysym_to_character): New.
16582 (maybe_define_x_key_as_self_inserting_character): New.
16583 (x_has_keysym): New.
16584 Auto-define all keys on the keyboard as self-insert-key.
16586 2000-02-02 Martin Buchholz <martin@xemacs.org>
16588 * menubar.c (vars_of_menubar): A small code simplification.
16590 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16593 * ExternalClient.c:
16594 * EmacsShell-sub.c:
16597 Use consistent style for specifying X resources.
16599 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16600 This makes (dontusethis-set-symbol-value-handler) actually usable.
16602 * lrecord.h (lrecord_decription_type):
16603 * alloc.c (pdump_register_sub):
16606 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16607 Comply with XEmacs coding style.
16608 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16609 args, and XD_LISP_OBJECT_ARRAY with 3 args.
16611 * keymap.c (Faccessible_keymaps):
16612 Make (accessible-keymaps map "\C-h") do the Right Thing.
16613 Make (accessible-keymaps map []) do the Right Thing.
16614 Make (accessible-keymaps map "") do the Right Thing.
16615 (check_keymap_definition_loop): New function.
16616 (keymap_store_internal): Keep luser from shooting self in foot,
16617 via (define-key ctl-x-4-map "p" global-map).
16618 Remove fullness slot from struct Lisp_Keymap, since hash tables
16620 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16622 2000-01-30 Martin Buchholz <martin@xemacs.org>
16624 * redisplay.c (init_redisplay): Fix small memory leak.
16626 * elhash.c (pdump_reorganize_hash_table):
16627 Rename from reorganize_hash_table. Change prototype.
16628 Reuse the original memory for hentries. Save 100k.
16629 * alloc.c (PDUMP_READ): new macro.
16630 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16631 * alloc.c: No need to #ifndef before #undef.
16633 * print.c: Allow debug_print() to print readably by modifying
16634 debug_print_readably. Use consistent variable names.
16636 * .dbxrc: Try to get things to work even if stopped in a function
16637 without source available by explicitly specifying source files.
16638 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16640 * unexnt.c (_start): Removed bogus code which caused loading heap
16641 from differrent executable file.
16642 Removed bogus assignment to _fmode, which caused inconsistencies.
16644 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16646 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16647 Have spawnve encapsulation regard DONT_ENCAPSULATE.
16648 Do not preliminary `#define signal sigset'.
16650 * systime.h: Do not prototype environ on windows nt and cygwin,
16651 this conflicts with system header.
16653 * syssignal.h: Use correct define for WINDOWSNT
16655 * sysdep.h: Do not prototype environ on windows nt, this conflicts
16656 with system header.
16658 * sysdep.c (near start of file): Fixed commentary and rearranged
16659 ifdefs in readable order.
16660 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16663 (end_of_data): Do not compile in if using PDUMP.
16665 * symsinit.h: Prototyped vars_of_nt().
16667 * ntproc.c (windows9x_p): Added, instead of os_subtype.
16668 (find_child_console): Use it.
16669 (sys_kill): Use it.
16671 * ntheap.h: Do not extern os_subtype.
16673 * ntheap.c (cache_system_info): Do not cache unneeded:
16674 nt_major_version, nt_minor_version and os_subtype.
16675 (recreate_heap): Do not compile in when PDUMPing.
16677 * nt.c (geteuid and friends): Use the new varibale
16678 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16679 (init_user_info): Removed the above mentioned hackery.
16680 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16681 stat has been fixed in the C runtime.
16682 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16684 * file-coding.c (struct file_coding_dump): Do not define
16685 ucs_to_mule_table in the struct if not MULE.
16686 (struct struct lrecord_description fcd_description_1): Do not dump
16689 * emacs.c (main_1): Call vars_of_nt().
16690 (right before Fdump_emacs_data): Don't need lastfile if using both
16691 portabe dumper and system malloc.
16693 * alloc.c (Fmemory_limit): Conditionalized out.
16694 (pdump): Use OPEN_BINARY for the portable dump file.
16695 (pdump_load): Ditto.
16697 2000-02-02 Mike Alexander <mta@arbortext.com>
16699 * nt.c (convert_time): Set tm_isdst before calling mktime and
16700 avoid calling it at all if the compiler supports 64 bit integers.
16701 Also initialize utc_base_ft before using it.
16703 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
16705 * frame.c (change_frame_size_1): Take f->internal_border_width
16706 into consideration when calculating the width of the frame.
16708 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16710 * window.c (frame_min_height):
16711 (frame_size_valid_p):
16712 (frame_pixsize_valid_p): Added.
16713 (check_frame_size): Generalized.
16715 * window.h: Prototyped the above.
16718 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16719 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16720 Deleted Vwin32_* and Vbinary_process_* unused variables.
16722 * device-msw.c (msprinter_init_device): Do not get printer font
16723 list; Added DEVMODE functions.
16725 * frame-msw.c: Added lots of printer code.
16727 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16730 * console-msw.h: Added more msprinter device private slots.
16732 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16734 * event-msw.c (key_needs_default_processing_p): Added.
16735 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16737 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16739 * glyphs.c (image_instance_layout): Mark image instance as clean
16741 (glyph_dirty_p): Removed redundant function.
16742 (invalidate_glyph_geometry_maybe): Added.
16743 (update_glyph_cachel_data): Call it.
16745 * glyphs.h: Prototyped it.
16747 * redisplay.c (add_glyph_rune): Call it.
16748 (redisplay_window): Reset glyphs cachels when frame faces have
16749 changed, thus forcing recomputation of built-in border glyphs.
16751 2000-01-30 Martin Buchholz <martin@xemacs.org>
16753 * Makefile.in.in: Make portable dumper and purify play well together.
16754 Add imperfect, but better than nothing, support for pdump.
16755 Remove xemacs.dmp when temacs is re-generated.
16756 Don't ignore errors when dumping xemacs.
16758 * symbols.c (maybe_call_magic_handler): Remove one magic number.
16760 2000-01-28 Andy Piper <andy@xemacs.org>
16762 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16763 (setup_normal_frame): ditto.
16764 (setup_frame_without_minibuffer): ditto.
16765 (setup_minibuffer_frame): ditto.
16766 (delete_frame_internal): ditto.
16767 (Fmake_frame_invisible): ditto.
16768 (Ficonify_frame): ditto.
16770 * window.h: change Fset_window_buffer signature.
16772 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16773 (Fset_window_buffer): allow recording of buffer if the window is
16774 the selected window.
16775 (window_loop): Use new Fset_window signature.
16777 2000-01-23 Daniel Pittman <daniel@danann.net>
16779 * config.h.in: Added template for `HAVE_ATHENA_3D'
16781 2000-01-29 Andy Piper <andy@xemacs.org>
16783 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16785 * gutter.c (output_gutter): Don't output if the window isn't live.
16787 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16789 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16790 of 01/12/00: Moved SetFocus back here where it belongs.
16792 2000-01-23 Andy Piper <andy@xemacs.org>
16794 * s/cygwin32.h: declare printer things.
16796 2000-01-26 Andy Piper <andy@xemacs.org>
16798 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16801 2000-01-24 Andy Piper <andy@xemacs.org>
16803 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16804 (mswindows_button_instantiate): Make sure glyph is a pixmap.
16806 * glyphs-widget.c (widget_instantiate): Avoid shadows.
16808 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16810 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16812 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16813 (mswindows_output_display_block): Avoid local shadows.
16815 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16816 (mswindows_enqueue_mouse_button_event): ditto.
16817 (mswindows_handle_gui_wm_command): remove declaration.
16819 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16822 * console-msw.h: Avoid shadows.
16823 (mswindows_get_toolbar_button_text):
16824 (emacs_mswindows_create_stream_pair):
16825 (emacs_mswindows_delete_stream_pair):
16826 (mswindows_handle_toolbar_wm_command): declare.
16828 * device-msw.c (build_syscolor_string): Avoid shadows.
16830 2000-01-23 Andy Piper <andy@xemacs.org>
16832 * glyphs-widget.c (widget_instantiate): reverse the items for
16833 layouts so that children are in the expected order.
16835 2000-01-28 Martin Buchholz <martin@xemacs.org>
16837 * ralloc.c: safe_bcopy ==> memmove
16838 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16839 * s/msdos.h: Remove BCOPY macros.
16840 * insdel.c (gap_right): Remove BCOPY conditional code.
16841 * insdel.c (gap_left): Remove BCOPY conditional code.
16842 XEmacs demands a working ANSI C compiler - hence memmove.
16844 * regex.c (regex_compile): Remove accidental use of trigraphs.
16846 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16848 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16851 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16853 * event-msw.c (mswindows_drain_windows_queue): Added the
16855 (mswindows_need_event): Commented the call to
16856 mswindows_drain_windows_queue().
16857 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16860 * console-msw.h: Moved a few function prototypes here from
16863 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16864 parameter from unsigned short to unsigned long.
16865 (Fmswindows_shell_execute): Added return value.
16867 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16869 * sysdep.c (init_system_name):
16870 process-unix.c (unix_canonicalized_host_name):
16871 Don't call freeaddrinfo() if getaddrinfo() fails.
16873 * process-unix.c (unix_open_unix_network_stream):
16874 Moved the code to get a port # into address loop.
16876 2000-01-27 Martin Buchholz <martin@xemacs.org>
16878 * buffer.c (reinit_vars_of_buffer):
16879 The right place to initialize conversion_in_dynarr and
16880 conversion_out_dynarr.
16882 * alloc.c (pdump): Use the real open() till sys_open() is functional.
16884 * process-unix.c (unix_canonicalize_host_name): Muleize.
16885 (unix_open_network_stream): Muleize.
16887 * buffer.h: Fix up prototypes for ralloc.c functions.
16889 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16890 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16891 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16892 instead of gethostbyname()
16893 * process-unix.c: In unix_canonicalize_host_name() and
16894 unix_open_network_stream(), add code to use getaddrinfo()
16895 instead of gethostbyname().
16897 2000-01-27 Daniel Pittman <daniel@danann.net>
16899 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16900 libs when built with flat Athena.
16902 2000-01-27 Martin Buchholz <martin@xemacs.org>
16904 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16905 Use coding standards for function prototypes.
16907 2000-01-25 Martin Buchholz <martin@xemacs.org>
16909 * dialog-msw.c (push_lisp_string_as_unicode):
16910 * doc.c (unparesseuxify_doc_string):
16911 * dired.c (Fuser_name_completion_1):
16912 * dired.c (Fuser_name_all_completions):
16913 * dired.c (free_user_cache):
16914 * dired.c (user_name_completion):
16915 * console-x.c (get_display_arg_connection):
16916 * minibuf.c (clear_echo_area_internal):
16917 * minibuf.c (echo_area_append):
16918 * eldap.c (Fldap_open):
16919 * eldap.c (Fldap_search_internal):
16920 * frame-x.c (x_set_frame_text_value):
16921 * frame-x.c (x_set_frame_properties):
16922 * frame-x.c (x_create_widgets):
16923 * redisplay-tty.c (term_get_fkeys_1):
16924 * objects-x.c (x_parse_nearest_color):
16925 * objects-x.c (x_valid_color_name_p):
16926 * objects-x.c (x_initialize_font_instance):
16927 * objects-x.c (x_list_fonts):
16928 * objects-x.c (x_find_charset_font):
16929 * tooltalk.c (Fadd_tooltalk_message_arg):
16930 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16931 * tooltalk.c (Fadd_tooltalk_pattern_arg):
16932 * process-unix.c (unix_create_process):
16933 * ntproc.c (sys_spawnve):
16934 * sound.c (Fplay_sound_file):
16935 * sound.c (Fplay_sound):
16936 * buffer.c (init_initial_directory):
16937 * buffer.c (init_buffer):
16938 * editfns.c (init_editfns):
16939 * editfns.c (Ftemp_directory):
16940 * editfns.c (Fuser_full_name):
16941 * editfns.c (uncache_home_directory):
16942 * editfns.c (get_home_directory):
16943 * editfns.c (Fuser_home_directory):
16944 * editfns.c (Fformat_time_string):
16945 * editfns.c (Fcurrent_time_string):
16946 * gui-x.c (button_item_to_widget_value):
16947 * database.c (Fopen_database):
16948 * event-Xt.c (x_to_emacs_keysym):
16949 * event-Xt.c (x_event_to_emacs_event):
16950 * event-Xt.c (describe_event_window):
16951 * event-msw.c (mswindows_wnd_proc):
16952 * glyphs-eimage.c (jpeg_instantiate):
16953 * glyphs-eimage.c (gif_instantiate):
16954 * glyphs-eimage.c (png_instantiate):
16955 * glyphs-eimage.c (tiff_instantiate):
16956 * glyphs-x.c (xbm_instantiate_1):
16957 * glyphs-x.c (x_xbm_instantiate):
16958 * glyphs-x.c (x_xface_instantiate):
16959 * glyphs-x.c (autodetect_instantiate):
16960 * glyphs-x.c (cursor_font_instantiate):
16961 * glyphs-x.c (x_widget_instantiate):
16962 * glyphs-x.c (x_widget_set_property):
16963 * glyphs-x.c (x_widget_property):
16964 * glyphs-x.c (BUILD_GLYPH_INST):
16965 * print.c (write_string_to_stdio_stream):
16966 * print.c (output_string):
16967 * print.c (Falternate_debugging_output):
16968 * print.c (Fexternal_debugging_output):
16969 * glyphs-msw.c (extract_xpm_color_names):
16970 * glyphs-msw.c (mswindows_xpm_instantiate):
16971 * glyphs-msw.c (bmp_instantiate):
16972 * glyphs-msw.c (resource_name_to_resource):
16973 * glyphs-msw.c (mswindows_resource_instantiate):
16974 * glyphs-msw.c (xbm_instantiate_1):
16975 * glyphs-msw.c (mswindows_xbm_instantiate):
16976 * glyphs-msw.c (mswindows_xface_instantiate):
16977 * glyphs-msw.c (mswindows_widget_instantiate):
16978 * glyphs-msw.c (add_tree_item):
16979 * glyphs-msw.c (add_tab_item):
16980 * glyphs-msw.c (mswindows_combo_box_instantiate):
16981 * glyphs-msw.c (mswindows_widget_property):
16982 * glyphs-msw.c (mswindows_combo_box_property):
16983 * glyphs-msw.c (mswindows_widget_set_property):
16984 * console.c (stuff_buffered_input):
16985 * objects-msw.c (mswindows_initialize_color_instance):
16986 * objects-msw.c (mswindows_valid_color_name_p):
16987 * objects-msw.c (mswindows_list_fonts):
16988 * objects-msw.c (mswindows_font_instance_truename):
16989 * bytecode.c (optimize_compiled_function):
16990 * select-x.c (symbol_to_x_atom):
16991 * select-x.c (x_atom_to_symbol):
16992 * select-x.c (hack_motif_clipboard_selection):
16993 * select-x.c (selection_data_to_lisp_data):
16994 * select-x.c (lisp_data_to_selection_data):
16995 * select-x.c (Fx_get_cutbuffer_internal):
16996 * select-x.c (Fx_store_cutbuffer_internal):
16997 * buffer.h (TO_EXTERNAL_FORMAT): New function.
16998 * buffer.h (TO_INTERNAL_FORMAT): New function.
16999 * emacs.c (make_arg_list_1):
17000 * emacs.c (make_argc_argv):
17001 * emacs.c (main_1):
17002 * emacs.c (Fdump_emacs):
17003 * emacs.c (split_string_by_emchar_1):
17008 * device-x.c (x_init_device):
17009 * device-x.c (Fx_valid_keysym_name_p):
17010 * device-x.c (Fx_get_font_path):
17011 * device-x.c (Fx_set_font_path):
17012 * glyphs.c (bitmap_to_lisp_data):
17013 * glyphs.c (pixmap_to_lisp_data):
17014 * alloc.c (make_ext_string): Use coding system arguments. Update
17016 * alloc.c (build_string):
17017 * callproc.c (child_setup):
17018 * callproc.c (init_callproc):
17019 * fileio.c (lisp_strerror):
17020 * fileio.c (directory_file_name):
17021 * fileio.c (Fexpand_file_name):
17022 * fileio.c (Ffile_truename):
17023 * fileio.c (Fsysnetunam):
17024 * fileio.c (Fdo_auto_save):
17025 * sysdep.c (sys_readdir):
17026 * tests.c: New file. Allow adding C tests.
17027 Replace GET_* macros with a more comprehensible and flexible
17028 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17030 Any coding system can be used to do format conversion.
17031 Eliminate enum external_data_format.
17032 Eliminate convert_to_external_format.
17033 Eliminate convert_to_internal_format.
17034 Make sure file-name, keyboard, terminal, and ctext are always
17035 defined as coding systems or aliases. Make
17036 file-name-coding-system, terminal-coding-system, and
17037 keyboard-coding-system magical variables that are equivalent to
17038 defining the corresponding coding system aliases.
17040 * file-coding.c (Fcoding_system_canonical_name_p): New function.
17041 * file-coding.c (Fcoding_system_alias_p): New function.
17042 * file-coding.c (Fcoding_system_aliasee): New function.
17043 * file-coding.c (append_suffix_to_symbol): New function.
17044 * file-coding.c (dangling_coding_system_alias_p): New function.
17045 * file-coding.c (Ffind_coding_system):
17046 * file-coding.c (Fcopy_coding_system):
17047 * file-coding.c (encode_coding_no_conversion):
17048 * file-coding.c (syms_of_file_coding):
17049 * file-coding.c (vars_of_file_coding):
17050 Rewrite coding system alias code.
17051 Allow nested aliases, like symbolic links.
17052 Allow redefinition of coding system aliases.
17053 Prevent existence of dangling coding system aliases.
17055 * dired.c (Fuser_name_completion_1):
17056 * dired.c (Fuser_name_all_completions):
17057 A crash would happen if user did QUIT in the middle of building
17058 user_name_cache. Remove redundant code in mainline and unwind_protect.
17061 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
17063 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17064 an unsigned char *. Update all callers.
17066 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17068 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17070 2000-01-25 Martin Buchholz <martin@xemacs.org>
17072 * elhash.c (hentry_description): Use more portable definition.
17073 (resize_hash_table): Initialize new hentries using
17074 xnew_array_and_zero, thereby simplifying the code.
17076 * mule-charset.c (make_charset): Make sure entire object is
17077 initialized, to avoid Purify warnings.
17079 * alloc.c (resize_string): Fix unlikely crash with big strings.
17081 2000-01-24 Martin Buchholz <martin@xemacs.org>
17083 * realpath.c (xrealpath):
17084 Don't call getwd().
17086 2000-01-25 Martin Buchholz <martin@xemacs.org>
17088 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17090 1999-12-28 Max Matveev <max@melbourne.sgi.com>
17092 * unexelfsgi.c (unexec): Change the way we decide which segment
17093 should be extended.
17095 Assumption that .bss section should be outside the PT_LOADable
17096 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17097 it's present) is inside the 'data' segment. This would fail the
17098 test which was used to find a segment to grow and cover new
17099 heap. Instead of this assumption, I created another one - on IRIX
17100 the segment to grow should start below .bss and it's address
17101 should extent above the end of .bss. Once this segment is
17102 identified, it's grown to accommodate the new heap and new
17103 zero-length .bss section is added at the end of .data2.
17105 2000-01-25 Martin Buchholz <martin@xemacs.org>
17107 * eval.c (Feval): Wrong number of arguments should use original
17108 function, not the indirect_function version of it.
17110 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
17112 * glyphs-x.c (x_button_instantiate): Don't add image if
17113 it is not a pixmap.
17114 (x_locate_pixmap_file): Call Fexpand_file_name when file name
17117 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
17119 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17121 (DEFVAR_INT_MAGIC): Ditto.
17122 (DEFVAR_BOOL_MAGIC): Ditto.
17123 * glyphs.h: Reindent backslash.
17125 2000-01-24 Martin Buchholz <martin@xemacs.org>
17127 * glyphs-widget.c (layout_query_geometry):
17128 (layout_layout): Use correct types for gheight, gwidth.
17130 2000-01-24 Martin Buchholz <martin@xemacs.org>
17132 * EmacsManager.c (QueryGeometry): Purified.
17134 2000-01-23 Martin Buchholz <martin@xemacs.org>
17136 * alloc.c (make_float): Make sure entire object is initialized, to
17137 avoid Purify warnings.
17138 (pdump_register_sub): Remove useless assignment.
17139 (pdump): Use xmalloc, not malloc.
17140 (pdump_load): Use xmalloc, not malloc.
17142 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17149 * sysdep.c: Removed redundant #include <windows.h>
17151 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17153 * frame.c (delete_frame_internal): Do not delete device when its
17154 implementation so declares.
17155 (delete_frame_internal): Set device selected frame to nil when
17156 last frame goes away.
17158 * device-msw.c (msprinter_device_system_metrics): Implemented.
17159 (mswindows_device_system_metrics): Added 'device-dpi property.
17161 * device.c: (Fdevice_printer_p): Added.
17162 Added 'offset-workspace device metric.
17164 * console.h (device_metrics): Declared DM_offset_workspace.
17166 2000-01-23 Martin Buchholz <martin@xemacs.org>
17168 * fileio.c (Ffile_truename): Remove pointless and confusing
17169 initialization of elen.
17171 * glyphs-widget.c: Compiler warning fixes.
17173 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
17175 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17176 instead of a Lisp_Object as argument to make it consistent with
17177 the other LIVE_P macros.
17178 (CHECK_LIVE_PROCESS): New macro.
17180 * process.c: Declare Qprocess_live_p.
17181 (Fprocess_live_p): New function.
17182 (create_process): Use PROCESS_LIVE_P.
17183 (read_process_output): Ditto.
17184 (set_process_filter): Ditto.
17185 (Fdelete_process): Ditto.
17186 (kill_buffer_processes): Ditto
17187 (process_send_signal): Use CHECK_LIVE_PROCESS.
17188 (Fprocess_input_coding_system): Check whether process is still
17189 alive (fix PR#1061).
17190 (Fprocess_output_coding_system): Ditto.
17191 (Fprocess_coding_system): Ditto.
17192 (Fset_process_input_coding_system): Ditto.
17193 (Fset_process_output_coding_system): Ditto.
17195 2000-01-23 Andy Piper <andy@xemacs.org>
17197 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17200 * glyphs.c (mark_image_instance): take into account changed
17201 image_instance format.
17202 (image_instance_equal): ditto.
17203 (image_instance_hash): ditto.
17205 * glyphs-widget.c (widget_instantiate): Incorporate layout
17206 instantiation here. Delay layout of the layout until later.
17207 (layout_instantiate): deleted.
17208 (layout_query_geometry): new function. get the geometry of a
17210 (layout_layout): layout a layout dynamically.
17211 (image_instantiator_widget): New function - splitting up
17212 image_instantiator_format_create_glyphs_widget for netwinder
17214 (image_instantiator_buttons):
17215 (image_instantiator_edit_fields):
17216 (image_instantiator_combo_box):
17217 (image_instantiator_scrollbar):
17218 (image_instantiator_progress_guage):
17219 (image_instantiator_tree_view):
17220 (image_instantiator_tab_control):
17221 (image_instantiator_labels):
17222 (image_instantiator_layout): ditto.
17223 (image_instantiator_format_create_glyphs_widget): Call preceding
17226 2000-01-22 Martin Buchholz <martin@xemacs.org>
17228 * process.c (Fset_process_coding_system):
17229 * device-x.c (Fx_keysym_hash_table):
17232 * lstream.c (Lstream_write): Return documented value, not 0.
17234 * fileio.c (directory_file_name):
17235 (Fsubstitute_in_file_name):
17236 (Fsubstitute_insert_file_contents_internal):
17237 (Fwrite_region_internal):
17242 Remove vestigial APOLLO-conditional code.
17244 2000-01-21 Martin Buchholz <martin@xemacs.org>
17246 * getpagesize.h: Add guard macros.
17247 * libsst.h: Add guard macros.
17248 * libst.h: Add guard macros.
17249 * line-number.h: Add guard macros.
17250 * ndir.h: Add guard macros.
17251 * sysfloat.h: Add guard macros.
17252 * sysfile.h: Add guard macros.
17253 * sysproc.h: Add guard macros.
17254 * syswait.h: Add guard macros.
17255 * xintrinsic.h: Add guard macros.
17256 * xintrinsicp.h: Add guard macros.
17257 * xmmanager.h: Add guard macros.
17258 * xmmanagerp.h: Add guard macros.
17259 * xmprimitive.h: Add guard macros.
17260 * xmu.h: Add guard macros.
17261 * gpmevent.h: Add copyright statement. Add guard macros.
17262 * miscplay.h: Add guard macros.
17263 * *.h: Use consistent C-standards-approved guard macro names.
17265 * opaque.c (make_opaque): Switch parameter order.
17266 * opaque.h (make_opaque): Switch parameter order.
17267 Update all callers.
17268 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17270 * config.h.in (type_checking_assert): Added.
17271 (bufpos_checking_assert): Added.
17273 2000-01-21 Martin Buchholz <martin@xemacs.org>
17275 * alloc.c: Harmless pdump changes.
17277 - spell alignment correctly.
17278 * sysdep.c: Use countof()
17280 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17282 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17283 initially_selected_for_input() console method, default to 0.
17284 (semi_canonicalize_console_connection): Try to delegate to
17285 canonicalize_console_connection if no such console method.
17286 (canonicalize_console_connection): Vice versa.
17287 (print_console): Do not print nil connection.
17289 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17290 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17291 (XDEVIMPF_FRAMELESS_OK): Added.
17292 (CONSOLE_INHERITS_METHOD): Added.
17294 * console-msw.c (mswindows_canonicalize_console_connection):
17296 (mswindows_canonicalize_device_connection): Added.
17298 * console-msw.h (struct msprinter_device): Added this struct and
17300 (mswindows_device): Made fontlist a lisp object.
17302 * device.c (semi_canonicalize_device_connection): Try to delegate
17303 to canonicalize_device_connection if no such console method.
17304 (canonicalize_device_connection): Vice versa.
17305 (print_device): Do not print nil connection.
17307 * device-msw.c (mswindows_init_device): Call InitCommonControls
17309 (mswindows_delete_device): Removed fontlist deallocation.
17310 (mswindows_mark_device): Added.
17312 * events.c (event_equal): Added abort() at unreached code.
17313 (event_hash): Ditto.
17315 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17316 fallback tags of Windows devices.
17318 * general.c (syms_of_general): Initialized Qmsprinter.
17320 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17321 of fallback tags of Windows devices.
17323 * lisp.h: Declared Qmsprinter.
17325 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17327 (mswindows_list_fonts): Ditto.
17328 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17329 that it can be used by both mswindows and msprinter devices.
17330 (initialize_font_instance): Added.
17331 (mswindows_initialize_font_instance): Use it.
17332 (msprinter_initialize_font_instance): Added.
17334 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17335 and implementation flags check.
17336 (redisplay_without_hooks): Changed the call to the above.
17337 (Fredraw_device): Ditto.
17338 (Fredisplay_device): Ditto.
17340 * redisplay-msw.c (get_frame_dc): Implemented.
17341 (get_frame_compdc): Implemented.
17342 (many functions): Use the two functions above to get device
17343 contexts, ether for a window or a printer.
17345 2000-01-21 Olivier Galibert <galibert@pobox.com>
17347 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17348 initialization here.
17349 (init_symbols_once_early): Call it.
17350 * emacs.c (main_1): Call it.
17351 * symsinit.h: Declare it.
17353 2000-01-19 Olivier Galibert <galibert@pobox.com>
17355 * alloc.c: Use a lrecord_header * in the backtrace instead of a
17357 (pdump_backtrace): Ditto.
17358 (pdump_register_object): Ditto. Cleanup use of the pointers.
17359 (pdump_get_entry): Abort if trying to register a null pointer.
17360 (pdump_dump_data): Cleanup types when relocating.
17361 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17362 (pdump_dump_rtables): Remove bad casts.
17363 (pdump_load): Cleanup relocation w.r.t union type. Use a
17364 Lisp_Object instead of a EMACS_INT for the hashtable
17367 2000-01-20 Martin Buchholz <martin@xemacs.org>
17369 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17371 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17373 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17375 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17377 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17379 * faces.h (FACE_STRIKETHRU_P): Added.
17381 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17384 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17385 (mswindows_set_dc_font): New function, aware of font variants,
17386 separated from mswindows_update_dc.
17388 * objects-msw.h (struct mswindows_font_instance_data): Added
17391 * objects-msw.c (mswindows_finalize_font_instance): Delete all
17392 cached fonts and the data structure.
17393 (mswindows_initialize_font_instance): Added creation of font data
17395 (mswindows_print_font_instance): Print at least something.
17396 (mswindows_create_font_variant): Implemented.
17397 (mswindows_get_hfont): Implemented.
17399 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
17401 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17402 prototyping problem with msvc.
17404 * emacs.c (main_1): added syms_of_gui_mswindows() call
17406 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17407 syms_of_gui_mswindows() function
17409 * symsinit.h: added the prototype for syms_of_gui_mswindows()
17411 2000-01-18 Martin Buchholz <martin@xemacs.org>
17413 * XEmacs 21.2.27 is released.
17415 2000-01-18 Martin Buchholz <martin@xemacs.org>
17417 * glyphs-eimage.c (struct tiff_error_struct):
17419 (tiff_warning_func):
17420 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17425 * unexec.c: Remove vestigial Lucid C code.
17429 * libsst.c: Ansify.
17430 Remove declarations of errno and strerror().
17432 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
17434 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17436 2000-01-16 Martin Buchholz <martin@xemacs.org>
17438 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17441 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
17446 Change enum eol_type to eol_type_t.
17448 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
17450 * gui.c (get_gui_callback): Check cons before accessing car.
17452 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
17454 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17455 (XSETSPECIFIER_TYPE): Ditto.
17457 2000-01-17 Didier Verna <didier@xemacs.org>
17459 * redisplay.c (generate_fstring_runes): compute string size in
17460 characters, not bytes.
17462 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
17464 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17466 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
17468 * print.c (print_error_message): Call print_prepare().
17470 2000-01-14 Martin Buchholz <martin@xemacs.org>
17472 * .dbxrc: Renamed from dbxrc.
17474 * events.c (event_to_character):
17475 Use `assert (foo)' instead of `if (!foo) abort()'
17477 * .gdbinit (xtype): Add documentation.
17478 * .gdbinit (check-temacs): New function.
17479 * .gdbinit (check-xemacs): New function.
17480 * dbxrc (check-xemacs): New function.
17481 * dbxrc (check-xemacs): New function.
17483 2000-01-14 Andy Piper <andy@xemacs.org>
17485 * glyphs-widget.c (widget_query_geometry): Make sure that we
17486 calculate default dimensions correctly.
17488 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17490 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17492 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17493 pdump_wire'd variable.
17495 * emacs.c: (main_1): Conditionalized calls to
17496 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17498 2000-01-13 Martin Buchholz <martin@xemacs.org>
17500 * window.c (Fset_window_configuration):
17501 * sysdep.c (_start):
17502 * input-method-motif.c (res):
17503 * event-Xt.c (Xt_process_to_emacs_event):
17504 Simple compiler warning fixes.
17506 * bytecode.c (funcall_compiled_function): Use the original
17507 function symbol on the backtrace list in preference to the
17508 compiled_function object in error messages.
17510 2000-01-13 Andy Piper <andy@xemacs.org>
17512 * glyphs-x.c (update_widget_face): Make sure we update the widget
17513 background as well as foreground.
17515 2000-01-13 Andy Piper <andy@xemacs.org>
17517 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17518 fields to subwindow.
17519 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17520 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17521 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17522 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17524 * glyphs-widget.c (check_valid_tab_orientation): new function.
17525 (initialize_widget_image_instance): zero orientation and
17527 (widget_instantiate): pick up orientation.
17528 (tab_control_query_geometry): return appropriate values for
17531 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17532 appropriate creation flags for left, right and bottom tabs.
17534 * s/cygwin32.h: add tab definitions.
17536 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17538 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17539 frame upon hiding a subwindow.
17540 (mswindows_button_instantiate): Changed the push button style to
17542 (mswindows_button_instantiate): Removed button BS_NOTIFY
17544 (mswindows_button_instantiate): Removed redundant check for
17545 a disabled gui item.
17546 (mswindows_button_instantiate): Made use of WS_TABSTOP
17547 consistent: "operable" controls (edit, button, tree, scroll) have
17548 this style, "display-only" ones (static, progress gauge) do
17549 not. This style is currently ignored by XEmacs though. Also,
17550 removed the WS_EX_CONTROLPARENT style - it is not for children,
17551 it is for their parents!
17552 (mswindows_edit_field_instantiate): Ditto.
17553 (mswindows_progress_gauge_instantiate): Ditto.
17554 (mswindows_tree_view_instantiate): Ditto.
17555 (mswindows_tab_control_instantiate): Ditto.
17556 (mswindows_scrollbar_instantiate): Ditto.
17557 (mswindows_combo_box_instantiate): Ditto.
17558 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17559 style to the "clip" window.
17560 (mswindows_button_instantiate): Removed compilation warning by
17561 equally typing terms of the ?: operator.
17563 2000-01-12 Didier Verna <didier@xemacs.org>
17565 * redisplay.c (generate_fstring_runes): new parameter holding the
17566 last modeline-format extent.
17567 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17568 extent, fill the glyph block with it.
17569 (generate_fstring_runes): handle these parameters.
17570 (generate_formatted_string_db): ditto.
17572 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17573 glyphs'extents in the modeline.
17575 1999-01-11 Mike Woolley <mike@bulsara.com>
17577 * ntheap.c: Reduced the reserved heap space from 1Gb down to
17578 256Mb, as a workaround for the non-starting problem many people
17581 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
17583 * console-tty.c (Fset_console_tty_output_coding_system):
17584 Force redrawing tty frame.
17586 2000-01-10 Didier Verna <didier@xemacs.org>
17588 * redisplay.c (generate_fstring_runes): fix size computation bug.
17590 2000-01-09 William M. Perry <wmperry@aventail.com>
17592 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17594 2000-01-09 Andy Piper <andy@xemacs.org>
17596 * glyphs-msw.c: index -> i to avoid shadows.
17597 (xbm_create_bitmap_from_data): make static.
17598 (check_valid_string_or_int): deleted.
17599 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17601 * glyphs-x.c (x_update_subwindow): remove unused args.
17603 * glyphs.c (glyph_image_instance): return the thing. Don't set the
17604 back pointer - this is done in allocate_image_instance.
17605 (query_string_font): return Qnil to make the compiler happy.
17606 (unmap_subwindow): set to ~0 to make the compiler happy.
17607 (glyph_query_geometry): comment out until used.
17608 (glyph_layout): ditto.
17610 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
17612 * insdel.c (signal_after_change): Remove extraneous unbind_to().