1 2011-02-12 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
3 * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
4 coded-charsets with builtin characters.
6 2011-02-09 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
8 * text-coding.c (Qrep_decomposition): New extern.
9 (char_encode_utf8): Try to encode as combing sequence (or IVS).
11 2011-01-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
13 * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
14 "#endif" for code to refer Vchise_system_db_directory.
16 2010-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
18 * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
19 (Fconcord_object_adjoin): New function.
20 (Fconcord_object_adjoinX): New function.
21 (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
22 `Fconcord_object_adjoinX'.
24 2010-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
27 - Include "elconcord.h".
28 - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
29 and `Fconcord_object_get' to elconcord.h.
30 (Lisp_CONCORD_DS): Moved to elconcord.h.
31 (struct Lisp_CONCORD_DS): Ditto.
33 (XSET_CONCORD_DS): Ditto.
34 (CONCORD_DS_P): Ditto.
35 (CHECK_CONCORD_DS): Ditto.
36 (CONCHECK_CONCORD_DS): Ditto.
37 (Lisp_CONCORD_Object): Ditto.
38 (struct Lisp_CONCORD_Object): Ditto.
39 (XCONCORD_OBJECT): Ditto.
40 (XSET_CONCORD_OBJECT): Ditto.
41 (CONCORD_OBJECT_P): Ditto.
42 (CHECK_CONCORD_OBJECT): Ditto.
43 (CONCHECK_CONCORD_OBJECT): Ditto.
44 (CONCORD_OBJECT_GENRE): Ditto.
45 (CONCORD_OBJECT_ID): Ditto.
46 (XCONCORD_OBJECT_ID): Ditto.
47 (XCONCORD_OBJECT_GENRE): Ditto.
48 (concord_object_equal): New function.
49 (LRECORD_IMPLEMENTATION of "concord_object"): Use
50 `concord_object_equal'.
52 * elconcord.h: New file.
54 2010-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
56 * concord.c (print_concord_object): Use readable form even if
57 `print-readably' is nil.
59 2010-11-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
61 * concord.c (print_concord_object): Don't display location of
62 data-source when `print-readably' is nil.
64 2010-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
66 * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
67 the default location of data-source.
68 (complex_vars_of_concord): Use Vchise_system_db_directory to
69 assign genre `character' and `feature'.
71 * chartab.h (Vchise_system_db_directory): New extern when
72 HAVE_CONCORD is defined.
74 2010-09-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
76 * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
77 (Qcharacter): New variable when HAVE_LIBCHISE is defined.
79 (Fconcord_object_genre): New function.
81 - Add new builtin symbols `character' and `feature' when
82 HAVE_LIBCHISE is defined.
83 - Add Add new builtin function `concord-object-genre'.
84 (complex_vars_of_concord): New function; assign genres `character'
85 and `feature' when HAVE_LIBCHISE is defined.
87 2010-09-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
89 * emacs.c (main_1): Call `complex_vars_of_concord' when
90 HAVE_CONCORD is defined.
92 * symsinit.h (complex_vars_of_concord): New prototype.
94 2010-07-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
96 * chartab.c (allocate_character): Add `static'.
98 2010-07-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
100 * chartab.c (allocate_character): New function.
101 (Fdefine_char): Use allocate_character().
103 2010-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
105 * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
108 2010-03-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
110 * chartab.c (save_uint8_byte_table): Fixed problem when a property
112 (save_uint16_byte_table): Likewise.
114 2010-02-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
116 * chartab.c (Fchar_feature_property): New function when LIBCHISE
118 (Fput_char_feature_property): Likewise.
119 (syms_of_chartab): Add new builtin functions
120 `char-feature-property' and `put-char-feature-property' when
123 2009-04-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
125 * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
127 (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
129 2009-04-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
131 * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
132 (make_charset): Add new argument `iso_ir'.
133 (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
134 (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
136 (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
137 (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
139 (complex_vars_of_mule_charset): Specify argument `iso_ir' of
140 function `make_charset'.
142 * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
143 (struct Lisp_Charset): Add new member `iso_ir'.
144 (CHARSET_ISO_IR): New macro.
146 2009-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
148 * mule-charset.c (Fdecode_char): Fix problem when decoding GR
149 code-point by GL charset.
151 2008-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
153 * concord.c (concord_id_validate): New function.
154 (structure_type_create_concord): Use `concord_id_validate' instead
155 of `concord_name_validate' to accept integer and character as =id.
157 2008-09-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
159 * concord.c (func_for_each_object): Fix bug about GC-protection.
161 2008-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
163 * concord.c (Fconcord_object_put): Check argument FEATURE is a
166 2008-09-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
168 * text-coding.c (struct decoding_stream): Add new member
169 `bom_flag' in XEmacs CHISE.
170 (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
173 2008-09-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
175 * mule-charset.c: Move definition of `=jis-x0208@1978' to
176 lisp/mule/mule-conf.el.
178 2008-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
180 * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
181 (make_charset): Add new argument `partial'.
182 (Fmake_charset): Add new property 'partial in XEmacs CHISE.
183 (Fmake_reverse_direction_charset): Modify for `make_charset'.
184 (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
186 (complex_vars_of_mule_charset): Modify for `make_charset'; specify
187 `=jis-x0208' as a partial coded-charset.
189 2008-08-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
191 * text-coding.c (decode_add_er_char): Fix problem when a character
192 represented by an entity-reference is not defined.
194 2008-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
196 * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
199 2007-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
201 * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
204 2006-06-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
206 * concord.c (Fconcord_object_put): Add reversed links when FEATURE
207 is a relation feature.
209 2006-06-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
211 * chartab.c (syms_of_chartab): Define
212 `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
214 * chartab.h (Q_denotational): New extern when UTF2000 or
215 HAVE_CONCORD is defined.
216 (Q_denotational_from): Likewise.
217 (Q_subsumptive): Likewise.
218 (Q_subsumptive_from): Likewise.
220 2006-06-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
222 * concord.c (concord_object_put): New function.
223 (Fconcord_object_put): Use `concord_object_put'.
225 2006-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
227 * concord.c (Fconcord_define_object): New function.
228 (syms_of_concord): Add new builtin function
229 `concord-define-object'.
231 2006-05-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
233 * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
236 2006-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
238 * concord.c: Add EXFUN for Fconcord_object_get.
239 (Vconcord_genre_object_hash_table): New variable.
240 (concord_genre_cache_get_object): New function.
241 (concord_genre_cache_put_object): New function.
242 (Fconcord_make_object): Use object cache; put object-ID into `=id'
244 (Fconcord_object_put): Call `concord_index_sync' after
245 `concord_index_strid_put_obj'.
246 (vars_of_concord): Setup Vconcord_genre_object_hash_table.
248 2006-04-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
250 * concord.c (Fconcord_decode_object): Do GCPRO for
251 Fconcord_make_object.
252 (func_for_each_object): Likewise; do GCPRO for
253 for_each_object_closure->function.
254 (Fconcord_foreach_object_in_feature): Use GCPRO4 for
255 for_each_object_closure->function, for_each_object_closure->genre,
256 for_each_object_closure->ds and for_each_object_closure->ret.
257 (concord_object_validate): Do GCPRO for Fconcord_make_object.
259 2006-04-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
261 * concord.c: Add EXFUNs for Fconcord_decode_object and
263 (Fconcord_make_object): Change order of arguments.
264 (Fconcord_decode_object): Modify for Fconcord_make_object.
265 (func_for_each_object): Likewise.
266 (concord_object_validate): Likewise.
267 (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
269 2006-04-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
271 * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
273 2006-04-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
275 * concord.c (Fconcord_decode_object): Try to use readable print
276 form as a key of Concord-index.
277 (Fconcord_object_get): Try to use readable print form as an ID of
279 (Fconcord_object_put): Try to use readable print form as an ID of
280 Concord-object and a feature value.
281 (Fconcord_object_spec): Try to use readable print form as an ID of
284 2006-04-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
286 * concord.c (print_concord_object): Support readable form.
288 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
290 * emacs.c (main_1): Call `structure_type_create_concord' when
291 HAVE_CONCORD is defined.
293 * symsinit.h (structure_type_create_concord): New prototype.
295 * concord.c (Qconcord_object): New variable.
298 (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
300 (add_feature_to_list_mapper): Use <char*> instead of <unsigned
301 char*> for genre-name.
302 (Fconcord_feature_list): Likewise.
303 (Fconcord_make_object): Likewise.
304 (Fconcord_decode_object): Likewise; use <char*> instead of
305 <unsigned char*> for feature_name and strid.
306 (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
307 c_obj and feature_name.
308 (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
310 (struct closure_for_object_spec): Use <char*> instead of <unsigned
311 char*> for member `object_id'.
312 (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
313 char*> for feature-name.
314 (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
316 (func_for_each_object): Cast to avoid warnings.
317 (Fconcord_foreach_object_in_feature): Use <char*> instead of
318 <unsigned char*> for genre_name and feature_name.
319 (concord_name_validate): New function.
320 (concord_object_validate): Likewise.
321 (concord_object_instantiate): Likewise.
322 (syms_of_concord): Add new builtin symbols `concord-object',
324 (structure_type_create_concord): New function.
326 2006-04-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
328 * concord.c (Vconcord_ds_hash_table): New variable.
329 (Vconcord_genre_hash_table): New variable.
330 (Fconcord_open_ds): Use Vconcord_ds_hash_table.
331 (Fconcord_ds_directory): New function.
332 (Fconcord_assign_genre): New function.
333 (Fconcord_genre_directory): New function.
334 (Fconcord_genre_ds): New function.
335 (Fconcord_feature_list): Allow to omit `ds'.
336 (Fconcord_make_object): Likewise.
337 (Fconcord_decode_object): Likewise.
338 (Fconcord_foreach_object_in_feature): Likewise.
339 (syms_of_concord): Add new builtin function Fconcord_ds_directory,
340 Fconcord_assign_genre, Fconcord_genre_directory and
342 (vars_of_concord): Setup Vconcord_ds_hash_table and
343 Vconcord_genre_hash_table.
345 2006-02-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
347 * concord.c (struct closure_for_each_object): Add new member
349 (func_for_each_object): Setup the return value to
350 `for_each_object_closure->ret'.
351 (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
352 returns the value instead of Qt.
354 2005-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
356 * concord.c: New file.
358 2005-12-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
360 * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
361 `lrecord_type_concord_object'.
363 2005-09-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
365 * symsinit.h (syms_of_concord): New prototype.
366 (vars_of_concord): New prototype.
368 * emacs.c (main_1): Setup symbols and variable about concord if
369 HAVE_CONCORD is defined.
371 * config.h.in (HAVE_CONCORD): New macro.
373 2005-09-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
375 * chartab.c (Fput_char_attribute): For each character relation
376 feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
378 2005-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
380 * chartab.c (Fput_char_attribute): Use
381 `Fchar_refs_simplify_char_specs' for `=>decomposition' before
382 calling `put_char_composition'.
384 2005-08-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
386 * chartab.c (Q_halfwidth_of): New variable.
387 (put_char_composition): Return `<-halfwidth' instead of
388 `=decomposition' for compatibility mapping to single character
390 (Fput_char_attribute): Convert char-specs in value of
391 `{<-|->}halfwidth[^*]*' to characters and put reverse links.
392 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
394 (syms_of_chartab): Add new symbol `<-halfwidth'.
396 2005-08-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
398 * chartab.c (put_char_composition): Return
399 `<-formed@{isolated|initial|medial|final}' for compatibility
400 mapping to single character tagged
401 `{isolated|initial|medial|final}'.
403 2005-08-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
405 * chartab.c (Q_compat_of): Deleted.
406 (put_char_composition): Return `<-FOO' for compatibility mapping
407 to single character tagged `FOO'; use `Fsymbol_name (...)' instead
408 of `symbol_name (XSYMBOL(...))'.
409 (Fput_char_attribute): Convert char-specs in value of
410 `{<-|->}font[^*]*' to characters and put reverse links.
411 (Fsave_char_attribute_table): Don't refer Q_compat_of.
412 (syms_of_chartab): Delete builtin symbol `<-compat'.
414 2005-08-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
416 * chartab.c (Q_circled_of): New variable.
417 (put_char_composition): Return `<-circled' instead of
418 `=decomposition' for compatibility mapping to single character
420 (Fput_char_attribute): Convert char-specs in value of
421 `{<-|->}circled[^*]*' to characters and put reverse links.
422 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
424 (syms_of_chartab): Add new symbol `<-circled'.
426 2005-08-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
428 * chartab.c (Qto_decomposition_at_circled): New variable.
429 (put_char_composition): Return `=>decomposition@circled' instead
430 of `=decomposition' for compatibility decomposition mapping tagged
432 (syms_of_chartab): Add new symbol `=>decomposition@circled'.
434 2005-08-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
436 * chartab.c (Q_subscript_of): New variable.
437 (put_char_composition): Return `<-subscript' instead of
438 `=decomposition' for compatibility mapping to single character
440 (Fput_char_attribute): Convert char-specs in value of
441 `{<-|->}subscript[^*]*' to characters and put reverse links.
442 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
444 (syms_of_chartab): Add new symbol `<-subscript'.
446 2005-08-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
448 * chartab.c (Q_superscript_of): New variable.
449 (put_char_composition): Return `<-superscript' instead of
450 `=decomposition' for compatibility mapping to single character
452 (Fput_char_attribute): Convert char-specs in value of
453 `{<-|->}superscript[^*]*' to characters and put reverse links.
454 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
456 (syms_of_chartab): Add new symbol `<-superscript'.
458 2005-08-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
460 * chartab.c (Qto_decomposition_at_compat): Deleted.
461 (Qto_decomposition_at_superscript): New variable.
462 (put_char_composition): Use `=>decomposition@superscript' instead
463 of `=decomposition' for compatibility decomposition mapping tagged
465 (Fput_char_attribute): Fix condition about `put_char_composition'.
466 (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
467 add news symbol `=>decomposition@superscript'.
469 2005-07-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
471 * chartab.c (put_char_composition): Return `=>decomposition@FOO'
472 for compatibility decomposition mapping tagged FOO.
473 (Fput_char_attribute): Modify for `put_char_composition'.
475 2005-07-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
477 * chartab.c (Qto_decomposition_at_compat): New variable.
478 (Q_compat_of): Renamed from `Q_compatibility_of'.
479 (put_char_composition): Rename `Q_compatibility_of' to
480 `Q_compat_of'; return `=>decomposition@compat' for compatibility
481 decomposition mapping.
482 (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
484 (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
485 `<-compatibility' to `<-compat'.
487 2005-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
489 * chartab.c (Q_compatibility_of): New variable.
490 (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
491 object is proved to be a cons cell; return `<-compatibility' if
492 the first element of argument `value' is `compat'.
493 (Fput_char_attribute): Eliminate the first value if
494 `put_char_composition' returns `<-compatibility'.
495 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
496 for `<-compatibility'.
497 (syms_of_chartab): Add new symbol `<-compatibility'.
499 2005-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
501 * chartab.c (Q_canonical): New variable.
502 (put_char_composition): Return a feature name: return
503 `->canonical' if argument `value' specifies single character.
504 (Fput_char_attribute): Use `put_char_composition' to determine
505 feature name for `=decomposition' or `->denotational'.
506 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
508 (syms_of_chartab): Add new symbol `->canonical'.
510 2005-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
512 * chartab.c (Qmap_decomposition): New variable.
513 (Fput_char_attribute): Convert `->decomposition' to
515 (syms_of_chartab): Add new symbol `=decomposition'.
517 2005-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
519 * chartab.c (Fget_range_char_table): Fix serious problem when
522 2005-06-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
524 * chartab.c (char_table_get_db): Use `read_from_c_string'.
526 2005-06-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
528 * lread.c (read_from_c_string): New function.
530 * lisp.h (read_from_c_string): New prototype.
532 2005-05-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
534 * chartab.c (Fput_char_attribute): Convert char-specs in value of
535 `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
536 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
537 for `{<-|->}Oracle-Bones[^*]*'.
539 2005-05-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
541 * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
544 2005-02-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
546 * text-coding.c (Qccs_priority_list): New variable in XEmacs
548 (Fmake_coding_system): Support new property `ccs-priority-list' in
550 (Fcoding_system_property): Likewise.
551 (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
552 Vdefault_coded_charset_priority_list in XEmacs CHISE.
553 (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
555 (complex_vars_of_file_coding): Define new coding-system-property
556 `ccs-priority-list' in XEmacs CHISE.
558 * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
560 2004-12-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
562 * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
563 changed to normal function.
564 (encode_char_2): Likewise.
566 * mule-charset.c (decoding_table_put_char): Copied from
567 char-ucs.h; changed to normal function.
568 (encode_char_2): Likewise.
570 2004-12-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
572 * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
574 (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
575 (encode_char_2_search_children): New inline function.
576 (encode_char_2): Refer
577 `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
578 and use `encode_char_2_search_children'.
580 2004-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
583 (Vdisplay_coded_charset_priority_use_inheritance): New variable.
584 (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
585 (vars_of_mule_charset): Add new variable
586 `display-coded-charset-priority-use-inheritance' and
587 `display-coded-charset-priority-use-hierarchy-order'.
589 2004-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
591 * char-ucs.h (Q_subsumptive): New extern.
592 (Q_denotational): Likewise.
593 (encode_char_2): Search children specified by `->subsumptive' and
596 2004-11-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
598 * mule-charset.c (complex_vars_of_mule_charset): Modify the
599 X-registry of `ucs-bmp'.
601 2004-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
603 * chartab.c (char-variants): Refer `->subsumptive',
604 `->denotational' and `->identical' as same as `->ucs-unified'.
606 2004-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
608 * chartab.c (Fput_char_attribute): Convert char-specs in value of
609 `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
612 2004-09-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
614 * text-coding.c: Add EXFUN for `Fregexp_quote'.
615 (decode_add_er_char): Fix problem about infinite loop when a CCS
616 specified in `coded-charset-entity-reference-alist' is not
619 2004-09-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
621 * mule-charset.c (syms_of_mule_charset): Rename
622 `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
624 2004-08-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
626 * fns.c (simplify_char_spec): Don't allocate new character-object
627 if specified char_spec does not have any CCS-features.
629 * chartab.h: Add EXFUN for Fdefine_char.
631 * chartab.c: Delete EXFUN for Fdefine_char.
633 2004-08-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
635 * fns.c (simplify_char_spec): Use Fdefine_char instead of
636 Ffind_char for char-spec.
638 2004-07-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
640 * lisp-disunion.h (XCHARVAL): Fix condition about
643 2004-07-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
645 * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
647 (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
648 point; use <Emchar> instead of <int> for character-id.
650 2004-07-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
652 * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
653 (make_char): Likewise.
654 (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
656 (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
657 instead of <int> as the type of return value; use <Lisp_Object>
658 instead of <Emchar> as the type of argument.
659 (XCHARVAL[macro version]): Cast the result into <Emchar>.
661 * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
662 syntaxcode> instead of <int>.
664 2004-07-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
666 * chartab.c (put_char_composition): Use DECODE_CHAR to get
667 character corresponding with UCS code point.
668 (Fput_char_attribute): Likewise.
670 * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
671 character in the UCS decoding-table if the char-id is not equal to
674 2004-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
676 * mule-charset.c (Fsave_charset_properties): Use `true-name' only
677 for aliases; write `description'; write
678 `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
681 2004-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
683 * chartab.c (Fsave_char_attribute_table): Don't use
684 `save_charset_properties'.
686 * mule-charset.c (Fsave_charset_properties): Renamed from
687 `save_charset_properties' and changed to Lisp function again;
688 write property `type' as `CCS'; write properties `final-byte' and
689 `mother' if they exists.
690 (syms_of_mule_charset): Revive builtin function
691 `save-charset-properties' when HAVE_LIBCHISE is defined.
693 2004-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
695 * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
696 instead of Vexec_directory.
697 (char_attribute_system_db_file): Likewise.
699 2004-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
701 * chartab.c (Fsave_char_attribute_table): Use
702 `save_charset_properties' for CCS features when HAVE_LIBCHISE is
705 * mule-charset.c (save_charset_properties): Renamed from
706 `Fsave_charset_properties'; changed to non-Lisp function.
707 (syms_of_mule_charset): Abolish builtin function
708 `save-charset-properties'.
710 2004-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
712 * mule-charset.c (Fsave_charset_properties): New function when
713 HAVE_LIBCHISE is defined.
714 (syms_of_mule_charset): Add new builtin function
715 `save-charset-properties' when HAVE_LIBCHISE is defined.
717 2004-06-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
719 * chartab.c (Fput_char_attribute): Convert char-specs in value of
720 `{<-|->}ancient[^*]*' to characters and put reverse links.
721 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
722 for `{<-|->}ancient[^*]*'.
724 2004-06-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
726 * chartab.c (Fput_char_attribute): Convert char-specs in value of
727 `{<-|->}original[^*]*' to characters and put reverse links.
728 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
729 for `{<-|->}original[^*]*'.
731 2004-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
733 * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
735 2004-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
737 * mule-charset.c (Qsystem_char_id): New variable.
739 * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
740 defined and HAVE_LIBCHISE_LIBCHISE is not defined.
742 2004-05-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
744 * chartab.c (Fput_char_attribute): When processing a reference of
745 a character, put into the end of the reversed reference of each
748 2004-05-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
750 * chartab.c (Q_same): Deleted.
751 (Q_same_of): Deleted.
752 (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
753 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
755 (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
757 2004-05-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
759 * chartab.c (Q_vulgar): Deleted.
760 (Q_vulgar_of): Deleted.
761 (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
762 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
764 (syms_of_chartab): Don't define `{<-|->}vulgar'.
766 2004-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
768 * chartab.c (Fput_char_attribute): Convert char-specs in value of
769 `{<-|->}wrong[^*]*' to characters and put reverse links.
770 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
771 for `{<-|->}wrong[^*]*'.
773 2004-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
775 * chartab.c (Q_vulgar): New variable.
776 (Q_vulgar_of): New variable.
777 (Fput_char_attribute): Convert char-specs in value of
778 `{->|<-}vulgar' to characters and put reverse links.
779 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
781 (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
783 2004-04-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
785 * text-coding.c (decode_add_er_char): Must to quote prefix string
788 2004-04-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
790 * mule-charset.c (put_char_ccs_code_point): Store characters of
791 =ucs whose code_points >= 0xF0000.
793 2004-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
795 * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
797 (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
799 (complex_vars_of_mule_charset): Add new coded-charset
800 `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
801 builtin characters over 0xEFFFF.
803 * chartab.c (syms_of_chartab): Don't define symbol
804 `system-char-id' in every case.
806 * char-ucs.h (Qsystem_char_id): New extern variable.
807 (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
809 2004-04-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
811 * text-coding.c (char_encode_utf8): Try to use entity-references
812 for U-000F0000 ... U-0010FFFF.
814 2004-04-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
816 * text-coding.c (ER_BUF_SIZE): New macro.
817 (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
819 (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
820 (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
822 2004-03-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
824 * chartab.c (find_char_feature_in_family): New function.
825 (Fchar_feature): Use `find_char_feature_in_family' with
826 `->identical', `<-subsumptive' and `<-denotational'.
828 2004-03-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
830 * text-coding.c (char_encode_as_entity_reference): Allow prefix
831 within 8 characters; fix infinite loop.
833 2004-03-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
835 * chartab.c (Q_same): New variable.
836 (Q_same_of): New variable.
837 (Fput_char_attribute): Convert char-specs in value of
838 `{->|<-}same' to characters and put reverse links.
839 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
841 (syms_of_chartab): Add new symbols `{->|<-}same'.
843 2004-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
845 * chartab.c (Q_component): New variable.
846 (Q_component_of): Likewise.
847 (Fput_char_attribute): Convert char-specs in value of
848 `{->|<-}ideographic-component-forms' to characters and put reverse
850 (syms_of_chartab): Add new symbols
851 `{->|<-}ideographic-component-forms'.
853 2004-02-24 MORIOKA Tomohiko <tomo@m17n.org>
855 * chartab.c (Q_identical): New variable.
856 (Q_identical_from): New variable.
857 (Fchar_feature): Regard `->identical' as a feature to find
859 (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
860 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
861 for `{->|<-}identical'.
862 (syms_of_chartab): Add new symbols `{->|<-}identical'.
864 2004-02-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
866 * char-ucs.h (encode_char_2): New inline function.
867 (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
869 2004-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
871 * chartab.c (Fput_char_attribute): Convert char-specs to
872 characters in value of `ideographic-structure'.
873 (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
874 for `{<-|->}simplified(@...)'.
875 (Fdefine_char): Try to use predefined character's id.
877 2004-02-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
879 * fns.c (simplify_char_spec): Try to convert builtin chars to
882 2004-02-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
884 * chartab.c (Fput_char_attribute): Convert char-specs in value of
885 `<-simplified[^*]*' to characters and put reverse links.
887 2004-02-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
889 * chartab.c (Q_subsumptive): Renamed from Q_unified.
890 (Q_subsumptive_from): Renamed from Q_unified_from.
891 (Fchar_feature): Use `Q_subsumptive_from' instead of
893 (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
895 (syms_of_chartab): Rename `->unified' to `->subsumptive' and
896 `<-unified' to `<-subsumptive'.
898 2004-02-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
900 * chartab.c (Fchar_feature): Check `<-denotational' to avoid
901 inheritance itself; fix typo; stop recursive search if cyclic
902 inheritance is found.
904 2004-02-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
906 * chartab.c (Q_denotational): New variable.
907 (Q_denotational_from): New variable.
908 (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
909 (put_char_attribute): New function.
910 (Fput_char_attribute): Use `put_char_attribute'; regard
911 `->denotational' and `<-denotational' as same as `->unified' and
913 (syms_of_chartab): Add new symbols `->denotational' and
916 2004-02-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
918 * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
919 `Fget_char_attribute'.
920 (Fchar_variants): Likewise.
921 (get_char_table): Likewise.
922 (Fchar_feature): New function.
923 (put_char_composition): Use `Fchar_feature' instead of
924 `Fget_char_attribute'.
925 (Fput_char_attribute): Likewise; don't put the target character
926 into its `->unified' value.
927 (syms_of_chartab): Add new builtin function `char-feature'.
929 2004-01-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
931 * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
932 `Fget_char_attribute'.
933 (char_encode_utf8): Likewise.
935 * chartab.h: Add an EXFUN for `Fchar_feature'.
937 2004-01-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
939 * chartab.c (Vnext_defined_char_id): New variable.
940 (Fput_char_attribute): Accept characters in `->unified'.
941 (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
942 new characters which are not related with builtin char-id ranges.
943 (vars_of_chartab): Add new variable `next-defined-char-id'.
945 2004-01-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
947 * chartab.c (Q_unified): New variable.
948 (Q_unified_from): New variable.
949 (Fput_char_attribute): Add code for `->unified'.
950 (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
953 2003-11-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
955 * mule-charset.c (decode_ccs_conversion): New function.
956 (decode_defined_char): Use `decode_ccs_conversion'.
957 (decode_builtin_char): Likewise.
959 2003-11-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
961 * char-ucs.h: Change some charset-ids of private coded-charsets.
963 2003-11-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
965 * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
966 (char_encode_as_entity_reference): Likewise.
967 (decode_coding_big5): Modify for `decode_defined_char' and
969 (decode_coding_utf8): Modify for `decode_defined_char'; modify to
970 avoid compiler warning.
971 (decode_coding_iso2022): Modify for `DECODE_CHAR'.
973 * mule-charset.c (decode_defined_char): Add new argument
974 `without_inheritance'.
975 (Fdecode_char): Add new optional argument `without_inheritance'.
976 (Fdecode_builtin_char): Modify for `Fdecode_char'.
978 * fns.c (ids_format_unit): Modify for `Fdecode_char'.
979 (simplify_char_spec): Likewise.
981 * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
984 * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
985 (map_char_table): Likewise.
986 (Fdefine_char): Use `Fdecode_char' without inheritance.
987 (Ffind_char): Modify for `Fdecode_char'.
989 * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
991 * char-ucs.h (decode_defined_char): Add new argument
992 `without_inheritance'.
993 (DECODE_CHAR): Likewise.
994 (MAKE_CHAR): Modify for `DECODE_CHAR'.
996 2003-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
998 * chartab.c (Vchise_system_db_directory): New variable.
999 (vars_of_chartab): Add new variable `chise-system-db-directory'.
1001 2003-10-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003 * chartab.c: EXFUN `Fmount_char_attribute_table'.
1004 (print_chartab_range): Don't define when `UTF2000' is defined.
1005 (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1008 2003-10-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1010 * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1011 and optional argument `rehash' is specified, call
1012 `open_chise_data_source_maybe' before
1013 `chise_ds_foreach_char_feature_name' is called.
1015 2003-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1017 * chartab.c (char_attribute_list_reset_map_func): New function
1018 when HAVE_LIBCHISE is defined.
1019 (Fchar_attribute_list): Add new optional argument `rehash' when
1020 HAVE_LIBCHISE is defined.
1021 (open_chise_data_source_maybe): Use "chise-db" instead of
1023 (char_attribute_system_db_file): Likewise.
1024 (Fload_char_attribute_table): Use
1025 `chise_feature_foreach_char_with_value' instead of
1026 `chise_char_feature_value_iterate'.
1028 2003-10-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030 * chartab.c (Vchise_db_directory): New variable.
1031 (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1033 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1035 * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1036 instead of HAVE_CHISE to specify using with libchise.
1038 * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1040 * chartab.h: Don't use HAVE_CHISE_CLIENT.
1042 * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1043 defined or HAVE_LIBCHISE_LIBCHISE is defined.
1044 (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1046 (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1047 HAVE_CHISE to specify using with libchise.
1048 (syms_of_chartab): Don't define symbol `system-char-id' when
1049 HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1051 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053 * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1054 specify CHISE DB support.
1055 (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1056 of `char_attribute_system_db_file' to check feature DB file.
1058 * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1059 HAVE_CHISE_CLIENT to specify CHISE DB support.
1061 * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1062 specify CHISE DB support.
1063 (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1065 (Freset_char_attribute_table): Use `chise_feature_setup_db'
1066 instead of `char_attribute_system_db_file' to check feature DB
1069 2003-10-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071 * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1072 `HAVE_CHISE_CLIENT'.
1074 2003-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1076 * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1077 (Fsave_charset_mapping_table): Don't use
1078 `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1080 * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1081 (HAVE_LIBCHISE): New macro.
1083 * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1085 * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1086 (Fsave_char_attribute_table): Don't use
1087 `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1089 2003-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1091 * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1093 (save_uint16_byte_table): Likewise.
1094 (save_byte_table): Likewise.
1095 (char_table_get_db): Use `chise_ds_load_char_feature_value'
1096 instead of `chise_char_load_feature_value'.
1097 (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1099 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1101 * chartab.h (struct Lisp_Char_Table): Delete member
1102 `feature_table' if CHISE is defined.
1104 * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1105 (Fcopy_char_table): Likewise.
1106 (char_table_open_db_maybe): Likewise.
1107 (char_table_close_db_maybe): Likewise.
1108 (char_table_get_db): Likewise.
1109 (Fmount_char_attribute_table): Likewise.
1110 (Fload_char_attribute_table): Likewise.
1112 2003-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1114 * mule-charset.c (load_char_decoding_entry_maybe): Use
1115 `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1118 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1120 * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1121 instead of `chise_open_data_source'.
1122 (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1125 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1127 * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1128 instead of `chise_ds_open_feature_table'.
1129 (char_table_close_db_maybe): Don't use `chise_ft_close'.
1131 2003-10-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1133 * mule-charset.c (Fsave_charset_mapping_table): Use
1134 `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1135 `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1136 `chise_ccs_sync' instead of `chise_ccst_close'.
1137 (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1139 * chartab.c (open_chise_data_source_maybe): Modify for
1140 `chise_open_data_source'.
1141 (char_table_open_db_maybe): Modify for
1142 `chise_ds_open_feature_table'.
1144 2003-08-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1146 * mule-charset.c (load_char_decoding_entry_maybe): Use
1147 `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1150 2003-08-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1152 * mule-charset.c (Fsave_charset_mapping_table): Use
1153 `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1154 `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1155 `chise_dt_put_char' and `chise_dt_close'.
1156 (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1157 `chise_ccs_decode' and `chise_ccst_close' instead of
1158 `chise_ds_open_decoding_table', `chise_dt_get_char' and
1161 * chartab.c (char_table_get_db): Use
1162 `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1163 (load_char_attribute_table_map_func): Modify for
1164 `chise_char_feature_value_iterate'.
1165 (Fload_char_attribute_table): Use
1166 `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1168 2003-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1170 * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1172 2003-08-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1174 * chartab.c (put_char_table): Modify for inherited coded-charsets
1177 2003-08-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1179 * chartab.c (Fput_char_table_map_function): Fixed.
1180 (word_boundary_p): Don't check charset in XEmacs CHISE.
1182 2003-08-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1184 * mule-charset.c (Fsave_charset_mapping_table): Use
1185 `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1186 instead of `chise_open_decoding_table'; refer
1187 `default_chise_data_source'; use `chise_dt_close' instead of
1188 `chise_close_decoding_table'.
1189 (load_char_decoding_entry_maybe): Likewise.
1191 * chartab.c (default_chise_data_source): New variable when `CHISE'
1193 (Fcopy_char_table): `ct->ds' is deleted.
1194 (open_chise_data_source_maybe): New function.
1195 (Fclose_char_data_source): New function.
1196 (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1197 use `chise_ds_open_feature_table' instead of
1198 `chise_open_feature_table'.
1199 (char_table_close_db_maybe): Use `chise_ft_close' instead of
1200 `chise_close_feature_table'; `cit->ds' is deleted.
1201 (syms_of_chartab): Add new builtin function
1202 `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1204 * chartab.h (default_chise_data_source): New extern variable.
1205 (open_chise_data_source_maybe): New prototype.
1206 (struct Lisp_Char_Table): Delete `ds'.
1208 2003-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1210 * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1213 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1215 * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1216 not defined; add code for non-libchise setting.
1217 (char_table_close_db_maybe): Likewise.
1218 (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1220 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1221 even if `CHISE' is not defined.
1222 (Freset_char_attribute_table): Likewise.
1223 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1224 `char_table_close_db_maybe' even if `CHISE' is not defined; use
1225 `char_table_get_db'.
1226 (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1227 `char_table_close_db_maybe' even if `CHISE' is not defined.
1229 2003-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1231 * chartab.c (char_table_open_db_maybe): New function.
1232 (char_table_close_db_maybe): New function.
1233 (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1234 (Freset_char_attribute_table): Likewise.
1235 (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1236 `char_table_close_db_maybe'.
1237 (Fload_char_attribute_table): Likewise.
1239 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1241 * chartab.c: Don't include <chise.h> because it is included in
1243 (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1245 (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1247 (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1249 (Fclose_char_attribute_table): Close `ct->feature_table' and
1250 `ct->ds' when `CHISE' is defined.
1251 (Freset_char_attribute_table): Likewise.
1252 (load_char_attribute_maybe): Use `cit->ds' and
1253 `cit->feature_table' when `CHISE' is defined.
1254 (Fload_char_attribute_table): Likewise.
1256 * chartab.h: Include <chise.h> when `CHISE' is defined.
1257 (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1258 when `CHISE' is defined.
1260 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1262 * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1264 (char_table_description): Likewise.
1265 (Fmake_char_table): Likewise.
1266 (Fcopy_char_table): Likewise.
1267 (Fmount_char_attribute_table): Likewise.
1268 (Fclose_char_attribute_table): Likewise.
1269 (Freset_char_attribute_table): Likewise.
1270 (load_char_attribute_maybe): Likewise.
1271 (Fload_char_attribute_table): Likewise.
1273 * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1276 2003-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1278 * chartab.c (load_char_attribute_table_map_func): New function
1279 when CHISE is defined.
1280 (Qload_char_attribute_table_map_function): Don't define when CHISE
1282 (Fload_char_attribute_table_map_function): Likewise.
1283 (Fload_char_attribute_table): Use libchise when `CHISE' is
1285 (syms_of_chartab): Don't define
1286 `load-char-attribute-table-map-function' when CHISE is defined.
1288 2003-08-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1290 * chartab.c: Include <chise.h> when `CHISE' is defined.
1291 (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1293 2003-07-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1295 * mule-charset.c (charset_code_point): Fix problem when searching
1296 in mother CCS fails with `defined_only' mode.
1298 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1300 * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1301 (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1302 (put_char_composition): Likewise.
1303 (Fput_char_attribute): Likewise.
1304 (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1306 2003-06-29 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1308 * chartab.c (Q_ucs): Deleted.
1309 (Fput_char_attribute): Don't refer `->ucs'.
1310 (Fdefine_char): Likewise.
1311 (Ffind_char): Likewise.
1312 (syms_of_chartab): Delete `->ucs'.
1314 2003-04-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1316 * mule-charset.c (Qmap_cns11643_2): Renamed from
1317 `Qchinese_cns11643_2'.
1318 (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1319 `chinese-cns11643-2'.
1320 (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1323 2003-04-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1325 * mule-charset.c (Qmap_cns11643_1): Renamed from
1326 `Qchinese_cns11643_1'.
1327 (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1328 `chinese-cns11643-1'.
1329 (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1332 2003-04-24 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1334 * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1335 (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1337 (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1340 2003-04-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1342 * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1343 (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1345 (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1348 2003-04-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1350 * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1351 (syms_of_mule_charset): Add new symbol `=big5' instead of
1353 (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1355 2003-04-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357 * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1358 (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1360 (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1363 2003-04-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1365 * mule-charset.c (Qmap_jis_x0212): Renamed from
1366 `Qjapanese_jisx0212'.
1367 (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1368 `japanese-jisx0212'.
1369 (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1372 2003-04-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1374 * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1375 `Qjapanese_jisx0208'.
1376 (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1377 of `japanese-jisx0208'.
1378 (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1381 2003-04-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383 * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1384 `Qjapanese_jisx0208_1978'.
1385 (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1386 of `japanese-jisx0208-1978'.
1387 (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1390 2003-04-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1392 * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1393 only for XEmacs CHISE.
1395 2003-04-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1397 * char-ucs.h: Compact non-ISO-IR charset-ids.
1398 (LEADING_BYTE_UCS): Changed to -177.
1399 (LEADING_BYTE_CONTROL_1): Changed to -77.
1400 (LEADING_BYTE_UCS_BMP): Changed to -176.
1401 (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1403 2003-04-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405 * mule-charset.c (Qiso_ir): New variable.
1406 (Fmake_charset): Recognise new property `iso-ir'.
1407 (syms_of_mule_charset): Add new symbol `iso-ir'.
1409 2003-04-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1411 * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1412 n to -n; charset-id of non ISO-IR sets are changed to positive
1415 2003-03-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1417 * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1418 for &MCS-XXXXXXXX; values.
1420 2003-03-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1422 * mule.c (Vxemacs_chise_version): Renamed from
1423 `Vutf_2000_version'.
1424 (vars_of_mule): Add new variable `xemacs-chise-version'; define
1425 `utf-2000-version' as an alias for `xemacs-chise-version'.
1427 2003-03-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1429 * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1430 (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1433 * config.h.in (CHISE): New macro.
1435 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1437 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1439 (Qmap_ucs): New variable.
1440 (syms_of_mule_charset): Add new symbol `=ucs'.
1441 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1443 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1444 (simplify_char_spec): Likewise.
1446 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1448 * char-ucs.h (Qmap_ucs): New extern variable.
1450 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1452 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1453 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1454 don't define it when UTF2000 is not defined.
1455 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1456 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1457 when UTF2000 is not defined.
1458 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1459 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1461 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1465 * mule-charset.c (Vcharset_ucs_gb): Deleted.
1467 (syms_of_mule_charset): Delete `ucs-gb'.
1468 (complex_vars_of_mule_charset): Likewise.
1470 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1472 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1474 * mule-charset.c (Vcharset_ucs_cns): Deleted.
1475 (Qucs_cns): Deleted.
1476 (syms_of_mule_charset): Delete `ucs-cns'.
1477 (complex_vars_of_mule_charset): Likewise.
1479 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1481 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1483 * mule-charset.c (Vcharset_ucs_jis): Deleted.
1484 (Qucs_jis): Deleted.
1485 (syms_of_mule_charset): Delete `ucs-jis'.
1486 (complex_vars_of_mule_charset): Likewise.
1488 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1490 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1492 * mule-charset.c (Vcharset_ucs_ks): Deleted.
1494 (syms_of_mule_charset): Delete `ucs-ks'.
1495 (complex_vars_of_mule_charset): Likewise.
1497 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1499 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1500 (Qideograph_daikanwa_2): Deleted.
1501 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1502 (complex_vars_of_mule_charset): Likewise.
1504 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1505 (LEADING_BYTE_DAIKANWA_1): Deleted.
1506 (LEADING_BYTE_DAIKANWA_2): Deleted.
1507 (MIN_CHAR_DAIKANWA): Deleted.
1508 (MAX_CHAR_DAIKANWA): Deleted.
1510 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1512 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1513 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1514 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1516 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1517 (Vcharset_ideograph_daikanwa): Deleted.
1518 (Qideograph_hanziku_{1..12}): Deleted.
1519 (Qideograph_daikanwa): Deleted.
1520 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1521 Vcharset_ideograph_daikanwa.
1522 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1523 `ideograph-hanziku-{1..12}'.
1524 (complex_vars_of_mule_charset): Likewise.
1526 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1528 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1530 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1531 (Qideograph_gt_pj_{1..11}): Deleted.
1532 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1533 (complex_vars_of_mule_charset): Likewise.
1535 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537 * mule-charset.c (Vcharset_ucs_big5): Deleted.
1538 (Vcharset_ideograph_gt): Deleted.
1539 (Qucs_big5): Deleted.
1540 (Qideograph_gt): Deleted.
1541 (syms_of_mule_charset): Delete symbol `ucs-big5' and
1543 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1546 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1547 (LEADING_BYTE_GT): Deleted.
1548 (MIN_CHAR_GT): Deleted.
1549 (MAX_CHAR_GT): Deleted.
1551 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1553 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1555 2003-01-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1557 * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1558 (save_uint16_byte_table): Likewise.
1559 (save_byte_table): Likewise; convert values by it.
1560 (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1561 for `ideographic-structure'.
1562 (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1563 as the filter for `ideographic-structure'.
1565 2003-01-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1567 * chartab.c (put_char_composition): New function.
1568 (Fput_char_attribute): Use `put_char_composition'; use
1569 `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1571 * fns.c (simplify_char_spec): New function.
1572 (char_ref_simplify_spec): New function.
1573 (Fchar_refs_simplify_char_specs): New function.
1574 (syms_of_fns): Add new builtin function
1575 `char-refs-simplify-char-specs'.
1577 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1579 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1580 (Qideograph_cbeta): Deleted.
1581 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1582 (complex_vars_of_mule_charset): Likewise.
1584 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1585 (MIN_CHAR_CBETA): Comment out.
1586 (MAX_CHAR_CBETA): Likewise.
1588 2002-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1590 * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1591 `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1592 CHISE client feature.
1594 2002-12-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1596 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1598 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1600 * mule-charset.c (charset_lookup_description_1): Use
1601 `NUM_LEADING_BYTES' in UTF-2000.
1603 2002-12-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1605 * char-ucs.h (GC_CHARSETP): Deleted.
1607 2002-12-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1609 * char-ucs.h (MAX_CHAR_GT): Updated.
1611 2002-12-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1613 * text-coding.c: Sync with XEmacs 21.4.10.
1615 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1617 * mule-charset.c (Vcharset_china3_jef): Deleted.
1618 (Qchina3_jef): Deleted.
1619 (syms_of_mule_charset): Don't define `china3-jef'.
1620 (complex_vars_of_mule_charset): Likewise.
1622 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1623 (MIN_CHAR_CHINA3_JEF): Comment out.
1624 (MAX_CHAR_CHINA3_JEF): Comment out.
1626 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628 * mule-charset.c (Vcharset_ucs_gb): New variable.
1629 (Qucs_gb): New variable.
1630 (syms_of_mule_charset): Add new symbol `ucs-gb'.
1631 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1633 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1635 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1637 * mule-charset.c (charset_code_point): if a coded-charset has a
1638 final-byte, don't inherit the builtin range of the mother CCS.
1640 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1642 * mule-charset.c (charset_code_point): Fix problem about
1645 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1647 * mule-charset.c (decode_builtin_char): Reorganized.
1649 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1651 * text-coding.c (char_encode_as_entity_reference): Modify for
1652 `charset_code_point'.
1653 (char_encode_shift_jis): Likewise.
1654 (char_encode_big5): Likewise.
1655 (char_encode_utf8): Likewise.
1656 (char_encode_iso2022): Likewise.
1658 * mule-charset.c (charset_code_point): Add new argument
1660 (Fencode_char): Add new optional argument `defined_only'.
1662 * chartab.c (put_char_table): Modify for `charset_code_point'.
1664 * char-ucs.h (charset_code_point): Add new argument
1666 (encode_char_1): Modify for `charset_code_point'.
1668 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1670 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1671 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1673 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1675 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1676 (Qjis_x0208): Likewise.
1677 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1678 XCHARSET_FINAL(charset).
1679 (charset_code_point): Modify condition for final-byte based
1681 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1682 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1683 in UTF-2000; specify `=jis-x0208' as the mother of
1684 `japanese-jisx0208-1978', `japanese-jisx0208' and
1685 `japanese-jisx0208-1990' in UTF-2000.
1687 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1689 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1691 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1693 * text-coding.c (decode_coding_utf16): Support UTF-16.
1694 (char_encode_utf16): Fixed.
1696 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1698 * text-coding.c (Qutf16): New variable in MULE.
1699 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1700 (Fcoding_system_type): Add `utf-16' in MULE.
1701 (struct detection_state): Add a structure for utf16 in MULE.
1702 (detect_coding_type): Setup st->utf16.mask in MULE.
1703 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1705 (reset_encoding_stream): Use `char_encode_utf16' and
1706 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1707 (detect_coding_utf16): New function [incomplete].
1708 (decode_coding_utf16): New function [support only UCS-2].
1709 (char_encode_utf16): New function.
1710 (char_finish_utf16): New function.
1711 (syms_of_file_coding): Add new symbol `utf-16'; setup
1712 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1714 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1716 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1717 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1719 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1721 * chartab.c (put_char_table): When a charset is specified as a
1722 range in UTF-2000, don't support builtin characters.
1724 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1726 * mule-charset.c (decode_defined_char): Don't refer external
1727 database if Qunbound or Qnil are found.
1728 (Fsave_charset_mapping_table): Don't define it if
1729 HAVE_CHISE_CLIENT is not defined.
1730 (Freset_charset_mapping_table): New function.
1731 (load_char_decoding_entry_maybe): Store Qnil if a character is not
1732 found in external database.
1733 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1734 if HAVE_CHISE_CLIENT is not defined; add new builtin function
1735 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1737 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1739 * text-coding.c (decode_coding_utf8): Check CCS is specified or
1742 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1744 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1745 Q_lowercase, Q_uppercase in UTF-2000.
1747 * chartab.c (get_char_table): Add special code for the standard
1748 case table to use character attribute `->downcase' and
1749 `->uppercase' for case operations in UTF-2000.
1751 * casetab.c (Qflippedcase): New variable in UTF-2000.
1752 (Q_lowercase): Likewise.
1753 (Q_uppercase): Likewise.
1754 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1755 and `->uppercase' in UTF-2000.
1756 (complex_vars_of_casetab): Assign attribute name `downcase' to
1757 downcase and CANON table of Vstandard_case_table in UTF-2000;
1758 assign attribute name `flippedcase' to upcase and EQV table of
1759 Vstandard_case_table in UTF-2000.
1761 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1763 * text-coding.c (decode_add_er_char): Support isolated-chars.
1764 (char_encode_as_entity_reference): Likewise.
1766 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1768 * emacs.c (Vutf_2000_lisp_directory): New variable.
1769 (Vconfigure_utf_2000_lisp_directory): Likewise.
1770 (complex_vars_of_emacs): Add new variable
1771 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1773 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1775 * char-ucs.h (DECODE_CHAR): Delete special code for
1776 `chinese-big5-1' and `chinese-big5-2'.
1778 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1779 (Qbig5_2): Likewise.
1780 (decode_defined_char): Support CONVERSION_BIG5_1 and
1782 (decode_builtin_char): Likewise.
1783 (charset_code_point): Likewise.
1784 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1785 'conversion in UTF-2000.
1786 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1787 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1788 `chinese-big5-2' as children of `chinese-big5'.
1790 * char-ucs.h (CONVERSION_BIG5_1): New macro.
1791 (CONVERSION_BIG5_2): New macro.
1793 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1795 * text-coding.c (char_encode_big5): Support entity-reference.
1797 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1799 * text-coding.c (char_encode_as_entity_reference): New function.
1800 (char_encode_utf8): Use `char_encode_as_entity_reference'.
1802 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1804 * text-coding.c (decode_coding_big5): Support entity-reference
1807 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1809 * text-coding.c (allocate_coding_system): Initialize initial
1810 charsets for CODESYS_UTF8.
1811 (Fmake_coding_system): Accept charset-g0, charset-g1 and
1812 charset-g2 for CODESYS_UTF8.
1813 (decode_coding_utf8): Use charset-g0.
1814 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1815 to force variants to map to UCS.
1817 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1819 * text-coding.c (Qutf_8_mcs): New variable.
1820 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1821 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1822 instead of `utf-8' in UTF-2000.
1824 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1826 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1827 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1828 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1829 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1830 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1831 CONVERSION_96x96x96x96 are introduced.
1832 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1833 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1834 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1836 * char-ucs.h (CONVERSION_94): New macro.
1837 (CONVERSION_96): New macro.
1838 (CONVERSION_94x94): New macro.
1839 (CONVERSION_96x96): New macro.
1840 (CONVERSION_94x94x94): New macro.
1841 (CONVERSION_96x96x96): New macro.
1842 (CONVERSION_94x94x94x60): New macro.
1843 (CONVERSION_94x94x94x94): New macro.
1844 (CONVERSION_96x96x96x96): New macro.
1846 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1848 * chartab.c (Vcharacter_variant_table): Deleted.
1849 (Fchar_variants): Use character-attribute `->ucs-variants' instead
1850 of `Vcharacter_variant_table'.
1851 (Fput_char_attribute): Likewise.
1852 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1853 (complex_vars_of_chartab): Likewise.
1855 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1857 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1859 * fns.c (Qideographic_structure): New variable.
1860 (Qkeyword_char): New variable.
1861 (ids_format_unit): New function.
1862 (Fideographic_structure_to_ids): New function.
1863 (syms_of_fns): Add new symbols `ideographic-structure' and
1864 `:char'; add new builtin function `ideographic-structure-to-ids'.
1866 * data.c (Fchar_ref_p): New function.
1867 (syms_of_data): Add new builtin function `char-ref-p'.
1869 * chartab.h: Add an EXFUN for `Ffind_char'.
1871 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1873 * text-coding.c (Vcharacter_composition_table): Deleted.
1874 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1877 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1879 (Vcharacter_composition_table): Deleted.
1880 (Fget_composite_char): Use the implementation for external-DB
1881 support in every UTF-2000.
1882 (Fput_char_attribute): Likewise.
1883 (char_attribute_system_db_file): Don't define if external-DB
1884 feature is not available.
1885 (Fsave_char_attribute_table): Likewise.
1886 (Fmount_char_attribute_table): Likewise.
1887 (Fclose_char_attribute_table): Likewise.
1888 (Freset_char_attribute_table): Likewise.
1889 (Fload_char_attribute_table): Likewise.
1890 (syms_of_chartab): Don't define `save-char-attribute-table',
1891 `mount-char-attribute-table', `reset-char-attribute-table',
1892 `close-char-attribute-table' and `load-char-attribute-table' if
1893 external-DB feature is not available.
1894 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1896 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1898 * text-coding.c (Qcomposition): Add extern if external-DB feature
1900 (Vcharacter_composition_table): Don't add extern if external-DB
1901 feature is supported.
1902 (COMPOSE_ADD_CHAR): Modify for new data-representation of
1903 character composition rule if external-DB feature is supported.
1905 * chartab.c (Vcharacter_composition_table): Don't define if
1906 external-DB feature is supported.
1907 (Qcomposition): New variable.
1908 (Fget_composite_char): New implementation for external-DB support.
1909 (Fput_char_attribute): Use `composition' property of each
1910 character instead of `Vcharacter_composition_table' to store
1911 character-composition rules if external-DB feature is supported.
1912 (syms_of_chartab): Add new symbol `composition'.
1913 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1914 external-DB feature is supported.
1916 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1918 * chartab.c (Vchar_db_stingy_mode): New variable.
1919 (load_char_attribute_maybe): Close database if
1920 Vchar_db_stingy_mode is not NIL.
1921 (Fload_char_attribute_table_map_function): Use
1922 `get_char_id_table_0' instead of `get_char_id_table'.
1923 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1925 * chartab.h (get_char_id_table_0): New inline function.
1926 (get_char_id_table): Use `get_char_id_table_0'.
1928 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1930 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1931 and `COMPOSE_ADD_CHAR'.
1932 (decode_coding_iso2022): Use `decode_flush_er_chars'.
1934 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1936 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1937 instead of `DECODE_ADD_UCS_CHAR'.
1938 (COMPOSE_ADD_CHAR): Likewise.
1940 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1942 * text-coding.c (decode_flush_er_chars): New inline function.
1943 (decode_add_er_char): New function.
1944 (decode_coding_utf8): Use `decode_flush_er_chars' and
1945 `decode_add_er_char'.
1947 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
1949 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1950 done before `decode_output_utf8_partial_char'.
1952 * mule-charset.c (complex_vars_of_mule_charset): Specify
1953 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1954 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1956 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958 * mule-charset.c (decode_defined_char): New function; search
1960 (decode_builtin_char): Don't search mother if
1961 XCHARSET_MAX_CODE(charset) == 0.
1962 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1963 == 0 even if code >= XCHARSET_MAX_CODE(charset).
1964 (Fdecode_char): Use `decode_defined_char' instead of
1965 `DECODE_DEFINED_CHAR'.
1966 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1967 mother of `Vcharset_ucs_jis'.
1969 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1970 instead of `DECODE_DEFINED_CHAR'.
1972 * char-ucs.h (decode_defined_char): Renamed from
1973 `DECODE_DEFINED_CHAR'; changed to normal function.
1974 (DECODE_CHAR): Use `decode_defined_char' instead of
1975 `DECODE_DEFINED_CHAR'.
1977 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1979 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1981 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1983 * text-coding.c (Vcoded_charset_entity_reference_alist): New
1985 (Quse_entity_reference): New variable.
1989 (coding_system_description): Add description for
1990 `ccs_priority_list'.
1991 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1992 (allocate_coding_system): Initialize `ccs_priority_list' in
1994 (Fmake_coding_system): Add description about
1995 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1997 (Fcoding_system_property): Accept `disable-composition' and
1998 `use-entity-reference' in UTF-2000.
1999 (struct decoding_stream): Add new member `er_counter' and `er_buf'
2001 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2002 (decode_coding_utf8): Decode entity-reference if
2003 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2004 (char_encode_utf8): Encode non-Unicode characters as
2005 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2007 (syms_of_file_coding): Add new symbols `use-entity-reference',
2009 (vars_of_file_coding): Add new variable
2010 `coded-charset-entity-reference-alist'.
2011 (complex_vars_of_file_coding): Declare `disable-composition' and
2012 `use-entity-reference' to be coding-system-properties in UTF-2000.
2014 * file-coding.h (struct Lisp_Coding_System): Add new member
2015 `use_entity_reference' and `ccs_priority_list'.
2016 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2017 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2018 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2020 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2022 * chartab.c (save_uint8_byte_table): Don't clear the table.
2023 (save_uint16_byte_table): Likewise.
2024 (save_byte_table): Likewise.
2025 (Fmount_char_attribute_table): New function.
2026 (syms_of_chartab): Add new builtin function
2027 `mount-char-attribute-table'.
2029 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2031 * mule-charset.c (Fsave_charset_mapping_table): Open database as
2033 (load_char_decoding_entry_maybe): Open database as read-only mode.
2035 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2036 open database as "w+" mode.
2037 (load_char_attribute_maybe): Open database as read-only mode.
2038 (Fload_char_attribute_table): Likewise.
2040 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2042 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2043 (char_table_description): Delete member `db_file'.
2044 (Fmake_char_table): Don't refer `ct->db_file'.
2045 (Fcopy_char_table): Likewise.
2046 (Fsave_char_attribute_table): Likewise.
2047 (Fclose_char_attribute_table): Likewise.
2048 (Freset_char_attribute_table): Likewise.
2049 (load_char_attribute_maybe): Likewise.
2050 (Fload_char_attribute_table): Likewise.
2052 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2054 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2056 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2057 (Fsave_char_attribute_table): Don't check `ct->db_file' if
2059 (load_char_attribute_maybe): Likewise.
2060 (Fload_char_attribute_table): Likewise.
2062 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2064 * chartab.c (Fclose_char_attribute_table): Set Qnil on
2065 `ct->db_file' unconditionally.
2067 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2069 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2071 (char_table_description): Add description for `db_file' and `db'
2073 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2075 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2076 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2077 (Fclose_char_attribute_table): New function.
2078 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2079 (load_char_attribute_maybe): Change interface; use `cit->db_file'
2081 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2082 (syms_of_chartab): Add new builtin function
2083 `Fclose_char_attribute_table'.
2085 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2087 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2089 (load_char_attribute_maybe): Change interface.
2090 (get_char_id_table): Modify for `load_char_attribute_maybe'.
2092 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2094 * database.h: Add an EXFUN for `Fdatabase_live_p'.
2096 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2098 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2099 instead of `DECODE_CHAR' for mother; don't use special code for
2100 chinese-big5 to use code space of chinese-big5-1 and
2102 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2103 `MAX_CHAR_BIG5_CDP' for chinese-big5.
2105 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2106 (MAX_CHAR_BIG5_CDP): Revival.
2108 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2111 the XLFD registry-encoding name of `chinese-big5'.
2113 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2115 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2116 (Qchinese_big5_cdp): Deleted.
2117 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2118 (complex_vars_of_mule_charset): Delete coded-charset
2121 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2122 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2123 `CHARSET_ID_OFFSET - n' for private CCS.
2124 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2125 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2126 of `MIN_LEADING_BYTE'.
2127 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2128 `(CHARSET_ID_OFFSET - 97)'.
2129 (MIN_CHAR_BIG5_CDP): Deleted.
2130 (MAX_CHAR_BIG5_CDP): Deleted.
2132 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2134 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2136 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2138 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2139 (vars_of_mule): Add new variable `utf-2000-version' [moved from
2142 * chartab.c (Vutf_2000_version): Moved to mule.c.
2143 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2145 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2147 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2148 when HAVE_CHISE_CLIENT is not defined.
2150 * mule.c (vars_of_mule): Provide feature `chise' when
2151 HAVE_CHISE_CLIENT is defined.
2153 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2155 * config.h.in (UTF2000): Add comment.
2156 (HAVE_CHISE_CLIENT): New macro.
2158 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2160 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2162 (Fput_char_attribute): Likewise.
2163 (char_attribute_system_db_file): Encode file-name of attribute.
2164 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2167 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2169 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2170 (Fsave_charset_mapping_table): Use
2171 `char_attribute_system_db_file'.
2172 (load_char_decoding_entry_maybe): Likewise.
2174 * chartab.h (Qsystem_char_id): New external variable.
2175 (char_attribute_system_db_file): New prototype.
2177 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2178 (char_attribute_system_db_file): New function.
2179 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2180 (Freset_char_attribute_table): Likewise.
2181 (load_char_attribute_maybe): Likewise.
2182 (Fload_char_attribute_table): Likewise.
2183 (syms_of_chartab): Add new symbol `system-char-id'.
2185 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2187 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2188 `XCHARSET_GRAPHIC(ccs)'.
2190 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2192 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2194 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2196 * chartab.c (Q_ucs_variants): New variable.
2197 (syms_of_chartab): Add new symbol `->ucs-variants'.
2198 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2199 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2200 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2202 * mule-charset.c (load_char_decoding_entry_maybe): New function.
2204 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2205 `HAVE_DATABASE' is defined.
2206 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2207 `HAVE_DATABASE' is defined.
2209 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2211 * chartab.c (Fsave_char_attribute_table): Don't clear internal
2213 (Freset_char_attribute_table): New function.
2214 (syms_of_chartab): Add new builtin function
2215 `reset-char-attribute-table'.
2217 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2219 * chartab.c (load_char_attribute_maybe): Don't make directories.
2221 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2223 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2225 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2228 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2230 * mule-charset.c (Fsave_charset_mapping_table): Use
2231 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2233 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2234 instead of `XCHARSET_CHARS'.
2236 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2238 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2239 (XCHARSET_BYTE_SIZE): Likewise.
2241 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2243 (XCHARSET_BYTE_SIZE): Likewise.
2245 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2247 * chartab.c (Fput_char_attribute): Use exec-directory instead of
2248 data-directory to store database.
2249 (Fsave_char_attribute_table): Likewise.
2250 (load_char_attribute_maybe): Likewise.
2251 (Fload_char_attribute_table): Likewise.
2253 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2255 * mule-charset.c (Fsave_charset_mapping_table): New function.
2256 (syms_of_mule_charset): Add new builtin function
2257 `save-charset-mapping-table'.
2259 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2261 * char-ucs.h (decoding_table_check_elements): Delete prototype.
2262 (get_ccs_octet_table): New inline function.
2263 (put_ccs_octet_table): Likewise.
2264 (decoding_table_put_char): Use `get_ccs_octet_table' and
2265 `put_ccs_octet_table'.
2266 (decoding_table_remove_char): Use `decoding_table_put_char'.
2267 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2269 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2270 into encoding_table.
2271 (make_charset): Use Qunbound instead Qnil as initial value of
2274 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2276 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2277 element is Qunloaded.
2278 (map_over_uint16_byte_table): Likewise.
2279 (map_over_byte_table): Likewise.
2280 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2281 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2282 database support, load encoding-table of the specified
2283 coded-charset if it is not loaded yet.
2284 (save_uint8_byte_table): New function of UTF-2000 with external
2286 (save_uint16_byte_table): Likewise.
2287 (save_byte_table): Likewise.
2288 (Fput_char_attribute): Don't store value into external database
2289 even if the external database feature is supported in UTF-2000;
2290 set `attribute' as name of char-table if the external database
2291 feature is supported.
2292 (Fsave_char_attribute_table): New function in UTF-2000.
2293 (syms_of_chartab): Add new builtin function
2294 `save-char-attribute-table' in UTF-2000.
2296 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2298 * chartab.c (char_attribute_table_to_put): New variable in
2300 (Qput_char_table_map_function): Likewise.
2301 (value_to_put): Likewise.
2302 (Fput_char_table_map_function): New function in UTF-2000.
2303 (put_char_table): Use `Fmap_char_attribute' for
2304 CHARTAB_RANGE_CHARSET in UTF-2000.
2305 (Fput_char_attribute): Store symbol instead of string in
2306 `XCHAR_TABLE_NAME (table)'.
2307 (load_char_attribute_maybe): Likewise.
2308 (syms_of_chartab): Add new symbol/function
2309 `put-char-table-map-function'.
2311 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2313 * database.h: Add new EXFUN for `Fmap_database'.
2315 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2316 (syms_of_database): Likewise.
2318 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2320 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2321 (XCHAR_TABLE_UNLOADED): Likewise.
2323 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2324 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2325 HAVE_DATABASE is defined.
2326 (char_attribute_table_to_load): New variable of UTF-2000 with
2327 external database support.
2328 (Qload_char_attribute_table_map_function): Likewise.
2329 (Fload_char_attribute_table_map_function): New function of
2330 UTF-2000 with external database support.
2331 (Fload_char_attribute_table): New function of UTF-2000.
2332 (Fmap_char_attribute): Call Fload_char_attribute_table if
2333 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2334 (syms_of_chartab): Add new symbol and function
2335 `load-char-attribute-table-map-function' in UTF-2000 with external
2336 database support; add new function `load-char-attribute-table' in
2339 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2341 * chartab.h (load_char_attribute_maybe): New prototype for
2342 UTF-2000 with DATABASE support.
2343 (get_char_id_table): Use `load_char_attribute_maybe' if
2344 HAVE_DATABASE is defined.
2346 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2347 with DATABASE support.
2349 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2351 * chartab.c (Fput_char_attribute): Use S-expression as key of
2354 * chartab.h (get_char_id_table): Use S-expression as key of
2357 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2359 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2360 if an element is not loaded, load the corresponding attributes
2361 from an external database.
2362 (map_over_uint16_byte_table): Likewise.
2363 (map_over_byte_table): Likewise.
2364 (map_char_table): Modify for `map_over_uint8_byte_table',
2365 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2366 element is not loaded, load the corresponding attributes from an
2368 (Fput_char_attribute): Change initial values to Qunloaded.
2370 * chartab.h (get_char_id_table): If a character attribute is not
2371 loaded and the attribute value is not found in an external
2372 database, store Qunbound as the attribute value.
2374 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2376 * chartab.c (BT_UINT8_unloaded): New macro.
2377 (UINT8_VALUE_P): Accept Qunloaded.
2378 (UINT8_ENCODE): Likewise.
2379 (UINT8_DECODE): Likewise.
2380 (BT_UINT16_unloaded): New macro.
2381 (UINT16_VALUE_P): Accept Qunloaded.
2382 (UINT16_ENCODE): Likewise.
2383 (UINT16_DECODE): Likewise.
2384 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2386 (mark_char_table): Mark `ct->name' in UTF-2000.
2387 (char_table_description): Add `name' in UTF-2000.
2388 (Fmake_char_table): Initialize `ct->name'.
2389 (Fcopy_char_table): Copy `ct->name'.
2390 (Fput_char_attribute): Store value into an external database if
2391 HAVE_DATABASE is defined.
2393 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2395 (CHAR_TABLE_NAME): New macro in UTF-2000.
2396 (XCHAR_TABLE_NAME): New macro in UTF-2000.
2397 (get_char_id_table): Try to read an external database if Qunloaded
2398 is stored in a table.
2400 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2403 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2405 * database.h: Add EXFUN definitions for Fopen_database,
2406 Fput_database, Fget_database and Fclose_database.
2408 * data.c (Qunloaded): New variable in UTF-2000.
2410 * lisp.h (Qunloaded): New variable in UTF-2000.
2412 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2414 * mule-charset.c (put_char_ccs_code_point): Modify for
2415 `decoding_table_remove_char' and `decoding_table_put_char'.
2416 (remove_char_ccs): Modify for `decoding_table_remove_char'.
2418 * char-ucs.h (decoding_table_remove_char): Change arguments to
2419 hide decoding_table vector.
2420 (decoding_table_put_char): Likewise.
2422 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2424 * mule-charset.c (decoding_table_remove_char): Moved to
2426 (decoding_table_put_char): Likewise.
2428 * char-ucs.h (decoding_table_check_elements): New prototype [moved
2429 from mule-charset.c].
2430 (decoding_table_remove_char): New inline function [moved from
2432 (decoding_table_put_char): Likewise.
2434 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2436 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2439 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2441 * mule-charset.c (decode_builtin_char): Support mother charsets.
2443 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2445 * mule-charset.c (Q94x94x60): New variable.
2446 (charset_code_point): Support conversion `94x94x60'.
2447 (Fmake_charset): Likewise.
2448 (syms_of_mule_charset): Add new symbol `94x94x60'.
2450 * char-ucs.h (CONVERSION_94x94x60): New macro.
2452 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2454 * mule-charset.c (charset_code_point): Unify code about
2457 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
2459 * mule-charset.c (charset_code_point): Merge code about builtin
2460 characters into code about mother charsets; don't use
2461 `range_charset_code_point'.
2462 (range_charset_code_point): Deleted.
2464 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2466 * mule-charset.c (Qcode_offset): New variable.
2467 (Fmake_charset): Use `XUINT' to get value of `min-code' and
2468 `max-code'; accept new property `code-offset'.
2469 (syms_of_mule_charset): Add new symbol `code-offset'.
2471 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2473 * mule-charset.c (range_charset_code_point): Fixed.
2475 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2477 * mule-charset.c (decode_builtin_char): Change semantics of
2478 code-offset of coded-charset.
2479 (charset_code_point): Likewise.
2480 (range_charset_code_point): Likewise.
2481 (complex_vars_of_mule_charset): Modify for the change.
2483 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2485 * mule-charset.c (Fencode_char): Reverse arguments.
2487 * mule-charset.c (charset_code_point): Fixed.
2489 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2491 * mule-charset.c (Vcharset_mojikyo): Deleted.
2492 (Vcharset_mojikyo_2022_1): Deleted.
2493 (Vcharset_mojikyo_pj_{1..21}): Deleted.
2494 (Qmin_code): New variable in UTF-2000.
2495 (Qmax_code): Likewise.
2496 (Qmother): Likewise.
2497 (Qconversion): Likewise.
2499 (Qmojikyo): Deleted.
2500 (Qmojikyo_2022_1): Deleted.
2501 (Qmojikyo_pj_{1..22}): Deleted.
2502 (mark_charset): Mark `cs->mother'.
2503 (charset_description): Add description for `mother'.
2504 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2505 new arguments `mother' and `conversion'; use
2506 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2507 (charset_code_point): Moved from char-ucs.h; support `mother'
2509 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2510 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2511 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2512 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2513 allow 2 as the value of `graphic' in UTF-2000; add new properties
2514 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2515 require `final' in UTF-2000; modify for `make_charset'.
2516 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2517 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2518 (Fcharset_property): Support `mother', `min-code' and `max-code'.
2519 (Fencode_char): New function.
2520 (syms_of_mule_charset): Add new builtin function `encode-char' in
2521 UTF-2000; add new symbols `min-code', `max-code', `mother',
2522 `conversion' and `94x60'; delete symbols `mojikyo',
2523 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2524 (complex_vars_of_mule_charset): Modify for `make_charset' change;
2525 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2526 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2528 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2529 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2531 * char-ucs.h (Vcharset_mojikyo): Deleted.
2532 (Vcharset_mojikyo_2022_1): Deleted.
2533 (LEADING_BYTE_MOJIKYO): Deleted.
2534 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2535 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2536 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2537 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2538 add new member `mother'; add new member `conversion'.
2539 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2540 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2541 (CHARSET_MOTHER): New macro.
2542 (CHARSET_CONVERSION): New macro.
2543 (CONVERSION_IDENTICAL): New macro.
2544 (CONVERSION_94x60): New macro.
2545 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2546 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2547 (XCHARSET_MOTHER): New macro.
2548 (XCHARSET_CONVERSION): New macro.
2549 (MIN_CHAR_MOJIKYO): Deleted.
2550 (MAX_CHAR_MOJIKYO): Deleted.
2551 (DECODE_MOJIKYO_2022): Deleted.
2552 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2553 (charset_code_point): Changed to non-inline function.
2554 (encode_char_1): Use `charset_code_point'.
2555 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2557 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2559 * lread.c (read_compiled_function): Fix prototype.
2560 (read_vector): Likewise.
2562 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564 * lrecord.h (struct lrecord_header): Delete `older'.
2565 (set_lheader_implementation): Delete code for `older'.
2566 (set_lheader_older_implementation): Deleted.
2567 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2568 (OLDER_RECORD_P): Deleted.
2569 (OLDER_RECORD_HEADER_P): Deleted.
2570 (alloc_older_lcrecord): Deleted.
2571 (alloc_older_lcrecord_type): Deleted.
2573 * alloc.c (all_older_lcrecords): Deleted.
2574 (alloc_older_lcrecord): Deleted.
2575 (disksave_object_finalization_1): Delete code for older objects.
2576 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2577 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2579 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2581 * mule-charset.c (decoding_table_put_char): Use `make_vector'
2582 instead of `make_older_vector'.
2583 (put_char_ccs_code_point): Likewise.
2584 (mark_charset): Mark `cs->decoding_table'.
2585 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2587 * lisp.h (make_older_vector): Deleted.
2588 (make_vector_newer): Deleted.
2590 * config.h.in (HAVE_GGC): Deleted.
2592 * alloc.c (make_older_vector): Deleted.
2593 (make_vector_newer_1): Deleted.
2594 (make_vector_newer): Deleted.
2596 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2598 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2599 (Qideograph_daikanwa_2): New variable.
2600 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2601 (complex_vars_of_mule_charset): Add new coded-charset
2602 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2603 `LEADING_BYTE_DAIKANWA'.
2605 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2606 (LEADING_BYTE_DAIKANWA_1): New macro.
2607 (LEADING_BYTE_DAIKANWA_2): New macro.
2608 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2610 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612 * mule-charset.c (complex_vars_of_mule_charset): Change
2613 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2614 the second revised version.
2616 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2618 * mule-charset.c (Vcharset_ucs_smp): New variable.
2619 (Vcharset_ucs_sip): New variable.
2620 (Qucs_smp): New variable.
2621 (Qucs_sip): New variable.
2622 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2623 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2624 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2625 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2626 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2627 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2629 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2630 (LEADING_BYTE_UCS_SIP): New macro.
2631 (MIN_CHAR_SMP): New macro.
2632 (MAX_CHAR_SMP): New macro.
2633 (MIN_CHAR_SIP): New macro.
2634 (MAX_CHAR_SIP): New macro.
2636 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
2638 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2641 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2643 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2644 value; don't store value into `encoding_table' of `Lisp_Charset'.
2645 (mark_charset): `encoding_table' was deleted.
2646 (charset_description): Likewise.
2647 (make_charset): Likewise.
2648 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2649 `put_char_ccs_code_point'.
2651 * chartab.h (Fput_char_attribute): New EXFUN.
2653 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2654 is unified with normal symbol space.
2655 (Fget_char_attribute): Likewise.
2656 (Fput_char_attribute): Likewise; behavior of
2657 `put_char_ccs_code_point' is changed.
2659 * char-ucs.h: Include "elhash.h".
2660 (Vchar_attribute_hash_table): New external variable.
2661 (struct Lisp_Charset): Delete `encoding_table'.
2662 (CHARSET_ENCODING_TABLE): New implementation; refer
2663 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2666 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2668 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2671 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2673 * text-coding.c (char_encode_big5): Prefer charset-g1 than
2676 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2678 * chartab.c (uint8_byte_table_description): New constant.
2679 (uint8-byte-table): Use `uint8_byte_table_description'.
2680 (uint16_byte_table_description): New constant.
2681 (uint16-byte-table): Use `uint16_byte_table_description'.
2683 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2685 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2686 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2688 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2690 * mule-charset.c (Vcharset_ucs_ks): New variable.
2691 (Qucs_ks): New variable.
2692 (syms_of_mule_charset): Add new symbol `ucs-ks'.
2693 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2695 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2697 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2699 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2700 (Fdecode_char): Likewise.
2702 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2704 (Fdefine_char): Modify for Fdecode_char.
2705 (Ffind_char): Likewise.
2707 * mule-charset.c (Fdecode_char): Add new optional argument
2709 (Fdecode_builtin_char): Modify for `Fdecode_char'.
2711 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2714 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2715 (allocate_coding_system): Initialize initial-charsets of
2716 CODESYS_BIG5 in XEmacs UTF-2000.
2717 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2718 CODESYS_BIG5 in XEmacs UTF-2000.
2719 (decode_coding_big5): Use initial-charset-g0 and -g1 of
2720 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2722 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2724 (Qideograph_hanziku_{1 .. 12}): Likewise.
2725 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2727 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2728 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2729 `ideograph-hanziku-{1 .. 12}'.
2731 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2732 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2733 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2734 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2735 (DECODE_DEFINED_CHAR): New inline function.
2736 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2738 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740 * mule-charset.c (Vcharset_china3_jef): Renamed from
2741 `Vcharset_japanese_jef_china3'.
2742 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2743 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2744 `{MIN|MAX}_CHAR_JEF_CHINA3'..
2745 (syms_of_mule_charset): Rename `china3-jef' from
2746 `japanese-jef-china3'.
2747 (complex_vars_of_mule_charset): Likewise; rename
2748 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2750 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2751 `LEADING_BYTE_JEF_CHINA3'.
2752 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2753 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2755 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2757 * mule-charset.c (encode_builtin_char_1): Comment out special code
2758 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2760 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2761 (MAX_CHAR_MOJIKYO_0): Comment out.
2762 (MIN_CHAR_CBETA): Changed to 0x00E20000.
2763 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2764 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2765 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2767 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2769 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2770 (Qideograph_cbeta): New variable.
2771 (encode_builtin_char_1): Comment out special code for
2772 coded-charset `mojikyo' and `japanese-jef-china3'.
2773 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2774 (complex_vars_of_mule_charset): Add new coded-charset
2777 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2778 (MIN_CHAR_CBETA): New macro.
2779 (MAX_CHAR_CBETA): New macro.
2781 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2783 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2784 (LEADING_BYTE_JEF_CHINA3): New macro.
2785 (MIN_CHAR_JEF_CHINA3): New macro.
2786 (MAX_CHAR_JEF_CHINA3): Likewise.
2787 (DECODE_CHAR): Fixed.
2789 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2791 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2792 (Qjapanese_jef_china3): New variable.
2793 (encode_builtin_char_1): Support `japanese-jef-china3'.
2794 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2795 (complex_vars_of_mule_charset): Add new coded-charset
2796 `japanese-jef-china3'.
2798 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2800 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2801 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2802 94^4, 96^3, 96^4, 128^n and 256^n set.
2803 (put_char_table): Use `XCHARSET_CELL_RANGE'.
2804 (map_char_table): Likewise.
2806 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2808 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2811 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2813 * chartab.h (get_char_id_table): New inline function.
2815 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2818 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2820 * chartab.h (decode_char_table_range): New prototype in XEmacs
2822 (put_char_id_table): New inline function in XEmacs UTF-2000.
2824 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2826 (decode_char_table_range): Delete static declaration in XEmacs
2829 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2831 * chartab.c (put_char_id_table): Use `put_char_table'.
2833 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2835 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2836 (map_over_uint16_byte_table): Likewise.
2837 (map_over_byte_table): Likewise.
2838 (map_char_table): Modify for `map_over_uint8_byte_table',
2839 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2842 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2844 * chartab.c (struct map_char_table_for_charset_arg): New
2846 (map_char_table_for_charset_fun): New function.
2847 (map_char_table): Use `map_char_table' for encoding_table of
2850 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2852 * chartab.c (map_char_table): Check a character is found in
2853 range->charset instead of non default value is defined in
2854 char-table when range is CHARTAB_RANGE_ROW.
2856 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2858 * chartab.c (map_char_id_table): Deleted.
2859 (Fmap_char_attribute): Use `map_char_table' instead of
2860 `map_char_id_table'.
2862 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2864 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2866 (update_syntax_table): Deleted in XEmacs UTF-2000.
2868 * syntax.c (find_defun_start): Use `syntax_table' instead of
2869 `mirror_syntax_table' in XEmacs UTF-2000.
2870 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2872 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2874 (Fmatching_paren): Likewise.
2875 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2877 (find_start_of_comment): Likewise.
2878 (find_end_of_comment): Likewise.
2879 (Fforward_comment): Likewise.
2880 (scan_lists): Likewise.
2881 (char_quoted): Likewise.
2882 (Fbackward_prefix_chars): Likewise.
2883 (scan_sexps_forward): Likewise.
2884 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2885 (update_syntax_table): Likewise.
2887 * search.c (skip_chars): Use `syntax_table' instead of
2888 `mirror_syntax_table' in XEmacs UTF-2000.
2889 (wordify): Likewise.
2890 (Freplace_match): Likewise.
2892 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2893 `mirror_syntax_table' in XEmacs UTF-2000.
2894 (WORDCHAR_P_UNSAFE): Likewise.
2895 (re_match_2_internal): Likewise.
2897 * font-lock.c (find_context): Use `buf->syntax_table' instead of
2898 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2900 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2901 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2903 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2906 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2908 (print_char_table): Print `default_value' in XEmacs UTF-2000.
2909 (char_table_description): Delete `mirror_table' in XEmacs
2911 (fill_char_table): Don't call `update_syntax_table' in XEmacs
2913 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2914 (Fcopy_char_table): Likewise.
2915 (put_char_table): Don't call `update_syntax_table' in XEmacs
2918 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2919 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2920 (casify_region_internal): Likewise.
2922 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2924 * buffer.c (common_init_complex_vars_of_buffer): Don't use
2925 `mirror_syntax_table' in XEmacs UTF-2000.
2927 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2928 `buf->mirror_syntax_table' in XEmacs UTF-2000.
2929 (Fexpand_abbrev): Likewise.
2931 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2933 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2935 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2937 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2938 (map_over_uint16_byte_table): Likewise.
2939 (map_over_byte_table): Likewise.
2940 (get_char_id_table): Refer `cit->default_value'.
2941 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2942 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2943 of character-id ranges.
2944 (mark_char_table): Mark `ct->default_value'.
2945 (char_table_description): Add `default_value'.
2946 (fill_char_table): Use `default_value'.
2947 (decode_char_table_range): Decode `nil' as
2948 `CHARTAB_RANGE_DEFAULT'.
2949 (get_char_id_table): Refer `cit->default_value'.
2950 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2951 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2952 temporary hack; check value of char-table is bound or not.
2953 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2955 * chartab.h (struct Lisp_Char_Table): Add new member
2956 `default_value' in XEmacs UTF-2000.
2957 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2958 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2961 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2963 * chartab.h (Lisp_Char_ID_Table): Deleted.
2965 * chartab.c (char_table_description): Fix typo.
2966 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2967 `Lisp_Char_ID_Table'.
2969 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2971 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2974 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2977 * chartab.h (XCHAR_ID_TABLE): Deleted.
2978 (XSETCHAR_ID_TABLE): Deleted.
2979 (CHAR_ID_TABLE_P): Deleted.
2981 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2983 (Fget_composite_char): Likewise.
2984 (put_char_table): Likewise.
2985 (add_char_attribute_alist_mapper): Fixed.
2986 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2988 (Fget_char_attribute): Likewise.
2989 (Fget_char_attribute): Likewise.
2990 (Fmap_char_attribute): Likewise.
2992 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2994 (encode_char_1): Likewise.
2996 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2998 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
3001 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3002 instead of `XCHAR_ID_TABLE'.
3003 (remove_char_ccs): Likewise.
3005 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3007 (Fget_composite_char): Likewise.
3008 (Fchar_variants): Likewise.
3009 (put_char_table): Likewise.
3010 (add_char_attribute_alist_mapper): Likewise.
3011 (Fchar_attribute_alist): Likewise.
3012 (Fget_char_attribute): Likewise.
3013 (Fput_char_attribute): Likewise.
3014 (Fmap_char_attribute): Likewise.
3015 (Fmap_char_attribute): Likewise.
3017 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3019 (encode_char_1): Likewise.
3021 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3023 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3024 `Lisp_Char_ID_Table'.
3025 (mark_char_id_table): Deleted.
3026 (print_char_id_table): Likewise.
3027 (char_id_table_equal): Likewise.
3028 (char_id_table_hash): Likewise.
3029 (char_id_table_description): Likewise.
3030 (char_id_table): Likewise.
3031 (make_char_id_table): Use `Fmake_char_table' and
3033 (get_char_id_table): Use `Lisp_Char_Table' instead of
3034 `Lisp_Char_ID_Table'.
3035 (put_char_id_table): Likewise.
3036 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3038 (Fremove_char_attribute): Likewise.
3039 (syms_of_chartab): Don't define type `char-id-table'.
3041 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3042 (char_id_table): Likewise.
3043 (GC_CHAR_ID_TABLE_P): Likewise.
3044 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3045 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3046 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3047 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3048 (get_char_id_table): Use `Lisp_Char_Table' instead of
3049 `Lisp_Char_ID_Table'.
3050 (put_char_id_table_0): Likewise.
3051 (put_char_id_table): Likewise.
3053 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
3055 * chartab.h: Lisp_Byte_Table related codes are moved from
3058 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3060 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
3062 * chartab.h: Don't include "chartab.h".
3063 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3064 (Lisp_Char_ID_Table): Likewise.
3065 (char_id_table): Likewise.
3066 (XCHAR_ID_TABLE): Likewise.
3067 (XSETCHAR_ID_TABLE): Likewise.
3068 (CHAR_ID_TABLE_P): Likewise.
3069 (GC_CHAR_ID_TABLE_P): Likewise.
3070 (get_char_id_table): Likewise.
3072 * char-ucs.h: Include "chartab.h".
3073 (struct Lisp_Char_ID_Table): Moved to chartab.h.
3074 (Lisp_Char_ID_Table): Likewise.
3075 (char_id_table): Likewise.
3076 (XCHAR_ID_TABLE): Likewise.
3077 (XSETCHAR_ID_TABLE): Likewise.
3078 (CHAR_ID_TABLE_P): Likewise.
3079 (GC_CHAR_ID_TABLE_P): Likewise.
3080 (get_char_id_table): Likewise.
3082 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
3084 * chartab.c (copy_uint8_byte_table): New function.
3085 (copy_uint16_byte_table): New function.
3086 (copy_byte_table): New function.
3087 (map_over_uint8_byte_table): Modify to avoid huge numbers of
3089 (map_over_uint16_byte_table): Likewise.
3090 (map_over_byte_table): Likewise.
3091 (get_byte_table): Move prototype to chartab.h.
3092 (put_byte_table): Likewise.
3093 (put_char_id_table_0): Moved to chartab.h.
3094 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3095 (char_table_entry_equal): Likewise.
3096 (char_table_entry_hash): Likewise.
3097 (char_table_entry_description): Likewise.
3098 (char_table_entry): Likewise.
3099 (make_char_table_entry): Likewise.
3100 (copy_char_table_entry): Likewise.
3101 (get_non_ascii_char_table_value): Likewise.
3102 (map_over_charset_ascii): Likewise.
3103 (map_over_charset_control_1): Likewise.
3104 (map_over_charset_row): Likewise.
3105 (map_over_other_charset): Likewise.
3106 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3107 (print_char_table): Likewise.
3108 (char_table_equal): Likewise.
3109 (char_table_hash): Likewise.
3110 (char_table_description): Likewise.
3111 (fill_char_table): Likewise.
3112 (Fcopy_char_table): Likewise.
3113 (get_char_table): Likewise.
3114 (Fget_range_char_table): Likewise.
3115 (put_char_table): Likewise.
3116 (map_char_table): Likewise.
3117 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3120 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3122 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3123 `Vauto_fill_chars' in XEmacs UTF-2000.
3125 * chartab.h (get_byte_table): New prototype [moved from
3127 (put_byte_table): Likewise [moved from chartab.c].
3128 (put_char_id_table_0): New inline function [moved from chartab.c].
3129 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3130 (Lisp_Char_Table_Entry): Likewise.
3131 (char_table_entry): Likewise.
3132 (XCHAR_TABLE_ENTRY): Likewise.
3133 (XSETCHAR_TABLE_ENTRY): Likewise.
3134 (CHAR_TABLE_ENTRYP): Likewise.
3135 (CHECK_CHAR_TABLE_ENTRY): Likewise.
3136 (NUM_ASCII_CHARS): Likewise.
3137 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3138 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3140 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142 * chartab.c (get_char_id_table): Change interface.
3143 (put_char_id_table_0): New function.
3144 (put_char_id_table): Change interface; new implementation.
3145 (Fget_composite_char): Modify for interface change of
3146 `get_char_id_table'.
3147 (Fchar_variants): Likewise.
3148 (add_char_attribute_alist_mapper): Likewise.
3149 (Fchar_attribute_alist): Likewise.
3150 (Fget_char_attribute): Likewise.
3151 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3152 as same as character as the first argument like `put-char-table';
3153 modify for interface change of `put_char_id_table'.
3154 (Fremove_char_attribute): Modify for interface change of
3155 `put_char_id_table'.
3157 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3159 * text-coding.c: Sync up with XEmacs 21.2.41.
3160 (COMPOSE_ADD_CHAR): Modify for interface change of
3161 `get_char_id_table'.
3163 * mule-charset.c (put_char_ccs_code_point): Modify for interface
3164 change of `put_char_id_table'.
3165 (remove_char_ccs): Likewise.
3167 * chartab.h (put_char_id_table): Change interface.
3169 * char-ucs.h (get_char_id_table): Change interface.
3170 (charset_code_point): Modify for interface change of
3171 `get_char_id_table'.
3172 (encode_char_1): Likewise.
3174 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3176 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3178 (map_over_uint16_byte_table): Likewise.
3179 (map_over_byte_table): Likewise.
3180 (map_char_id_table): Add new argument `range' like
3182 (Fmap_char_attribute): Add new argument `range' like
3185 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3187 * chartab.c (map_over_uint8_byte_table): Change interface of
3188 mapping function to use struct chartab_range instead of Emchar.
3189 (map_over_uint16_byte_table): Likewise.
3190 (map_over_byte_table): Likewise.
3191 (map_char_id_table): Likewise.
3192 (struct slow_map_char_id_table_arg): Deleted.
3193 (slow_map_char_id_table_fun): Deleted.
3194 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3195 function `slow_map_char_table_fun' instead of struct
3196 `slow_map_char_id_table_arg' and function
3197 `slow_map_char_id_table_fun'.
3199 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3201 * mule-charset.c: Move char-it-table related codes to chartab.c.
3202 (Vutf_2000_version): Moved to chartab.c.
3203 (Fdefine_char): Likewise.
3204 (Ffind_char): Likewise.
3205 (syms_of_mule_charset): Move types `uint8-byte-table',
3206 `uint16-byte-table', `byte-table' and `char-id-table' to
3207 chartab.c; move functions `char_attribute_list,
3208 `find_char_attribute_table, `char_attribute_alist,
3209 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3210 `map_char_attribute, `define_char, `find_char, `char_variants and
3211 `get_composite_char to chartab.c; move symbols `=>ucs',
3212 `->decomposition', `compat', `isolated', `initial', `medial',
3213 `final', `vertical', `noBreak', `fraction', `super', `sub',
3214 `circle', `square', `wide', `narrow', `small' and `font' to
3216 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3217 setting codes for `Vcharacter_composition_table' and
3218 `Vcharacter_variant_table' to chartab.c.
3219 (complex_vars_of_mule_charset): Move setting code for
3220 `Vchar_attribute_hash_table' to chartab.c.
3222 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3223 (make_char_id_table): New prototype.
3224 (put_char_id_table): Likewise.
3225 (Fget_char_attribute): Likewise.
3227 * chartab.c: Move char-id-table related code from mule-charset.c.
3228 (Vutf_2000_version): Moved from mule-charset.c.
3230 * char-ucs.h (Qucs): New external variable.
3231 (put_char_ccs_code_point): New prototype.
3232 (remove_char_ccs): Likewise.
3234 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
3236 * mule-charset.c (Vcharset_ucs_jis): New variable.
3237 (Qucs_jis): Likewise.
3238 (syms_of_mule_charset): Add new symbol `ucs-jis'.
3239 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3241 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3243 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3245 * mule-charset.c (map_over_uint8_byte_table): New function.
3246 (map_over_uint16_byte_table): Likewise.
3247 (map_over_byte_table): Likewise.
3248 (map_char_id_table): Likewise.
3249 (slow_map_char_id_table_fun): Likewise.
3250 (Fmap_char_attribute): Likewise.
3251 (syms_of_mule_charset): Add new function `map-char-attribute'.
3253 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3255 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3256 (syms_of_mule_charset): Add new function `find-char'.
3258 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3260 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3262 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3263 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3265 (complex_vars_of_mule_charset): Add new coded-charset
3266 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3267 `ideograph-gt-pj-*'.
3269 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3271 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3273 * mule-charset.c (encode_builtin_char_1): Purge codes about
3274 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3275 {MIN|MAX}_CHAR_HEBREW.
3276 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3277 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3279 * char-ucs.h (MIN_CHAR_GREEK): Purged.
3280 (MAX_CHAR_GREEK): Purged.
3281 (MIN_CHAR_CYRILLIC): Purged.
3282 (MAX_CHAR_CYRILLIC): Purged.
3283 (MIN_CHAR_HEBREW): Commented out.
3284 (MAX_CHAR_HEBREW): Likewise.
3286 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3288 * mule-charset.c (Qto_ucs): New variable.
3289 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3290 (Fdefine_char): Likewise.
3291 (syms_of_mule_charset): Add new symbol `=>ucs'.
3293 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3295 * mule-charset.c (Fdecode_char): Fixed.
3297 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3299 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3300 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3303 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3305 * mule-charset.c (Vcharset_ucs_big5): New variable.
3306 (Qucs_big5): Likewise.
3307 (syms_of_mule_charset): Add new symbol `ucs-big5'.
3308 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3310 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3312 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3314 * mule-charset.c (decode_builtin_char): Check Big5 code range
3315 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3317 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3319 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3320 (Qchinese_gb12345): Likewise.
3321 (Fdecode_builtin_char): Fixed.
3322 (syms_of_mule_charset): Add `chinese-gb12345'.
3323 (complex_vars_of_mule_charset): Add coded-charset
3326 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3327 (LEADING_BYTE_CHINESE_GB12345): New macro.
3329 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3331 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3332 and `latin-viscii-upper' for `latin-viscii'.
3334 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3336 * mule-charset.c (Fdecode_builtin_char): Comment out
3337 regularization code for ISO-IR GR representation.
3339 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3341 * mule-charset.c (decode_builtin_char): New function; renamed from
3342 `make_builtin_char'; return -1 instead of signal.
3343 (Fdecode_builtin_char): Use `decode_builtin_char'.
3345 * char-ucs.h (decode_builtin_char): New prototype; renamed from
3346 `make_builtin_char'.
3347 (DECODE_CHAR): Use `decode_builtin_char' instead of
3348 `make_builtin_char'; use mapping table of `chinese-big5' for
3349 `chinese-big5-{1,2}'.
3351 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3353 * text-coding.c (char_encode_big5): New function.
3354 (char_finish_big5): Likewise.
3355 (reset_encoding_stream): Use `char_encode_big5' and
3356 `char_finish_big5' for CODESYS_BIG5.
3357 (mule_encode): Don't use `encode_coding_big5'.
3358 (encode_coding_big5): Deleted.
3360 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3362 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3363 0x81- in XEmacs UTF-2000.
3364 (detect_coding_big5): Likewise.
3366 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3368 * mule-charset.c (Fdefine_char): Don't use a CCS property to
3369 generate character-id if the CCS property does not have
3370 corresponding predefined character.
3371 (make_builtin_char): Return -1 if corresponding predefined
3372 character is not found.
3373 (Fdecode_char): Return nil if corresponding character is not
3375 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3376 don't map to builtin ucs space.
3378 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3380 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3381 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3383 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3385 * mule-charset.c (Vcharset_ideograph_gt): New variable.
3386 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3387 (Qideograph_gt): Likewise.
3388 (Qideograph_gt_pj_{1..11}): Likewise.
3389 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3390 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3391 `ideograph-gt-pj-11'.
3392 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3393 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3394 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3396 * char-ucs.h (LEADING_BYTE_GT): New macro.
3397 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3398 (MIN_CHAR_GT): Likewise.
3399 (MAX_CHAR_GT): Likewise.
3401 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3403 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3404 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3406 * doprnt.c (unsigned_int_converters): Add `c'.
3407 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3409 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3410 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3412 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3413 (MAX_CHAR_MOJIKYO_0): New macro.
3414 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3416 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3418 * mule-charset.c (Fdefine_char): Delete cemented out code.
3419 (encode_builtin_char_1): Modify for new allocation of builtin
3422 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3424 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3426 * mule-charset.c (Vcharset_ucs_cns): New variable.
3427 (Qucs_cns): New variable.
3428 (syms_of_mule_charset): Add new symbol `ucs-cns'.
3429 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3431 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3433 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3435 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
3437 * search.c (search_buffer): Make `charset_base_code' as
3438 character-id >> 6 to eliminate the corresponding last byte in
3439 UTF-8 representation [I'm not sure it is right thing].
3440 (boyer_moore): Likewise.
3442 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
3444 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3445 representation in MULE.
3447 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3449 * text-coding.c (Fmake_coding_system): Use
3450 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3451 `EXTERNAL_PROPERTY_LIST_LOOP'.
3453 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3455 * text-coding.c (decode_output_utf8_partial_char): New function.
3456 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3458 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3460 * text-coding.c (decode_coding_utf8): Output original byte
3461 sequence if it is broken; change order of conditions.
3463 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3466 * mb-multibyte.h (BYTE_ASCII_P):
3467 Use bit ops for char-signedness safety.
3468 (BYTE_C0_P): Use bit ops for char-signedness safety.
3469 (BYTE_C1_P): Use bit ops for char-signedness safety.
3471 * character.h: (XCHAR_OR_CHAR_INT):
3472 Always use inline function.
3473 Remove redundant type checking assert() - XINT will abort quite
3476 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3478 * text-coding.c: (Fencode_shift_jis_char):
3479 (Fencode_big5_char):
3480 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
3481 Replace 0 with '\0' when working with bytes.
3482 Replace initial "(" with "\(" in docstrings.
3484 (Fmake_coding_system):
3485 When type is ccl and value is vector, register it with a proper
3486 symbol. And checks whether the given ccl program is valid.
3487 (mule_decode): When calling ccl_driver, if src indicates
3488 NULL pointer, set an empty string instead.
3489 (mule_encode): Likewise.
3492 (detect_coding_sjis):
3493 (decode_coding_sjis):
3494 (detect_coding_big5):
3495 (decode_coding_big5):
3496 (detect_coding_ucs4):
3497 (decode_coding_ucs4):
3498 (detect_coding_utf8):
3499 (decode_coding_utf8):
3500 (detect_coding_iso2022):
3501 (decode_coding_iso2022):
3502 (decode_coding_no_conversion):
3504 Make all detecting and decoding functions take an Extbyte * arg.
3505 (text_encode_generic):
3506 (encode_coding_big5):
3507 (encode_coding_no_conversion):
3509 Make all encoding functions take a Bufbyte * arg.
3510 Use size_t instead of unsigned int for memory sizes.
3511 Only cast to unsigned char whenever dereferencing Extbyte *.
3513 (struct lrecord_description fcd_description_1): Use countof.
3514 (complex_vars_of_file_coding):
3515 Use countof instead of sizeof.
3516 Use CHECK_NATNUM instead of CHECK_INT.
3518 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3520 * mule-charset.c (Fget_char_attribute): Add new optional argument
3522 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3523 (remove_char_ccs): Likewise.
3525 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3527 * text-coding.c (char_encode_shift_jis): New implementation in
3529 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3532 * mule-charset.c (Vcharset_chinese_big5): New variable in
3534 (Qchinese_big5): New variable in UTF-2000.
3535 (BIG5_SAME_ROW): New macro in UTF-2000.
3536 (make_builtin_char): Use builtin characters of
3537 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3538 characters of `Vcharset_chinese_big5'.
3539 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3540 (complex_vars_of_mule_charset): Add new coded-charset
3541 `chinese-big5' in UTF-2000.
3543 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3544 (Vcharset_chinese_big5): New external variable declaration.
3545 (Vcharset_japanese_jisx0208_1990): Likewise.
3547 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3549 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3551 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3553 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3555 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3556 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3557 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3560 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3562 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3564 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3566 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3569 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3571 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3572 for `CHARSET_BY_ATTRIBUTES'.
3573 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3574 `CHARSET_BY_ATTRIBUTES'.
3576 * text-coding.c (struct decoding_stream): Rename member `CH' to
3578 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3579 (decode_coding_sjis): Likewise.
3580 (decode_coding_big5): Likewise.
3581 (decode_coding_ucs4): Likewise.
3582 (decode_coding_utf8): Likewise.
3583 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3584 `CHARSET_BY_ATTRIBUTES'.
3585 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3586 `str->counter'; decode 3, 4 bytes sets.
3587 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3589 (decode_coding_no_conversion): Use `str->cpos' instead of
3592 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3593 (Qmojikyo_2022_1): New variable.
3594 (make_charset): Don't use `CHARSET_TYPE_*'.
3595 (range_charset_code_point): Support coded-charset
3597 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3598 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3599 `CHARSET_BY_ATTRIBUTES'.
3600 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3601 `CHARSET_BY_ATTRIBUTES'.
3602 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3603 (complex_vars_of_mule_charset): Add new coded-charset
3606 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3607 interface; changed to inline function.
3609 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3610 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3611 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3612 (CHARSET_TYPE_94): Deleted.
3613 (CHARSET_TYPE_94X94): Deleted.
3614 (CHARSET_TYPE_96): Deleted.
3615 (CHARSET_TYPE_96X96): Deleted.
3616 (CHARSET_TYPE_128): Deleted.
3617 (CHARSET_TYPE_128X128): Deleted.
3618 (CHARSET_TYPE_256): Deleted.
3619 (CHARSET_TYPE_256X256): Deleted.
3620 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3622 (DECODE_MOJIKYO_2022): New inline function.
3623 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3624 `Vcharset_mojikyo_2022_1'.
3626 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3628 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3630 (put_byte_table): Likewise.
3631 (char_id_table_equal): Use `get_byte_table' [new implementation].
3633 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3635 * mule-charset.c: Include <limits.h> in UTF-2000.
3636 (BT_UINT8_MIN): New macro in UTF-2000.
3637 (BT_UINT8_MAX): New macro in UTF-2000.
3638 (BT_UINT8_t): New macro in UTF-2000.
3639 (BT_UINT8_nil): New macro in UTF-2000.
3640 (BT_UINT8_unbound): New macro in UTF-2000.
3641 (INT_UINT8_P): New inline function in UTF-2000.
3642 (UINT8_VALUE_P): New inline function in UTF-2000.
3643 (UINT8_ENCODE): New inline function in UTF-2000.
3644 (UINT8_DECODE): New inline function in UTF-2000.
3645 (mark_uint8_byte_table): New function in UTF-2000.
3646 (print_uint8_byte_table): New function in UTF-2000.
3647 (uint8_byte_table_equal): New function in UTF-2000.
3648 (uint8_byte_table_hash): New function in UTF-2000.
3649 (make_uint8_byte_table): New function in UTF-2000.
3650 (uint8_byte_table_same_value_p): New function in UTF-2000.
3651 (BT_UINT16_MIN): New macro in UTF-2000.
3652 (BT_UINT16_MAX): New macro in UTF-2000.
3653 (BT_UINT16_t): New macro in UTF-2000.
3654 (BT_UINT16_nil): New macro in UTF-2000.
3655 (BT_UINT16_unbound): New macro in UTF-2000.
3656 (INT_UINT16_P): New inline function in UTF-2000.
3657 (UINT16_VALUE_P): New inline function in UTF-2000.
3658 (UINT16_ENCODE): New inline function in UTF-2000.
3659 (UINT16_DECODE): New inline function in UTF-2000.
3660 (UINT8_TO_UINT16): New inline function in UTF-2000.
3661 (mark_uint16_byte_table): New function in UTF-2000.
3662 (print_uint16_byte_table): New function in UTF-2000.
3663 (uint16_byte_table_equal): New function in UTF-2000.
3664 (uint16_byte_table_hash): New function in UTF-2000.
3665 (make_uint16_byte_table): New function in UTF-2000.
3666 (uint16_byte_table_same_value_p): New function in UTF-2000.
3667 (print_byte_table): New function in UTF-2000.
3668 (byte-table): Use `print_byte_table' as printer.
3669 (make_byte_table): Delete second argument `older'.
3670 (byte_table_same_value_p): New function in UTF-2000.
3671 (copy_byte_table): Deleted.
3672 (get_byte_table): New function in UTF-2000.
3673 (put_byte_table): New function in UTF-2000.
3674 (print_char_id_table): New function in UTF-2000.
3675 (char-id-table): Use `print_char_id_table' as printer.
3676 (make_char_id_table): Delete second argument `older'.
3677 (get_char_id_table): Use `get_byte_table [new implementation].
3678 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3680 (Ffind_char_attribute_table): New function in UTF-2000.
3681 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3682 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3683 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3684 (syms_of_mule_charset): Add new function
3685 `find-char-attribute-table' in UTF-2000.
3687 * lrecord.h (enum lrecord_type): Add
3688 `lrecord_type_uint16_byte_table' and
3689 `lrecord_type_uint8_byte_table'.
3691 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3692 (Lisp_Uint8_Byte_Table): New type.
3693 (XUINT8_BYTE_TABLE): New macro.
3694 (XSETUINT8_BYTE_TABLE): New macro.
3695 (UINT8_BYTE_TABLE_P): New macro.
3696 (GC_UINT8_BYTE_TABLE_P): New macro.
3697 (struct Lisp_Uint16_Byte_Table): New structure.
3698 (Lisp_Uint16_Byte_Table): New type.
3699 (XUINT16_BYTE_TABLE): New macro.
3700 (XSETUINT16_BYTE_TABLE): New macro.
3701 (UINT16_BYTE_TABLE_P): New macro.
3702 (GC_UINT16_BYTE_TABLE_P): New macro.
3704 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3706 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3707 (Vcharacter_ideographic_strokes_table): Deleted.
3708 (Vcharacter_total_strokes_table): Deleted.
3709 (Vcharacter_morohashi_daikanwa_table): Deleted.
3710 (Vcharacter_decomposition_table): Deleted.
3711 (Qname): Deleted because it is duplicated.
3712 (Qideographic_radical): Deleted.
3713 (Qideographic_strokes): Deleted.
3714 (Qtotal_strokes): Deleted.
3715 (Qmorohashi_daikanwa): Deleted.
3716 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3717 `ideographic-radical', `ideographic-strokes', `total-strokes',
3718 `morohashi-daikanwa' and `->decomposition'.
3719 (Fget_char_attribute): Likewise.
3720 (Fput_char_attribute): Likewise; use `make-vector' instead of
3721 `make_older_vector' for `->decomposition' value.
3722 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3723 `ideograph-daikanwa'.
3724 (syms_of_mule_charset): Delete builtin symbols `name',
3725 `ideographic-radical', `ideographic-strokes', `total-strokes' and
3726 `morohashi-daikanwa'.
3727 (vars_of_mule_charset): Don't setup
3728 `Vcharacter_ideographic_radical_table',
3729 `Vcharacter_ideographic_strokes_table',
3730 `Vcharacter_total_strokes_table',
3731 `Vcharacter_morohashi_daikanwa_table' and
3732 `Vcharacter_decomposition_table'.
3734 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3736 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3737 `make_older_vector', `make_vector_newer_1' and
3738 `make_vector_newer'.
3740 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3741 `make_older_vector' and `make_vector_newer'.
3743 * config.h.in (HAVE_GGC): New macro.
3745 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3747 * mule-charset.c (struct char_attribute_list_closure): New
3748 structure in UTF-2000.
3749 (add_char_attribute_to_list_mapper): New function in UTF-2000.
3750 (Fchar_attribute_list): Likewise.
3751 (Fset_charset_mapping_table): Use `make_vector_newer'.
3752 (Fdecode_builtin_char): New function in UTF-2000.
3753 (syms_of_mule_charset): Add new function `char-attribute-list' and
3754 `decode-builtin-char' in UTF-2000.
3756 * lisp.h (make_vector_newer): New prototype.
3758 * alloc.c (make_vector_newer_1): New function.
3759 (make_vector_newer): New function.
3761 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3763 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3766 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3768 * mule-charset.c (Vchar_attribute_hash_table): New variable.
3769 (Vcharacter_attribute_table): Deleted.
3770 (Vcharacter_name_table): Deleted.
3771 (put_char_attribute): Deleted.
3772 (remove_char_attribute): Deleted.
3773 (struct char_attribute_alist_closure): New structure.
3774 (add_char_attribute_alist_mapper): New function.
3775 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3776 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3777 (Fget_char_attribute): Likewise.
3778 (Fput_char_attribute): Likewise.
3779 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3780 of `remove_char_attribute'.
3781 (Fdefine_char): Return character.
3782 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3783 and `Vcharacter_name_table'.
3784 (complex_vars_of_mule_charset): Likewise
3785 `Vchar_attribute_hash_table'.
3787 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3789 * character.h (CHARC_CHARSET): New macro.
3790 (CHARC_CHARSET_ID): New macro.
3791 (CHARC_CODE_POINT): New macro.
3792 (CHARC_COLUMNS): New macro.
3793 (CHARC_TO_CHAR): New inline function.
3794 (CHARC_EQ): New inline function.
3795 (CHARC_ASCII_EQ): New inline function.
3796 (CHARC_IS_SPACE): New inline function.
3797 (ASCII_TO_CHARC): New inline function.
3799 * char-ucs.h (encode_char_2): Deleted.
3800 (ENCODE_CHAR): Use `encode_char_1' again.
3801 (breakup_char_1): Likewise.
3802 (CHAR_TO_CHARC): New inline function.
3804 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3806 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3808 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3809 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3810 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3811 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3812 (create_string_text_block): Use `CHARC_ASCII_EQ' and
3814 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3816 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3818 (x_output_display_block): Use `CHARC_CHARSET' and
3821 * redisplay-tty.c (tty_output_display_block): Use
3823 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3825 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3827 * insdel.c (find_charsets_in_charc_string): Use
3829 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3830 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3831 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3832 (convert_charc_string_into_malloced_string): Likewise.
3834 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3836 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3837 instead of <Emchar_dynarr *> for buf; use
3838 `convert_bufbyte_string_into_charc_dynarr' instead of
3839 `convert_bufbyte_string_into_emchar_dynarr'; use
3840 `find_charsets_in_charc_string' instead of
3841 `find_charsets_in_emchar_string'.
3844 - Include "character.h".
3845 (struct rune): New member `cglyph'; delete member `chr'.
3847 * redisplay.c (redisplay_text_width_charc_string): New function;
3848 delete `redisplay_text_width_emchar_string'.
3849 (rtw_charc_dynarr): New variable; renamed from
3850 `rtw_emchar_dynarr'.
3851 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3852 `rtw_emchar_dynarr'; use
3853 `convert_bufbyte_string_into_charc_dynarr' instead of
3854 `convert_bufbyte_string_into_emchar_dynarr'; use
3855 `redisplay_text_width_charc_string' instead of
3856 `redisplay_text_width_emchar_string'.
3857 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3858 instead of `rtw_emchar_dynarr'; use
3859 `convert_bufbyte_string_into_charc_dynarr' instead of
3860 `convert_bufbyte_string_into_emchar_dynarr'.
3861 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3862 `redisplay_text_width_charc_string' instead of
3863 `redisplay_text_width_emchar_string'.
3864 (create_text_block): Modify for <struct rune> change.
3865 (generate_formatted_string_db): Likewise.
3866 (create_string_text_block): Likewise.
3867 (pixel_to_glyph_translation): Likewise.
3869 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3870 instead of <const Emchar *>.
3871 (x_text_width): Likewise.
3872 (x_output_display_block): Use <Charc_dynarr *> instead
3873 <Emchar_dynarr *>; modify for <structure rune> change.
3874 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3877 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3878 <const Emchar *>; use `charc_string_displayed_columns' instead of
3879 `emchar_string_displayed_columns'.
3880 (tty_output_display_block): Use <Charc_dynarr *> instead of
3881 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3882 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3883 (tty_output_charc_dynarr_dynarr): New variable; renamed from
3884 `tty_output_emchar_dynarr_dynarr'.
3885 (tty_output_charc_dynarr): New function; delete
3886 `tty_output_charc_dynarr'.
3888 * redisplay-output.c (compare_runes): Modify for `struct rune'.
3889 (redisplay_output_layout): Use <Charc_dynarr *> instead of
3890 <Emchar_dynarr *> for buf; use
3891 `convert_bufbyte_string_into_charc_dynarr' instead of
3892 `convert_bufbyte_string_into_emchar_dynarr'.
3894 * frame.c (title_string_charc_dynarr): New variable; renamed from
3895 `title_string_emchar_dynarr'.
3896 (generate_title_string): Use `title_string_charc_dynarr' instead
3897 of `title_string_emchar_dynarr'; use
3898 `convert_charc_string_into_malloced_string' instead of
3899 `convert_emchar_string_into_malloced_string'.
3900 (init_frame): Use `title_string_charc_dynarr' instead of
3901 `title_string_emchar_dynarr'.
3904 - Include "character.h".
3905 (struct console_methods): Use <const Charc *> instead of <const
3906 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3907 <Emchar_dynarr *> in output_string_method.
3909 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3912 * console-stream.c (stream_text_width): Use <const Charc *>
3913 instead of <const Emchar *>.
3915 * character.h (Charc_dynarr): New type.
3917 * char-ucs.h (structure Charc): New structure; define new type
3920 * char-lb.h (DECODE_CHAR): New inline function.
3921 (encode_char_1): New inline function.
3922 (ENCODE_CHAR): New macro.
3923 (structure Charc): New structure; define new type `Charc'.
3925 * char-1byte.h (Vcharset_control_1): New macro.
3926 (Vcharset_latin_iso8859_1): New macro.
3927 (DECODE_CHAR): New inline function.
3928 (encode_char_1): New inline function.
3929 (ENCODE_CHAR): New macro.
3930 (structure Charc): New structure; define new type `Charc'.
3932 * insdel.c (find_charsets_in_charc_string): New function; delete
3933 `find_charsets_in_emchar_string'.
3934 (charc_string_displayed_columns): New function; delete
3935 `emchar_string_displayed_columns'.
3936 (convert_bufbyte_string_into_charc_dynarr): New function; delete
3937 `convert_bufbyte_string_into_emchar_dynarr'.
3938 (convert_charc_string_into_bufbyte_dynarr): New function; delete
3939 `convert_charc_string_into_bufbyte_dynarr'.
3940 (convert_charc_string_into_malloced_string): New function; delete
3941 `convert_charc_string_into_malloced_string'.
3943 * buffer.h (find_charsets_in_charc_string): New prototype; delete
3944 `find_charsets_in_emchar_string'.
3945 (charc_string_displayed_columns): New prototype; delete
3946 `emchar_string_displayed_columns'.
3947 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3948 `convert_charc_string_into_bufbyte_dynarr'.
3949 (convert_charc_string_into_malloced_string): New prototype; delete
3950 `convert_charc_string_into_malloced_string'.
3952 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3954 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3956 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3958 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3960 * char-ucs.h: Use <short> for <Charset_ID>.
3962 * mule-charset.h, char-1byte.h: Use <unsigned char> for
3965 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3967 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3970 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3972 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3974 (Qmorohashi_daikanwa): New variable.
3975 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3976 for `morohashi-daikanwa' attribute.
3977 (Fget_char_attribute): Likewise.
3978 (Fput_char_attribute): Likewise.
3979 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3980 has the same value of `ideograph-daikanwa'.
3981 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3982 (vars_of_mule_charset): Setup
3983 `Vcharacter_morohashi_daikanwa_table'.
3985 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3987 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3989 (add_charset_to_list_mapper): Add `key' instead of
3990 `XCHARSET_NAME (value)' to return aliases.
3992 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3994 * mule-charset.c (Vcharacter_ideographic_radical_table): New
3996 (Vcharacter_ideographic_strokes_table): New variable.
3997 (Qideographic_radical): New variable.
3998 (Qideographic_strokes): New variable.
3999 (Fchar_attribute_alist): Use
4000 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4001 attribute; use `Vcharacter_ideographic_strokes_table' for
4002 `ideographic-strokes' attribute.
4003 (Fget_char_attribute): Likewise.
4004 (Fput_char_attribute): Likewise.
4005 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4006 `ideographic-strokes'.
4007 (vars_of_mule_charset): Setup
4008 `Vcharacter_ideographic_radical_table' and
4009 `Vcharacter_ideographic_strokes_table'.
4011 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4013 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4014 (Qtotal_strokes): New variable.
4015 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4016 `total-strokes' attribute.
4017 (Fget_char_attribute): Likewise.
4018 (Fput_char_attribute): Likewise.
4019 (syms_of_mule_charset): Add new symbol `total-strokes'.
4020 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4022 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4024 * mule-charset.c (Vcharacter_decomposition_table): New variable.
4025 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4027 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4028 `->decomposition' attribute.
4029 (Fput_char_attribute): Likewise.
4030 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4032 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4034 * mule-charset.c (decoding_table_check_elements): New function.
4035 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4037 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4039 * mule-charset.c (Fset_charset_mapping_table): Use
4040 `put_char_ccs_code_point'.
4042 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4044 * mule-charset.c (decoding_table_put_char): New inline function.
4045 (put_char_ccs_code_point): Use `decoding_table_put_char'.
4047 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4049 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4050 (XCHARSET_BYTE_SIZE): New macro.
4051 (decoding_table_remove_char): New inline function.
4052 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4053 `decoding_table_remove_char'.
4054 (remove_char_ccs): Use `decoding_table_remove_char'.
4055 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4057 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4059 * mule-charset.c (Vcharacter_name_table): New variable.
4060 (Qname): New variable.
4061 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4063 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4064 `Vcharacter_name_table' for `name' attribute.
4065 (Fremove_char_attribute): Use function `remove_char_ccs'.
4066 (put_char_ccs_code_point): New function.
4067 (remove_char_ccs): New function.
4068 (syms_of_mule_charset): Add new symbol `name'.
4069 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4071 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4073 * mule-charset.c (make_byte_table): Add new argument `older'.
4074 (make_char_id_table): Likewise.
4075 (copy_char_id_table): Comment out because it is not used.
4076 (put_char_id_table): Modify for `make_byte_table'.
4077 (Fput_char_attribute): Make encoding_table as older object;
4078 inherit older bit of `Vcharacter_composition_table'.
4079 (mark_charset): Don't mark `cs->encoding_table'.
4080 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4081 normal object; make `Vcharacter_composition_table' as an older
4082 object; delete staticpro for `Vcharacter_composition_table'; make
4083 `Vcharacter_variant_table' as a normal object.
4085 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4086 (mark_object): Don't check older object in UTF-2000.
4088 * lrecord.h (struct lrecord_header): Add new member `older' in
4090 (set_lheader_implementation): Setup `SLI_header->older' in
4092 (set_lheader_older_implementation): New macro in UTF-2000.
4093 (OLDER_RECORD_P): New macro in UTF-2000.
4094 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4095 (alloc_older_lcrecord): New prototype in UTF-2000.
4096 (alloc_older_lcrecord_type): New macro in UTF-2000.
4098 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4100 * mule-charset.c (byte_table_description): Use
4101 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4102 (char_id_table_description): Delete bogus `, 1'.
4103 (Fget_char_attribute): Refer encoding_table of each coded-charset
4104 to get value of coded-charset attribute of a character.
4105 (Fput_char_attribute): Use `make_older_vector' instead of
4106 `make_vector'; use encoding_table of each coded-charset to store
4107 value of coded-charset attribute of a character.
4108 (Fremove_char_attribute): Use encoding_table of each coded-charset
4109 to store value of coded-charset attribute of a character.
4110 (mark_charset): Mark `cs->encoding_table'; don't mark
4111 `cs->decoding_table'.
4112 (charset_description): Add description of new member
4114 (make_charset): Initialize `encoding_table'.
4116 * char-ucs.h (struct Lisp_Charset): Add new member
4118 (CHARSET_ENCODING_TABLE): New macro.
4119 (XCHARSET_ENCODING_TABLE): New macro.
4120 (charset_code_point): New implementation.
4121 (encode_char_1): Likewise.
4123 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4124 (disksave_object_finalization_1): Call finalizers of
4125 `all_older_lcrecords' in UTF-2000.
4126 (make_older_vector): New function in UTF-2000.
4127 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4130 * lisp.h (make_older_vector): New prototype in UTF-2000.
4132 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4134 * lrecord.h (enum lrecord_type): Rename
4135 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4137 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4138 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4139 `get_char_code_table'.
4141 * mule-charset.c (mark_char_id_table): Renamed from
4142 `mark_char_code_table'.
4143 (char_id_table_equal): Renamed from `char_code_table_equal'.
4144 (char_id_table_hash): Renamed from `char_code_table_hash'.
4145 (make_char_id_table): Renamed from `make_char_code_table'.
4146 (copy_char_id_table): Renamed from `copy_char_code_table'.
4147 (get_char_id_table): Renamed from `get_char_code_table'.
4148 (put_char_id_table): Renamed from `put_char_code_table'.
4149 (to_char_id): Renamed from `to_char_code'.
4151 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4152 `Lisp_Char_Code_Table'.
4153 (char_id_table): Renamed from `char_code_table'.
4154 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4155 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4156 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4157 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4158 (get_char_id_table): Renamed from `get_char_code_table'.
4160 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4162 * lrecord.h (enum lrecord_type): Rename
4163 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4165 * mule-charset.c (mark_byte_table): Renamed from
4166 `mark_char_byte_table'.
4167 (byte_table_equal): Renamed from `char_byte_table_equal'.
4168 (byte_table_hash): Renamed from `byte_table_hash'.
4169 (make_byte_table): Renamed from `make_byte_table'.
4170 (copy_byte_table): Renamed from `copy_char_byte_table'.
4172 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4173 `Lisp_Char_Byte_Table'.
4174 (byte_table): Renamed from `char_byte_table'.
4175 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4176 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4177 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4178 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4180 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4182 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4183 (dfc_convert_to_internal_format): Likewise.
4185 * text-coding.c (Fcoding_system_canonical_name_p): New function.
4186 * text-coding.c (Fcoding_system_alias_p): New function.
4187 * text-coding.c (Fcoding_system_aliasee): New function.
4188 * text-coding.c (append_suffix_to_symbol): New function.
4189 * text-coding.c (dangling_coding_system_alias_p): New function.
4190 * text-coding.c (Ffind_coding_system):
4191 * text-coding.c (Fcopy_coding_system):
4192 * text-coding.c (encode_coding_no_conversion):
4193 * text-coding.c (syms_of_file_coding):
4194 * text-coding.c (vars_of_file_coding):
4195 Rewrite coding system alias code.
4196 Allow nested aliases, like symbolic links.
4197 Allow redefinition of coding system aliases.
4198 Prevent existence of dangling coding system aliases.
4199 Eliminate convert_to_external_format.
4200 Eliminate convert_to_internal_format.
4202 * text-coding.c: Change enum eol_type to eol_type_t.
4204 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4206 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4207 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4209 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4210 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4212 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4214 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4215 `ideograph-daikanwa'.
4217 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4218 (Vcharset_ucs_bmp): Likewise.
4219 (Vcharset_mojikyo): Add new extern variable definition.
4220 (Vcharset_latin_iso8859_2): Deleted because it is not used.
4221 (Vcharset_latin_iso8859_3): Likewise.
4222 (Vcharset_latin_iso8859_4): Likewise.
4223 (Vcharset_latin_iso8859_9): Likewise.
4224 (Vcharset_latin_viscii_lower): Likewise.
4225 (Vcharset_latin_viscii_upper): Likewise.
4226 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4227 `mojikyo' code-point is used to decode.
4228 (encode_char_2): New function [to convert `mojikyo' code-point to
4229 Mojikyo font encoding].
4230 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4231 (breakup_char_1): Likewise.
4232 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4234 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4236 * text-coding.c (Fmake_coding_system): Add document about
4237 `disable-composition' property.
4239 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4241 * text-coding.c (Qdisable_composition): New variable; delete
4243 (Fmake_coding_system): Add new property `disable-composite';
4244 delete property `composite'.
4245 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4246 instead of `!CODING_SYSTEM_COMPOSITE'.
4247 (syms_of_file_coding): Add new symbol `disable-composition';
4248 delete symbol `composite'.
4250 * file-coding.h (struct Lisp_Coding_System): Add
4251 `disable_composition'; delete `enable_composition'.
4252 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4253 `CODING_SYSTEM_COMPOSITE'.
4254 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4255 `XCODING_SYSTEM_COMPOSITE'.
4257 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4259 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4262 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4264 * text-coding.c (Qcomposite): New variable.
4265 (Fmake_coding_system): Add new property `composite'.
4266 (struct decoding_stream): Add `combined_char_count',
4267 `combined_chars' and `combining_table' in UTF-2000.
4268 (COMPOSE_FLUSH_CHARS): New macro.
4269 (COMPOSE_ADD_CHAR): New macro.
4270 (reset_decoding_stream): Reset `str->combined_char_count' and
4271 `str->combining_table' in UTF-2000.
4272 (decode_coding_iso2022): Modify for character-decomposition.
4273 (syms_of_file_coding): Add new symbol `composite'.
4275 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4277 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4278 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4279 of `Vcharacter_composition_table' if `->decomposition' property
4281 (Qlatin_tcvn5712): New variable.
4282 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4283 (complex_vars_of_mule_charset): Add new coded-charset
4286 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4288 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
4290 * file-coding.h (struct Lisp_Coding_System): Add
4291 `enable_composition'.
4292 (CODING_SYSTEM_COMPOSITE): New macro.
4293 (XCODING_SYSTEM_COMPOSITE): New macro.
4295 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
4297 * mule-canna.c (c2mu): Fix problem with UTF-2000.
4299 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
4301 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4302 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4304 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
4306 * mule-charset.c (Vcharset_mojikyo): New variable.
4307 (Fdefine_char): Don't use coded-charset which does not have
4308 non-builtin character range to allocate character-id.
4309 (Qmojikyo): New variable.
4310 (syms_of_mule_charset): Add new symbol `mojikyo'.
4311 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4313 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4314 (LEADING_BYTE_MOJIKYO): New macro.
4315 (MIN_CHAR_MOJIKYO): New macro.
4316 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4317 (MAX_CHAR_MOJIKYO): New macro.
4319 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
4321 * mule-charset.c (remove_char_attribute): Fixed.
4323 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
4325 * mule-charset.c (remove_char_attribute): New function.
4326 (Fremove_char_attribute): New function.
4327 (encode_builtin_char_1): Comment out builtin-support for
4328 greek-iso8859-7 and cyrillic-iso8859-5.
4329 (Fdecode_char): Check `code' is an integer.
4330 (syms_of_mule_charset): Add `remove-char-attribute'.
4331 (MIN_CHAR_GREEK): Deleted.
4332 (MAX_CHAR_GREEK): Likewise.
4333 (MIN_CHAR_CYRILLIC): Likewise.
4334 (MAX_CHAR_CYRILLIC): Likewise.
4335 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4336 MAX_CHAR_GREEK for `greek-iso8859-7'.
4338 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4339 (MAX_CHAR_GREEK): Likewise.
4340 (MIN_CHAR_CYRILLIC): Likewise.
4341 (MAX_CHAR_CYRILLIC): Likewise.
4343 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
4345 * mule-charset.c (Fdefine_char): Fix problem when new code-point
4346 format is used without `ucs' property.
4347 (Fdecode_char): Fix problem with GR representation.
4348 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4349 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4351 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4353 * mule-charset.c (make_builtin_char): New function.
4354 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4355 (Fset_charset_mapping_table): Modify for new representation of
4357 (Fdecode_char): New function.
4358 (syms_of_mule_charset): Add new builtin function `decode-char' in
4361 * char-ucs.h (make_builtin_char): New prototype.
4362 (DECODE_CHAR): New inline function.
4363 (MAKE_CHAR): Use `DECODE_CHAR'.
4365 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
4367 * text-coding.c (parse_charset_conversion_specs): Use
4368 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4370 (iso2022_designate): Likewise.
4372 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4373 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4375 * mule-charset.c (Vcharset_ucs): New variable.
4376 (print_charset): Change design; use `CHARSET_CHARS' and
4377 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4378 (make_charset): Change signature to specify `chars' and
4379 `dimension' instead of `type'.
4380 (range_charset_code_point): Modify for 256^n-set.
4381 (encode_builtin_char_1): Encode as `ucs' in default.
4382 (Fmake_charset): Modify for `make_charset'.
4383 (Fmake_reverse_direction_charset): Likewise.
4384 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4386 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4389 * char-ucs.h (Vcharset_ucs): New variable.
4390 (LEADING_BYTE_UCS): New macro.
4391 (struct Lisp_Charset): Delete `type'; change type of `dimension'
4392 and `chars' to `unsigned short' from `unsigned int'.
4393 (CHARSET_TYPE): Deleted.
4394 (XCHARSET_TYPE): Deleted.
4396 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
4398 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4400 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4401 (ENCODE_CHAR): New macro.
4403 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4405 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4406 to 0.14 (Kawachi-Katakami).
4408 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4410 * text-coding.c (char_encode_shift_jis): Modify for
4411 `charset_code_point'.
4412 (char_encode_iso2022): Likewise.
4414 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4415 (integer) instead of list of <Lisp_Object>s (integers) as the
4416 format of code-point of a coded-charset.
4417 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4418 (encode_builtin_char_1): New function; delete
4419 `split_builtin_char'.
4420 (charset_code_point): Return <int> instead of <Lisp_Object>.
4421 (Fsplit_char): Don't use `SPLIT_CHAR'.
4423 * char-ucs.h (encode_builtin_char_1): New prototype; delete
4424 prototype for `split_builtin_char'.
4425 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4426 (charset_code_point): Likewise.
4427 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4428 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4430 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
4432 * mule-charset.c (complex_vars_of_mule_charset): Don't define
4433 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4435 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4437 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4439 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4440 (MAX_CHAR_OBS_94x94): Deleted.
4442 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4444 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4446 * char-ucs.h (MAX_CHAR_BMP): New macro.
4448 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4450 * text-coding.c: Sync with r21-2-24.
4452 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
4454 * file-coding.c: Modify for UTF-2000.
4456 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
4458 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4461 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4463 * mule-charset.c (split_builtin_char): Delete builtin support for
4464 `katakana-jisx0201'.
4465 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4466 BMP area in builtin representation.
4468 * char-ucs.h (MAKE_CHAR): Delete builtin support for
4469 `Vcharset_katakana_jisx0201'.
4471 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
4473 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4474 (Qisolated): New variable.
4475 (Qinitial): New variable.
4476 (Qmedial): New variable.
4477 (Qfinal): New variable.
4478 (Qvertical): New variable.
4479 (Qsmall): New variable.
4480 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4481 `Qvertical' and `Qsmall'.
4482 (Qmojikyo_pj_[1 .. 21]): New variable.
4483 (syms_of_mule_charset): Add new symbols `isolated', `initial',
4484 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4485 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4488 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
4490 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4491 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4492 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4494 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
4496 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4497 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4499 (Qjapanese_jisx0208_1990): New variable.
4500 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4501 (complex_vars_of_mule_charset): Add new coded-charset
4502 `japanese-jisx0208-1990'.
4504 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4505 (MIN_CHAR_JIS_X0208_1990): New macro.
4506 (MAX_CHAR_JIS_X0208_1990): New macro.
4508 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
4510 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4511 coded-charset is not found.
4513 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
4515 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4516 (Fdefine_char): Use `Fmake_char'.
4518 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
4520 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4521 (Vcharset_hiragana_jisx0208): Deleted.
4522 (Vcharset_katakana_jisx0208): Deleted.
4523 (Qideograph_daikanwa): New variable.
4524 (Qhiragana_jisx0208): Deleted.
4525 (Qkatakana_jisx0208): Deleted.
4526 (split_builtin_char): Split `ideograph-daikanwa'.
4527 (Fsplit_char): New implementation for UTF-2000.
4528 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4529 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4530 (complex_vars_of_mule_charset): Add new coded-charset
4531 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4532 `katakana-jisx0208'.
4534 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4535 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4536 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4537 (MIN_CHAR_DAIKANWA): New macro.
4538 (MAX_CHAR_DAIKANWA): New macro.
4540 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
4542 * data.c (Fstring_to_number): Don't recognize floating point if
4545 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
4547 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4549 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4551 * mule-charset.c (Qsquare): New variable.
4552 (to_char_code): Add `Qsquare'.
4553 (syms_of_mule_charset): Add new symbol `square'.
4555 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4557 * mule-charset.c (Qcircle): New variable.
4558 (to_char_code): Add `Qcircle'.
4559 (syms_of_mule_charset): Add new symbol `circle'.
4561 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4563 * mule-charset.c (Qfont): New variable.
4564 (to_char_code): Add `Qfont'.
4565 (syms_of_mule_charset): Add new symbol `font'.
4567 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4569 * mule-charset.c (Qsub): New variable.
4570 (to_char_code): Add `Qsub'.
4571 (syms_of_mule_charset): Add new symbol `sub'.
4573 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4575 * mule-charset.c (Fput_char_attribute): Convert each element of
4576 VALUE to GL position if ATTRIBUTE is a GR-set,
4578 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
4580 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4581 coded-charset is a GR-set.
4583 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4585 * mule-charset.c (Fput_char_attribute): Check each element of
4586 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4588 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
4590 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4592 (Qethiopic_ucs): New variable in UTF-2000.
4593 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4594 (complex_vars_of_mule_charset): Add new coded-charset
4595 `ethiopic-ucs' in UTF-2000.
4597 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4598 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4600 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4602 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4604 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
4606 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4609 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4611 * mule-charset.c (Vcharacter_variant_table): New variable.
4612 (Q_ucs): New variable.
4613 (Fchar_variants): New function.
4614 (Fput_char_attribute): Register `->ucs' value to
4615 `Vcharacter_variant_table'.
4616 (syms_of_mule_charset): Add new function `char-variants' and new
4618 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4620 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4622 * mule-charset.c (get_char_code_table): Allow negative character
4624 (put_char_code_table): Likewise.
4625 (Vcharacter_composition_table): New variable.
4626 (Q_decomposition): New variable.
4627 (Qwide): New variable.
4628 (Qnarrow): New variable.
4629 (Qcompat): New variable.
4630 (QnoBreak): New variable.
4631 (Qsuper): New variable.
4632 (Qfraction): New variable.
4633 (to_char_code): New function.
4634 (Fget_composite_char): New function.
4635 (Fput_char_attribute): Register `->decomposition' value to
4636 `Vcharacter_composition_table'.
4637 (syms_of_mule_charset): Add new function `get-composite-char', new
4638 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4639 `super' and `fraction'.
4640 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4642 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
4644 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4645 character; copy the return value.
4647 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4649 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4651 * mule-charset.c (range_charset_code_point): Must use make_int.
4652 (split_builtin_char): New function.
4654 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4656 * mule-charset.c (char_byte_table): Change name from
4657 "char-code-table" to "char-byte-table".
4658 (mark_char_code_table): New function.
4659 (char_code_table_equal): New function.
4660 (char_code_table_hash): New function.
4661 (char_code_table_description): New constant.
4662 (char_code_table): New type.
4663 (make_char_code_table): New function.
4664 (copy_char_code_table): New function.
4665 (get_char_code_table): Modify for `char_code_table' type.
4666 (put_char_code_table): Likewise.
4667 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4670 * char-ucs.h (char_code_table): New type.
4671 (XCHAR_CODE_TABLE): New macro.
4672 (XSETCHAR_CODE_TABLE): New macro.
4673 (CHAR_CODE_TABLE_P): New macro.
4674 (GC_CHAR_CODE_TABLE_P): New macro.
4675 (struct Lisp_Char_Code_Table): New structure.
4677 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4679 * mule-charset.c (Fmake_charset): Setup byte_offset for
4682 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
4684 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4687 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4689 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4692 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
4694 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4695 charset, it is regarded as a charset.
4696 (put_char_attribute): New function in UTF-2000.
4697 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4698 charset, mapping-table of the charset is modified.
4699 (Fdefine_char): New function in UTF-2000.
4700 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4701 `Fput_char_attribute'.
4702 (syms_of_mule_charset): Add new function `define-char' and new
4703 symbol `ucs' in UTF-2000.
4704 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4706 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4708 * mule-charset.c (Fcharset_name): Define `byte_offset' in
4709 non-UTF-2000 configuration.
4711 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4713 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4714 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4716 * mule-charset.c (mark_charset): `cs->encoding_table' has been
4718 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4719 (Fset_charset_mapping_table): Likewise.
4721 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4722 (CHARSET_ENCODING_TABLE): Delete.
4723 (XCHARSET_ENCODING_TABLE): Delete.
4724 (charset_code_point): New interface.
4726 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4728 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4729 instead of `charset_get_byte1' and `charset_get_byte2'.
4731 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4732 (charset_get_byte2): Deleted.
4734 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4736 * char-ucs.h (SPLIT_CHAR): New inline function.
4737 (breakup_char_1): Use `SPLIT_CHAR'.
4739 * mule-charset.c (range_charset_code_point): New function.
4740 (charset_code_point): New function.
4742 * char-ucs.h (range_charset_code_point): New interface.
4743 (breakup_char_1): Use `range_charset_code_point'.
4745 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4747 * mule-charset.c (Fmake_charset): Delete unused local variable
4750 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4751 (breakup_char_1): Find a charset and code-point in
4752 `Vcharacter_attribute_table'.
4754 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4756 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4759 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4761 * mule-charset.c (Vcharacter_attribute_table): New variable.
4762 (Fchar_attribute_alist): New function.
4763 (Fget_char_attribute): New function.
4764 (Fput_char_attribute): New function.
4765 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4767 (syms_of_mule_charset): Add new function `char-attribute-alist',
4768 `get-char-attribute' and `put-char-attribute'.
4769 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4771 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
4773 * mule-charset.c (Fmake_charset): Just use
4774 `get_unallocated_leading_byte'.
4776 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4777 sets; don't use final-byte based number for private sets.
4779 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4781 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4784 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
4786 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4789 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4791 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4792 of `CHAR_LEADING_BYTE' in UTF-2000.
4794 * insdel.c (find_charsets_in_bufbyte_string): Use
4795 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4796 (find_charsets_in_emchar_string): Likewise.
4798 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4799 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4801 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4802 (CHAR_CHARSET_ID): New macro.
4804 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4806 * chartab.c (get_char_table): Don't use type `Charset_ID' for
4807 charset-id - MIN_LEADING_BYTE.
4808 (put_char_table): Likewise.
4810 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4812 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4813 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4814 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4815 (CHARSET_ID_OFFSET): New macro.
4816 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4817 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4818 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4819 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4821 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4823 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4824 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4825 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4826 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4827 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4829 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4831 * mule-charset.c (next_allocated_leading_byte): New variable in
4833 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4834 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4835 (get_unallocated_leading_byte): Simply use
4836 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4837 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4840 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4841 (MAX_LEADING_BYTE_PRIVATE): New macro.
4842 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4843 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4845 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
4847 * mule-charset.c (Fmake_charset): Allocate final-byte based
4848 charset-id for 94-set, 96-set and 94x94-set.
4850 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
4852 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4854 (Fmake_charset): Likewise.
4855 (complex_vars_of_mule_charset): Modify the font registry of
4856 `ucs-bmp' not to match `Ethiopic-Unicode'.
4858 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4860 * mule-charset.c (complex_vars_of_mule_charset): Add font
4861 registory of `ucs-bmp'.
4863 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4865 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4866 coded-charsets in `default-coded-charset-priority-list' when
4867 breaking up a character.
4869 * mule-charset.c (Vcharset_latin_viscii): New variable.
4870 (Qlatin_viscii): New variable.
4871 (make_charset): Don't use `decoding_table'.
4872 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4874 (Fset_charset_mapping_table): New implementation.
4875 (syms_of_mule_charset): Add new symbol `latin-viscii'.
4876 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4877 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4878 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4879 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4880 charset `latin_viscii'.
4882 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4883 (CHARSET_TYPE_94X94): Change to 1 from 2.
4884 (CHARSET_TYPE_96): Change to 2 from 1.
4885 (CHARSET_TYPE_128): New macro.
4886 (CHARSET_TYPE_128X128): Change to 5 from 4.
4887 (CHARSET_TYPE_256): New macro.
4888 (CHARSET_TYPE_256X256): Change to 7 from 5.
4889 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4891 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
4893 * text-coding.c (char_encode_shift_jis): Refer
4894 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4895 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4897 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4898 (char_byte_table_equal): New function in UTF-2000.
4899 (char_byte_table_hash): New function in UTF-2000.
4900 (char_byte_table_description): New constant in UTF-2000.
4901 (char_byte_table): New type in UTF-2000.
4902 (make_char_byte_table): New function in UTF-2000.
4903 (copy_char_byte_table): New function in UTF-2000.
4904 (make_char_code_table): New macro in UTF-2000.
4905 (get_char_code_table): New function in UTF-2000.
4906 (put_char_code_table): New function in UTF-2000.
4907 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4908 (charset_description): Add setting in UTF-2000.
4909 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4910 `CHARSET_TO_BYTE1_TABLE(cs)'.
4911 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4912 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4913 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4914 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4915 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4916 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4917 `CHARSET_TO_BYTE2_TABLE(cs)'.
4919 * char-ucs.h (char_byte_table): New type.
4920 (XCHAR_BYTE_TABLE): New macro.
4921 (XSETCHAR_BYTE_TABLE): New macro.
4922 (CHAR_BYTE_TABLE_P): New macro.
4923 (GC_CHAR_BYTE_TABLE_P): New macro.
4924 (struct Lisp_Char_Byte_Table): New structure.
4925 (get_char_code_table): New interface.
4926 (Emchar_to_byte_table): Deleted.
4927 (get_byte_from_character_table): Deleted.
4928 (struct Lisp_Charset): Add `encoding_table'; delete
4929 `to_byte1_table' and `to_byte2_table'.
4930 (CHARSET_ENCODING_TABLE): New macro.
4931 (CHARSET_TO_BYTE1_TABLE): Deleted.
4932 (CHARSET_TO_BYTE2_TABLE): Deleted.
4933 (XCHARSET_ENCODING_TABLE): New macro.
4934 (XCHARSET_TO_BYTE1_TABLE): Deleted.
4935 (XCHARSET_TO_BYTE2_TABLE): Deleted.
4937 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4939 * mule-charset.c (syms_of_mule_charset): Delete charset alias
4940 `vietnamese-viscii-*'.
4942 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4944 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4945 (Qvietnamese_viscii_upper): New variable.
4946 (Fdefine_charset_alias): New function.
4947 (syms_of_mule_charset): Add new function `define-charset-alias'.
4948 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4949 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4952 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
4954 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4955 (MAX_CHAR_OBS_94x94): New macro.
4956 (breakup_char_1): Support obsolete XEmacs-UCS private code space
4959 * mule-charset.c (put_byte_from_character_table): Change unit size
4961 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4963 (Fmake_reverse_direction_charset): Modify dummy argument of
4964 `make_charset' for non-UTF-2000 environment.
4966 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
4968 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4970 * mule-charset.c (destroy_byte_from_character_table): New macro.
4971 (latin_jisx0201_to_ucs): Deleted.
4972 (latin_iso8859_2_to_ucs): Deleted.
4973 (latin_iso8859_3_to_ucs): Deleted.
4974 (latin_iso8859_4_to_ucs): Deleted.
4975 (latin_iso8859_9_to_ucs): Deleted.
4976 (latin_viscii_lower_to_ucs): Deleted.
4977 (latin_viscii_upper_to_ucs): Deleted.
4978 (mark_charset): Mark `cs->decoding_table'.
4979 (Fcharset_mapping_table): Fix DOC-string.
4980 (Fset_charset_mapping_table): New function.
4981 (syms_of_mule_charset): Add nwe function
4982 `set-charset-mapping-table'.
4983 (complex_vars_of_mule_charset): Don't setup and use
4986 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
4988 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4991 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
4993 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4994 (Vcharset_katakana_jisx0208): New variable.
4995 (Qhiragana_jisx0208): New variable.
4996 (Qkatakana_jisx0208): New variable.
4997 (make_charset): Add new argument `byte_offset'.
4998 (charset_get_byte1): Modify for new coded-charset definition; use
4999 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5000 `XCHARSET_BYTE_OFFSET'.
5001 (Fmake_charset): Modify for `make_charset'.
5002 (Fmake_reverse_direction_charset): Likewise.
5003 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5004 `katakana-jisx0208'.
5005 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5006 `.' in font registry of charset `katakana-jisx0201',
5007 `latin-jisx0201', `vietnamese-viscii-lower' and
5008 `vietnamese-viscii-upper'; modify DOC-string of charset
5009 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5010 registry of charset `japanese-jisx0208' not to use font for JIS
5011 X0208:1990; add new charset `hiragana-jisx0208' and
5012 `katakana-jisx0208'.
5014 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5015 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5016 (struct Lisp_Charset): Add `byte_offset'.
5017 (CHARSET_BYTE_OFFSET): New macro.
5018 (XCHARSET_UCS_MIN): New macro.
5019 (XCHARSET_UCS_MAX): New macro.
5020 (XCHARSET_CODE_OFFSET): New macro.
5021 (XCHARSET_BYTE_OFFSET): New macro.
5022 (MIN_CHAR_HIRAGANA): New macro.
5023 (MAX_CHAR_HIRAGANA): New macro.
5024 (MIN_CHAR_KATAKANA): New macro.
5025 (MAX_CHAR_KATAKANA): New macro.
5026 (MAKE_CHAR): Modify for new coded-charset definition; use
5027 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5028 `XCHARSET_BYTE_OFFSET'.
5030 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5032 * mule-charset.c (CHAR96): Deleted.
5033 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5035 (latin_iso8859_2_to_ucs): Likewise.
5036 (latin_iso8859_3_to_ucs): Likewise.
5037 (latin_iso8859_4_to_ucs): Likewise.
5038 (latin_iso8859_9_to_ucs): Likewise.
5039 (latin_viscii_lower_to_ucs): Likewise.
5040 (latin_viscii_upper_to_ucs): Likewise.
5041 (latin_tcvn5712_to_ucs): Commented out.
5042 (make_charset): Change type of argument `decoding_table' from
5043 <Emchar*> to <Lisp_Object> [vector of characters].
5044 (Fmake_charset): Modify for `make_charset'.
5045 (Fmake_reverse_direction_charset): Likewise.
5046 (Fcharset_mapping_table): New function in UTF-2000.
5047 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5049 (complex_vars_of_mule_charset): Modify for type change of
5050 `*_to_ucs'; modify for `make_charset'.
5052 * char-ucs.h (struct Lisp_Charset): Change type of
5053 `decoding_table' from <Emchar*> to <Lisp_Object>.
5054 (MAKE_CHAR): Modify for new specification of `decoding_table'.
5056 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
5058 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5059 error with non-UTF-2000-Mule.
5061 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
5063 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5065 (Vcharset_chinese_cns11643_4): Likewise.
5066 (Vcharset_chinese_cns11643_5): Likewise.
5067 (Vcharset_chinese_cns11643_6): Likewise.
5068 (Vcharset_chinese_cns11643_7): Likewise.
5069 (Qchinese_cns11643_3): Likewise.
5070 (Qchinese_cns11643_4): Likewise.
5071 (Qchinese_cns11643_5): Likewise.
5072 (Qchinese_cns11643_6): Likewise.
5073 (Qchinese_cns11643_7): Likewise.
5074 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5075 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5076 and `chinese-cns11643-7' to lisp/mule/chinese.el.
5077 (complex_vars_of_mule_charset): Likewise.
5079 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
5081 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5083 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5084 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5086 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
5088 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5090 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5091 (breakup_char_1): Likewise.
5093 * text-coding.c (char_encode_iso2022): Keep designated charsets if
5094 one of them includes the specified character.
5096 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
5098 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5100 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
5102 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5104 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
5106 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5107 definition for non-UTF-2000 Mule.
5108 (latin_iso8859_3_to_ucs): Likewise.
5109 (latin_iso8859_4_to_ucs): Likewise.
5110 (latin_iso8859_9_to_ucs): Likewise.
5111 (latin_jisx0201_to_ucs): Likewise.
5112 (MIN_CHAR_THAI): Likewise.
5113 (MAX_CHAR_THAI): Likewise.
5114 (MIN_CHAR_GREEK): Likewise.
5115 (MAX_CHAR_GREEK): Likewise.
5116 (MIN_CHAR_HEBREW): Likewise.
5117 (MAX_CHAR_HEBREW): Likewise.
5118 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5119 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5120 (MIN_CHAR_CYRILLIC): Likewise.
5121 (MAX_CHAR_CYRILLIC): Likewise.
5123 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
5125 * char-ucs.h (breakup_char_1): Use
5126 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5127 thai-tis620 and katakana-jisx0201 area.
5129 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
5131 * char-ucs.h (breakup_char_1): Use
5132 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5135 * text-coding.c (reset_encoding_stream): Fixed.
5136 (char_encode_ucs4): Delete `& 255'.
5138 * char-ucs.h (breakup_char_1): Use
5139 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5141 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
5143 * file-coding.c (Fmake_coding_system): Don't set up
5144 `codesys->fixed.size'.
5145 (encode_coding_no_conversion): Don't refer
5146 `str->codesys->fixed.size'.
5148 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
5150 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5151 (latin_a_char_to_byte1): Deleted.
5152 (latin_a_char_to_byte2): Deleted.
5154 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
5156 * mule-charset.c (make_charset): Add new argument `ucs_min',
5157 `ucs_max' and `code_offset'.
5158 (charset_get_byte1): New implementation [delete specific charset
5159 depended implementations].
5160 (Fmake_charset): Modify for `make_charset'.
5161 (Fmake_reverse_direction_charset): Likewise.
5162 (complex_vars_of_mule_charset): Likewise.
5164 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5166 (CHARSET_UCS_MIN): New macro.
5167 (CHARSET_UCS_MAX): New macro.
5168 (CHARSET_CODE_OFFSET): New macro.
5169 (MAKE_CHAR): Delete charset depended definitions [except
5172 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
5174 * char-ucs.h (breakup_char_1): Use
5175 `Vdefault_coded_charset_priority_list' for C0-Controls,
5176 Basic-Latin, C1-Controls and Latin-1-Supplement area.
5178 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
5180 * char-ucs.h (charset_get_byte1): New function.
5181 (XCHARSET_GET_BYTE1): Deleted.
5182 (charset_get_byte2): New function.
5183 (XCHARSET_GET_BYTE2): Deleted.
5184 (Vdefault_coded_charset_priority_list): New external variable.
5185 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5186 `Vdefault_preferred_coded_charset_list'.
5188 * mule-charset.c (charset_get_byte1): New function.
5189 (charset_get_byte2): New function.
5190 (Vdefault_coded_charset_priority_list): New variable.
5191 (vars_of_mule_charset): Add new variable
5192 `default-coded-charset-priority-list'.
5194 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
5196 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5197 (XCHARSET_GET_BYTE2): New inline function.
5198 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5199 `XCHARSET_GET_BYTE2'.
5201 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
5203 * mule-charset.c (make_charset): Initialize
5204 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5205 NULL if table is not defined.
5207 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
5209 * text-coding.c (char_encode_shift_jis): Use
5210 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5211 `ucs_to_latin_jisx0201'.
5213 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5214 (ucs_to_latin_iso8859_2): Deleted.
5215 (ucs_to_latin_iso8859_3): Deleted.
5216 (ucs_to_latin_iso8859_4): Deleted.
5217 (ucs_to_latin_iso8859_9): Deleted.
5218 (ucs_to_latin_viscii_lower): Deleted.
5219 (ucs_to_latin_viscii_upper): Deleted.
5220 (ucs_to_latin_tcvn5712): Deleted.
5221 (make_charset): Add new argument `decoding_table'; set up
5222 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5223 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5224 `decoding_table' is defined in UTF-2000.
5225 (Fmake_charset): Modify for `make_charset'.
5226 (Fmake_reverse_direction_charset): Likewise.
5227 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5228 and `GENERATE_96_SET'.
5230 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5231 (ucs_to_latin_jisx0201): Deleted.
5232 (latin_iso8859_2_to_ucs): Deleted.
5233 (ucs_to_latin_iso8859_2): Deleted.
5234 (latin_iso8859_3_to_ucs): Deleted.
5235 (ucs_to_latin_iso8859_3): Deleted.
5236 (latin_iso8859_4_to_ucs): Deleted.
5237 (ucs_to_latin_iso8859_4): Deleted.
5238 (latin_iso8859_9_to_ucs): Deleted.
5239 (ucs_to_latin_iso8859_9): Deleted.
5240 (latin_viscii_lower_to_ucs): Deleted.
5241 (ucs_to_latin_viscii_lower): Deleted.
5242 (latin_viscii_upper_to_ucs): Deleted.
5243 (ucs_to_latin_viscii_upper): Deleted.
5244 (struct Lisp_Charset): Renamed `encoding_table' to
5245 `to_byte1_table'; add `to_byte2_table'.
5246 (CHARSET_DECODING_TABLE): New macro.
5247 (CHARSET_TO_BYTE1_TABLE): New macro.
5248 (CHARSET_TO_BYTE2_TABLE): New macro.
5249 (XCHARSET_DECODING_TABLE): New macro.
5250 (XCHARSET_TO_BYTE1_TABLE): New macro.
5251 (XCHARSET_TO_BYTE2_TABLE): New macro.
5252 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5254 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5255 don't use `ucs_to_*' tables.
5257 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
5259 * text-coding.c (Fmake_coding_system): Don't set up
5260 `codesys->fixed.size'.
5261 (encode_coding_no_conversion): Use `if' instead of `switch'.
5263 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5265 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
5267 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5268 (Fmake_charset): Modify for `make_charset'.
5269 (Fmake_reverse_direction_charset): Likewise.
5270 (complex_vars_of_mule_charset): Likewise.
5272 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
5274 * text-coding.c (char_encode_shift_jis): Use table
5275 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5277 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
5279 * text-coding.c (text_encode_generic): Use `if' instead of
5281 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5284 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5286 * text-coding.c (encode_coding_sjis): Deleted.
5287 (char_encode_shift_jis): New function.
5288 (char_finish_shift_jis): New function.
5289 (reset_encoding_stream): Set up `encode_char' and `finish' for
5290 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5291 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5292 (char_encode_utf8): Treat `eol_type'.
5294 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5296 * file-coding.c (decode_coding_iso2022): Use
5297 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5299 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5301 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5304 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
5306 * char-lb.h (CHAR_COLUMNS): New macro.
5308 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
5310 * text-coding.c (char_encode_ucs4): New function.
5311 (char_finish_ucs4): New function.
5312 (encode_coding_ucs4): Deleted.
5313 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5314 (text_encode_generic): Delete local variable `charset' and `half'.
5315 (ucs_to_mule_table): Deleted.
5316 (mule_to_ucs_table): Deleted.
5317 (Fset_ucs_char): Deleted.
5318 (ucs_to_char): Deleted.
5319 (Fucs_char): Deleted.
5320 (Fset_char_ucs): Deleted.
5321 (Fchar_ucs): Deleted.
5322 (decode_ucs4): Deleted.
5323 (mule_char_to_ucs4): Deleted.
5324 (encode_ucs4): Deleted.
5325 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5326 (decode_coding_utf8): Likewise.
5327 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5328 (char_encode_iso2022): Fixed.
5329 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5330 `Fset_char_ucs' and `Fchar_ucs'.
5331 (complex_vars_of_file_coding): Don't initialize
5332 `ucs_to_mule_table'.
5334 * objects-tty.c (tty_initialize_font_instance): Don't use
5337 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5340 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5341 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5343 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5344 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5345 (emchar_string_displayed_columns): Likewise.
5347 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5348 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5349 (string_column_at_point): Likewise.
5350 (Fmove_to_column): Likewise.
5352 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5353 `encoding_table' and `decoding_table'.
5354 (CHARSET_REP_BYTES): Deleted.
5355 (XCHARSET_REP_BYTES): Deleted.
5356 (XCHARSET_COLUMNS): Deleted.
5357 (CHAR_COLUMNS): New macro.
5358 (lookup_composite_char): Deleted unconditionally.
5359 (composite_char_string): Likewise.
5361 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
5363 * char-ucs.h (Emchar_to_byte_table): New type.
5364 (get_byte_from_character_table): New function interface.
5365 (Vcharset_latin_jisx0201): New variable.
5366 (latin_jisx0201_to_ucs): New variable.
5367 (ucs_to_latin_jisx0201): New variable.
5368 (Vcharset_latin_iso8859_2): New variable.
5369 (latin_iso8859_2_to_ucs): New variable.
5370 (ucs_to_latin_iso8859_2): New variable.
5371 (Vcharset_latin_iso8859_3): New variable.
5372 (latin_iso8859_3_to_ucs): New variable.
5373 (ucs_to_latin_iso8859_3): New variable.
5374 (Vcharset_latin_iso8859_4): New variable.
5375 (latin_iso8859_4_to_ucs): New variable.
5376 (ucs_to_latin_iso8859_4): New variable.
5377 (Vcharset_latin_iso8859_9): New variable.
5378 (latin_iso8859_9_to_ucs): New variable.
5379 (ucs_to_latin_iso8859_9): New variable.
5380 (Vcharset_latin_viscii_lower): New variable.
5381 (latin_viscii_lower_to_ucs): New variable.
5382 (ucs_to_latin_viscii_lower): New variable.
5383 (Vcharset_latin_viscii_upper): New variable.
5384 (latin_viscii_upper_to_ucs): New variable.
5385 (ucs_to_latin_viscii_upper): New variable.
5386 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5387 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5388 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5389 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5390 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5391 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5392 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5393 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5394 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5395 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5397 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5398 (Vcharset_latin_viscii_upper): New variable.
5399 (make_byte_from_character_table): New function.
5400 (put_byte_from_character_table): New function.
5401 (get_byte_from_character_table): New function.
5402 (CHAR96): New macro.
5403 (ucs_to_latin_jisx0201): New variable.
5404 (latin_jisx0201_to_ucs): New variable.
5405 (ucs_to_latin_iso8859_2): New variable.
5406 (latin_iso8859_2_to_ucs): New variable.
5407 (ucs_to_latin_iso8859_3): New variable.
5408 (latin_iso8859_3_to_ucs): New variable.
5409 (ucs_to_latin_iso8859_4): New variable.
5410 (latin_iso8859_4_to_ucs): New variable.
5411 (ucs_to_latin_iso8859_9): New variable.
5412 (latin_iso8859_9_to_ucs): New variable.
5413 (ucs_to_latin_viscii_lower): New variable.
5414 (latin_viscii_lower_to_ucs): New variable.
5415 (ucs_to_latin_viscii_upper): New variable.
5416 (latin_viscii_upper_to_ucs): New variable.
5417 (ucs_to_latin_tcvn5712): New variable.
5418 (latin_tcvn5712_to_ucs): New variable.
5419 (Qlatin_viscii_lower): New variable.
5420 (Qlatin_viscii_upper): New variable.
5421 (syms_of_mule_charset): Set up new symbol
5422 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5423 (complex_vars_of_mule_charset): Set up new charset
5424 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5425 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5426 `ucs_to_<CHARSET>' tables.
5428 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
5430 * text-coding.c: New file.
5432 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
5434 * mule-charset.c (Fmake_char): Fix problem of 256-set.
5436 * char-ucs.h (Vcharset_ucs_bmp): New variable.
5437 (MAKE_CHAR): Modify for `ucs-bmp'.
5438 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5439 non-MULE characters of BMP.
5441 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
5443 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5446 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
5449 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5450 - Include character.h for `CHAR_ASCII_P'.
5452 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5454 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5455 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5457 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5458 (BYTE_C0_P): Likewise.
5459 (BYTE_C1_P): Likewise.
5460 (Lstream_get_emchar_1): Likewise.
5461 (Lstream_fput_emchar): Likewise.
5462 (Lstream_funget_emchar): Likewise.
5463 (copy_internal_to_external): Likewise.
5464 (copy_external_to_internal): Likewise.
5466 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5467 (BYTE_C0_P): Likewise.
5468 (BYTE_C1_P): Likewise.
5469 (Lstream_get_emchar_1): Likewise.
5470 (Lstream_fput_emchar): Likewise.
5471 (Lstream_funget_emchar): Likewise.
5472 (copy_internal_to_external): Likewise.
5473 (copy_external_to_internal): Likewise.
5475 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5476 (REP_BYTES_BY_FIRST_BYTE): Likewise.
5478 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5479 (BYTE_ASCII_P): Moved to mb-1byte.h.
5481 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
5483 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5485 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5486 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5487 (VALID_CHARPTR_P): Moved to mb-*byte.h.
5488 (VALIDATE_CHARPTR_BACKWARD): Likewise.
5489 (VALIDATE_CHARPTR_FORWARD): Likewise.
5490 (simple_charptr_emchar): Moved to mb-multibyte.h.
5491 (simple_set_charptr_emchar): Likewise.
5492 (simple_charptr_copy_char): Likewise.
5493 (non_ascii_charptr_emchar): Likewise.
5494 (non_ascii_set_charptr_emchar): Likewise.
5495 (non_ascii_charptr_copy_char): Likewise.
5496 (charptr_emchar): Moved to mb-*byte.h.
5497 (set_charptr_emchar): Likewise.
5498 (charptr_copy_char): Likewise.
5500 * mb-1byte.h, mb-multibyte.h: New files.
5502 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
5504 * mb-utf-8.h (MULTIBYTE): New macro.
5505 (MAX_EMCHAR_LEN): Moved from buffer.h.
5506 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5508 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5510 * mb-lb.h, multibyte.h: New files.
5512 * char-1byte.h (Charset_ID): Moved from buffer.h.
5513 (MIN_LEADING_BYTE): Likewise.
5514 (LEADING_BYTE_ASCII): Likewise.
5515 (NUM_LEADING_BYTES): Likewise.
5516 (CHARSETP): Likewise.
5517 (CHARSET_BY_LEADING_BYTE): Likewise.
5518 (XCHARSET_LEADING_BYTE): Likewise.
5519 (XCHARSET_GRAPHIC): Likewise.
5520 (XCHARSET_COLUMNS): Likewise.
5521 (XCHARSET_DIMENSION): Likewise.
5522 (CHAR_CHARSET): Likewise.
5523 (CHAR_LEADING_BYTE): Likewise.
5524 (BREAKUP_CHAR): Likewise.
5525 (Vcharset_ascii): Likewise.
5527 * buffer.h: Include multibyte.h unconditionally.
5528 (VALID_CHARPTR_P): Moved to multibyte.h.
5529 (ASSERT_VALID_CHARPTR): Likewise.
5530 (REAL_INC_CHARPTR): Likewise.
5531 (REAL_INC_CHARBYTIND): Likewise.
5532 (REAL_DEC_CHARPTR): Likewise.
5533 (INC_CHARPTR): Likewise.
5534 (INC_CHARBYTIND): Likewise.
5535 (DEC_CHARPTR): Likewise.
5536 (VALIDATE_CHARPTR_BACKWARD): Likewise.
5537 (VALIDATE_CHARPTR_FORWARD): Likewise.
5538 (charptr_n_addr): Likewise.
5539 (MAX_EMCHAR_LEN): Moved to mb-*.h.
5540 (simple_charptr_emchar): Moved to multibyte.h.
5541 (simple_set_charptr_emchar): Likewise.
5542 (simple_charptr_copy_char): Likewise.
5543 (non_ascii_charptr_emchar): Likewise.
5544 (non_ascii_set_charptr_emchar): Likewise.
5545 (non_ascii_charptr_copy_char): Likewise.
5546 (charptr_emchar): Likewise.
5547 (set_charptr_emchar): Likewise.
5548 (charptr_copy_char): Likewise.
5549 (charptr_emchar_n): Likewise.
5550 (Charset_ID): Moved to char-1byte.h.
5551 (Vcharset_ascii): Likewise.
5552 (CHAR_CHARSET): Likewise.
5553 (CHAR_LEADING_BYTE): Likewise.
5554 (LEADING_BYTE_ASCII): Likewise.
5555 (NUM_LEADING_BYTES): Likewise.
5556 (MIN_LEADING_BYTE): Likewise.
5557 (CHARSETP): Likewise.
5558 (CHARSET_BY_LEADING_BYTE): Likewise.
5559 (XCHARSET_LEADING_BYTE): Likewise.
5560 (XCHARSET_GRAPHIC): Likewise.
5561 (XCHARSET_COLUMNS): Likewise.
5562 (XCHARSET_DIMENSION): Likewise.
5563 (BREAKUP_CHAR): Likewise.
5565 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
5567 * character.h: Add document about interface for characters.
5569 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5570 (MAKE_CHAR): Delete comment about
5571 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5572 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5573 (BREAKUP_CHAR): Modify name of arguments.
5574 (CHAR_CHARSET): Modify name of argument.
5576 * buffer.h: Delete document about Emchar accessors.
5578 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
5580 * character.h (CHAR_INTP): Moved from buffer.h
5581 (CHAR_OR_CHAR_INTP): Likewise.
5582 (XCHAR_OR_CHAR_INT): Likewise.
5583 (CHECK_CHAR_COERCE_INT): Likewise.
5585 * buffer.h (CHAR_INTP): Moved to character.h
5586 (CHAR_OR_CHAR_INTP): Likewise.
5587 (XCHAR_OR_CHAR_INT): Likewise.
5588 (CHECK_CHAR_COERCE_INT): Likewise.
5590 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
5593 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5594 - Include char-1byte.h, char-lb.h or char-ucs.h.
5596 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5598 * buffer.h: Include character unconditionally.
5599 (valid_char_p): Moved to char-*.h.
5600 (non_ascii_valid_char_p): Moved to char-lb.h.
5602 * char-1byte.h, char-lb.h, char-ucs.h: New files.
5604 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
5606 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5607 in UTF-2000 because it is not ported yet and not to use
5608 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5609 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5610 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5612 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5613 (CHAR_ASCII_P): Moved from character.h.
5615 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5616 (CHAR_ASCII_P): Likewise.
5617 (CHAR_FIELD1_MASK): Deleted.
5618 (CHAR_FIELD2_MASK): Deleted.
5619 (CHAR_FIELD3_MASK): Deleted.
5620 (MAX_CHAR_BASIC_LATIN): New macro.
5621 (CHAR_FIELD1): Deleted.
5622 (CHAR_FIELD2_INTERNAL): Deleted.
5623 (CHAR_FIELD3_INTERNAL): Deleted.
5624 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5625 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5626 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5627 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5628 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5629 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5630 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5631 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5632 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5633 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5634 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5635 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5636 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5637 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5638 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5639 (MIN_CHAR_COMPOSITION): Deleted.
5640 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5641 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5643 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
5645 * buffer.h: Include mb-utf-8.h in UTF-2000.
5647 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5649 * mb-utf-8.h: New file.
5651 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
5653 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5656 * mule-charset.h, buffer.h (Charset_ID): New type.
5658 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
5660 * mule-canna.c (c2mu): Use `MAKE_CHAR',
5661 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5662 instead of `MULE_CHAR_PRIVATE_OFFSET',
5663 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5664 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5665 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5667 * character.h (Vcharset_japanese_jisx0212): New variable
5670 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
5672 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5673 (charset_by_attributes): Delete array about direction.
5674 (latin_a_char_to_charset): New variable in UTF-2000.
5675 (latin_a_char_to_byte1): New variable in UTF-2000.
5676 (latin_a_char_to_byte2): New variable in UTF-2000.
5677 (Qucs_bmp): New variable.
5678 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5680 (next_allocated_2_byte_leading_byte): Likewise.
5681 (non_ascii_set_charptr_emchar): Likewise.
5682 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5683 `CHARSET_TYPE_256X256' in UTF-2000; modify for
5684 `charset_by_attributes'.
5685 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5686 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5687 and `CHARSET_BY_LEADING_BYTE'.
5688 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5689 `utf-2000-version' to `vars_of_mule_charset'.
5690 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5691 define `leading-code-private-11' in UTF-2000; move setting of
5692 `utf-2000-version' from `syms_of_mule_charset'.
5693 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5696 * character.h (Charset_ID): New type.
5697 (LEADING_BYTE_UCS_BMP): New macro.
5698 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5699 (CHARSET_ID_OFFSET_94): New macro.
5700 (MIN_CHARSET_ID_PRIVATE_94): New macro.
5701 (MAX_CHARSET_ID_PRIVATE_94): New macro.
5702 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5704 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5705 (LEADING_BYTE_LATIN_JISX0201): Likewise.
5706 (CHARSET_ID_OFFSET_96): New macro.
5707 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5708 CHARSET_ID_OFFSET_96 and final-byte.
5709 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5710 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5711 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5712 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5713 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5714 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5715 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5716 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5717 (LEADING_BYTE_THAI_TIS620): Likewise.
5718 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5719 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5720 (CHARSET_ID_OFFSET_94x94): New macro.
5721 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5722 CHARSET_ID_OFFSET_94x94 and final-byte.
5723 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5724 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5725 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5726 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5727 (LEADING_BYTE_CHINESE_GB2312): Likewise.
5728 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5729 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5730 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5731 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5732 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5733 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5734 (CHARSET_TYPE_128X128): New macro.
5735 (CHARSET_TYPE_256X256): New macro.
5736 (XCHARSET_PRIVATE_P): Delete unconditionally.
5737 (charset_by_attributes): Delete array about direction.
5738 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5739 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5740 (MIN_CHAR_94): New macro.
5741 (MAX_CHAR_94): New macro.
5742 (MIN_CHAR_96): New macro.
5743 (MAX_CHAR_96): New macro.
5744 (MIN_CHAR_94x94): New macro.
5745 (MAX_CHAR_94x94): New macro.
5746 (MIN_CHAR_96x96): New macro.
5747 (MAX_CHAR_96x96): New macro.
5748 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5749 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5750 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5752 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5753 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5754 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5755 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5756 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5757 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5758 `XCHARSET_LEADING_BYTE' to make code-point.
5759 (latin_a_char_to_charset): New variable.
5760 (latin_a_char_to_byte1): New variable.
5761 (latin_a_char_to_byte2): New variable.
5762 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5763 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5764 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5766 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5767 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5768 (find_charsets_in_emchar_string): Likewise.
5769 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5771 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5773 (decode_coding_iso2022): Likewise.
5775 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5778 * redisplay.c (redisplay_text_width_emchar_string): Use
5779 `Charset_ID' instead of `unsigned char'.
5780 (redisplay_frame_text_width_string): Likewise.
5782 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5785 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5786 instead of `unsigned char'.
5787 (face_cachel_charset_font_metric_info): Likewise.
5789 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5790 (get_non_ascii_char_table_value): Likewise.
5791 (get_char_table): Likewise.
5792 (put_char_table): Likewise.
5793 (map_over_other_charset): Likewise.
5794 (map_char_table): Likewise.
5796 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5797 instead of `unsigned char'.
5799 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
5801 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5802 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5804 * mule-charset.c (leading_code_private_11): Don't define in
5807 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5808 in UTF-2000 because it is not ported yet and not to use
5809 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5811 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
5813 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5815 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
5817 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5820 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5821 of unsigned char to store leading-byte.
5823 * chartab.c (get_non_ascii_char_table_value): Don't use
5824 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5826 * file-coding.c (encode_coding_big5): Delete bogus implementation
5829 * character.h (LEADING_BYTE_*): Delete definition for
5831 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5832 (LEADING_BYTE_PREFIX_P): Deleted.
5833 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5834 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5835 (BUFBYTE_LEADING_BYTE_P): Deleted.
5836 (CHARSET_PRIVATE_P): Deleted unconditionally.
5837 (rep_bytes_by_first_byte): Deleted unconditionally.
5838 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5839 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5840 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5841 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5842 (CHAR_FIELD2): Deleted.
5843 (CHAR_FIELD3): Deleted.
5844 (MAKE_CHAR): Delete definition for non-UTF-2000.
5845 (BREAKUP_CHAR_1_UNSAFE): Deleted.
5846 (breakup_char_1): New implementation.
5847 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5848 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5850 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
5852 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5855 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
5857 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5858 (CHARSET_PRIVATE_P): Likewise.
5859 (XCHARSET_PRIVATE_P): Likewise.
5860 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5862 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5864 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5866 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
5868 * character.h (LEADING_BYTE_*): Changed in UTF2000.
5869 (NUM_LEADING_BYTES): Changed from 128 to 256.
5870 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5871 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5873 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5875 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5877 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5878 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5879 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5880 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5881 (Qchinese_cns11643_3): New variable in UTF2000.
5882 (Qchinese_cns11643_4): New variable in UTF2000.
5883 (Qchinese_cns11643_5): New variable in UTF2000.
5884 (Qchinese_cns11643_6): New variable in UTF2000.
5885 (Qchinese_cns11643_7): New variable in UTF2000.
5886 (syms_of_mule_charset): Define `chinese-cns11643-3',
5887 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5888 and `chinese-cns11643-7' in UTF2000.
5889 (vars_of_mule_charset): Initialize
5890 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5892 (complex_vars_of_mule_charset): Setup charset
5893 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5894 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5896 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5898 * mule-charset.c: Move setting for `leading-code-private-11' from
5899 `syms_of_mule_charset' to `vars_of_mule_charset'.
5901 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5903 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5904 and `NUM_LEADING_BYTES' in assert.
5906 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
5908 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5910 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5911 `NUM_LEADING_BYTES' instead of 128.
5913 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
5915 * mule-charset.h (charset_by_leading_byte): Use
5916 `NUM_LEADING_BYTES' instead of 128.
5917 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5919 * mule-charset.c (charset_by_leading_byte): Use
5920 `NUM_LEADING_BYTES' instead of 128.
5921 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5923 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5926 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
5928 * mule-charset.c (syms_of_mule_charset): Update to
5931 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5933 * file-coding.c (encode_coding_sjis): New implementation for
5934 UTF2000. (decode_coding_sjis): Ditto.
5936 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
5938 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5939 Don't define in UTF2000.
5941 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5944 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5945 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5948 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
5950 * config.h.in (CHAR_IS_UCS4): New macro.
5952 * mule-charset.c (rep_bytes_by_first_byte): Modify for
5953 conventional MULE representation.
5954 (syms_of_mule_charset): Update to 0.3 (Imamiya).
5956 * mule-charset.h: Reverted to original.
5958 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5959 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5960 "mule-charset.h" if CHAR_IS_UCS4 is defined.
5962 * character.h: New file.
5964 * file-coding.c (Fmake_coding_system): Set 1 to
5965 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5967 (encode_coding_no_conversion): New implementation for UTF2000.
5969 * file-coding.h (struct Lisp_Coding_System): Add new member
5972 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
5974 * file-coding.c (decode_coding_iso2022): Code-point arguments of
5975 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5976 (encode_coding_iso2022): New implementation for UTF2000.
5978 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5980 * mule-canna.c (c2mu): New implementation for UTF2000.
5983 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5985 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5987 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5989 * file-coding.c (reset_encoding_stream): Set 0 to
5990 `str->iso2022.current_char_boundary' in UTF2000.
5991 (encode_utf8): Don't define in UTF2000.
5992 (encode_coding_utf8): New implementation for UTF-8 representation
5994 (complex_vars_of_file_coding): Define coding-system `utf-8'.
5996 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
5998 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
6000 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6002 (REP_BYTES_BY_FIRST_BYTE): Likewise.
6004 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6006 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6007 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6008 as UTF-8 in UTF2000.
6009 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6010 (non_ascii_valid_char_p): Don't define in UTF2000.
6011 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6012 (Lstream_get_emchar_1): Likewise.
6013 (utf-2000-version): New variable in UTF2000.
6015 * lread.c (read_escape): Add new reader `u'.
6017 * insdel.c (three_to_one_table): Don't define in UTF2000.
6018 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6019 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6021 (bytind_to_bufpos_func): Likewise.
6022 (buffer_mule_signal_inserted_region): Likewise.
6023 (vars_of_insdel): Don't initialize `three_to_one_table'.
6024 (init_buffer_text): Use `buf->text->mule_size' instead of
6025 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6028 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6029 UTF-8 representation in UTF2000.
6030 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6031 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6032 (decode_coding_iso2022): Don't define local variable `lb' in
6033 UTF2000; don't use LEADING_BYTE in UTF2000; use
6034 `DECODE_ADD_UCS_CHAR' in UTF2000.
6035 (convert_to_external_format): Decode as UTF-8 in UTF2000.
6037 * config.h.in (UTF2000): New macro.
6039 * buffer.h (struct buffer_text): Add new member `mule_size' and
6040 don't add `mule_shifter' and `mule_three_p' in UTF2000.
6041 (valid_char_p): Return always 1 in UTF2000.
6042 (MAX_EMCHAR_LEN): 6 in UTF2000.
6043 (three_to_one_table): Don't define in UTF2000.
6044 (real_bufpos_to_bytind): Modify for UTF-8 representation in
6046 (real_bytind_to_bufpos): Likewise.
6048 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6050 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
6052 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6053 representation change.
6054 (Vutf_2000_version): New variable.
6055 (leading_code_private_11): New variable.
6056 (syms_of_mule_charset): Add new variables `utf-2000-version' and
6057 `leading-code-private-11'.
6059 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6060 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6061 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6062 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6063 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6064 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6065 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6066 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6067 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6068 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6069 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6070 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6071 (MIN_CHAR_GREEK): New macro.
6072 (MAX_CHAR_GREEK): New macro.
6073 (MIN_CHAR_CYRILLIC): New macro.
6074 (MAX_CHAR_CYRILLIC): New macro.
6075 (MIN_CHAR_HEBREW): New macro.
6076 (MAX_CHAR_HEBREW): New macro.
6077 (MIN_CHAR_THAI): New macro.
6078 (MAX_CHAR_THAI): New macro.
6079 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6080 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6081 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6082 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6083 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6084 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6085 (CHAR_FIELD2): New inline function.
6086 (CHAR_FIELD3): New inline function.
6087 (MULE_CHAR_PRIVATE_OFFSET): New macro.
6088 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6089 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6090 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6091 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6092 (MIN_CHAR_COMPOSITION): Likewise.
6093 (CHAR_LEADING_BYTE): Modified for character representation change.
6094 (MAKE_CHAR): Likewise.
6096 * lisp.h (Vcharset_latin_iso8859_1): New variable.
6097 (Vcharset_greek_iso8859_7): Likewise.
6098 (Vcharset_cyrillic_iso8859_5): Likewise.
6099 (Vcharset_hebrew_iso8859_8): Likewise.
6100 (Vcharset_thai_tis620): Likewise.
6101 (Vcharset_katakana_jisx0201): Likewise.
6103 2008-12-28 Vin Shelton <acs@xemacs.org>
6105 * XEmacs 21.4.22 is released
6107 2008-12-27 Vin Shelton <acs@xemacs.org>
6109 * syswindows.h: Don't define wide character interfaces for Cygwin
6112 2008-03-05 Dominique Quatravaux <domq@cpan.org>
6114 * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6116 2008-11-01 Stephen J. Turnbull <stephen@xemacs.org>
6118 * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6119 From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6121 2008-12-25 Vin Shelton <acs@xemacs.org>
6123 * mule-ccl.c (ccl_driver): Fix off-by-one error.
6124 By Julian Bradfield in
6125 <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6127 * mule-ccl.c (ccl_driver):
6129 2007-10-07 Vin Shelton <acs@xemacs.org>
6131 * XEmacs 21.4.21 is released
6133 2007-08-14 Marcus Crestani <crestani@xemacs.org>
6135 * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6137 2007-02-17 Stephen J. Turnbull <stephen@xemacs.org>
6139 * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6140 (png_instantiate): Initialize setjmp_buffer early, and avoid
6141 recursive entry to error handler.
6143 2007-06-23 Stephen J. Turnbull <stephen@xemacs.org>
6145 * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6148 2007-05-12 Aidan Kehoe <kehoea@parhasard.net>
6150 * event-Xt.c (x_reset_modifier_mapping):
6151 * event-gtk.c (gtk_reset_modifier_mapping):
6152 Zero out the device's modifier map once we've freed it, to prevent
6153 a double free on a re-entrant call.
6155 2007-05-17 Vin Shelton <acs@xemacs.org>
6157 * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6158 64-bit linux. Patch from Hans de Graaff.
6160 2007-05-02 Vin Shelton <acs@xemacs.org>
6162 * dumper.c (pdump): Don't close pdump_fd (already closed by
6163 fclose() call. Patch from Steve Higham.
6164 * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6165 already closed. Patch inspired by Steve Higham.
6167 2007-05-01 Vin Shelton <acs@xemacs.org>
6169 * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6170 (mswindows_fstat): Ditto.
6171 * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6173 2007-02-08 Adrian Aichner <adrian@xemacs.org>
6175 * postgresql.c: Update Steve Baur's email address by his request.
6176 * postgresql.h: Ditto.
6178 2007-01-04 Vin Shelton <acs@xemacs.org>
6180 * fileio.c (check_writable): Check old-style readonly bit only for
6183 2006-12-25 Benson I. Margulies <benson@dchbk.us>
6185 * src/fileio.c (check_writable):
6186 Cope with the fact that the read-only attribute trumps Windows NTFS
6190 2006-12-09 Vin Shelton <acs@xemacs.org>
6192 * XEmacs 21.4.20 is released
6194 2006-12-08 Nelson Ferreira <njsf@sxemacs.org>
6196 * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6197 relocated the definitions to be used sooner in file.
6198 (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6199 XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6202 2006-11-29 Aidan Kehoe <kehoea@parhasard.net>
6204 * sound.c (init_native_sound):
6205 Only X11 and GTK devices can possibly not be on the console of the
6206 associated machine. Fixes a crash when init_native_sound is called
6207 on a msprinter device.
6209 2006-11-14 Stephen J. Turnbull <stephen@xemacs.org>
6211 * buffer.c (buffer-file-name): Document invariant.
6212 (buffer-file-truename): Sync wording to buffer-file-name.
6213 Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6216 2006-11-19 Benson Margulies <benson@dchbk.us>
6218 * fileio.c: Add code to use full Win32 API to check for write
6219 access. Win32 has the general design policy that you aren't
6220 supposed to ask this question, since security checks change
6221 depending on asynchronous processes. Nonetheless, there is a way,
6222 by acting as if we are a server doing interpretive access
6225 2006-07-31 Aidan Kehoe <kehoea@parhasard.net>
6227 * bytecode.c: Use xnew_array instead of alloca.
6229 2006-07-04 Vin Shelton <acs@xemacs.org>
6231 * redisplay-msw.c: Fix tiny, but crucial typo.
6233 2006-06-22 Jerry James <james@xemacs.org>
6235 * EmacsShell-sub.c (ChangeManaged):
6236 * device-x.c (x_IO_error_handler): Do not dereference d if it is
6238 * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6239 checking if it is NULL. Also fix a memory leak.
6240 * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6241 dereference it, not the other way around.
6242 * dumper.c (pdump_register_object): Fix off-by-one array bounds
6244 * dumper.c (pdump_register_struct): Ditto.
6245 * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6246 to (short) warnpath overflow warnpath.
6247 * extents.c (detach_all_extents): Call extent_list_delete_all with
6248 a non-NULL parameter only.
6249 * glyphs-widget.c (widget_query_geometry): Guard against possibly
6250 NULL width and height.
6251 * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6252 xic before checking if they are NULL.
6253 * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6255 * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6256 * nas.c (Err): Fix a memory leak.
6257 * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6258 Don't create the buffer if there is nothing to do.
6259 * redisplay-msw.c (mswindows_output_display_block): Ditto.
6260 * redisplay-output.c (redisplay_output_layout): Ditto.
6261 * redisplay-tty.c (tty_output_display_block): Ditto.
6262 * redisplay-x.c (x_output_display_block): Ditto.
6263 * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6264 dereference instance->scrollbar_data if it is NULL.
6265 * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6266 * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6267 for sb->scrollbar_data.
6268 * sound.c (init_native_sound): Avoid a buffer overflow by
6269 allocating a buffer with the appropriate size.
6271 2006-05-08 Stephen J. Turnbull <stephen@xemacs.org>
6273 * EmacsShell-sub.c (RootGeometryManager):
6274 Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6275 Based on a suggestion by Francois L'Archeveque.
6277 2006-03-21 Malcolm Purvis <malcolmp@xemacs.org>
6279 * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6280 current values found in GNU Emacs.
6282 2006-03-17 Vin Shelton <acs@xemacs.org>
6284 * dialog-msw.c (handle_directory_dialog_box): Don't declare
6285 Q_title here. LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6287 * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6288 'hex_initialized' because it conflicts with 'initialized' in
6291 2006-01-28 Vin Shelton <acs@xemacs.org>
6293 * XEmacs 21.4.19 is released
6295 2006-01-20 Rick Rankin <rrankin1424-xemacs@yahoo.com>
6297 * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6299 2005-12-24 Aidan Kehoe <kehoea@parhasard.net>
6301 * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6304 2005-12-05 Dr. Volker Zell <Dr.Volker.Zell@oracle.com>
6306 * database.c: Suppress compiler warning under Cygwin.
6307 * database.c: Removed __FreeBSD__ check, should be handled by
6308 HAVE_U_xxx_T defines.
6310 2005-12-18 Malcolm Purvis <malcolmp@xemacs.org>
6312 * console.c (stuff_buffered_input): Compile body only if
6315 2005-05-10 Aidan Kehoe <kehoea@parhasard.net>
6317 * callproc.c: #include sysdir.h, so that any appropriate Mule
6318 magic happens with the chdir() call when calling a subprocess.
6320 2005-12-06 Aidan Kehoe <kehoea@parhasard.net>
6322 * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6323 * mule-ccl.c: Check that a character set exists before using it
6324 to create a character.
6326 2005-12-06 Vin Shelton <acs@xemacs.org>
6328 * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6331 2005-12-03 Vin Shelton <acs@xemacs.org>
6333 * XEmacs 21.4.18 is released
6335 2005-11-27 Kean Johnston <kean@armory.com>
6337 * redisplay-tty.c (set_tty_modes):
6338 (reset_tty_modes): disable auto-margins if the terminal supports
6340 (init_tty_for_redisplay): fix cursor shape.
6342 2005-04-05 Aidan Kehoe <kehoea@parhasard.net>
6344 * mule-ccl.c (ccl_driver): Calculate the charset and position code
6345 for control-1 characters properly, both when reading multibyte
6346 characters and writing them.
6348 2005-03-12 Aidan Kehoe <kehoea@parhasard.net>
6350 * config.h.in: Make HAVE_XTREGISTERDRAWABLE available.
6351 * select-x.c (x_reply_selection_request): Use it; fix the bug we
6352 were seeing with incremental selection transfer failing.
6354 2005-11-26 Vin Shelton <acs@xemacs.org>
6356 * callproc.c (Fold_call_process_internal): Create the buffer if it
6357 does not already exist. The original patch came from Ben Wing in
6358 http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6360 2002-05-13 Adrian Aichner <adrian@xemacs.org>
6362 * callproc.c: Process-related docstring improvements spurred by
6365 2005-11-25 Vin Shelton <acs@xemacs.org>
6367 * depend: Regenerated.
6369 2005-07-11 Malcolm Purvis <malcolmp@xemacs.org>
6371 * glyphs-gtk.c: Rename a local static variable because gcc 4.0
6372 says it clashes with a global with the same name.
6374 2005-07-11 Atanu Ghosh <atanu@icsi.berkeley.edu>
6376 * sysdll.c (dll_open): Under MacOS X return NULL under the
6377 filename is NULL. Fixes problems finding local symbols under 10.4
6380 2005-11-15 Dr. Volker Zell <Dr.Volker.Zell@oracle.com>
6382 * config.h.in: New HAVE_U_INT*_T defines.
6384 * database.c: Only use u_int*_t typedefs if not already
6387 2005-04-07 15:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6389 * src/process-unix.c (unix_open_network_stream): moved
6390 'portbuf' buffer out of an inner block as it is used in the
6391 entire function. With gcc4, the stack may get corrupted
6392 after leaving this block. This patches adjusts the size of
6393 the used buffer also; static '128' bytes are far too much
6394 currently and might not suffice for future architectures
6395 (e.g. for 512 bit ones ;)). Instead of, use only the really
6396 required space (max octets * ln(256)/ln(10) chars + space
6397 for '\0' and the sign)
6399 2005-04-08 Aidan Kehoe <kehoea@parhasard.net>
6401 * callproc.c: Include sysdir.h, so any necessary Mule processing
6402 is done on the current directory name before starting a new
6405 2005-04-06 Stephen J. Turnbull <stephen@xemacs.org>
6407 * chartab.c (Fchar_table_p):
6408 (Fget_range_char_table):
6411 Describe range representation and fix typo.
6413 2005-02-12 Vin Shelton <acs@xemacs.org>
6415 * emacs.c (shut_down_emacs): Advise users to send email to the
6416 xemacs-beta list instead of crashes@xemacs.org.
6418 2005-02-03 David Evers <extsw@appliedgenerics.com>
6420 * process-unix.c (unix_send_process): Flush the last chunk, even
6421 when the pipe is blocked.
6423 2005-02-06 Vin Shelton <acs@xemacs.org>
6425 * XEmacs 21.4.17 is released
6427 2005-01-31 Ben Wing <ben@xemacs.org>
6430 Define assert_failed() always.
6432 Always define ABORT().
6434 2005-01-25 Ben Wing <ben@xemacs.org>
6437 * Makefile.in.in (%.o):
6438 Don't compile executable as Windows (-mwindows) under Cygwin.
6439 Semi-recent changes to Cygwin's executable-startup handling make
6440 it impossible to access the TTY this way.
6442 Don't use special linker file under Cygwin (cygwin.sc) except
6443 when non-PDUMP (even in this case it is highly questionable); you
6446 1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6447 5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6449 2005-01-29 Ben Wing <ben@xemacs.org>
6451 Port this: 2003-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6453 * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6455 2005-01-29 Ben Wing <ben@xemacs.org>
6457 * bytecode.c (optimize_compiled_function):
6459 * print.c (long_to_string):
6460 Add casts to avoid warning.
6463 Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6464 #### The better solution is to move the TIFF and JPEG code to
6467 * glyphs-msw.c (mswindows_xbm_instantiate):
6468 Define __STDC__ to avoid problems with compface.h.
6470 * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6472 * EmacsShell-sub.c (ABORT):
6473 * EmacsShell-sub.c (SuperClassRootGeometryManager):
6474 * EmacsShell-sub.c (RootGeometryManager):
6476 * EmacsShell.c (ABORT):
6477 * EmacsShell.c (EmacsShellUpdateSizeHints):
6478 * alloc.c (free_lcrecord):
6479 * alloca.c (i00afunc):
6480 * buffer.c (delete_from_buffer_alist):
6481 * buffer.c (MARKED_SLOT):
6482 * bytecode.c (execute_rare_opcode):
6483 * bytecode.c (optimize_byte_code):
6484 * bytecode.c (Ffetch_bytecode):
6485 * chartab.c (char_table_type_to_symbol):
6486 * chartab.c (Freset_char_table):
6487 * chartab.c (decode_char_table_range):
6488 * chartab.c (Fget_range_char_table):
6489 * chartab.c (check_valid_char_table_value):
6490 * chartab.c (map_char_table):
6491 * chartab.c (slow_map_char_table_fun):
6492 * chartab.c (chartab_instantiate):
6493 * cm.c (cmcheckmagic):
6494 * console-msw.c (DHEADER):
6495 * console.c (MARKED_SLOT):
6496 * data.c (finish_marking_weak_lists):
6497 * data.c (encode_weak_list_type):
6498 * debug.h (DASSERT):
6499 * device-gtk.c (gtk_init_device):
6500 * device-msw.c (mswindows_get_default_margin):
6501 * device-tty.c (tty_init_device):
6502 * device-x.c (get_device_from_display):
6503 * device-x.c (x_get_visual_depth):
6504 * doprnt.c (parse_doprnt_spec):
6505 * doprnt.c (get_doprnt_args):
6506 * dumper.c (pdump_get_indirect_count):
6507 * dumper.c (pdump_register_sub):
6508 * dumper.c (pdump_register_object):
6509 * dumper.c (pdump_register_struct):
6510 * dumper.c (pdump_dump_data):
6511 * dumper.c (pdump_reloc_one):
6512 * elhash.c (print_hash_table):
6513 * elhash.c (make_standard_lisp_hash_table):
6514 * elhash.c (hash_table_instantiate):
6516 * emacs.c (Fforce_debugging_signal):
6517 * emacs.c (sort_args):
6519 * emacs.c (assert_failed):
6520 * eval.c (throw_or_bomb_out):
6521 * eval.c (signal_1):
6524 * event-Xt.c (emacs_Xt_mapping_action):
6525 * event-Xt.c (Xt_process_to_emacs_event):
6527 * event-stream.c (check_event_stream_ok):
6528 * event-stream.c (Fadd_timeout):
6529 * event-stream.c (Fadd_async_timeout):
6530 * event-stream.c (Fdiscard_input):
6531 * event-stream.c (execute_internal_event):
6532 * event-stream.c (Frecent_keys):
6533 * event-stream.c (extract_this_command_keys_nth_mouse_event):
6534 * event-stream.c (lookup_command_event):
6535 * event-unixoid.c (poll_fds_for_input):
6537 * events.c (mark_event):
6538 * events.c (event_equal):
6539 * events.c (event_hash):
6540 * events.c (Fmake_event):
6541 * events.c (Fdeallocate_event):
6542 * events.c (event_chain_find_previous):
6543 * events.c (event_to_character):
6544 * events.c (format_event_object):
6545 * events.c (Fevent_type):
6546 * events.c (event_pixel_translation):
6547 * events.c (Fevent_properties):
6548 * extents.c (extent_in_region_p):
6549 * extents.c (print_extent):
6550 * extents.c (process_extents_for_insertion_mapper):
6551 * extents.c (report_extent_modification_mapper):
6552 * extents.c (glyph_layout_to_symbol):
6553 * faces.c (face_validate):
6554 * file-coding.c (eol_type_to_symbol):
6555 * file-coding.c (subsidiary_coding_system):
6556 * file-coding.c (Fcoding_system_type):
6557 * file-coding.c (Fcoding_system_property):
6558 * file-coding.c (mule_decode):
6559 * file-coding.c (mule_encode):
6560 * file-coding.c (encode_coding_ucs4):
6561 * file-coding.c (encode_coding_utf8):
6562 * file-coding.c (parse_iso2022_esc):
6563 * file-coding.c (encode_coding_iso2022):
6568 * fns.c (Fbase64_encode_region):
6569 * fns.c (Fbase64_encode_string):
6570 * fns.c (Fbase64_decode_region):
6571 * fns.c (Fbase64_decode_string):
6572 * font-lock.c (find_context):
6573 * font-lock.c (context_to_symbol):
6574 * frame-gtk.c (gtk_set_frame_pointer):
6575 * frame-gtk.c (gtk_update_frame_external_traits):
6576 * frame-x.c (x_wm_mark_shell_size_user_specified):
6577 * frame-x.c (x_wm_mark_shell_position_user_specified):
6578 * frame-x.c (x_wm_set_shell_iconic_p):
6579 * frame-x.c (x_wm_set_cell_size):
6580 * frame-x.c (x_wm_set_variable_size):
6581 * frame-x.c (x_wm_store_class_hints):
6582 * frame-x.c (x_wm_maybe_store_wm_command):
6583 * frame-x.c (x_initialize_frame_size):
6584 * frame-x.c (x_update_frame_external_traits):
6586 * frame.c (delete_frame_internal):
6587 * frame.c (mouse_pixel_position_1):
6588 * frame.c (change_frame_size_1):
6589 * free-hook.c (check_free):
6590 * free-hook.c (check_realloc):
6591 * free-hook.c (note_block_input):
6592 * free-hook.c (log_gcpro):
6593 * gccache-gtk.c (gc_cache_lookup):
6594 * glyphs-eimage.c (tiff_memory_write):
6595 * glyphs-gtk.c (gtk_finalize_image_instance):
6596 * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6597 * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6598 * glyphs-gtk.c (gtk_xpm_instantiate):
6599 * glyphs-gtk.c (gtk_unmap_subwindow):
6600 * glyphs-gtk.c (gtk_map_subwindow):
6601 * glyphs-gtk.c (gtk_button_redisplay):
6603 * glyphs-msw.c (init_image_instance_from_xbm_inline):
6604 * glyphs-x.c (init_image_instance_from_xbm_inline):
6605 * glyphs-x.c (extract_xpm_color_names):
6606 * glyphs-x.c (x_xpm_instantiate):
6607 * glyphs.c (get_image_instantiator_governing_domain):
6608 * glyphs.c (print_image_instance):
6609 * glyphs.c (image_instance_equal):
6610 * glyphs.c (image_instance_hash):
6611 * glyphs.c (encode_image_instance_type):
6612 * glyphs.c (make_image_instance_1):
6613 * glyphs.c (inherit_instantiate):
6614 * glyphs.c (image_instantiate):
6615 * glyphs.c (allocate_glyph):
6616 * glyphs.c (Fglyph_type):
6617 * glyphs.c (redisplay_subwindow):
6618 * glyphs.c (display_table_entry):
6619 * gtk-glue.c (xemacs_list_to_gtklist):
6620 * gtk-glue.c (xemacs_gtklist_to_list):
6621 * gtk-glue.c (xemacs_list_to_array):
6622 * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6623 * gutter.c (gutter_was_visible):
6624 * gutter.c (get_gutter_coords):
6625 * input-method-xlib.c (get_XIM_input):
6626 * insdel.c (bufpos_to_bytind_func):
6627 * insdel.c (bytind_to_bufpos_func):
6628 * insdel.c (move_gap):
6629 * intl.c (x_get_composed_input):
6630 * keymap.c (keymap_lookup_directly):
6631 * keymap.c (keymap_delete_inverse_internal):
6632 * keymap.c (ensure_meta_prefix_char_keymapp):
6633 * keymap.c (accessible_keymaps_mapper_1):
6634 * keymap.c (where_is_recursive_mapper):
6637 * lread.c (read_atom):
6638 * lstream.c (Lstream_delete):
6639 * lstream.c (make_lisp_buffer_stream_1):
6640 * macros.c (pop_kbd_macro_event):
6641 * malloc.c (malloc):
6643 * marker.c (bi_marker_position):
6644 * marker.c (set_bi_marker_position):
6645 * menubar-gtk.c (menu_descriptor_to_widget_1):
6646 * menubar-msw.c (prune_menubar):
6647 * menubar-x.c (set_frame_menubar):
6648 * mule-charset.c (get_unallocated_leading_byte):
6649 * mule-charset.h (CHAR_LEADING_BYTE):
6650 * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6651 * nt.c (init_environment):
6652 * nt.c (generate_inode_val):
6653 * ntproc.c (delete_child):
6654 * ntproc.c (_sys_read_ahead):
6655 * ntproc.c (create_child):
6656 * objects.c (color_instantiate):
6657 * objects.c (font_instantiate):
6658 * objects.c (face_boolean_instantiate):
6659 * print.c (printing_major_badness):
6660 * process-nt.c (nt_send_process):
6661 * process-unix.c (unix_send_process):
6662 * process.c (get_process):
6663 * ralloc.c (obtain):
6664 * ralloc.c (relinquish):
6665 * ralloc.c (relocate_blocs):
6666 * ralloc.c (resize_bloc):
6667 * ralloc.c (r_alloc_free):
6668 * ralloc.c (r_re_alloc):
6669 * ralloc.c (r_alloc_thaw):
6670 * ralloc.c (init_ralloc):
6671 * ralloc.c (Free_Addr_Block):
6672 * ralloc.c (r_alloc):
6673 * redisplay-gtk.c (gtk_output_display_block):
6674 * redisplay-msw.c (mswindows_output_display_block):
6675 * redisplay-output.c (get_next_display_block):
6676 * redisplay-output.c (get_cursor_size_and_location):
6677 * redisplay-output.c (redisplay_output_layout):
6678 * redisplay-output.c (redisplay_clear_region):
6679 * redisplay-tty.c (tty_output_display_block):
6680 * redisplay-x.c (x_output_display_block):
6681 * redisplay.c (add_propagation_runes):
6682 * redisplay.c (add_glyph_rune):
6683 * redisplay.c (create_text_block):
6684 * redisplay.c (add_margin_runes):
6685 * redisplay.c (create_left_glyph_block):
6686 * redisplay.c (create_right_glyph_block):
6687 * redisplay.c (create_string_text_block):
6688 * redisplay.c (regenerate_window):
6689 * redisplay.c (REGEN_INC_FIND_START_END):
6690 * redisplay.c (redisplay_frame):
6691 * redisplay.c (point_in_line_start_cache):
6694 * regex.c (re_compile_fastmap):
6695 * regex.c (re_match_2_internal):
6696 * regex.c (regerror):
6697 * scrollbar-gtk.c (gtk_scrollbar_loop):
6698 * scrollbar-gtk.c (scrollbar_cb):
6699 * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6700 * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6701 * scrollbar-x.c (x_update_scrollbar_instance_status):
6702 * scrollbar-x.c (x_scrollbar_loop):
6703 * scrollbar-x.c (x_update_frame_scrollbars):
6704 * search.c (search_command):
6705 * search.c (Fmatch_data):
6706 * select-x.c (motif_clipboard_cb):
6707 * signal.c (interrupt_signal):
6708 * specifier.c (specifier_add_spec):
6709 * specifier.c (specifier_instance_from_inst_list):
6710 * specifier.c (specifier_instance):
6712 * specifier.h (struct specifier_methods):
6713 * strftime.c (add_num_time_t):
6714 * sunplay.c (init_device):
6715 * symbols.c (Fsetplist):
6716 * symbols.c (do_symval_forwarding):
6717 * symbols.c (store_symval_forwarding):
6719 * symbols.c (Fbuilt_in_variable_type):
6720 * symbols.c (decode_magic_handler_type):
6721 * symbols.c (handler_type_from_function_symbol):
6722 * syntax.c (update_syntax_cache):
6723 * sysdep.c (init_baud_rate):
6724 * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6725 * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6726 * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6727 * toolbar.c (get_toolbar_coords):
6728 * ui-gtk.c (build_gtk_boxed):
6729 * ui-gtk.c (describe_gtk_arg):
6730 * ui-gtk.c (gtk_type_to_lisp):
6731 * ui-gtk.c (lisp_to_gtk_type):
6732 * ui-gtk.c (lisp_to_gtk_ret_type):
6733 * ui-gtk.c (lisp_to_flag):
6734 * unexnt.c (read_in_bss):
6735 * unexnt.c (map_in_heap):
6736 * window.c (real_window):
6737 * window.c (window_display_lines):
6738 * window.c (window_display_buffer):
6739 * window.c (set_window_display_buffer):
6740 * window.c (window_modeline_height):
6741 * window.c (unshow_buffer):
6742 * window.c (window_loop):
6743 * window.c (Fget_lru_window):
6744 * window.c (Fsplit_window):
6745 * window.c (Fset_window_configuration):
6746 * window.c (saved_window_index):
6747 * xgccache.c (gc_cache_lookup):
6748 abort() -> ABORT(). Eliminate preprocessor games with abort()
6749 since it creates huge problems in VC7, solvable only by including
6750 massive amounts of files in every compile (and not worth it).
6754 Inclusion of process.h does not need to be before lisp.h any more.
6755 Move later and remove comment about abort().
6757 2005-01-26 Arnaud Giersch <arnaud.giersch@free.fr>
6759 * regex.c (re_match_2_internal):
6760 Correctly initialize loop which clears uninitialized registers.
6762 2005-01-28 Vin Shelton <acs@xemacs.org>
6764 * sheap.c (more_static_core): Applied Ben's version of the long
6767 2005-01-24 Vin Shelton <acs@xemacs.org>
6769 * sheap.c (more_static_core): Reformatted printf string so
6770 gcc-3.3.3 will compile this on Cygwin.
6772 2004-02-22 Stephen J. Turnbull <stephen@xemacs.org>
6774 * console.c (function_key_map): Reference `key-binding'.
6776 * keymap.c (Vkey_translation_map): Improve docstring.
6778 2004-03-30 Zajcev Evgeny <zevlg@yandex.ru>
6780 * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6781 * window.c (window_loop): [fix] Take into account
6782 `allow-deletion-of-last-visible-frame' variable.
6783 * window.c (replace-buffer-in-windows): Ditto.
6785 2004-12-15 Stephen J. Turnbull <stephen@xemacs.org>
6787 * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6789 2005-01-20 Malcolm Purvis <malcolmp@xemacs.org>
6791 * event-gtk.c: Recognise AltGr as a valid modifier.
6793 2005-01-12 Ville Skyttä <scop@xemacs.org>
6795 * console-x.h: #include X11/keysym.h before xintrinsic.h.
6797 2005-01-13 Stephen J. Turnbull <stephen@xemacs.org>
6799 Fix backreference bug caught by test suite.
6801 * regex.c (regex_compile):
6802 Make backref duplicate internal register.
6804 2005-01-13 Stephen J. Turnbull <stephen@xemacs.org>
6806 Documentation, code clarification, and warning suppression.
6808 * regex.c (regex_compile):
6810 (re_match_2_internal):
6811 Improve comments and avoid redundant braces. [Most of the big hunk
6812 at l. 4710 is indentation; use diff -w to see the real changes.]
6813 (alt_match_null_string_p):
6814 (common_op_match_null_string_p):
6815 Avoid shadowing global on Mac OS X 10.4, at least.
6817 2004-09-08 Stephen J. Turnbull <stephen@xemacs.org>
6819 * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6820 introduced with shy groups fix). [Already applied, probably
6821 with the second "fix shy groups" patch of 2004-10-07.]
6823 2005-01-10 Steve Youngs <steve@sxemacs.org>
6825 From Andrey Slusar <anrays@gmail.com>:
6827 * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6829 2004-11-21 Malcolm Purvis <malcolmp@xemacs.org>
6831 * Makefile (RECURSIVE_MAKE): Removed.
6832 * Makefile (RECURSIVE_MAKE_ARGS): New. The new method for
6833 handling parallel builds.
6835 2004-09-08 Malcolm Purvis <malcolmp@xemacs.org>
6837 * Makefile.in.in: Enable support for parallel builds.
6839 2005-01-09 Steve Youngs <steve@sxemacs.org>
6841 From Andrey Slusar <anrays@gmail.com>:
6843 * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6844 FreeBSD version is >= 199701 _and_ < 600006.
6846 2005-01-06 Zajcev Evgeny <zevlg@yandex.ru>
6848 * scrollbar.c (compute_scrollbar_instance_usage):
6849 Only call device method compute_scrollbar_instance_usage() if it
6852 2004-12-05 Vin Shelton <acs@xemacs.org>
6854 * XEmacs 21.4.16 is released
6856 2004-12-04 Vin Shelton <acs@xemacs.org>
6858 * depend: Regenerated.
6860 2004-10-07 Stephen J. Turnbull <stephen@xemacs.org>
6862 * regex.c (re_match_2_internal): Map internal to external
6863 registers. Fixes bug identified by Steve Youngs 2004-09-30
6864 <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6866 2004-09-02 Yoshiki Hayashi <yoshiki@xemacs.org>
6868 * buffer.c (Frecord_buffer): Make sure the argument is buffer
6869 to fix a crash. Also, check the buffer is live and it
6870 really exists in buffer_list. If the buffer is not in the list,
6873 2004-09-08 Stephen J. Turnbull <stephen@xemacs.org>
6875 Fix shy groups by implementing recording of all groups for
6876 repetition and backtracking. Backport from 21.5.
6878 * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6879 external_to_internal_register, external_to_internal_register_size,
6880 and update comments for re_nsub.
6882 * regex.c (re_opcode_t): Update comments.
6883 (print_compiled_pattern): Ouput external_to_internal_register,
6884 external_to_internal_register_size, and re_ngroups for debugging.
6885 (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6886 (regex_compile): Update header comment.
6887 Ensure that all groups are recorded so that repeat matches and
6888 backtracking work correctly. Comment related warning for groups >
6890 (re_search_2): Construct map of API indexes (which count only
6891 nonshy groups) to internal register numbers, and keep it updated.
6893 2004-07-27 Malcolm Purvis <malcolmp@xemacs.org>
6895 * frame-gtk.c (gtk_make_frame_visible):
6896 * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6897 show/hide. This is what X uses and is prevents previously hidden
6898 widgets from suddenly reappearing.
6899 * gtk-xemacs.c (gtk_xemacs_paint):
6900 * gtk-xemacs.c (gtk_xemacs_draw):
6901 * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6903 * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6904 size and location changes so that they can be seen before the next
6905 idle event. Without this rapid changes to scrollbar properties
6908 2004-07-02 Malcolm Purvis <malcolmp@xemacs.org>
6911 * console-gtk.h (struct gtk_frame):
6912 * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6913 Add hash tables track tab_control callback data.
6914 Added #defines for GTK object data names.
6915 Declaration of gtk_widget_to_frame().
6916 * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6917 * frame-gtk.c (gtk_widget_to_frame): New.
6918 * frame-gtk.c (gtk_create_widgets):
6919 * frame-gtk.c (allocate_gtk_frame_struct):
6920 * frame-gtk.c (gtk_mark_frame):
6921 Manage frame callbakc hash tables.
6922 * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6923 * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6924 * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6926 * glyphs-gtk.c (gtk_widget_query_geometry): New
6927 * glyphs-gtk.c (gtk_register_gui_item): New
6928 * glyphs-gtk.c (gtk_add_tab_item): New
6929 * glyphs-gtk.c (gtk_tab_control_callback): New
6930 * glyphs-gtk.c (gtk_tab_control_instantiate): New
6931 * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6932 Use correct list when loading item.
6933 * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6934 Register new methods.
6935 * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6936 default size, for widgets.
6937 * gui-x.c: Improved comment.
6938 * menubar-gtk.c (__generic_button_callback): Use
6939 gtk_widget_to_frame instead of __get_channel.
6941 * ui-gtk.c: Use symbolic names for GTK object data.
6943 2004-06-23 Ilya N. Golubev <gin@mo.msk.ru>
6945 * s/usg5-4.h (NSIG): Define only inside emacs binary.
6947 2002-03-04 Stephen J. Turnbull <stephen@xemacs.org>
6949 * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6951 2004-06-16 Malcolm Purvis <malcolmp@xemacs.org>
6953 * malloc.c (morecore): siz is a long because in some architectures
6954 (eg ia-64) an int cannot hold the address range. Additional patch
6955 from the SuSe distribution.
6957 2004-06-13 Malcolm Purvis <malcolmp@xemacs.org>
6960 * malloc.c: lim_data is a long because in some architectures
6961 (eg ia-64) an int cannot hold the address range.
6962 * mem-limits.h: lim-data is a long. Linux uses getrlimit()
6963 instead of ulimit() because ulimit() always returns -1.
6965 2004-06-09 Stephen J. Turnbull <stephen@xemacs.org>
6967 * search.c: Reenable an ansync semaphore. Remove bogus comments.
6969 2004-06-11 David Kastrup <dak@gnu.org>
6971 * search.c (match_limit): Don't flag an error if match-data
6972 exceeding the allocated search_regs.num_regs gets requested, just
6975 2003-07-21 Malcolm Purvis <malcolmpurvis@optushome.com.au>
6977 * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6978 replace symbolic color entries with the real colors specified in
6979 xpm-color-symbols, before passing the XPM to gtk.
6980 * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6981 instead of a GTK specific field, so that it is used in by generic
6984 2004-05-05 Chuck Hines <chuck.hines@baesystems.com>
6986 * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6987 coredump from deref of NULL ptr (ExtData)
6989 2004-04-19 Jerry James <james@xemacs.org>
6991 * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6992 VALBITS to compute the location of the sign bit.
6993 * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6994 of VALBITS with EMACS_INT_MAX.
6995 * events.c (Fevent_timestamp): Ditto.
6996 * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6997 compute the halfway point to timestamp wraparound.
6998 * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6999 EMACS_INT_MIN instead of using VALBITS.
7000 * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7001 incorrect number with VALBITS.
7002 * fns.c (Frandom): Correct number of integer bits in docstring.
7003 Use INT_VALBITS instead of VALBITS to compute the denominator.
7004 * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7005 build random numbers.
7007 2004-03-23 Malcolm Purvis <malcolmpurvis@optushome.com.au>
7009 * event-gtk.c (gtk_event_to_emacs_event):
7011 * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7012 * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7013 * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7014 * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7015 * menubar-gtk.c (__activate_menu):
7016 * menubar-gtk.c (convert_underscores):
7017 * menubar-gtk.c (remove_underscores):
7018 * menubar-gtk.c (menu_convert):
7019 * menubar-gtk.c (menu_descriptor_to_widget_1):
7020 * menubar-gtk.c (menu_descriptor_to_widget):
7021 * menubar-gtk.c (menu_can_reuse_widget):
7022 * menubar-gtk.c (menu_create_menubar):
7023 * menubar-gtk.c (gtk_popup_menu):
7024 * menubar-gtk.c (Fgtk_build_xemacs_menu):
7025 Added support for Gtk menu bar and menu item mnemonics.
7027 2004-03-23 Malcolm Purvis <malcolmpurvis@optushome.com.au>
7029 * sysdll.c: (dll_function): Added support for finding symbols in
7030 Darwin shared libraries as well in Darwin bundles.
7031 * sysdll.c (image_for_address): New
7032 * sysdll.c (my_find_image): New
7033 * sysdll.c (search_linked_libs): New
7035 2004-03-23 Malcolm Purvis <malcolmpurvis@optushome.com.au>
7037 * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7038 return to GTK requires a different API to marshalling data to use
7040 * ui-gtk.c (lisp_to_gtk_ret_type): New.
7042 2004-03-08 Lutz Euler <lutz.euler@freenet.de>
7044 * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7046 2004-02-19 Stephen J. Turnbull <stephen@xemacs.org>
7048 * glyphs.c (process_image_string_instantiator):
7049 (Fset_console_type_image_conversion_list):
7050 Stop GCC from warning about shadowing of `exp'.
7052 * redisplay-x.c (x_output_string): Fix unsigned lossage.
7054 2004-02-19 Stephen J. Turnbull <stephen@xemacs.org>
7056 * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7058 2004-02-03 Vin Shelton <acs@xemacs.org>
7060 * glyphs.c (image_instance_layout): Remove pointless assertion.
7061 * regex.c (regex_grow_registers): Return type is void.
7063 2004-02-02 Vin Shelton <acs@xemacs.org>
7065 * XEmacs 21.4.15 is released
7067 2004-01-30 Glynn Clements <glynn.clements@virgin.net>
7069 * device-x.c (x_error_handler): Don't call stderr_out
7071 2003-11-07 Katsumi Yamaoka <yamaoka@jpl.org>
7073 * buffer.c (other-buffer): Clarify documentation of order of
7074 arguments for FSF Emacs.
7076 2003-10-11 Olivier Galibert <galibert@pobox.com>
7078 * window.c (Fdelete_window): Dirty the mirror structure _before_
7079 marking the window deleted.
7081 2003-09-15 Jerry James <james@xemacs.org>
7083 * event-msw.c (debug_mswin_messages): Conditionally compile
7084 messages missing from the Cygwin headers.
7086 2003-06-16 Stephen J. Turnbull <stephen@xemacs.org>
7088 * data.c (eq_with_ebola_notice): Fix typo in comment.
7089 (Ftrue_list_p): Improve docstring.
7091 2003-10-13 Stephen J. Turnbull <stephen@xemacs.org>
7093 * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7095 2003-09-27 Stephen J. Turnbull <stephen@xemacs.org>
7097 * search.c (trivial_regexp_p): Regexps containing "\{" are
7098 nontrivial. Thanks to Manfred Bartz for reporting the bug and
7099 Stefan Monnier for suggesting a diagnosis.
7101 2003-09-25 Stephen J. Turnbull <stephen@xemacs.org>
7103 * elhash.c (make-hash-table): Clarify use of :test #'equal.
7105 2003-09-12 Stephen J. Turnbull <stephen@xemacs.org>
7107 * search.c (Fsearch_forward):
7109 Document negative count.
7111 2003-09-13 Stephen J. Turnbull <stephen@xemacs.org>
7113 * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7115 2003-09-13 Martin Buchholz <martin@xemacs.org>
7117 * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7119 2003-09-15 Vin Shelton <acs@xemacs.org>
7121 * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7124 2003-09-12 Yoshiki Hayashi <yoshiki@xemacs.org>
7126 * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7127 (re_search_2): Match the first byte of Bufbyte, not Emchar.
7128 (re_match_2_internal): Use TRANSLATE instead of
7129 TRANSLATE_EXTENDED_UNSAFE. The latter was a hack to bypass
7130 non-ASCII char case conversion.
7132 2003-09-08 Mike Sperber <mike@xemacs.org>
7134 * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7135 RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7137 2003-06-14 Ilya N. Golubev <gin@mo.msk.ru>
7139 * .gdbinit (pobj): fix printing of symbol name.
7141 2003-08-01 Ilya N. Golubev <gin@mo.msk.ru>
7143 * frame-x.c (x_layout_widgets): When resizing is about to cause
7144 frame size slip, mark it for redisplay.
7146 2003-08-18 Jerry James <james@xemacs.org>
7148 * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7150 2003-09-03 Vin Shelton <acs@xemacs.org>
7152 * XEmacs 21.4.14 is released
7154 2003-08-15 Stephen J. Turnbull <stephen@xemacs.org>
7156 * config.h.in (REGEX_MALLOC): Make it configure'able.
7158 2003-08-14 Andrew Begel <abegel@CS.Berkeley.EDU>
7160 * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7162 * sysdll.c (dll_init):
7163 * sysdll.c (dll_open):
7164 * sysdll.c (dll_close):
7165 * sysdll.c (dll_function):
7166 * sysdll.c (dll_variable):
7167 * sysdll.c (dll_error):
7168 Add support for loading bundles using Darwin/MacOSX
7171 2003-08-12 Stephen J. Turnbull <stephen@xemacs.org>
7173 * process.c (start-process-internal): Document coding systems.
7175 2003-07-30 Jerry James <james@xemacs.org>
7177 * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7179 2003-07-31 René Kyllingstad <listmailxemacs@kyllingstad.com>
7181 * event-msw.c (mswindows_enqueue_mouse_button_event):
7182 * event-msw.c (mswindows_wnd_proc):
7183 enqueue button event when scrollwheel event isn't handled by
7184 mswindows_handle_mousewheel_event, such as when the scrollbars
7187 2003-07-29 Stephen J. Turnbull <stephen@xemacs.org>
7189 * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7191 2003-03-24 Stephen J. Turnbull <stephen@xemacs.org>
7193 * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7195 2003-03-21 Stephen J. Turnbull <stephen@xemacs.org>
7197 * regex.c (re_match_2_internal): Fix matching degenerate word
7200 2003-05-25 XEmacs Build Bot <builds@cvs.xemacs.org>
7202 * XEmacs 21.4.13 is released
7204 2003-03-20 Stephen J. Turnbull <stephen@xemacs.org>
7206 * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H):
7207 * lisp.h (<inttypes.h>):
7208 Cygwin defines these types in <cygwin/types.h>. Don't duplicate
7211 2003-03-15 Martin Buchholz <martin@xemacs.org>
7213 * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7214 Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7215 Result: "temacs can only be run in -batch mode."
7216 Fix: Check xemacs executable candidate for directory-ness.
7218 2003-03-03 Robert Pluim <rpluim@bigfoot.com>
7220 * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7221 they conflict with <sys/types.h>.
7223 2003-02-14 Martin Buchholz <martin@xemacs.org>
7225 * database.c: Berkeley DB wants __STDC__ to be defined.
7227 2003-02-13 Martin Buchholz <martin@xemacs.org>
7229 * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7231 2003-02-01 Martin Buchholz <martin@xemacs.org>
7233 * process-unix.c (unix_send_process): Fix C++ compile error.
7235 2003-02-25 Andrew Begel <abegel@cs.berkeley.edu>
7237 * Added .dylib as an acceptable shared library file extension
7238 * to support MacOSX.
7240 2003-02-01 Martin Buchholz <martin@xemacs.org>
7242 * EmacsFrameP.h (EmacsFramePart):
7243 Kludge to allow compiling with Motif1, but linking with Motif2.
7245 2003-01-28 Martin Buchholz <martin@xemacs.org>
7247 * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7250 2003-02-23 Stephen J. Turnbull <stephen@xemacs.org>
7252 * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7254 2003-02-06 Andrew Begel <abegel@CS.Berkeley.EDU>
7256 * sysdll.c: Included lisp.h to define needed alloca_array.
7258 2003-02-13 Martin Buchholz <martin@xemacs.org>
7260 Make XEmacs redisplay 10 times faster.
7261 If, that is, you're using a slow X connection and MoveOpaque.
7262 Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7263 Use compress_motion = TRUE.
7264 * EmacsFrame.c (emacsFrameClassRec):
7265 * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7266 * EmacsManager.c (emacsManagerClassRec):
7267 * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7269 2003-01-30 Vin Shelton <acs@xemacs.org>
7271 * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7273 2003-01-17 Stephen J. Turnbull <stephen@xemacs.org>
7275 * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7276 Patch by Martin Buchholz.
7278 2003-01-16 Stephen J. Turnbull <stephen@xemacs.org>
7280 * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7281 Thanks to icc for warning and Martin Buchholz for reporting.
7283 2003-01-29 Vin Shelton <acs@xemacs.org>
7285 Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7287 * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7288 remember to multiply by the element size.
7290 2003-01-15 Stephen J. Turnbull <stephen@xemacs.org>
7292 * XEmacs 21.4.12 "Portable Code" is released.
7294 2003-01-14 Sergey Okhapkin <sos@prospect.com.ru>
7296 * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7297 * s/cygwin.sc: new linker file.
7299 2003-01-14 Stephen J. Turnbull <stephen@xemacs.org>
7301 Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7303 * redisplay-x.c (x_output_string): Use X11-specified types.
7304 * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7305 * emacs.c (__free_hook): Use typeof with Intel compiler.
7306 * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7308 2003-01-08 Andy Piper <andy@xemacs.org>
7310 * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7311 reserve size during unexec().
7313 2003-01-07 Daiki Ueno <daiki@xemacs.org>
7315 * process-unix.c (unix_create_process): Don't let outchannel block.
7317 2003-01-05 Rick Rankin <rick_rankin@yahoo.com>
7319 * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7320 Needed for IsBadReadPtr().
7322 2003-01-03 Stephen J. Turnbull <stephen@xemacs.org>
7324 * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7326 2002-12-14 Ben Wing <ben@xemacs.org>
7328 * callint.c: Declaration error.
7330 * dumper.c (pdump_load): Warning fix.
7331 * process.c: GCPRO error.
7332 * glyphs.c (unmap_subwindow):
7333 * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7334 * event-stream.c (maybe_kbd_translate): Wrong argument to
7335 character_to_event().
7337 * alloc.c (garbage_collect_1):
7339 * emacs.c (debug_can_access_memory):
7340 * emacs.c (fatal_error_signal):
7341 * emacs.c (mswindows_handle_hardware_exceptions):
7344 * emacs.c (assert_failed):
7345 * emacs.c (syms_of_emacs):
7348 * print.c (std_handle_out_va):
7349 * print.c (write_string_to_stdio_stream):
7350 * print.c (write_fmt_string):
7351 * print.c (printing_badness):
7352 * print.c (printing_major_badness):
7353 * print.c (print_internal):
7354 * print.c (debug_print_no_newline):
7355 * print.c (debug_backtrace):
7356 Be more defensive in handling bad values when printing. Add code
7357 from trunk involving inhibit_non_essential_printing_operations.
7358 When going down or in debug_print(), don't do external conversion
7359 and such and try really, really hard when printing to avoid core
7360 dumping. Add force-debugging-signal, debug_break().
7362 2002-12-12 Stephen J. Turnbull <stephen@xemacs.org>
7364 * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7365 Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7367 2002-12-02 Greg Allen <greg_allen@westlb-systems.co.uk>
7369 * database.c: Fix open_database. Berkeley DB API has changed in
7370 4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7372 2002-11-26 Stephen J. Turnbull <stephen@xemacs.org>
7374 * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7376 2002-11-13 Stephen J. Turnbull <stephen@xemacs.org>
7378 * event-Xt.c (Xt_timeout):
7379 (Xt_timeout_callback):
7380 (emacs_Xt_add_timeout):
7381 (emacs_Xt_remove_timeout):
7382 (Xt_timeout_to_emacs_event):
7383 Turn completed_timeouts from a stack into a queue. Fixes
7384 deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7386 2002-11-07 Wolfram Gloger <wg@malloc.de>
7388 * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7389 * emacs.c (main): Assert that mmap'd allocation is disabled.
7391 2002-10-14 Andy Piper <andy@xemacs.org>
7393 * glyphs-widget.c (layout_query_geometry): add in fiddle
7394 factor. Include border text in width layout calculation.
7395 (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7397 2002-11-02 Stephen J. Turnbull <stephen@xemacs.org>
7399 * XEmacs 21.4.10 "Military Intelligence" is released.
7401 2002-10-17 Raymond Toy <toy@rtp.ericsson.se>
7403 * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was
7404 using the NAS private array SoundFileInfo that no longer exists in
7405 NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a
7406 and earlier. This is broken for some versions between 1.5a and
7409 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org>
7411 * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7413 * emacs.c (shut_down_emacs): Improve crash message.
7415 2002-10-09 Stephen J. Turnbull <stephen@xemacs.org>
7417 * file-coding.c (determine_real_coding_system): Check for coding
7418 cookie in first LINES_TO_CHECK lines (currently 2). Cater to
7419 shebangs and Python PEP 263.
7421 2002-10-08 Andy Piper <andy@xemacs.org>
7423 * glyphs-widget.c (layout_query_geometry): only resize dynamically
7424 if static sizes haven't been set.
7426 2002-08-30 Mike Alexander <mta@arbortext.com>
7428 * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7431 2002-10-03 Stephen J. Turnbull <stephen@xemacs.org>
7433 * callproc.c (child_setup): 21.4 doesn't have retry_close.
7435 2002-09-20 Mike Sperber <mike@xemacs.org>
7437 (This partially gets back my patch from 2002-07-20 without the
7439 * callproc.c (child_setup): Remove Ben's comment noting confusion
7440 over the file descriptors >= 3: close_process_descs() doesn't
7441 close those. Fix fd range to go up to MAXDESC-1 instead of 64.
7442 * process-unix.c (unix_create_process): Call
7443 begin_dont_check_for_quit to inhibit unwanted interaction (and
7444 thus breaking of X event synchronicity) in the child.
7446 2002-09-26 Golubev I. N. <gin@mo.msk.ru>
7448 * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7451 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu>
7453 * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7454 instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout,
7455 the xemacs process did not exit, but looped infinitely here. This
7458 2002-09-28 Stephen J. Turnbull <stephen@xemacs.org>
7460 * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7461 (find_context): Improve comments.
7463 * regex.c (re_compile_fastmap): Gratuitous #ifdef comment fixes.
7464 (re_match_2): An XCHAR_TABLE operation was missing.
7466 Many of the following changes were inspired by Andy Piper's (now
7467 obsolete) patch to make syntax-table text property lookup optional.
7471 * syntax.h (top level): Document semantics of syntax flags.
7472 * syntax.c (comstr_start, Fforward_comment): Improve comments.
7473 * syntax.c, syntax.h (top level): Document syntax cache better in
7476 [Instrument syntax caching (temporary change)]
7478 * syntax.h (enum syntax_cache_statistics_functions, struct
7479 syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7480 SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7481 * syntax.c (scan_words, Fforward_comment, scan_lists,
7482 Fbackward_prefix_characters):
7483 * font-lock.c (find_context):
7484 Use them to instrument syntax caching.
7485 * syntax.c (struct syntax_cache_statistics, scs_statistics,
7486 syntax_cache_statistics_function_names): New type and variables.
7487 * syntax.c (update_syntax_cache): Update and report statistics.
7489 [Major syntax cache optimizations]
7491 syntax.c (lookup_syntax_properties): Default off.
7493 * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7494 * syntax.c (update_syntax_cache):
7495 Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7497 [Minor syntax cache optimizations and code clarifications]
7499 * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7500 SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7501 SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7502 SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7503 SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7504 (Code clarification.)
7506 * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7507 scan_lists): Compute code from syncode, use Boolean macros instead
7508 of redundant masking operations. (Code clarification; any decent
7509 compiler can do this optimization.)
7511 * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7514 * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7515 PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7516 use F*_single_property_change instead of F*_extent_change.
7517 Currently F*_single_property_change is _much_ less efficient.
7519 * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7520 * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT): Initialize
7521 syntax_cache.object properly, don't leave Qt or Qnil.
7522 (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7523 * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7524 tests for Qt or Qnil.
7526 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org>
7528 * redisplay.c (point_in_line_start_cache):
7529 * extents.c (print_extent_1):
7532 * extents.c (Fset_extent_property): Document `syntax-table' property.
7534 * extents.h (Fnext_single_property_change): EXFUN it.
7536 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
7538 * search.c (clear_unused_search_regs): New static function.
7542 Use it. Fixes "stale match data" bug reported by Martin Stjernholm.
7543 Minor clarifications in comments.
7545 * regex.c (re_match_2_internal): Ensure no stale submatches.
7547 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
7549 * event-Xt.c (enqueue_focus_event): Add missing prototype.
7551 2002-08-29 Jerry James <james@xemacs.org>
7553 * lisp.h: structrures -> structures.
7555 2002-06-03 Andy Piper <andy@xemacs.org>
7557 * frame.c (frame_conversion_internal): add conversion appropriate
7558 for setting frame dimensions in pixels.
7560 * console.h (struct console_methods): add device-specific widget
7563 * emacs.c (main_1): initialize glyph vars.
7565 * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7566 (handle_focus_event_2): new function. Allow focus to
7567 be set to a particular window and widget.
7568 (enqueue_focus_event): new function. Create a
7569 synthetic focus event.
7570 (emacs_Xt_handle_magic_event): call
7571 handle_focus_event_2.
7573 * frame.c (Fset_frame_pixel_height): new function. Allow
7574 pixel-based sizing. Does the right thing on character-oriented
7576 (Fset_frame_pixel_width): ditto.
7577 (Fset_frame_pixel_size): ditto.
7578 (syms_of_frame): declare.
7580 * general-slots.h: add :vertically-justify and
7581 :horizontally-justify.
7583 * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7584 (mswindows_widget_border_width): new function.
7585 (mswindows_combo_box_instantiate): set border widths.
7586 (console_type_create_glyphs_mswindows): declare.
7589 (check_valid_justification): allow vertical and horizontal
7591 (widget_border_width): new function. Call device methods.
7592 (widget_instance_border_width): ditto.
7593 (logical_unit_height): new function. Determine the height of a
7594 logical-unit. Logical units are intended to provide grid-like
7595 layout for subcontrols in a layout. If the layout is
7596 :vertically-justify top then subcontrols will be positioned on
7597 logical-unit boundaries, thus allowing adjacent subcontrols to
7599 (widget_logical_unit_height): ditto for widgets.
7600 (redisplay_widget): misc cleanup.
7601 (widget_spacing): new function. Call device specific
7602 methods. Intended to be the default gap between adjacent widgets.
7603 (widget_query_geometry): use new spacing functions to determine
7604 appropriate geometry.
7605 (initialize_widget_image_instance): initialize horizontal and
7606 vertical justification.
7607 (widget_instantiate): use logica-units where appropriate for
7608 sizing large widgets.
7609 (button_query_geometry): use widget_instance_border_width.
7610 (tree_view_query_geometry): ditto.
7611 (tab_control_query_geometry): ditto.
7612 (edit_field_query_geometry): new function.
7613 (layout_update): pick up :justify, :horizontally-justify and
7614 :vertically-justify none of which worked previously. :justify is
7615 used as a fallback for both horizontal and vertical justification.
7616 (layout_query_geometry): use logical units to size appropriately.
7617 (layout_layout): ditto.
7618 (Fwidget_logical_to_character_width): new function. Allow users to
7619 convert from logical units to characters so that frame sizes can
7620 be set appropriately.
7621 (Fwidget_logical_to_character_height): ditto.
7622 (syms_of_glyphs_widget): declare.
7623 (image_instantiator_edit_fields): add edit_field_query_geometry.
7624 (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7625 :horizontally-justify.
7626 (specifier_vars_of_glyphs_widget): new function. Declare
7627 Vwidget_border_width which is not yet used.
7629 * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7630 (x_widget_border_width): new function.
7631 (x_widget_instantiate): create a sensible name for widgets.
7632 (console_type_create_glyphs_x): declare x_widget_border_width.
7634 * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7635 (struct Lisp_Image_Instance): add :vertically-justify and
7636 :horizontally-justify.
7637 (LAYOUT_JUSTIFY_TOP): new.
7638 (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7639 (ROUND_UP): new macro. Round argument up to next integral
7642 * redisplay-output.c (redisplay_output_layout): misc formatting.
7644 * symsinit.h: declare specifier_vars_of_glyphs_widget.
7646 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
7648 * XEmacs 21.4.9 "Informed Management" is released.
7650 2002-08-19 Andy Piper <andy@xemacs.org>
7652 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7655 * realpath.c (xrealpath): normalize drive spec also so that dir
7656 sep chars are not mixed on cygwin.
7658 2002-08-06 Jerry James <james@xemacs.org>
7660 * window.c (Fsplit_window): Count only half of the divider width
7661 against the left window when splitting horizontally.
7663 2002-06-24 Andy Piper <andy@xemacs.org>
7665 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7666 toolbar was cleared.
7668 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7669 function. Split out from mswindows_output_frame_toolbars.
7670 (mswindows_output_frame_toolbars): move clear pieces to
7671 mswindows_output_frame_toolbars.
7673 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7674 out from gtk_output_frame_toolbars.
7675 (gtk_output_frame_toolbars): move clear pieces to
7676 gtk_clear_frame_toolbars.
7678 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7679 the frame is cleared. How this ever worked before is a mystery.
7680 (x_output_frame_toolbars): Only output toolbars.
7681 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7683 * gutter.c (update_gutter_geometry):
7684 Mark frame layout changed.
7685 (update_frame_gutter_geometry, update_frame_gutters):
7686 Respect frame_layout_changed.
7688 * console.h (struct console_methods): add
7689 clear_frame_toolbars_method.
7691 * redisplay.c (redisplay_frame): call
7692 update_frame_toolbars_geometry and re-order update_frame_toolbars.
7694 * toolbar.h: declare update_frame_toolbars_geometry.
7696 * toolbar.c (update_frame_toolbars_geometry): new function. Split
7697 out from update_frame_toolbars. Call clear_frame_toolbars.
7698 (update_frame_toolbars): only output, do not change geometry.
7700 * redisplay.c: add frame_layout_changed.
7702 * redisplay.h: add frame_layout_changed.
7703 (CLASS_RESET_CHANGED_FLAGS): set it.
7704 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7705 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7706 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7708 * device.h (struct device): add frame_layout_changed.
7709 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7711 * frame.h (struct frame): add frame_layout_changed.
7712 (MARK_FRAME_LAYOUT_CHANGED): new.
7714 2002-06-30 Mike Alexander <mta@arbortext.com>
7716 * event-msw.c (mswindows_need_event): Don't wait for a new message
7717 if the queue is not empty. Suggested by Paul Moore.
7719 2002-06-12 Andy Piper <andy@xemacs.org>
7721 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7722 for printing on accurately.
7724 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
7726 * event-msw.c (mswindows_wnd_proc): Add a handler for the
7727 WM_ACTIVATE message. Make sure that the frame is visible if the
7728 window is visible. This seemss to fix the problem where XEmacs
7729 appears to freeze after switching desktops with certain virtual
7731 (debug_output_mswin_message): Added code to output message
7732 parameters for WM_WINDOWPOSCHANGED,
7733 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7735 2002-05-25 Andy Piper <andy@xemacs.org>
7737 * select-x.c (vars_of_select_x): Fix docstring of
7738 x-selection-strict-motif-ownership
7740 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
7742 * keymap.c (get_keymap):
7743 Add comment about do_autoload GCPROs own args.
7745 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
7747 * bytecode.c (execute_optimized_program): check_opcode ifdef
7748 ERROR_CHECK_BYTE_CODE.
7750 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
7752 Thanks to Ben Wing and Michael Sperber.
7754 * eval.c (Fcommand_execute):
7757 (Fmacroexpand_internal):
7758 (function_argcount):
7759 callint.c (Fcall_interactively):
7760 Add comment about do_autoload GCPROs own args.
7762 * (do_autoload): GCPRO both args as well as local Lisp_Object.
7764 * eval.c (Ffuncall): Extra braces to placate GCC.
7766 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
7768 * backtrace.h (grow_specpdl):
7770 * EmacsFrame.c (EmacsFrameSetValues):
7771 * eval.c (grow_specpdl):
7772 * ExternalShell.c (hack_event_masks_1):
7773 * glyphs-x.c (convert_EImage_to_XImage):
7774 (x_finalize_image_instance):
7775 * ralloc.c (page_size):
7777 * xgccache.c (gc_cache_hash):
7778 Fix unsigned comparison warnings.
7780 2002-07-29 Jerry James <james@xemacs.org>
7782 * lread.c (locate_file): Any nonnegative return value indicates
7783 success if MODE is nonnegative.
7785 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
7787 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7790 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
7792 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7794 * dumper.c (pdump_get_indirect_count):
7795 (pdump_scan_by_alignment):
7796 (pdump_dump_root_struct_ptrs):
7797 (pdump_dump_rtables):
7798 (pdump_dump_root_objects):
7800 * nas.c (WaveOpenDataForReading):
7801 * fns.c (print_bit_vector):
7802 * font-lock.c (SINGLE_SYNTAX_STYLE):
7803 * glyphs.c (check_for_ignored_expose):
7804 (find_matching_subwindow):
7806 * imgproc.c (get_histogram):
7807 * redisplay.c (point_in_line_start_cache):
7808 * redisplay-output.c (redisplay_unmap_subwindows):
7809 * symbols.c (defsymbol_massage_name_1):
7810 (defkeyword_massage_name):
7811 (deferror_massage_name_and_message):
7812 * redisplay-x.c (x_output_string):
7813 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7814 * frame.h (struct frame):
7815 * filelock.c (current_lock_owner):
7816 * doprnt.c (emacs_doprnt_1):
7817 * lisp.h (struct Lisp_Bit_Vector):
7821 2002-02-13 Ben Wing <ben@xemacs.org>
7823 * event-stream.c (reset_key_echo):
7824 * event-stream.c (reset_this_command_keys):
7825 * event-stream.c (execute_command_event):
7826 If console is dead as a result of C-x 5 0, then post-command stuff
7827 needs to be careful and do only non-console-specific stuff.
7829 2002-07-01 Mike Sperber <mike@xemacs.org>
7831 * process-unix.c (unix_send_process): Mark coding_outstream as
7832 non-open upon SIGPIPE.
7834 * event-stream.c (Fnext_event): Reorder switch cases to something
7837 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
7839 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7840 Don't bogusly reinitialize ascii_character property.
7842 2002-07-08 Mike Sperber <mike@xemacs.org>
7844 * process.c (Fstart_process_internal): Do error checking before we
7845 fork off the child, so the child can't muck with the state of the
7848 2002-07-08 Mike Sperber <mike@xemacs.org>
7850 * ralloc.c (init_ralloc): Allocate properly for pdump.
7852 2002-06-12 Andy Piper <andy@xemacs.org>
7854 * glyphs.c (query_string_geometry): check the string.
7856 * glyphs-widget.c (widget_logical_unit_height): cope with nil
7859 2002-06-17 Jerry James <james@xemacs.org>
7861 * sysdll.c: Remove RTLD_GLOBAL initialization.
7862 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7864 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
7866 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7868 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
7870 * sysdep.c (sys_rename): Make sys_rename work for the case where
7871 Windows rename sets errno to EACCES if target file exists.
7873 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
7875 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7876 Fix detection of metric units to work on Win95
7878 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
7880 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
7882 2002-04-25 Andy Piper <andy@xemacs.org>
7884 * redisplay.c (create_text_block): Remove extra comment trailer.
7886 2002-04-24 Andy Piper <andy@xemacs.org>
7888 * redisplay.c (create_text_block): Don't actually add propagation
7889 data if the line ends after we have added a glyph.
7891 2002-04-22 Andy Piper <andy@xemacs.org>
7893 * extents.c (extent_fragment_update): check for glyphs we have
7894 previously displayed.
7895 * extents.c (print_extent_1): warning removal.
7896 * extents.h: change prototype.
7897 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7898 widths correctly for wide glyphs.
7899 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7900 * redisplay.c (prop_type): add PROP_GLYPH.
7901 * redisplay.c (struct prop_block): add glyph type
7902 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7903 to the propagation data.
7904 * redisplay.c (create_text_block): if there is a glyph in the
7905 propagation data use it to salt extent_fragment_update.
7906 * redisplay.c (create_string_text_block): ditto.
7908 2002-04-13 Nix <nix@esperi.demon.co.uk>
7910 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7911 * redisplay-output.c (compare_runes): Compare them.
7912 * redisplay.c: Update copyright date.
7913 * redisplay.c (pos_data): Add need_baseline_computation field.
7914 * redisplay.c (add_glyph_rune): Update ascent, descent, and
7915 need_baseline_computation; zero yoffset. Set max_pixmap_height
7916 for all pixmaps, not just automatically positioned ones.
7917 * redisplay.c (calculate_yoffset): New, compute yoffset values.
7918 * redisplay.c (calculate_baseline): New, compute textual baseline.
7919 * redisplay.c (add_glyph_rune): Call them.
7920 * redisplay.c (create_text_block): Likewise.
7921 * redisplay.c (create_overlay_glyph_block): Likewise.
7922 * redisplay.c (add_margin_runes): Likewise.
7923 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7925 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7926 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7927 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7928 * redisplay-msw.c (mswindows_output_string): Likewise.
7929 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7930 * redisplay-gtk.c (gtk_output_display_block): Likewise.
7931 * redisplay-x.c (x_output_display_block): Likewise.
7933 2002-03-28 Ben Wing <ben@xemacs.org>
7935 * redisplay.c: Fixed bug in redisplay
7936 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7937 and down of the lines, since they're bigger than the line
7938 size. (It was seen most obviously when there's a horizontal scroll
7939 bar, e.g. do C-h a glyph or something like that.) The problem was
7940 that the glyph-contrib-p setting on glyphs was ignored even if it
7941 was set properly, which it wasn't until now.
7943 2002-04-24 Andy Piper <andy@xemacs.org>
7945 * lisp.h (Dynarr_end): Fix definition.
7947 2002-02-06 Adrian Aichner <adrian@xemacs.org>
7949 * redisplay.c (mark_redisplay): Remove call to
7950 update_frame_window_mirror.
7952 2001-11-15 Andy Piper <andy@xemacs.org>
7954 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7957 2002-02-13 Andy Piper <andy@xemacs.org>
7959 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7960 we did in fact enqueue the XM_MAPFRAME event.
7962 2002-01-15 Adrian Aichner <adrian@xemacs.org>
7964 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7965 to fix problem switching between virtual desktops under virtuawin
7966 virtual window manager.
7968 2001-07-30 Adrian Aichner <adrian@xemacs.org>
7970 * event-msw.c: Typo fix.
7971 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7972 magic XM_MAPFRAME event has been sent.
7974 2001-11-23 Andy Piper <andy@xemacs.org>
7976 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7978 2001-11-21 Andy Piper <andy@xemacs.org>
7980 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7981 mouse events outside the frame.
7983 2002-03-20 Andy Piper <andy@xemacs.org>
7985 * menubar-msw.c (mswindows_popup_menu): warning removal.
7986 * dialog-msw.c (dialog_popped_down): ditto.
7988 2001-12-11 Andy Piper <andy@xemacs.org>
7990 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7991 * dialog-msw.c (mswindows_make_dialog_box_internal): set
7993 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7994 * menubar-msw.c (mswindows_handle_wm_command): ditto.
7995 * menubar-msw.c (mswindows_popup_menu): ditto.
7997 2001-10-29 Andy Piper <andy@xemacs.org>
7999 * dialog-msw.c (handle_directory_dialog_box): quit if the user
8002 2002-01-03 Andy Piper <andy@xemacs.org>
8004 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8008 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
8010 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8011 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8012 * device-msw.c (mswindows_handle_page_setup_dialog_box):
8013 Detect and handle case where machine is set up for metric units
8015 2002-04-02 Andy Piper <andy@xemacs.org>
8017 * dired-msw.c (mswindows_get_files):
8018 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8019 completely handled by XEmacs. Suggested by Thomas Vogler
8020 <mail@thomas-vogler.de>.
8022 2001-11-14 Andy Piper <andy@xemacs.org>
8024 * nt.c (REG_ROOT): change registry key to XEmacs.
8026 2002-04-27 Andy Piper <andy@xemacs.org>
8028 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8030 2002-04-26 Andy Piper <andy@xemacs.org>
8032 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8035 2002-03-14 Mike Alexander <mta@arbortext.com>
8037 * event-msw.c (mswindows_unwait_process): New, remove process from
8039 * process-nt.c (nt_finalize_process_data): Call
8040 mswindows_unwait_process
8041 * console-msw.h: Declare mswindows_unwait_process
8043 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
8045 * editfns.c (Fdecode_time):
8046 (Fformat_time_string):
8047 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
8048 (make_time): Warning elimination (change arg name).
8050 2001-11-24 Andy Piper <andy@xemacs.org>
8052 * window.c (Fsplit_window): Doc return type.
8054 2002-04-01 Andy Piper <andy@xemacs.org>
8056 * emacs.c (Fkill_emacs): Only output message box in interactive
8059 2002-04-26 Andy Piper <andy@xemacs.org>
8061 * config.h.in: pull in 21.5.x change to stop alloca warnings under
8064 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
8066 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
8069 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
8071 * XEmacs 21.4.8 "Honest Recruiter" is released.
8073 2002-05-07 Nix <nix@esperi.demon.co.uk>
8075 Supersedes 2002-04-17 patch.
8077 * process.h (PROCESS_LIVE_P): Use the process status as
8078 evidence of health, not the state of the input stream.
8079 (PROCESS_READABLE_P): Say if the process is readable
8080 from. (It may be dead nonetheless.)
8081 (CHECK_READABLE_PROCESS): Test for that condition.
8083 * process.c (create_process): Use PROCESS_READABLE_P.
8084 (read_process_output, set_process_filter): Likewise.
8086 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8087 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8089 This code is #if 0'd, this is not the time to add new functions:
8091 * process.c (Fprocess_readable_p): Report readability status.
8092 * process.c (Qprocess_readable_p): New, associated symbol...
8093 * process.c (syms_of_process): ... initialize it.
8095 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
8097 * XEmacs 21.4.7 "Economic Science" is released.
8099 2002-04-17 Nix <nix@esperi.demon.co.uk>
8101 * process.h (PROCESS_LIVE_P): Use the process status as
8102 evidence of health, not the state of the input stream.
8104 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
8106 * sysdep.c (sys_siglist): change "signum" to "signal"
8108 2001-04-21 Martin Buchholz <martin@xemacs.org>
8110 * s/darwin.h: New file.
8111 Thanks to Greg Parker <gparker@cs.stanford.edu>.
8113 2002-04-23 Andreas Jaeger <aj@suse.de>
8115 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8116 which use lib64 for 64-bit libs.
8117 (START_FILES): Likewise.
8119 2002-02-11 Mike Sperber <mike@xemacs.org>
8122 (x_IO_error_handler):
8123 (x_init_device): Temporarily keep device in static variable
8124 `device_being_initialized' so we can recover gracefully from
8125 internal XOpenDevice failure. (XOpenDevice is documented to
8126 return NULL on failure, but sometimes calls the IO error handler
8129 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
8131 * dired.c (Ffile_name_all_completions): Change documentation --
8132 remove reference to completion-ignored-extensions.
8133 * dired.c (vars_of_dired): Change documentation for
8134 completion-ignored-extensions -- remove reference to
8135 file-name-all-completions.
8137 2002-03-06 Jerry James <james@xemacs.org>
8139 * emodules.c (emodules_load): Fix multiple loading of same module.
8141 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
8142 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8143 RTLD_LAZY to avoid incorrect symbol binding when using nested
8144 shared libraries on Solaris.
8146 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
8148 * fileio.c (Ffind_file_name_handler): Improve docstring.
8150 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
8152 * fns.c (Fmapconcat): Improve docstring.
8154 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
8156 * device-gtk.c: Add prototype for
8157 emacs_gtk_selection_clear_event_handle.
8158 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8159 selection. Setup signal handler for "selection_clear_event"
8160 (emacs_gtk_selection_clear_event_handle).
8162 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8163 other applications owning the clipboard (based on
8164 x_handle_selection_clear).
8166 2001-12-23 William M. Perry <wmperry@gnu.org>
8168 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
8170 2002-01-04 Martin Buchholz <martin@xemacs.org>
8172 * keymap.c (define_key_alternate_name): Parenthesize EQ.
8174 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
8176 * XEmacs 21.4.6 "Common Lisp" is released.
8178 2001-12-16 Torsten Duwe <duwe@caldera.de>
8180 * search.c (Freplace_match): Add missing sub-expression functionality.
8182 * buffer.c (decode_buffer): Add a check for pointer type to
8183 decode_buffer, before gcc's CSE optimization reorders a
8184 dereference in front of the allow_string test.
8186 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
8188 * window.c (window_loop): Fix bug that sometimes prevented
8189 window_loop() from iterating across multiple devices. Also, at
8190 Ben's request, changed infloop-detecting code to abort() instead
8191 of silently terminating window_loop().
8193 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
8195 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8196 * editfns.c (make_time): New function.
8197 (Fencode_time): Use it instead of wasteful_word_to_lisp.
8198 * lisp.h (make_time): Prototype and comment it.
8199 * dired.c (wasteful_word_to_lisp): Deprecate.
8200 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8202 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
8204 * fileio.c (auto_save_1): Use current coding system, not
8207 2001-11-13 Ben Wing <ben@xemacs.org>
8210 * window.c (window_truncation_on):
8211 * window.c (syms_of_window):
8212 truncate-partial-width-windows should respect the buffer being
8213 displayed, like other redisplay vars.
8215 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
8217 * event-stream.c (Fread_key_sequence): save current buffer.
8219 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
8221 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8223 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
8225 * alloc.c (lcrecord_stats): Add space for types defined in modules.
8227 2001-10-26 Mike Alexander <mta@arbortext.com>
8229 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8231 2001-10-25 Andy Piper <andy@xemacs.org>
8234 * dialog-msw.c (handle_directory_proc): new function.
8235 (handle_directory_dialog_box): new fucntion.
8236 (handle_file_dialog_box): use new directory dialog support.
8237 (mswindows_make_dialog_box_internal): ditto.
8238 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8240 (mswindows_find_frame): make global.
8241 * fileio.c (Fexpand_file_name): build fix.
8242 * general-slots.h: add Qdirectory.
8243 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8245 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8246 cygwin not leaving win32 paths unchanged.
8247 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8248 cygwin runtime to do path conversion.
8249 (Fmswindows_shell_execute): fix cygwin handling of URLs.
8250 (syms_of_win32): add new function.
8251 * window.c (window_loop): build fix.
8253 2001-10-15 Andy Piper <andy@xemacs.org>
8255 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8257 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
8259 * XEmacs 21.4.5 "Civil Service" is released.
8261 2001-04-08 Danny Colascione <qtmstr@optonline.net>
8263 * glyphs-x.c: Force buffer-tab highlight update when moving the
8264 buffer, avoiding an ugly black border, used for keyboard focus
8265 indication, on a widget that can never have keyboard focus, the
8268 2001-08-30 Daiki Ueno <ueno@unixuser.org>
8270 * process-unix.c (unix_open_multicast_group): Remove too much
8271 conversion between host and network byte order.
8273 2001-09-10 Nix <nix@esperi.demon.co.uk>
8275 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8276 before replacing them.
8278 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8281 * src/window.c (undedicate_windows): Use it.
8282 * src/window.h: Add prototype.
8284 2001-09-17 Ben Wing <ben@xemacs.org>
8286 * fileio.c (normalize_filename):
8287 * fileio.c (Fexpand_file_name):
8288 Fix various C++ compile errors in Andy's recent code.
8290 * callint.c (Fcall_interactively):
8291 * editfns.c (Ftemp_directory):
8292 * editfns.c (Fuser_full_name):
8293 * emacs.c (argmatch):
8294 * lread.c (locate_file_map_suffixes):
8295 * redisplay-x.c (x_ring_bell):
8296 Fix sign-compare warnings.
8298 2001-09-08 Andy Piper <andy@xemacs.org>
8300 * fileio.c (normalize_filename): copied from nt.c
8301 * (Ffile_name_directory): enable win32 paths under cygwin.
8302 * (Ffile_name_nondirectory): ditto.
8303 * (directory_file_name): ditto.
8304 * (Fexpand_file_name): ditto.
8305 * (Ffile_truename): ditto.
8306 * (Fsubstitute_in_file_name): ditto.
8307 * (Ffile_name_absolute_p): ditto.
8308 * (Ffile_readable_p): ditto.
8310 2001-09-08 Andy Piper <andy@xemacs.org>
8312 * device-msw.c (mswindows_finish_init_device): remove dde
8314 * device-msw.c (mswindows_init_dde): factor out from
8315 mswindows_finish_init_device()
8316 * device-msw.c (init_mswindows_very_early): new function
8317 initialize but don't enable dde.
8318 * emacs.c (main_1): call init_mswindows_very_early.
8320 * event-msw.c (mswindows_dde_callback): only execute when we are
8322 * symsinit.h: declare init_mswindows_very_early.
8324 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8326 [sjt: This has been in 21.5 for months with no complaints.]
8328 * console.h (struct console_methods): Added flags member.
8329 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8330 (CONMETH_IMPL_FLAG):
8331 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8332 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8334 * device.c (window_system_pixelated_geometry): Use the above macros.
8336 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8337 implememntation flag.
8338 * device.h (DEVICE_DISPLAY_P): Use it.
8340 * frame.c (delete_frame_internal): Use the above macro.
8342 * redisplay.c (redisplay_device): Use it.
8343 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8344 (redisplay_frame): Ditto.
8346 * device-msw.c (mswindows_device_implementation_flags): Removed.
8347 (msprinter_device_implementation_flags): Removed.
8348 (console_type_create_device_mswindows): Removed references to
8349 implementation_flags methods, set implementation flags here.
8350 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8352 * device-gtk.c (gtk_device_implementation_flags): Removed method.
8353 (console_type_create_device_gtk): Removed method declaration.
8354 Added commented out statement which semantically matches the
8355 commented out statement in the above removed method.
8357 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
8359 The attached patch fixes a few warnings.
8361 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8362 * src/frame-gtk.c: guard against GNOME calls in GTK only
8363 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8364 * src/select-gtk.c: prototype lisp_to_time
8366 2001-06-08 Ben Wing <ben@xemacs.org>
8368 ------ gc-in-window-procedure fixes ------
8371 * alloc.c (struct post_gc_action):
8372 * alloc.c (register_post_gc_action):
8373 * alloc.c (run_post_gc_actions):
8374 * alloc.c (garbage_collect_1):
8375 Create "post-gc actions", to avoid those dreaded "GC during window
8376 procedure" problems.
8379 Abort, clean and simple, when GC in window procedure. We want
8380 to flush these puppies out.
8383 * glyphs-msw.c (finalize_destroy_window):
8384 * glyphs-msw.c (mswindows_finalize_image_instance):
8385 Use a post-gc action when destroying subwindows.
8388 Declare register_post_gc_action().
8391 * scrollbar-msw.c (unshow_that_mofo):
8392 Use a post-gc action when unshowing scrollbar windows, if in gc.
8394 * redisplay.c (mark_redisplay):
8395 Add comment about the utter evilness of what's going down here.
8397 ------ cygwin setitimer fixes ------
8399 * Makefile.in.in (sheap_objs):
8400 * Makefile.in.in (profile_objs):
8401 * Makefile.in.in (objs):
8402 Compile profile.c only when HAVE_SETITIMER.
8404 * nt.c (mswindows_sigset):
8405 * nt.c (mswindows_sighold):
8406 * nt.c (mswindows_sigrelse):
8407 * nt.c (mswindows_sigpause):
8408 * nt.c (mswindows_raise):
8409 * nt.c (close_file_data):
8413 Move setitimer() emulation to win32.c, because Cygwin needs it too.
8416 * profile.c (Fstart_profiling):
8417 * profile.c (Fstop_profiling):
8418 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
8419 instead of just plain setitimer().
8422 * signal.c (set_one_shot_timer):
8424 Define qxe_setitimer() as an encapsulation around setitimer() --
8425 call setitimer() directly unless Cygwin or MS Win, in which case
8426 we use our simulated version in win32.c.
8429 * systime.h (struct itimerval):
8430 * systime.h (ITIMER_REAL):
8431 Prototype mswindows_setitimer() and qxe_setitimer(). Long
8432 comment about "qxe" and the policy regarding encapsulation.
8435 * win32.c (setitimer_helper_proc):
8436 * win32.c (setitimer_helper_period):
8437 * win32.c (setitimer_helper):
8438 * win32.c (mswindows_setitimer):
8439 Move setitimer() emulation here, so Cygwin can use it.
8440 Rename a couple of functions and variables to be longer and more
8441 descriptive. In setitimer_helper_proc(), send the signal
8442 using either mswindows_raise() or (on Cygwin) kill(). If for
8443 some reason we are still getting lockups, we'll change the kill()
8444 to directly invoke the signal handlers.
8446 ------ windows shell fixes ------
8450 Comments about how these two files must die.
8452 * callproc.c (init_callproc):
8453 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8454 not just COMSPEC. (more correct and closer to FSF.) Don't
8455 force a value for SHELL into the environment. (Comments added
8456 to explain why not.)
8458 * nt.c (init_user_info):
8459 Don't shove a fabricated SHELL into the environment. See above.
8461 2001-06-01 Ben Wing <ben@xemacs.org>
8463 * Makefile.in.in (ldflags):
8464 eliminate that pesky "defaulting to 00401000" warning.
8468 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
8470 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8471 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8473 2001-04-24 Jerry James <james@xemacs.org>
8475 * faces.h: pass parameters to Fadd_spec_to_specifier in the
8478 2001-06-01 Ben Wing <ben@xemacs.org>
8480 * event-msw.c (debug_mswin_messages):
8481 conditionalize the messages that were causing compile errors.
8482 (if only macros could generate #ifdef statements ...)
8484 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
8486 * XEmacs 21.4.4 "Artificial Intelligence" is released.
8488 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
8490 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8492 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
8494 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8495 * process-unix.c (unix_canonicalize_host_name):
8496 sysdep.c (init_system_name):
8497 Use it to conditionally support IPv6 canonicalization.
8499 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
8502 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8504 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
8506 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8507 attempt is made to scroll when no scroll bar is available.
8509 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
8511 * input-method-motif.c (XIM_delete_frame): New callback.
8512 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
8513 got deleted from 21.4.3.)
8515 2001-06-01 Ben Wing <ben@xemacs.org>
8517 * nt.c (mswindows_utime):
8518 * nt.c (close_file_data):
8519 fix off-by-one-indirection error.
8521 2001-05-29 Adrian Aichner <adrian@xemacs.org>
8523 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
8524 because set_file_times() now takes Lisp_Object path, instead of
8526 * nt.c: Include buffer.h.
8527 * nt.c (convert_from_time_t): New.
8528 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
8529 not set mtime correctly.
8530 * nt.h: Declare mswindows_utime().
8531 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8532 path, instead of char*.
8533 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8535 2001-05-30 Ben Wing <ben@xemacs.org>
8539 (Stephen, just take all event-msw.c patches. This includes
8540 the "iconify" fix below.)
8543 * event-msw.c (mswindows_dequeue_dispatch_event):
8544 * event-msw.c (assert):
8545 * event-msw.c (emacs_mswindows_quit_p):
8546 * event-msw.c (debug_mswin_messages):
8547 * event-msw.c (debug_output_mswin_message):
8548 * event-msw.c (vars_of_event_mswindows):
8549 Fix yet more problems with C-g handling.
8550 Implement debug-mswindows-events.
8552 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8554 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8556 2001-05-23 Ben Wing <ben@xemacs.org>
8558 * event-msw.c (winsock_writer):
8559 * event-msw.c (winsock_closer):
8560 prior kludgy code was clobbering the buffer, thinking it was
8561 "unused" space to store an unneeded return value; instead, use
8562 the variable we've already got staring us in the face.
8564 2001-05-17 Andy Piper <andy@xemacs.org>
8566 * sysfile.h: don't assume that file attributes are boolean
8568 2001-05-23 Ben Wing <ben@xemacs.org>
8570 * device-msw.c (msprinter_init_device):
8571 signal an error rather than crash with an unavailable network
8572 printer (from Mike Alexander).
8575 * event-msw.c (struct winsock_stream):
8576 * event-msw.c (winsock_writer):
8577 * event-msw.c (winsock_closer):
8578 * event-msw.c (make_winsock_stream_1):
8579 cleanup headers. fix (hopefully) an error with data corruption
8580 when sending to a network connection.
8582 * fileio.c (Fexpand_file_name): Fix evil code that attempts
8583 to handle the ~user prefix by (a) always assuming we're referencing
8584 ourselves and not even verifying the user -- hence any file with
8585 a tilde as its first char is invalid! (b) if there wasn't a slash
8586 following the filename, the pointer was set *past* the end of
8587 file and we started reading from uninitialized memory. Now we
8588 simply treat these as files, always.
8590 * buffer.c (common_init_complex_vars_of_buffer): comment change.
8592 2001-05-19 Ben Wing <ben@xemacs.org>
8594 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8597 * process-nt.c (vars_of_process_nt):
8598 remove unused mswindows-quote-process-args. rec for 21.4.
8600 2001-05-12 Ben Wing <ben@xemacs.org>
8602 * event-msw.c (mswindows_dde_callback):
8603 * event-msw.c (mswindows_wnd_proc):
8604 eliminate cygwin warnings.
8606 2001-05-06 Ben Wing <ben@xemacs.org>
8610 * device-msw.c (print_dialog_worker):
8611 * device-msw.c (mswindows_handle_print_dialog_box):
8612 * device-msw.c (syms_of_device_mswindows):
8613 * dialog-msw.c (mswindows_make_dialog_box_internal):
8615 implement printing the selection when it's selected.
8617 2001-05-20 Drazen Kacar <dave@arsdigita.com>
8619 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8621 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8623 * lisp.h (EMACS_INT_MAX): This should be one bit less since
8624 EMACS_INT is signed.
8626 2001-04-15 Michael Lausch <mla@1012surf.net>
8628 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8629 gtk_widget_request_size() to give scrollbar >0 width for
8632 2001-05-30 William M. Perry <wmperry@gnu.org>
8634 * event-gtk.c: Check for buttons as modifier keys.
8636 2001-05-25 Craig Lanning <CraigL@Knology.net>
8639 Properly find MinGW's <process.h> inside Cygwin's restructured
8640 include directories. Don't try to include <cygwin/version.h>
8641 since we are dropping support for MinGW in versions of Cygwin
8644 Drop support for MinGW in versions of Cygwin before b21.
8646 Properly find MinGW's <process.h> inside Cygwin's restructured
8647 include directories.
8649 Drop support for MinGW in versions of Cygwin before b21.
8651 Even though a.out.h is no longer detected by configure, allow
8652 MinGW to use it until we figure out how to do the job with Win32.
8654 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
8656 * syntax.c (find_start_of_comment):
8657 Fix `unbalanced parentheses' bug when dealing with mixed comment
8658 styles in c++/java/etc. mode
8660 2001-05-29 Mike Alexander <mta@arbortext.com>
8662 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8663 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8665 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
8667 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8669 2001-03-31 Mike Sperber <mike@xemacs.org>
8671 * search.c (Freplace_match): Support FSF-style specification of
8672 match subexpression when applied to a buffer.
8674 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
8676 * event-stream.c (is_scrollbar_event): add missing semicolon
8678 2001-05-22 Isaac Hollander <ysh@mindspring.com>
8680 * Makefile.in.in: Use TAR macro instead of hardcoding
8681 tar. Allows use of GNU tar instead of system tar
8683 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
8685 * event-stream.c (is_scrollbar_event): add missing semicolon
8687 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
8689 * XEmacs 21.4.3 "Academic Rigor" is released.
8691 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
8693 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8695 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8697 * buffer.c (Vcase_fold_search): Remove obsolete
8698 comment about non ASCII case-fold-search. This
8699 bug has been fixed by case-table changes.
8701 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
8703 * event-msw.c: Restore include of events-mod.h.
8705 2001-04-22 zhaoway <zw@debian.org>
8707 * event-stream.c (is_scrollbar_event): Noop returning 0 if
8710 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
8712 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8714 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
8716 * mule-charset.c (Fmake_charset): Add missing else.
8718 2001-04-23 Ben Wing <ben@xemacs.org>
8720 * event-msw.c (FAKE_MOD_QUIT):
8721 * event-msw.c (mswindows_dequeue_dispatch_event):
8722 * event-msw.c (mswindows_wnd_proc):
8723 * event-msw.c (emacs_mswindows_quit_p):
8724 Get critical quit working.
8726 2001-05-05 Ben Wing <ben@xemacs.org>
8730 * device-msw.c (mswindows_get_default_margin):
8731 * frame-msw.c (mswindows_size_frame_internal):
8732 * frame-msw.c (msprinter_init_frame_1):
8733 * frame-msw.c (vars_of_frame_mswindows):
8734 Change top/bottom margin defaults to 0.5 inches.
8736 2001-05-01 Martin Buchholz <martin@xemacs.org>
8738 Fix link error with gcc 3.0 on Linux.
8739 * terminfo.c (UP): Remove.
8740 * terminfo.c (BC): Remove.
8741 * terminfo.c (PC): Remove.
8742 They weren't used, and in any case, these symbols should be
8743 defined in the *library*.
8745 2001-05-03 Martin Buchholz <martin@xemacs.org>
8747 * s/aix4.h: Fix crash with xlc -O3.
8748 Improve comment explaining how -O3 works.
8750 2001-04-15 Ben Wing <ben@xemacs.org>
8753 * event-stream.c (Fnext_event):
8754 * event-stream.c (is_scrollbar_event):
8755 * event-stream.c (execute_command_event):
8756 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8757 crash' problem. His fix introduces other problems. We filter
8758 out scrollbar events specifically, making them somewhat invisible
8759 to command-building, and not appearing in `this-command-keys'.
8760 More work is still needed (see comments in event-stream.c), but
8761 this fixes all the major problems.
8763 2001-04-20 Ben Wing <ben@xemacs.org>
8765 * .cvsignore: Added stuff for Windows.
8767 2001-04-28 Ben Wing <ben@xemacs.org>
8769 * buffer.c (Ferase_buffer):
8770 * editfns.c (buffer_insert1):
8771 * editfns.c (Finsert_before_markers):
8772 * editfns.c (Finsert_string):
8773 * editfns.c (Finsert_char):
8774 * editfns.c (Fdelete_region):
8775 * editfns.c (Fwiden):
8776 * editfns.c (Fnarrow_to_region):
8777 remove bogus lines setting zmacs_region_stays to 0.
8779 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
8781 * process-unix.c (unix_open_network_stream): If connect() fails
8782 invalidate file descriptor after closing it.
8784 2001-03-08 Mike Alexander <mta@arbortext.com>
8786 * event-msw.c (mswindows_need_event_in_modal_loop):
8787 Don't dispatch a message if we didn't get one.
8788 (mswindows_need_event):
8789 Terminate the correct process when one exits instead of the first
8790 one on Vprocess_list and look for process termination when in
8791 mswindows_protect_modal_loop.
8793 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
8795 * XEmacs 21.4.1 "Copyleft" is released.
8797 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
8799 * input-method-motif.c (XIM_delete_frame): New callback.
8800 (XIM_init_frame): Register it.
8802 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
8804 * XEmacs 21.4.0 "Solid Vapor" is released.
8806 2001-04-15 Ben Wing <ben@xemacs.org>
8808 * cmdloop.c (call_command_loop):
8809 Fix braino in bit-rotting code.
8811 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
8813 * extents.c (Fset_extent_endpoints): Force creation of extent info
8814 in buffer_or_string.
8816 * extents.c (process_extents_for_insertion_mapper): Correctly
8817 check for open-open zero-length extents.
8819 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
8821 * lisp.h: New typedefs Memory_count, Element_count.
8824 Sign-compare warning elimination: several unsigned -> signed.
8825 Based on work by Ben Wing <ben@xemacs.org>.
8827 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
8829 * XEmacs 21.2.47 "Zephir" is released.
8831 2001-04-02 Jan Vroonhof <jan@xemacs.org>
8833 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8835 2001-04-03 Mike Sperber <mike@xemacs.org>
8837 * search.c: Revert previous patch due because of release.
8839 2001-03-30 Ben Wing <ben@xemacs.org>
8842 Add missing killpg prototype.
8845 Add a comment about fixing problems when a new entry is added
8848 * frame-msw.c (mswindows_init_frame_1):
8849 Fix compile warnings.
8851 * menubar.c (vars_of_menubar):
8852 Provide `menu-accelerator-support' to indicate that we properly
8853 support %_ in menu specifications, so that package code can
8854 conditionalize on this (and remove %_ from menu specifications
8859 * scrollbar-msw.c (can_scroll):
8861 Fix handling of mouse wheel under Windows to follow standards --
8862 now scrolls window under pointer, not selected window.
8864 2001-03-31 Mike Sperber <mike@xemacs.org>
8866 * search.c (Freplace_match): Support FSF-style specification of
8867 match subexpression when applied to a buffer.
8869 2001-03-15 Martin Buchholz <martin@xemacs.org>
8871 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8872 function to modify KEYMAP, so map over a copy of the hash table.
8874 2001-03-21 Martin Buchholz <martin@xemacs.org>
8876 * XEmacs 21.2.46 "Urania" is released.
8878 2001-03-20 Dan Holmsand <dan@eyebee.com>
8880 * realpath.c (xrealpath): Make file-truename work with symlinks to
8881 /cygdrive paths on cygwin. Always lowercase drive-letters on
8883 (cygwin_readlink): Don't try to find canonical filename unless
8886 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
8888 * ChangeLog: Log GTK merge.
8894 Revert gratuitous whitespace changes from GTK merge.
8896 * emacs.c: Document end of complex #ifdef @ l. 1495.
8899 2001-03-12 Andy Piper <andy@xemacs.org>
8901 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8902 have to do likewise.
8904 2001-03-12 Andy Piper <andy@xemacs.org>
8906 * sysdep.c: we only support mingw now.
8908 2001-03-09 Andy Piper <andy@xemacs.org>
8910 * unexcw.c (copy_executable_and_dump_data_section): making approx
8911 overrun a warning only.
8913 2001-03-10 William M. Perry <wmperry@aventail.com>
8915 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8916 satisfy Stephen's identical-after-cpp plea.
8918 2001-03-02 Ben Wing <ben@xemacs.org>
8921 * cmds.c (Fforward_char):
8925 Augment documentation of the most common motion commands to make
8926 note of the shifted-motion support.
8928 2001-03-02 Ben Wing <ben@xemacs.org>
8930 * nt.c (mswindows_fstat):
8931 * nt.c (mswindows_stat):
8932 * search.c (boyer_moore):
8933 Fix compile warnings under Windows.
8935 * sysdep.c (sys_readdir):
8936 Fix buggy filename-conversion code under Mule.
8938 2001-03-09 William M. Perry <wmperry@aventail.com>
8960 * redisplay-output.c:
8966 The Great GTK Merge.
8973 * emacs-widget-accessors.c:
8987 * native-gtk-toolbar.c:
8998 The Great GTK Merge: new files.
9000 2001-02-26 Ben Wing <ben@xemacs.org>
9002 Reapplied Lstream change.
9004 2001-02-26 Ben Wing <ben@xemacs.org>
9006 Undid the last change, since it is more controversial than I
9007 thought. It should be back in at some point soon.
9009 2001-02-25 Ben Wing <ben@xemacs.org>
9012 * callproc.c (Fold_call_process_internal):
9013 * event-msw.c (ntpipe_slurp_reader):
9014 * event-msw.c (ntpipe_shove_writer):
9015 * event-msw.c (winsock_reader):
9016 * event-msw.c (winsock_writer):
9018 * file-coding.c (detect_eol_type):
9019 * file-coding.c (detect_coding_type):
9020 * file-coding.c (determine_real_coding_system):
9021 * file-coding.c (Fdetect_coding_region):
9022 * file-coding.c (decoding_reader):
9023 * file-coding.c (decoding_writer):
9024 * file-coding.c (mule_decode):
9025 * file-coding.c (Fdecode_coding_region):
9026 * file-coding.c (encoding_reader):
9027 * file-coding.c (encoding_writer):
9028 * file-coding.c (mule_encode):
9029 * file-coding.c (Fencode_coding_region):
9030 * file-coding.c (detect_coding_sjis):
9031 * file-coding.c (decode_coding_sjis):
9032 * file-coding.c (encode_coding_sjis):
9033 * file-coding.c (detect_coding_big5):
9034 * file-coding.c (decode_coding_big5):
9035 * file-coding.c (encode_coding_big5):
9036 * file-coding.c (detect_coding_ucs4):
9037 * file-coding.c (decode_coding_ucs4):
9038 * file-coding.c (encode_coding_ucs4):
9039 * file-coding.c (detect_coding_utf8):
9040 * file-coding.c (decode_coding_utf8):
9041 * file-coding.c (encode_coding_utf8):
9042 * file-coding.c (detect_coding_iso2022):
9043 * file-coding.c (decode_coding_iso2022):
9044 * file-coding.c (encode_coding_iso2022):
9045 * file-coding.c (decode_coding_no_conversion):
9046 * file-coding.c (encode_coding_no_conversion):
9047 * glyphs-x.c (write_lisp_string_to_temp_file):
9048 * gpmevent.c (tty_get_foreign_selection):
9051 * lstream.c (Lstream_flush_out):
9052 * lstream.c (Lstream_adding):
9053 * lstream.c (Lstream_write_1):
9054 * lstream.c (Lstream_write):
9055 * lstream.c (Lstream_raw_read):
9056 * lstream.c (Lstream_read_more):
9057 * lstream.c (Lstream_read):
9058 * lstream.c (Lstream_unread):
9059 * lstream.c (Lstream_fputc):
9060 * lstream.c (stdio_reader):
9061 * lstream.c (stdio_writer):
9062 * lstream.c (filedesc_reader):
9063 * lstream.c (filedesc_writer):
9064 * lstream.c (lisp_string_reader):
9065 * lstream.c (struct fixed_buffer_stream):
9066 * lstream.c (make_fixed_buffer_input_stream):
9067 * lstream.c (make_fixed_buffer_output_stream):
9068 * lstream.c (fixed_buffer_reader):
9069 * lstream.c (fixed_buffer_writer):
9070 * lstream.c (struct resizing_buffer_stream):
9071 * lstream.c (resizing_buffer_writer):
9072 * lstream.c (dynarr_writer):
9073 * lstream.c (lisp_buffer_reader):
9074 * lstream.c (lisp_buffer_writer):
9076 * lstream.h (lstream_implementation):
9077 * lstream.h (struct lstream):
9079 * process-nt.c (nt_send_process):
9080 * process-unix.c (unix_send_process):
9082 Correct Lstream lossage due to mixing of signed and unsigned
9083 quantities. All Lstream uses of size_t and ssize_t are now a
9084 single signed data type Lstream_data_count. This fixes problems
9085 under Windows with sending large quantities of data to a process,
9086 and may well fix other subtle bugs.
9088 2001-02-23 Martin Buchholz <martin@xemacs.org>
9090 * XEmacs 21.2.45 "Thelxepeia" is released.
9092 2001-02-21 Martin Buchholz <martin@xemacs.org>
9094 * lisp-union.h (XSETINT):
9097 Reverse previous change of 2001-02-06.
9099 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
9101 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9103 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9104 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9105 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9106 * regex.c (POS_AS_IN_BUFFER): removed
9107 * regex.c (re_search_2):
9108 * regex.c (re_match_2):
9109 Don't use an offset of 1 when calculating buffer positions, since
9110 `BI_BUF_BEGV' does it already.
9112 2001-02-18 Wim Dumon <wim@easics.be>
9114 * insdel.c (prepare_to_modify_buffer): Also check for
9115 supersession when clash-detection is enabled.
9117 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
9119 * regex.c (re_match_2_internal):
9120 Convert temp characters from 'const unsigned char' to 're_char'.
9121 Fix crashing bug with extended characters under mule.
9122 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9123 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9124 font-lock, pdump, and new syntax-table code.
9125 * syntax.c (find_start_of_comment):
9126 (find_end_of_comment):
9128 Fix crashing bugs involving moving beyond end of buffer.
9129 * syntax.c (find_start_of_comment):
9130 Fixed logic to allow proper detection of cases where the same
9131 character is used to end both a two-char comment start and a
9132 two-char comment end sequence. Fixes `(forward-comment -1)'.
9133 * syntax.c (find_start_of_comment):
9134 Return position just past last comment-end character for all cases
9135 (previously was only done for two-char comment-end sequences).
9136 * syntax.c (forward-comment):
9137 Take value returned from `find_end_of_comment', rather than
9139 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9140 Properly deal with BUFFERP (syntax_cache.object)
9142 2001-02-17 Martin Buchholz <martin@xemacs.org>
9144 * alloc.c (Fgarbage_collect):
9145 * alloc.c (make_bit_vector_from_byte_vector):
9146 -Wsign-compare-correctness.
9148 2001-02-16 Martin Buchholz <martin@xemacs.org>
9150 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9151 (XSETCHAR): Likewise.
9152 (XSETOBJ): Likewise.
9154 2001-02-15 Martin Buchholz <martin@xemacs.org>
9156 * mule-canna.c (canna-func-delete_previous):
9157 Rename to canna-func-delete-previous.
9159 2001-02-14 Martin Buchholz <martin@xemacs.org>
9161 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
9163 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
9165 * font-lock.c (find_context): Fix C++ compile errors introduced by
9168 2001-02-13 Martin Buchholz <martin@xemacs.org>
9170 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9171 pragma, but earlier ones barf on the same pragma.
9173 2001-02-06 Mike Sperber <mike@xemacs.org>
9175 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9176 `configure-mule-lisp-directory'.
9178 2001-02-12 Martin Buchholz <martin@xemacs.org>
9180 Make sure dump-id.c is compiled in the same way as other .c's.
9181 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9182 * dump-id.h: Remove.
9183 * emacs.c: Move dump-id.h into dumper.h.
9184 * dumper.h: Move dump-id.h into dumper.h.
9186 Use standard .c.o rule for building dump-id.o.
9187 Remove preprocessor flags from link command.
9188 Add dump-id.o to ${otherobjs} if PDUMP.
9190 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
9192 Port FSF 20.7 syntax table improvements.
9196 Fixups for new syntax table stuff.
9197 * dired.c: Include syntax.c.
9198 (Fdirectory_files): Initialize regex_match_object and
9200 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9201 and Fget_char_property.
9203 Use ported FSF 20.7 syntax table improvements.
9208 2001-02-09 Martin Buchholz <martin@xemacs.org>
9210 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9211 Unixware's enum boolean from sys/types.h.
9213 2001-02-10 Martin Buchholz <martin@xemacs.org>
9215 Fix support for building with latest Purify.
9216 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9217 (PURIFY_FLAGS): Likewise.
9219 2001-02-09 Martin Buchholz <martin@xemacs.org>
9221 * fileio.c (lisp_string_set_file_times): New.
9222 * fileio.c (Fcopy_file): Use it.
9224 (copy-file filename non-ascii-filename t t)
9225 ==> No such file or directory, non-ascii-filename
9227 2001-02-10 Martin Buchholz <martin@xemacs.org>
9229 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9230 USHRT_MAX seems clearer than ~0 anyways.
9232 2001-02-09 Martin Buchholz <martin@xemacs.org>
9234 dumper improvements. Inspired by Olivier.
9235 * dumper.c (pdump_max_align): New.
9236 * dumper.c (pdump_add_entry): Use pdump_max_align.
9237 * dumper.c (pdump_get_entry_list): Likewise.
9238 * dumper.c (pdump_scan_by_alignment): Likewise.
9239 Don't iterate through unnecessary alignments.
9240 * dumper.c (pdump_file_get): No need to align result of malloc().
9241 * dumper.c (pdump_mallocadr): Remove.
9242 The result of malloc() is guaranteed to be maximally aligned.
9243 * dumper.c: s/elmt/elt/g;
9244 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9245 * dumper.c (pdump_alert_undump_object): Likewise.
9246 * dumper.c (pdump_align_table):
9247 Don't support alignments > 64.
9248 Store ALIGNOF's, not shift counts, in table.
9250 2001-02-09 Martin Buchholz <martin@xemacs.org>
9252 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9253 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9254 * systime.h: Use HAVE_UTIME.
9255 * sysdep.c (struct utimbuf): Remove.
9256 * sysdep.c (set_file_times): Prefer utime() to utimes().
9257 * config.h.in (HAVE_UTIME): New.
9258 * config.h.in (HAVE_UTIME_H): Remove.
9259 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9261 2001-02-09 Martin Buchholz <martin@xemacs.org>
9263 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9265 2001-02-08 Martin Buchholz <martin@xemacs.org>
9267 * s/irix6-0.h: Use the standard system memmove, not bcopy.
9269 2001-02-08 Martin Buchholz <martin@xemacs.org>
9271 * XEmacs 21.2.44 "Thalia" is released.
9273 2001-02-06 Martin Buchholz <martin@xemacs.org>
9275 Fixes crashes in kill-emacs on some systems.
9276 * process-unix.c (unix_kill_child_process):
9277 It's OK for kill() to fail with ESRCH.
9279 2001-02-07 Martin Buchholz <martin@xemacs.org>
9281 Contortions to make .gdbinit tricks work on most systems.
9282 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9283 * alloc.c (dbg_valmask): Make non-const.
9284 * alloc.c (dbg_typemask): Make non-const.
9285 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9286 * alloc.c (dbg_valbits): Make non-const.
9287 * alloc.c (dbg_gctypebits): Make non-const.
9288 * .gdbinit (decode_object): Make it work with AIX cc.
9290 2001-02-06 Martin Buchholz <martin@xemacs.org>
9292 * elhash.c (make_general_lisp_hash_table):
9293 Use simpler and more efficient calloc to clear entries.
9295 2001-02-07 Martin Buchholz <martin@xemacs.org>
9297 * window.c (window_scroll): Work around an AIX C compiler bug.
9298 Fixes 'scroll-up' does nothing problem with xlC.
9300 2001-02-05 Martin Buchholz <martin@xemacs.org>
9302 * .gdbinit: Remove obsolete comment.
9304 2001-01-31 Mike Alexander <mta@arbortext.com>
9306 * select.c (Fown_selection_internal): Set owned_p for device
9309 2001-02-01 Martin Buchholz <martin@xemacs.org>
9312 "not" cannot be used as a macro name as it is an operator in C++
9313 * config.h.in: Stop #defining `not'.
9314 * chartab.c (check_category_char): not ==> not_p
9315 * chartab.h: Likewise.
9316 * regex.c (re_match_2_internal): Likewise.
9318 2001-02-02 Martin Buchholz <martin@xemacs.org>
9320 * lisp-disunion.h: Fix up comments.
9322 2001-01-31 Martin Buchholz <martin@xemacs.org>
9324 * keymap.c (define_key_check_and_coerce_keysym):
9326 Support mouse-6 and mouse-7 bindings in the obvious way.
9328 2001-02-01 Martin Buchholz <martin@xemacs.org>
9330 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9332 2001-01-30 Martin Buchholz <martin@xemacs.org>
9334 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9335 Previous patch missed DEFVAR_INT_MAGIC.
9336 Make sure future DEFVAR_foo use correct types.
9337 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9338 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9339 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9340 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9341 * (DEFVAR_INT): Likewise.
9342 * redisplay.c (vertical_clip): Should be of type Fixnum.
9343 * redisplay.c (horizontal_clip): Likewise.
9344 * lisp.h (dump_add_opaque_int): New.
9345 (dump_add_opaque_fixnum): New.
9347 2001-01-29 Andy Piper <andy@xemacs.org>
9349 * glyphs-widget.c (check_valid_int_or_function): allow symbols
9350 since they can be eval'ed
9352 2001-01-29 Martin Buchholz <martin@xemacs.org>
9354 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9355 Oops, XEmacs redefines `class'. Use `typename' instead.
9357 2001-01-28 Martin Buchholz <martin@xemacs.org>
9359 * dumper.c: Fix C++ compile errors.
9361 2001-01-29 Martin Buchholz <martin@xemacs.org>
9363 * tparam.c: Use correct prototypes.
9365 2001-01-28 Martin Buchholz <martin@xemacs.org>
9367 * sysproc.h: #include util.h for NetBSD's openpty.
9369 2001-01-27 Martin Buchholz <martin@xemacs.org>
9371 More 64-bit correctness.
9372 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9373 Use a typedef `fixnum' for the type used for DEFVAR_INT.
9375 This finally finishes the 64-bit SGI port.
9376 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9377 * symbols.c: Fix up comments and type casts.
9378 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9379 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9380 * symeval.h (Fixnum): New type.
9381 * symeval.h (symbol_value_type): Fix up comment.
9397 * mule-canna.c: A million DEFVAR_INTs here...
9398 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9411 s/int/Fixnum/g in DEFVAR_INT declarations.
9413 2001-01-26 Martin Buchholz <martin@xemacs.org>
9415 Port pdump to SGI alignment-sensitive environment.
9416 Lisp Object sizeof methods now return aligned sizes. Rely on that.
9417 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9419 Define and use aligned reading and writing macros.
9420 Use buffered stdio instead of posix i/o for faster dumping.
9421 Eliminate kludgy 256 byte space for header.
9422 Read and write from dump file using structs for alignment safety.
9423 * dumper.c (pdump_align_stream): New.
9424 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9425 * dumper.c (PDUMP_READ_ALIGNED): New.
9426 * dumper.c (PDUMP_WRITE_ALIGNED): New.
9427 * dumper.c (pdump_static_Lisp_Object): New struct.
9428 * dumper.c (pdump_static_pointer): New struct.
9429 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9430 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9431 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9432 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9434 * dumper.c (pdump_backtrace):
9435 * dumper.c (pdump_get_indirect_count):
9436 * dumper.c (pdump_register_object):
9437 * dumper.c (pdump_register_struct):
9438 * dumper.c (pdump_reloc_one):
9439 * dumper.c (pdump_scan_by_alignment):
9440 * dumper.c (pdump_dump_from_root_struct_ptrs):
9441 * dumper.c (pdump_dump_opaques):
9442 * dumper.c (pdump_dump_rtables):
9443 * dumper.c (pdump_dump_from_root_objects):
9445 * dumper.c (pdump_load_finish):
9446 Use aligned reading and writing.
9448 * dumper.c (pdump_free): Make static.
9449 * dumper.c (pdump_hFile): Likewise.
9450 * dumper.c (pdump_hMap): Likewise.
9452 2001-01-26 Martin Buchholz <martin@xemacs.org>
9454 * XEmacs 21.2.43 "Terspichore" is released.
9456 2001-01-25 Martin Buchholz <martin@xemacs.org>
9458 Type fiddling for window_config.saved_windows_count
9459 * window.c (struct window_config):
9460 Make saved_windows_count member unsigned.
9461 * window.c (sizeof_window_config_for_n_windows):
9462 Make parameter unsigned.
9463 * window.c (mark_window_config):
9464 * window.c (window_config_equal):
9465 * window.c (free_window_configuration):
9466 * window.c (Fset_window_configuration):
9467 * window.c (count_windows):
9468 * window.c (Fcurrent_window_configuration):
9469 * window.c (reinit_vars_of_window):
9470 Update all callers and users.
9472 2001-01-25 Martin Buchholz <martin@xemacs.org>
9474 Alignment correctness for flexible arrays.
9475 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9476 Make alignment-correct. Add interesting comments.
9477 * alloc.c (size_vector):
9478 * alloc.c (make_vector_internal):
9479 * alloc.c (make_bit_vector_internal):
9480 * alloc.c (sweep_bit_vectors_1):
9481 * fns.c (size_bit_vector):
9482 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9483 * window.c (sizeof_window_config_for_n_windows):
9484 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9486 2001-01-24 Martin Buchholz <martin@xemacs.org>
9488 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9490 2001-01-23 Andy Piper <andy@xemacs.org>
9492 * select.c (Fown_selection_internal): pass owned_p
9494 * select-msw.c (mswindows_own_selection): New Signature.
9496 * console.h (struct console_methods): add owned_p to
9499 * select-x.c (x_own_selection): pass owned_p
9500 (hack_motif_clipboard_selection): use owned_p
9501 (vars_of_select_x): new variable -
9502 x_selection_strict_motif_ownership.
9504 2001-01-23 Martin Buchholz <martin@xemacs.org>
9506 * specifier.h (specifier_data_offset): Remove pointless parens.
9507 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9509 2001-01-24 Martin Buchholz <martin@xemacs.org>
9511 Make Lisp_Object sizeof methods be alignment-correct.
9512 pdump must restore objects to the same alignment as the C compiler
9513 assumes. It really matters on SGIs.
9514 * lstream.c (aligned_sizeof_lstream): New.
9515 (sizeof_lstream): Use aligned_sizeof_lstream.
9516 (Lstream_new): Likewise.
9517 * opaque.c (aligned_sizeof_opaque): New.
9518 (sizeof_opaque): Use aligned_sizeof_opaque.
9519 (make_opaque): Likewise.
9520 * specifier.c (aligned_sizeof_specifier): New.
9521 (sizeof_specifier): Use aligned_sizeof_specifier.
9522 (make_specifier_internal): Likewise.
9524 2001-01-23 Martin Buchholz <martin@xemacs.org>
9526 * lstream.h (struct lstream): Use max_align_t for trailing data.
9527 * specifier.h (struct Lisp_Specifier): Likewise.
9529 2001-01-22 Martin Buchholz <martin@xemacs.org>
9531 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9532 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9533 (CCL_SUSPEND): Likewise.
9534 (CCL_INVALID_CMD): Likewise.
9535 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9536 (ccl_driver): Likewise.
9537 (CCL_WRITE_CHAR): Macro hygiene.
9538 (CCL_WRITE_STRING): Macro hygiene.
9540 2001-01-22 Martin Buchholz <martin@xemacs.org>
9542 Port "portable" dumper to SunOS 4 and HP-UX.
9543 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9544 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9545 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9547 2001-01-22 Martin Buchholz <martin@xemacs.org>
9549 * lisp.h (ALIGNOF): A better definition for C++.
9551 2001-01-20 Martin Buchholz <martin@xemacs.org>
9554 Fix printf warnings: int format, long int arg.
9555 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9556 (PUSH_FAILURE_POINT): Use correct printf formats.
9557 (POP_FAILURE_POINT): Use correct printf formats.
9558 Use do {...} while (0)
9560 2001-01-20 Martin Buchholz <martin@xemacs.org>
9562 * XEmacs 21.2.42 "Poseidon" is released.
9564 2001-01-20 Martin Buchholz <martin@xemacs.org>
9566 * console-x.h: typo fix du jour. Remove #if 0'ed code.
9568 2001-01-19 Martin Buchholz <martin@xemacs.org>
9570 De-kludgify FIXED_TYPE free list frobbing.
9571 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9572 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9573 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9574 * alloc.c (Lisp_Free): New pseudo lisp object definition.
9575 * alloc.c (LRECORD_FREE_P): New.
9576 * alloc.c (MARK_LRECORD_AS_FREE): New.
9577 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9578 * alloc.c (STRUCT_FREE_P): Deleted.
9579 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9580 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9581 * alloc.c (STRING_CHARS_FREE_P): New.
9582 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9583 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9584 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9585 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9586 * alloc.c (resize_string): Use new definitions.
9587 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9588 * alloc.c (verify_string_chars_integrity): Use new definitions.
9589 * alloc.c (compact_string_chars): Use new definitions.
9590 * alloc.c: Update monster comments.
9591 * lrecord.h (lrecord_type): Add some new lrecord types for
9594 2001-01-18 Martin Buchholz <martin@xemacs.org>
9596 Improve alignment hackery.
9597 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9598 (max_align_t): Moved from opaque.h - general purpose.
9599 (ALIGN_PTR): Use size_t, not long.
9600 * opaque.h (max_align_t): Move to lisp.h.
9602 2001-01-18 Norbert Koch <nk@LF.net>
9604 * gui.h: Fix and add prototypes to fix build problems.
9606 2001-01-18 Martin Buchholz <martin@xemacs.org>
9608 temacs is going away, so `dump-temacs' is now a bad name.
9609 * .dbxrc (dump-temacs): Rename to `dmp'.
9610 * .gdbinit (dump-temacs): Rename to `dmp'.
9612 2001-01-17 Andy Piper <andy@xemacs.org>
9614 * glyphs.c (print_image_instance): comment to make martin happy.
9616 * glyphs-x.c (x_redisplay_widget): update faces after a frame
9619 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9621 (mswindows_tab_control_redisplay): warning suppression.
9623 * glyphs-widget.c (widget_update): re-write to cope with updated
9625 (widget_instantiate): use new gui_item functions.
9626 (tab_control_update): deleted.
9627 (progress_gauge_update): deleted.
9628 (image_instantiator_progress_guage): take out update reference.
9629 (image_instantiator_tree_view): ditto.
9630 (image_instantiator_tab_control): ditto.
9632 * gui.c (widget_gui_parse_item_keywords): new function. Do things
9634 (gui_item_add_keyval_pair): re-write to cope with descriptors and
9635 return whether anything was changed.
9636 (update_gui_item_keywords): as it sounds.
9638 * gui.h: declare widget_gui_parse_item_keywords.
9640 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9641 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9643 2001-01-17 Martin Buchholz <martin@xemacs.org>
9645 * XEmacs 21.2.41 "Polyhymnia" is released.
9647 2001-01-16 Didier Verna <didier@xemacs.org>
9649 * glyphs.c (image_instantiate): don't use fallbacks when
9650 instantiating a face's background pixmap by inheritance.
9652 2001-01-14 Mike Sperber <mike@xemacs.org>
9654 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9655 Conditionalize accordingly.
9657 2001-01-16 Martin Buchholz <martin@xemacs.org>
9659 * dumper.c (pdump_file_get): Fix a compiler warning.
9661 2001-01-15 Martin Buchholz <martin@xemacs.org>
9663 Make Purify happy when pdumping.
9664 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9665 iniitalizing all bits of new lisp object memory.
9666 * symbols.c (Fmake_local_variable): Likewise.
9667 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9668 * symbols.c (Fdefvaralias): Likewise.
9669 * mule-charset.c (vars_of_mule_charset): Likewise.
9671 2001-01-15 Martin Buchholz <martin@xemacs.org>
9672 Add the `-nd' flag when running pre-dump operations under the debugger.
9673 * .dbxrc (run-temacs): Add `-nd'.
9674 * .dbxrc (update-elc): Likewise.
9675 * .dbxrc (dump-temacs): Likewise.
9676 * .gdbinit (run-temacs): Likewise.
9677 * .gdbinit (check-temacs): Likewise.
9678 * .gdbinit (update-elc): Likewise.
9679 * .gdbinit (dump-temacs): Likewise.
9681 2001-01-14 Martin Buchholz <martin@xemacs.org>
9683 Allow building 64-bit executables on AIX with GNU malloc, e.g.
9684 export OBJECT_MODE=64
9685 configure --pdump --use-union-type=no
9686 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9687 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9689 * miscplay.c (sndcnv8U_2mono):
9690 Avoid two uses of `++' in the same expression.
9691 Suppresses a GCC warning.
9693 2001-01-13 Martin Buchholz <martin@xemacs.org>
9695 Make sure future compilers don't miscompile alloc.c.
9697 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9698 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9700 2001-01-12 Martin Buchholz <martin@xemacs.org>
9702 * dumper.c: A little post-pdump-rename comment fixup.
9704 2001-01-09 Jerry James <james@eecs.ku.edu>
9706 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9708 2001-01-13 Martin Buchholz <martin@xemacs.org>
9710 * *.[ch]: Globally rename symbols using the following `pdump-rename'
9714 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9717 replace_symbol pdump_wire_lists pdump_weak_object_chains
9718 replace_symbol pdump_wire_list dump_add_weak_object_chain
9720 replace_symbol pdump_wires pdump_root_objects
9721 replace_symbol pdump_wire dump_add_root_object
9723 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9724 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9726 replace_symbol dumpstructinfos pdump_root_struct_ptrs
9727 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9728 replace_symbol dumpstructinfo pdump_root_struct_ptr
9729 replace_symbol dumpstruct dump_add_root_struct_ptr
9731 replace_symbol dumpopaque dump_add_opaque
9732 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9733 replace_symbol dumpopaqueinfos pdump_opaques
9734 replace_symbol dumpopaqueinfo pdump_opaque
9736 replace_symbol nb_structdump nb_root_struct_ptrs
9737 replace_symbol nb_opaquedump nb_opaques
9739 replace_symbol align_table pdump_align_table
9740 replace_symbol dump_header pdump_header
9742 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9743 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9746 2001-01-12 Martin Buchholz <martin@xemacs.org>
9748 * s/aix4.h: Keep the C for AIX compiler from overaggressively
9749 optimizing bytecount_to_charcount().
9751 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
9754 (HAVE_DLFCN_H): Removed.
9755 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9757 2001-01-06 Martin Buchholz <martin@xemacs.org>
9759 Portable dumper maintainability improvements.
9760 * alloc.c (staticpro):
9761 * alloc.c (staticpro_nodump):
9762 * alloc.c (garbage_collect_1):
9763 * alloc.c (reinit_alloc_once_early):
9764 * alloc.c (init_alloc_once_early):
9765 * alloc.c: Move dumper functions to alloc.c.
9766 * dumper.c (pdump_backtrace):
9767 * dumper.c (pdump_dump_structs):
9768 * dumper.c (pdump_dump_opaques):
9769 * dumper.c (pdump_dump_rtables):
9770 * dumper.c (pdump_dump_wired):
9772 * dumper.c (pdump_load_check):
9773 * dumper.c (pdump_load_finish):
9774 * dumper.c (pdump_file_unmap):
9775 * dumper.c (pdump_file_get):
9776 * dumper.c (pdump_resource_free):
9777 * dumper.c (pdump_resource_get):
9778 * dumper.c (pdump_file_free):
9779 * dumper.c (pdump_file_try):
9780 * dumper.c (pdump_load):
9781 Remove fixed size limits on staticpro(), staticpro_nodump(),
9782 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9783 Remove custom code for dumping lrecord_implementations_table - use
9785 Remove (most of the) custom code for dumping staticpros - dump it
9786 like any other dynarr.
9788 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
9789 * dumper.c: Moved functions from alloc.c.
9790 * alloc.c (dumpstruct): Moved to dumper.c.
9791 * alloc.c (dumpopaque): Likewise.
9792 * alloc.c (pdump_wire): Likewise.
9793 * alloc.c (pdump_wire_list): Likewise.
9795 * lisp.h (Dynarr_sizeof): New.
9796 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
9797 * lisp.h (Dynarr_end): New. Very slightly C++oid.
9798 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
9800 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9801 * lisp.h (dumpopaque): ditto.
9802 * lisp.h (pdump_wire): ditto.
9803 * lisp.h (pdump_wire_list): ditto.
9805 2001-01-09 Martin Buchholz <martin@xemacs.org>
9807 * make-src-depend (PrintPatternDeps):
9808 Use `sort' to make output independent of perl version.
9810 2001-01-08 Martin Buchholz <martin@xemacs.org>
9813 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9814 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9816 2001-01-03 Didier Verna <didier@xemacs.org>
9818 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9819 that `focus_frame' is alive before thinking of calling
9820 `redisplay_redraw_cursor' on it.
9822 2001-01-08 Martin Buchholz <martin@xemacs.org>
9824 * XEmacs 21.2.40 is released.
9826 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
9828 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9830 2001-01-06 Martin Buchholz <martin@xemacs.org>
9832 * alloc.c (dbg_valmask): Make const.
9833 * alloc.c (dbg_typemask): Make const.
9834 * alloc.c (dbg_USE_UNION_TYPE): Make const.
9835 * alloc.c (dbg_valbits): Make const.
9836 * alloc.c (dbg_gctypebits): Make const.
9838 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
9840 * redisplay-x.c (x_bevel_area):
9841 redisplay.h (struct rune):
9842 Typo fixes in comments.
9844 2001-01-05 Andy Piper <andy@xemacs.org>
9846 * glyphs-x.c (x_redisplay_widget): use size changed for offset
9849 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9851 2001-01-05 Martin Buchholz <martin@xemacs.org>
9853 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9855 * mule-ccl.c (stack_idx_of_map_multiple):
9856 Non const global data must not be initialized!
9857 Found by MIYASHITA Hisashi.
9859 2001-01-02 Andy Piper <andy@xemacs.org>
9861 * frame.c (change_frame_size): make sure frame size is always
9864 * glyphs.c (image_instance_layout): minor code reuse.
9866 * window.c (Fcurrent_window_configuration): revert previous
9869 2001-01-02 Martin Buchholz <martin@xemacs.org>
9872 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9874 2000-12-31 Andy Piper <andy@xemacs.org>
9876 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9877 when widget gets unmapped.
9879 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9880 function. Make sure widgets losing focus don't just drop it.
9881 (handle_focus_event_1): record the widget with focus.
9883 2000-12-31 Andy Piper <andy@xemacs.org>
9885 * window.c (allocate_window): use
9886 make_image_instance_cache_hash_table.
9887 (make_dummy_parent): ditto.
9888 (Fset_window_configuration): ditto.
9890 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
9892 * glyphs.c (process_image_string_instantiator): use
9894 (get_image_instantiator_governing_domain): ditto.
9895 (normalize_image_instantiator): ditto.
9896 (instantiate_image_instantiator): ditto.
9897 (make_image_instance_1): ditto.
9898 (image_instantiate): ditto. Key on glyph *and* instantiator type.
9899 (instantiator_eq_equal): new function for use with instance hash
9901 (instantiator_eq_hash): ditto.
9902 (make_image_instance_cache_hash_table): create a suitable hash
9903 table for storing image instances.
9905 * elhash.h (hash_table_weakness): new internal weakness type
9906 HASH_TABLE_KEY_CAR_VALUE_WEAK.
9907 declare new functions.
9909 * elhash.c (finish_marking_weak_hash_tables): introduce yet
9910 another weakness type for glyphs.
9911 (make_standard_lisp_hash_table): new function split out from
9912 make_general_lisp_hash_table.
9913 (make_lisp_hash_table): call make_standard_lisp_hash_table.
9914 (hash_table_instantiate): ditto.
9915 (Fmake_hash_table): ditto.
9917 2000-12-31 Martin Buchholz <martin@xemacs.org>
9919 * XEmacs 21.2.39 is released.
9921 2000-12-29 Andy Piper <andy@xemacs.org>
9923 * menubar.c (menubar_visible_p_changed): signal the frame changed.
9925 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9926 the frame has changed so that we pick up geometry changes such as
9929 2000-12-28 Andy Piper <andy@xemacs.org>
9931 * lastfile.c (my_ebss): make a char array so we can pad the
9932 bss. Fixes cygwin unexec.
9934 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9936 2000-12-26 Andy Piper <andy@xemacs.org>
9938 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9939 comments and try and be more precise about a non-/SIGIO world.
9940 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9943 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9944 we don't normalize to zero width or height.
9946 2000-12-24 Andy Piper <andy@xemacs.org>
9948 * Makefile.in.in (ldflags): add -mwindows when appropriate.
9950 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
9952 * s/sco5.h: SCO 5 has pty support.
9954 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
9956 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9957 input-method-xlib.c contains whole contents of input-method-xfs.c,
9958 so we can use input-method-xlib.c's code for USE_XFONTSET
9960 * input-method-xfs.c: removed.
9962 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
9964 * file-coding.h (enum coding_category_type): reorder enumerators to
9965 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
9966 (now one greater than largest real coding_category_type enumerator).
9967 * file-coding.c (coding_category_symbol, coding_category_by_priority,
9968 coding_category_system, fcd_descriptihon_1, decode_coding_category,
9969 Fcoding_category_list, Fset_coding_priority_list,
9970 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9971 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9973 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
9975 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9976 * redisplay-output.c (redisplay_output_window): Clear top of window
9977 when face is changed.
9978 * redisplay-x.c (x_redraw_exposed_window): Call
9979 redisplay_clear_top_of_window.
9980 * redisplay.h: Publish redisplay_clear_top_of_window.
9982 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
9984 * buffer.c (Fkill_buffer): Map over all devices.
9985 * window.c (window_loop): Remove UNSHOW_BUFFER code.
9986 (list_windows): New function.
9987 (list_all_windows): Ditto.
9988 (Freplace_buffer_in_windows): Use them.
9990 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9992 * database.c (berkdb_subtype): Recognize new subtype `queue'.
9993 (Fopen_database): Use `db_create' instead of `db_open'.
9994 (syms_of_database): Initialize Qqueue.
9996 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9998 * buffer.c (common_init_complex_vars_of_buffer): Initialize
9999 buffer_local_face_property.
10000 * buffer.h (struct buffer): New member buffer_local_face_property.
10001 * window.c (Fset_window_buffer): Mark window's face as changed
10002 when buffer has buffer local face.
10003 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10004 * objects.c (color_after_change): Set buffer_local_face_property
10005 when locale of face specifier is buffer.
10006 * objects.c (font_after_change): Ditto.
10007 * objects.c (face_boolean_after_change): Ditto.
10008 * glyphs.c (image_after_change): Ditto.
10010 2000-12-09 Dan Holmsand <dan@eyebee.com>
10012 * nt.c (mswindows_fstat): Report file permissions, volume serial
10013 number, etc. Code adapted from FSF Emacs 20.7.
10015 2000-12-09 Dan Holmsand <dan@eyebee.com>
10017 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10018 of stat when we don't have symbolic links, to make sure
10019 mswindows_stat is called on mswindows.
10021 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
10023 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10025 2000-12-12 Martin Buchholz <martin@xemacs.org>
10027 * doprnt.c (emacs_doprnt_1): More printing fixes.
10028 Make printing of numbers compatible with libc and FSF Emacs.
10029 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10030 Use the system printf to do most of the hard work of formatting,
10031 instead of doprnt_1().
10032 Calculate memory to allocate for format string.
10033 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10034 (doprnt_1): Cleaner code and documentation.
10036 2000-12-01 Jerry James <james@eecs.ukans.edu>
10038 * Makefile.in.in: Use the loop variable to install headers.
10040 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
10042 * window.c (Fsplit_window): Don't invalidate face cache.
10044 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
10046 * minibuf.c (Fall_completions): Undo the previous change
10047 which removed checking elements start with space.
10049 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
10051 * mule-canna.c: Didier suppression.
10053 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
10055 * mule-canna.c: rename static unsigned char buf[] to key_buffer
10056 (warning suppression). Add English comment translations.
10058 2000-12-05 Martin Buchholz <martin@xemacs.org>
10060 * unexelfsgi.c (unexec): Better test for mmap failure.
10062 2000-12-05 Martin Buchholz <martin@xemacs.org>
10064 * XEmacs 21.2.38 is released.
10066 2000-12-05 Martin Buchholz <martin@xemacs.org>
10068 * redisplay.c (bar-cursor): Make a user variable.
10070 * symsinit.h: Add init_postgresql_from_environment.
10072 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
10074 * regex.c: Convert to clean C.
10076 2000-12-05 Dan Holmsand <dan@eyebee.com>
10079 Don't #include sysfile.h. Revert to duplicating PATH_MAX
10081 (sys_readlink): renamed to system_readlink to avoid conflict with
10082 the other sys_readlink.
10084 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
10086 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10088 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
10090 * postgresql.c (init_postgresql_from_environment): new function.
10091 (vars_of_postgresql): Move code initializing Lisp variables out and
10092 into init_postgresql_from_environment.
10093 emacs.c (main_1): Call init_postgresql_from_environment if and only
10094 if running a dumped XEmacs.
10096 2000-08-31 Dan Holmsand <dan@eyebee.com>
10098 * buffer.c: Make find-file-compare-truenames default to true on
10101 * realpath.c (win32_abs_start):
10103 (win32_readlink): New functions.
10104 (xrealpath): Return really real filenames on windows.
10106 * fileio.c (Ffile_truename): Make file-truename work on windows.
10108 2000-11-29 Didier Verna <didier@xemacs.org>
10110 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10111 * faces.c (update_face_cachel_data): use it.
10112 * faces.c (add_face_cachel): use it. Complete background pixmap
10113 frobbing in face cache if `update_face_cachel_data' has not done so.
10115 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
10117 * search.c (string_match_1): Don't set last_thing_searched
10118 when search failed.
10120 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
10122 * buffer.c: Include casetab.h
10123 (common_init_complex_vars_of_buffer): Use new case-table object.
10124 * buffer.h: Include casetab.h
10125 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10126 (DOWNCASE_TABLE_OF): Ditto.
10127 * bufslots.h: Remove char-tables and add case-table.
10128 * casetab.c: Include casetab.h
10129 (CASE_TABLE_P): Removed.
10130 (mark_case_table): New function.
10131 (allocate_case_table): New function.
10132 (Fcase_table_p): Use new case-table.
10133 (case_table_char): New function.
10134 (Fget_case_table): Ditto.
10135 (Fput_case_table): Ditto.
10136 (Fput_case_table_pair): Ditto.
10137 (Fcopy_case_table): Ditto.
10138 (Fcurrent_case_table): Return case-table.
10139 (Fstandard_case_table): Return case-table.
10140 (Fset_case_table): Fix doc-string.
10141 (set_case_table): Use case-table
10142 (syms_of_casetab): DEFSUBR new functions.
10143 (complex_vars_of_casetab): Set up standard case-table.
10144 * casetab.h: New file.
10145 * editfns.c: Include casetab.h
10146 (Fcompare_buffer_substrings): Use case-table.
10147 * inline.c: Include casetab.h
10148 * lisp.h: Remove bogus extern.
10149 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10150 * search.c: Include casetab.h
10151 (TRANSLATE_ASCII): Removed.
10152 (TRANSLATE): Unconditionally translate character.
10153 (looking_at_1): Use case-table.
10154 (string_match_1): Ditto.
10155 (fast_string_match): Ditto.
10156 (search_command): Ditto.
10157 (search_buffer): Separate boyer_moore. Check whether
10158 boyer_moore is possible.
10159 (simple_search): New function.
10160 (boyer_moore): Separated from search_buffer. Translate char.
10162 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
10164 * regex.c (RE_TR_ASCII): Removed.
10165 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10166 (PATFETCH): Call PATFETCH_RAW.
10167 (PATFETCH_RAW): Fetch Emchar.
10168 (PATUNFETCH): Decrement charptr.
10169 (GET_BUFFER_SPACE): Rename b to buf_end.
10171 (BUF_PUSH_2): Ditto.
10172 (BUF_PUSH_3): Ditto.
10173 (EXTEND_BUFFER): Ditto.
10174 (SET_LIST_BIT): Ditto.
10175 (regex_compile): Ditto. Translate non ASCII char.
10176 (compile_range): Ditto.
10177 (re_search_2): Ditto.
10178 (re_match_2_internal): Compare Emchar.
10179 (bcmp_translate): Ditto.
10181 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
10183 * lisp.h (basic char/int typedefs): comment improvement.
10185 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
10187 * emacs.c (main_1): unconditional pdump unstomping; don't save and
10188 unstomp inhibit_site_lisp. Improve comments.
10190 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
10192 * mule-charset.c (Fcharset_property): improve type checking, comments.
10194 2000-11-28 Andy Piper <andy@xemacs.org>
10196 * redisplay-output.c (redisplay_output_subwindow): make sure we do
10197 clipped display for windows in the gutter also.
10198 (redisplay_display_boxes_in_window_p): change semantics of return
10199 codes to be more intuitive.
10201 * gutter.h: declare display_boxes_in_gutter_p.
10203 * gutter.c (display_boxes_in_gutter_p): new function for
10206 2000-11-22 Andy Piper <andy@xemacs.org>
10208 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10211 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
10213 * callproc.c (Fold_call_process_internal):
10214 * gpm.c (Freceive_gpm_event):
10215 (tty_get_foreign_selection): Might be just warning supression.
10216 * fileio.c (Fwrite_region_internal):
10217 (Fset_visited_file_modtime):
10218 * keymap.c (event_matches_key_specifier_p):
10219 Initialize GCPROed variable.
10221 * menubar-x.c (command_builder_find_menu_accelerator):
10222 Initialize before use.
10224 2000-11-23 Andy Piper <andy@xemacs.org>
10226 * unexcw.c (unexec): make the resulting executable executable.
10228 2000-11-21 Martin Buchholz <martin@xemacs.org>
10230 * doc.c (get_doc_string):
10231 Use size_t, not int, for result of XSTRING_LENGTH.
10233 * cmds.c (Fdelete_char):
10234 * cmds.c (Fpoint_at_eol):
10235 * cmds.c (Fself_insert_command):
10236 Use EMACS_INT, not int, for result of XINT.
10237 Someday, someone will want to insert more than 2**31 identical characters.
10239 * cmds.c (Fdelete_char):
10240 * cmds.c (Fdelete_backward_char):
10241 * syntax.c (Fforward_word):
10242 * syntax.c (Fforward_comment):
10243 Make COUNT argument optional, for consistency with forward-char et al.
10245 2000-11-22 Martin Buchholz <martin@xemacs.org>
10248 * print.c (long_to_string):
10249 Return a useful value: the pointer at end of data written.
10252 Use `static const char * const' for constant strings.
10253 (union printf_arg): Delete `i', `ui' members.
10256 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10257 Do all printf-ing via the `l' specifier.
10258 Use EMACS_INT instead of int.
10261 2000-11-20 Didier Verna <didier@xemacs.org>
10263 * faces.c (update_face_cachel_data): don't frob the background
10264 pixmap when the window is being created. The face is needed but
10265 does not exist yet.
10267 2000-11-20 Andy Piper <andy@xemacs.org>
10269 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10270 messing with a debug environment.
10272 2000-11-20 Martin Buchholz <martin@xemacs.org>
10274 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10276 2000-11-20 Martin Buchholz <martin@xemacs.org>
10278 * casetab.c (Fcase_table_p): Fix compile error and crash.
10280 2000-11-18 Philip Aston <philipa@mail.com>
10282 * s/cygwin32.h: Cygwin has SVR4-like pty support.
10284 2000-11-18 Martin Buchholz <martin@xemacs.org>
10286 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
10287 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10289 2000-11-17 Martin Buchholz <martin@xemacs.org>
10291 * config.h.in: Define HAVE_ELF_H if elf.h exists.
10292 * unexelf.c: Use HAVE_ELF_H.
10293 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10294 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10295 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10296 Greg Harrington <greg_harrington@hotmail.com> provided a machine
10298 So this is an unexelfsgi.c from a different line of development.
10300 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
10302 * regex.c (RE_TR_ASCII): New function.
10303 (RE_TRANSLATE): Call it.
10305 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
10307 * buffer.h (TRT_TABLE_OF): Remove assert.
10308 (IN_TRT_TABLE_DOMAIN): Removed.
10310 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
10312 * free-hook.c (log_gcpro):
10313 (show_gcprohist): Add support for GCPRO5.
10315 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
10317 * emacs.c (main_1): Improve -sd error message when --pdump=no.
10319 2000-11-16 Olivier Galibert <galibert@xemacs.org>
10321 * symeval.h: Declare flush_all_buffer_local_cache.
10323 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10324 (flush_buffer_local_cache): Added.
10325 (flush_all_buffer_local_cache): Added.
10327 * lrecord.h: Remove unused XD_LO_RESET_NIL.
10329 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10330 (pdump_dump_data): Ditto.
10331 (pdump_reloc_one): Ditto.
10332 (pdump): Remove unused pdump_qnil. Flush buffer local caches
10336 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
10338 * buffer.c: Remove if 0'ed entry.
10339 * buffer.h: Rewrite TRT to use char-table.
10340 * bufslots.h: Remove mirror tables.
10341 * casetab.c: Remove mirror tables.
10342 (CASE_TABLE_P): New macro.
10343 (Fcase_table_p): Element of a case table is string or char-table.
10344 (make_mirror_trt_table): Removed.
10345 (set_case_table): Setup char-table from strings for backward
10347 * dired.c (Fdirectory_files):
10348 * dired-msw.c: (mswindows_get_files):
10349 * lisp.h: Change prototype of re_pattern_buffer.
10350 * regex.c: (RE_TRANSLATE): New macro.
10351 (TRANSLATE_P): Ditto.
10352 Change translate to type RE_TRANSLATE_TYPE.
10353 * regex.h: Define RE_TRANSLATE_TYPE
10354 * search.c (TRANSLATE): New macro.
10355 (TRANSLATE_ASCII): New macro.
10356 Translate table is changed to Lisp_Object.
10357 (signal_failure): Inhibit return.
10359 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
10366 Do UNGCPRO before return.
10368 2000-11-14 Martin Buchholz <martin@xemacs.org>
10370 * XEmacs 21.2.37 is released.
10372 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
10374 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10375 Add comments about discarded return value.
10377 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10380 * event-stream.c: Fix comments. Remove some #if 0'ed part.
10382 2000-10-27 Andy Piper <andy@xemacs.org>
10384 * gutter.c (Fset_default_gutter_position): default left and right
10385 gutters to visible.
10386 (calculate_gutter_size): calculate resonable heuristic for left
10387 and right gutter sizes.
10388 (specifier_vars_of_gutter): change left and right gutter sizes to
10390 (calculate_gutter_size_from_display_lines): new function.
10391 (output_gutter): check for resizing on left and right gutters.
10392 (clear_gutter): don't special case top and left gutters.
10393 (specifier_vars_of_gutter): use new signature for
10394 set_specifier_caching.
10396 * glyphs-x.c (x_redisplay_widget): spelling fix.
10397 * glyphs.c (specifier_vars_of_glyphs):
10398 * menubar.c (specifier_vars_of_menubar):
10399 * redisplay.c (specifier_vars_of_redisplay):
10400 * toolbar.c (specifier_vars_of_toolbar):
10401 * window.c (specifier_vars_of_window):
10402 * scrollbar.c (specifier_vars_of_scrollbar):
10403 (complex_vars_of_scrollbar): use new signature for
10404 set_specifier_caching.
10406 * specifier.c (set_specifier_caching): include recompute flag.
10407 (recompute_one_cached_specifier_in_window): always recompute if
10409 (recompute_one_cached_specifier_in_frame): ditto.
10411 * specifier.h (struct specifier_caching): add recompute flag.
10413 2000-10-24 Andy Piper <andy@xemacs.org>
10415 * unexcw.c (copy_executable_and_dump_data_section): add new
10416 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10419 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
10421 * console-x.h (x_device): New member modifier_release_time.
10422 * event-Xt.c (x_handle_sticky_modifiers):
10423 Bound interval modifier keys are sticky.
10424 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10425 * events.h: extern it.
10427 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
10429 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10431 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
10433 * event-stream.c (execute_command_event): Preserve current_events
10434 and the like when event is misc-user-event.
10435 Inhibit quit during the call to maybe_echo_keys.
10437 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
10439 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10440 symlink when buffer is killed.
10441 (inhibit_clash_detection): New variable.
10443 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
10445 * console.c (Fset_input_method): Trigger redisplay on tty.
10447 2000-11-07 Martin Buchholz <martin@xemacs.org>
10449 * process.c (Fprocess_status): Revert to previous behavior:
10450 (process-status "nosuchprocess") ==> nil
10452 2000-11-06 Martin Buchholz <martin@xemacs.org>
10454 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10455 Work around another GCC 2.95.2 optimizer bug.
10457 2000-11-02 Martin Buchholz <martin@xemacs.org>
10459 * process.c (Fget_process): Use LIST_LOOP_2.
10460 (kill_buffer_processes): Use LIST_LOOP_2.
10462 * minibuf.c (Fall_completions):
10463 Delete old non-functional code for FSF fourth argument.
10465 * frame.c (frame_matches_frame_spec):
10466 Renamed from `frame_matches_frametype'. Update all callers.
10467 (device_matches_device_spec):
10468 Renamed from 'device_matches_console_spec'. Update all callers.
10470 * doc.c (Fsubstitute_command_keys):
10471 Remove buffer overflow crash. Small code cleanups.
10473 * casetab.c (check_case_table): Simpler code.
10475 * window.c (Freplace_buffer_in_windows):
10476 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10477 (and similar implementation) as Fdelete_windows_on.
10478 Update all callers.
10480 * alloc.c (Fmake_list):
10481 * alloc.c (make_vector):
10482 * alloc.c (Fmake_vector):
10483 * alloc.c (make_bit_vector):
10484 * alloc.c (Fmake_bit_vector):
10485 * alloc.c (Fbit_vector):
10486 * alloc.c (Fmake_string):
10487 * alloc.c (Fpurecopy):
10488 * alloc.c (Fmemory_limit):
10490 * buffer.c (Fget_buffer):
10491 * buffer.c (Fkill_buffer):
10492 * buffer.c (complex_vars_of_buffer):
10493 * bytecode.c (Fcompiled_function_stack_depth):
10494 * callint.c (Fprefix_numeric_value):
10496 * event-stream.c (Fread_key_sequence):
10498 * casetab.c (Fcase_table_p):
10499 * casetab.c (check_case_table):
10500 * casetab.c (Fset_case_table):
10501 * casetab.c (Fset_standard_case_table):
10503 * chartab.c (Fchar_table_type):
10504 * chartab.c (Freset_char_table):
10505 * chartab.c (Fget_char_table):
10506 * chartab.c (Fget_range_char_table):
10507 * chartab.c (Fput_char_table):
10508 * chartab.c (Fmap_char_table):
10509 * chartab.c (Fcategory_table_p):
10510 * chartab.c (Fcheck_category_at):
10511 * chartab.c (Fchar_in_category_p):
10512 * chartab.c (Fcategory_table):
10513 * chartab.c (Fcopy_category_table):
10514 * chartab.c (Fset_category_table):
10515 * chartab.c (Fcategory_designator_p):
10516 * chartab.c (Fcategory_table_value_p):
10517 * cmds.c (Fdelete_char):
10518 * cmds.c (Fdelete_backward_char):
10519 * cmds.c (Fself_insert_command):
10520 * cmds.c (Fself_insert_internal):
10521 * console.c (Fvalid_console_type_p):
10522 * console.c (Fcdfw_console):
10523 * console.c (Fconsole_type):
10524 * console.c (Fconsole_name):
10525 * console.c (Fconsole_device_list):
10526 * console.c (Fconsole_on_window_system_p):
10529 * data.c (Fold_eq):
10530 * data.c (Fsubr_interactive):
10531 * data.c (Fchar_to_int):
10532 * data.c (Fint_to_char):
10533 * data.c (Fsetcar):
10534 * data.c (Fsetcdr):
10535 * data.c (Fnumber_to_string):
10536 * data.c (Fstring_to_number):
10538 * database.c (mark_database):
10539 * database.c (finalize_database):
10540 * database.c (Fdatabase_live_p):
10541 * database.c (Fdatabasep):
10542 * device-x.c (Fx_get_resource):
10543 * device.c (Fdfw_device):
10545 * dired.c (Ffile_name_completion):
10546 * dired.c (Ffile_name_all_completions):
10547 * dired.c (Fuser_name_completion):
10548 * dired.c (Fuser_name_completion_1):
10549 * dired.c (Fuser_name_all_completions):
10550 * doc.c (Fdocumentation):
10551 * doc.c (Fdocumentation_property):
10552 * doc.c (Fsubstitute_command_keys):
10554 * editfns.c (Fchar_to_string):
10555 * editfns.c (Fstring_to_char):
10556 * editfns.c (Ftemp_directory):
10557 * editfns.c (Finsert_char):
10558 * editfns.c (Fbuffer_substring_no_properties):
10559 * editfns.c (Fnarrow_to_region):
10560 * editfns.c (Fchar_equal):
10561 * editfns.c (Fchar_Equal):
10562 * editfns.c (Ftranspose_regions):
10563 * emacs.c (Fdump_emacs):
10565 * eval.c (Fcommand_execute):
10566 * eval.c (Fautoload):
10567 * eval.c (Fbacktrace):
10568 * eval.c (Fbacktrace_frame):
10570 * events.c (Fcopy_event):
10571 * events.c (Fcharacter_to_event):
10572 * events.c (Fevent_button):
10573 * events.c (Fevent_process):
10575 * extents.c (Fnext_extent_change):
10576 * extents.c (Fextent_property):
10577 * faces.c (Ffacep):
10578 * faces.c (Fmake_face):
10580 * file-coding.c (Fencode_shift_jis_char):
10581 * file-coding.c (Fencode_big5_char):
10582 * fileio.c (Ffile_name_directory):
10583 * fileio.c (Ffile_name_nondirectory):
10584 * fileio.c (Ffile_name_as_directory):
10585 * fileio.c (Fdirectory_file_name):
10586 * fileio.c (Ffile_truename):
10587 * fileio.c (Fsubstitute_in_file_name):
10588 * fileio.c (Ffile_modes):
10589 * fileio.c (Fset_file_modes):
10590 * fileio.c (Fset_default_file_modes):
10591 * fileio.c (Fverify_visited_file_modtime):
10592 * floatfns.c (Facos):
10593 * floatfns.c (Fasin):
10594 * floatfns.c (Fatan):
10595 * floatfns.c (Fcos):
10596 * floatfns.c (Fsin):
10597 * floatfns.c (Ftan):
10598 * floatfns.c (Fbessel_j0):
10599 * floatfns.c (Fbessel_j1):
10600 * floatfns.c (Fbessel_jn):
10601 * floatfns.c (Fbessel_y0):
10602 * floatfns.c (Fbessel_y1):
10603 * floatfns.c (Fbessel_yn):
10604 * floatfns.c (Ferf):
10605 * floatfns.c (Ferfc):
10606 * floatfns.c (Flog_gamma):
10607 * floatfns.c (Fexp):
10608 * floatfns.c (Fexpt):
10609 * floatfns.c (Flog):
10610 * floatfns.c (Flog10):
10611 * floatfns.c (Fsqrt):
10612 * floatfns.c (Fcube_root):
10613 * floatfns.c (Facosh):
10614 * floatfns.c (Fasinh):
10615 * floatfns.c (Fatanh):
10616 * floatfns.c (Fcosh):
10617 * floatfns.c (Fsinh):
10618 * floatfns.c (Ftanh):
10619 * floatfns.c (Fabs):
10620 * floatfns.c (Ffloat):
10621 * floatfns.c (Flogb):
10622 * floatfns.c (Fceiling):
10623 * floatfns.c (Ffloor):
10624 * floatfns.c (Fround):
10625 * floatfns.c (Ftruncate):
10626 * floatfns.c (Ffceiling):
10627 * floatfns.c (Fffloor):
10628 * floatfns.c (Ffround):
10629 * floatfns.c (Fftruncate):
10630 * fns.c (Fstring_equal):
10631 * fns.c (Fstring_lessp):
10634 * fns.c (vconcat2):
10635 * fns.c (vconcat3):
10636 * fns.c (Fsubstring):
10638 * fns.c (Fold_assoc):
10639 * fns.c (assoc_no_quit):
10641 * fns.c (Fold_assq):
10642 * fns.c (assq_no_quit):
10644 * fns.c (Fold_rassoc):
10646 * fns.c (Fold_rassq):
10647 * fns.c (rassq_no_quit):
10648 * fns.c (Fremassoc):
10649 * fns.c (remassoc_no_quit):
10650 * fns.c (Fremassq):
10651 * fns.c (remassq_no_quit):
10652 * fns.c (Fremrassoc):
10653 * fns.c (Fremrassq):
10654 * fns.c (remrassq_no_quit):
10656 * fns.c (Fplist_get):
10657 * fns.c (Fplist_put):
10658 * fns.c (Fplist_remprop):
10659 * fns.c (Fplist_member):
10660 * fns.c (Flax_plist_get):
10661 * fns.c (Flax_plist_put):
10662 * fns.c (Flax_plist_remprop):
10663 * fns.c (Flax_plist_member):
10665 * fns.c (Fold_equal):
10666 * fns.c (Frequire):
10667 * fns.c (Fbase64_encode_region):
10668 * fns.c (Fbase64_encode_string):
10669 * fns.c (Fbase64_decode_region):
10671 * frame.c (frame_matches_frame_spec):
10672 * frame.c (device_matches_device_spec):
10673 * frame.c (next_frame):
10674 * frame.c (previous_frame):
10675 * frame.c (Fnext_frame):
10676 * frame.c (Fprevious_frame):
10677 * frame.c (Fframe_property):
10678 * frame.c (Fset_frame_height):
10679 * frame.c (Fset_frame_size):
10683 * glyphs.c (decode_error_behavior_flag):
10684 * glyphs.c (Fmake_image_instance):
10685 * indent.c (Findent_to):
10686 * intl.c (Fignore_defer_gettext):
10687 * keymap.c (Fkeymapp):
10688 * keymap.c (Flookup_key):
10690 * lread.c (Fload_internal):
10691 * lread.c (Feval_buffer):
10692 * lread.c (Feval_region):
10693 * macros.c (Fexecute_kbd_macro):
10694 * marker.c (set_marker_internal):
10695 * marker.c (Fset_marker):
10696 * marker.c (set_marker_restricted):
10697 * marker.c (Fcopy_marker):
10698 * marker.c (noseeum_copy_marker):
10700 * menubar.c (Fpopup_menu):
10702 * mule-charset.c (Fcharset_name):
10703 * mule-charset.c (Fchar_charset):
10704 * mule-charset.c (Fchar_octet):
10705 * mule-charset.c (Fsplit_char):
10706 * mule-wnnfns.c (Fwnn_open):
10707 * mule-wnnfns.c (Fwnn_dict_comment):
10708 * mule-wnnfns.c (Fwnn_quit_henkan):
10709 * mule-wnnfns.c (Fwnn_word_toroku):
10710 * mule-wnnfns.c (Fwnn_word_sakujo):
10711 * mule-wnnfns.c (Fwnn_word_use):
10712 * mule-wnnfns.c (Fwnn_hindo_set):
10714 * objects.c (Fmake_color_instance):
10715 * objects.c (Fmake_font_instance):
10716 * print.c (Fwrite_char):
10718 * process.c (mark_process):
10719 * process.c (print_process):
10720 * process.c (get_process_from_usid):
10721 * process.c (Fprocessp):
10722 * process.c (Fprocess_live_p):
10723 * process.c (Fget_process):
10724 * process.c (Fget_buffer_process):
10725 * process.c (get_process):
10726 * process.c (Fprocess_id):
10727 * process.c (Fprocess_name):
10728 * process.c (Fprocess_command):
10729 * process.c (init_process_io_handles):
10730 * process.c (start_process_unwind):
10731 * process.c (Fstart_process_internal):
10732 * process.c (Fopen_multicast_group_internal):
10733 * process.c (Fset_process_window_size):
10734 * process.c (read_process_output):
10735 * process.c (send_process):
10736 * process.c (Fprocess_tty_name):
10737 * process.c (Fset_process_buffer):
10738 * process.c (Fprocess_buffer):
10739 * process.c (Fprocess_mark):
10740 * process.c (set_process_filter):
10741 * process.c (Fset_process_filter):
10742 * process.c (Fprocess_filter):
10743 * process.c (Fprocess_send_region):
10744 * process.c (Fprocess_send_string):
10745 * process.c (exec_sentinel):
10746 * process.c (Fset_process_sentinel):
10747 * process.c (Fprocess_sentinel):
10748 * process.c (status_notify):
10749 * process.c (Fprocess_status):
10750 * process.c (Fprocess_exit_status):
10751 * process.c (process_send_signal):
10752 * process.c (Fprocess_send_eof):
10753 * process.c (deactivate_process):
10754 * process.c (remove_process):
10755 * process.c (Fdelete_process):
10756 * process.c (kill_buffer_processes):
10757 * process.c (Fprocess_kill_without_query):
10758 * process.c (Fprocess_kill_without_query_p):
10760 * rangetab.c (Fget_range_table):
10761 * rangetab.c (Fput_range_table):
10762 * rangetab.c (Fremove_range_table):
10763 * rangetab.c (Fclear_range_table):
10765 * search.c (Fskip_chars_forward):
10766 * search.c (Fskip_chars_backward):
10767 * search.c (Fskip_syntax_forward):
10768 * search.c (Fskip_syntax_backward):
10769 * search.c (search_command):
10770 * search.c (Freplace_match):
10771 * search.c (Fregexp_quote):
10772 * select.c (Fown_selection_internal):
10773 * select.c (Fselection_owner_p):
10774 * select.c (Fselection_exists_p):
10775 * select.c (Fget_selection_internal):
10778 * symbols.c (Fintern):
10779 * symbols.c (Fintern_soft):
10780 * symbols.c (Funintern):
10781 * symbols.c (Fapropos_internal):
10782 * symbols.c (Fset_default):
10784 * syntax.c (Fsyntax_table_p):
10785 * syntax.c (Fcopy_syntax_table):
10786 * syntax.c (Fset_syntax_table):
10787 * syntax.c (Fchar_syntax):
10788 * syntax.c (syntax_match):
10789 * syntax.c (Fmatching_paren):
10790 * syntax.c (Fforward_word):
10791 * syntax.c (scan_lists):
10792 * syntax.c (Fscan_lists):
10793 * syntax.c (Fscan_sexps):
10794 * syntax.c (Fparse_partial_sexp):
10795 * toolbar.c (Fcheck_toolbar_button_syntax):
10798 * window.c (Fwindowp):
10799 * window.c (Fwindow_live_p):
10800 * window.c (Fwindow_point):
10801 * window.c (Fdelete_window):
10802 * window.c (Fnext_window):
10803 * window.c (Fprevious_window):
10804 * window.c (Fother_window):
10805 * window.c (window_loop):
10806 * window.c (Fget_lru_window):
10807 * window.c (Fsplit_window):
10808 * window.c (Fenlarge_window):
10809 * window.c (Fenlarge_window_pixels):
10810 * window.c (Fshrink_window):
10811 * window.c (Fshrink_window_pixels):
10812 * window.c (change_window_height):
10813 * window.c (Fwindow_configuration_p):
10814 * window.c (Fcurrent_window_configuration):
10816 * casefiddle.c (casify_object):
10817 * casefiddle.c (Fupcase):
10818 * casefiddle.c (Fdowncase):
10819 * casefiddle.c (Fcapitalize):
10820 * casefiddle.c (Fupcase_initials):
10821 * casefiddle.c (casify_region_internal):
10822 * casefiddle.c (casify_region):
10823 * casefiddle.c (Fupcase_region):
10824 * casefiddle.c (Fdowncase_region):
10825 * casefiddle.c (Fcapitalize_region):
10826 * casefiddle.c (Fupcase_initials_region):
10827 * casefiddle.c (Fupcase_word):
10828 * casefiddle.c (Fdowncase_word):
10829 * casefiddle.c (Fcapitalize_word):
10830 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
10831 Replace 0 with '\0' when working with bytes.
10832 Replace initial "(" with "\(" in docstrings.
10834 2000-11-01 Martin Buchholz <martin@xemacs.org>
10836 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10838 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10840 2000-10-31 Martin Buchholz <martin@xemacs.org>
10842 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
10844 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
10846 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10849 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
10851 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10852 (inhibit_auto_save_session): New variable.
10853 (vars_of_fileio): Declare and initialize them.
10854 * fileio.c (Fdo_auto_save): Don't create session file if
10855 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10857 2000-10-31 Martin Buchholz <martin@xemacs.org>
10859 * sgiplay.c (play_internal): C++ compilability.
10860 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10861 * callproc.c (Fold_call_process_internal):
10862 Remove unused vars `env', `first'.
10863 * scrollbar.c (update_scrollbar_instance):
10864 #### unused var `current_window'.
10865 * redisplay-tty.c: Put currently unused vars insert_mode_on,
10866 etc. within #ifdef NOT_YET.
10867 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10868 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10869 * specifier.c (specifier_instance):
10870 #### unused var `tag'.
10871 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10873 2000-10-27 Martin Buchholz <martin@xemacs.org>
10875 * fns.c (Fbutlast):
10876 * fns.c (list_sort):
10877 * fns.c (Ffillarray):
10878 * fns.c (bytecode_nconc2):
10881 * fns.c (Fmapconcat):
10882 Be pedantically 64-bit correct. For the time when someone will
10883 want to have a list with length > 2**32.
10885 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10886 Work around MIPSpro compiler bug.
10888 * process-unix.c (unix_kill_child_process): Add snarky comment.
10889 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
10891 * config.h.in: Oops, _getpt ==> _getpty
10893 2000-10-26 Martin Buchholz <martin@xemacs.org>
10897 Use void*, not char*, as return type of alloca().
10899 * alloc.c (free_marker): Side effect inside assert expression!
10901 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
10903 * mule-charset.c (Fset_charset_ccl_program): To check
10904 if the given ccl program is valid, use setup_ccl_program()
10905 instead of CHECK_VECTOR().
10906 (Fmake_charset): Likewise.
10908 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
10910 * faces.c (get_extent_fragment_face_cache_index):
10911 Fix cachel.merged_faces memory leak.
10913 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
10915 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10916 Reset MSB of octets obtained by DECODE_SJIS
10917 because of the incompatibility with Emacs.
10918 (ccl_driver)<CCL_ENCODE_SJIS>:
10919 Set MSB of octets before passing them to
10920 ENCODE_SJIS because of the incompatibility
10923 2000-10-18 Daiki Ueno <ueno@unixuser.org>
10925 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10926 (DECLARE_LRECORD): Undo the last change.
10927 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10929 2000-10-17 Daiki Ueno <ueno@unixuser.org>
10931 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10932 the implementation to lrecord_implementations_table.
10934 2000-10-14 Daiki Ueno <ueno@unixuser.org>
10936 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10937 initial value of `lrecord_type_##c_name' and
10938 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10939 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10940 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10941 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10942 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10944 2000-10-17 Martin Buchholz <martin@xemacs.org>
10946 * miscplay.c (sndcnv8S_2mono):
10947 (sndcnv2monounsigned):
10948 (sndcnvULaw_2linear):
10950 Remove implementation-defined behavior.
10952 2000-10-12 Martin Buchholz <martin@xemacs.org>
10954 * input-method-xlib.c: Warning suppression.
10956 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
10958 * mule-ccl.c: Sync up with Emacs 21.0.90.
10959 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10961 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10963 (ccl_driver[WriteMultibyteChar2]): Bug fix.
10964 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10965 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10966 leading char belongs to official 2-dimensional charset.
10967 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10968 write the given character as is. Otherwise,
10969 if it is a multibyte char, convert it by
10970 non_ascii_set_charptr_emchar, then write it.
10971 (CCL_WRITE_STRING): Likewise.
10972 (ccl_get_compiled_code): New function.
10973 (setup_ccl_program): When ccl_prog is invalid,
10975 (Fregister_code_conversion_map): New function.
10976 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10978 * mule-ccl.h: Sync up with Emacs 21.0.90.
10979 (Fregister_ccl_program): export it.
10981 * redisplay-msw.c (separate_textual_runs):
10982 If ccl program is not valid, don't do ccl conversion.
10984 * redisplay-x.c (separate_textual_runs): Ditto.
10986 * file-coding.c (Fmake_coding_system):
10987 When type is ccl and value is vector, register it
10988 with a proper symbol. And checks whether the
10989 given ccl program is valid.
10990 (mule_decode): When calling ccl_driver, if src indicates
10991 NULL pointer, set an empty string instead.
10992 (mule_encode): Likewise.
10994 2000-10-11 Martin Buchholz <martin@xemacs.org>
10996 The following large batch of changes gets us back to a state of
10997 C++ compilability. Extbyte is now a char, which means that
10998 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
11000 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11002 * sound.c (Fplay_sound): Type correctness.
11004 * select-x.c (hack_motif_clipboard_selection): Type correctness.
11005 (x_get_window_property): Type correctness.
11006 (receive_incremental_selection): unsigned char ==> Extbyte
11007 (selection_data_to_lisp_data): unsigned char ==> Extbyte
11008 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11009 (Fx_store_cutbuffer_internal): Type correctness.
11011 * process-unix.c (try_to_initialize_subtty): Type correctness.
11013 * objects-x.c (x_print_color_instance): Type correctness.
11014 (x_print_font_instance): Type correctness.
11015 (x_list_fonts): SExtbyte ==> Extbyte.
11016 (valid_x_font_name_p): SExtbyte ==> Extbyte.
11017 (x_find_charset_font): SExtbyte ==> Extbyte.
11018 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
11019 (truename_via_XListFonts): SExtbyte ==> Extbyte.
11020 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11021 Use bufbyte_strcmp.
11023 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11024 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11025 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11026 (BYTE_C0_P): Use bit ops for char-signedness safety.
11027 (BYTE_C1_P): Use bit ops for char-signedness safety.
11028 (CHARSET_BY_LEADING_BYTE):
11029 (CHARSET_BY_ATTRIBUTES):
11030 Always use inline function.
11031 Use type_checking_assert.
11034 * mule-charset.c (non_ascii_charptr_copy_char):
11035 Modify to work with both ASCII and non-ASCII characters.
11036 Improve docs and variable names.
11037 Replace over-clever fall-through switch with a simple loop.
11038 (Lstream_get_emchar_1):
11039 Replace over-clever fall-through switch with a simple loop.
11041 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11042 Warning suppression.
11044 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11045 the return value of Lstream_getc, which could be EOF as well.
11047 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11049 * lisp.h: Make Extbyte a char, not unsigned char, so that external
11050 APIs can be used on Extbytes without casts. Risky!
11051 (SExtbyte): Remove.
11052 (UExtbyte): Remove.
11054 * input-method-xlib.c (XIM_init_device):
11055 Use Xlib.h instead of IntrinsicP.h.
11056 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11057 which will break in X11R7.
11058 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11059 to call XRegisterIMInstantiateCallback with correct types.
11061 * gui-x.c (button_item_to_widget_value): Type correctness.
11063 * glyphs.c (bitmap_to_lisp_data): Type correctness.
11065 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11066 (xbm_instantiate_1): Type correctness.
11067 (BUILD_GLYPH_INST): Type correctness.
11069 * fileio.c (Fsubstitute_in_file_name): Type correctness.
11072 (decode_coding_sjis):
11073 (decode_coding_big5):
11074 (decode_coding_ucs4):
11075 (decode_coding_utf8):
11076 (decode_coding_iso2022):
11077 (decode_coding_no_conversion):
11078 Make all decoding functions take an Extbyte * arg.
11079 (encode_coding_sjis):
11080 (encode_coding_big5):
11081 (encode_coding_ucs4):
11082 (encode_coding_utf8):
11083 (encode_coding_iso2022):
11084 (encode_coding_no_conversion):
11085 Make all encoding functions take a Bufbyte * arg.
11086 Use size_t instead of unsigned int for memory sizes.
11087 Only cast to unsigned char whenever dereferencing Extbyte *.
11089 * doc.c (unparesseuxify_doc_string): Type correctness.
11091 * console-x.c (split_up_display_spec):
11092 Rewrite without using details of internal string representation.
11093 (x_semi_canonicalize_device_connection): Type correctness.
11096 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11097 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11098 (HAVE_XFREE386): Removed.
11100 * buffer.h (DEC_CHARPTR): `const' correctness.
11101 (bufbyte_strcmp): New.
11102 (bufbyte_memcmp): New.
11104 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11106 * buffer.h (XCHAR_OR_CHAR_INT):
11107 Always use inline function.
11108 Remove redundant type checking assert() - XINT will abort quite nicely.
11110 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
11112 * search.c (Freplace_match): Set newtext to an empty string.
11114 2000-10-10 Martin Buchholz <martin@xemacs.org>
11116 * s/decosf1-3.h: Remove #include of stropts.h
11117 * s/ptx.h: Remove #include of stropts.h
11118 * s/usg5-4.h: Remove #include of stropts.h
11121 Use stropts.h, not sys/stropts.h.
11122 Use strtio.h, not sys/strtio.h.
11124 2000-10-04 Martin Buchholz <martin@xemacs.org>
11126 * XEmacs 21.2.36 is released.
11128 2000-09-21 Andy Piper <andy@xemacs.org>
11130 * glyphs-x.c (x_redisplay_widget): make sure non-structural
11131 changes still involve copying the widget tree.
11132 (update_widget_face): make sure a change is register in the widget
11133 tree. Call update_tab_widget_face appropriately.
11134 (update_tab_widget_face): ditto.
11135 (x_tab_control_redisplay): make sure non-structural changes still
11136 involve copying the widget tree.
11138 2000-08-31 Daiki Ueno <ueno@unixuser.org>
11140 * lread.c (locate_file): Check the path element is non-nil.
11142 2000-10-02 Martin Buchholz <martin@xemacs.org>
11144 * lisp.h: Warning suppression for SCO compilers.
11146 * redisplay-tty.c (reset_tty_modes): Fix crash.
11147 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11149 2000-09-27 Martin Buchholz <martin@xemacs.org>
11151 Big signal/process handling overhaul. Bugs fixed:
11152 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11153 M-x comint-kill-subjob should work for both values nil and t of
11154 process-connection-type. It was broken on most platforms.
11155 Testing on Irix and Cygwin still needed. Other plaforms tested.
11156 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
11157 * process-unix.c: Signal/Process handling overhaul.
11158 (pty_name): make 64 bytes, as `expect' does, for paranoia.
11159 (allocate_pty): Use all available modern methods of allocating
11160 ptys, falling back to old style BSD allocation as a last resort.
11161 Use allegedly more secure Unix98 pty allocation by default.
11162 (allocate_pty_the_old_fashioned_way): New. the last resort.
11163 (unix_create_process): Push ptem, ldterm, ttcompat where
11164 available. Autoconfiscate.
11165 (try_to_initialize_subtty): New.
11166 (unix_kill_child_process): Proper signal handling for ptys on most
11167 platforms, using special knowledge of AIX, BSD, etc...
11168 (unix_create_process): Always disconnect_controlling_terminal() for
11169 subprocesses, whether using ptys or not.
11170 * process.h: Remove old getpt-dependent PTY code.
11171 * process.c (Fprocess_send_signal): New, obvious generic function.
11172 (decode_signal): New.
11173 (Finterrupt_process):
11177 (Fcontinue_process):
11178 (Fsignal_process): Use decode_signal.
11179 (process_send_signal):
11180 Many docstring corrections.
11181 Allow any signal to be sent to a process object.
11182 * config.h.in: Add symbols for big signal/process overhaul.
11183 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11184 * sysproc.h: Include process-related headers, where available:
11185 sys/stropts.h sys/strtio.h pty.h libutil.h
11193 Remove old S&M pty stuff.
11194 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11195 * systty.h: Simplify cpp hackery, improve comments.
11196 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11198 * editfns.c (Fformat_time_string):
11199 Be a little more paranoid with the return value of ctime.
11201 * fileio.c (check_executable):
11203 Use symbolic constants X_OK, W_OK.
11205 * console-x.c (split_up_display_spec): Fix a warning.
11207 2000-10-02 Martin Buchholz <martin@xemacs.org>
11209 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11210 * ntproc.c (sys_spawnve): make_string ==> build_string
11211 Small clarity improvements.
11213 2000-09-30 Martin Buchholz <martin@xemacs.org>
11215 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11217 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11219 * config.h.in (HAVE_STRCASECMP): Remove.
11221 2000-09-29 Martin Buchholz <martin@xemacs.org>
11223 * redisplay-output.c (redisplay_output_pixmap):
11224 Cleaner and possibly more 64-bit correct code.
11226 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
11228 * dumper.c (pdump_load_finish): move restoration of
11229 `noninteractive1' to emacs.c (main_1).
11230 * emacs.c (main_1): protect LISP-visible command-line flags
11233 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
11235 * Makefile.in.in (versionclean): Use EXE_TARGET and
11236 DUMP_TARGET instead of literal program names.
11238 2000-09-20 Martin Buchholz <martin@xemacs.org>
11240 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11242 2000-09-19 Martin Buchholz <martin@xemacs.org>
11244 * *: Spelling mega-patch
11246 2000-09-19 Martin Buchholz <martin@xemacs.org>
11248 * fns.c (bad_bad_turtle):
11249 Delete "Eek!" comment, since we fixed the bug to which it refers.
11251 2000-09-16 Martin Buchholz <martin@xemacs.org>
11253 * alloca.c: Replace REGISTER with register.
11255 2000-09-16 Daiki Ueno <ueno@unixuser.org>
11257 * file-coding.c (ucs_to_char): Use countof.
11259 2000-09-16 Martin Buchholz <martin@xemacs.org>
11261 * file-coding.c: (ucs_to_char):
11262 (complex_vars_of_file_coding):
11263 Use countof instead of sizeof.
11264 Use CHECK_NATNUM instead of CHECK_INT.
11266 * sysdep.c (strcasecmp): Remove.
11267 * device-x.c (ascii_strcasecmp): New.
11268 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11269 Avoid using non-standard non-portable strcasecmp.
11271 2000-09-16 Martin Buchholz <martin@xemacs.org>
11273 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11274 * font-lock.c: remove reference to emacsfns.h.
11275 * search.c: small doc improvement.
11276 * event-Xt.c: correct file names in comments.
11277 * console-x.h Correct file names in comments.
11278 * frame.c: Correct file names in comments.
11279 * event-stream.c: remove Energize from comments.
11281 2000-09-15 Martin Buchholz <martin@xemacs.org>
11283 * symeval.h (DEFERROR_STANDARD):
11286 (DEFSYMBOL_NO_DUMP):
11287 (DEFSYMBOL_MULTIWORD_PREDICATE):
11288 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11290 The construct &##name is not sensible C.
11291 Fixes compilation errors with Unixware native compiler.
11293 2000-09-14 Martin Buchholz <martin@xemacs.org>
11295 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11296 (next_frame_internal): Removed. We now just have next_frame.
11298 Write a simpler and cleaner one-pass algorithm.
11299 Remove called_from_delete_device arg and #ifdefed-out code.
11301 Renamed from prev_frame. Update callers.
11302 Cleaned up to have an analogous implementation to next_frame.
11303 (other_visible_frames_internal): Remove the
11304 called_from_delete_device bogus arg, and hence, remove this
11305 function. Just use other_visible_frames().
11307 * window.c (Fnext_window):
11308 Prettify docstring.
11309 Since next_frame() is guaranteed to return a frame, remove check
11310 for nil inserted in previous patch.
11311 (Fprevious_window):
11312 Prettify docstring.
11313 Make code look more like Fnext_window.
11315 Respect the `console' arg when iterating through windows.
11316 Fixes bug: (get-buffer-window buffer t device) not respecting
11318 This function needs more work, as others have pointed out.
11320 * frame.h: Rename prev_frame to previous_frame.
11321 device_matches_console_spec no longer takes a `frame' arg.
11326 Use EMACS_BLOCK_SIGNAL instead of sigblock.
11327 From "Golubev I. N." <gin@mo.msk.ru>.
11329 * make-src-depend: Fix typo.
11331 2000-09-13 Martin Buchholz <martin@xemacs.org>
11333 * window.c (Fnext_window):
11334 next_frame() might return nil, not a frame.
11336 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11338 * frame.c (next_frame_internal):
11339 We've passed a frame if we've passed its device.
11341 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11342 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11344 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
11346 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11347 Allow option to suppress accelerators in menu/dialog items.
11348 (populate_or_checksum_helper): Pass dialog title through above.
11350 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
11352 * event-msw.c (mswindows_key_to_emacs_keysym):
11353 Add "pause" key, fix "menu" key.
11355 2000-09-09 Martin Buchholz <martin@xemacs.org>
11357 * eval.c (reinit_vars_of_eval):
11358 Increase max_lisp_eval_depth to 1000,
11359 required for thai-xtis.el to byte-compile under some circumstances.
11361 2000-09-04 Martin Buchholz <martin@xemacs.org>
11363 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11364 From Kenichi Handa.
11366 2000-09-01 Martin Buchholz <martin@xemacs.org>
11368 * make-src-depend: Make the generated Makefiles smaller.
11370 * s/hpux.h (SETUP_SLAVE_PTY):
11371 Provide a %d in the format string for the errno argument.
11373 * editfns.c (Ftemp_directory):
11375 Avoid buffer overrun on very long file name.
11377 * input-method-xlib.c (XIM_init_device):
11378 6th parameter of XRegisterIMInstantiateCallback has different
11379 pointer types on different OSes, so simply cast to (void *).
11381 * unexhp9k800.c: Warning fixes. Fiddly changes.
11383 * sysdll.c (dll_open):
11384 shl_load will hang hard if passed a NULL filename.
11385 Simply return NULL for compatibility with dlopen.
11386 * sysdll.c: Conform to XEmacs coding standards.
11388 * sysdep.c (get_pty_max_bytes):
11389 Support pty input lines longer than 512 bytes on HP-UX 10.20.
11391 2000-08-31 Martin Buchholz <martin@xemacs.org>
11393 * tooltalk.c: Add #include <syssignal.h>
11395 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
11397 * s/hpux.h: Don't use undefined function sigunblock().
11399 2000-08-31 Martin Buchholz <martin@xemacs.org>
11401 * config.h.in: Add HAVE_BALLOON_HELP.
11402 * emacs.c: Use HAVE_BALLOON_HELP.
11403 * Makefile.in.in (x_objs):
11404 Make Balloon Help conditional on finding shape.h.
11406 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
11408 * syntax.c (regex_emacs_buffer_p): New variable.
11409 * syntax.h (regex_emacs_buffer_p): extern.
11410 * search.c (looking_at_1):
11412 (fast_string_match):
11413 (search_buffer): Set regex_emacs_buffer_p.
11414 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11415 when before_dot, at_dot, after_dot.
11417 2000-08-23 Andy Piper <andy@xemacs.org>
11419 * gui-x.c (popup_selection_callback): Only set action_occurred
11420 when we really have an image instance.
11421 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11423 2000-08-23 Andy Piper <andy@xemacs.org>
11425 * gui-msw.c (mswindows_handle_gui_wm_command): set
11427 * gui-x.c (popup_selection_callback): ditto.
11429 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11430 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11431 (struct Lisp_Image_Instance): add action_occurred flag.
11433 * glyphs.c (redisplay_subwindow): use action_occurred flag.
11434 (image_instance_changed): ditto.
11435 (reset_frame_subwindow_instance_cache): only unmap windows - do
11436 not remove them from the cache also.
11438 * glyphs-widget.c (tab_control_update): better debug.
11439 (progress_gauge_update): ditto.
11440 (layout_update): ditto.
11441 (layout_instantiate): ditto.
11442 (tab_control_order_only_changed): cope with null pending items.
11444 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11445 debug. Force selection of an item when an action occurred. Cope
11446 with null pending_items.
11447 (mswindows_progress_gauge_redisplay): better debug.
11448 * glyphs-x.c (x_tab_control_redisplay): ditto.
11450 * redisplay.c (redisplay_frame): reset the frame cache if the
11453 * window.c (Fset_window_configuration): potentially re-enable
11455 (window_unmap_subwindows): need to finalize instances here since
11456 it is only used in mark_window_as_deleted.
11458 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
11460 * nas.c (SndOpenDataForReading):
11461 nas.c (WaveOpenDataForReading):
11462 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11463 Somehow escaped from the 2000-08-14 patch.
11465 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
11467 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11468 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11470 2000-08-21 Andy Piper <andy@xemacs.org>
11472 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11473 window if it is not already displayed.
11475 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11476 it is not already displayed.
11478 * window.c (Fset_window_configuration): don't reset the frame
11481 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11482 instances from the frame cache if we are actually finalizing them.
11483 (reset_frame_subwindow_instance_cache): reset frame cache only
11484 after unmapping everything.
11485 (map_subwindow): set displayed flag after mapping.
11487 2000-08-21 Martin Buchholz <martin@xemacs.org>
11489 * data.c (indirect_function):
11490 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11492 * eval.c (function_argcount):
11493 Use original function when signaling errors.
11495 2000-08-18 Andy Piper <andy@xemacs.org>
11497 * frame.c (delete_frame_internal): use new
11498 free_frame_subwindow_instances name.
11500 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11501 (add_tab_item): make return type correct.
11502 (mswindows_tab_control_instantiate): assert index of tab.
11503 (mswindows_tab_control_redisplay): Re-code to use
11504 gui_item_equal_sans_selected and gui_item_list_find_selected.
11506 * glyphs-widget.c (tab_control_update): Correct comment.
11508 * window.c (window_unmap_subwindows): use new
11509 unmap_subwindow_instance_cache_mapper.
11510 (window_unmap_subwindows_cache_mapper): deleted.
11511 (Fset_window_configuration): comparisons should now be with
11512 EQ. Preserve the subwindow instance cache across configuration
11514 (allocate_window): ditto.
11515 (make_dummy_parent): ditto.
11517 * glyphs.c (free_frame_subwindow_instances): rename from
11518 free_frame_subwindow_instance_cache. finalize all instances rather
11519 than just those in the display cache.
11520 (finalize_all_subwindow_instances): walk windows unmapping and
11521 finalizing subwindows.
11522 (unmap_subwindow_instance_cache_mapper): moved from
11523 window.c. Allow finalization as well as unmapping.
11525 * gui.c (gui_item_list_find_selected): new function.
11527 * gui.h (gui_item_list_find_selected): declare.
11529 * glyphs-x.c (x_tab_control_redisplay): pick tab
11530 explicitly. Re-code to use gui_item_equal_sans_selected and
11531 gui_item_list_find_selected.
11533 * glyphs-x.h: add lwlib-utils.h
11535 * buffer.c (Frecord_buffer): undo previous change.
11537 2000-08-09 Vin Shelton <acs@xemacs.org>
11539 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11540 possible. Create temporary files more securely. The patch was
11541 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11542 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
11543 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11546 2000-08-07 Ben Wing <ben@xemacs.org>
11548 * getloadavg.c: remove duplicate (and windows-breaking)
11549 includes of fcntl.h and sys/file.h.
11551 * nt.c: remove duplicate getloadavg() definition.
11553 * sysdll.h (Qdll_filename_encoding): add missing stand-in
11556 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
11558 * eval.c (function_argcount): If function needs to be autoloaded
11559 actually use the loaded definition.
11562 2000-08-05 Ben Wing <ben@xemacs.org>
11564 * getloadavg.c: add prototype for getloadavg(). remove
11565 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11566 of the code). remove duplicate header includes.
11568 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11570 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11571 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11572 useful load average.
11574 * alloc.c (reinit_alloc_once_early): removed references to
11575 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11576 the lisp vars are the only things referencing the malloc_sbrk_*
11577 vars, and they were already if 0'd out. these vars only exist
11578 in the older malloc.c, which is basically unused, and they're
11579 only for informational purposes.
11581 * m\*.h: removed useless VIRT_ADDR_VARIES.
11583 * m\powerpc.h: removed stray NO_ARG_ARRAY.
11585 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
11587 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11588 color if the image is a mono pixmap.
11590 2000-07-30 Ben Wing <ben@xemacs.org>
11592 * Makefile.in.in (release):
11595 * buffer.c (directory_is_current_directory):
11596 * dired-msw.c (mswindows_get_files):
11598 * dired.c (Fdirectory_files):
11599 * dired.c (file_name_completion_stat):
11600 * dired.c (Ffile_attributes):
11601 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11602 preprocessor tricks, to avoid problems on some machines
11605 * callproc.c (egetenv): GC docs.
11608 * console-msw.h (struct mswindows_dialog_id):
11609 * lrecord.h (lrecord_type):
11610 New object for use with MSW dialogs.
11612 * console.h (struct console_methods):
11613 New enable/disable frame methods, for proper modal dialogs.
11615 * device-msw.c (msprinter_default_printer): Fix to follow
11616 proper Mule conventions.
11619 * device-msw.c (signal_open_printer_error):
11620 * device-msw.c (msprinter_init_device):
11621 * device-msw.c (ensure_not_printing):
11622 * device-msw.c (plist_get_margin):
11623 * device-msw.c (Fmsprinter_select_settings):
11624 * device-msw.c (finalize_devmode):
11625 * device-msw.c (Fmsprinter_settings_despecialize):
11626 * device-msw.c (signal_enum_priner_error):
11627 * extents.c (decode_extent):
11628 * extents.c (decode_map_extents_flags):
11629 * extents.c (decode_extent_at_flag):
11630 * extents.c (Fextent_at):
11631 * extents.c (Fextents_at):
11632 * extents.c (symbol_to_glyph_layout):
11633 [[[[2]]]] Use structured errors.
11636 * dialog-msw.c (mswindows_is_dialog_msg):
11637 * dialog-msw.c (mark_mswindows_dialog_id):
11638 * dialog-msw.c (dialog_proc):
11639 * dialog-msw.c (handle_question_dialog_box):
11640 * dialog-msw.c (syms_of_dialog_mswindows):
11641 Define new object to clean up marking; use it as a dialog identifier.
11642 Call new delete-dialog-box-hook.
11644 * dialog-x.c (dbox_selection_callback):
11645 * dialog-x.c (dbox_descriptor_to_widget_value):
11646 * dialog-x.c (x_make_dialog_box_internal):
11647 Call new delete-dialog-box-hook.
11651 * dialog.c (syms_of_dialog):
11652 * dialog.c (vars_of_dialog):
11653 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11656 * eval.c (signal_call_debugger):
11657 when noninteractive, output stack traces on the console instead
11658 of in a (never-seen) buffer.
11660 * eval.c (signal_type_error):
11661 * eval.c (invalid_argument_2):
11663 new funs for use w/structured errors.
11666 * event-Xt.c (x_to_emacs_keysym):
11667 * event-Xt.c (describe_event):
11668 * event-Xt.c (emacs_Xt_event_handler):
11669 * event-Xt.c (vars_of_event_Xt):
11671 * event-msw.c (mswindows_wnd_proc):
11672 * event-msw.c (vars_of_event_mswindows):
11673 rename {x,mswindows}-debug-events to debug-{}-events for
11674 consistency with other debug-foo variables.
11677 document next-event more clearly.
11679 * fileio.c (Ffile_name_directory):
11680 * fileio.c (Ffile_name_nondirectory):
11681 * fileio.c (Funhandled_file_name_directory):
11682 * fileio.c (file_name_as_directory):
11683 * fileio.c (Ffile_name_as_directory):
11684 * fileio.c (directory_file_name):
11685 * fileio.c (Fdirectory_file_name):
11686 * fileio.c (Fmake_temp_name):
11687 * fileio.c (Ffile_truename):
11688 * fileio.c (Fsubstitute_in_file_name):
11689 * fileio.c (expand_and_dir_to_file):
11690 * fileio.c (barf_or_query_if_file_exists):
11691 * fileio.c (check_executable):
11692 * fileio.c (Ffile_exists_p):
11693 * fileio.c (Ffile_writable_p):
11694 * fileio.c (Ffile_directory_p):
11695 * fileio.c (Ffile_regular_p):
11696 * fileio.c (Ffile_modes):
11697 * fileio.c (Ffile_newer_than_file_p):
11698 * fileio.c (Fverify_visited_file_modtime):
11699 * fileio.c (Fset_visited_file_modtime):
11700 * fileio.c (auto_save_1):
11705 * frame-msw.c (mswindows_init_frame_1):
11706 * frame-msw.c (mswindows_enable_frame):
11707 * frame-msw.c (error_frame_unsizable):
11708 * frame-msw.c (msprinter_init_frame_1):
11709 * frame-msw.c (msprinter_init_frame_3):
11710 * frame-msw.c (console_type_create_frame_mswindows):
11712 implement new enable/disable frame methods.
11715 * frame-x.c (x_enable_frame):
11716 * frame-x.c (console_type_create_frame_x):
11717 implement new enable/disable frame methods.
11720 * frame.c (Fdisable_frame):
11721 * frame.c (syms_of_frame):
11722 * frame.h (struct frame):
11723 implement new enable/disable frame methods/functions.
11728 * glyphs-msw.c (mswindows_widget_instantiate):
11729 comment that initial-focus should be implemented.
11732 * glyphs-widget.c (check_valid_instantiator):
11733 * glyphs-widget.c (check_valid_orientation):
11734 * glyphs-widget.c (check_valid_tab_orientation):
11735 * glyphs-widget.c (check_valid_justification):
11736 * glyphs-widget.c (check_valid_border):
11737 * glyphs-widget.c (check_valid_callback):
11738 * glyphs-widget.c (check_valid_int_or_function):
11739 * glyphs-widget.c (check_valid_string_or_vector):
11740 * glyphs-widget.c (check_valid_item_list_1):
11741 * glyphs-widget.c (widget_validate):
11742 * glyphs-widget.c (combo_box_validate):
11743 * glyphs-widget.c (widget_instantiate):
11744 * glyphs-widget.c (syms_of_glyphs_widget):
11745 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11746 * glyphs-widget.c (image_instantiator_combo_box):
11747 * glyphs-widget.c (image_instantiator_scrollbar):
11748 * glyphs-widget.c (image_instantiator_tab_control):
11749 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11751 support (unimplemented) keyword initial-focus.
11752 reindent long macros.
11754 * glyphs-x.c (x_redisplay_widget):
11755 * glyphs-x.c (x_button_instantiate):
11756 * glyphs-x.c (x_button_redisplay):
11757 * glyphs-x.c (x_progress_gauge_instantiate):
11758 * glyphs-x.c (x_edit_field_instantiate):
11759 * glyphs-x.c (x_combo_box_instantiate):
11760 * glyphs-x.c (x_tab_control_instantiate):
11761 * glyphs-x.c (x_label_instantiate):
11763 * gui-x.c (button_item_to_widget_value):
11764 * gui-x.c (gui_items_to_widget_values_1):
11765 * gui-x.c (gui_item_children_to_widget_values):
11766 * gui-x.c (gui_items_to_widget_values):
11768 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11769 add new flag to gui-parsing routines to indicate whether
11770 accelerator specs should be supported.
11772 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11774 * glyphs.h (struct Lisp_Image_Instance):
11775 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11776 add initial-focus flag.
11779 * gui.c (syms_of_gui):
11780 * gui.c (vars_of_gui):
11781 clean up menu-no-selection-hook.
11784 support delete-dialog-box-hook.
11786 * lread.c (Fload_internal):
11787 * lread.c (locate_file_in_directory_mapper):
11791 * lrecord.h (struct toolbar_button):
11792 * lrecord.h (syms_of_toolbar):
11793 document how to create a new object.
11795 * menubar-msw.c (mswindows_char_is_accelerator):
11796 may be called on frames w/o menus.
11798 * menubar.c (vars_of_menubar):
11799 clean up :filter docs.
11806 * process-nt.c (validate_signal_number):
11807 * process-nt.c (signal_cannot_launch):
11808 * process-nt.c (nt_create_process):
11809 * process-nt.c (nt_send_process):
11810 * process-nt.c (nt_kill_child_process):
11811 * process-nt.c (nt_open_network_stream):
11812 * process-nt.c (syms_of_process_nt):
11814 delete quote-handling. call new lisp code that does it better.
11816 * process-unix.c (connect_to_file_descriptor):
11817 * process-unix.c (allocate_pty):
11818 * process-unix.c (unix_send_process):
11819 * process-unix.c (unix_kill_child_process):
11820 * process-unix.c (unix_open_network_stream):
11821 * process-unix.c (unix_open_multicast_group):
11825 * process.c (Fstart_process_internal):
11826 (2). need to canonicalize process path even if absolute.
11828 * select-msw.c (symbol_to_ms_cf):
11829 * select-msw.c (ms_cf_to_symbol):
11830 * select-msw.c (cf_is_autofreed):
11831 * select-msw.c (mswindows_destroy_selection):
11833 * select.c (syms_of_select):
11835 support dibv5, fix bugs. (from Mike Alexander)
11837 * select.c (Fget_selection_internal):
11838 * select.c (select_convert_out):
11841 * sysdep.c (xemacs_stat):
11844 * sysdep.c (mkdir):
11845 * sysdep.c (rmdir):
11846 but keep original stat() here because we provide encapsulation
11850 * sysfile.h (fstat):
11851 remove stat garbage.
11854 fix X/MSW conflict.
11855 don't include tchar.h. it's inappropriate because it makes
11856 compile-time distinctions when we want runtime distinctions.
11857 (we provide our own tchar replacements)
11860 use default object printer for toolbar-button.
11863 make sure we don't encapsulate.
11865 * window.c (vars_of_window):
11866 emphasize that temp-buffer-show-hook is obsolete.
11868 2000-08-05 Martin Buchholz <martin@xemacs.org>
11870 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11871 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11873 * events.c (Fevent_timestamp_lessp):
11874 Not 64-bit clean. Use EMACS_INT, not int.
11876 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
11878 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11879 unsigned int and changed the last enum to
11880 lrecord_type_last_built_in_type.
11881 (lrecord_implementations_table): changed prototype to know how
11882 long the array is supposed to be.
11883 (lrecord_type_count): new unsigned int to keep track of the
11884 current number of lisp lrecord types.
11885 (DEFINE_EXTERNAL_LRECORD):
11886 (DECLARE_EXTERNAL_LRECORD): Added these two for external
11887 dynamic-modules to declare new lisp types. They are the same
11888 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11889 int for each new type, and increment lrecord_type_count by 1.
11891 * alloc.c (lrecord_implementations_table): Changed to reference
11892 lrecord_type_last_built_in_type for the size of the array.
11893 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11895 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
11897 * glyphs.h (check_valid_item_list): Renamed from
11898 check_valid_item_list_1.
11900 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11902 * select.c (Qselect_coerce): New.
11903 * select.c (Vselection_coercion_alist): New.
11904 * select.c (syms_of_select): Declare.
11905 * select.c (get-selection-internal): Use it.
11906 Use the new select-coerce functionality.
11908 * select.c (select_coerce): New.
11909 * select.h (select_coerce): Declare.
11910 New function to coerce one type of data into another.
11912 2000-08-03 Martin Buchholz <martin@xemacs.org>
11914 * callproc.c (Fcall_process_internal):
11915 (Fcall_process_internal):
11916 * process-unix.c (unix_create_process):
11917 Save and restore the value of errno, so that error messages are accurate.
11919 2000-08-01 Martin Buchholz <martin@xemacs.org>
11921 * elhash.c (print_hash_table):
11922 Fix printing of hash tables to also use `key-and-value' instead of `t'.
11923 Prettify docstrings and indentation.
11925 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
11927 * window.c (Fwindow_pixel_edges): Subtract frame border and
11930 2000-07-31 Andy Piper <andy@xemacs.org>
11932 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11933 will acknowledge the change.
11935 * glyphs.h: declare tab_control_order_only_changed.
11937 * glyphs-x.c (x_tab_control_redisplay): use
11938 tab_control_order_only_changed.
11940 * glyphs-widget.c (tab_control_order_only_changed): new function.
11942 * glyphs-msw.c (mswindows_tab_control_redisplay): use
11943 tab_control_order_only_changed.
11945 * gui.c (gui_item_equal_sans_selected): new function.
11946 (gui_item_equal): use it.
11948 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11949 :properties in favor of :items..
11951 * glyphs-widget.c (check_valid_item_list): rename from
11952 check_valid_item_list_1.
11953 (check_valid_item_list_1): renamed.
11954 (combo_box_validate): deprecate :properties in favor of :items.
11955 (widget_instantiate): ditto.
11956 (tab_control_update): ditto.
11957 (image_instantiator_combo_box): ditto.
11958 (image_instantiator_tree_view): ditto.
11959 (image_instantiator_tab_control): ditto.
11960 (layout_post_instantiate): remove dead code.
11962 * print.c (debug_print_no_newline): only write to debugger if in
11965 * elhash.c (Fmake_hash_table): update doc string.
11967 * event-msw.c (mswindows_wnd_proc): don't allow processing of
11968 messages whilst in GC. This at least stops XEmacs crashing but has
11969 the potential for wierd behaviour.
11971 2000-07-31 Martin Buchholz <martin@xemacs.org>
11974 Make existence of s&m files optional.
11976 * s/bsd386.h: Remove HAVE_GETLOADAVG.
11977 * s/freebsd.h: Remove HAVE_GETLOADAVG.
11978 * s/gnu.h: Remove HAVE_GETLOADAVG.
11979 * s/netbsd.h: Remove HAVE_GETLOADAVG.
11980 * s/sol2.h: Remove HAVE_GETLOADAVG.
11981 * lisp.h: Remove getloadavg() declaration.
11983 Include <sys/loadavg.h> if available.
11984 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11985 * config.h.in: Group together getloadavg()-related macros.
11986 Use only configure-time tests to detect getloadavg().
11988 2000-07-30 Martin Buchholz <martin@xemacs.org>
11990 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11992 2000-07-25 Andy Piper <andy@xemacs.org>
11994 * syswindows.h: add tchar.h for native builds.
11996 * frame.c (syms_of_frame): remove set-glyph-image.
11998 * general-slots.h: add Qset_glyph_image.
12000 * glyphs-widget.c (layout_update): add domain arg to
12002 (syms_of_glyphs_widget): remove set-glyph-image.
12004 2000-07-23 Ben Wing <ben@xemacs.org>
12006 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12009 2000-07-22 Andy Piper <andy@xemacs.org>
12011 * symsinit.h: add syms_of_win32().
12013 * gui-msw.c (syms_of_gui_mswindows): remove
12014 Fmswindows_shell_execute.
12015 (Fmswindows_shell_execute): moved to win32.c.
12017 * emacs.c (main_1): add syms_of_win32 ().
12019 * win32.c (init_potentially_nonexistent_functions): rewrite in
12020 compiler-friendly terms.
12021 (Fmswindows_shell_execute): move here from gui-msw.c.
12022 (syms_of_win32): new.
12024 * device-msw.c (Fmswindows_printer_list): clean up args to
12026 Don't include tchar under cygwin or mingw.
12027 (msprinter_default_printer): make cygwin-friendly.
12029 2000-07-21 Andy Piper <andy@xemacs.org>
12031 * glyphs-widget.c (image_instantiator_tree_view): use tab
12032 control's update function.
12033 (layout_property): new function. Retrieve items.
12035 * glyphs-msw.c (mswindows_tree_view_redisplay): new
12036 function. Re-populate the tree view from the pending items.
12038 * glyphs.c (instantiate_image_instantiator): Make sure the domain
12039 is designated the parent if the domain is an image instance. This
12040 is needed so that dirtiness can be cascade up the hierarchy and
12041 thus for layout children to be redisplayed correctly.
12042 (allocate_image_instance): rename glyph -> parent.
12044 * redisplay.h: change redisplay_output_layout signature.
12046 * redisplay-msw.c (mswindows_output_display_block): use domain
12049 * redisplay-x.c (x_output_display_block): use domain arg.
12051 2000-07-10 Andy Piper <andy@xemacs.org>
12053 * window.c (Fset_window_configuration): add comment.
12055 * redisplay-output.c (compare_runes):
12056 (redisplay_output_subwindow): redisplay rather than update subwindow.
12057 (redisplay_output_layout): ditto.
12059 * redisplay-msw.c (mswindows_frame_output_end):
12060 (mswindows_frame_output_end): make defer window pos optional.
12062 * lisp.h: add Flast.
12064 * glyphs.h (struct image_instantiator_methods): add dest_mask top
12065 normalize method. Change update method to be for changed
12066 instantiators. Add redisplay method. Change signature of layout
12068 (struct Lisp_Image_Instance): add instantiator.
12069 (IMAGE_INSTANCE_INSTANTIATOR): new.
12070 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12071 (XIMAGE_INSTANCE_INSTANTIATOR): new.
12072 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12075 (find_instantiator_differences): new function.
12076 (Fset_instantiator_property): new convenience function.
12077 (check_image_instance_structure): strictly check for vector
12079 (normalize_image_instantiator): make non-static.
12080 (instantiate_image_instantiator): pass on dest_mask and use new
12081 signatures for image_instance_layout and friends.
12082 (mark_image_instance): mark the instantiator. Mark the subwindow
12083 face not the widget face.
12084 (image_instance_equal): add instantiator.
12085 (image_instance_hash): ditto.
12086 (allocate_image_instance): ditto.
12087 (Fset_image_instance_property): removed.
12088 (Fimage_instance_file_name): ditto.
12089 (Fcolorize_image_instance): ditto.
12090 (image_instance_layout): add offsets to be set.
12091 (update_image_instance): new function. update an image instance
12092 from its changed instantiator.
12093 (inherit_normalize): add dest_mask.
12094 (xbm_normalize): ditto.
12095 (xface_normalize): ditto.
12096 (xpm_normalize): ditto.
12097 (text_update): set_property -> update.
12098 (image_instantiate): use the glyph identity as a hash key, not the
12100 (glyph_width): use new image_instance_layout signature.
12101 (glyph_ascent): ditto.
12102 (glyph_descent): ditto.
12103 (glyph_height): ditto.
12104 (glyph_query_geometry): ressurrect.
12105 (glyph_layout): ditto.
12106 (redisplay_subwindow): update -> redisplay.
12107 (syms_of_glyphs): add Fset_instantiator_property.
12108 (image_instantiator_format_create): set_property -> update.
12111 (autodetect_normalize): add dest_maks to signature.
12112 (x_redisplay_subwindow): update -> redisplay.
12113 (x_redisplay_widget): ditto.
12114 (x_button_redisplay): ditto.
12115 (x_progress_gauge_redisplay): ditto.
12116 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12118 (console_type_create_glyphs_x): update -> redisplay.
12119 (image_instantiator_format_create_glyphs_x): ditto.
12122 (check_valid_instantiator): disallow glyphs in the instantiator,
12123 they must now be vectors.
12124 (check_valid_instantiator_list): ditto.
12125 (glyph_instantiator_to_glyph): use internal symbol rather than
12127 (widget_update): renamed from widget_set_property. Call cascaded
12129 (redisplay_widget): renamed from update_widget.
12130 (widget_layout): image_instance_layout now takes position as well
12132 (widget_normalize): ditto.
12133 (widget_instantiate): ditto.
12134 (tab_control_query_geometry) ditto.:
12135 (tab_control_update): renamed from tab_control_set_property.
12136 (progress_gauge_update): set_property -> update.
12137 (layout_normalize): rewrite so that child instantiators are
12139 (layout_update): new function. Create glyphs from the normalized
12140 children and cope with any other layout keywords. We do not
12141 instantiate children here that will be take care of by
12142 redisplay_output_layout.
12143 (layout_instantiate): call layout_update and not much else.
12144 (layout_post_instantiate): not sure whether this is needed
12146 (layout_query_geometry): query glyph geometry rather than
12147 image_instance geometry.
12148 (layout_layout): set offsets from pass in parameters. Use glyph
12149 geometry and layout functions rather than image instance ones.
12150 (native_layout_layout): ditto.
12151 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12152 (image_instantiator_widget): set_property -> update.
12153 (image_instantiator_buttons): ditto.
12154 (image_instantiator_progress_guage): ditto.
12155 (image_instantiator_tab_control): ditto.
12156 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12157 (image_instantiator_layout): add update method.
12159 * glyphs-msw.c (bmp_normalize):
12160 (mswindows_resource_normalize): add dest_mask so that it can be
12161 proprogated by layout_normalize.
12162 (begin_defer_window_pos): make optional because it may not be the
12163 right thing to do and it introduces differences with X.
12164 (mswindows_unmap_subwindow): ditto.
12165 (mswindows_map_subwindow): ditto.
12166 (mswindows_redisplay_subwindow): renamed from
12167 mswindows_update_subwindow.
12168 (mswindows_redisplay_widget): ditto.
12169 (mswindows_button_redisplay): renamed from
12170 mswindows_button_update. Update is now what the instantiation
12171 function does for a changed instantiator.
12172 (mswindows_progress_gauge_instantiate): set the progress value
12173 here if appropriate.
12174 (mswindows_tab_control_redisplay): cope with re-ordering of the
12175 members of the tab widget by simply selecting the new top
12176 widget. This makes things appear ok if you click on a tab.
12177 (mswindows_combo_box_instantiate): image_instance_layout now takes
12178 position as well as size.
12179 (mswindows_progress_gauge_redisplay): renamed from
12180 mswindows_progress_gauge_update.
12181 (console_type_create_glyphs_mswindows): fix update -> redisplay.
12182 (image_instantiator_format_create_glyphs_mswindows): ditto.
12184 * glyphs-eimage.c (jpeg_normalize):
12187 (tiff_normalize): add dest_mask so that it can be proprogated by
12191 (print_hash_table):
12192 (hash_table_weakness_validate):
12193 (decode_hash_table_weakness):
12194 (Fhash_table_weakness):
12195 (Fhash_table_type):
12196 (syms_of_elhash): use Ben's naming scheme for hashtable types..
12198 * console.h (struct console_methods): move update_* to
12201 2000-07-20 Ben Wing <ben@xemacs.org>
12203 * *.[ch] (XSETOBJ): remove unused middle argument.
12204 lisp-disunion.h: correct wrap_object() to one argument.
12206 2000-07-15 Ben Wing <ben@xemacs.org>
12209 * s/cygwin32.h (CYGWIN_CONV_PATH):
12210 Add missing logb prototype for v1.1.
12211 Use post-b20 names and alias to pre-b20 names when pre-b20.
12213 * s/windowsnt.h: [5].
12215 2000-07-15 Ben Wing <ben@xemacs.org>
12217 * Makefile.in.in (x_objs):
12218 * Makefile.in.in (sheap_objs):
12219 * Makefile.in.in (objs):
12220 added win32.o, cosmetic cleanups.
12222 * alloc.c (Fmake_byte_code):
12223 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12224 etc. macros which declare their own args now.
12226 * alloc.c (syms_of_alloc):
12227 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12230 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12232 * buffer.c (Fget_file_buffer):
12233 Fixed GCPRO problem.
12235 * buffer.c (get_truename_buffer):
12236 Fixed comment about GC checking.
12238 * buffer.c (syms_of_buffer):
12239 Undeclared those dedicated frame funs.
12243 Define convenience macros for internal/external conversions.
12244 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12245 and Qenvironment_variable_encoding for cleaner code.
12248 Remove dedicated-frame; in lisp.
12250 * bytecode.c (funcall_compiled_function):
12253 * bytecode.c (syms_of_bytecode):
12257 * console-msw.c (mswindows_show_console): Rewrote.
12259 * console-msw.c (Fmswindows_debugging_output): New.
12260 Sends to OutputDebugString (special MSWin debugger interface).
12262 * console-msw.c (Fmswindows_message_box):
12263 Fixed stupid bugs so it works when called from kill-emacs.
12265 * console-msw.c (syms_of_console_mswindows):
12266 Declare Fmswindows_debugging_output.
12269 New MSWin prototypes.
12271 * console-msw.h (struct mswindows_frame):
12272 New entry last-click-mods for improved button-modifier support.
12274 * console-msw.h (FRAME_MSWINDOWS_POPUP):
12275 New struct entry `popup' with corresponding accessor.
12278 * console-x.c (split_up_display_spec):
12279 * console-x.c (get_display_arg_connection):
12280 * console-x.c (x_semi_canonicalize_console_connection):
12281 * console-x.c (x_canonicalize_device_connection):
12282 [[[6]]]: Change char to more specific type.
12283 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12285 * console-x.c (x_semi_canonicalize_console_connection):
12286 * console-x.c (x_canonicalize_device_connection):
12287 [[[9]]]: Fix up error signalling to use new structured error system.
12290 [[[4]]]: Define codesys aliases:
12291 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12292 Qx_color_name_encoding, Qx_display_name_encoding.
12294 * console.h (struct console_methods):
12295 New method make_dialog_box_internal supersedes older
12296 popup_dialog_box method.
12299 Define many new errors, part of new structured errors.
12301 * data.c (init_errors_once_early):
12302 * data.c (syms_of_data):
12305 * device-msw.c (mswindows_init_device):
12306 [[[5]]]: Cleanup to support NT 3.51.
12308 * device-msw.c (decode_devmode): Cleanup.
12310 * device-msw.c (mswindows_handle_print_setup_dialog_box):
12311 * device-msw.c (mswindows_handle_print_dialog_box):
12312 * device-msw.c (mswindows_handle_page_setup_dialog_box):
12313 * device-msw.c (syms_of_device_mswindows):
12314 Delete the dialog box primitives recently introduced by Kirill and
12315 instead interface to general dialog box interface.
12318 * device-x.c (compute_x_app_name):
12319 * device-x.c (x_init_device):
12320 * device-x.c (Fx_valid_keysym_name_p):
12321 * device-x.c (Fx_set_font_path):
12325 * device.h (wrap_device): New.
12326 First of its kind; meant to replace XSETDEVICE.
12328 * dialog-msw.c: Many file-dialog symbols.
12330 * dialog-msw.c (mswindows_register_popup_frame): New.
12331 * dialog-msw.c (mswindows_is_dialog_msg): New.
12332 For supporting kbd traversal in dialog boxes.
12334 * dialog-msw.c (dialog_proc):
12335 Support hitting ESC in dialogs.
12337 * dialog-msw.c (struct):
12338 Common dialog box errors.
12340 * dialog-msw.c (handle_file_dialog_box): New.
12341 Add file dialog code.
12343 * dialog-msw.c (handle_question_dialog_box):
12344 Redo existing code to support new question dialog syntax.
12346 * dialog-msw.c (console_type_create_dialog_mswindows):
12347 We support new dialog console method.
12349 * dialog-msw.c (syms_of_dialog_mswindows):
12350 * dialog-msw.c (vars_of_dialog_mswindows):
12351 New file dialog symbols, vars.
12354 * dialog-x.c (maybe_run_dbox_text_callback):
12355 * dialog-x.c (dbox_descriptor_to_widget_value):
12356 * dialog-x.c (x_make_dialog_box_internal):
12357 * dialog-x.c (console_type_create_dialog_x):
12358 Mule-ize entire file.
12359 Redo to support question dialog syntax.
12363 * dialog.c (Fmake_dialog_box_internal):
12364 * dialog.c (syms_of_dialog):
12365 Kill old popup-dialog-box, replace with new primitive.
12366 Just call device method or signal error.
12368 * eldap.c (Fldap_open):
12369 * eldap.c (Fldap_search_basic):
12370 * eldap.c (Fldap_add):
12371 * eldap.c (Fldap_modify):
12376 * emacs.c (make_arg_list_1):
12377 * emacs.c (make_arg_list):
12378 Mule-ize call to dll_init().
12382 * emacs.c (make_argc_argv):
12383 * emacs.c (free_argc_argv):
12384 * emacs.c (init_cmdargs):
12385 * emacs.c (main_1):
12386 * emacs.c (Fkill_emacs):
12387 * emacs.c (Fdump_emacs):
12388 Update comments about what can be used in syms_* etc.
12389 Call init_win32() when necessary.
12390 Fix up MS Win dialog box in kill-buffer to actually work right.
12401 * eval.c (condition_case_3):
12403 * eval.c (function_argcount):
12404 * eval.c (funcall_lambda):
12407 * eval.c (type_error): New.
12408 * eval.c (maybe_type_error): New.
12409 * eval.c (continuable_type_error): New.
12410 * eval.c (maybe_continuable_type_error): New.
12411 * eval.c (type_error_with_frob): New.
12412 * eval.c (maybe_type_error_with_frob): New.
12413 * eval.c (continuable_type_error_with_frob): New.
12414 * eval.c (maybe_continuable_type_error_with_frob): New.
12415 New functions for use with structured errors.
12418 * event-Xt.c (x_event_to_emacs_event):
12419 Buttons are now modifiers too.
12421 * event-Xt.c (emacs_Xt_current_event_timestamp):
12422 Implement new event method.
12423 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12426 * event-msw.c (ntpipe_shove_writer): [5].
12427 * event-msw.c (mswindows_enqueue_mouse_button_event):
12428 * event-msw.c (mswindows_drain_windows_queue):
12429 * event-msw.c (mswindows_wnd_proc): [7].
12430 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12431 * event-msw.c (mswindows_modifier_state):
12432 Throughout: support new button modifiers.
12434 * event-msw.c (emacs_mswindows_current_event_timestamp):
12435 Implement new event method.
12436 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12439 * event-stream.c (event_stream_current_event_timestamp): New.
12440 * event-stream.c (maybe_kbd_translate): New functionality.
12441 * event-stream.c (vars_of_event_stream):
12442 Document new kbd-translate-table functionality.
12444 * event-stream.c (Fcurrent_event_timestamp): New.
12445 New primitive for use in fabricated events.
12446 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12448 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12451 * events.c (Fmake_event):
12452 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12456 * events.c (format_event_object): fix gcc warnings.
12458 * events.c (Fevent_timestamp): Document new primitives.
12460 * events.c (TIMESTAMP_HALFSPACE): New.
12462 * events.c (Fevent_timestamp_lessp): New. New primitive for
12463 comparing timestamps correctly (half-space algorithm).
12465 * events.c (Fevent_modifier_bits): Doc fix.
12467 * events.c (Fevent_modifiers): Major doc addition.
12468 * events.c (event_x_y_pixel_internal): Typo fix.
12469 * events.c (syms_of_events): Declare new primitives.
12472 Update long comment for button modifiers, timestamps.
12474 * events.h (struct event_stream):
12475 New current_event_timestamp method.
12478 * extents.c (extent_in_region_p):
12479 * extents.c (decode_extent):
12480 * extents.c (Fset_extent_parent):
12481 * extents.c (decode_map_extents_flags):
12485 * extents.c (struct extent_at_arg):
12486 * extents.c (decode_extent_at_flag):
12487 * extents.c (extent_at_mapper):
12488 * extents.c (extent_at_bytind):
12489 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12490 * extents.c (Fextents_at): New primitive. [9].
12491 * extents.c (symbol_to_glyph_layout): [9].
12492 Support new primitive `extents-at'.
12495 * extents.c (get_text_property_bytind):
12496 extent_at_bytind has another arg.
12499 * extents.c (syms_of_extents): New primitive.
12501 * file-coding.c (Fmake_coding_system): [1].
12502 * file-coding.c (subsidiary_coding_system): fix gcc warning
12503 * file-coding.c (syms_of_file_coding): [2].
12505 * fileio.c (Fexpand_file_name):
12506 * fileio.c (Fsysnetunam):
12507 * fileio.c (Ffile_exists_p):
12508 * fileio.c (Ffile_executable_p):
12509 * fileio.c (Fverify_visited_file_modtime):
12512 * fileio.c (syms_of_fileio): [2].
12514 * filelock.c (lock_file_1):
12515 * filelock.c (current_lock_owner):
12516 * filelock.c (lock_if_free):
12517 * filelock.c (lock_file):
12518 * filelock.c (unlock_file):
12521 * fns.c (concat): Fix gcc warning.
12524 * fns.c (Fold_member):
12526 * fns.c (Fold_memq):
12527 * fns.c (memq_no_quit):
12529 * fns.c (Fold_assoc):
12531 * fns.c (Fold_assq):
12532 * fns.c (assq_no_quit):
12534 * fns.c (Fold_rassoc):
12536 * fns.c (Fold_rassq):
12537 * fns.c (rassq_no_quit):
12539 * fns.c (Fold_delete):
12541 * fns.c (Fold_delq):
12542 * fns.c (delq_no_quit):
12543 * fns.c (Fremassoc):
12544 * fns.c (Fremassq):
12545 * fns.c (remassq_no_quit):
12546 * fns.c (Fremrassoc):
12547 * fns.c (Fremrassq):
12548 * fns.c (remrassq_no_quit):
12549 * fns.c (Freverse):
12553 * frame-msw.c (mswindows_init_frame_1):
12554 * frame-msw.c (mswindows_delete_frame):
12555 Register popups with dialog code so keyboard traversing works.
12557 * frame-tty.c (tty_raise_frame_no_select): [1].
12560 * frame-x.c (x_set_frame_text_value):
12561 * frame-x.c (x_set_frame_properties):
12562 * frame-x.c (x_create_widgets):
12566 * frame.c (Fmouse_pixel_position): Minor doc fixes.
12568 * frame.h (wrap_frame): New.
12569 Macro like wrap_device.
12572 * general.c (SYMBOL):
12573 * general.c (syms_of_general):
12574 Major reorg. This is now just a wrapper and symbols themselves
12575 are listed in general-slots.h.
12577 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12578 * glyphs-msw.c (mswindows_resource_instantiate): [5].
12580 * glyphs-msw.c (mswindows_native_layout_instantiate):
12581 Add DS_CONTROL so keyboard traversal will work.
12584 * glyphs-widget.c (syms_of_glyphs_widget):
12585 Move some symbols to general-slots.h.
12588 * glyphs-x.c (xbm_instantiate_1):
12589 * glyphs-x.c (x_xbm_instantiate):
12590 * glyphs-x.c (x_xface_instantiate):
12591 * glyphs-x.c (autodetect_instantiate):
12592 * glyphs-x.c (cursor_font_instantiate):
12593 * glyphs-x.c (x_update_widget):
12594 * glyphs-x.c (x_widget_instantiate):
12595 * glyphs.c (bitmap_to_lisp_data):
12596 * glyphs.c (pixmap_to_lisp_data):
12599 * glyphs.c (syms_of_glyphs):
12603 * gui-x.c (print_widget_value):
12604 * gui-x.c (menu_separator_style_and_to_external):
12605 * gui-x.c (add_accel_and_to_external):
12606 * gui-x.c (button_item_to_widget_value):
12607 * gui-x.c (gui_items_to_widget_values_1):
12608 * gui-x.c (gui_items_to_widget_values):
12609 * gui-x.c (syms_of_gui_x):
12610 * gui-x.c (vars_of_gui_x):
12611 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
12615 Muleize, prototype changes matching gui-x.c.
12618 * gui.c (separator_string_p):
12619 * gui.c (gui_item_add_keyval_pair):
12620 * gui.c (make_gui_item_from_keywords_internal):
12621 * gui.c (signal_too_long_error):
12622 * gui.c (parse_gui_item_tree_item):
12623 * gui.c (syms_of_gui):
12624 * gui.c (vars_of_gui):
12626 menu-no-selection-hook moved here (used by MSWin).
12627 Move some symbols to general-slots.h.
12631 * insdel.c (get_buffer_pos_char):
12632 * insdel.c (get_buffer_range_char):
12635 * keymap.c (keymap_lookup_directly):
12636 * keymap.c (keymap_store):
12637 * keymap.c (ensure_meta_prefix_char_keymapp):
12638 * keymap.c (describe_map):
12640 Support new button modifiers.
12642 * lisp-disunion.h (wrap_object):
12643 * lisp-disunion.h (XSETOBJ):
12644 Rename make_obj to wrap_object.
12647 * lisp-union.h (make_int):
12648 * lisp-union.h (make_char):
12649 Support wrap_object.
12652 * lisp.h (LIST_LOOP):
12653 * lisp.h (EXTERNAL_LIST_LOOP):
12654 * lisp.h (LIST_LOOP_2):
12655 * lisp.h (EXTERNAL_LIST_LOOP_1):
12656 * lisp.h (EXTERNAL_LIST_LOOP_2):
12657 * lisp.h (EXTERNAL_LIST_LOOP_3):
12658 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12659 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12660 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12661 * lisp.h (EXTERNAL_ALIST_LOOP_5):
12662 * lisp.h (EXTERNAL_ALIST_LOOP_6):
12663 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12664 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12665 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12666 * lisp.h (struct Lisp_Symbol):
12667 * lisp.h (maybe_continuable_error_with_frob):
12668 Fix up section comments.
12669 Add new types for char to indicate usage.
12670 Delete symbols auto-generated from general-slots.h.
12671 Add prototypes for structured error functions.
12672 Add long comments describing looping macros and change interface
12673 so that lvalues are automatically declared.
12674 Add NO_DECLARE macro in case callers want to declare lvalues
12677 * lread.c (read_syntax_error):
12678 * lread.c (continuable_read_syntax_error):
12679 * lread.c (read_structure):
12680 * lread.c (sequence_reader):
12681 * lread.c (read_list_conser):
12682 * lread.c (read_compiled_function):
12683 Rename syntax_error and continuable_syntax_error to avoid clash
12684 with same-named structured error functions.
12686 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12687 * menubar-msw.c (populate_menu_add_item):
12688 * menubar-msw.c (populate_or_checksum_helper):
12693 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12694 Mule-ize whole file.
12696 * menubar.c (Fnormalize_menu_item_name): Add optimization.
12698 * mule-charset.c (Fmake_charset):
12699 * mule-wnnfns.c (Fwnn_set_param):
12702 * ntproc.c (create_child):
12703 * ntproc.c (Fwin32_set_current_locale):
12704 Add comments portending doom.
12707 * objects-msw.c (old_font_enum_callback_2):
12708 * objects-msw.c (font_enum_callback_1):
12709 * objects-msw.c (mswindows_enumerate_fonts):
12713 * objects-x.c (allocate_nearest_color):
12714 * objects-x.c (x_parse_nearest_color):
12715 * objects-x.c (x_initialize_color_instance):
12716 * objects-x.c (x_print_color_instance):
12717 * objects-x.c (x_finalize_color_instance):
12718 * objects-x.c (x_valid_color_name_p):
12719 * objects-x.c (x_initialize_font_instance):
12720 * objects-x.c (x_print_font_instance):
12721 * objects-x.c (valid_x_font_name_p):
12722 * objects-x.c (truename_via_FONT_prop):
12723 * objects-x.c (truename_via_random_props):
12724 * objects-x.c (truename_via_XListFonts):
12725 * objects-x.c (x_font_truename):
12726 * objects-x.c (x_font_instance_truename):
12727 * objects-x.c (x_font_instance_properties):
12728 * objects-x.c (x_list_fonts):
12729 * objects-x.c (x_find_charset_font):
12730 Mule-ize entire file.
12737 * print.c (std_handle_out_external):
12738 * print.c (debug_print_no_newline):
12739 * print.c (syms_of_print):
12740 Output to all debugger kinds in debug-print.
12741 Fix console-output code under MSWin to actually work.
12743 * process-nt.c (send_signal):
12744 * process-nt.c (nt_create_process):
12745 Use newer Unicode macros.
12747 * process-unix.c (unix_create_process):
12748 * process-unix.c (unix_canonicalize_host_name):
12749 * process-unix.c (unix_open_network_stream):
12755 * search.c (syms_of_search):
12758 * select-msw.c (mswindows_destroy_selection):
12761 * select-x.c (symbol_to_x_atom):
12764 * select.c (syms_of_select):
12767 * sound.c (Fplay_sound_file):
12771 * specifier.c (decode_specifier_type):
12772 * specifier.c (Fvalid_specifier_locale_type_p):
12773 * specifier.c (check_valid_locale_or_locale_type):
12774 * specifier.c (decode_locale):
12775 * specifier.c (decode_locale_type):
12776 * specifier.c (decode_locale_list):
12777 * specifier.c (check_valid_domain):
12778 * specifier.c (decode_specifier_tag_set):
12779 * specifier.c (Fcanonicalize_tag_set):
12780 * specifier.c (Fdefine_specifier_tag):
12781 * specifier.c (Fspecifier_tag_predicate):
12782 * specifier.c (check_valid_inst_list):
12783 * specifier.c (check_valid_spec_list):
12784 * specifier.c (decode_how_to_add_specification):
12785 * specifier.c (check_modifiable_specifier):
12786 * specifier.c (specifier_add_spec):
12787 * specifier.c (boolean_validate):
12788 * specifier.c (display_table_validate):
12791 * specifier.c (syms_of_specifier):
12792 Move some symbols to general-slots.h.
12796 * symbols.c (Fmapatoms):
12797 * symbols.c (Fapropos_internal):
12800 * symbols.c (set_default_buffer_slot_variable):
12801 * symbols.c (set_default_console_slot_variable):
12804 * symbols.c (defsymbol_massage_name_1):
12805 * symbols.c (defkeyword_massage_name):
12806 * symbols.c (deferror_1):
12807 * symbols.c (deferror):
12808 * symbols.c (deferror_massage_name_and_message):
12810 * symeval.h (DEFSYMBOL):
12811 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12813 * symbols.c (syms_of_symbols):
12817 * symsinit.h (init_win32): New.
12818 Also new is syms_of_dialog_mswindows.
12821 Add new Unicode macros, missing Cygwin wide-char functions,
12822 convenience conversion macros for Qmswindows_tstr, macros for
12823 encapsulating required MSWin <-> Cygwin filename conversions,
12824 prototype for dynamically-extracted (not in NT 3.51) functions.
12829 * tooltalk.c (Fadd_tooltalk_message_arg):
12830 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12831 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12834 * tooltalk.c (syms_of_tooltalk):
12838 * unexnt.c (unexec):
12839 Fix up headers, declaration of unexec() to be more standard.
12841 2000-07-20 Martin Buchholz <martin@xemacs.org>
12843 * offix.h: Revert change to guard macros - they're used in offix.c!
12845 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12847 * lisp.h: Defsubred Fdelete.
12849 * console-msw.h: (msprinter_default_printer): Added.
12851 * console-msw.c (msprinter_canonicalize_console_connection):
12852 (msprinter_canonicalize_device_connection): Added.
12854 * device-msw.c (msprinter_default_printer):
12855 (Fmswingows_get_default_printer):
12856 (signal_enum_priner_error):
12857 (Fmswingows_printer_list): Added.
12859 2000-07-19 Martin Buchholz <martin@xemacs.org>
12861 * XEmacs 21.2.35 is released.
12863 2000-07-19 Martin Buchholz <martin@xemacs.org>
12865 * select-x.c (x_handle_selection_request):
12866 Text selected in xemacs and pasted into xterm failed to appear.
12867 Spelling fixes and cosmetic changes.
12869 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12871 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12872 XEmacs frame (fix for doubling chars in dialog boxes).
12874 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12876 * select.c (select_convert_in, select_convert_out):
12877 Don't call intern() every time.
12879 * select.c (Qselect_convert_in, Qselect_convert_out): New.
12880 * select.c (vars_of_select): Initialise them.
12882 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12884 * select.c (selection-coercible-types): New.
12886 * select.c (own-selection-internal):
12887 * select.c (get-selection-internal):
12888 MULE bug fix - these should default to COMPOUND_TEXT and not
12889 STRING for MULE. I think.
12891 * select.c (select_convert_out): Use selection-coercible-types
12892 to find types that we can attempt to perform coercions on.
12894 2000-07-18 Martin Buchholz <martin@xemacs.org>
12898 Add coding: cookie to identify encoding.
12900 * mule-canna.c (CANNA_mode_keys): make static.
12901 Use proper prototypes, even for functions of no arguments.
12902 Remove external prototype for Fding().
12904 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12906 * select.c (syms_of_select): Add missing DEFSUBR.
12908 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12910 * select.c (get_selection_internal, own_selection_internal):
12911 Make the type default to STRING, rather than placing a nil type
12912 into Vselection_alist.
12914 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12916 * gpmevent.c (tty_selection_exists_p):
12917 * gpmevent.c (tty_own_selection):
12918 Updated parameter lists.
12920 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12922 * select.h (selection-alist): Removed declaration.
12924 * select.h (get_local_selection):
12925 * select.c (get_local_selection):
12928 * select.h (convert_selection): Removed declaration.
12929 * select.c (convert_selection): Removed.
12930 This function belongs in Lisp.
12932 * select.h (select_convert_in): Declare.
12933 * select.h (select_convert_out): Declare.
12934 * select.c (select_convert_in): New.
12935 * select.c (select_convert_out): New.
12936 New conversion functions for other files to call.
12938 * select.h (select_notify_buffer_kill): Declare.
12939 * select.c (select_notify_buffer_kill): New.
12940 New functions that get called from kill-buffer.
12942 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12943 X-specific lisp code.
12945 * select.h: Declare some of the lisp-visible functions for
12948 * select.c (clean_local_selection_data): Removed. This was
12949 a disgusting function, and previously should have been in
12950 select-x.c in any case. The functionality is now provided
12951 in select-convert-from-integer (select.el).
12953 * select.c (available-selection-types): Fixed stupidity where
12954 INTEGER and ATOM got added twice. Also add STRING when we see an
12957 * select.c (get-selection-internal): Removed symbol stripping. No
12958 longer causes conversion when data comes from the internal cache.
12960 * select.c (syms_of_select): Added new functions.
12962 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12963 error checking - previously this called abort!
12965 * select-x.c (x_own_selection): Changed comment.
12967 * select-x.c (x_handle_selection_request): Use select_convert_out.
12968 Don't mess with selection-alist; it's an internal variable of select.c.
12970 * select-x.c (x_get_foreign_selection): Use select_convert_in.
12972 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12973 rather than messing with selection-alist.
12975 * select-msw.c (mswindows_get_foreign_selection):
12976 Use TO_INTERNAL_FORMAT rather than hacking.
12978 2000-07-14 Martin Buchholz <martin@xemacs.org>
12980 * process-unix.c (unix_open_multicast_group):
12981 (unix_open_multicast_group): Remove useless casts.
12983 2000-07-13 Martin Buchholz <martin@xemacs.org>
12985 * sound.c (Fplay_sound): Fix `unused variable' warning.
12987 * emacs.c (main): Use correct type for _environ on SCO5.
12989 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12991 * console.h (own_selection_method):
12992 * console.h (selection_exists_p_method):
12993 * console.h (available_selection_types_method): New.
12994 * console.h (register_selection_data_type_method): New.
12995 * console.h (selection_data_type_name): New.
12997 * console-msw.h (mswindows_destroy_selection): Declare it. New
12998 function & alist to track GlobalAlloc()'d handles that need
12999 releasing when the clipboard data gets replaced or emptied.
13001 * event-msw.c (mswindows_wnd_proc): Call it.
13003 * lisp.h, general.c (Qappend): New symbol representing a
13006 * select.c (own-selection-internal):
13007 * select.c (selection-exists-p):
13008 * select.c (available-selection-types): New.
13009 * select.c (register-selection-data-type): New.
13010 * select.c (selection-data-type-name): New. New functions to deal
13011 with device-specific selection data formats.
13012 * select.c (selection-converter-out-alist): Renamed.
13013 * select.c (selection-converter-in-alist): New.
13014 * select.c (selection-appender-alist): New. Added new alists.
13015 * select.c (syms_of_select, vars_of_select): Added new symbols &
13017 * select.c (get_local_selection): Split.
13018 * select.c: Removed spurious type checking - selections may now be
13019 of any type, not just strings.
13020 * select.c (own-selection-internal):
13022 * select.h, select.c (convert_selection): New. Created
13023 convert_selection() function based on get_local_selection().
13024 * select.h, select.c (QCF_*): New symbols representing mswindows
13026 * select.h, select.c (Qreplace_all, Qreplace_existing): New
13027 symbols representing `how-to-add' modes.
13029 * select-msw.c (x_sym_p): New.
13030 * select-msw.c (symbol_to_ms_cf): New.
13031 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13032 symbols & clipboard formats. Can also handle string names.
13033 * select-msw.c (mswindows_own_selection):
13034 * select-msw.c (mswindows_selection_exists_p):
13035 Added `data-type' parameter. Use it.
13036 * select-msw.c (mswindows_available_selection_types): New.
13037 * select-msw.c (mswindows_register_selection_data_type): New.
13038 * select-msw.c (mswindows_selection_data_type_name): New.
13039 * select-msw.c (mswindows_own_selection):
13040 * select-msw.c (mswindows_get_foreign_selection):
13041 * select-msw.c (mswindows_selection_exists_p): Rewrote.
13042 * select-msw.c (console_create_select_mswindows): Added new methods.
13043 * select-msw.c (mswindows_destroy_selection): New.
13044 * select-msw.c (Vhandle_alist): New list.
13045 * select-msw.c (mswindows_own_selection):
13047 * select-x.c (x_own_selection):
13048 * select-x.c (x_selection_exists_p):
13049 * select-x.c: Added some comments about maybe using new
13051 * select-x.c (x_own_selection):
13053 * specifier.c: Remove definition of Qappend (now in general.c)
13054 * specifier.c (syms_of_specifier): Remove Qappend.
13056 2000-07-12 Martin Buchholz <martin@xemacs.org>
13058 * config.h.in: Add socklen_t.
13060 * s/decosf4-0.h: No special compiler flags needed or desired.
13061 In particular, undefine _BSD for DEC OSF 4.0.
13063 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13065 * redisplay-msw.c (msprinter_frame_output_end): Added.
13066 (console_type_create_redisplay_mswindows): Referred the above.
13068 * frame.c (setup_frame_without_minibuffer): Do not create a
13069 default minibuffer frame on a printer device.
13071 * frame-msw.c (apply_dc_geometry): Added.
13072 (msprinter_start_page):
13073 (msprinter_init_frame_3):
13074 (msprinter_eject_page): Use it.
13076 * console-msw.h (struct msprinter_frame): Added pix_left and top,
13077 and removed residual duplex and orientation properties.
13079 2000-07-11 Martin Buchholz <martin@xemacs.org>
13081 * eval.c (function_argcount): Work around a DEC CC compiler bug.
13083 * unexalpha.c: Remove system prototypes from C sources!
13085 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
13087 * eval.c: Remove references to M-x edit-options in DEFUNs for
13088 `defvar' and `defconst'.
13090 2000-07-09 Martin Buchholz <martin@xemacs.org>
13092 * config.h.in: Remove SMART_INCLUDE hackery.
13094 PostgreSQL hacking:
13095 * config.h.in: Don't use SMART_INCLUDE.
13097 * postgresql.h: Include libpq-fe.h here. Fix typo.
13098 * inline.c: Simply #include "postgresql.h"
13100 - Don't use SMART_INCLUDE
13101 - Use simply "const".
13102 - Use standard doc string conventions.
13103 - Use correct type for result of PQstatus.
13105 2000-07-09 Martin Buchholz <martin@xemacs.org>
13107 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13109 C++ compilation changes.
13110 * config.h.in (EXTERN_C): Define.
13111 * config.h.in (not): This is also a C++ keyword.
13112 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13113 * cm.c: Use EXTERN_C.
13114 * redisplay-tty.c: Use EXTERN_C.
13115 * sysdep.c: Use EXTERN_C. Remove Gould support.
13117 2000-07-09 Martin Buchholz <martin@xemacs.org>
13119 * general.c: Remove duplicate definition for Qfunction.
13121 2000-07-08 Ben Wing <ben@xemacs.org>
13123 * device-msw.c (msprinter_init_device):
13124 * device-msw.c (sync_printer_with_devmode):
13125 * device-msw.c (handle_devmode_changes):
13126 * device-msw.c (print_dialog_worker):
13127 * device-msw.c (Fmsprinter_apply_settings):
13128 * device-msw.c (hash_devmode):
13129 * device-msw.c (Fmsprinter_settings_despecialize):
13130 use Qmswindows_tstr, not Qctext.
13132 * vm-limit.c (check_memory_limits):
13133 avoid infinite loop printing warning messages.
13135 2000-07-05 Craig Lanning <lanning@scra.org>
13137 * Makefile.in.in: Add support for including the Windows resources
13138 when building with the cygwin and mingw targets.
13140 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13141 not set or not correct.
13142 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13143 (init_initial_directory): Don't try to use $PWD on the
13144 WIN32_NATIVE target.
13147 [[Add -mwindows to eliminate console window.]] not required --ben
13148 (HAVE_NATIVE_SOUND): removed; now handled by configure.
13149 (MAIL_USE_POP): removed; now handled by configure.
13151 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13152 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13153 (HAVE_NATIVE_SOUND): removed; now handled by configure.
13154 (MAIL_USE_POP): removed; now handled by configure.
13155 (ENCAPSULATE_STAT): from Dan Holmsand, added.
13156 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13157 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13159 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13160 up from <winsock.h> via systime.h.
13161 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13162 (getpagesize): from Dan Holmsand, added.
13163 Added #endif which was left dangling by Ben's mega patch; added
13164 comment to help prevent this in the future.
13166 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13168 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13170 * console-msw.h (struct mswindows_device): Removed unnecessary
13171 cached device geometry values.
13172 Added update_tick and an accessor macro.
13173 (Lisp_Devmode): Added lrecord declaration.
13174 (struct msprinter_device): Contain devmode as a Lisp object.
13175 Added mswindows_get_selected_frame_hwnd();
13177 * console.h (struct console_methods): Indentation nitpicking.
13179 * device-msw.c (mswindows_init_device): Do not initialize geometry
13180 cache. Initialize update tick.
13181 (mswindows_device_system_metrics): Ask the device for its geometry.
13182 (global_free_2_maybe):
13183 (devmode_to_hglobal):
13184 (handle_printer_changes):
13185 (ensure_not_printing):
13186 (print_dialog_worker):
13187 (Fmsprinter_print_setup_dialog):
13188 (Fmsprinter_print_dialog):
13189 (plist_get_margin):
13190 (plist_set_margin):
13191 (Fmsprinter_page_setup_dialog): Added functions.
13192 (sync_printer_with_devmode):
13193 (handle_devmode_changes):
13194 (Fmsprinter_get_settings):
13195 (Fmsprinter_select_settings):
13196 (Fmsprinter_apply_settings):
13197 (allocate_devmode):
13198 (Fmsprinter_settings_copy):
13199 (Fmsprinter_settings_despecialize):
13201 (finalize_devmode):
13203 (hash_devmode): Added functions
13204 (syms_of_device_mswindows): Init devmode lrecord class.
13206 * device.h: Added an exfun for find-device.
13208 * event-msw.c (mswindows_wnd_proc): Do not update the cached
13209 geometry; although, recreate the device compatible DC.
13211 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13212 (msprinter_init_frame_3):
13213 (msprinter_frame_property):
13214 (msprinter_internal_frame_property_p):
13215 (msprinter_frame_properties):
13216 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13217 print job properties (will move to device settings).
13219 * lisp.h: Added symbols.
13221 * general.c (syms_of_general): Declared them.
13223 * hash.c (string_hash): Added.
13225 * lrecord.h (lrecord_type): Added devmode lrecord type.
13227 2000-07-02 Mike Sperber <mike@xemacs.org>
13229 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13232 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
13234 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13237 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
13239 * data.c (Fstring_to_number): Don't recognize floating point if
13242 2000-06-22 Martin Buchholz <martin@xemacs.org>
13244 * glyphs-widget.c (tab_control_query_geometry):
13245 (widget_query_geometry):
13246 (button_query_geometry):
13247 * glyphs.c (text_query_geometry):
13248 Enforce type correctness.
13250 2000-06-18 Martin Buchholz <martin@xemacs.org>
13252 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13253 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13255 2000-06-17 Martin Buchholz <martin@xemacs.org>
13257 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13258 conflicts with gcc's fixincluded version of FOO.h.
13260 * glyphs.h (image_instance_geometry): Remove trailing `,'
13262 2000-06-08 Mike Alexander <mta@arbortext.com>
13264 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13265 (shove_thread): Don't write the same output twice
13266 (make_ntpipe_output_stream): Increase priority of shove thread
13267 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13269 (ntpipe_shove_closer): Don't delete the pipe until we're done with
13272 2000-06-12 Ben Wing <ben@xemacs.org>
13274 * s\mingw32.h (sigset):
13275 * s\windowsnt.h (sigset):
13276 rename msw_ to mswindows_ for consistency with general convention.
13278 2000-06-12 Ben Wing <ben@xemacs.org>
13281 * console-msw.c (mswindows_get_console_hwnd):
13282 * console-msw.c (mswindows_ensure_console_allocated):
13283 * console-msw.c (mswindows_hide_console):
13284 * console-msw.c (mswindows_show_console):
13285 * console-msw.c (mswindows_ensure_console_buffered):
13286 * console-msw.c (mswindows_output_console_string):
13287 * console-msw.c (mswindows_windows9x_p):
13289 * device-msw.c (mswindows_get_workspace_coords):
13290 * device-msw.c (mswindows_device_system_metrics):
13291 * dialog-msw.c (mswindows_popup_dialog_box):
13292 * event-msw.c (mswindows_wnd_proc):
13293 * frame-msw.c (mswindows_size_frame_internal):
13294 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13295 * menubar-msw.c (displayable_menu_item):
13296 * menubar-msw.c (mswindows_char_is_accelerator):
13298 * nt.c (mswindows_sigset):
13299 * nt.c (mswindows_sigrelse):
13300 * nt.c (mswindows_sigpause):
13301 * nt.c (mswindows_raise):
13302 * nt.c (timer_proc):
13304 * ntproc.c (find_child_console):
13305 * ntproc.c (sys_kill):
13307 * print.c (std_handle_out_external):
13308 * process-nt.c (find_child_console):
13309 * process-nt.c (send_signal_the_95_way):
13310 * process-nt.c (ensure_console_window_exists):
13311 * process-nt.c (nt_create_process):
13313 rename msw_ to mswindows_ for consistency with general convention.
13317 include nt.h, not syswindows.h.
13319 * nt.c (mswindows_fstat):
13320 * nt.c (mswindows_stat):
13321 prefix mswindows_ instead of attempting to directly override the
13322 library functions. fix declarations.
13325 include syswindows.h. move some sysdep.h stuff here.
13328 include syswindows.h, not <windows.h>.
13336 * sysdep.c (sys_fstat):
13337 * sysdep.c (sys_stat):
13338 call mswindows versions when appropriate.
13341 move mswin decls to nt.h.
13344 add long comment describing appropriate use of the various windows
13347 2000-06-11 Ben Wing <ben@xemacs.org>
13349 * device-x.c: Correct doc string for sixth arg of x-get-resource.
13351 2000-06-10 Ben Wing <ben@xemacs.org>
13353 * Makefile.in.in (release):
13354 Correction to make sure xemacs.exe always dumped when correct.
13358 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13360 * buffer.c (set_buffer_internal):
13361 [[[[2]]]]: Remove HAVE_FEP code.
13363 * buffer.c (init_initial_directory):
13367 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13371 * callproc.c (call_process_cleanup):
13372 * callproc.c (Fold_call_process_internal):
13373 * callproc.c (child_setup):
13374 * callproc.c (getenv_internal):
13375 * callproc.c (init_callproc):
13376 * callproc.c (vars_of_callproc):
13377 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13378 __CYGWIN32__ -> CYGWIN.
13379 DOS_NT -> WIN32_NATIVE.
13380 Remove MSDOS support/references, converting to WIN32_NATIVE
13382 __MINGW32__ -> MINGW.
13383 Fix windows.h includes.
13384 Remove bogus HAVE_NTGUI.
13390 mswindows_message_outputted added for use in allowing startup
13391 errors on the console to be seen.
13393 * console-msw.c (msw_ensure_console_allocated):
13394 * console-msw.c (msw_output_console_string):
13395 * console-msw.c (DHEADER):
13396 * console-msw.c (DOPAQUE_DATA):
13397 * console-msw.c (DEVENT):
13398 * console-msw.c (DCONS):
13399 * console-msw.c (DCONSCDR):
13400 * console-msw.c (DSTRING):
13401 * console-msw.c (DVECTOR):
13402 * console-msw.c (DSYMBOL):
13403 * console-msw.c (DSYMNAME):
13406 * console-stream.c (stream_init_console):
13407 Fix text/binary problems.
13410 * device-msw.c (mswindows_finish_init_device):
13411 * device-msw.c (mswindows_delete_device):
13414 * device.c (handle_asynch_device_change):
13418 * dgif_lib.c (DGifOpenFileName):
13419 * dgif_lib.c (DGifOpenFileHandle):
13420 * dgif_lib.c (DGifGetLine):
13421 * dgif_lib.c (DGifGetPixel):
13422 Added config.h/lisp.h, fix up includes.
13429 * dired.c (file_name_completion):
13430 * dired.c (Ffile_attributes):
13431 * dired.c (syms_of_dired):
13435 * dumper.c (pdump_file_unmap):
13436 * dumper.c (pdump_load):
13440 * editfns.c (Ftemp_directory):
13441 * editfns.c (user_login_name):
13442 * editfns.c (Fuser_real_login_name):
13443 * editfns.c (get_home_directory):
13446 * elhash.c (finish_marking_weak_hash_tables):
13447 [[[[5]]]]: Fix GCC warnings.
13450 * emacs.c (mswindows_handle_hardware_exceptions):
13451 * emacs.c (make_arg_list_1):
13452 * emacs.c (main_1):
13453 * emacs.c (Fkill_emacs):
13454 * emacs.c (Fdump_emacs):
13456 Fix problems with nested crashes, add long comment.
13458 * event-Xt.c (init_event_Xt_late):
13462 * event-msw.c (mswindows_dde_callback):
13463 * event-msw.c (mswindows_handle_sticky_modifiers):
13464 * event-msw.c (mswindows_wnd_proc):
13468 * events.c (character_to_event):
13472 * fileio.c (Ffile_name_directory):
13473 * fileio.c (Ffile_name_nondirectory):
13474 * fileio.c (directory_file_name):
13475 * fileio.c (Fexpand_file_name):
13476 * fileio.c (Fsubstitute_in_file_name):
13477 * fileio.c (Ffile_name_absolute_p):
13478 * fileio.c (check_executable):
13479 * fileio.c (Ffile_readable_p):
13480 * fileio.c (Ffile_accessible_directory_p):
13481 * fileio.c (Ffile_modes):
13482 * fileio.c (Funix_sync):
13483 * fileio.c (vars_of_fileio):
13486 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13488 Expand getdefdir defn.
13489 Fix bogus rename() comment.
13491 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
13492 to use standard XEmacs include files, e.g. sysfile.h, rather
13493 than system-specific includes.
13499 * frame.c (vars_of_frame):
13503 * getloadavg.c (getloadavg):
13505 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
13506 (We don't use it elsewhere in the code; just add a comment.)
13513 * glyphs-msw.c (mswindows_resource_instantiate):
13516 * glyphs-x.c (x_native_layout_instantiate):
13519 * gui-msw.c (Fmswindows_shell_execute):
13528 * lread.c (locate_file_in_directory_mapper):
13535 * mem-limits.h (get_lim_data):
13547 * nt.c (rva_to_section):
13548 * nt.c (mswindows_executable_type):
13550 Fix closedir() defn.
13553 [[[[8]]]]: *_OK defs moved to sysfile.h.
13562 * print.c (std_handle_out_external):
13566 * process-nt.c (nt_create_process):
13568 try to fix process quoting somewhat.
13570 * process-unix.c (unix_create_process):
13574 * process.c (vars_of_process):
13581 * realpath.c (xrealpath):
13584 * redisplay-tty.c (init_tty_for_redisplay):
13594 * sheap.c (more_static_core):
13595 * sheap.c (report_sheap_usage):
13599 * signal.c (alarm_signal):
13606 * strftime.c (zone_name):
13609 * symsinit.h (init_sunpro):
13613 commctrl.h not in Cygwin b20.1.
13616 * sysdep.c (endif):
13617 * sysdep.c (sys_subshell):
13618 * sysdep.c (init_baud_rate):
13619 * sysdep.c (emacs_get_tty):
13620 * sysdep.c (emacs_set_tty):
13621 * sysdep.c (tty_init_sys_modes_on_device):
13622 * sysdep.c (init_system_name):
13623 * sysdep.c (sys_open):
13624 * sysdep.c (interruptible_open):
13625 * sysdep.c (sys_fopen):
13626 * sysdep.c (sys_mkdir):
13627 * sysdep.c (sys_rename):
13628 * sysdep.c (get_process_times_1):
13635 * sysdir.h (DIRENTRY_NONEMPTY):
13638 * sysdll.c (dll_init):
13644 added text/binary defs.
13650 * sysproc.h (EDESTADDRREQ):
13651 * sysproc.h (poll_fds_for_input):
13668 Always define WIN32_LEAN_AND_MEAN.
13670 * unexcw.c (unexec):
13674 * unexec.c (copy_text_and_data):
13675 * unexec.c (adjust_lnnoptrs):
13679 * unexnt.c (_start):
13682 2000-06-07 Ben Wing <ben@xemacs.org>
13684 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
13685 was used only as a model. We've long since extracted any useful
13686 logic or code out of this. (I just did an exhaustive search.)
13688 * s\msdos.h: Removed.
13690 * s\windows95.h: Removed.
13692 2000-06-10 Ben Wing <ben@xemacs.org>
13696 Don't use extern with fun defs.
13700 Remove nt\inc include.
13701 Remove getdisk, getdefdir. (The former is unused, the latter
13702 expanded in fileio.h.)
13705 * s\windowsnt.h (WIN32_NATIVE):
13706 * s\windowsnt.h (HAVE_STRCASECMP):
13708 Add long comment about preprocessor changes.
13709 Remove getdisk, getdefdir. (The former is unused, the latter
13710 expanded in fileio.h.)
13712 2000-06-10 Ben Wing <ben@xemacs.org>
13721 Remove bogus/unused NO_SOCK_SIGIO.
13723 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
13725 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13728 2000-06-04 Mike Sperber <mike@xemacs.org>
13730 * casetab.c (set_case_table): For `set-standard-case-table',
13731 actually deposit the new case tables where the rest of XEmacs can
13734 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
13736 * data.c (Faset): Don't cast XCHAR() to unsigned char.
13738 2000-06-05 Ben Wing <ben@xemacs.org>
13740 * callproc.c (child_setup): Don't do close_load_descs() under
13741 MS Windows. Put in a comment explaining why.
13743 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
13745 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13746 Toolkit shell" which breaks `kill-compilation' on Windows NT
13747 native, retaining STDERR handling improvements.
13749 2000-06-01 Andreas Jaeger <aj@suse.de>
13751 * s/s390.h: Support for S390, based on a patch by Martin
13752 Schwidefsky <schwidefsky@de.ibm.com>.
13754 2000-05-30 Andy Piper <andy@xemacs.org>
13756 * window.c (allocate_window):
13757 (make_dummy_parent):
13758 (Fset_window_configuration): use new hashtable type.
13760 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13761 (struct image_instantiator_methods):
13762 (struct Lisp_Image_Instance): make instance geometry signed.
13764 * glyphs.c (instantiate_image_instantiator):
13765 (image_instance_query_geometry):
13766 (image_instance_layout):
13767 (image_instance_layout):
13768 (query_string_geometry):
13769 (text_query_geometry):
13770 (image_instantiate):
13771 (image_instantiate):
13772 (cache_subwindow_instance_in_frame_maybe):
13773 (subwindow_query_geometry): make instance geometry signed.
13775 * glyphs-widget.c (widget_query_geometry):
13777 (button_query_geometry):
13778 (tree_view_query_geometry):
13779 (tab_control_query_geometry):
13780 (layout_query_geometry):
13782 (native_layout_layout): make instance geometry signed.
13784 2000-05-29 Olivier Galibert <galibert@pobox.com>
13786 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13789 * general.c (syms_of_general): Add Qfull_assoc symbol.
13791 * data.c (finish_marking_weak_lists): Mark full-assoc lists
13793 (decode_weak_list_type): Decode full-assoc type.
13794 (encode_weak_list_type): Encode full-assoc type.
13795 (Fmake_weak_list): Update doc string.
13797 2000-05-30 Andy Piper <andy@xemacs.org>
13799 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13801 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13802 (decode_hash_table_weakness): ditto.
13803 (Fhash_table_weakness): ditto.
13804 (Fhash_table_type): ditto.
13805 (finish_marking_weak_hash_tables): ditto.
13806 (hash_table_weakness_validate): ditto.
13807 (syms_of_elhash): ditto.
13809 2000-05-28 Martin Buchholz <martin@xemacs.org>
13811 * XEmacs 21.2.34 is released.
13813 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
13815 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13817 (updating_line_start_cache): Gone.
13818 (regenerate_window): Replace resetting of VERTICAL_CLIP by
13819 generic code to force a minimum of 1 line laid out in the
13822 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
13824 * glyphs.c (instantiate_image_instantiator): Check for initialized
13825 height & width no longer special cases IMAGE_NOTHING.
13826 (nothing_instantiate): Set height and width of instance.
13828 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
13830 * unexelf.c (unexec): Search for ".data" section.
13831 Initialize new_data2_offset from old_data_index.
13832 Remove redundant check for ElfW.
13834 2000-05-23 Andy Piper <andy@xemacs.org>
13836 * glyphs.c (get_image_instantiator_governing_domain): allow more
13837 specific domains as the governing domain rather than expecting an
13838 exact match. This fixes problems with layouts.
13840 2000-05-22 Andy Piper <andy@xemacs.org>
13842 * redisplay-output.c (compare_runes): check for non-images
13844 * glyphs.c (set_glyph_dirty_p): ditto.
13845 (update_glyph_cachel_data): ditto.
13847 * glyphs-widget.c (layout_post_instantiate): ditto.
13848 (layout_post_instantiate): ditto.
13850 * event-msw.c (mswindows_wnd_proc): warning removal.
13852 2000-05-12 Craig Lanning <CraigL@DyCon.com>
13854 * s\mingw32.h: Added #undef for CLASH_DETECTION.
13856 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13858 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13860 * nt.c (rva_to_section): mingw32 needs rva_to_section.
13861 (mswindows_executable_type): mingw32 now has enough headers for
13864 2000-05-20 Andy Piper <andy@xemacs.org>
13866 * console-msw.c (mswindows_output_last_error): ; -> ,
13868 2000-05-12 Andy Piper <andy@xemacs.org>
13870 * console-msw.c (FROB): compare ints with ints.
13872 2000-05-11 Andy Piper <andy@xemacs.org>
13874 * glyphs-x.c (x_finalize_image_instance): make minimal build
13877 2000-05-20 Ben Wing <ben@xemacs.org>
13880 * event-Xt.c (vars_of_event_Xt):
13881 move modifier-keys-are-sticky to event-stream.c.
13884 * event-msw.c (mswindows_enqueue_mouse_button_event):
13885 * event-msw.c (key_needs_default_processing_p):
13886 * event-msw.c (XEMSW_LCONTROL):
13887 * event-msw.c (mswindows_handle_sticky_modifiers):
13888 * event-msw.c (FROB):
13889 * event-msw.c (clear_sticky_modifiers):
13890 * event-msw.c (output_modifier_keyboard_state):
13891 * event-msw.c (output_alt_keyboard_state):
13892 * event-msw.c (mswindows_wnd_proc):
13893 * event-msw.c (mswindows_modifier_state):
13894 * event-msw.c (emacs_mswindows_handle_magic_event):
13895 implement sticky modifiers.
13898 * event-stream.c (vars_of_event_stream):
13899 move modifier-keys-are-sticky here.
13902 add CHECK_FUNCTION.
13905 implement map-range-table.
13908 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
13910 * redisplay-tty.c (reset_tty_modes):
13911 (tty_redisplay_shutdown): Adjust argument type to
13912 tty_frame_output_end.
13914 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
13916 * eval.c (Fbacktrace): Don't output a line with only right
13919 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
13921 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13922 (Fpq_reset_poll): Ditto.
13924 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
13926 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13928 2000-05-16 Ben Wing <ben@xemacs.org>
13931 * buffer.c (dfc_convert_to/from_internal_format):
13932 * buffer.c (reinit_vars_of_buffer):
13933 Fix conversion functions to allow reentrancy.
13936 * console-msw.c (mswindows_output_last_error):
13937 New fun, generally useful -- output a human-readable
13938 version of GetLastError() on the console.
13941 * console-msw.h (struct mswindows_frame):
13942 Changes for DeferWindowPos. Declare mswindows_output_last_error().
13944 * console-stream.c (stream_output_begin):
13945 * console-stream.c (stream_output_end):
13946 * console-stream.c (stream_output_vertical_divider):
13947 * console-stream.c (stream_clear_region):
13948 * console-stream.c (stream_flash):
13949 * console-stream.c (console_type_create_stream):
13950 Delete blank stream methods, not needed.
13952 * console.h (struct console_methods):
13953 Split begin/end methods into window and frame.
13956 * event-msw.c (mswindows_handle_paint):
13957 * event-msw.c (output_alt_keyboard_state):
13958 * event-msw.c (mswindows_wnd_proc):
13959 * event-msw.c (vars_of_event_mswindows):
13960 Comment about problems with ignored-expose.
13961 Define mswindows-debug-events; not really implemented.
13963 * frame-msw.c (mswindows_init_frame_1):
13967 * glyphs-msw.c (begin_defer_window_pos):
13968 * glyphs-msw.c (mswindows_unmap_subwindow):
13969 * glyphs-msw.c (mswindows_map_subwindow):
13970 * glyphs-msw.c (mswindows_resize_subwindow):
13971 Use DeferWindowPos to reduce flashing when mapping/unmapping.
13973 * glyphs.c (make_image_instance_1):
13976 * gutter.c (Fredisplay_gutter_area):
13977 Use new begin/end methods.
13979 * lisp.h (Dynarr_new2):
13983 * redisplay-msw.c (mswindows_frame_output_begin):
13984 * redisplay-msw.c (mswindows_frame_output_end):
13985 * redisplay-msw.c (console_type_create_redisplay_mswindows):
13986 New begin/end methods -- handle DeferWindowPos.
13988 * redisplay-output.c (redisplay_move_cursor):
13989 * redisplay-output.c (redraw_cursor_in_window):
13990 * redisplay-output.c (redisplay_update_line):
13991 * redisplay-output.c (redisplay_output_window):
13992 New begin/end methods.
13995 * redisplay-tty.c (tty_frame_output_begin):
13996 * redisplay-tty.c (tty_frame_output_end):
13997 * redisplay-tty.c (console_type_create_redisplay_tty):
13998 New begin/end methods.
14001 * redisplay-x.c (x_window_output_begin):
14002 * redisplay-x.c (x_window_output_end):
14003 * redisplay-x.c (console_type_create_redisplay_x):
14004 New begin/end methods.
14006 * redisplay.c (redisplay_frame):
14007 * redisplay.c (Fredisplay_echo_area):
14008 New begin/end methods.
14009 use MAYBE_DEVMETH for clear_frame; it may not exist.
14011 * window.h (WINDOW_XFRAME):
14012 WINDOW_XFOO macros -- get locale and decode struct pointer.
14015 2000-05-12 Ben Wing <ben@xemacs.org>
14018 * emacs.c (ensure_no_quitting_from_now_on):
14019 * emacs.c (fatal_error_signal):
14020 * emacs.c (mswindows_handle_hardware_exceptions):
14022 * emacs.c (Fkill_emacs):
14023 * emacs.c (shut_down_emacs):
14024 * emacs.c (assert_failed):
14025 various improvements in fatal error handling.
14028 move preparing_for_armageddon to emacs.c.
14031 declare fatal_error_in_progress.
14034 * print.c (std_handle_out_external):
14035 * print.c (std_handle_out_va):
14036 * print.c (stderr_out):
14037 * print.c (stdout_out):
14038 use console under mswin when no standard output.
14039 don't do code conversion during fatal error.
14041 * scrollbar.c (Fscrollbar_page_up):
14042 * scrollbar.c (Fscrollbar_page_down):
14043 fix missing else. reindent.
14045 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
14049 * glyphs.h (GLYPH_CACHEL_DESCENT):
14050 (GLYPH_CACHEL_DESCENT):
14051 (GLYPH_CACHEL_DESCENT):
14052 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14053 used in case these are inline functions.
14054 Use more absurd values to error check.
14056 include window.h for error check functions.
14058 2000-05-11 Ben Wing <ben@xemacs.org>
14060 * cmdloop.c (Freally_early_error_handler):
14061 Display message box under windows; otherwise, message will disappear
14062 before it can be viewed.
14065 * console-msw.c (Fmswindows_message_box):
14066 * console-msw.c (FROB):
14067 * console-msw.c (syms_of_console_mswindows):
14068 Define new fun `mswindows-message-box'.
14069 #### I will merge this into `popup-dialog-box'; just give me
14073 * general.c (syms_of_general):
14074 Some new symbols used in `mswindows-message-box'.
14077 * glyphs.c (Fset_image_instance_property):
14078 put warning in this fun.
14081 * glyphs.h (GLYPH_CACHEL_WIDTH):
14082 * glyphs.h (GLYPH_CACHEL_ASCENT):
14083 * glyphs.h (GLYPH_CACHEL):
14084 * glyphs.h (GLYPH_CACHEL_GLYPH):
14085 define error-checking versions to try to catch a bug i've seen --
14086 redisplay gets in an infinite loop because the glyph width of the
14087 continuation glyph is 65535.
14090 Extern message-box stuff.
14092 * window.c (allocate_window):
14093 * window.c (make_dummy_parent):
14094 * window.c (Fset_window_configuration):
14095 Use EQUAL not EQ for subwindow caches to make them work a bit
14096 better. (Something is still very broken.)
14099 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
14101 * glyphs.c (image_instantiate): Suppress gcc warnings.
14102 (Fmake_image_instance): Fix doc string.
14103 * specifier.c (Fmake_specifier): Ditto.
14105 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
14107 * paths.h.in (PATH_LOCK): Removed.
14108 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14109 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14111 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
14113 * fns.c (Ffeaturep): Update e-mail address in doc-string.
14114 Document (featurep '(and xemacs 21.02)).
14116 2000-05-09 Ben Wing <ben@xemacs.org>
14118 * buffer.c (complex_vars_of_buffer):
14119 update modeline-format doc.
14122 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14125 timeline of all released versions of Emacs, for use in creating
14126 authorship comments and in synching up.
14128 * glyphs-widget.c (image_instantiator_buttons):
14129 * glyphs-widget.c (image_instantiator_edit_fields):
14130 * glyphs-widget.c (image_instantiator_combo_box):
14131 * glyphs-widget.c (image_instantiator_scrollbar):
14132 * glyphs-widget.c (image_instantiator_progress_guage):
14133 * glyphs-widget.c (image_instantiator_tree_view):
14134 * glyphs-widget.c (image_instantiator_tab_control):
14135 * glyphs-widget.c (image_instantiator_labels):
14136 * glyphs-widget.c (image_instantiator_layout):
14137 * glyphs-widget.c (image_instantiator_native_layout):
14138 rename decode_domain method to governing_domain.
14141 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14142 * glyphs.c (add_entry_to_device_ii_format_list):
14143 make sure we don't put an entry more than once into the list.
14144 * glyphs.c (check_instance_cache_mapper):
14145 *************************************************************
14146 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14148 *************************************************************
14149 * glyphs.c (get_image_instantiator_governing_domain):
14150 clean up, expand on new concept of governing domain.
14151 * glyphs.c (instantiate_image_instantiator):
14152 * glyphs.c (allocate_image_instance):
14153 use governing_domain instead of cache_domain in naming.
14154 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14155 * glyphs.c (make_image_instance_1):
14156 * glyphs.c (Fmake_image_instance):
14157 allow for any domain (not just device), and process the
14158 governing domain correctly. very big doc fix.
14159 * glyphs.c (Fimage_instance_domain):
14160 new primitive, to retrieve the governing domain of an image instance.
14161 * glyphs.c (image_instantiate):
14162 use new governing_domain stuff. this fixes a crash you could get
14163 by instantiating certain widget glyphs in frame locales. (should
14164 signal an error instead of crashing.)
14165 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14166 * glyphs.c (Fglyphp): clean up doc.
14167 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14168 * glyphs.c (syms_of_glyphs):
14169 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14170 * glyphs.c (image_instantiator_format_create): add some comments about
14172 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14173 for current-display-table. (Apparently Hrjove implemented in 1998 a
14174 design I wrote up in 1996, but didn't update the doc string.)
14176 * glyphs.h: clean up a doc string.
14177 * glyphs.h (governing_domain):
14178 * glyphs.h (struct image_instantiator_methods):
14179 changes for governing_domain stuff.
14182 * gutter.c (Fgutter_specifier_p):
14183 * gutter.c (Fgutter_size_specifier_p):
14184 * gutter.c (Fgutter_visible_specifier_p):
14186 * objects.c (Fcolor_specifier_p):
14187 * objects.c (Ffont_specifier_p):
14188 * objects.c (Fface_boolean_specifier_p):
14189 doc strings moved to make-*-specifier.
14191 * redisplay.c (add_disp_table_entry_runes_1):
14192 * redisplay.c (generate_fstring_runes):
14193 * redisplay.c (screen):
14194 add random comments and doc strings.
14197 * specifier.c (Fmake_specifier):
14198 major overhaul of this doc string.
14200 * specifier.c (Fvalid_specifier_domain_p):
14201 comment about the bogosity of image instances being domains.
14202 * specifier.c (decode_domain):
14203 now non-static, used in glyphs.c.
14204 * specifier.c (specifier_instance):
14205 comment about the bogosity of image instances being domains.
14206 * specifier.c (Fgeneric_specifier_p):
14207 move doc string to make-generic-specifier.
14208 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14212 * specifier.h (DOMAIN_FRAME):
14213 * specifier.h (DOMAIN_LIVE_P):
14214 * specifier.h (DOMAIN_XDEVICE):
14216 add comments about problems with these macros.
14217 prototype for decode_domain.
14220 * toolbar.c (Ftoolbar_specifier_p):
14221 move doc string to `make-toolbar-specifier'.
14223 * window.c (window_unmap_subwindows_cache_mapper):
14224 *************************************************************
14225 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14227 *************************************************************
14229 2000-05-09 Andy Piper <andy@xemacs.org>
14231 * glyphs.h: declare reset_frame_subwindow_instance_cache.
14233 * window.c (Fset_window_configuration): reset the frame subwindow
14234 cache and re-initialize the window subwindow caches.
14236 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14238 2000-05-09 Ben Wing <ben@xemacs.org>
14240 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14243 2000-04-26 Mike Woolley <mike@bulsara.com>
14245 * ntheap.c: Changed recreate_heap to limit the amount reserved
14246 for the heap to that which is actually available. Also now
14247 displays a message box (with some dignostics) in the event that
14248 it still can't start.
14250 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
14252 * callproc.c (Fold_call_process_internal): GCPRO path
14254 2000-05-08 Jan Vroonhof <jan@xemacs.org>
14256 Patch by Bill Perry.
14258 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14259 back data instead of #ifdef.
14260 (Fscrollbar_page_down): ditto.
14262 2000-05-07 Ben Wing <ben@xemacs.org>
14265 Kludge for defining Qmswindows_tstr.
14268 * nt.c (open_input_file):
14269 * nt.c (open_output_file):
14270 * nt.c (rva_to_section):
14271 * nt.c (mswindows_executable_type):
14272 Move all memory-mapped-file routines here (some were in unexnt.c,
14273 which is bad because they are used by process-nt.c, and unexnt
14274 won't be around when portable dumping). Synched the above routines
14278 Removed ifdef'd out bogus code.
14279 Fixed some prototypes.
14281 * nt.h (file_data):
14282 * nt.h (OFFSET_TO_RVA):
14283 * nt.h (RVA_TO_OFFSET):
14284 * nt.h (RVA_TO_PTR):
14285 Moved the memory-mapped-file structures, macros and prototypes
14286 here, to parallel nt.c. ntheap.h should really be removed
14287 entirely, and it's a non-portable-dumper specific file.
14289 * ntheap.h (round_to_next):
14290 Moved the memory-mapped-file structures, macros and prototypes
14293 * ntproc.c (compare_env):
14294 Moved rva_to_section and mswindows_executable_type to nt.c.
14295 Moved compare_env to process-nt.c.
14296 ntproc.c will die, one day.
14298 * ntproc.c (sys_spawnve):
14299 Account for win32_ -> mswindows_.
14302 * process-nt.c (struct nt_process_data):
14303 * process-nt.c (ensure_console_window_exists):
14304 * process-nt.c (compare_env):
14305 * process-nt.c (nt_create_process):
14306 * process-nt.c (nt_kill_process_by_pid):
14307 * process-nt.c (syms_of_process_nt):
14308 * process-nt.c (vars_of_process_nt):
14309 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14310 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14311 changes). Eliminate our old `nt-quote-process-args' mechanism.
14312 Synch up nt_create_process with FSF 20.6 sys_spawnve.
14313 Move compare_env here from ntproc.c.
14315 * process.c (Fprocess_send_region):
14316 Takes an optional fourth argument, BUFFER, which should fix some
14317 problems with call-process.
14320 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14323 Move ICC_BAR_CLASSES to syscommctrl.h.
14324 Add preliminary macros for MSWindows/Mule. More to come.
14327 * unexnt.c (unexec):
14328 open_output_file moved to nt.c.
14331 2000-05-05 Andy Piper <andy@xemacs.org>
14333 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14334 instance from the frame cache also since GC may catch up too late
14335 to make frame deletion sane.
14337 2000-05-04 Andy Piper <andy@xemacs.org>
14339 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14340 (x_finalize_image_instance): ungcpro on deletion.
14342 * glyphs.c (image_instantiator_format_create): give pointers a
14343 query geometry method so that the geometry is at least set.
14345 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14346 initialize layouts if using widgets.
14348 2000-05-03 Andy Piper <andy@xemacs.org>
14350 * nt.c: remove bogus reference to sysmmsystem.h
14352 * gui-x.c (popup_selection_callback): fix no selection abort.
14354 2000-05-02 Andy Piper <andy@xemacs.org>
14356 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14357 (mswindows_widget_instantiate): ditto.
14359 * glyphs-widget.c (initialize_widget_image_instance): initialize
14360 children correctly.
14361 (widget_instantiate): cope with children and items in the same
14364 * glyphs.c (mark_image_instance): cope with children as a first
14366 (image_instance_equal): ditto.
14367 (image_instance_hash): ditto.
14368 (image_instance_changed): ditto.
14370 2000-04-30 Andy Piper <andy@xemacs.org>
14372 * glyphs.c (subwindow_query_geometry): new function. Return some
14374 (subwindow_instantiate): don't assign dimensions if none have been
14376 (image_instantiator_format_create): add subwindow_query_geometry.
14377 (print_image_instance): cope with layouts as widgets.
14379 2000-04-29 Andy Piper <andy@xemacs.org>
14381 * frame.c (delete_frame_internal): call
14382 free_frame_subwindow_instance_cache so that all subwindows are
14383 finalized before their parent.
14384 (mark_frame): remove subwindow_cachels.
14385 (Fmake_frame): remove subwindow_cachel manipulation.
14386 (allocate_frame_core): subwindow_instance_cache is a weak list.
14387 (delete_frame_internal): set subwindow_instance_cache to nil.
14389 * glyphs-msw.c (mswindows_finalize_image_instance): make double
14391 (mswindows_finalize_image_instance): use the device
14392 not the domain as the domain may have died already.
14394 * glyphs-x.c (x_finalize_image_instance): ditto.
14395 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14398 * redisplay-output.c (redisplay_unmap_subwindows): update for
14399 subwindow instance cache as a weak list.
14400 (redisplay_unmap_subwindows_maybe): ditto.
14401 (redisplay_unmap_subwindows_except_us): ditto.
14403 * glyphs.c (unmap_subwindow): error checking will check the domain
14404 so don't deal with it here. Don't use cachels anymore.
14405 (map_subwindow): ditto.
14406 (update_subwindow_cachel_data): remove old accessor names.
14407 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14408 (Fresize_subwindow): don't update cachel.
14409 (mark_subwindow_cachels):
14410 (update_subwindow_cachel_data):
14411 (add_subwindow_cachel):
14412 (get_subwindow_cachel_index):
14413 (update_subwindow_cachel):
14414 (reset_subwindow_cachels):
14415 (mark_subwindow_cachels_as_not_updated): deleted.
14416 (cache_subwindow_instance_in_frame_maybe): new function. Add a
14417 subwindow instance to the frame cache.
14418 (find_matching_subwindow): update for subwindow instance cache as
14420 (update_widget_instances): ditto.
14421 (image_instance_type_to_mask):inlined.
14422 (free_frame_subwindow_instance_cache): new function. finalize all
14423 subwindows that are instantiated.
14425 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14426 of cachel information.
14427 (IMAGE_INSTANCE_DISPLAY_X):
14428 (IMAGE_INSTANCE_DISPLAY_Y):
14429 (IMAGE_INSTANCE_DISPLAY_WIDTH):
14430 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14431 (XIMAGE_INSTANCE_DISPLAY_X):
14432 (XIMAGE_INSTANCE_DISPLAY_Y):
14433 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14434 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14435 remove subwindow_cachel structure and function references.
14436 (image_instance_type_to_mask): inline from glyphs.c
14438 * redisplay.c (redisplay_frame): remove subwindow_cachel
14441 * frame.h (struct frame): remove subwindow_cachels.
14442 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14444 * frameslots.h: add subwindow_instance_cache.
14446 * window.c (replace_window): check subwindow cache of replacement.
14447 (window_unmap_subwindows_cache_mapper):
14448 (window_unmap_subwindows): new functions. Unmap all subwindows
14449 cached on this window.
14450 (mark_window_as_deleted): unmap all subwindows.
14452 2000-04-27 Andy Piper <andy@xemacs.org>
14454 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14456 * glyphs-widget.c (widget_layout): return something.
14457 (layout_layout): return something. Fail if not initialized.
14458 (layout_query_geometry): ditto.
14459 (image_instantiator_native_layout): new function. Initialized the
14460 native layout type.
14461 (widget_instantiate): don't do layout stuff here.
14463 * glyphs.c (instantiate_image_instantiator): reorded calling or
14464 instantiate and post_instantiate with layout in between.
14465 (image_instance_layout): be more selective about deciding whether
14466 the layout has been done or not.
14468 * glyphs.h (struct image_instantiator_methods): return a value
14469 from layout_method.
14471 2000-04-26 Andy Piper <andy@xemacs.org>
14473 * glyphs.c (allocate_image_instance): make initial width and
14474 height unspecified. Set initialized to 0.
14476 * syscommctrl.h new file. Encapsulates commctrl.h.
14478 * syswindows.h new file. Encapsulates windows.h.
14480 * ntplay.c: use new syswindows.h and syscommctrl.h header.
14482 * console-msw.h: ditto.
14484 * redisplay-tty.c (tty_output_display_block): remove layout references.
14486 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14487 window handle rather than just the frame.
14489 * glyphs.c (mark_image_instance): remove layout references.
14490 (print_image_instance): ditto.
14491 (image_instance_equal): ditto.
14492 (image_instance_hash): ditto.
14493 (decode_image_instance_type): ditto.
14494 (encode_image_instance_type): ditto.
14495 (image_instantiate): ditto.
14496 (allocate_glyph): ditto.
14497 (Fimage_instance_height): ditto.
14498 (Fimage_instance_width): ditto.
14499 (update_subwindow): ditto.
14501 * redisplay-x.c (x_output_display_block): recode for layouts as
14504 * redisplay-output.c (redisplay_output_layout): recode for layouts
14506 (compare_runes): remove layout references.
14508 * redisplay-msw.c (mswindows_output_display_block): recode for
14509 layouts as widgets.
14511 * glyphs-widget.c (image_instantiator_layout): remove
14512 layout_possible_dest_types.
14513 (layout_possible_dest_types): deleted.
14515 * glyphs.h (image_instance_type): remove layout references.
14516 (struct Lisp_Image_Instance): ditto. Add initialized flag.
14517 (IMAGE_INSTANCE_INITIALIZED): new accessor.
14518 (XIMAGE_INSTANCE_INITIALIZED): ditto.
14520 2000-04-25 Andy Piper <andy@xemacs.org>
14522 * glyphs-widget.c (image_instantiator_buttons):
14523 (image_instantiator_edit_fields):
14524 (image_instantiator_combo_box):
14525 (image_instantiator_scrollbar):
14526 (image_instantiator_progress_guage):
14527 (image_instantiator_tree_view):
14528 (image_instantiator_tab_control):
14529 (image_instantiator_labels):
14530 (image_instantiator_layout): call default post_instantiate method.
14531 (widget_post_instantiate): new function. Simply lays out the
14534 * glyphs.h (struct image_instantiator_methods): add
14535 post_instantiate method.
14537 * glyphs.c (instantiate_image_instantiator): add post_instantiate
14540 2000-04-23 Andy Piper <andy@xemacs.org>
14542 * glyphs.h (struct image_instantiator_methods): add
14543 decode_domain_method.
14544 (struct Lisp_Image_Instance): remove subwindow frame - it can be
14545 derived from the domain.
14546 (IMAGE_INSTANCE_FRAME): new accessor.
14547 (XIMAGE_INSTANCE_FRAME): ditto.
14549 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14550 instead of _SUBWINDOW_FRAME.
14551 (finalize_image_instance): ditto.
14552 (Fimage_instance_foreground): ditto.
14553 (Fimage_instance_background): ditto.
14554 (image_instantiate): ditto.
14555 (update_subwindow_cachel): ditto.
14556 (update_subwindow): ditto.
14557 (unmap_subwindow): ditto.
14558 (map_subwindow): ditto
14559 (subwindow_instantiate): ditto.
14560 * glyphs-msw.c (mswindows_update_widget): ditto.
14561 (mswindows_progress_gauge_instantiate): ditto.
14562 (mswindows_tab_control_update): ditto.
14563 * glyphs-x.c (x_update_widget): ditto.
14564 (x_widget_instantiate): ditto.
14565 (x_tab_control_instantiate): ditto.
14566 (x_tab_control_update): ditto.
14567 * event-msw.c (mswindows_wnd_proc): ditto
14569 * glyphs-widget.c (image_instantiator_layout): use
14570 subwindow_decode_domain.
14571 (image_instantiator_buttons): ditto.
14572 (image_instantiator_edit_fields): ditto.
14573 (image_instantiator_combo_box): ditto.
14574 (image_instantiator_scrollbar): ditto.
14575 (image_instantiator_progress_guage): ditto.
14576 (image_instantiator_tree_view): ditto.
14577 (image_instantiator_tab_control): ditto.
14578 (image_instantiator_labels): ditto.
14579 (image_instantiator_layout): ditto.
14581 * glyphs.c: add instance error checking to many functions.
14582 (instantiate_image_instantiator): decode device from cache_domain.
14583 (image_instantiate): partially rewrite by using
14584 decode_image_instantiator_domain to determine what domain the
14585 instance needs to be cached in.
14586 (decode_image_instantiator_domain): new function. Determine what
14587 domain the image needs to be cached in.
14588 (check_window_subwindow_cache): new error checking function.
14589 (check_instance_cache_mapper): ditto.
14590 (check_image_instance_structure): ditto.
14591 (subwindow_decode_domain): new function. Encodes a window as a
14592 subwindow's cache domain.
14593 (image_instantiator_format_create): use it for text and
14596 2000-04-21 Andy Piper <andy@xemacs.org>
14598 * glyphs.c (image_instance_device): new function.
14599 (image_instance_frame): new function.
14600 (image_instance_window): new function.
14601 (image_instance_live_p): new function.
14603 * window.c (mark_window_as_deleted): reset the subwindow_instance_
14606 * glyphs.h (struct Lisp_Image_Instance): device->domain.
14607 (IMAGE_INSTANCE_DOMAIN): new accessor.
14608 (XIMAGE_INSTANCE_DOMAIN): ditto.
14610 * glyphs-x.c (x_finalize_image_instance): device->domain.
14612 * glyphs-msw.c (init_image_instance_geometry): device->domain.
14613 (mswindows_finalize_image_instance): ditto.
14615 * glyphs-eimage.c (jpeg_instantiate): device->domain.
14616 (gif_instantiate): ditto.
14617 (png_instantiate): ditto.
14618 (tiff_instantiate): ditto.
14620 * glyphs.c (instantiate_image_instantiator): use domain rather
14622 (mark_image_instance): device -> domain.
14623 (print_image_instance): ditto.
14624 (finalize_image_instance): ditto.
14625 (image_instance_equal): ditto.
14626 (allocate_image_instance): ditto.
14627 (Fcolorize_image_instance): ditto.
14628 (query_string_geometry): ditto.
14629 (image_instantiate): ditto
14630 (query_string_font): ditto.
14631 (image_instantiate): ditto.
14632 (update_subwindow): ditto.
14633 (unmap_subwindow): ditto.
14634 (map_subwindow): ditto.
14635 (subwindow_instantiate): ditto.
14637 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14638 (DOMAIN_FRAME): ditto.
14639 (DOMAIN_WINDOW): ditto.
14640 (DOMAIN_LIVE_P): ditto.
14641 (XDOMAIN_DEVICE): ditto.
14642 (XDOMAIN_FRAME): ditto.
14643 (XDOMAIN_WINDOW): ditto.
14645 * specifier.c (Fvalid_specifier_domain_p): add image instances as
14646 a valid specifier domain.
14648 2000-04-19 Andy Piper <andy@xemacs.org>
14650 * glyphs-widget.c (syms_of_glyphs_widget): remove
14651 widget-callback-current-channel.
14652 (vars_of_glyphs_widget): ditto.
14655 * gui.c (get_gui_callback): revert to previous behaviour.
14657 2000-04-18 Andy Piper <andy@xemacs.org>
14659 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14660 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14661 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14663 * glyphs.c (image_instance_equal): add margin_width.
14664 (image_instance_hash): ditto.
14666 * glyphs-widget.c (widget_instantiate): deal with margin-width.
14667 (layout_query_geometry): ditto.
14668 (layout_layout): ditto.
14669 (syms_of_glyphs_widget): add margin-width.
14670 (image_instantiator_layout): allow margin-width.
14672 * glyphs.c (update_widget_instances): make a normal function.
14673 (syms_of_glyphs): remove Qupdate_widget_instances.
14676 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14677 so that we don't corrupt ideas about the last event or
14678 command. Remove widget-callback-current-channel fiddling.
14679 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14681 2000-05-01 Martin Buchholz <martin@xemacs.org>
14683 * XEmacs 21.2.33 is released.
14685 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
14687 * make-src-depend: Allow dots in header file name.
14689 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
14691 * mule-charset.h (struct charset_lookup): Add
14692 next_allocated_1_byte_leading_byte and
14693 next_allocated_2_byte_leading_byte.
14694 * mule-charset.c: Move above two variables so that those values
14697 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
14699 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14700 when string length is zero.
14701 (find_charsets_in_emchar_string): Ditto.
14703 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
14705 * lisp.h: extern Qdialog and Qmenubar.
14707 * gui-x.c: added events.h.
14708 also fixed typo which made the file uncompilable.
14710 * general.c: Added Qmenubar and Qdialog
14712 2000-04-28 Ben Wing <ben@xemacs.org>
14714 * frame-msw.c (mswindows_init_frame_1):
14715 * frame-msw.c (mswindows_mark_frame):
14716 * event-msw.c (mswindows_enqueue_dispatch_event):
14718 * console-msw.h (struct mswindows_frame):
14719 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14720 there are now three hash tables for callbacks.
14721 mswindows_enqueue_dispatch_event is no longer static.
14723 * dialog-x.c (maybe_run_dbox_text_callback):
14724 * dialog-x.c (dbox_descriptor_to_widget_value):
14725 switch to new cons3 form for callbacks.
14727 * glyphs-msw.c (mswindows_register_gui_item):
14728 * glyphs-msw.c (mswindows_widget_instantiate):
14729 * glyphs-msw.c (add_tree_item):
14730 * glyphs-msw.c (add_tab_item):
14731 new image instance parameter, so it can be passed to callback-ex.
14732 respect :callback-ex as well as :callback.
14734 * glyphs-widget.c (VALID_GUI_KEYWORDS):
14737 * glyphs.c (print_image_instance):
14738 prettify, e.g. now prints widget type.
14741 certain funs have new image instance parameter.
14744 * gui.c (get_gui_callback):
14745 * gui.c (gui_item_add_keyval_pair):
14746 * gui.c (gui_item_init):
14747 * gui.c (gui_add_item_keywords_to_plist):
14748 * gui.c (mark_gui_item):
14749 * gui.c (gui_item_hash):
14750 * gui.c (gui_item_equal):
14751 * gui.c (copy_gui_item):
14752 * gui.c (syms_of_gui):
14753 recognize callback-ex in a number of places.
14754 also, fix the annoying "can't get out of yes-no dialog" bug.
14757 * gui.h (struct Lisp_Gui_Item):
14758 recognize callback-ex in a number of places.
14760 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14761 new parameter in button_item_to_widget_value.
14763 * glyphs-x.c (x_update_widget):
14764 * glyphs-x.c (x_button_instantiate):
14765 * glyphs-x.c (x_button_update):
14766 * glyphs-x.c (x_progress_gauge_instantiate):
14767 * glyphs-x.c (x_edit_field_instantiate):
14768 * glyphs-x.c (x_combo_box_instantiate):
14769 * glyphs-x.c (x_tab_control_instantiate):
14770 * glyphs-x.c (x_label_instantiate):
14771 new image instance parameter in various places.
14774 * event-Xt.c (enqueue_Xt_dispatch_event):
14775 this fun gets exported.
14778 * gui-msw.c (mswindows_handle_gui_wm_command):
14779 handle both :callback and :callback-ex, and generate our own
14780 event because it's one of the callback-ex arguments.
14783 * gui-x.c (popup_selection_callback):
14784 handle both :callback and :callback-ex, and generate our own
14785 event because it's one of the callback-ex arguments.
14786 * gui-x.c (button_item_to_widget_value):
14787 * gui-x.c (gui_items_to_widget_values_1):
14788 * gui-x.c (gui_item_children_to_widget_values):
14789 * gui-x.c (gui_items_to_widget_values):
14790 new image instance parameter in various places.
14792 * fns.c (Freplace_list):
14793 fix small typo in doc string.
14796 declare enqueue_Xt_dispatch_event.
14798 2000-04-28 Ben Wing <ben@xemacs.org>
14801 * buffer.c (Frecord_buffer):
14802 * buffer.c (syms_of_buffer):
14803 delete record-buffer-hook.
14806 * fns.c (Freplace_list):
14807 * fns.c (syms_of_fns):
14808 new primitive replace-list.
14811 slot for old buffer-alist.
14814 exfun replace-list.
14817 * redisplay.c (redisplay_frame):
14818 * redisplay.c (syms_of_redisplay):
14819 * redisplay.c (vars_of_redisplay):
14820 new hook buffer-list-changed-hook.
14823 2000-04-27 Ben Wing <ben@xemacs.org>
14825 * extents.h: extern in_modeline_generation.
14827 * redisplay.c (generate_formatted_string_db): set
14828 in_modeline_generation.
14830 * extents.c (extent_changed_for_redisplay): don't mark redisplay
14831 flags if in modeline generation. otherwise frame-modified-tick
14832 is ticked far too often.
14833 Declare in_modeline_generation.
14835 2000-04-26 Ben Wing <ben@xemacs.org>
14837 * emacs.c (vars_of_emacs): document quick-build "error-checking"
14839 (vars_of_emacs): add quick-build as an error-checking option.
14840 A bit kludgy, but there doesn't seem much point in creating
14841 a real var for this.
14843 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14845 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
14847 * redisplay.h (struct display_line): Add a new variable,
14850 * redisplay.c (create_text_block): Set dl->line_continuation if
14851 the line continues.
14852 (create_string_text_block): Ditto.
14853 (regenerate_window_incrementally): Use line_continuation instead
14854 of searching continuation glyph.
14855 (add_margin_runes): Call add_glyph_rune.
14856 (add_glyph_rune): Handle margin glyph.
14858 2000-04-20 Martin Buchholz <martin@xemacs.org>
14860 * filelock.c (fill_in_lock_file_name):
14862 Check for IS_ANY_SEP instead of '/'.
14864 Avoid generating gratuitous garbage. Call user_login_name() directly.
14865 Never check errno without first seeing that system call failed.
14866 (unlock_file): Add GCPRO.
14867 (Flock_buffer): Fix docstring.
14868 (Ffile_locked_p): Fix docstring. Add GCPRO.
14870 2000-04-19 Martin Buchholz <martin@xemacs.org>
14872 * sysdep.c (get_pty_max_bytes):
14873 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14874 strings longer than 252 bytes.
14876 * md5.c: Unconditionally include ANSI header <limits.h>
14878 * glyphs-x.c (convert_EImage_to_XImage):
14879 * lisp-union.h (union Lisp_Object):
14880 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14882 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
14884 * filelock.c (current_lock_owner): Remove unused variable o, p.
14886 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
14888 * callint.c: Remove multiply defined symbol Qlet
14889 (syms_of_callint): ditto.
14891 2000-04-14 Andy Piper <andy@xemacs.org>
14893 * general.c (syms_of_general): add last-command, this-command, let
14896 * lisp.h: declare various symbols.
14898 * glyphs.h: declare Qwidget_callback_current_channel;
14900 * glyphs-widget.c (syms_of_glyphs_widget): add
14901 Qgui_callback_current_channel.
14902 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14904 * gui-msw.c (mswindows_handle_gui_wm_command): bind
14905 widget-callback-current-channel when invoking the interactive
14906 arg. Also bind last-command and next-command when invoking the
14908 * gui-x.c (popup_selection_callback): ditto.
14910 * gui.c (get_gui_callback): massage args so that we are always
14911 calling eval. This allows us to add our own variable bindings
14914 * glyphs-x.c (x_button_instantiate): use
14915 gui_items_to_widget_values since this is GC safe.
14916 (x_progress_gauge_instantiate): ditto.
14917 (x_edit_field_instantiate): ditto.
14918 (x_label_instantiate): ditto.
14920 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14921 (emacs_Xt_event_widget_focus_out): new function
14922 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14924 (emacs_Xt_event_add_widget_actions): new function. add focus
14925 functions as actions.
14926 (init_event_Xt_late): use it.
14928 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
14930 * event-stream.c (Fdispatch_event): Doc fix.
14932 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
14934 * postgresql.c: Remove all references to PQsetenv*.
14936 * postgresql.h: Remove references to PGsetenvHandler object.
14937 * lrecord.h (lrecord_type): Ditto.
14939 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14941 * glyphs-msw.h (struct mswindows_image_instance_data): Added
14942 real_heigh and real_width members, and accessor macros for these.
14944 * glyphs-msw.c (init_image_instance_geometry): New function.
14945 (init_image_instance_from_dibitmap): Use it.
14946 (mswindows_resource_instantiate): Use it.
14947 (init_image_instance_from_xbm_inline): Use it.
14948 (mswindows_initialize_image_instance_mask): Use real bitmap
14950 (mswindows_create_resized_bitmap): Ditto.
14951 (mswindows_create_resized_mask): Ditto.
14953 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14954 and bitmap to their surface size.
14956 2000-04-11 Jan Vroonhof <jan@xemacs.org>
14958 * process-unix.c (unix_send_process): Guard against process MIA
14959 after Faccept_process_output.
14961 2000-04-11 Ben Wing <ben@xemacs.org>
14963 * eval.c (unbind_to_hairy): fix brokenness introduced by
14964 nanosecond speed improvements.
14966 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
14968 * sunplay.c (init_device): To play sounds correctly, the device
14969 apparently needs to be initialized at least once by XEmacs. Make
14972 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
14974 * redisplay.c (add_margin_runes): Add text image glyph
14977 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
14979 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14980 gcc is newer than 2.5.
14982 2000-04-06 Colin Rafferty <colin@xemacs.org>
14984 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14986 * fns.c (size_bit_vector):
14987 * alloc.c (size_vector):
14988 (make_vector_internal):
14989 (make_bit_vector_internal):
14990 (sweep_bit_vectors_1):
14991 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14993 2000-04-06 Andy Piper <andy@xemacs.org>
14995 * gmalloc.c (malloc): undo previous change.
15000 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
15002 * line-number.c (buffer_line_number): Revert to former version.
15004 2000-04-06 Andy Piper <andy@xemacs.org>
15006 * gmalloc.c (malloc): add error checking.
15011 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15012 button_item_to_widget_value arg.
15014 * glyphs-x.c (x_button_instantiate): add extra
15015 button_item_to_widget_value arg.
15016 (x_progress_gauge_instantiate): ditto.
15017 (x_edit_field_instantiate): ditto.
15018 (x_label_instantiate): ditto.
15020 * gui-x.c (gui_items_to_widget_values_1): add extra
15021 button_item_to_widget_value arg.
15022 (button_item_to_widget_value): add extra menu_item_p arg.
15024 * gui-x.h: change signature of button_item_to_widget_value.
15026 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15027 button_item_to_widget_value arg.
15029 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
15031 * buffer.h (struct buffer): auto_save_modified should be long.
15033 2000-04-05 Andy Piper <andy@xemacs.org>
15035 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15037 (button_query_geometry): give a little more room so that athena
15040 2000-04-05 Andy Piper <andy@xemacs.org>
15042 * faces.c (complex_vars_of_faces): The widget face should inherit
15043 the font of the gui-element face.
15045 2000-04-04 Andy Piper <andy@xemacs.org>
15047 * glyphs-x.c (x_button_update): new function. unconditionally
15048 update a button's state when the instance is dirty.
15049 (image_instantiator_format_create_glyphs_x): add x_button_update.
15050 (x_widget_instantiate): remove old resize cruft.
15052 2000-04-02 Andy Piper <andy@xemacs.org>
15054 * frame.c (change_frame_size_1): The introduction of gutters means
15055 that we need to allow 0 as a potential frame dimension.
15057 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
15059 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15060 image glyph if allow_cursor.
15061 (add_hscroll_rune): Don't allow cursor to border glyph.
15062 (create_text_block): Ditto.
15064 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15065 text not in buffer.
15066 (redisplay_output_layout): Call ensure_face_cachel_complete for
15070 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
15072 * redisplay.c (add_glyph_rune): Adding text image as text runes.
15074 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15077 * redisplay-tty.c (tty_output_display_block): Delete the routine
15078 for text image glyph
15079 * redisplay-x.c (x_output_display_block): ditto
15080 * redisplay-msw.c (mswindows_output_display_block): ditto
15082 2000-02-02 Mike Alexander <mta@arbortext.com>
15084 Note: Some of these were committed by accident as part of other
15087 * regex.c (regex_compile): Avoid compiler warnings.
15089 * ntproc.c (sys_spawnve): Avoid compiler warnings.
15091 * nt.h: Declare term_ntproc correctly.
15093 * nt.c: Remove incorrect declaration of get_home_directory which
15094 is declared correctly in lisp.h.
15096 * keymap.c (get_keyelt): Avoid compiler warnings.
15097 (raw_lookup_key_mapper): Avoid compiler warnings.
15099 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15101 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15103 * filemode.c (mode_string): Avoid compiler warnings.
15105 * file-coding.c (Fcoding_system_aliasee): Add return statement to
15108 * events-mod.h: Undef some things that winuser.h defines differently.
15110 * data.c (Faset): Avoid compiler warnings.
15112 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15114 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
15116 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15117 Fall through to simple beep on error.
15118 Replace "extern" by real header file.
15120 * linuxplay.c: Use nativesound.h
15121 (play_sound_data): Return error code. Be less verbose on error.
15123 * sunplay.c: Use nativesound.h
15124 (play_sound_data): Return error code. Be less verbose on error.
15126 * ntplay.c: Use nativesound.h
15127 (play_sound_data): Return fake error code
15129 * sgiplay.c: Use nativesound.h
15130 (play_sound_data): Return error code
15132 * hpplay.c: Use nativesound.h, partially implement
15133 new error code. Break compilation until finished.
15134 (play_sound_data): error code.
15136 * nativesound.h (play_sound_file):
15137 (play_sound_data): Prototype in new header.
15139 2000-03-31 Andy Piper <andy@xemacs.org>
15141 * glyphs-widget.c: (button_query_geometry): new function. Adjust
15142 for toggle and radio buttons.
15143 (image_instantiator_buttons): use it.
15145 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
15147 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15148 (x_update_horizontal_scrollbar_callback): Return if no mirror was
15149 found. Scrollbar event probably belonged to some old config.
15151 2000-03-31 Andy Piper <andy@xemacs.org>
15153 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15155 (initialize_widget_image_instance): default layout to
15156 LAYOUT_HORIZONTAL rather than 0.
15157 (widget_instantiate): reverse the item list at the end rather than
15159 (layout_layout): re-code for the border text at the front of the
15160 item list rather than at the end.
15161 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15162 provided by the user.
15163 (widget_query_geometry): comment.
15165 2000-03-30 Andy Piper <andy@xemacs.org>
15167 * glyphs-widget.c (image_instantiator_layout): allow standard
15168 widget keywords in layouts.
15170 * gutter.c (output_gutter): cope with nil gutter contents.
15172 * frame.c (Fset_frame_properties): add gutter docs.
15174 2000-03-29 Andy Piper <andy@xemacs.org>
15176 * toolbar-msw.c (TBSTYLE_FLAT): add.
15177 (mswindows_output_toolbar): minor fiddling.
15179 2000-03-29 Andy Piper <andy@xemacs.org>
15181 * gutter.c (output_gutter): force gutter size recalculation if
15182 what we are trying to display won't fit.
15183 (update_gutter_geometry): new function. A per-gutter version of
15184 update_frame_gutter_geometry.
15185 (update_frame_gutter_geometry): use it.
15186 (redraw_exposed_gutter): add extra debugging output.
15188 2000-03-28 Mike Alexander <mta@arbortext.com>
15190 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15191 (pdump_file_unmap): Implement it on Windows
15192 (pdump_file_get): Save alocated handles for pdump_file_unmap
15194 2000-03-28 Andy Piper <andy@xemacs.org>
15196 * gui.c (get_gui_callback): treat Quit specially.
15198 2000-03-27 Andy Piper <andy@xemacs.org>
15200 * glyphs.c (image_instantiate): be careful to check in the same
15203 2000-03-27 Didier Verna <didier@xemacs.org>
15205 * config.h.in: define the proper SMART_INCLUDE macro.
15206 handle renaming of `foo_h_path' to `foo_h_file'.
15208 * database.c: ditto.
15212 * linuxplay.c: ditto.
15214 * terminfo.c: ditto.
15216 * tooltalk.h: ditto.
15218 2000-03-27 Andy Piper <andy@xemacs.org>
15220 * glyphs-msw.c (mswindows_update_widget): make sure the widget
15221 gets updated whenever the face might have changed.
15223 2000-03-26 Mike Alexander <mta@arbortext.com>
15225 * dumper.c (pdump_resource_free): Fix the comment.
15227 2000-03-21 Olivier Galibert <galibert@pobox.com>
15229 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15231 2000-03-22 Mike Alexander <mta@arbortext.com>
15233 * dumper.c: Include Windows headers on Windows
15234 (pdump_resource_free): Add a body to the function
15235 (pdump_load): exe_name -> exe_path and add some comments.
15237 2000-03-25 Mike Alexander <mta@arbortext.com>
15239 * gui.c (copy_gui_item_tree): Return a value in all cases
15241 2000-03-21 Didier Verna <didier@xemacs.org>
15243 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15245 (SMART_INCLUDE): new macro.
15246 (POSTGRES_INCLUDE): new macro to include postgresql headers from
15247 the proper location.
15249 * postgresql.c: use it.
15253 2000-03-24 Andy Piper <andy@xemacs.org>
15255 * gutter.c (redraw_exposed_gutters): must be "in display" when we
15258 2000-03-24 Andy Piper <andy@xemacs.org>
15260 * redisplay-output.c (compare_runes): use image_instance_changed
15261 to detect changes. Do not depend on glyphs_changed, only depend on
15263 (redisplay_output_layout): add debug messages.
15264 (compare_runes): ditto.
15266 * glyphs.h: declare new functions.
15267 (struct Lisp_Image_Instance): remove percent and associated
15270 * gui.h: declare new copying functions.
15272 * gui.c (copy_gui_item_tree): new function.
15273 (copy_gui_item): new function.
15274 (gui_item_id_hash): revert to standard hash.
15275 (gui_item_hash): ditto.
15276 (gui_item_hash_internal): deleted.
15277 (mark_gui_item): mark value.
15278 (gui_item_add_keyval_pair): add value.
15279 (gui_item_init): ditto.
15280 (gui_add_item_keywords_to_plist): ditto.
15281 (gui_item_equal): ditto.
15282 (syms_of_gui): add Q_value.
15284 * glyphs-x.c (x_progress_gauge_update): use pending items and
15285 value for setting the state.
15286 (x_update_widget): don't set items from pending here.
15288 * glyphs-widget.c (update_widget): update items here.
15289 (progress_gauge_set_property): use items for storing value. Put
15290 new value in pending items.
15292 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15293 items for new value. Convert percent -> value.
15294 (mswindows_tab_control_update): don't update items here.
15296 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15297 (update_subwindow): ditto.
15298 (image_instance_changed): new function. Compare hash values and
15299 past and present widget items.
15300 (image_instantiate): We more careful about where we instantiate
15302 (image_instantiate): add error checking.
15304 * gutter.c (syms_of_gutter): use -hook.
15306 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
15308 * console-tty.c (Fset_console_tty_input_coding_system): Use
15310 (Fset_console_tty_output_coding_system): Use Qterminal.
15311 (tty_init_console): Use Qkeyboard and Qterminal.
15313 2000-03-21 Ben Wing <ben@xemacs.org>
15315 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15316 From Mike Alexander <mta@arbortext.com>.
15318 2000-03-21 Ben Wing <ben@xemacs.org>
15320 * event-msw.c (mswindows_need_event): Horrible kludge to fix
15321 process brokenness. Proper implementation to come.
15323 Rename call-process-internal to old-call-process-internal.
15324 New impl. in process.el.
15326 2000-03-21 Martin Buchholz <martin@xemacs.org>
15328 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15330 2000-03-20 Andy Piper <andy@xemacs.org>
15332 * glyphs.c (full_list_hash): make hashes of the same elements in
15333 different orders return different values.
15335 2000-03-20 Martin Buchholz <martin@xemacs.org>
15337 * XEmacs 21.2.32 is released.
15339 2000-03-20 Martin Buchholz <martin@xemacs.org>
15341 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15342 (DFC_MALLOC_USE_CONVERTED_DATA):
15343 Add aliasing-safe casts to allow use with char* or unsigned char*
15346 * eldap.c (Fldap_open):
15347 (Fldap_search_basic):
15350 Make C++-compilable.
15351 Make sure GCPRO'ed variables are initialized.
15352 Use temp variables to avoid repeated calls to Flength.
15354 2000-03-16 Martin Buchholz <martin@xemacs.org>
15357 Make sure PATH_MAX is always defined.
15358 Include limits.h for PATH_MAX.
15359 Deprecate use of MAXPATHLEN.
15361 2000-03-10 Martin Buchholz <martin@xemacs.org>
15363 * emacs.c: Add reinit_vars_of_fileio.
15364 * symsinit.h: Add reinit_vars_of_fileio.
15365 * fileio.c (reinit_vars_of_fileio): New.
15366 * fileio.c (Fmake_temp_name):
15367 Initialize temp_name random number from microseconds to make
15368 collisions even less likely. Initialize always at process startup
15369 time. (make-temp-name) used to return the same file name twice in
15371 Random stylistic fiddling.
15374 2000-03-20 Andy Piper <andy@xemacs.org>
15376 * glyphs.c (image_instantiate): allow text glyphs to be
15377 instantiated in the minibuffer window.
15379 2000-03-19 Andy Piper <andy@xemacs.org>
15381 * glyphs.c (image_instance_hash): be careful about which items we
15384 * glyphs-widget.c (tab_control_set_property): record into pending
15385 items rather than the actual items.
15387 * glyphs-x.c (x_update_widget): use pending items to update with.
15389 * glyphs-msw.c (mswindows_tab_control_update): use pending items
15392 * glyphs.c (mark_image_instance): mark pending items.
15394 * window.c (Fset_window_configuration): record the buffer.
15395 (Fselect_window): totally revert previous change which breaks many
15398 2000-03-18 Andy Piper <andy@xemacs.org>
15400 * glyphs-msw.c (mswindows_tab_control_update): force selected
15403 * glyphs.c (image_instantiate): don't allow the minibuffer as a
15404 window domain cache, otherwise we get inconsistencies at
15405 startup. There is something fishy at startup which can lead to the
15406 minibuffer being the selected window when the gutter content is
15409 * gui.c (parse_gui_item_tree_list): add probably unnecessary
15411 (parse_gui_item_tree_children): ditto.
15412 (parse_gui_item_tree_item): ditto.
15414 * glyphs.c (Fupdate_widget_instances): return something.
15416 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
15418 * window.c (Fselect_window): Undo 2000-03-17 change.
15420 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
15422 * postgresql.c (Fpq_setenv): Remove this turkey when linking
15423 against v7.0 libraries. Insta-coredump city until the postgres
15426 2000-03-17 Andy Piper <andy@xemacs.org>
15428 * faces.c (complex_vars_of_faces): don't give the widget face an
15429 inherited background pixmap.
15431 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15434 * event-stream.c (Fdispatch_non_command_events): return something.
15436 * gutter.c (output_gutter): use widget face.
15437 (clear_gutter): ditto.
15439 * NEWS: adjust again.
15441 * window.c (Fselect_window): make sure this runs to completion to
15442 avoid oddities with Fset_window_configuration.
15443 (Fcurrent_window_configuration): in general do not save the
15444 minibuffer as the selected window.
15446 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15448 2000-03-16 Olivier Galibert <galibert@pobox.com>
15450 * emacs.c (Frunning_temacs_p): Revert previous patch.
15451 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15453 2000-03-16 Andy Piper <andy@xemacs.org>
15455 * glyphs-x.c (x_tab_control_update): if no widget values then
15458 * NEWS: update for new features.
15460 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15461 synthetic event to the native system.
15462 (reinit_vars_of_event_Xt): set force_event_pending to
15463 emacs_Xt_force_event_pending.
15465 * events.h (struct event_stream): add force_event_pending.
15467 * specifier.c (recompute_one_cached_specifier_in_window): add
15470 * redisplay.c (redisplay_frame): don't call
15471 update_frame_subwindows. Reset subwindow cachels when
15472 subwindows_changed, removing this was an optimization too far.
15474 * redisplay-output.c (compare_runes): reorganize so that we catch
15475 glyph changes when we want them. Set optimize_output when this
15476 would help layouts.
15477 (redisplay_output_layout): remove frame_really_changed, use
15478 optimize_output instead.
15480 * redisplay-msw.c (mswindows_output_display_block): reset
15481 optimize_output after outputting a glyph.
15482 * redisplay-x.c (x_output_display_block): ditto.
15483 * redisplay-tty.c (tty_output_display_block): ditto.
15485 * gutter.c: (specifier_vars_of_gutter): use new spec changed
15487 (gutter_specs_changed): do specific gutter positions.
15488 (top_gutter_specs_changed): new function. Only update the
15489 specified gutter specs.
15490 (bottom_gutter_specs_changed): ditto.
15491 (left_gutter_specs_changed): ditto.
15492 (right_gutter_specs_changed): ditto.
15494 * gui.c (gui_item_hash_internal): new function, does a real hash.
15495 (gui_item_id_hash): use it.
15496 (gui_item_hash): hash the eval'ed gui_item.
15498 * gui-x.c (popup_selection_callback): send an eval event to call
15499 Fupdate_widget_instances.
15501 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15502 to call Fupdate_widget_instances.
15504 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15505 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15507 * glyphs.c: (update_frame_subwindows): deleted.
15508 (Fupdate_widget_instances): new function for updating the dirty
15509 state of widgets that might have changed.
15510 (syms_of_glyphs): add Qupdate_widget_instances.
15511 (full_list_hash): hash a list completely.
15512 (image_instance_hash): use it for items and properties.
15514 * frame-msw.c (mswindows_size_frame_internal): remove unused
15517 * faces.h (struct face_cachel): fix comment.
15519 * event-stream.c (Fdispatch_non_command_events): new
15520 function. Process non-command events, forcing an event cycle
15522 (syms_of_event_stream): declare.
15523 (event_stream_force_event_pending): new function. Force an event
15524 on the native event queue so that an event cycle will occur next
15528 (struct ntpipe_shove_stream):
15529 (mswindows_enqueue_dispatch_event):
15530 (mswindows_dequeue_dispatch_event):
15531 (mswindows_cancel_dispatch_event):
15532 (mswindows_pump_outstanding_events):
15533 (mswindows_drain_windows_queue):
15534 (mswindows_handle_paint):
15535 (mswindows_wnd_proc):
15536 (mswindows_key_to_emacs_keysym):
15537 (get_process_input_waitable):
15538 (emacs_mswindows_delete_stream_pair): re-indent file.
15539 (mswindows_need_event): do not process further fds if the windows
15540 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15541 fixes the 100% cpu problem.
15542 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15544 2000-03-15 Olivier Galibert <galibert@pobox.com>
15550 * emacs.c: Moved dump file searching to dumper.c.
15551 (Frunning_temacs_p): Fixed.
15553 * alloc.c: Moved everything pdump-related to dumper.c. Removed
15554 last_lrecord_type_index_assigned.
15556 2000-02-20 Olivier Galibert <galibert@pobox.com>
15558 * symsinit.h: Added reinit parameter to init_console_stream
15561 * lisp.h: Added file parameter to pdump_load declaration.
15563 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15564 support. Added dump file searching.
15566 * config.h.in: Added EMACS_PROGNAME.
15568 * console-stream.c (init_console_stream): Fix reinitialisation
15569 when running from temacs.
15571 * alloc.c (pdump): Add id support.
15572 (pdump_load): Add file parameter and signature/id support.
15574 * Makefile.in.in: Add full pdump support.
15576 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
15578 * postgresql.c: Update documentation to reflect latest code
15580 (print_result): Show tuple counts in printed representation when
15582 (Fpq_put_nbytes): MULE-ize.
15583 (Fpq_get_line_async): Ditto.
15585 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
15587 * postgresql.c (Fpq_lo_import): Fix return value.
15588 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15590 2000-03-13 Ben Wing <ben@xemacs.org>
15592 * alloc.c (pdump_load):
15593 Fix compile warning under mswin.
15595 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
15597 * postgresql.c: Mule-ization, bug fixes.
15598 Use PG_CODING to encapsulate coding system name changes.
15599 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15600 (pg-coding-system): Create.
15602 (Fpq_conn_defaults): Mule-ize.
15603 (Fpq_connectdb): Mule-ize & bug fix.
15604 (Fpq_connect_start): Mule-ize.
15605 (Fpq_set_client_encoding): Mule-ize.
15606 (Fpq_finish): Document `DEAD' connection status.
15607 (Fpq_clear): Ditto.
15608 (Fpq_pgconn): Mule-ize.
15609 (Fpq_exec): Mule-ize & bug fix.
15610 (Fpq_send_query): Ditto.
15611 (Fpq_get_result): Ditto.
15612 (Fpq_res_status): Mule-ize.
15613 (Fpq_result_error_message): Mule-ize.
15614 (Fpq_ntuples): fix comments.
15615 (Fpq_fname): Mule-ize.
15616 (Fpq_fnumber): Mule-ize.
15617 (Fpq_ftype): fix comments.
15618 (Fpq_get_value): Mule-ize.
15619 (Fpq_cmd_status): Ditto.
15620 (Fpq_cmd_tuples): Ditto.
15621 (Fpq_oid_value): Ditto.
15622 (Fpq_notifies): Ditto.
15623 (Fpq_lo_import): Ditto.
15624 (Fpq_lo_export): Ditto.
15625 (Fpq_get_line): Ditto.
15626 (Fpq_put_line): Mule-ize and bug fix.
15627 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15629 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
15631 * postgresql.c (vars_of_postgresql): Mule-ize.
15632 (Fpq_conn_defaults): Ditto.
15634 2000-03-12 Ben Wing <ben@xemacs.org>
15636 * alloc.c (Fmake_byte_code):
15637 * alloc.c (debug_string_purity_print):
15638 * alloc.c (pdump_backtrace):
15639 * alloc.c (pdump_get_indirect_count):
15640 * alloc.c (pdump_register_sub):
15641 * alloc.c (pdump_register_object):
15642 * alloc.c (pdump_register_struct):
15643 * alloc.c (pdump_dump_data):
15644 * alloc.c (pdump_reloc_one):
15648 * console-msw.c (GetConsoleHwnd):
15649 * console-msw.c (msw_hide_console):
15650 * console-msw.c (msw_show_console):
15651 * console-msw.c (msw_ensure_console_buffered):
15652 * console-msw.c (msw_output_console_string):
15653 * console-msw.c (console_type_create_mswindows):
15655 a) Added functions to manipulate the console window for use with
15658 b) Added support for writing text to the console, which is now
15659 used under Windows when xemacs is not being run non-interactively,
15660 to write text that would otherwise be destined for stdout because
15661 under these circumstances, text written to stdout tends to
15662 disappear and not be seen.
15666 * event-Xt.c (x_event_to_emacs_event):
15667 * event-Xt.c (describe_event_window):
15668 * events-mod.h (XEMACS_MOD_CONTROL):
15670 * events.c (Fmake_event):
15671 * events.c (character_to_event):
15672 * events.c (event_to_character):
15673 * events.c (format_event_object):
15674 * events.c (Fevent_modifiers):
15676 * events.h (struct key_data):
15677 * events.h (struct button_data):
15678 * events.h (struct misc_user_data):
15679 * frame-x.c (Fcde_start_drag_internal):
15680 * frame-x.c (Foffix_start_drag_internal):
15681 * gpmevent.c (Freceive_gpm_event):
15683 * keymap.c (bucky_sym_to_bucky_bit):
15684 * keymap.c (control_meta_superify):
15685 * keymap.c (make_key_description):
15686 * keymap.c (keymap_lookup_directly):
15687 * keymap.c (create_bucky_submap):
15688 * keymap.c (keymap_store):
15689 * keymap.c (define_key_check_and_coerce_keysym):
15690 * keymap.c (define_key_parser):
15691 * keymap.c (define_key_alternate_name):
15692 * keymap.c (Fdefine_key):
15693 * keymap.c (raw_lookup_key_mapper):
15694 * keymap.c (struct map_keymap_unsorted_closure):
15695 * keymap.c (map_keymap_unsorted_mapper):
15696 * keymap.c (map_keymap_sort_predicate):
15697 * keymap.c (map_keymap_sorted):
15698 * keymap.c (accessible_keymaps_mapper_1):
15699 * keymap.c (where_is_recursive_mapper):
15700 * keymap.c (describe_map_mapper):
15701 * keymap.c (describe_map_sort_predicate):
15702 * keymap.c (describe_map):
15703 * keymap.c (complex_vars_of_keymap):
15704 And a number of other files, the key modifier preprocessor
15705 constants that xemacs uses have names that conflict with constants
15706 defined under MS Windows for other purposes, so they were renamed
15707 to begin with the prefix XEMACS_. The variables that hold such
15708 modifiers were changed to consistently be of type int to fix
15709 various compile warnings.
15711 * console.c (complex_vars_of_console):
15714 * device-msw.c (mswindows_finish_init_device):
15715 * device-msw.c (msw_get_workspace_coords):
15716 * device-msw.c (mswindows_device_system_metrics):
15717 and various other files, added support for a new
15718 device property called offset-workspace which returns the position
15719 of the upper left corner of the workspace area and goes along with
15720 the existing size-workspace property.
15723 * dialog-msw.c (push_bufbyte_string_as_unicode):
15724 * dialog-msw.c (mswindows_popup_dialog_box):
15725 Added support for XEmacs-style accelerator specifications in
15726 button text. Note: I didn't add support for this under X Windows,
15727 and somebody needs to do this.
15730 * dialog.c (Fpopup_dialog_box):
15731 Documented the support for accelerators that was just mentioned.
15733 editfns.c (get_home_directory): Changed behavior under Windows
15734 when HOME not defined; former behavior was irretrievably broken.
15737 * emacs.c (main_1):
15739 * minibuf.c (clear_echo_area_internal):
15740 * minibuf.c (echo_area_append):
15742 * print.c (std_handle_out_external):
15743 * print.c (std_handle_out_va):
15745 * print.c (write_string_to_stdio_stream):
15746 * print.c (output_string):
15747 * print.c (debug_print):
15748 * print.c (debug_backtrace):
15749 * print.c (debug_short_backtrace):
15750 Cleaned up the code that prints text to stdout so that this can be
15751 changed to output into a console window instead under MS Windows,
15752 as described above.
15755 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15756 * eval.c (internal_catch):
15757 * eval.c (unwind_to_catch):
15758 * eval.c (throw_or_bomb_out):
15759 * eval.c (condition_case_1):
15760 * eval.c (signal_1):
15761 * eval.c (check_error_state_sanity):
15762 * eval.c (call_with_suspended_errors_1):
15763 * eval.c (call_with_suspended_errors):
15764 * eval.c (reinit_vars_of_eval):
15765 Added code to catch throw loops and check for a pesky bug that may
15769 * event-msw.c (key_needs_default_processing_p):
15770 * event-msw.c (mswindows_wnd_proc):
15771 * event-msw.c (mswindows_modifier_state):
15772 * event-msw.c (emacs_mswindows_quit_p):
15773 * event-msw.c (vars_of_event_mswindows):
15774 a) Added support for using the alt key to select menu items as is
15775 standard under MS Windows. This is controlled using the variable
15776 menu-accelerator-enabled, just like under X Windows. There is an
15777 option on the options menu to turn this support on. I really
15778 think that it should be on by default under Windows, but I'm not
15779 going to make this change yet.
15781 b) Added support for dynamic display size changes under Windows.
15784 * event-stream.c (maybe_echo_keys):
15785 * event-stream.c (Fnext_event):
15786 * event-stream.c (command_builder_find_leaf):
15787 * event-stream.c (lookup_command_event):
15788 * event-stream.c (execute_command_event):
15789 * event-stream.c (pre_command_hook):
15790 * event-stream.c (post_command_hook):
15791 * event-stream.c (syms_of_event_stream):
15792 * event-stream.c (vars_of_event_stream):
15793 * event-stream.c (complex_vars_of_event_stream):
15794 * events.h (struct command_builder):
15796 a) Tried to clean up a little bit the horribly written x-specific
15797 accelerator code that crept into this file. I moved this code
15798 into menubar-x.c where it belongs. I also needed to move the
15799 command builder structure into the file events.h because it is
15800 accessed directly by this accelerator code. What I didn't do, but
15801 which should be done at some point, is to properly abstract this
15802 code using device methods instead of the kludgy way that it
15803 currently hooks into the event code.
15805 b) Added the lisp variables this-command-properties and
15806 last-command- properties, which should be used to synchronize two
15807 adjacent commands in preference to playing games with the variable
15808 this-command, which is typically what happens.
15810 c) Added some slightly nasty code to hook into the lisp support
15811 for shifted- motion-key selection. This is actually necessary for
15812 somewhat complicated reasons, which are described in
15813 simple.el. (NB: I think the proper thing would be to have the code
15814 that calls the pre and post command hooks also call out to generic
15815 lisp functions in simple.el, where all built-in stuff could be
15816 added. I will think about this more.)
15818 * event-unixoid.c (poll_fds_for_input):
15819 * lread.c (readchar):
15820 * redisplay-tty.c (tty_clear_frame):
15821 * redisplay-x.c (x_get_gc):
15822 * signal.c (interrupt_signal):
15823 And a whole bunch of other files: fixed up places that printed
15824 directly to stderr to instead call the function stderr_out so that
15825 the changes I made under Windows work correctly.
15827 * filemode.c (mode_string):
15831 * frame-msw.c (mswindows_size_frame_internal):
15832 Fixed the computation of frame size and position to keep the frame
15833 within the workspace area, rather than within the physical
15834 dimensions of the screen, so that the frame doesn't overlap window
15835 manager decorations, such as the start menu and toolbar, typically
15836 at the bottom of the screen.
15838 * frame.c (vars_of_frame):
15839 Changed the default frame title format under MS Windows to consist
15840 of buffername-XEmacs, which is standard under MS Windows. I think
15841 it might be a good idea to change this everywhere because I think
15842 it is superior to the current frame title format, but this is the
15843 kind of change that is likely to cause some people to get annoyed,
15844 so I'm not making it.
15846 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15848 * gui-msw.c (mswindows_handle_gui_wm_command):
15849 Fixed compile warnings.
15852 * gui-x.c (strdup_and_add_accel):
15853 * gui-x.c (button_item_to_widget_value):
15855 Added code to automatically put an accelerator onto the beginning
15856 of menu items that don't have one as is now the standard, and is
15857 described more later. Also fixed things so that the menu item
15858 name can be an evaluated expression, again a new standard.
15861 * gui.c (gui_item_add_keyval_pair):
15862 * gui.c (make_gui_item_from_keywords_internal):
15863 * gui.c (gui_add_item_keywords_to_plist):
15864 * gui.c (gui_item_accelerator):
15865 * gui.c (gui_name_accelerator):
15866 * gui.c (gui_item_included_p):
15867 * gui.c (gui_item_display_flush_left):
15868 * gui.c (gui_item_display_flush_right):
15869 * gui.c (parse_gui_item_tree_item):
15870 * gui.c (parse_gui_item_tree_children):
15871 * gui.c (parse_gui_item_tree_list):
15872 Mule-ized. Cleanup. GCPRO addition.
15874 * line-number.c (buffer_line_number):
15876 * lisp.h (EMACS_INT_MAX):
15877 Added the manifest constant EMACS_INT_MIN corresponding to the
15878 existing constant EMACS_INT_MAX. This is partially to fix compile
15879 warnings under Windows, and partly for cleanliness.
15882 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15883 * menubar-msw.c (msw_translate_menu_or_dialog_item):
15884 * menubar-msw.c (displayable_menu_item):
15885 * menubar-msw.c (populate_menu_add_item):
15886 * menubar-msw.c (populate_or_checksum_helper):
15887 * menubar-msw.c (populate_menu):
15888 * menubar-msw.c (update_frame_menubar_maybe):
15889 * menubar-msw.c (prune_menubar):
15890 * menubar-msw.c (msw_char_is_accelerator):
15891 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15892 * menubar-msw.c (mswindows_handle_wm_command):
15893 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15894 * menubar-msw.c (mswindows_handle_wm_initmenu):
15895 * menubar-msw.c (mswindows_update_frame_menubars):
15896 * menubar-msw.c (mswindows_free_frame_menubars):
15897 * menubar-msw.c (mswindows_popup_menu):
15898 Fixed a bug in handling accelerators where an extra character
15899 would be displayed in the menu item. Also generalized the
15900 function displayable_menu_item because it is now used by the
15901 dialog box code as well. And finally, added code in the functions
15902 that create the menubar to extract a list of accelerators for the
15903 top level menubar, which is used in the event code to determine
15904 whether a particular alt-key combination should be used to invoke
15905 a menu item, or should be passed through to access the standard
15906 XEmacs keymap binding for this key combination.
15908 Much needed GCPROing.
15911 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15912 * menubar-x.c (menu_item_descriptor_to_widget_value):
15913 * menubar-x.c (restore_in_menu_callback):
15914 * menubar-x.c (x_popup_menu):
15915 * menubar-x.c (menu_move_up):
15916 * menubar-x.c (menu_move_down):
15917 * menubar-x.c (menu_move_left):
15918 * menubar-x.c (menu_move_right):
15919 * menubar-x.c (menu_select_item):
15920 * menubar-x.c (command_builder_operate_menu_accelerator):
15921 * menubar-x.c (menu_accelerator_junk_on_error):
15922 * menubar-x.c (command_builder_find_menu_accelerator):
15923 * menubar-x.c (Faccelerate_menu):
15925 Moved a whole bunch of code here that was previously in
15926 event-stream.c as described above. There is also code connected
15927 to the new standard of adding an accelerator to the beginning of
15928 menu items that don't have one as described above and below.
15931 * menubar.c (menu_parse_submenu_keywords):
15932 * menubar.c (Fmenu_find_real_submenu):
15933 * menubar.c (Fnormalize_menu_item_name):
15934 * menubar.c (syms_of_menubar):
15935 * menubar.c (vars_of_menubar):
15936 * menubar.c (complex_vars_of_menubar):
15938 a) Cleaned up a bunch of documentation and improved it.
15940 b) XEmacs now automatically adds an accelerator onto the beginning
15941 of any menu items that don't have one. I did this because there
15942 will inevitably be some menu items on the main menubar that don't
15943 have accelerators on them because the package that adds that
15944 particular menu item hasn't yet been fixed up to have accelerators
15945 in them and it looked rather strange to have some items with and
15946 some items without accelerators, especially since even in items
15947 without accelerators, you can, at least under windows, still
15948 access the item through an accelerator corresponding to the first
15949 character in the item's name. If people don't like this behavior,
15950 I can add a variable to turn it off optionally, but I'm not sure
15951 this is a good idea because we really do need to have accelerators
15952 on all of the menu items, and if a package doesn't like the
15953 accelerators being put on the first character, then it should put
15954 the accelerators where they belong.
15956 c) I made a behavior change, which is that the descriptor that
15957 specifies the text of the menu item, which formerly was just a
15958 string, can now also be an evaluated expression. This makes this
15959 descriptor parallel with all of the others, which could also be
15960 evaluated expressions. This also obviates the need for the
15961 keyword :label, which was previously listed in the documentation
15962 as unimplemented, and which was for the same purpose.
15967 * ntproc.c (new_child):
15968 * ntproc.c (sys_spawnve):
15969 * ntproc.c (find_child_console):
15970 * ntproc.c (sys_kill):
15971 Fixed compile warnings. By the way, this file should really go
15972 away entirely, and this will happen as soon as Kirill makes his
15973 final round of process cleanups, which affect the function
15977 * process-nt.c (struct nt_process_data):
15978 * process-nt.c (find_process_from_pid):
15979 * process-nt.c (send_signal_the_nt_way):
15980 * process-nt.c (enable_child_signals):
15981 * process-nt.c (find_child_console):
15982 * process-nt.c (send_signal_the_95_way):
15983 * process-nt.c (nt_finalize_process_data):
15984 * process-nt.c (ensure_console_window_exists):
15985 * process-nt.c (nt_create_process):
15986 * process-nt.c (nt_kill_child_process):
15987 * process-nt.c (nt_kill_process_by_pid):
15988 * process-nt.c (nt_open_network_stream):
15989 * process-nt.c (vars_of_process_nt):
15990 Copied over code from Emacs 20.5 to correctly send signals to sub-
15991 processes under Windows 95. Also added code to automatically
15992 create and hide console window when a sub-process is created under
15993 Windows 95, which obviates the need for the separate runemacs.exe
15994 executable, and finally implemented some variables that were
15995 implemented in Emacs 20.5, but previously not in XEmacs. These
15996 include mswindows- start-process-share-console and
15997 mswindows-start-process-inherit-error-mode. (Both of these only
15998 apply to Windows 95.)
16000 * regex.c (regex_compile): Fixed a compile warning.
16003 * select-msw.c (mswindows_own_selection):
16004 * select-msw.c (mswindows_get_foreign_selection):
16005 * select-msw.c (mswindows_disown_selection):
16006 * select-msw.c (console_type_create_select_mswindows):
16007 * select-msw.c (syms_of_select_mswindows):
16008 Cleaned up the file and implemented the device method
16009 selection_exists_p, which had accidentally been left out. Also
16010 removed four lisp functions that were remnants from before the
16011 time when the selection code was properly device abstracted.
16012 These functions are no longer needed because there are generic
16013 equivalents, and because they were added recently and don't exist
16014 in FSF Emacs, I don't think there's any problem with just deleting
16018 * sysdep.c (sys_subshell):
16019 Fixed a compile warning, although in this case there's probably
16020 something wrong with this code, and it ought to be looked into
16021 more thoroughly by somebody who understands it.
16024 * window.c (Fwindow_text_area_height):
16025 * window.c (Fwindow_width):
16026 * window.c (Fwindow_full_width):
16027 * window.c (Fwindow_pixel_width):
16028 * window.c (debug_print_window):
16029 * window.c (syms_of_window):
16030 Added functions window-text-area-height and window-full-width,
16031 which are functions for returning various width and height
16032 characteristics of a window. (One of these functions is necessary
16033 for making the file dialog box work correctly, and the other one
16034 was added for completeness.) Also added a table to the
16035 documentation for window-height which describes the entire scheme
16036 for accessing width and height characteristics of a window.
16038 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16040 * nt.c (fstat): Added a comment for another problem with
16041 non-encapsulated [f]stat(), reported by Adrian Aichner
16042 <aichner@ecf.teradyne.com>.
16044 2000-03-11 Andy Piper <andy@xemacs.org>
16046 * window.c (make_dummy_parent): initialize subwindow instance
16048 (Fset_window_configuration): zero extent_modiff.
16050 2000-03-10 Andy Piper <andy@xemacs.org>
16052 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16053 more changes can be triggered.
16054 (Fredisplay_frame): ditto.
16055 (Fredraw_device): ditto.
16056 (Fredisplay_device): ditto.
16057 (redisplay_frame): make non-static.
16058 (redisplay_frame): call update_frame_gutter_geometry outside of
16061 * gutter.h: declare update_frame_gutter_geometry.
16063 * redisplay.h: declare redisplay_frame.
16065 * gutter.c (update_frame_gutter_geometry): move geometry changes
16066 in update_frame_gutters here. Geometry changes can only occur
16067 outside of redisplay.
16068 (update_frame_gutters): remove geometry change code.
16069 (Fredisplay_gutter_area): make sure that we are in display when we
16070 update and that we have flushed any size changes.
16072 2000-03-11 Andy Piper <andy@xemacs.org>
16074 * alloc.c (pdump_dump_data): remove i & count shadows.
16076 2000-02-27 Mike Alexander <mta@arbortext.com>
16078 * sysdep.h: Declare pdump_read_file
16080 * sysdep.c (pdump_read_file): New function
16082 * alloc.c (pdump_load): Call pdump_read_file to get the portable
16085 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
16087 * lrecord.h: add `lrecord_type_pgsetenv'.
16089 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
16091 * symsinit.h: declare (vars|syms)_of* functions.
16092 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16094 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
16096 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16098 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16101 * emacs.c (main_1): Call postgres initialization code.
16103 * postgresql.h: New file. PostgreSQL RDBMS support.
16104 * postgresql.c: New file.
16106 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
16108 * redisplay-output.c (redisplay_output_display_block): Disable
16111 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
16113 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16114 (Fcanna_henkan_next): Ditto.
16115 (Fcanna_bunsetu_henkou): Ditto.
16116 (Fcanna_henkan_kakutei): Ditto.
16117 (Fcanna_henkan_end): Ditto.
16118 (Fcanna_henkan_quit): Ditto.
16119 (Fcanna_henkan_next): Set retun value correctly.
16120 (c2mu): Use unsigned char instead of signed char.
16122 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
16124 * emacs.c (main_1): Always call syms_of_gui.
16125 * inline.c: include gui.h
16127 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
16129 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16130 converted to Lisp_Object.
16131 (Qtop_bottom): New variable.
16132 (syms_of_redisplay): Initialize it.
16133 * redisplay.h (Vvisible_bell): Ditto.
16134 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16135 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16136 only flash top and bottom.
16138 2000-03-08 Andy Piper <andy@xemacs.org>
16140 * buffer.c (Frename_buffer): record new buffer name the right way.
16142 2000-03-08 Andy Piper <andy@xemacs.org>
16144 * glyphs.c (update_subwindow): increase hash depth so that widget
16145 items get picked up properly.
16147 * redisplay-output.c (compare_runes): increase hash depth so that
16148 widget items get picked up properly.
16150 2000-03-08 Andy Piper <andy@xemacs.org>
16152 * gutter.c (output_gutter): add some debug.
16154 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16155 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16156 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16158 * redisplay-output.c (compare_runes): use display_hash to
16159 determine if glyphs really are not the same.
16161 * glyphs.c (update_subwindow): check display_hash to see if
16162 anything really needs to be updated. If not then do
16163 nothing. Record the display_hash after updating.
16164 (image_instance_equal): compare the image_instance face also.
16166 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
16168 * redisplay.h: Fix comment style.
16170 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
16172 * consle-msw.h (struct mswindows_frame):
16173 Added new member paint_pending to indicate whether a WM_PAINT
16174 magic event has been queued for this frame.
16176 * event-msw.c (mswindows_drain_windows_queue):
16177 Don't queue a WM_PAINT magic event if one is already queued.
16178 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16180 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16182 2000-03-07 Didier Verna <didier@xemacs.org>
16184 * dired.c: #include `regex.h' after `sysfile.h'.
16186 2000-03-06 Martin Buchholz <martin@xemacs.org>
16188 * sound.c (init_nas_sound): Fix compiler warning.
16190 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16192 (MARK_STRUCT_AS_FREE):
16193 (MARK_STRUCT_AS_NOT_FREE):
16194 Make `gcc -fstrict-aliasing' work properly.
16196 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
16198 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16199 (mswindows_delete_device): Call CoUnnitialize().
16201 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16203 2000-02-25 <CraigL@DyCon.com>
16205 * process-nt.c: MinGW now has <shellapi.h>, but still needs
16208 * sysdep.c: This extern declaration for environ prevents MinGW
16209 from finding the variable in CRTDLL.DLL.
16211 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16213 (SHGFI_EXETYPE): ..
16214 (WM_MOUSEWHEEL): ..
16215 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16217 (MMRESULT): Removed, now defined in cygwin's windows headers.
16219 (uid_t,gid_t,pid_t,ssize_t): ..
16220 (_timeb): Removed, MinGW defines both _timeb and timeb.
16221 (HAVE_H_ERRNO): Added.
16222 (HAVE_TZNAME): Added, configure is not detecting this.
16224 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
16226 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16227 * syntax.c (syntax_match): Use it.
16229 * cmds.c: Import auto-fill-chars from FSF Emacs.
16230 (Vauto_fill_chars): New variables.
16231 (internal_self_insert): Check Vauto_fill_chars.
16233 Declare auto-fill-chars as a Lisp variable and initialize it.
16235 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
16237 * fileio.c (Fmake_symbolic_link):
16239 Run handlers even if local machine doesn't have symlinks.
16241 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
16243 * event-msw.c (mswindows_drain_windows_queue):
16244 Don't generate paint magic events for non-XEmacs frames.
16246 2000-03-05 Andy Piper <andy@xemacs.org>
16248 * redisplay.c (redisplay_frame): generate_displayable_area and
16249 friends assumes that we are not in GC, we therefore have to make
16250 sure that this doesn't happen.
16252 * gutter.c (calculate_gutter_size): generate_displayable_area
16253 assumes that we are not in GC, we therefore have to make sure that
16254 this doesn't happen.
16256 2000-03-05 Martin Buchholz <martin@xemacs.org>
16258 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16260 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
16262 * redisplay.c (regenerate_window): Make sure we set a sane value
16263 for end_pos even if we jump out of the loop.
16264 (regenerate_window): Answer Ben's question :-).
16265 (start_end_of_last_line): Add may_error argument.
16266 (start_of_last_line):
16267 (end_of_last_line): Pass may_error = 0.
16268 (end_of_last_line_may_error): New function.
16269 (pixel_to_glyph_translation): Use it, so we don't crash in
16272 2000-03-04 Andy Piper <andy@xemacs.org>
16274 * window.h (struct window): add gutter_extent_modiff.
16276 * window.c (allocate_window): zero out gutter_extent_modiff.
16278 * redisplay.h: declare sync_display_line_structs.
16280 * redisplay.c (add_glyph_rune): add a better comment.
16282 * redisplay-output.c (sync_display_line_structs): made non-static.
16283 (compare_runes): remove unneccesary glyph cachel access.
16285 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16287 * gutter.c (output_gutter): don't output the gutter if extent
16288 changes only involve extents in buffers. use 4 sets of display
16290 (gutter_extent_signal_changed_region_maybe): new function. Mark
16291 extents in gutters as changed.
16292 (update_frame_gutters): use 4 sets of display lines.
16293 (reset_gutter_display_lines): ditto.
16294 (free_frame_gutters): ditto.
16295 (redraw_exposed_gutter): force output of gutters.
16297 * frame.h (struct frame): add 4 sets of gutter display lines.
16299 * extents.c: (extent_changed_for_redisplay): signal changes to
16300 extents in strings in the gutter as well as extents in buffers.
16302 2000-03-02 Andy Piper <andy@xemacs.org>
16304 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16306 * frame.c (Fmake_frame): make sure the gutters get initialized
16307 after the frame is visible.
16308 (set_frame_selected_window): re-arrange compilation macros a
16310 (change_frame_size_1): mark gutters changed.
16312 * device.c (Fset_device_class): mark gutters changed.
16314 2000-03-01 Andy Piper <andy@xemacs.org>
16316 * window.c (window_top_frame_gutter_height): deleted.
16317 (window_bottom_frame_gutter_height): ditto.
16318 (window_left_frame_gutter_height): ditto.
16319 (window_right_frame_gutter_height): ditto.
16320 (window_top_gutter_height): don't use them.
16321 (window_bottom_gutter_height): ditto.
16322 (window_left_gutter_width): ditto.
16323 (window_right_gutter_width): ditto.
16324 (Fsplit_window): ditto.
16325 (Fwindow_pixel_edges): don't use border dimensions here.
16327 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16328 (update_scrollbar_instance): ditto.
16330 * redisplay.c (generate_modeline): don't take gutters into account.
16331 (generate_modeline): ditto.
16332 (redisplay_frame): small gutter display optimization.
16334 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16336 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16337 gutters into account.
16339 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16340 for window position and type.
16342 * gutter.c (get_gutter_coords): fix for frame gutters.
16343 (update_frame_gutters): update frame geometry if the gutters have
16345 (init_frame_gutters): record current gutter geometries.
16347 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16349 (mswindows_widget_instantiate): ditto.
16351 * frame.h (struct frame): add current_gutter_bounds.
16353 * frame.c (change_frame_size_1): position window and minibuffer
16354 appropriately taking into account the frame gutters.
16356 * frame-x.c: (x_initialize_frame_size): take into account the
16359 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
16361 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
16363 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
16365 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16367 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16369 * file-coding.c (reset_decoding_stream): Clear previous
16370 detection state when autodetect.
16372 2000-02-29 Didier Verna <didier@xemacs.org>
16374 * extents.c (set_extent_glyph_1): don't require extents to be
16377 2000-02-27 Andy Piper <andy@xemacs.org>
16379 * gutter.c (Fset_default_gutter_position): don't default left and
16380 right gutter visibility to t.
16381 (Fset_default_gutter_position): run
16382 default-gutter-position-changed-hook.
16383 (syms_of_gutter): add default-gutter-position-changed-hook.
16385 2000-02-26 Andy Piper <andy@xemacs.org>
16387 * specifier.c (Fmake_specifier): add gutter references.
16389 * gutter.h (RAW_WINDOW_GUTTER): new macro.
16391 * lisp.h: declare Fvalid_plist_p.
16393 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16395 (default_gutter_visible_p_changed_in_window): invalidate gutter as
16396 well as its visibility so that it gets reconstructed.
16397 (construct_window_gutter_spec): new function. Construct a string
16398 to be displayed in the gutter from a plist of strings. Take care
16399 to only use elements that are declared as visible.
16400 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16402 (gutter_validate): allow plists of strings in the specifier.
16403 (gutter_specs_changed): construct the real_gutter from the gutter
16404 specs using construct_window_gutter_spec.
16405 (gutter_visible_validate): gutter-visible is a new specifier type.
16406 (Fgutter_visible_specifier_p): new function for the new specifier.
16407 (syms_of_gutter): declare gutter-visible and
16408 Fgutter_visible_specifier_p.
16409 (specifier_type_create_gutter): intitalize new gutter-visible
16411 (reinit_specifier_type_create_gutter): ditto.
16412 (specifier_vars_of_gutter): use new specifier type for gutter
16414 (init_frame_gutters): construct real_gutter correctly.
16415 (Fgutter_specifier_p): beef up documentation.
16416 (Fgutter_size_specifier_p): ditto.
16418 * winslots.h: add real_gutter slots.
16420 2000-02-25 Andy Piper <andy@xemacs.org>
16422 * device-msw.c: Be kind to older cygwin versions. From Raymond
16423 Toy <toy@rtp.ericsson.se>.
16425 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16426 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16428 2000-02-25 Martin Buchholz <martin@xemacs.org>
16430 * elhash.c (MARK_OBJ): Practice macro hygiene.
16432 2000-02-24 Martin Buchholz <martin@xemacs.org>
16434 * miscplay.c: s/__inline__/inline/g;
16435 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16436 (get_device_compdc): INLINE ==> static inline
16437 * *.[ch]: Change INLINE to INLINE_HEADER globally.
16438 find -name '*.h' | \
16439 xargs global-replace \
16440 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16442 2000-02-25 Andy Piper <andy@xemacs.org>
16444 * window.c (window_top_frame_gutter_height): new function.
16445 (window_top_window_gutter_height): ditto.
16446 (window_top_gutter_height): use them.
16447 (window_bottom_frame_gutter_height): new function.
16448 (window_bottom_window_gutter_height): ditto.
16449 (window_bottom_gutter_height): use them.
16450 (window_left_window_gutter_width): new function.
16451 (window_left_frame_gutter_width): ditto.
16452 (window_left_gutter_width): use them.
16453 (window_right_window_gutter_width): new function.
16454 (window_right_frame_gutter_width): ditto.
16455 (window_right_gutter_width): use them.
16456 (window_pixel_height): new function. calulate window pixel height
16457 with frame gutter involvement.
16458 (Fsplit_window): calculate new sizes taking frame gutters into
16460 (window_char_height_to_pixel_height): don't include frame gutters.
16461 (window_char_height): use window_pixel_height.
16462 (window_pixheight): rename from window_pixel_height.
16463 (change_window_height): use it.
16464 (window_pixel_height_to_char_height): don't include frame gutters.
16465 (window_char_width_to_pixel_width): ditto.
16467 2000-02-25 Andy Piper <andy@xemacs.org>
16469 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16472 2000-02-24 Martin Buchholz <martin@xemacs.org>
16474 * alloc.c (staticpro):
16475 (staticpro_nodump):
16480 (compact_string_chars):
16481 (pdump_dump_wired):
16482 Convert: if (foo) abort(); ==> assert (! foo);
16484 * eldap.c (Fldap_search_basic):
16488 Fix compiler warnings, and possible crashes if (random) return
16489 value were to be used.
16491 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16493 * device-msw.c: Workaround ResetDC failure.
16495 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16496 applying a devmode.
16498 * redisplay-msw.c (get_frame_dc): Added start_page_p.
16499 (mswindows_text_width): Do not start printer page.
16501 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16503 * glyphs-msw.c: Added image methods to msprinter console and
16504 msprinter-specific image instantiation.
16506 2000-02-20 Mike Alexander <mta@arbortext.com>
16508 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16509 to avoid crashes when selection-sets-clipboard is on
16510 (mswindows_own_selection): ditto
16512 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16515 * redisplay-msw.c (get_frame_dc):
16516 (get_frame_compdc):
16518 * device-msw.c (mswindows_init_device):
16519 (mswindows_delete_device):
16520 (msprinter_init_device):
16521 (msprinter_delete_device):
16522 * frame-msw.c (mswindows_init_frame_1):
16523 (mswindows_delete_frame):
16524 (msprinter_init_frame_3):
16525 (msprinter_delete_frame): Move compatible DC to device object from
16526 frame object, for both mswindows and msprinter. Only one at a time
16527 is needed, it is a real waste to have one per frame!
16529 2000-02-23 Andy Piper <andy@xemacs.org>
16531 * glyphs.c: add dynamic width and height elements.
16532 (image_instance_equal): ditto.
16534 * glyphs-widget.c (widget_query_geometry): calculate width and
16535 height dynamically if required.
16536 (initialize_widget_image_instance): initialize dynamic dimensions.
16537 (widget_instantiate): pick-up dynamic dimensions.
16539 * glyphs.h (struct Lisp_Image_Instance): add width and height for
16540 dynamic determination. Add appropriate macros.
16542 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16544 (WINDOW_GUTTER_SIZE): ditto.
16545 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16547 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16549 (get_frame_dc): ditto.
16551 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16554 2000-02-23 Martin Buchholz <martin@xemacs.org>
16556 * XEmacs 21.2.31 is released.
16558 2000-02-22 Ben Wing <ben@xemacs.org>
16560 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16562 2000-02-22 Andy Piper <andy@xemacs.org>
16564 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16566 2000-02-21 Mike Sperber <mike@xemacs.org>
16570 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16573 2000-02-21 Mike Sperber <mike@xemacs.org>
16575 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16577 2000-02-21 Martin Buchholz <martin@xemacs.org>
16579 * XEmacs 21.2.30 is released.
16581 2000-02-20 Martin Buchholz <martin@xemacs.org>
16583 Performance hacking.
16585 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16586 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16587 * emacs.c (main_1):
16589 * console.c (DEFVAR_CONSOLE_LOCAL_1):
16590 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16591 * symeval.h (DEFVAR_SYMVAL_FWD):
16592 * symbols.c (guts_of_unbound_marker):
16593 Make all c_readonly objects also lisp_readonly and marked for life.
16594 * lrecord.h (struct lrecord_implementation):
16595 Document flags better.
16596 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16597 * lrecord.h (DECLARE_LRECORD):
16598 * lrecord.h (XSETRECORD):
16599 * lrecord.h (RECORDP):
16600 * lrecord.h (RECORD_TYPEP):
16601 * lrecord.h (RECORD_MARKER): New.
16602 * lrecord.h (error_check_*):
16603 * lrecord.h (CONCHECK_NONRECORD):
16604 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16605 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16606 * lrecord.h (set_lheader_implementation):
16607 * lrecord.h (enum lrecord_type): New.
16608 * symeval.h (SYMBOL_VALUE_MAGIC_P):
16609 * alloc.c (disksave_object_finalization_1):
16610 * alloc.c (mark_object):
16611 * alloc.c (lrecord_type_index):
16612 * alloc.c (tick_lcrecord_stats):
16613 * alloc.c (Fgarbage_collect):
16614 * alloc.c (init_alloc_once_early):
16615 * alloc.c (pdump_load):
16616 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16617 * alloc.c (lrecord_type_index): Delete.
16618 Make lisp object type indexes be constant.
16619 Makes (byte-compile) 5% faster.
16620 Put all marker functions into their own array.
16621 Makes (garbage-collect) 5% faster.
16622 Optimize SYMBOL_VALUE_MAGIC_P.
16623 Makes (byte-compile) 2-3% faster.
16624 * config.h.in (gc_checking_assert): New.
16625 * alloc.c: Use gc_checking_assert().
16626 * .dbxrc: Make compatible with new object type implementation.
16627 * .gdbinit: Make compatible with new object type implementation.
16628 * alloc.c: Delete all symbols defined only for debugging, such as
16629 Lisp_Type_Vector and lrecord_charset.
16631 2000-02-21 Andy Piper <andy@xemacs.org>
16633 * gui-msw.c (Fmswindows_shell_execute): fix file location
16636 * buffer.c (Fkill_buffer): remove buffer from alist buffer
16637 unshowing so that set_window_buffer doesn't undo
16638 kill_buffer_hook's hard work.
16640 * glyphs-widget.c (tab_control_query_geometry): don't count the
16641 first item when calculating geometry.
16643 * glyphs.c (map_subwindow): remove redundant code.
16644 (update_frame_subwindows): be more circumspect about when to
16647 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16648 when items haven't changed. Update faces if faces have changed as
16649 well as just the widget face.
16650 (x_tab_control_update): Update faces if faces have changed as well
16651 as just the widget face.
16653 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
16655 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16657 (build_syscolor_string): Use mswindows_color_to_string to try to
16659 (mswindows_device_system_metrics): Reverse the foreground and
16660 background colors so that they match the documentation.
16662 * objects-msw.c: (mswindows_X_color_map): tweak some values so
16663 they match the default Windows palette.
16664 (mswindows_color_to_string): New function.
16666 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
16668 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16670 2000-02-18 Olivier Galibert <galibert@pobox.com>
16672 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16673 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16675 * symbols.c (init_symbols_once_early): Removed obsolete
16676 DATA_SEG_BITS related kludge.
16677 (defvar_magic): Ditto.
16679 * malloc.c: Removed obsolete DATA_SEG_BITS
16681 * mem-limits.h: Ditto.
16683 * Makefile.in.in: Removed obsolete HAVE_SHM
16686 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
16688 * device-msw.c (mswindows_delete_device): Free DDE string
16691 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16693 * keymap.c (get_keyelt):
16694 * unexnt.c (unexec):
16695 * vm-limit.c (memory_warnings):
16696 * ntheap.c (recreate_heap):
16697 * ntheap.h (UNINIT_PTR):
16698 * select-msw.c (Fmswindows_get_clipboard):
16699 (Fmswindows_set_clipboard):
16700 * objects-msw.h (MSWINDOWS_BAD_HFONT):
16702 * menubar-msw.c (displayable_menu_item):
16704 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16705 * sysdep.c (sys_subshell):
16706 * process-nt.c (nt_create_process):
16707 * nt.c (normalize_filename):
16708 (dostounix_filename):
16709 (unixtodos_filename):
16710 * ntproc.c (win32_executable_type):
16711 * ntplay.c (play_sound_data_1):
16713 * editfns.c (get_home_directory):
16714 * event-msw.c (struct winsock_stream):
16715 (mswindows_dde_callback):
16716 * device-msw.c (msprinter_init_device):
16717 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16719 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16720 mswindows_clear_toolbar were swapped!
16722 * objects-msw.c:(colormap_t):
16724 * emacs.c (struct standard_args): Fixed const jumble.
16726 * glyphs-widget.c (update_widget): Fixed comparison notation.
16728 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16730 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16731 __declspec(noreturn) syntax.
16733 2000-02-19 Martin Buchholz <martin@xemacs.org>
16735 * eldap.c (Fldap_open):
16736 (Fldap_search_basic):
16739 Use new coding system conversion macros.
16741 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16743 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16745 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
16747 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16748 (Fldap_add, Fldap_modify, Fldap_delete): New functions
16750 * eldap.c (Qadd, Qreplace): New constant symbols
16751 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16752 interruptions by XEmacs signals
16753 Remove unnecessary calls to slow_down_interrupts and
16754 speed_up_interrupts
16755 (Fldap_search_basic): Renamed from Fldap_search_internal
16756 Added new optional parameter VERBOSE that triggers the
16757 display of progress messages
16758 Remove unnecessary calls to slow_down_interrupts and
16759 speed_up_interrupts
16760 LDAP result code analysis rewritten
16761 (Fldap_add, Fldap_modify, Fldap_delete): New functions
16762 (syms_of_eldap): Define the new symbols and functions
16765 2000-02-17 Martin Buchholz <martin@xemacs.org>
16767 * realpath.c: Determine PATH_MAX maximally portably.
16769 * insdel.c (bytecount_to_charcount): Optimize.
16770 The function used to be optimized for entirely ASCII sequences.
16771 Now it is optimized for successive characters from the same
16772 charset. This also wins big for _mostly_ ASCII sequences.
16774 * fileio.c (Ffile_truename): convert return from realpath() using
16775 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
16776 - Rewrite GCPROing slightly.
16778 * sysdep.c (sys_open): Do filename conversion, like all other
16779 sys_* functions. Fixes bug:
16780 (let ((file-name-coding-system 'iso-8859-2))
16781 (write-region x y latin2-name))
16782 ==> writes filename using internal encoding.
16784 2000-02-18 Martin Buchholz <martin@xemacs.org>
16786 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16787 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16788 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16789 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16790 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16791 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16792 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16793 (CONST_IF_NOT_DEBUG): Delete.
16794 * alloc.c (this_one_is_unmarkable): Delete.
16795 (mark_object): Don't check for this_one_is_unmarkable. Use the
16796 c_readonly flag instead.
16797 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16799 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
16801 * event-msw.c (mswindows_drain_windows_queue):
16802 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16803 away redundant repaint events.
16805 2000-02-17 Andy Piper <andy@xemacs.org>
16807 * redisplay.h: declare mark_redisplay_structs.
16809 * redisplay.c (redisplay_window):
16810 (redisplay_frame): don't check subwindows_state_changed.
16811 (mark_redisplay): mark gutters here.
16813 * glyphs.c: (instantiate_image_instantiator): always layout if we
16814 haven't done so already.
16815 (allocate_image_instance): don't mark as dirty.
16816 (update_subwindow): bind inhibit_quit.
16818 * gutter.c (mark_gutters): new function.
16820 * glyphs-x.c (x_update_widget): Always resize to get round a
16823 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16824 breaking absolutely everything.
16826 * gutter.h: declare mark_gutters.
16828 2000-02-16 Martin Buchholz <martin@xemacs.org>
16830 * XEmacs 21.2.29 is released.
16832 2000-02-15 Olivier Galibert <galibert@pobox.com>
16834 * fns.c (size_bit_vector): Fix computation of the size.
16836 2000-02-15 Martin Buchholz <martin@xemacs.org>
16838 * *.[ch]: Change CONST to const globally.
16839 find -name '*.[ch]' | \
16840 xargs global-replace \
16841 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16842 - Remove vestigial references to CONST_IS_LOSING
16844 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
16846 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16847 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16848 events instead of dispatching them directly.
16849 (mswindows_handle_paint): New function to do repainting.
16850 (mswindows_wnd_proc):
16851 (emacs_mswindows_handle_magic_event): Call above function.
16853 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
16855 * objects-msw.c (mswindows_create_font_variant): Return the new
16857 (initialize_font_instance): Get font metrics from the underlined
16858 variant of the font to cope with the case where the underlined
16859 font has a bigger descent.
16861 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
16863 * gui.c (gui_item_accelerator): Return the first underlined
16864 character in item name.
16866 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
16868 * lisp.h: Added Qprinter.
16870 * general.c (syms_of_general): Initialized it.
16872 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16874 (get_frame_compdc): Made inline.
16876 * console.h (struct console_methods): Added eject_page method.
16878 * frame.h: Added FRAME_DISPLAY_P and friends.
16879 Aligned backslahes in many macros in more readable fashion.
16880 Added page_number to struct frame, and an accessor macro
16883 * defice.h: Added DEVICE_DISPLAY_P and friends.
16885 * device.c (Fdevice_printer_p): Used these.
16887 * frame.c (allocate_frame_core): Initialize page number.
16888 (Fprint_job_page_number):
16889 (Fprint_job_eject_page): Implemented.
16891 * frame-msw.c (msprinter_eject_page): Added method.
16892 (msprinter_start_page): Added.
16894 * window.c (Fwindow_truncated_p): Fixed docstring.
16895 (Fwindow_last_line_visible_height): Implemented.
16897 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
16899 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16901 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
16903 * syntax.c (scan_words): Always advance at least one character.
16905 2000-02-13 Andy Piper <andy@xemacs.org>
16907 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16908 to make sure the glyph is in the cachels.
16910 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16911 global image instance flag.
16912 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16913 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16915 * glyphs.c (allocate_image_instance): set dirty bits correctly.
16916 (Fset_image_instance_property): mark layout as changed.
16917 (invalidate_glyph_geometry_maybe): mark layout as changed.
16918 (glyph_width): use new NEEDS_LAYOUT macro.
16919 (glyph_ascent): ditto.
16920 (glyph_descent): ditto.
16921 (glyph_height): ditto.
16922 (image_instance_layout): mark layout as clean after laying out.
16923 (update_subwindow): don't mark layout as clean here.
16925 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16926 should no longer be needed.
16928 * glyphs-x.c (x_update_widget): sanitize asserts.
16929 (x_finalize_image_instance): sanitize assignment to widgets.
16931 * glyphs-widget.c (widget_instantiate): don't need to clear the
16934 2000-02-13 Martin Buchholz <martin@xemacs.org>
16936 * sysdep.c (getcwd): Use standard prototype.
16937 * sysdep.h (getcwd): Use standard prototype.
16939 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16940 (sequence, start, end).
16941 Remove redundant type checking.
16942 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16943 view of `caller-protects') to avoid a crash where the real fix was
16946 2000-02-12 Martin Buchholz <martin@xemacs.org>
16948 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16950 * s/sol2.h: Remove feature macro initialization.
16952 * alloc.c (alloc_lcrecord): Add more type checking assertions.
16953 (vector_hash): New. Code from internal_hash.
16955 Fix up allocation subsystem comments.
16957 * config.h.in: Add __EXTENSIONS__ for Solaris.
16959 * systime.h (EMACS_GETTIMEOFDAY): New.
16960 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16961 Remove Solaris-specific code.
16962 Use void* for the (ignored) second arg for gettimeofday().
16964 * elhash.c (hash_table_hash): Implement it, finally.
16965 * elhash.c: Use hashcode_t.
16967 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16968 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16970 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16971 * fns.c (size_bit_vector):
16972 * alloc.c (size_vector):
16973 (make_vector_internal):
16974 (make_bit_vector_internal):
16975 (sweep_bit_vectors_1):
16976 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16978 2000-02-10 Martin Buchholz <martin@xemacs.org>
16980 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16981 Include strings.h to avoid warnings for bzero and strcasecmp.
16983 2000-02-10 Olivier Galibert <galibert@pobox.com>
16985 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16986 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16988 * fns.c (size_bit_vector): New. Declare bit vectors as a
16991 2000-02-10 Olivier Galibert <galibert@pobox.com>
16993 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16994 use a value field instead.
16995 (symbol_value_forward_forward): Use value field.
16996 (DEFVAR_SYMVAL_FWD): Use value field.
16997 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
16998 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16999 (DEFVAR_CONST_INT): Ditto.
17000 (DEFVAR_BOOL): Ditto.
17001 (DEFVAR_CONST_BOOL): Ditto.
17002 (DEFVAR_INT_MAGIC): Ditto.
17003 (DEFVAR_BOOL_MAGIC): Ditto.
17005 * symbols.c (guts_of_unbound_marker): Use value field.
17006 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17007 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17009 * lisp.h: Declare dumpopaque and noninteractive1.
17011 * alloc.c (dumpopaque): Added.
17012 (pdump_dump_opaquevec): Added.
17013 (pdump): Call pdump_dump_opaquevec to dump opaque data.
17014 (pdump_load): Reload opaque data. Sync noninteractive1 with
17017 2000-02-10 Andy Piper <andy@xemacs.org>
17019 * glyphs.c (image_instance_layout): if the size changes, mark it
17022 * redisplay-output.c (redisplay_output_layout): Update the
17024 (redisplay_output_subwindow): ditto.
17026 * glyphs.c (update_subwindow): make sure we reset flags for
17027 layouts as well as everything else.
17029 * glyphs-widget.c (layout_layout): don't need to set the instances
17032 2000-02-09 Martin Buchholz <martin@xemacs.org>
17034 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
17035 not HAVE_DLOPEN, which is a lower-level thing.
17037 * .cvsignore: Ignore gmon.out
17039 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
17041 * .cvsignore: Ignore portable dumper xemacs.dmp file
17043 2000-02-09 Andy Piper <andy@xemacs.org>
17045 * redisplay-output.c (redisplay_output_layout): be more clever
17046 about when we output based on the changed flags.
17048 * glyphs.h (struct image_instantiator_methods): add update_method.
17049 (struct Lisp_Image_Instance): add changed flags. Declare new
17050 macros for manipulating them.
17052 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17053 (image_instance_parent_glyph): find an image_instance's parent
17054 glyph or image_instance.
17055 (image_instance_layout): mark the size as changed.
17056 (set_image_instance_dirty_p): new function. mark an image
17057 instance, plus all of its parents, as dirty.
17058 (Fset_image_instance_property): use it.
17059 (Fglyph_animated_timeout_handler): use it.
17060 (update_subwindow): call update_widget and device methods for
17061 update_subwindow. Mark all changed flags as clean.
17062 (Fresize_subwindow): mark size as changed.
17064 * glyphs-x.c (x_finalize_image_instance): try and detect gc
17066 (x_update_subwindow): only resize subwindows here.
17067 (x_update_widget): new function. Update all changed properties of
17069 (x_resize_subwindow): deleted.
17070 (x_widget_set_property): deleted.
17071 (x_progress_gauge_set_property): deleted.
17072 (x_progress_gauge_update): new function. Implement recorded
17074 (x_tab_control_update): ditto.
17075 (x_tab_control_set_property): deleted.
17076 (console_type_create_glyphs_x): declare new functions.
17077 (image_instantiator_format_create_glyphs_x): ditto.
17079 * glyphs-widget.c (widget_set_property): mark text changed.
17080 (update_widget): new function. Update properties of a widget.
17081 (widget_instantiate): for layouts make sure we set their
17082 children's parent correctly.
17083 (tab_control_set_property): new function. Record changes that will
17084 take place under redisplay's control.
17085 (progress_gauge_set_property): ditto.
17086 (image_instantiator_progress_guage): declare new functions.
17087 (image_instantiator_tab_control): ditto.
17089 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17091 (mswindows_update_widget): new function. Update all properties on
17092 a widget that have changed.
17093 (mswindows_button_update): new function. Update a button's set
17095 (mswindows_tab_control_update): new function. Update the items in
17097 (mswindows_tab_control_set_property): deleted.
17098 (mswindows_progress_gauge_update): new function. Update the
17099 progress gauge's progress.
17100 (mswindows_widget_set_property): deleted. This is all done
17101 asynchronously now.
17102 (mswindows_progress_gauge_set_property): ditto.
17103 (console_type_create_glyphs_mswindows): declare new methods.
17104 (image_instantiator_format_create_glyphs_mswindows): ditto.
17106 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17107 (msprinter_set_frame_properties): ditto.
17109 * console.h (struct console_methods): Add update_widget_method.
17111 2000-02-09 Andy Piper <andy@xemacs.org>
17113 * gui-msw.c (Fmswindows_shell_execute): Make
17114 mswindows-shell-execute industrial strength.
17116 2000-02-08 Martin Buchholz <martin@xemacs.org>
17118 * lrecord.h: Make macro argument `props' match member function `plist'.
17121 * fns.c (Fremprop):
17122 * fns.c (Fobject_plist):
17125 Object property list frobbing cleanup.
17126 - Allow any lisp object (compared with `eq'), not just symbols, as
17127 keys in object plists.
17128 - Move symbol plist frobbing into symbols.c, where it belongs.
17129 - Move string plist frobbing into alloc.c, where it belongs.
17130 - Everything's an lrecord now, so no need to test for symbolp, etc.
17131 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17133 * extents.c: Reorder code to remove declarations.
17135 * frame.h (store_in_alist): Remove useless declaration.
17137 2000-02-07 Martin Buchholz <martin@xemacs.org>
17139 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17140 * config.h.in: Add HAVE_XCONVERTCASE.
17142 2000-02-07 Andy Piper <andy@xemacs.org>
17144 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17145 it breaks many things.
17147 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
17149 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17150 actually can start a common comment type.
17151 * src/syntax.h (SYNTAX_END_P): ditto for end.
17153 2000-02-07 Martin Buchholz <martin@xemacs.org>
17155 * XEmacs 21.2.28 is released.
17157 2000-02-06 Martin Buchholz <martin@xemacs.org>
17159 * event-Xt.c (x_keysym_to_character): New.
17160 (maybe_define_x_key_as_self_inserting_character): New.
17161 (x_has_keysym): New.
17162 Auto-define all keys on the keyboard as self-insert-key.
17164 2000-02-02 Martin Buchholz <martin@xemacs.org>
17166 * menubar.c (vars_of_menubar): A small code simplification.
17168 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17171 * ExternalClient.c:
17172 * EmacsShell-sub.c:
17175 Use consistent style for specifying X resources.
17177 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17178 This makes (dontusethis-set-symbol-value-handler) actually usable.
17180 * lrecord.h (lrecord_decription_type):
17181 * alloc.c (pdump_register_sub):
17184 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17185 Comply with XEmacs coding style.
17186 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17187 args, and XD_LISP_OBJECT_ARRAY with 3 args.
17189 * keymap.c (Faccessible_keymaps):
17190 Make (accessible-keymaps map "\C-h") do the Right Thing.
17191 Make (accessible-keymaps map []) do the Right Thing.
17192 Make (accessible-keymaps map "") do the Right Thing.
17193 (check_keymap_definition_loop): New function.
17194 (keymap_store_internal): Keep luser from shooting self in foot,
17195 via (define-key ctl-x-4-map "p" global-map).
17196 Remove fullness slot from struct Lisp_Keymap, since hash tables
17198 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17200 2000-01-30 Martin Buchholz <martin@xemacs.org>
17202 * redisplay.c (init_redisplay): Fix small memory leak.
17204 * elhash.c (pdump_reorganize_hash_table):
17205 Rename from reorganize_hash_table. Change prototype.
17206 Reuse the original memory for hentries. Save 100k.
17207 * alloc.c (PDUMP_READ): new macro.
17208 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17209 * alloc.c: No need to #ifndef before #undef.
17211 * print.c: Allow debug_print() to print readably by modifying
17212 debug_print_readably. Use consistent variable names.
17214 * .dbxrc: Try to get things to work even if stopped in a function
17215 without source available by explicitly specifying source files.
17216 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17218 * unexnt.c (_start): Removed bogus code which caused loading heap
17219 from differrent executable file.
17220 Removed bogus assignment to _fmode, which caused inconsistencies.
17222 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17224 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17225 Have spawnve encapsulation regard DONT_ENCAPSULATE.
17226 Do not preliminary `#define signal sigset'.
17228 * systime.h: Do not prototype environ on windows nt and cygwin,
17229 this conflicts with system header.
17231 * syssignal.h: Use correct define for WINDOWSNT
17233 * sysdep.h: Do not prototype environ on windows nt, this conflicts
17234 with system header.
17236 * sysdep.c (near start of file): Fixed commentary and rearranged
17237 ifdefs in readable order.
17238 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17241 (end_of_data): Do not compile in if using PDUMP.
17243 * symsinit.h: Prototyped vars_of_nt().
17245 * ntproc.c (windows9x_p): Added, instead of os_subtype.
17246 (find_child_console): Use it.
17247 (sys_kill): Use it.
17249 * ntheap.h: Do not extern os_subtype.
17251 * ntheap.c (cache_system_info): Do not cache unneeded:
17252 nt_major_version, nt_minor_version and os_subtype.
17253 (recreate_heap): Do not compile in when PDUMPing.
17255 * nt.c (geteuid and friends): Use the new varibale
17256 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17257 (init_user_info): Removed the above mentioned hackery.
17258 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17259 stat has been fixed in the C runtime.
17260 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17262 * file-coding.c (struct file_coding_dump): Do not define
17263 ucs_to_mule_table in the struct if not MULE.
17264 (struct struct lrecord_description fcd_description_1): Do not dump
17267 * emacs.c (main_1): Call vars_of_nt().
17268 (right before Fdump_emacs_data): Don't need lastfile if using both
17269 portabe dumper and system malloc.
17271 * alloc.c (Fmemory_limit): Conditionalized out.
17272 (pdump): Use OPEN_BINARY for the portable dump file.
17273 (pdump_load): Ditto.
17275 2000-02-02 Mike Alexander <mta@arbortext.com>
17277 * nt.c (convert_time): Set tm_isdst before calling mktime and
17278 avoid calling it at all if the compiler supports 64 bit integers.
17279 Also initialize utc_base_ft before using it.
17281 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
17283 * frame.c (change_frame_size_1): Take f->internal_border_width
17284 into consideration when calculating the width of the frame.
17286 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17288 * window.c (frame_min_height):
17289 (frame_size_valid_p):
17290 (frame_pixsize_valid_p): Added.
17291 (check_frame_size): Generalized.
17293 * window.h: Prototyped the above.
17296 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17297 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17298 Deleted Vwin32_* and Vbinary_process_* unused variables.
17300 * device-msw.c (msprinter_init_device): Do not get printer font
17301 list; Added DEVMODE functions.
17303 * frame-msw.c: Added lots of printer code.
17305 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17308 * console-msw.h: Added more msprinter device private slots.
17310 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17312 * event-msw.c (key_needs_default_processing_p): Added.
17313 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17315 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17317 * glyphs.c (image_instance_layout): Mark image instance as clean
17319 (glyph_dirty_p): Removed redundant function.
17320 (invalidate_glyph_geometry_maybe): Added.
17321 (update_glyph_cachel_data): Call it.
17323 * glyphs.h: Prototyped it.
17325 * redisplay.c (add_glyph_rune): Call it.
17326 (redisplay_window): Reset glyphs cachels when frame faces have
17327 changed, thus forcing recomputation of built-in border glyphs.
17329 2000-01-30 Martin Buchholz <martin@xemacs.org>
17331 * Makefile.in.in: Make portable dumper and purify play well together.
17332 Add imperfect, but better than nothing, support for pdump.
17333 Remove xemacs.dmp when temacs is re-generated.
17334 Don't ignore errors when dumping xemacs.
17336 * symbols.c (maybe_call_magic_handler): Remove one magic number.
17338 2000-01-28 Andy Piper <andy@xemacs.org>
17340 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17341 (setup_normal_frame): ditto.
17342 (setup_frame_without_minibuffer): ditto.
17343 (setup_minibuffer_frame): ditto.
17344 (delete_frame_internal): ditto.
17345 (Fmake_frame_invisible): ditto.
17346 (Ficonify_frame): ditto.
17348 * window.h: change Fset_window_buffer signature.
17350 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17351 (Fset_window_buffer): allow recording of buffer if the window is
17352 the selected window.
17353 (window_loop): Use new Fset_window signature.
17355 2000-01-23 Daniel Pittman <daniel@danann.net>
17357 * config.h.in: Added template for `HAVE_ATHENA_3D'
17359 2000-01-29 Andy Piper <andy@xemacs.org>
17361 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17363 * gutter.c (output_gutter): Don't output if the window isn't live.
17365 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17367 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17368 of 01/12/00: Moved SetFocus back here where it belongs.
17370 2000-01-23 Andy Piper <andy@xemacs.org>
17372 * s/cygwin32.h: declare printer things.
17374 2000-01-26 Andy Piper <andy@xemacs.org>
17376 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17379 2000-01-24 Andy Piper <andy@xemacs.org>
17381 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17382 (mswindows_button_instantiate): Make sure glyph is a pixmap.
17384 * glyphs-widget.c (widget_instantiate): Avoid shadows.
17386 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17388 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17390 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17391 (mswindows_output_display_block): Avoid local shadows.
17393 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17394 (mswindows_enqueue_mouse_button_event): ditto.
17395 (mswindows_handle_gui_wm_command): remove declaration.
17397 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17400 * console-msw.h: Avoid shadows.
17401 (mswindows_get_toolbar_button_text):
17402 (emacs_mswindows_create_stream_pair):
17403 (emacs_mswindows_delete_stream_pair):
17404 (mswindows_handle_toolbar_wm_command): declare.
17406 * device-msw.c (build_syscolor_string): Avoid shadows.
17408 2000-01-23 Andy Piper <andy@xemacs.org>
17410 * glyphs-widget.c (widget_instantiate): reverse the items for
17411 layouts so that children are in the expected order.
17413 2000-01-28 Martin Buchholz <martin@xemacs.org>
17415 * ralloc.c: safe_bcopy ==> memmove
17416 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17417 * s/msdos.h: Remove BCOPY macros.
17418 * insdel.c (gap_right): Remove BCOPY conditional code.
17419 * insdel.c (gap_left): Remove BCOPY conditional code.
17420 XEmacs demands a working ANSI C compiler - hence memmove.
17422 * regex.c (regex_compile): Remove accidental use of trigraphs.
17424 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17426 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17429 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17431 * event-msw.c (mswindows_drain_windows_queue): Added the
17433 (mswindows_need_event): Commented the call to
17434 mswindows_drain_windows_queue().
17435 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17438 * console-msw.h: Moved a few function prototypes here from
17441 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17442 parameter from unsigned short to unsigned long.
17443 (Fmswindows_shell_execute): Added return value.
17445 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17447 * sysdep.c (init_system_name):
17448 process-unix.c (unix_canonicalized_host_name):
17449 Don't call freeaddrinfo() if getaddrinfo() fails.
17451 * process-unix.c (unix_open_unix_network_stream):
17452 Moved the code to get a port # into address loop.
17454 2000-01-27 Martin Buchholz <martin@xemacs.org>
17456 * buffer.c (reinit_vars_of_buffer):
17457 The right place to initialize conversion_in_dynarr and
17458 conversion_out_dynarr.
17460 * alloc.c (pdump): Use the real open() till sys_open() is functional.
17462 * process-unix.c (unix_canonicalize_host_name): Muleize.
17463 (unix_open_network_stream): Muleize.
17465 * buffer.h: Fix up prototypes for ralloc.c functions.
17467 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17468 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17469 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17470 instead of gethostbyname()
17471 * process-unix.c: In unix_canonicalize_host_name() and
17472 unix_open_network_stream(), add code to use getaddrinfo()
17473 instead of gethostbyname().
17475 2000-01-27 Daniel Pittman <daniel@danann.net>
17477 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17478 libs when built with flat Athena.
17480 2000-01-27 Martin Buchholz <martin@xemacs.org>
17482 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17483 Use coding standards for function prototypes.
17485 2000-01-25 Martin Buchholz <martin@xemacs.org>
17487 * dialog-msw.c (push_lisp_string_as_unicode):
17488 * doc.c (unparesseuxify_doc_string):
17489 * dired.c (Fuser_name_completion_1):
17490 * dired.c (Fuser_name_all_completions):
17491 * dired.c (free_user_cache):
17492 * dired.c (user_name_completion):
17493 * console-x.c (get_display_arg_connection):
17494 * minibuf.c (clear_echo_area_internal):
17495 * minibuf.c (echo_area_append):
17496 * eldap.c (Fldap_open):
17497 * eldap.c (Fldap_search_internal):
17498 * frame-x.c (x_set_frame_text_value):
17499 * frame-x.c (x_set_frame_properties):
17500 * frame-x.c (x_create_widgets):
17501 * redisplay-tty.c (term_get_fkeys_1):
17502 * objects-x.c (x_parse_nearest_color):
17503 * objects-x.c (x_valid_color_name_p):
17504 * objects-x.c (x_initialize_font_instance):
17505 * objects-x.c (x_list_fonts):
17506 * objects-x.c (x_find_charset_font):
17507 * tooltalk.c (Fadd_tooltalk_message_arg):
17508 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17509 * tooltalk.c (Fadd_tooltalk_pattern_arg):
17510 * process-unix.c (unix_create_process):
17511 * ntproc.c (sys_spawnve):
17512 * sound.c (Fplay_sound_file):
17513 * sound.c (Fplay_sound):
17514 * buffer.c (init_initial_directory):
17515 * buffer.c (init_buffer):
17516 * editfns.c (init_editfns):
17517 * editfns.c (Ftemp_directory):
17518 * editfns.c (Fuser_full_name):
17519 * editfns.c (uncache_home_directory):
17520 * editfns.c (get_home_directory):
17521 * editfns.c (Fuser_home_directory):
17522 * editfns.c (Fformat_time_string):
17523 * editfns.c (Fcurrent_time_string):
17524 * gui-x.c (button_item_to_widget_value):
17525 * database.c (Fopen_database):
17526 * event-Xt.c (x_to_emacs_keysym):
17527 * event-Xt.c (x_event_to_emacs_event):
17528 * event-Xt.c (describe_event_window):
17529 * event-msw.c (mswindows_wnd_proc):
17530 * glyphs-eimage.c (jpeg_instantiate):
17531 * glyphs-eimage.c (gif_instantiate):
17532 * glyphs-eimage.c (png_instantiate):
17533 * glyphs-eimage.c (tiff_instantiate):
17534 * glyphs-x.c (xbm_instantiate_1):
17535 * glyphs-x.c (x_xbm_instantiate):
17536 * glyphs-x.c (x_xface_instantiate):
17537 * glyphs-x.c (autodetect_instantiate):
17538 * glyphs-x.c (cursor_font_instantiate):
17539 * glyphs-x.c (x_widget_instantiate):
17540 * glyphs-x.c (x_widget_set_property):
17541 * glyphs-x.c (x_widget_property):
17542 * glyphs-x.c (BUILD_GLYPH_INST):
17543 * print.c (write_string_to_stdio_stream):
17544 * print.c (output_string):
17545 * print.c (Falternate_debugging_output):
17546 * print.c (Fexternal_debugging_output):
17547 * glyphs-msw.c (extract_xpm_color_names):
17548 * glyphs-msw.c (mswindows_xpm_instantiate):
17549 * glyphs-msw.c (bmp_instantiate):
17550 * glyphs-msw.c (resource_name_to_resource):
17551 * glyphs-msw.c (mswindows_resource_instantiate):
17552 * glyphs-msw.c (xbm_instantiate_1):
17553 * glyphs-msw.c (mswindows_xbm_instantiate):
17554 * glyphs-msw.c (mswindows_xface_instantiate):
17555 * glyphs-msw.c (mswindows_widget_instantiate):
17556 * glyphs-msw.c (add_tree_item):
17557 * glyphs-msw.c (add_tab_item):
17558 * glyphs-msw.c (mswindows_combo_box_instantiate):
17559 * glyphs-msw.c (mswindows_widget_property):
17560 * glyphs-msw.c (mswindows_combo_box_property):
17561 * glyphs-msw.c (mswindows_widget_set_property):
17562 * console.c (stuff_buffered_input):
17563 * objects-msw.c (mswindows_initialize_color_instance):
17564 * objects-msw.c (mswindows_valid_color_name_p):
17565 * objects-msw.c (mswindows_list_fonts):
17566 * objects-msw.c (mswindows_font_instance_truename):
17567 * bytecode.c (optimize_compiled_function):
17568 * select-x.c (symbol_to_x_atom):
17569 * select-x.c (x_atom_to_symbol):
17570 * select-x.c (hack_motif_clipboard_selection):
17571 * select-x.c (selection_data_to_lisp_data):
17572 * select-x.c (lisp_data_to_selection_data):
17573 * select-x.c (Fx_get_cutbuffer_internal):
17574 * select-x.c (Fx_store_cutbuffer_internal):
17575 * buffer.h (TO_EXTERNAL_FORMAT): New function.
17576 * buffer.h (TO_INTERNAL_FORMAT): New function.
17577 * emacs.c (make_arg_list_1):
17578 * emacs.c (make_argc_argv):
17579 * emacs.c (main_1):
17580 * emacs.c (Fdump_emacs):
17581 * emacs.c (split_string_by_emchar_1):
17586 * device-x.c (x_init_device):
17587 * device-x.c (Fx_valid_keysym_name_p):
17588 * device-x.c (Fx_get_font_path):
17589 * device-x.c (Fx_set_font_path):
17590 * glyphs.c (bitmap_to_lisp_data):
17591 * glyphs.c (pixmap_to_lisp_data):
17592 * alloc.c (make_ext_string): Use coding system arguments. Update
17594 * alloc.c (build_string):
17595 * callproc.c (child_setup):
17596 * callproc.c (init_callproc):
17597 * fileio.c (lisp_strerror):
17598 * fileio.c (directory_file_name):
17599 * fileio.c (Fexpand_file_name):
17600 * fileio.c (Ffile_truename):
17601 * fileio.c (Fsysnetunam):
17602 * fileio.c (Fdo_auto_save):
17603 * sysdep.c (sys_readdir):
17604 * tests.c: New file. Allow adding C tests.
17605 Replace GET_* macros with a more comprehensible and flexible
17606 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17608 Any coding system can be used to do format conversion.
17609 Eliminate enum external_data_format.
17610 Eliminate convert_to_external_format.
17611 Eliminate convert_to_internal_format.
17612 Make sure file-name, keyboard, terminal, and ctext are always
17613 defined as coding systems or aliases. Make
17614 file-name-coding-system, terminal-coding-system, and
17615 keyboard-coding-system magical variables that are equivalent to
17616 defining the corresponding coding system aliases.
17618 * file-coding.c (Fcoding_system_canonical_name_p): New function.
17619 * file-coding.c (Fcoding_system_alias_p): New function.
17620 * file-coding.c (Fcoding_system_aliasee): New function.
17621 * file-coding.c (append_suffix_to_symbol): New function.
17622 * file-coding.c (dangling_coding_system_alias_p): New function.
17623 * file-coding.c (Ffind_coding_system):
17624 * file-coding.c (Fcopy_coding_system):
17625 * file-coding.c (encode_coding_no_conversion):
17626 * file-coding.c (syms_of_file_coding):
17627 * file-coding.c (vars_of_file_coding):
17628 Rewrite coding system alias code.
17629 Allow nested aliases, like symbolic links.
17630 Allow redefinition of coding system aliases.
17631 Prevent existence of dangling coding system aliases.
17633 * dired.c (Fuser_name_completion_1):
17634 * dired.c (Fuser_name_all_completions):
17635 A crash would happen if user did QUIT in the middle of building
17636 user_name_cache. Remove redundant code in mainline and unwind_protect.
17639 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
17641 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17642 an unsigned char *. Update all callers.
17644 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17646 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17648 2000-01-25 Martin Buchholz <martin@xemacs.org>
17650 * elhash.c (hentry_description): Use more portable definition.
17651 (resize_hash_table): Initialize new hentries using
17652 xnew_array_and_zero, thereby simplifying the code.
17654 * mule-charset.c (make_charset): Make sure entire object is
17655 initialized, to avoid Purify warnings.
17657 * alloc.c (resize_string): Fix unlikely crash with big strings.
17659 2000-01-24 Martin Buchholz <martin@xemacs.org>
17661 * realpath.c (xrealpath):
17662 Don't call getwd().
17664 2000-01-25 Martin Buchholz <martin@xemacs.org>
17666 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17668 1999-12-28 Max Matveev <max@melbourne.sgi.com>
17670 * unexelfsgi.c (unexec): Change the way we decide which segment
17671 should be extended.
17673 Assumption that .bss section should be outside the PT_LOADable
17674 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17675 it's present) is inside the 'data' segment. This would fail the
17676 test which was used to find a segment to grow and cover new
17677 heap. Instead of this assumption, I created another one - on IRIX
17678 the segment to grow should start below .bss and it's address
17679 should extent above the end of .bss. Once this segment is
17680 identified, it's grown to accommodate the new heap and new
17681 zero-length .bss section is added at the end of .data2.
17683 2000-01-25 Martin Buchholz <martin@xemacs.org>
17685 * eval.c (Feval): Wrong number of arguments should use original
17686 function, not the indirect_function version of it.
17688 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
17690 * glyphs-x.c (x_button_instantiate): Don't add image if
17691 it is not a pixmap.
17692 (x_locate_pixmap_file): Call Fexpand_file_name when file name
17695 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
17697 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17699 (DEFVAR_INT_MAGIC): Ditto.
17700 (DEFVAR_BOOL_MAGIC): Ditto.
17701 * glyphs.h: Reindent backslash.
17703 2000-01-24 Martin Buchholz <martin@xemacs.org>
17705 * glyphs-widget.c (layout_query_geometry):
17706 (layout_layout): Use correct types for gheight, gwidth.
17708 2000-01-24 Martin Buchholz <martin@xemacs.org>
17710 * EmacsManager.c (QueryGeometry): Purified.
17712 2000-01-23 Martin Buchholz <martin@xemacs.org>
17714 * alloc.c (make_float): Make sure entire object is initialized, to
17715 avoid Purify warnings.
17716 (pdump_register_sub): Remove useless assignment.
17717 (pdump): Use xmalloc, not malloc.
17718 (pdump_load): Use xmalloc, not malloc.
17720 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17727 * sysdep.c: Removed redundant #include <windows.h>
17729 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17731 * frame.c (delete_frame_internal): Do not delete device when its
17732 implementation so declares.
17733 (delete_frame_internal): Set device selected frame to nil when
17734 last frame goes away.
17736 * device-msw.c (msprinter_device_system_metrics): Implemented.
17737 (mswindows_device_system_metrics): Added 'device-dpi property.
17739 * device.c: (Fdevice_printer_p): Added.
17740 Added 'offset-workspace device metric.
17742 * console.h (device_metrics): Declared DM_offset_workspace.
17744 2000-01-23 Martin Buchholz <martin@xemacs.org>
17746 * fileio.c (Ffile_truename): Remove pointless and confusing
17747 initialization of elen.
17749 * glyphs-widget.c: Compiler warning fixes.
17751 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
17753 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17754 instead of a Lisp_Object as argument to make it consistent with
17755 the other LIVE_P macros.
17756 (CHECK_LIVE_PROCESS): New macro.
17758 * process.c: Declare Qprocess_live_p.
17759 (Fprocess_live_p): New function.
17760 (create_process): Use PROCESS_LIVE_P.
17761 (read_process_output): Ditto.
17762 (set_process_filter): Ditto.
17763 (Fdelete_process): Ditto.
17764 (kill_buffer_processes): Ditto
17765 (process_send_signal): Use CHECK_LIVE_PROCESS.
17766 (Fprocess_input_coding_system): Check whether process is still
17767 alive (fix PR#1061).
17768 (Fprocess_output_coding_system): Ditto.
17769 (Fprocess_coding_system): Ditto.
17770 (Fset_process_input_coding_system): Ditto.
17771 (Fset_process_output_coding_system): Ditto.
17773 2000-01-23 Andy Piper <andy@xemacs.org>
17775 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17778 * glyphs.c (mark_image_instance): take into account changed
17779 image_instance format.
17780 (image_instance_equal): ditto.
17781 (image_instance_hash): ditto.
17783 * glyphs-widget.c (widget_instantiate): Incorporate layout
17784 instantiation here. Delay layout of the layout until later.
17785 (layout_instantiate): deleted.
17786 (layout_query_geometry): new function. get the geometry of a
17788 (layout_layout): layout a layout dynamically.
17789 (image_instantiator_widget): New function - splitting up
17790 image_instantiator_format_create_glyphs_widget for netwinder
17792 (image_instantiator_buttons):
17793 (image_instantiator_edit_fields):
17794 (image_instantiator_combo_box):
17795 (image_instantiator_scrollbar):
17796 (image_instantiator_progress_guage):
17797 (image_instantiator_tree_view):
17798 (image_instantiator_tab_control):
17799 (image_instantiator_labels):
17800 (image_instantiator_layout): ditto.
17801 (image_instantiator_format_create_glyphs_widget): Call preceding
17804 2000-01-22 Martin Buchholz <martin@xemacs.org>
17806 * process.c (Fset_process_coding_system):
17807 * device-x.c (Fx_keysym_hash_table):
17810 * lstream.c (Lstream_write): Return documented value, not 0.
17812 * fileio.c (directory_file_name):
17813 (Fsubstitute_in_file_name):
17814 (Fsubstitute_insert_file_contents_internal):
17815 (Fwrite_region_internal):
17820 Remove vestigial APOLLO-conditional code.
17822 2000-01-21 Martin Buchholz <martin@xemacs.org>
17824 * getpagesize.h: Add guard macros.
17825 * libsst.h: Add guard macros.
17826 * libst.h: Add guard macros.
17827 * line-number.h: Add guard macros.
17828 * ndir.h: Add guard macros.
17829 * sysfloat.h: Add guard macros.
17830 * sysfile.h: Add guard macros.
17831 * sysproc.h: Add guard macros.
17832 * syswait.h: Add guard macros.
17833 * xintrinsic.h: Add guard macros.
17834 * xintrinsicp.h: Add guard macros.
17835 * xmmanager.h: Add guard macros.
17836 * xmmanagerp.h: Add guard macros.
17837 * xmprimitive.h: Add guard macros.
17838 * xmu.h: Add guard macros.
17839 * gpmevent.h: Add copyright statement. Add guard macros.
17840 * miscplay.h: Add guard macros.
17841 * *.h: Use consistent C-standards-approved guard macro names.
17843 * opaque.c (make_opaque): Switch parameter order.
17844 * opaque.h (make_opaque): Switch parameter order.
17845 Update all callers.
17846 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17848 * config.h.in (type_checking_assert): Added.
17849 (bufpos_checking_assert): Added.
17851 2000-01-21 Martin Buchholz <martin@xemacs.org>
17853 * alloc.c: Harmless pdump changes.
17855 - spell alignment correctly.
17856 * sysdep.c: Use countof()
17858 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17860 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17861 initially_selected_for_input() console method, default to 0.
17862 (semi_canonicalize_console_connection): Try to delegate to
17863 canonicalize_console_connection if no such console method.
17864 (canonicalize_console_connection): Vice versa.
17865 (print_console): Do not print nil connection.
17867 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17868 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17869 (XDEVIMPF_FRAMELESS_OK): Added.
17870 (CONSOLE_INHERITS_METHOD): Added.
17872 * console-msw.c (mswindows_canonicalize_console_connection):
17874 (mswindows_canonicalize_device_connection): Added.
17876 * console-msw.h (struct msprinter_device): Added this struct and
17878 (mswindows_device): Made fontlist a lisp object.
17880 * device.c (semi_canonicalize_device_connection): Try to delegate
17881 to canonicalize_device_connection if no such console method.
17882 (canonicalize_device_connection): Vice versa.
17883 (print_device): Do not print nil connection.
17885 * device-msw.c (mswindows_init_device): Call InitCommonControls
17887 (mswindows_delete_device): Removed fontlist deallocation.
17888 (mswindows_mark_device): Added.
17890 * events.c (event_equal): Added abort() at unreached code.
17891 (event_hash): Ditto.
17893 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17894 fallback tags of Windows devices.
17896 * general.c (syms_of_general): Initialized Qmsprinter.
17898 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17899 of fallback tags of Windows devices.
17901 * lisp.h: Declared Qmsprinter.
17903 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17905 (mswindows_list_fonts): Ditto.
17906 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17907 that it can be used by both mswindows and msprinter devices.
17908 (initialize_font_instance): Added.
17909 (mswindows_initialize_font_instance): Use it.
17910 (msprinter_initialize_font_instance): Added.
17912 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17913 and implementation flags check.
17914 (redisplay_without_hooks): Changed the call to the above.
17915 (Fredraw_device): Ditto.
17916 (Fredisplay_device): Ditto.
17918 * redisplay-msw.c (get_frame_dc): Implemented.
17919 (get_frame_compdc): Implemented.
17920 (many functions): Use the two functions above to get device
17921 contexts, ether for a window or a printer.
17923 2000-01-21 Olivier Galibert <galibert@pobox.com>
17925 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17926 initialization here.
17927 (init_symbols_once_early): Call it.
17928 * emacs.c (main_1): Call it.
17929 * symsinit.h: Declare it.
17931 2000-01-19 Olivier Galibert <galibert@pobox.com>
17933 * alloc.c: Use a lrecord_header * in the backtrace instead of a
17935 (pdump_backtrace): Ditto.
17936 (pdump_register_object): Ditto. Cleanup use of the pointers.
17937 (pdump_get_entry): Abort if trying to register a null pointer.
17938 (pdump_dump_data): Cleanup types when relocating.
17939 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17940 (pdump_dump_rtables): Remove bad casts.
17941 (pdump_load): Cleanup relocation w.r.t union type. Use a
17942 Lisp_Object instead of a EMACS_INT for the hashtable
17945 2000-01-20 Martin Buchholz <martin@xemacs.org>
17947 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17949 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17951 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17953 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17955 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
17957 * faces.h (FACE_STRIKETHRU_P): Added.
17959 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17962 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17963 (mswindows_set_dc_font): New function, aware of font variants,
17964 separated from mswindows_update_dc.
17966 * objects-msw.h (struct mswindows_font_instance_data): Added
17969 * objects-msw.c (mswindows_finalize_font_instance): Delete all
17970 cached fonts and the data structure.
17971 (mswindows_initialize_font_instance): Added creation of font data
17973 (mswindows_print_font_instance): Print at least something.
17974 (mswindows_create_font_variant): Implemented.
17975 (mswindows_get_hfont): Implemented.
17977 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
17979 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17980 prototyping problem with msvc.
17982 * emacs.c (main_1): added syms_of_gui_mswindows() call
17984 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17985 syms_of_gui_mswindows() function
17987 * symsinit.h: added the prototype for syms_of_gui_mswindows()
17989 2000-01-18 Martin Buchholz <martin@xemacs.org>
17991 * XEmacs 21.2.27 is released.
17993 2000-01-18 Martin Buchholz <martin@xemacs.org>
17995 * glyphs-eimage.c (struct tiff_error_struct):
17997 (tiff_warning_func):
17998 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
18003 * unexec.c: Remove vestigial Lucid C code.
18007 * libsst.c: Ansify.
18008 Remove declarations of errno and strerror().
18010 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
18012 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18014 2000-01-16 Martin Buchholz <martin@xemacs.org>
18016 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18019 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
18024 Change enum eol_type to eol_type_t.
18026 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
18028 * gui.c (get_gui_callback): Check cons before accessing car.
18030 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
18032 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18033 (XSETSPECIFIER_TYPE): Ditto.
18035 2000-01-17 Didier Verna <didier@xemacs.org>
18037 * redisplay.c (generate_fstring_runes): compute string size in
18038 characters, not bytes.
18040 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
18042 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18044 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
18046 * print.c (print_error_message): Call print_prepare().
18048 2000-01-14 Martin Buchholz <martin@xemacs.org>
18050 * .dbxrc: Renamed from dbxrc.
18052 * events.c (event_to_character):
18053 Use `assert (foo)' instead of `if (!foo) abort()'
18055 * .gdbinit (xtype): Add documentation.
18056 * .gdbinit (check-temacs): New function.
18057 * .gdbinit (check-xemacs): New function.
18058 * dbxrc (check-xemacs): New function.
18059 * dbxrc (check-xemacs): New function.
18061 2000-01-14 Andy Piper <andy@xemacs.org>
18063 * glyphs-widget.c (widget_query_geometry): Make sure that we
18064 calculate default dimensions correctly.
18066 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
18068 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18070 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18071 pdump_wire'd variable.
18073 * emacs.c: (main_1): Conditionalized calls to
18074 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18076 2000-01-13 Martin Buchholz <martin@xemacs.org>
18078 * window.c (Fset_window_configuration):
18079 * sysdep.c (_start):
18080 * input-method-motif.c (res):
18081 * event-Xt.c (Xt_process_to_emacs_event):
18082 Simple compiler warning fixes.
18084 * bytecode.c (funcall_compiled_function): Use the original
18085 function symbol on the backtrace list in preference to the
18086 compiled_function object in error messages.
18088 2000-01-13 Andy Piper <andy@xemacs.org>
18090 * glyphs-x.c (update_widget_face): Make sure we update the widget
18091 background as well as foreground.
18093 2000-01-13 Andy Piper <andy@xemacs.org>
18095 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18096 fields to subwindow.
18097 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18098 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18099 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18100 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18102 * glyphs-widget.c (check_valid_tab_orientation): new function.
18103 (initialize_widget_image_instance): zero orientation and
18105 (widget_instantiate): pick up orientation.
18106 (tab_control_query_geometry): return appropriate values for
18109 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18110 appropriate creation flags for left, right and bottom tabs.
18112 * s/cygwin32.h: add tab definitions.
18114 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
18116 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18117 frame upon hiding a subwindow.
18118 (mswindows_button_instantiate): Changed the push button style to
18120 (mswindows_button_instantiate): Removed button BS_NOTIFY
18122 (mswindows_button_instantiate): Removed redundant check for
18123 a disabled gui item.
18124 (mswindows_button_instantiate): Made use of WS_TABSTOP
18125 consistent: "operable" controls (edit, button, tree, scroll) have
18126 this style, "display-only" ones (static, progress gauge) do
18127 not. This style is currently ignored by XEmacs though. Also,
18128 removed the WS_EX_CONTROLPARENT style - it is not for children,
18129 it is for their parents!
18130 (mswindows_edit_field_instantiate): Ditto.
18131 (mswindows_progress_gauge_instantiate): Ditto.
18132 (mswindows_tree_view_instantiate): Ditto.
18133 (mswindows_tab_control_instantiate): Ditto.
18134 (mswindows_scrollbar_instantiate): Ditto.
18135 (mswindows_combo_box_instantiate): Ditto.
18136 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18137 style to the "clip" window.
18138 (mswindows_button_instantiate): Removed compilation warning by
18139 equally typing terms of the ?: operator.
18141 2000-01-12 Didier Verna <didier@xemacs.org>
18143 * redisplay.c (generate_fstring_runes): new parameter holding the
18144 last modeline-format extent.
18145 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18146 extent, fill the glyph block with it.
18147 (generate_fstring_runes): handle these parameters.
18148 (generate_formatted_string_db): ditto.
18150 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18151 glyphs'extents in the modeline.
18153 1999-01-11 Mike Woolley <mike@bulsara.com>
18155 * ntheap.c: Reduced the reserved heap space from 1Gb down to
18156 256Mb, as a workaround for the non-starting problem many people
18159 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
18161 * console-tty.c (Fset_console_tty_output_coding_system):
18162 Force redrawing tty frame.
18164 2000-01-10 Didier Verna <didier@xemacs.org>
18166 * redisplay.c (generate_fstring_runes): fix size computation bug.
18168 2000-01-09 William M. Perry <wmperry@aventail.com>
18170 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18172 2000-01-09 Andy Piper <andy@xemacs.org>
18174 * glyphs-msw.c: index -> i to avoid shadows.
18175 (xbm_create_bitmap_from_data): make static.
18176 (check_valid_string_or_int): deleted.
18177 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18179 * glyphs-x.c (x_update_subwindow): remove unused args.
18181 * glyphs.c (glyph_image_instance): return the thing. Don't set the
18182 back pointer - this is done in allocate_image_instance.
18183 (query_string_font): return Qnil to make the compiler happy.
18184 (unmap_subwindow): set to ~0 to make the compiler happy.
18185 (glyph_query_geometry): comment out until used.
18186 (glyph_layout): ditto.
18188 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
18190 * insdel.c (signal_after_change): Remove extraneous unbind_to().