1 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * mule-charset.c (decoding_table_remove_char): Moved to
5 (decoding_table_put_char): Likewise.
7 * char-ucs.h (decoding_table_check_elements): New prototype [moved
9 (decoding_table_remove_char): New inline function [moved from
11 (decoding_table_put_char): Likewise.
13 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
15 * mule-charset.c (Fcharset_name): Modify DOC-string for UTF-2000
18 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
20 * mule-charset.c (decode_builtin_char): Support mother charsets.
22 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
24 * mule-charset.c (Q94x94x60): New variable.
25 (charset_code_point): Support conversion `94x94x60'.
26 (Fmake_charset): Likewise.
27 (syms_of_mule_charset): Add new symbol `94x94x60'.
29 * char-ucs.h (CONVERSION_94x94x60): New macro.
31 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
33 * mule-charset.c (charset_code_point): Unify code about
36 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
38 * mule-charset.c (charset_code_point): Merge code about builtin
39 characters into code about mother charsets; don't use
40 `range_charset_code_point'.
41 (range_charset_code_point): Deleted.
43 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
45 * mule-charset.c (Qcode_offset): New variable.
46 (Fmake_charset): Use `XUINT' to get value of `min-code' and
47 `max-code'; accept new property `code-offset'.
48 (syms_of_mule_charset): Add new symbol `code-offset'.
50 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
52 * mule-charset.c (range_charset_code_point): Fixed.
54 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
56 * mule-charset.c (decode_builtin_char): Change semantics of
57 code-offset of coded-charset.
58 (charset_code_point): Likewise.
59 (range_charset_code_point): Likewise.
60 (complex_vars_of_mule_charset): Modify for the change.
62 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
64 * mule-charset.c (Fencode_char): Reverse arguments.
66 * mule-charset.c (charset_code_point): Fixed.
68 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
70 * mule-charset.c (Vcharset_mojikyo): Deleted.
71 (Vcharset_mojikyo_2022_1): Deleted.
72 (Vcharset_mojikyo_pj_{1..21}): Deleted.
73 (Qmin_code): New variable in UTF-2000.
74 (Qmax_code): Likewise.
76 (Qconversion): Likewise.
79 (Qmojikyo_2022_1): Deleted.
80 (Qmojikyo_pj_{1..22}): Deleted.
81 (mark_charset): Mark `cs->mother'.
82 (charset_description): Add description for `mother'.
83 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
84 new arguments `mother' and `conversion'; use
85 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
86 (charset_code_point): Moved from char-ucs.h; support `mother'
88 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
89 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
90 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
91 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
92 allow 2 as the value of `graphic' in UTF-2000; add new properties
93 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
94 require `final' in UTF-2000; modify for `make_charset'.
95 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
96 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
97 (Fcharset_property): Support `mother', `min-code' and `max-code'.
98 (Fencode_char): New function.
99 (syms_of_mule_charset): Add new builtin function `encode-char' in
100 UTF-2000; add new symbols `min-code', `max-code', `mother',
101 `conversion' and `94x60'; delete symbols `mojikyo',
102 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
103 (complex_vars_of_mule_charset): Modify for `make_charset' change;
104 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
105 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
107 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
108 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
110 * char-ucs.h (Vcharset_mojikyo): Deleted.
111 (Vcharset_mojikyo_2022_1): Deleted.
112 (LEADING_BYTE_MOJIKYO): Deleted.
113 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
114 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
115 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
116 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
117 add new member `mother'; add new member `conversion'.
118 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
119 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
120 (CHARSET_MOTHER): New macro.
121 (CHARSET_CONVERSION): New macro.
122 (CONVERSION_IDENTICAL): New macro.
123 (CONVERSION_94x60): New macro.
124 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
125 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
126 (XCHARSET_MOTHER): New macro.
127 (XCHARSET_CONVERSION): New macro.
128 (MIN_CHAR_MOJIKYO): Deleted.
129 (MAX_CHAR_MOJIKYO): Deleted.
130 (DECODE_MOJIKYO_2022): Deleted.
131 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
132 (charset_code_point): Changed to non-inline function.
133 (encode_char_1): Use `charset_code_point'.
134 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
136 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
138 * lread.c (read_compiled_function): Fix prototype.
139 (read_vector): Likewise.
141 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
143 * lrecord.h (struct lrecord_header): Delete `older'.
144 (set_lheader_implementation): Delete code for `older'.
145 (set_lheader_older_implementation): Deleted.
146 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
147 (OLDER_RECORD_P): Deleted.
148 (OLDER_RECORD_HEADER_P): Deleted.
149 (alloc_older_lcrecord): Deleted.
150 (alloc_older_lcrecord_type): Deleted.
152 * alloc.c (all_older_lcrecords): Deleted.
153 (alloc_older_lcrecord): Deleted.
154 (disksave_object_finalization_1): Delete code for older objects.
155 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
156 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
158 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
160 * mule-charset.c (decoding_table_put_char): Use `make_vector'
161 instead of `make_older_vector'.
162 (put_char_ccs_code_point): Likewise.
163 (mark_charset): Mark `cs->decoding_table'.
164 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
166 * lisp.h (make_older_vector): Deleted.
167 (make_vector_newer): Deleted.
169 * config.h.in (HAVE_GGC): Deleted.
171 * alloc.c (make_older_vector): Deleted.
172 (make_vector_newer_1): Deleted.
173 (make_vector_newer): Deleted.
175 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
177 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
178 (Qideograph_daikanwa_2): New variable.
179 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
180 (complex_vars_of_mule_charset): Add new coded-charset
181 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
182 `LEADING_BYTE_DAIKANWA'.
184 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
185 (LEADING_BYTE_DAIKANWA_1): New macro.
186 (LEADING_BYTE_DAIKANWA_2): New macro.
187 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
189 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
191 * mule-charset.c (complex_vars_of_mule_charset): Change
192 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
193 the second revised version.
195 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
197 * mule-charset.c (Vcharset_ucs_smp): New variable.
198 (Vcharset_ucs_sip): New variable.
199 (Qucs_smp): New variable.
200 (Qucs_sip): New variable.
201 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
202 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
203 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
204 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
205 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
206 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
208 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
209 (LEADING_BYTE_UCS_SIP): New macro.
210 (MIN_CHAR_SMP): New macro.
211 (MAX_CHAR_SMP): New macro.
212 (MIN_CHAR_SIP): New macro.
213 (MAX_CHAR_SIP): New macro.
215 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
217 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
220 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
222 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
223 value; don't store value into `encoding_table' of `Lisp_Charset'.
224 (mark_charset): `encoding_table' was deleted.
225 (charset_description): Likewise.
226 (make_charset): Likewise.
227 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
228 `put_char_ccs_code_point'.
230 * chartab.h (Fput_char_attribute): New EXFUN.
232 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
233 is unified with normal symbol space.
234 (Fget_char_attribute): Likewise.
235 (Fput_char_attribute): Likewise; behavior of
236 `put_char_ccs_code_point' is changed.
238 * char-ucs.h: Include "elhash.h".
239 (Vchar_attribute_hash_table): New external variable.
240 (struct Lisp_Charset): Delete `encoding_table'.
241 (CHARSET_ENCODING_TABLE): New implementation; refer
242 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
245 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
247 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
250 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
252 * text-coding.c (char_encode_big5): Prefer charset-g1 than
255 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
257 * chartab.c (uint8_byte_table_description): New constant.
258 (uint8-byte-table): Use `uint8_byte_table_description'.
259 (uint16_byte_table_description): New constant.
260 (uint16-byte-table): Use `uint16_byte_table_description'.
262 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
264 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
265 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
267 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
269 * mule-charset.c (Vcharset_ucs_ks): New variable.
270 (Qucs_ks): New variable.
271 (syms_of_mule_charset): Add new symbol `ucs-ks'.
272 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
274 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
276 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
278 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
279 (Fdecode_char): Likewise.
281 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
283 (Fdefine_char): Modify for Fdecode_char.
284 (Ffind_char): Likewise.
286 * mule-charset.c (Fdecode_char): Add new optional argument
288 (Fdecode_builtin_char): Modify for `Fdecode_char'.
290 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
292 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
293 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
294 (allocate_coding_system): Initialize initial-charsets of
295 CODESYS_BIG5 in XEmacs UTF-2000.
296 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
297 CODESYS_BIG5 in XEmacs UTF-2000.
298 (decode_coding_big5): Use initial-charset-g0 and -g1 of
299 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
301 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
303 (Qideograph_hanziku_{1 .. 12}): Likewise.
304 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
306 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
307 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
308 `ideograph-hanziku-{1 .. 12}'.
310 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
311 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
312 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
313 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
314 (DECODE_DEFINED_CHAR): New inline function.
315 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
317 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
319 * mule-charset.c (Vcharset_china3_jef): Renamed from
320 `Vcharset_japanese_jef_china3'.
321 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
322 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
323 `{MIN|MAX}_CHAR_JEF_CHINA3'..
324 (syms_of_mule_charset): Rename `china3-jef' from
325 `japanese-jef-china3'.
326 (complex_vars_of_mule_charset): Likewise; rename
327 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
329 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
330 `LEADING_BYTE_JEF_CHINA3'.
331 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
332 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
334 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
336 * mule-charset.c (encode_builtin_char_1): Comment out special code
337 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
339 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
340 (MAX_CHAR_MOJIKYO_0): Comment out.
341 (MIN_CHAR_CBETA): Changed to 0x00E20000.
342 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
343 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
344 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
346 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
348 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
349 (Qideograph_cbeta): New variable.
350 (encode_builtin_char_1): Comment out special code for
351 coded-charset `mojikyo' and `japanese-jef-china3'.
352 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
353 (complex_vars_of_mule_charset): Add new coded-charset
356 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
357 (MIN_CHAR_CBETA): New macro.
358 (MAX_CHAR_CBETA): New macro.
360 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
362 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
363 (LEADING_BYTE_JEF_CHINA3): New macro.
364 (MIN_CHAR_JEF_CHINA3): New macro.
365 (MAX_CHAR_JEF_CHINA3): Likewise.
366 (DECODE_CHAR): Fixed.
368 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
370 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
371 (Qjapanese_jef_china3): New variable.
372 (encode_builtin_char_1): Support `japanese-jef-china3'.
373 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
374 (complex_vars_of_mule_charset): Add new coded-charset
375 `japanese-jef-china3'.
377 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
379 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
380 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
381 94^4, 96^3, 96^4, 128^n and 256^n set.
382 (put_char_table): Use `XCHARSET_CELL_RANGE'.
383 (map_char_table): Likewise.
385 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
387 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
390 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
392 * chartab.h (get_char_id_table): New inline function.
394 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
397 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
399 * chartab.h (decode_char_table_range): New prototype in XEmacs
401 (put_char_id_table): New inline function in XEmacs UTF-2000.
403 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
405 (decode_char_table_range): Delete static declaration in XEmacs
408 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
410 * chartab.c (put_char_id_table): Use `put_char_table'.
412 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
414 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
415 (map_over_uint16_byte_table): Likewise.
416 (map_over_byte_table): Likewise.
417 (map_char_table): Modify for `map_over_uint8_byte_table',
418 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
421 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
423 * chartab.c (struct map_char_table_for_charset_arg): New
425 (map_char_table_for_charset_fun): New function.
426 (map_char_table): Use `map_char_table' for encoding_table of
429 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
431 * chartab.c (map_char_table): Check a character is found in
432 range->charset instead of non default value is defined in
433 char-table when range is CHARTAB_RANGE_ROW.
435 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
437 * chartab.c (map_char_id_table): Deleted.
438 (Fmap_char_attribute): Use `map_char_table' instead of
441 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
443 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
445 (update_syntax_table): Deleted in XEmacs UTF-2000.
447 * syntax.c (find_defun_start): Use `syntax_table' instead of
448 `mirror_syntax_table' in XEmacs UTF-2000.
449 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
451 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
453 (Fmatching_paren): Likewise.
454 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
456 (find_start_of_comment): Likewise.
457 (find_end_of_comment): Likewise.
458 (Fforward_comment): Likewise.
459 (scan_lists): Likewise.
460 (char_quoted): Likewise.
461 (Fbackward_prefix_chars): Likewise.
462 (scan_sexps_forward): Likewise.
463 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
464 (update_syntax_table): Likewise.
466 * search.c (skip_chars): Use `syntax_table' instead of
467 `mirror_syntax_table' in XEmacs UTF-2000.
469 (Freplace_match): Likewise.
471 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
472 `mirror_syntax_table' in XEmacs UTF-2000.
473 (WORDCHAR_P_UNSAFE): Likewise.
474 (re_match_2_internal): Likewise.
476 * font-lock.c (find_context): Use `buf->syntax_table' instead of
477 `buf->mirror_syntax_table' in XEmacs UTF-2000.
479 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
480 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
482 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
485 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
487 (print_char_table): Print `default_value' in XEmacs UTF-2000.
488 (char_table_description): Delete `mirror_table' in XEmacs
490 (fill_char_table): Don't call `update_syntax_table' in XEmacs
492 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
493 (Fcopy_char_table): Likewise.
494 (put_char_table): Don't call `update_syntax_table' in XEmacs
497 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
498 `buf->mirror_syntax_table' in XEmacs UTF-2000.
499 (casify_region_internal): Likewise.
501 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
503 * buffer.c (common_init_complex_vars_of_buffer): Don't use
504 `mirror_syntax_table' in XEmacs UTF-2000.
506 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
507 `buf->mirror_syntax_table' in XEmacs UTF-2000.
508 (Fexpand_abbrev): Likewise.
510 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
512 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
514 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
516 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
517 (map_over_uint16_byte_table): Likewise.
518 (map_over_byte_table): Likewise.
519 (get_char_id_table): Refer `cit->default_value'.
520 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
521 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
522 of character-id ranges.
523 (mark_char_table): Mark `ct->default_value'.
524 (char_table_description): Add `default_value'.
525 (fill_char_table): Use `default_value'.
526 (decode_char_table_range): Decode `nil' as
527 `CHARTAB_RANGE_DEFAULT'.
528 (get_char_id_table): Refer `cit->default_value'.
529 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
530 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
531 temporary hack; check value of char-table is bound or not.
532 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
534 * chartab.h (struct Lisp_Char_Table): Add new member
535 `default_value' in XEmacs UTF-2000.
536 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
537 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
540 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
542 * chartab.h (Lisp_Char_ID_Table): Deleted.
544 * chartab.c (char_table_description): Fix typo.
545 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
546 `Lisp_Char_ID_Table'.
548 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
550 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
553 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
556 * chartab.h (XCHAR_ID_TABLE): Deleted.
557 (XSETCHAR_ID_TABLE): Deleted.
558 (CHAR_ID_TABLE_P): Deleted.
560 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
562 (Fget_composite_char): Likewise.
563 (put_char_table): Likewise.
564 (add_char_attribute_alist_mapper): Fixed.
565 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
567 (Fget_char_attribute): Likewise.
568 (Fget_char_attribute): Likewise.
569 (Fmap_char_attribute): Likewise.
571 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
573 (encode_char_1): Likewise.
575 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
577 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
580 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
581 instead of `XCHAR_ID_TABLE'.
582 (remove_char_ccs): Likewise.
584 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
586 (Fget_composite_char): Likewise.
587 (Fchar_variants): Likewise.
588 (put_char_table): Likewise.
589 (add_char_attribute_alist_mapper): Likewise.
590 (Fchar_attribute_alist): Likewise.
591 (Fget_char_attribute): Likewise.
592 (Fput_char_attribute): Likewise.
593 (Fmap_char_attribute): Likewise.
594 (Fmap_char_attribute): Likewise.
596 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
598 (encode_char_1): Likewise.
600 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
602 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
603 `Lisp_Char_ID_Table'.
604 (mark_char_id_table): Deleted.
605 (print_char_id_table): Likewise.
606 (char_id_table_equal): Likewise.
607 (char_id_table_hash): Likewise.
608 (char_id_table_description): Likewise.
609 (char_id_table): Likewise.
610 (make_char_id_table): Use `Fmake_char_table' and
612 (get_char_id_table): Use `Lisp_Char_Table' instead of
613 `Lisp_Char_ID_Table'.
614 (put_char_id_table): Likewise.
615 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
617 (Fremove_char_attribute): Likewise.
618 (syms_of_chartab): Don't define type `char-id-table'.
620 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
621 (char_id_table): Likewise.
622 (GC_CHAR_ID_TABLE_P): Likewise.
623 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
624 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
625 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
626 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
627 (get_char_id_table): Use `Lisp_Char_Table' instead of
628 `Lisp_Char_ID_Table'.
629 (put_char_id_table_0): Likewise.
630 (put_char_id_table): Likewise.
632 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
634 * chartab.h: Lisp_Byte_Table related codes are moved from
637 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
639 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
641 * chartab.h: Don't include "chartab.h".
642 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
643 (Lisp_Char_ID_Table): Likewise.
644 (char_id_table): Likewise.
645 (XCHAR_ID_TABLE): Likewise.
646 (XSETCHAR_ID_TABLE): Likewise.
647 (CHAR_ID_TABLE_P): Likewise.
648 (GC_CHAR_ID_TABLE_P): Likewise.
649 (get_char_id_table): Likewise.
651 * char-ucs.h: Include "chartab.h".
652 (struct Lisp_Char_ID_Table): Moved to chartab.h.
653 (Lisp_Char_ID_Table): Likewise.
654 (char_id_table): Likewise.
655 (XCHAR_ID_TABLE): Likewise.
656 (XSETCHAR_ID_TABLE): Likewise.
657 (CHAR_ID_TABLE_P): Likewise.
658 (GC_CHAR_ID_TABLE_P): Likewise.
659 (get_char_id_table): Likewise.
661 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
663 * chartab.c (copy_uint8_byte_table): New function.
664 (copy_uint16_byte_table): New function.
665 (copy_byte_table): New function.
666 (map_over_uint8_byte_table): Modify to avoid huge numbers of
668 (map_over_uint16_byte_table): Likewise.
669 (map_over_byte_table): Likewise.
670 (get_byte_table): Move prototype to chartab.h.
671 (put_byte_table): Likewise.
672 (put_char_id_table_0): Moved to chartab.h.
673 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
674 (char_table_entry_equal): Likewise.
675 (char_table_entry_hash): Likewise.
676 (char_table_entry_description): Likewise.
677 (char_table_entry): Likewise.
678 (make_char_table_entry): Likewise.
679 (copy_char_table_entry): Likewise.
680 (get_non_ascii_char_table_value): Likewise.
681 (map_over_charset_ascii): Likewise.
682 (map_over_charset_control_1): Likewise.
683 (map_over_charset_row): Likewise.
684 (map_over_other_charset): Likewise.
685 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
686 (print_char_table): Likewise.
687 (char_table_equal): Likewise.
688 (char_table_hash): Likewise.
689 (char_table_description): Likewise.
690 (fill_char_table): Likewise.
691 (Fcopy_char_table): Likewise.
692 (get_char_table): Likewise.
693 (Fget_range_char_table): Likewise.
694 (put_char_table): Likewise.
695 (map_char_table): Likewise.
696 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
699 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
701 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
702 `Vauto_fill_chars' in XEmacs UTF-2000.
704 * chartab.h (get_byte_table): New prototype [moved from
706 (put_byte_table): Likewise [moved from chartab.c].
707 (put_char_id_table_0): New inline function [moved from chartab.c].
708 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
709 (Lisp_Char_Table_Entry): Likewise.
710 (char_table_entry): Likewise.
711 (XCHAR_TABLE_ENTRY): Likewise.
712 (XSETCHAR_TABLE_ENTRY): Likewise.
713 (CHAR_TABLE_ENTRYP): Likewise.
714 (CHECK_CHAR_TABLE_ENTRY): Likewise.
715 (NUM_ASCII_CHARS): Likewise.
716 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
717 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
719 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
721 * chartab.c (get_char_id_table): Change interface.
722 (put_char_id_table_0): New function.
723 (put_char_id_table): Change interface; new implementation.
724 (Fget_composite_char): Modify for interface change of
726 (Fchar_variants): Likewise.
727 (add_char_attribute_alist_mapper): Likewise.
728 (Fchar_attribute_alist): Likewise.
729 (Fget_char_attribute): Likewise.
730 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
731 as same as character as the first argument like `put-char-table';
732 modify for interface change of `put_char_id_table'.
733 (Fremove_char_attribute): Modify for interface change of
736 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
738 * text-coding.c: Sync up with XEmacs 21.2.41.
739 (COMPOSE_ADD_CHAR): Modify for interface change of
742 * mule-charset.c (put_char_ccs_code_point): Modify for interface
743 change of `put_char_id_table'.
744 (remove_char_ccs): Likewise.
746 * chartab.h (put_char_id_table): Change interface.
748 * char-ucs.h (get_char_id_table): Change interface.
749 (charset_code_point): Modify for interface change of
751 (encode_char_1): Likewise.
753 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
755 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
757 (map_over_uint16_byte_table): Likewise.
758 (map_over_byte_table): Likewise.
759 (map_char_id_table): Add new argument `range' like
761 (Fmap_char_attribute): Add new argument `range' like
764 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
766 * chartab.c (map_over_uint8_byte_table): Change interface of
767 mapping function to use struct chartab_range instead of Emchar.
768 (map_over_uint16_byte_table): Likewise.
769 (map_over_byte_table): Likewise.
770 (map_char_id_table): Likewise.
771 (struct slow_map_char_id_table_arg): Deleted.
772 (slow_map_char_id_table_fun): Deleted.
773 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
774 function `slow_map_char_table_fun' instead of struct
775 `slow_map_char_id_table_arg' and function
776 `slow_map_char_id_table_fun'.
778 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
780 * mule-charset.c: Move char-it-table related codes to chartab.c.
781 (Vutf_2000_version): Moved to chartab.c.
782 (Fdefine_char): Likewise.
783 (Ffind_char): Likewise.
784 (syms_of_mule_charset): Move types `uint8-byte-table',
785 `uint16-byte-table', `byte-table' and `char-id-table' to
786 chartab.c; move functions `char_attribute_list,
787 `find_char_attribute_table, `char_attribute_alist,
788 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
789 `map_char_attribute, `define_char, `find_char, `char_variants and
790 `get_composite_char to chartab.c; move symbols `=>ucs',
791 `->decomposition', `compat', `isolated', `initial', `medial',
792 `final', `vertical', `noBreak', `fraction', `super', `sub',
793 `circle', `square', `wide', `narrow', `small' and `font' to
795 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
796 setting codes for `Vcharacter_composition_table' and
797 `Vcharacter_variant_table' to chartab.c.
798 (complex_vars_of_mule_charset): Move setting code for
799 `Vchar_attribute_hash_table' to chartab.c.
801 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
802 (make_char_id_table): New prototype.
803 (put_char_id_table): Likewise.
804 (Fget_char_attribute): Likewise.
806 * chartab.c: Move char-id-table related code from mule-charset.c.
807 (Vutf_2000_version): Moved from mule-charset.c.
809 * char-ucs.h (Qucs): New external variable.
810 (put_char_ccs_code_point): New prototype.
811 (remove_char_ccs): Likewise.
813 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
815 * mule-charset.c (Vcharset_ucs_jis): New variable.
816 (Qucs_jis): Likewise.
817 (syms_of_mule_charset): Add new symbol `ucs-jis'.
818 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
820 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
822 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
824 * mule-charset.c (map_over_uint8_byte_table): New function.
825 (map_over_uint16_byte_table): Likewise.
826 (map_over_byte_table): Likewise.
827 (map_char_id_table): Likewise.
828 (slow_map_char_id_table_fun): Likewise.
829 (Fmap_char_attribute): Likewise.
830 (syms_of_mule_charset): Add new function `map-char-attribute'.
832 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
834 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
835 (syms_of_mule_charset): Add new function `find-char'.
837 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
839 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
841 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
842 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
844 (complex_vars_of_mule_charset): Add new coded-charset
845 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
848 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
850 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
852 * mule-charset.c (encode_builtin_char_1): Purge codes about
853 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
854 {MIN|MAX}_CHAR_HEBREW.
855 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
856 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
858 * char-ucs.h (MIN_CHAR_GREEK): Purged.
859 (MAX_CHAR_GREEK): Purged.
860 (MIN_CHAR_CYRILLIC): Purged.
861 (MAX_CHAR_CYRILLIC): Purged.
862 (MIN_CHAR_HEBREW): Commented out.
863 (MAX_CHAR_HEBREW): Likewise.
865 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
867 * mule-charset.c (Qto_ucs): New variable.
868 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
869 (Fdefine_char): Likewise.
870 (syms_of_mule_charset): Add new symbol `=>ucs'.
872 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
874 * mule-charset.c (Fdecode_char): Fixed.
876 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
878 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
879 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
882 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
884 * mule-charset.c (Vcharset_ucs_big5): New variable.
885 (Qucs_big5): Likewise.
886 (syms_of_mule_charset): Add new symbol `ucs-big5'.
887 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
889 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
891 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
893 * mule-charset.c (decode_builtin_char): Check Big5 code range
894 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
896 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
898 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
899 (Qchinese_gb12345): Likewise.
900 (Fdecode_builtin_char): Fixed.
901 (syms_of_mule_charset): Add `chinese-gb12345'.
902 (complex_vars_of_mule_charset): Add coded-charset
905 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
906 (LEADING_BYTE_CHINESE_GB12345): New macro.
908 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
910 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
911 and `latin-viscii-upper' for `latin-viscii'.
913 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
915 * mule-charset.c (Fdecode_builtin_char): Comment out
916 regularization code for ISO-IR GR representation.
918 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
920 * mule-charset.c (decode_builtin_char): New function; renamed from
921 `make_builtin_char'; return -1 instead of signal.
922 (Fdecode_builtin_char): Use `decode_builtin_char'.
924 * char-ucs.h (decode_builtin_char): New prototype; renamed from
926 (DECODE_CHAR): Use `decode_builtin_char' instead of
927 `make_builtin_char'; use mapping table of `chinese-big5' for
928 `chinese-big5-{1,2}'.
930 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
932 * text-coding.c (char_encode_big5): New function.
933 (char_finish_big5): Likewise.
934 (reset_encoding_stream): Use `char_encode_big5' and
935 `char_finish_big5' for CODESYS_BIG5.
936 (mule_encode): Don't use `encode_coding_big5'.
937 (encode_coding_big5): Deleted.
939 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
941 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
942 0x81- in XEmacs UTF-2000.
943 (detect_coding_big5): Likewise.
945 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
947 * mule-charset.c (Fdefine_char): Don't use a CCS property to
948 generate character-id if the CCS property does not have
949 corresponding predefined character.
950 (make_builtin_char): Return -1 if corresponding predefined
951 character is not found.
952 (Fdecode_char): Return nil if corresponding character is not
954 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
955 don't map to builtin ucs space.
957 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
959 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
960 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
962 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
964 * mule-charset.c (Vcharset_ideograph_gt): New variable.
965 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
966 (Qideograph_gt): Likewise.
967 (Qideograph_gt_pj_{1..11}): Likewise.
968 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
969 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
970 `ideograph-gt-pj-11'.
971 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
972 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
973 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
975 * char-ucs.h (LEADING_BYTE_GT): New macro.
976 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
977 (MIN_CHAR_GT): Likewise.
978 (MAX_CHAR_GT): Likewise.
980 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
982 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
983 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
985 * doprnt.c (unsigned_int_converters): Add `c'.
986 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
988 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
989 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
991 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
992 (MAX_CHAR_MOJIKYO_0): New macro.
993 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
995 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
997 * mule-charset.c (Fdefine_char): Delete cemented out code.
998 (encode_builtin_char_1): Modify for new allocation of builtin
1001 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1003 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005 * mule-charset.c (Vcharset_ucs_cns): New variable.
1006 (Qucs_cns): New variable.
1007 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1008 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1010 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1012 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1014 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1016 * search.c (search_buffer): Make `charset_base_code' as
1017 character-id >> 6 to eliminate the corresponding last byte in
1018 UTF-8 representation [I'm not sure it is right thing].
1019 (boyer_moore): Likewise.
1021 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1023 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1024 representation in MULE.
1026 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1028 * text-coding.c (Fmake_coding_system): Use
1029 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1030 `EXTERNAL_PROPERTY_LIST_LOOP'.
1032 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1034 * text-coding.c (decode_output_utf8_partial_char): New function.
1035 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1037 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039 * text-coding.c (decode_coding_utf8): Output original byte
1040 sequence if it is broken; change order of conditions.
1042 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1045 * mb-multibyte.h (BYTE_ASCII_P):
1046 Use bit ops for char-signedness safety.
1047 (BYTE_C0_P): Use bit ops for char-signedness safety.
1048 (BYTE_C1_P): Use bit ops for char-signedness safety.
1050 * character.h: (XCHAR_OR_CHAR_INT):
1051 Always use inline function.
1052 Remove redundant type checking assert() - XINT will abort quite
1055 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1057 * text-coding.c: (Fencode_shift_jis_char):
1058 (Fencode_big5_char):
1059 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1060 Replace 0 with '\0' when working with bytes.
1061 Replace initial "(" with "\(" in docstrings.
1063 (Fmake_coding_system):
1064 When type is ccl and value is vector, register it with a proper
1065 symbol. And checks whether the given ccl program is valid.
1066 (mule_decode): When calling ccl_driver, if src indicates
1067 NULL pointer, set an empty string instead.
1068 (mule_encode): Likewise.
1071 (detect_coding_sjis):
1072 (decode_coding_sjis):
1073 (detect_coding_big5):
1074 (decode_coding_big5):
1075 (detect_coding_ucs4):
1076 (decode_coding_ucs4):
1077 (detect_coding_utf8):
1078 (decode_coding_utf8):
1079 (detect_coding_iso2022):
1080 (decode_coding_iso2022):
1081 (decode_coding_no_conversion):
1083 Make all detecting and decoding functions take an Extbyte * arg.
1084 (text_encode_generic):
1085 (encode_coding_big5):
1086 (encode_coding_no_conversion):
1088 Make all encoding functions take a Bufbyte * arg.
1089 Use size_t instead of unsigned int for memory sizes.
1090 Only cast to unsigned char whenever dereferencing Extbyte *.
1092 (struct lrecord_description fcd_description_1): Use countof.
1093 (complex_vars_of_file_coding):
1094 Use countof instead of sizeof.
1095 Use CHECK_NATNUM instead of CHECK_INT.
1097 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1099 * mule-charset.c (Fget_char_attribute): Add new optional argument
1101 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1102 (remove_char_ccs): Likewise.
1104 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1106 * text-coding.c (char_encode_shift_jis): New implementation in
1108 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1111 * mule-charset.c (Vcharset_chinese_big5): New variable in
1113 (Qchinese_big5): New variable in UTF-2000.
1114 (BIG5_SAME_ROW): New macro in UTF-2000.
1115 (make_builtin_char): Use builtin characters of
1116 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1117 characters of `Vcharset_chinese_big5'.
1118 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1119 (complex_vars_of_mule_charset): Add new coded-charset
1120 `chinese-big5' in UTF-2000.
1122 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1123 (Vcharset_chinese_big5): New external variable declaration.
1124 (Vcharset_japanese_jisx0208_1990): Likewise.
1126 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1128 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1130 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1132 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1134 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1135 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1136 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1139 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1141 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1143 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1145 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1148 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1150 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1151 for `CHARSET_BY_ATTRIBUTES'.
1152 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1153 `CHARSET_BY_ATTRIBUTES'.
1155 * text-coding.c (struct decoding_stream): Rename member `CH' to
1157 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1158 (decode_coding_sjis): Likewise.
1159 (decode_coding_big5): Likewise.
1160 (decode_coding_ucs4): Likewise.
1161 (decode_coding_utf8): Likewise.
1162 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1163 `CHARSET_BY_ATTRIBUTES'.
1164 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1165 `str->counter'; decode 3, 4 bytes sets.
1166 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1168 (decode_coding_no_conversion): Use `str->cpos' instead of
1171 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1172 (Qmojikyo_2022_1): New variable.
1173 (make_charset): Don't use `CHARSET_TYPE_*'.
1174 (range_charset_code_point): Support coded-charset
1176 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1177 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1178 `CHARSET_BY_ATTRIBUTES'.
1179 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1180 `CHARSET_BY_ATTRIBUTES'.
1181 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1182 (complex_vars_of_mule_charset): Add new coded-charset
1185 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1186 interface; changed to inline function.
1188 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1189 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1190 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1191 (CHARSET_TYPE_94): Deleted.
1192 (CHARSET_TYPE_94X94): Deleted.
1193 (CHARSET_TYPE_96): Deleted.
1194 (CHARSET_TYPE_96X96): Deleted.
1195 (CHARSET_TYPE_128): Deleted.
1196 (CHARSET_TYPE_128X128): Deleted.
1197 (CHARSET_TYPE_256): Deleted.
1198 (CHARSET_TYPE_256X256): Deleted.
1199 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1201 (DECODE_MOJIKYO_2022): New inline function.
1202 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1203 `Vcharset_mojikyo_2022_1'.
1205 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1207 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1209 (put_byte_table): Likewise.
1210 (char_id_table_equal): Use `get_byte_table' [new implementation].
1212 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1214 * mule-charset.c: Include <limits.h> in UTF-2000.
1215 (BT_UINT8_MIN): New macro in UTF-2000.
1216 (BT_UINT8_MAX): New macro in UTF-2000.
1217 (BT_UINT8_t): New macro in UTF-2000.
1218 (BT_UINT8_nil): New macro in UTF-2000.
1219 (BT_UINT8_unbound): New macro in UTF-2000.
1220 (INT_UINT8_P): New inline function in UTF-2000.
1221 (UINT8_VALUE_P): New inline function in UTF-2000.
1222 (UINT8_ENCODE): New inline function in UTF-2000.
1223 (UINT8_DECODE): New inline function in UTF-2000.
1224 (mark_uint8_byte_table): New function in UTF-2000.
1225 (print_uint8_byte_table): New function in UTF-2000.
1226 (uint8_byte_table_equal): New function in UTF-2000.
1227 (uint8_byte_table_hash): New function in UTF-2000.
1228 (make_uint8_byte_table): New function in UTF-2000.
1229 (uint8_byte_table_same_value_p): New function in UTF-2000.
1230 (BT_UINT16_MIN): New macro in UTF-2000.
1231 (BT_UINT16_MAX): New macro in UTF-2000.
1232 (BT_UINT16_t): New macro in UTF-2000.
1233 (BT_UINT16_nil): New macro in UTF-2000.
1234 (BT_UINT16_unbound): New macro in UTF-2000.
1235 (INT_UINT16_P): New inline function in UTF-2000.
1236 (UINT16_VALUE_P): New inline function in UTF-2000.
1237 (UINT16_ENCODE): New inline function in UTF-2000.
1238 (UINT16_DECODE): New inline function in UTF-2000.
1239 (UINT8_TO_UINT16): New inline function in UTF-2000.
1240 (mark_uint16_byte_table): New function in UTF-2000.
1241 (print_uint16_byte_table): New function in UTF-2000.
1242 (uint16_byte_table_equal): New function in UTF-2000.
1243 (uint16_byte_table_hash): New function in UTF-2000.
1244 (make_uint16_byte_table): New function in UTF-2000.
1245 (uint16_byte_table_same_value_p): New function in UTF-2000.
1246 (print_byte_table): New function in UTF-2000.
1247 (byte-table): Use `print_byte_table' as printer.
1248 (make_byte_table): Delete second argument `older'.
1249 (byte_table_same_value_p): New function in UTF-2000.
1250 (copy_byte_table): Deleted.
1251 (get_byte_table): New function in UTF-2000.
1252 (put_byte_table): New function in UTF-2000.
1253 (print_char_id_table): New function in UTF-2000.
1254 (char-id-table): Use `print_char_id_table' as printer.
1255 (make_char_id_table): Delete second argument `older'.
1256 (get_char_id_table): Use `get_byte_table [new implementation].
1257 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1259 (Ffind_char_attribute_table): New function in UTF-2000.
1260 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1261 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1262 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1263 (syms_of_mule_charset): Add new function
1264 `find-char-attribute-table' in UTF-2000.
1266 * lrecord.h (enum lrecord_type): Add
1267 `lrecord_type_uint16_byte_table' and
1268 `lrecord_type_uint8_byte_table'.
1270 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1271 (Lisp_Uint8_Byte_Table): New type.
1272 (XUINT8_BYTE_TABLE): New macro.
1273 (XSETUINT8_BYTE_TABLE): New macro.
1274 (UINT8_BYTE_TABLE_P): New macro.
1275 (GC_UINT8_BYTE_TABLE_P): New macro.
1276 (struct Lisp_Uint16_Byte_Table): New structure.
1277 (Lisp_Uint16_Byte_Table): New type.
1278 (XUINT16_BYTE_TABLE): New macro.
1279 (XSETUINT16_BYTE_TABLE): New macro.
1280 (UINT16_BYTE_TABLE_P): New macro.
1281 (GC_UINT16_BYTE_TABLE_P): New macro.
1283 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1285 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1286 (Vcharacter_ideographic_strokes_table): Deleted.
1287 (Vcharacter_total_strokes_table): Deleted.
1288 (Vcharacter_morohashi_daikanwa_table): Deleted.
1289 (Vcharacter_decomposition_table): Deleted.
1290 (Qname): Deleted because it is duplicated.
1291 (Qideographic_radical): Deleted.
1292 (Qideographic_strokes): Deleted.
1293 (Qtotal_strokes): Deleted.
1294 (Qmorohashi_daikanwa): Deleted.
1295 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1296 `ideographic-radical', `ideographic-strokes', `total-strokes',
1297 `morohashi-daikanwa' and `->decomposition'.
1298 (Fget_char_attribute): Likewise.
1299 (Fput_char_attribute): Likewise; use `make-vector' instead of
1300 `make_older_vector' for `->decomposition' value.
1301 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1302 `ideograph-daikanwa'.
1303 (syms_of_mule_charset): Delete builtin symbols `name',
1304 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1305 `morohashi-daikanwa'.
1306 (vars_of_mule_charset): Don't setup
1307 `Vcharacter_ideographic_radical_table',
1308 `Vcharacter_ideographic_strokes_table',
1309 `Vcharacter_total_strokes_table',
1310 `Vcharacter_morohashi_daikanwa_table' and
1311 `Vcharacter_decomposition_table'.
1313 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1315 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1316 `make_older_vector', `make_vector_newer_1' and
1317 `make_vector_newer'.
1319 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1320 `make_older_vector' and `make_vector_newer'.
1322 * config.h.in (HAVE_GGC): New macro.
1324 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326 * mule-charset.c (struct char_attribute_list_closure): New
1327 structure in UTF-2000.
1328 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1329 (Fchar_attribute_list): Likewise.
1330 (Fset_charset_mapping_table): Use `make_vector_newer'.
1331 (Fdecode_builtin_char): New function in UTF-2000.
1332 (syms_of_mule_charset): Add new function `char-attribute-list' and
1333 `decode-builtin-char' in UTF-2000.
1335 * lisp.h (make_vector_newer): New prototype.
1337 * alloc.c (make_vector_newer_1): New function.
1338 (make_vector_newer): New function.
1340 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1342 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1345 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1347 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1348 (Vcharacter_attribute_table): Deleted.
1349 (Vcharacter_name_table): Deleted.
1350 (put_char_attribute): Deleted.
1351 (remove_char_attribute): Deleted.
1352 (struct char_attribute_alist_closure): New structure.
1353 (add_char_attribute_alist_mapper): New function.
1354 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1355 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1356 (Fget_char_attribute): Likewise.
1357 (Fput_char_attribute): Likewise.
1358 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1359 of `remove_char_attribute'.
1360 (Fdefine_char): Return character.
1361 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1362 and `Vcharacter_name_table'.
1363 (complex_vars_of_mule_charset): Likewise
1364 `Vchar_attribute_hash_table'.
1366 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368 * character.h (CHARC_CHARSET): New macro.
1369 (CHARC_CHARSET_ID): New macro.
1370 (CHARC_CODE_POINT): New macro.
1371 (CHARC_COLUMNS): New macro.
1372 (CHARC_TO_CHAR): New inline function.
1373 (CHARC_EQ): New inline function.
1374 (CHARC_ASCII_EQ): New inline function.
1375 (CHARC_IS_SPACE): New inline function.
1376 (ASCII_TO_CHARC): New inline function.
1378 * char-ucs.h (encode_char_2): Deleted.
1379 (ENCODE_CHAR): Use `encode_char_1' again.
1380 (breakup_char_1): Likewise.
1381 (CHAR_TO_CHARC): New inline function.
1383 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1385 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1387 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1388 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1389 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1390 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1391 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1393 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1395 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1397 (x_output_display_block): Use `CHARC_CHARSET' and
1400 * redisplay-tty.c (tty_output_display_block): Use
1402 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1404 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1406 * insdel.c (find_charsets_in_charc_string): Use
1408 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1409 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1410 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1411 (convert_charc_string_into_malloced_string): Likewise.
1413 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1415 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1416 instead of <Emchar_dynarr *> for buf; use
1417 `convert_bufbyte_string_into_charc_dynarr' instead of
1418 `convert_bufbyte_string_into_emchar_dynarr'; use
1419 `find_charsets_in_charc_string' instead of
1420 `find_charsets_in_emchar_string'.
1423 - Include "character.h".
1424 (struct rune): New member `cglyph'; delete member `chr'.
1426 * redisplay.c (redisplay_text_width_charc_string): New function;
1427 delete `redisplay_text_width_emchar_string'.
1428 (rtw_charc_dynarr): New variable; renamed from
1429 `rtw_emchar_dynarr'.
1430 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1431 `rtw_emchar_dynarr'; use
1432 `convert_bufbyte_string_into_charc_dynarr' instead of
1433 `convert_bufbyte_string_into_emchar_dynarr'; use
1434 `redisplay_text_width_charc_string' instead of
1435 `redisplay_text_width_emchar_string'.
1436 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1437 instead of `rtw_emchar_dynarr'; use
1438 `convert_bufbyte_string_into_charc_dynarr' instead of
1439 `convert_bufbyte_string_into_emchar_dynarr'.
1440 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1441 `redisplay_text_width_charc_string' instead of
1442 `redisplay_text_width_emchar_string'.
1443 (create_text_block): Modify for <struct rune> change.
1444 (generate_formatted_string_db): Likewise.
1445 (create_string_text_block): Likewise.
1446 (pixel_to_glyph_translation): Likewise.
1448 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1449 instead of <const Emchar *>.
1450 (x_text_width): Likewise.
1451 (x_output_display_block): Use <Charc_dynarr *> instead
1452 <Emchar_dynarr *>; modify for <structure rune> change.
1453 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1456 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1457 <const Emchar *>; use `charc_string_displayed_columns' instead of
1458 `emchar_string_displayed_columns'.
1459 (tty_output_display_block): Use <Charc_dynarr *> instead of
1460 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1461 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1462 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1463 `tty_output_emchar_dynarr_dynarr'.
1464 (tty_output_charc_dynarr): New function; delete
1465 `tty_output_charc_dynarr'.
1467 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1468 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1469 <Emchar_dynarr *> for buf; use
1470 `convert_bufbyte_string_into_charc_dynarr' instead of
1471 `convert_bufbyte_string_into_emchar_dynarr'.
1473 * frame.c (title_string_charc_dynarr): New variable; renamed from
1474 `title_string_emchar_dynarr'.
1475 (generate_title_string): Use `title_string_charc_dynarr' instead
1476 of `title_string_emchar_dynarr'; use
1477 `convert_charc_string_into_malloced_string' instead of
1478 `convert_emchar_string_into_malloced_string'.
1479 (init_frame): Use `title_string_charc_dynarr' instead of
1480 `title_string_emchar_dynarr'.
1483 - Include "character.h".
1484 (struct console_methods): Use <const Charc *> instead of <const
1485 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1486 <Emchar_dynarr *> in output_string_method.
1488 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1491 * console-stream.c (stream_text_width): Use <const Charc *>
1492 instead of <const Emchar *>.
1494 * character.h (Charc_dynarr): New type.
1496 * char-ucs.h (structure Charc): New structure; define new type
1499 * char-lb.h (DECODE_CHAR): New inline function.
1500 (encode_char_1): New inline function.
1501 (ENCODE_CHAR): New macro.
1502 (structure Charc): New structure; define new type `Charc'.
1504 * char-1byte.h (Vcharset_control_1): New macro.
1505 (Vcharset_latin_iso8859_1): New macro.
1506 (DECODE_CHAR): New inline function.
1507 (encode_char_1): New inline function.
1508 (ENCODE_CHAR): New macro.
1509 (structure Charc): New structure; define new type `Charc'.
1511 * insdel.c (find_charsets_in_charc_string): New function; delete
1512 `find_charsets_in_emchar_string'.
1513 (charc_string_displayed_columns): New function; delete
1514 `emchar_string_displayed_columns'.
1515 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1516 `convert_bufbyte_string_into_emchar_dynarr'.
1517 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1518 `convert_charc_string_into_bufbyte_dynarr'.
1519 (convert_charc_string_into_malloced_string): New function; delete
1520 `convert_charc_string_into_malloced_string'.
1522 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1523 `find_charsets_in_emchar_string'.
1524 (charc_string_displayed_columns): New prototype; delete
1525 `emchar_string_displayed_columns'.
1526 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1527 `convert_charc_string_into_bufbyte_dynarr'.
1528 (convert_charc_string_into_malloced_string): New prototype; delete
1529 `convert_charc_string_into_malloced_string'.
1531 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1535 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1539 * char-ucs.h: Use <short> for <Charset_ID>.
1541 * mule-charset.h, char-1byte.h: Use <unsigned char> for
1544 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1546 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1549 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1551 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1553 (Qmorohashi_daikanwa): New variable.
1554 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1555 for `morohashi-daikanwa' attribute.
1556 (Fget_char_attribute): Likewise.
1557 (Fput_char_attribute): Likewise.
1558 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1559 has the same value of `ideograph-daikanwa'.
1560 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1561 (vars_of_mule_charset): Setup
1562 `Vcharacter_morohashi_daikanwa_table'.
1564 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1566 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1568 (add_charset_to_list_mapper): Add `key' instead of
1569 `XCHARSET_NAME (value)' to return aliases.
1571 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1573 * mule-charset.c (Vcharacter_ideographic_radical_table): New
1575 (Vcharacter_ideographic_strokes_table): New variable.
1576 (Qideographic_radical): New variable.
1577 (Qideographic_strokes): New variable.
1578 (Fchar_attribute_alist): Use
1579 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1580 attribute; use `Vcharacter_ideographic_strokes_table' for
1581 `ideographic-strokes' attribute.
1582 (Fget_char_attribute): Likewise.
1583 (Fput_char_attribute): Likewise.
1584 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1585 `ideographic-strokes'.
1586 (vars_of_mule_charset): Setup
1587 `Vcharacter_ideographic_radical_table' and
1588 `Vcharacter_ideographic_strokes_table'.
1590 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1592 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1593 (Qtotal_strokes): New variable.
1594 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1595 `total-strokes' attribute.
1596 (Fget_char_attribute): Likewise.
1597 (Fput_char_attribute): Likewise.
1598 (syms_of_mule_charset): Add new symbol `total-strokes'.
1599 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1601 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1603 * mule-charset.c (Vcharacter_decomposition_table): New variable.
1604 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1606 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1607 `->decomposition' attribute.
1608 (Fput_char_attribute): Likewise.
1609 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1611 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1613 * mule-charset.c (decoding_table_check_elements): New function.
1614 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1616 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1618 * mule-charset.c (Fset_charset_mapping_table): Use
1619 `put_char_ccs_code_point'.
1621 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1623 * mule-charset.c (decoding_table_put_char): New inline function.
1624 (put_char_ccs_code_point): Use `decoding_table_put_char'.
1626 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1629 (XCHARSET_BYTE_SIZE): New macro.
1630 (decoding_table_remove_char): New inline function.
1631 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1632 `decoding_table_remove_char'.
1633 (remove_char_ccs): Use `decoding_table_remove_char'.
1634 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1636 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1638 * mule-charset.c (Vcharacter_name_table): New variable.
1639 (Qname): New variable.
1640 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1642 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1643 `Vcharacter_name_table' for `name' attribute.
1644 (Fremove_char_attribute): Use function `remove_char_ccs'.
1645 (put_char_ccs_code_point): New function.
1646 (remove_char_ccs): New function.
1647 (syms_of_mule_charset): Add new symbol `name'.
1648 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1650 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1652 * mule-charset.c (make_byte_table): Add new argument `older'.
1653 (make_char_id_table): Likewise.
1654 (copy_char_id_table): Comment out because it is not used.
1655 (put_char_id_table): Modify for `make_byte_table'.
1656 (Fput_char_attribute): Make encoding_table as older object;
1657 inherit older bit of `Vcharacter_composition_table'.
1658 (mark_charset): Don't mark `cs->encoding_table'.
1659 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1660 normal object; make `Vcharacter_composition_table' as an older
1661 object; delete staticpro for `Vcharacter_composition_table'; make
1662 `Vcharacter_variant_table' as a normal object.
1664 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1665 (mark_object): Don't check older object in UTF-2000.
1667 * lrecord.h (struct lrecord_header): Add new member `older' in
1669 (set_lheader_implementation): Setup `SLI_header->older' in
1671 (set_lheader_older_implementation): New macro in UTF-2000.
1672 (OLDER_RECORD_P): New macro in UTF-2000.
1673 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1674 (alloc_older_lcrecord): New prototype in UTF-2000.
1675 (alloc_older_lcrecord_type): New macro in UTF-2000.
1677 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1679 * mule-charset.c (byte_table_description): Use
1680 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1681 (char_id_table_description): Delete bogus `, 1'.
1682 (Fget_char_attribute): Refer encoding_table of each coded-charset
1683 to get value of coded-charset attribute of a character.
1684 (Fput_char_attribute): Use `make_older_vector' instead of
1685 `make_vector'; use encoding_table of each coded-charset to store
1686 value of coded-charset attribute of a character.
1687 (Fremove_char_attribute): Use encoding_table of each coded-charset
1688 to store value of coded-charset attribute of a character.
1689 (mark_charset): Mark `cs->encoding_table'; don't mark
1690 `cs->decoding_table'.
1691 (charset_description): Add description of new member
1693 (make_charset): Initialize `encoding_table'.
1695 * char-ucs.h (struct Lisp_Charset): Add new member
1697 (CHARSET_ENCODING_TABLE): New macro.
1698 (XCHARSET_ENCODING_TABLE): New macro.
1699 (charset_code_point): New implementation.
1700 (encode_char_1): Likewise.
1702 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1703 (disksave_object_finalization_1): Call finalizers of
1704 `all_older_lcrecords' in UTF-2000.
1705 (make_older_vector): New function in UTF-2000.
1706 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1709 * lisp.h (make_older_vector): New prototype in UTF-2000.
1711 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1713 * lrecord.h (enum lrecord_type): Rename
1714 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1716 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1717 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1718 `get_char_code_table'.
1720 * mule-charset.c (mark_char_id_table): Renamed from
1721 `mark_char_code_table'.
1722 (char_id_table_equal): Renamed from `char_code_table_equal'.
1723 (char_id_table_hash): Renamed from `char_code_table_hash'.
1724 (make_char_id_table): Renamed from `make_char_code_table'.
1725 (copy_char_id_table): Renamed from `copy_char_code_table'.
1726 (get_char_id_table): Renamed from `get_char_code_table'.
1727 (put_char_id_table): Renamed from `put_char_code_table'.
1728 (to_char_id): Renamed from `to_char_code'.
1730 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1731 `Lisp_Char_Code_Table'.
1732 (char_id_table): Renamed from `char_code_table'.
1733 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1734 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1735 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1736 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1737 (get_char_id_table): Renamed from `get_char_code_table'.
1739 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1741 * lrecord.h (enum lrecord_type): Rename
1742 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1744 * mule-charset.c (mark_byte_table): Renamed from
1745 `mark_char_byte_table'.
1746 (byte_table_equal): Renamed from `char_byte_table_equal'.
1747 (byte_table_hash): Renamed from `byte_table_hash'.
1748 (make_byte_table): Renamed from `make_byte_table'.
1749 (copy_byte_table): Renamed from `copy_char_byte_table'.
1751 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1752 `Lisp_Char_Byte_Table'.
1753 (byte_table): Renamed from `char_byte_table'.
1754 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1755 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1756 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1757 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1759 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1761 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1762 (dfc_convert_to_internal_format): Likewise.
1764 * text-coding.c (Fcoding_system_canonical_name_p): New function.
1765 * text-coding.c (Fcoding_system_alias_p): New function.
1766 * text-coding.c (Fcoding_system_aliasee): New function.
1767 * text-coding.c (append_suffix_to_symbol): New function.
1768 * text-coding.c (dangling_coding_system_alias_p): New function.
1769 * text-coding.c (Ffind_coding_system):
1770 * text-coding.c (Fcopy_coding_system):
1771 * text-coding.c (encode_coding_no_conversion):
1772 * text-coding.c (syms_of_file_coding):
1773 * text-coding.c (vars_of_file_coding):
1774 Rewrite coding system alias code.
1775 Allow nested aliases, like symbolic links.
1776 Allow redefinition of coding system aliases.
1777 Prevent existence of dangling coding system aliases.
1778 Eliminate convert_to_external_format.
1779 Eliminate convert_to_internal_format.
1781 * text-coding.c: Change enum eol_type to eol_type_t.
1783 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1785 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1786 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1788 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1789 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1791 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1793 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1794 `ideograph-daikanwa'.
1796 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1797 (Vcharset_ucs_bmp): Likewise.
1798 (Vcharset_mojikyo): Add new extern variable definition.
1799 (Vcharset_latin_iso8859_2): Deleted because it is not used.
1800 (Vcharset_latin_iso8859_3): Likewise.
1801 (Vcharset_latin_iso8859_4): Likewise.
1802 (Vcharset_latin_iso8859_9): Likewise.
1803 (Vcharset_latin_viscii_lower): Likewise.
1804 (Vcharset_latin_viscii_upper): Likewise.
1805 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1806 `mojikyo' code-point is used to decode.
1807 (encode_char_2): New function [to convert `mojikyo' code-point to
1808 Mojikyo font encoding].
1809 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1810 (breakup_char_1): Likewise.
1811 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1813 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815 * text-coding.c (Fmake_coding_system): Add document about
1816 `disable-composition' property.
1818 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820 * text-coding.c (Qdisable_composition): New variable; delete
1822 (Fmake_coding_system): Add new property `disable-composite';
1823 delete property `composite'.
1824 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1825 instead of `!CODING_SYSTEM_COMPOSITE'.
1826 (syms_of_file_coding): Add new symbol `disable-composition';
1827 delete symbol `composite'.
1829 * file-coding.h (struct Lisp_Coding_System): Add
1830 `disable_composition'; delete `enable_composition'.
1831 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1832 `CODING_SYSTEM_COMPOSITE'.
1833 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1834 `XCODING_SYSTEM_COMPOSITE'.
1836 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1838 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1841 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1843 * text-coding.c (Qcomposite): New variable.
1844 (Fmake_coding_system): Add new property `composite'.
1845 (struct decoding_stream): Add `combined_char_count',
1846 `combined_chars' and `combining_table' in UTF-2000.
1847 (COMPOSE_FLUSH_CHARS): New macro.
1848 (COMPOSE_ADD_CHAR): New macro.
1849 (reset_decoding_stream): Reset `str->combined_char_count' and
1850 `str->combining_table' in UTF-2000.
1851 (decode_coding_iso2022): Modify for character-decomposition.
1852 (syms_of_file_coding): Add new symbol `composite'.
1854 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1856 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1857 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1858 of `Vcharacter_composition_table' if `->decomposition' property
1860 (Qlatin_tcvn5712): New variable.
1861 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1862 (complex_vars_of_mule_charset): Add new coded-charset
1865 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1867 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1869 * file-coding.h (struct Lisp_Coding_System): Add
1870 `enable_composition'.
1871 (CODING_SYSTEM_COMPOSITE): New macro.
1872 (XCODING_SYSTEM_COMPOSITE): New macro.
1874 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
1876 * mule-canna.c (c2mu): Fix problem with UTF-2000.
1878 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
1880 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1881 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1883 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
1885 * mule-charset.c (Vcharset_mojikyo): New variable.
1886 (Fdefine_char): Don't use coded-charset which does not have
1887 non-builtin character range to allocate character-id.
1888 (Qmojikyo): New variable.
1889 (syms_of_mule_charset): Add new symbol `mojikyo'.
1890 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1892 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1893 (LEADING_BYTE_MOJIKYO): New macro.
1894 (MIN_CHAR_MOJIKYO): New macro.
1895 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1896 (MAX_CHAR_MOJIKYO): New macro.
1898 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
1900 * mule-charset.c (remove_char_attribute): Fixed.
1902 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
1904 * mule-charset.c (remove_char_attribute): New function.
1905 (Fremove_char_attribute): New function.
1906 (encode_builtin_char_1): Comment out builtin-support for
1907 greek-iso8859-7 and cyrillic-iso8859-5.
1908 (Fdecode_char): Check `code' is an integer.
1909 (syms_of_mule_charset): Add `remove-char-attribute'.
1910 (MIN_CHAR_GREEK): Deleted.
1911 (MAX_CHAR_GREEK): Likewise.
1912 (MIN_CHAR_CYRILLIC): Likewise.
1913 (MAX_CHAR_CYRILLIC): Likewise.
1914 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1915 MAX_CHAR_GREEK for `greek-iso8859-7'.
1917 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1918 (MAX_CHAR_GREEK): Likewise.
1919 (MIN_CHAR_CYRILLIC): Likewise.
1920 (MAX_CHAR_CYRILLIC): Likewise.
1922 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
1924 * mule-charset.c (Fdefine_char): Fix problem when new code-point
1925 format is used without `ucs' property.
1926 (Fdecode_char): Fix problem with GR representation.
1927 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1928 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1930 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1932 * mule-charset.c (make_builtin_char): New function.
1933 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1934 (Fset_charset_mapping_table): Modify for new representation of
1936 (Fdecode_char): New function.
1937 (syms_of_mule_charset): Add new builtin function `decode-char' in
1940 * char-ucs.h (make_builtin_char): New prototype.
1941 (DECODE_CHAR): New inline function.
1942 (MAKE_CHAR): Use `DECODE_CHAR'.
1944 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
1946 * text-coding.c (parse_charset_conversion_specs): Use
1947 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1949 (iso2022_designate): Likewise.
1951 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1952 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1954 * mule-charset.c (Vcharset_ucs): New variable.
1955 (print_charset): Change design; use `CHARSET_CHARS' and
1956 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1957 (make_charset): Change signature to specify `chars' and
1958 `dimension' instead of `type'.
1959 (range_charset_code_point): Modify for 256^n-set.
1960 (encode_builtin_char_1): Encode as `ucs' in default.
1961 (Fmake_charset): Modify for `make_charset'.
1962 (Fmake_reverse_direction_charset): Likewise.
1963 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1965 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1968 * char-ucs.h (Vcharset_ucs): New variable.
1969 (LEADING_BYTE_UCS): New macro.
1970 (struct Lisp_Charset): Delete `type'; change type of `dimension'
1971 and `chars' to `unsigned short' from `unsigned int'.
1972 (CHARSET_TYPE): Deleted.
1973 (XCHARSET_TYPE): Deleted.
1975 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
1977 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1979 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1980 (ENCODE_CHAR): New macro.
1982 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1984 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1985 to 0.14 (Kawachi-Katakami).
1987 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1989 * text-coding.c (char_encode_shift_jis): Modify for
1990 `charset_code_point'.
1991 (char_encode_iso2022): Likewise.
1993 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1994 (integer) instead of list of <Lisp_Object>s (integers) as the
1995 format of code-point of a coded-charset.
1996 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1997 (encode_builtin_char_1): New function; delete
1998 `split_builtin_char'.
1999 (charset_code_point): Return <int> instead of <Lisp_Object>.
2000 (Fsplit_char): Don't use `SPLIT_CHAR'.
2002 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2003 prototype for `split_builtin_char'.
2004 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2005 (charset_code_point): Likewise.
2006 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2007 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2009 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2011 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2012 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2014 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2016 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2018 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2019 (MAX_CHAR_OBS_94x94): Deleted.
2021 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2023 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2025 * char-ucs.h (MAX_CHAR_BMP): New macro.
2027 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2029 * text-coding.c: Sync with r21-2-24.
2031 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2033 * file-coding.c: Modify for UTF-2000.
2035 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2037 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2040 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2042 * mule-charset.c (split_builtin_char): Delete builtin support for
2043 `katakana-jisx0201'.
2044 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2045 BMP area in builtin representation.
2047 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2048 `Vcharset_katakana_jisx0201'.
2050 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2052 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2053 (Qisolated): New variable.
2054 (Qinitial): New variable.
2055 (Qmedial): New variable.
2056 (Qfinal): New variable.
2057 (Qvertical): New variable.
2058 (Qsmall): New variable.
2059 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2060 `Qvertical' and `Qsmall'.
2061 (Qmojikyo_pj_[1 .. 21]): New variable.
2062 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2063 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2064 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2067 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2069 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2070 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2071 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2073 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2075 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2076 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2078 (Qjapanese_jisx0208_1990): New variable.
2079 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2080 (complex_vars_of_mule_charset): Add new coded-charset
2081 `japanese-jisx0208-1990'.
2083 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2084 (MIN_CHAR_JIS_X0208_1990): New macro.
2085 (MAX_CHAR_JIS_X0208_1990): New macro.
2087 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2089 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2090 coded-charset is not found.
2092 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2094 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2095 (Fdefine_char): Use `Fmake_char'.
2097 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2099 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2100 (Vcharset_hiragana_jisx0208): Deleted.
2101 (Vcharset_katakana_jisx0208): Deleted.
2102 (Qideograph_daikanwa): New variable.
2103 (Qhiragana_jisx0208): Deleted.
2104 (Qkatakana_jisx0208): Deleted.
2105 (split_builtin_char): Split `ideograph-daikanwa'.
2106 (Fsplit_char): New implementation for UTF-2000.
2107 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2108 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2109 (complex_vars_of_mule_charset): Add new coded-charset
2110 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2111 `katakana-jisx0208'.
2113 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2114 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2115 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2116 (MIN_CHAR_DAIKANWA): New macro.
2117 (MAX_CHAR_DAIKANWA): New macro.
2119 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2121 * data.c (Fstring_to_number): Don't recognize floating point if
2124 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2126 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2128 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2130 * mule-charset.c (Qsquare): New variable.
2131 (to_char_code): Add `Qsquare'.
2132 (syms_of_mule_charset): Add new symbol `square'.
2134 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2136 * mule-charset.c (Qcircle): New variable.
2137 (to_char_code): Add `Qcircle'.
2138 (syms_of_mule_charset): Add new symbol `circle'.
2140 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2142 * mule-charset.c (Qfont): New variable.
2143 (to_char_code): Add `Qfont'.
2144 (syms_of_mule_charset): Add new symbol `font'.
2146 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2148 * mule-charset.c (Qsub): New variable.
2149 (to_char_code): Add `Qsub'.
2150 (syms_of_mule_charset): Add new symbol `sub'.
2152 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2154 * mule-charset.c (Fput_char_attribute): Convert each element of
2155 VALUE to GL position if ATTRIBUTE is a GR-set,
2157 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2159 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2160 coded-charset is a GR-set.
2162 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2164 * mule-charset.c (Fput_char_attribute): Check each element of
2165 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2167 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2169 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2171 (Qethiopic_ucs): New variable in UTF-2000.
2172 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2173 (complex_vars_of_mule_charset): Add new coded-charset
2174 `ethiopic-ucs' in UTF-2000.
2176 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2177 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2179 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2181 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2183 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2185 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2188 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2190 * mule-charset.c (Vcharacter_variant_table): New variable.
2191 (Q_ucs): New variable.
2192 (Fchar_variants): New function.
2193 (Fput_char_attribute): Register `->ucs' value to
2194 `Vcharacter_variant_table'.
2195 (syms_of_mule_charset): Add new function `char-variants' and new
2197 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2199 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2201 * mule-charset.c (get_char_code_table): Allow negative character
2203 (put_char_code_table): Likewise.
2204 (Vcharacter_composition_table): New variable.
2205 (Q_decomposition): New variable.
2206 (Qwide): New variable.
2207 (Qnarrow): New variable.
2208 (Qcompat): New variable.
2209 (QnoBreak): New variable.
2210 (Qsuper): New variable.
2211 (Qfraction): New variable.
2212 (to_char_code): New function.
2213 (Fget_composite_char): New function.
2214 (Fput_char_attribute): Register `->decomposition' value to
2215 `Vcharacter_composition_table'.
2216 (syms_of_mule_charset): Add new function `get-composite-char', new
2217 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2218 `super' and `fraction'.
2219 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2221 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2223 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2224 character; copy the return value.
2226 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2228 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2230 * mule-charset.c (range_charset_code_point): Must use make_int.
2231 (split_builtin_char): New function.
2233 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2235 * mule-charset.c (char_byte_table): Change name from
2236 "char-code-table" to "char-byte-table".
2237 (mark_char_code_table): New function.
2238 (char_code_table_equal): New function.
2239 (char_code_table_hash): New function.
2240 (char_code_table_description): New constant.
2241 (char_code_table): New type.
2242 (make_char_code_table): New function.
2243 (copy_char_code_table): New function.
2244 (get_char_code_table): Modify for `char_code_table' type.
2245 (put_char_code_table): Likewise.
2246 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2249 * char-ucs.h (char_code_table): New type.
2250 (XCHAR_CODE_TABLE): New macro.
2251 (XSETCHAR_CODE_TABLE): New macro.
2252 (CHAR_CODE_TABLE_P): New macro.
2253 (GC_CHAR_CODE_TABLE_P): New macro.
2254 (struct Lisp_Char_Code_Table): New structure.
2256 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2258 * mule-charset.c (Fmake_charset): Setup byte_offset for
2261 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2263 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2266 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2268 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2271 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2273 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2274 charset, it is regarded as a charset.
2275 (put_char_attribute): New function in UTF-2000.
2276 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2277 charset, mapping-table of the charset is modified.
2278 (Fdefine_char): New function in UTF-2000.
2279 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2280 `Fput_char_attribute'.
2281 (syms_of_mule_charset): Add new function `define-char' and new
2282 symbol `ucs' in UTF-2000.
2283 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2285 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2287 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2288 non-UTF-2000 configuration.
2290 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2292 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2293 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2295 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2297 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2298 (Fset_charset_mapping_table): Likewise.
2300 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2301 (CHARSET_ENCODING_TABLE): Delete.
2302 (XCHARSET_ENCODING_TABLE): Delete.
2303 (charset_code_point): New interface.
2305 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2307 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2308 instead of `charset_get_byte1' and `charset_get_byte2'.
2310 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2311 (charset_get_byte2): Deleted.
2313 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2315 * char-ucs.h (SPLIT_CHAR): New inline function.
2316 (breakup_char_1): Use `SPLIT_CHAR'.
2318 * mule-charset.c (range_charset_code_point): New function.
2319 (charset_code_point): New function.
2321 * char-ucs.h (range_charset_code_point): New interface.
2322 (breakup_char_1): Use `range_charset_code_point'.
2324 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2326 * mule-charset.c (Fmake_charset): Delete unused local variable
2329 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2330 (breakup_char_1): Find a charset and code-point in
2331 `Vcharacter_attribute_table'.
2333 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2335 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2338 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2340 * mule-charset.c (Vcharacter_attribute_table): New variable.
2341 (Fchar_attribute_alist): New function.
2342 (Fget_char_attribute): New function.
2343 (Fput_char_attribute): New function.
2344 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2346 (syms_of_mule_charset): Add new function `char-attribute-alist',
2347 `get-char-attribute' and `put-char-attribute'.
2348 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2350 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2352 * mule-charset.c (Fmake_charset): Just use
2353 `get_unallocated_leading_byte'.
2355 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2356 sets; don't use final-byte based number for private sets.
2358 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2360 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2363 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2365 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2368 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2370 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2371 of `CHAR_LEADING_BYTE' in UTF-2000.
2373 * insdel.c (find_charsets_in_bufbyte_string): Use
2374 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2375 (find_charsets_in_emchar_string): Likewise.
2377 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2378 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2380 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2381 (CHAR_CHARSET_ID): New macro.
2383 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2385 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2386 charset-id - MIN_LEADING_BYTE.
2387 (put_char_table): Likewise.
2389 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2391 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2392 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2393 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2394 (CHARSET_ID_OFFSET): New macro.
2395 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2396 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2397 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2398 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2400 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2402 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2403 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2404 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2405 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2406 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2408 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2410 * mule-charset.c (next_allocated_leading_byte): New variable in
2412 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2413 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2414 (get_unallocated_leading_byte): Simply use
2415 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2416 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2419 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2420 (MAX_LEADING_BYTE_PRIVATE): New macro.
2421 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2422 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2424 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2426 * mule-charset.c (Fmake_charset): Allocate final-byte based
2427 charset-id for 94-set, 96-set and 94x94-set.
2429 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2431 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2433 (Fmake_charset): Likewise.
2434 (complex_vars_of_mule_charset): Modify the font registry of
2435 `ucs-bmp' not to match `Ethiopic-Unicode'.
2437 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2439 * mule-charset.c (complex_vars_of_mule_charset): Add font
2440 registory of `ucs-bmp'.
2442 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2444 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2445 coded-charsets in `default-coded-charset-priority-list' when
2446 breaking up a character.
2448 * mule-charset.c (Vcharset_latin_viscii): New variable.
2449 (Qlatin_viscii): New variable.
2450 (make_charset): Don't use `decoding_table'.
2451 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2453 (Fset_charset_mapping_table): New implementation.
2454 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2455 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2456 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2457 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2458 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2459 charset `latin_viscii'.
2461 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2462 (CHARSET_TYPE_94X94): Change to 1 from 2.
2463 (CHARSET_TYPE_96): Change to 2 from 1.
2464 (CHARSET_TYPE_128): New macro.
2465 (CHARSET_TYPE_128X128): Change to 5 from 4.
2466 (CHARSET_TYPE_256): New macro.
2467 (CHARSET_TYPE_256X256): Change to 7 from 5.
2468 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2470 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2472 * text-coding.c (char_encode_shift_jis): Refer
2473 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2474 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2476 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2477 (char_byte_table_equal): New function in UTF-2000.
2478 (char_byte_table_hash): New function in UTF-2000.
2479 (char_byte_table_description): New constant in UTF-2000.
2480 (char_byte_table): New type in UTF-2000.
2481 (make_char_byte_table): New function in UTF-2000.
2482 (copy_char_byte_table): New function in UTF-2000.
2483 (make_char_code_table): New macro in UTF-2000.
2484 (get_char_code_table): New function in UTF-2000.
2485 (put_char_code_table): New function in UTF-2000.
2486 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2487 (charset_description): Add setting in UTF-2000.
2488 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2489 `CHARSET_TO_BYTE1_TABLE(cs)'.
2490 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2491 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2492 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2493 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2494 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2495 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2496 `CHARSET_TO_BYTE2_TABLE(cs)'.
2498 * char-ucs.h (char_byte_table): New type.
2499 (XCHAR_BYTE_TABLE): New macro.
2500 (XSETCHAR_BYTE_TABLE): New macro.
2501 (CHAR_BYTE_TABLE_P): New macro.
2502 (GC_CHAR_BYTE_TABLE_P): New macro.
2503 (struct Lisp_Char_Byte_Table): New structure.
2504 (get_char_code_table): New interface.
2505 (Emchar_to_byte_table): Deleted.
2506 (get_byte_from_character_table): Deleted.
2507 (struct Lisp_Charset): Add `encoding_table'; delete
2508 `to_byte1_table' and `to_byte2_table'.
2509 (CHARSET_ENCODING_TABLE): New macro.
2510 (CHARSET_TO_BYTE1_TABLE): Deleted.
2511 (CHARSET_TO_BYTE2_TABLE): Deleted.
2512 (XCHARSET_ENCODING_TABLE): New macro.
2513 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2514 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2516 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2518 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2519 `vietnamese-viscii-*'.
2521 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2523 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2524 (Qvietnamese_viscii_upper): New variable.
2525 (Fdefine_charset_alias): New function.
2526 (syms_of_mule_charset): Add new function `define-charset-alias'.
2527 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2528 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2531 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2533 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2534 (MAX_CHAR_OBS_94x94): New macro.
2535 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2538 * mule-charset.c (put_byte_from_character_table): Change unit size
2540 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2542 (Fmake_reverse_direction_charset): Modify dummy argument of
2543 `make_charset' for non-UTF-2000 environment.
2545 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2547 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2549 * mule-charset.c (destroy_byte_from_character_table): New macro.
2550 (latin_jisx0201_to_ucs): Deleted.
2551 (latin_iso8859_2_to_ucs): Deleted.
2552 (latin_iso8859_3_to_ucs): Deleted.
2553 (latin_iso8859_4_to_ucs): Deleted.
2554 (latin_iso8859_9_to_ucs): Deleted.
2555 (latin_viscii_lower_to_ucs): Deleted.
2556 (latin_viscii_upper_to_ucs): Deleted.
2557 (mark_charset): Mark `cs->decoding_table'.
2558 (Fcharset_mapping_table): Fix DOC-string.
2559 (Fset_charset_mapping_table): New function.
2560 (syms_of_mule_charset): Add nwe function
2561 `set-charset-mapping-table'.
2562 (complex_vars_of_mule_charset): Don't setup and use
2565 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
2567 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2570 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
2572 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2573 (Vcharset_katakana_jisx0208): New variable.
2574 (Qhiragana_jisx0208): New variable.
2575 (Qkatakana_jisx0208): New variable.
2576 (make_charset): Add new argument `byte_offset'.
2577 (charset_get_byte1): Modify for new coded-charset definition; use
2578 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2579 `XCHARSET_BYTE_OFFSET'.
2580 (Fmake_charset): Modify for `make_charset'.
2581 (Fmake_reverse_direction_charset): Likewise.
2582 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2583 `katakana-jisx0208'.
2584 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2585 `.' in font registry of charset `katakana-jisx0201',
2586 `latin-jisx0201', `vietnamese-viscii-lower' and
2587 `vietnamese-viscii-upper'; modify DOC-string of charset
2588 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2589 registry of charset `japanese-jisx0208' not to use font for JIS
2590 X0208:1990; add new charset `hiragana-jisx0208' and
2591 `katakana-jisx0208'.
2593 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2594 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2595 (struct Lisp_Charset): Add `byte_offset'.
2596 (CHARSET_BYTE_OFFSET): New macro.
2597 (XCHARSET_UCS_MIN): New macro.
2598 (XCHARSET_UCS_MAX): New macro.
2599 (XCHARSET_CODE_OFFSET): New macro.
2600 (XCHARSET_BYTE_OFFSET): New macro.
2601 (MIN_CHAR_HIRAGANA): New macro.
2602 (MAX_CHAR_HIRAGANA): New macro.
2603 (MIN_CHAR_KATAKANA): New macro.
2604 (MAX_CHAR_KATAKANA): New macro.
2605 (MAKE_CHAR): Modify for new coded-charset definition; use
2606 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2607 `XCHARSET_BYTE_OFFSET'.
2609 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2611 * mule-charset.c (CHAR96): Deleted.
2612 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2614 (latin_iso8859_2_to_ucs): Likewise.
2615 (latin_iso8859_3_to_ucs): Likewise.
2616 (latin_iso8859_4_to_ucs): Likewise.
2617 (latin_iso8859_9_to_ucs): Likewise.
2618 (latin_viscii_lower_to_ucs): Likewise.
2619 (latin_viscii_upper_to_ucs): Likewise.
2620 (latin_tcvn5712_to_ucs): Commented out.
2621 (make_charset): Change type of argument `decoding_table' from
2622 <Emchar*> to <Lisp_Object> [vector of characters].
2623 (Fmake_charset): Modify for `make_charset'.
2624 (Fmake_reverse_direction_charset): Likewise.
2625 (Fcharset_mapping_table): New function in UTF-2000.
2626 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2628 (complex_vars_of_mule_charset): Modify for type change of
2629 `*_to_ucs'; modify for `make_charset'.
2631 * char-ucs.h (struct Lisp_Charset): Change type of
2632 `decoding_table' from <Emchar*> to <Lisp_Object>.
2633 (MAKE_CHAR): Modify for new specification of `decoding_table'.
2635 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2637 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2638 error with non-UTF-2000-Mule.
2640 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
2642 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2644 (Vcharset_chinese_cns11643_4): Likewise.
2645 (Vcharset_chinese_cns11643_5): Likewise.
2646 (Vcharset_chinese_cns11643_6): Likewise.
2647 (Vcharset_chinese_cns11643_7): Likewise.
2648 (Qchinese_cns11643_3): Likewise.
2649 (Qchinese_cns11643_4): Likewise.
2650 (Qchinese_cns11643_5): Likewise.
2651 (Qchinese_cns11643_6): Likewise.
2652 (Qchinese_cns11643_7): Likewise.
2653 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2654 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2655 and `chinese-cns11643-7' to lisp/mule/chinese.el.
2656 (complex_vars_of_mule_charset): Likewise.
2658 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2660 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2662 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2663 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2665 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2667 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2669 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2670 (breakup_char_1): Likewise.
2672 * text-coding.c (char_encode_iso2022): Keep designated charsets if
2673 one of them includes the specified character.
2675 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2677 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2679 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2681 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2683 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2685 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2686 definition for non-UTF-2000 Mule.
2687 (latin_iso8859_3_to_ucs): Likewise.
2688 (latin_iso8859_4_to_ucs): Likewise.
2689 (latin_iso8859_9_to_ucs): Likewise.
2690 (latin_jisx0201_to_ucs): Likewise.
2691 (MIN_CHAR_THAI): Likewise.
2692 (MAX_CHAR_THAI): Likewise.
2693 (MIN_CHAR_GREEK): Likewise.
2694 (MAX_CHAR_GREEK): Likewise.
2695 (MIN_CHAR_HEBREW): Likewise.
2696 (MAX_CHAR_HEBREW): Likewise.
2697 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2698 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2699 (MIN_CHAR_CYRILLIC): Likewise.
2700 (MAX_CHAR_CYRILLIC): Likewise.
2702 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2704 * char-ucs.h (breakup_char_1): Use
2705 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2706 thai-tis620 and katakana-jisx0201 area.
2708 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2710 * char-ucs.h (breakup_char_1): Use
2711 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2714 * text-coding.c (reset_encoding_stream): Fixed.
2715 (char_encode_ucs4): Delete `& 255'.
2717 * char-ucs.h (breakup_char_1): Use
2718 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2720 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2722 * file-coding.c (Fmake_coding_system): Don't set up
2723 `codesys->fixed.size'.
2724 (encode_coding_no_conversion): Don't refer
2725 `str->codesys->fixed.size'.
2727 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2729 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2730 (latin_a_char_to_byte1): Deleted.
2731 (latin_a_char_to_byte2): Deleted.
2733 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2735 * mule-charset.c (make_charset): Add new argument `ucs_min',
2736 `ucs_max' and `code_offset'.
2737 (charset_get_byte1): New implementation [delete specific charset
2738 depended implementations].
2739 (Fmake_charset): Modify for `make_charset'.
2740 (Fmake_reverse_direction_charset): Likewise.
2741 (complex_vars_of_mule_charset): Likewise.
2743 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2745 (CHARSET_UCS_MIN): New macro.
2746 (CHARSET_UCS_MAX): New macro.
2747 (CHARSET_CODE_OFFSET): New macro.
2748 (MAKE_CHAR): Delete charset depended definitions [except
2751 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2753 * char-ucs.h (breakup_char_1): Use
2754 `Vdefault_coded_charset_priority_list' for C0-Controls,
2755 Basic-Latin, C1-Controls and Latin-1-Supplement area.
2757 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2759 * char-ucs.h (charset_get_byte1): New function.
2760 (XCHARSET_GET_BYTE1): Deleted.
2761 (charset_get_byte2): New function.
2762 (XCHARSET_GET_BYTE2): Deleted.
2763 (Vdefault_coded_charset_priority_list): New external variable.
2764 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2765 `Vdefault_preferred_coded_charset_list'.
2767 * mule-charset.c (charset_get_byte1): New function.
2768 (charset_get_byte2): New function.
2769 (Vdefault_coded_charset_priority_list): New variable.
2770 (vars_of_mule_charset): Add new variable
2771 `default-coded-charset-priority-list'.
2773 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2775 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2776 (XCHARSET_GET_BYTE2): New inline function.
2777 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2778 `XCHARSET_GET_BYTE2'.
2780 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2782 * mule-charset.c (make_charset): Initialize
2783 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2784 NULL if table is not defined.
2786 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2788 * text-coding.c (char_encode_shift_jis): Use
2789 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2790 `ucs_to_latin_jisx0201'.
2792 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2793 (ucs_to_latin_iso8859_2): Deleted.
2794 (ucs_to_latin_iso8859_3): Deleted.
2795 (ucs_to_latin_iso8859_4): Deleted.
2796 (ucs_to_latin_iso8859_9): Deleted.
2797 (ucs_to_latin_viscii_lower): Deleted.
2798 (ucs_to_latin_viscii_upper): Deleted.
2799 (ucs_to_latin_tcvn5712): Deleted.
2800 (make_charset): Add new argument `decoding_table'; set up
2801 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2802 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2803 `decoding_table' is defined in UTF-2000.
2804 (Fmake_charset): Modify for `make_charset'.
2805 (Fmake_reverse_direction_charset): Likewise.
2806 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2807 and `GENERATE_96_SET'.
2809 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2810 (ucs_to_latin_jisx0201): Deleted.
2811 (latin_iso8859_2_to_ucs): Deleted.
2812 (ucs_to_latin_iso8859_2): Deleted.
2813 (latin_iso8859_3_to_ucs): Deleted.
2814 (ucs_to_latin_iso8859_3): Deleted.
2815 (latin_iso8859_4_to_ucs): Deleted.
2816 (ucs_to_latin_iso8859_4): Deleted.
2817 (latin_iso8859_9_to_ucs): Deleted.
2818 (ucs_to_latin_iso8859_9): Deleted.
2819 (latin_viscii_lower_to_ucs): Deleted.
2820 (ucs_to_latin_viscii_lower): Deleted.
2821 (latin_viscii_upper_to_ucs): Deleted.
2822 (ucs_to_latin_viscii_upper): Deleted.
2823 (struct Lisp_Charset): Renamed `encoding_table' to
2824 `to_byte1_table'; add `to_byte2_table'.
2825 (CHARSET_DECODING_TABLE): New macro.
2826 (CHARSET_TO_BYTE1_TABLE): New macro.
2827 (CHARSET_TO_BYTE2_TABLE): New macro.
2828 (XCHARSET_DECODING_TABLE): New macro.
2829 (XCHARSET_TO_BYTE1_TABLE): New macro.
2830 (XCHARSET_TO_BYTE2_TABLE): New macro.
2831 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2833 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2834 don't use `ucs_to_*' tables.
2836 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2838 * text-coding.c (Fmake_coding_system): Don't set up
2839 `codesys->fixed.size'.
2840 (encode_coding_no_conversion): Use `if' instead of `switch'.
2842 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2844 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2846 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2847 (Fmake_charset): Modify for `make_charset'.
2848 (Fmake_reverse_direction_charset): Likewise.
2849 (complex_vars_of_mule_charset): Likewise.
2851 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2853 * text-coding.c (char_encode_shift_jis): Use table
2854 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2856 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2858 * text-coding.c (text_encode_generic): Use `if' instead of
2860 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2863 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2865 * text-coding.c (encode_coding_sjis): Deleted.
2866 (char_encode_shift_jis): New function.
2867 (char_finish_shift_jis): New function.
2868 (reset_encoding_stream): Set up `encode_char' and `finish' for
2869 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2870 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2871 (char_encode_utf8): Treat `eol_type'.
2873 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2875 * file-coding.c (decode_coding_iso2022): Use
2876 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2878 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2880 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2883 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2885 * char-lb.h (CHAR_COLUMNS): New macro.
2887 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2889 * text-coding.c (char_encode_ucs4): New function.
2890 (char_finish_ucs4): New function.
2891 (encode_coding_ucs4): Deleted.
2892 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2893 (text_encode_generic): Delete local variable `charset' and `half'.
2894 (ucs_to_mule_table): Deleted.
2895 (mule_to_ucs_table): Deleted.
2896 (Fset_ucs_char): Deleted.
2897 (ucs_to_char): Deleted.
2898 (Fucs_char): Deleted.
2899 (Fset_char_ucs): Deleted.
2900 (Fchar_ucs): Deleted.
2901 (decode_ucs4): Deleted.
2902 (mule_char_to_ucs4): Deleted.
2903 (encode_ucs4): Deleted.
2904 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2905 (decode_coding_utf8): Likewise.
2906 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2907 (char_encode_iso2022): Fixed.
2908 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2909 `Fset_char_ucs' and `Fchar_ucs'.
2910 (complex_vars_of_file_coding): Don't initialize
2911 `ucs_to_mule_table'.
2913 * objects-tty.c (tty_initialize_font_instance): Don't use
2916 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2919 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2920 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2922 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2923 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2924 (emchar_string_displayed_columns): Likewise.
2926 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2927 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2928 (string_column_at_point): Likewise.
2929 (Fmove_to_column): Likewise.
2931 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2932 `encoding_table' and `decoding_table'.
2933 (CHARSET_REP_BYTES): Deleted.
2934 (XCHARSET_REP_BYTES): Deleted.
2935 (XCHARSET_COLUMNS): Deleted.
2936 (CHAR_COLUMNS): New macro.
2937 (lookup_composite_char): Deleted unconditionally.
2938 (composite_char_string): Likewise.
2940 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2942 * char-ucs.h (Emchar_to_byte_table): New type.
2943 (get_byte_from_character_table): New function interface.
2944 (Vcharset_latin_jisx0201): New variable.
2945 (latin_jisx0201_to_ucs): New variable.
2946 (ucs_to_latin_jisx0201): New variable.
2947 (Vcharset_latin_iso8859_2): New variable.
2948 (latin_iso8859_2_to_ucs): New variable.
2949 (ucs_to_latin_iso8859_2): New variable.
2950 (Vcharset_latin_iso8859_3): New variable.
2951 (latin_iso8859_3_to_ucs): New variable.
2952 (ucs_to_latin_iso8859_3): New variable.
2953 (Vcharset_latin_iso8859_4): New variable.
2954 (latin_iso8859_4_to_ucs): New variable.
2955 (ucs_to_latin_iso8859_4): New variable.
2956 (Vcharset_latin_iso8859_9): New variable.
2957 (latin_iso8859_9_to_ucs): New variable.
2958 (ucs_to_latin_iso8859_9): New variable.
2959 (Vcharset_latin_viscii_lower): New variable.
2960 (latin_viscii_lower_to_ucs): New variable.
2961 (ucs_to_latin_viscii_lower): New variable.
2962 (Vcharset_latin_viscii_upper): New variable.
2963 (latin_viscii_upper_to_ucs): New variable.
2964 (ucs_to_latin_viscii_upper): New variable.
2965 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2966 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2967 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2968 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2969 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2970 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2971 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2972 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2973 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2974 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2976 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2977 (Vcharset_latin_viscii_upper): New variable.
2978 (make_byte_from_character_table): New function.
2979 (put_byte_from_character_table): New function.
2980 (get_byte_from_character_table): New function.
2981 (CHAR96): New macro.
2982 (ucs_to_latin_jisx0201): New variable.
2983 (latin_jisx0201_to_ucs): New variable.
2984 (ucs_to_latin_iso8859_2): New variable.
2985 (latin_iso8859_2_to_ucs): New variable.
2986 (ucs_to_latin_iso8859_3): New variable.
2987 (latin_iso8859_3_to_ucs): New variable.
2988 (ucs_to_latin_iso8859_4): New variable.
2989 (latin_iso8859_4_to_ucs): New variable.
2990 (ucs_to_latin_iso8859_9): New variable.
2991 (latin_iso8859_9_to_ucs): New variable.
2992 (ucs_to_latin_viscii_lower): New variable.
2993 (latin_viscii_lower_to_ucs): New variable.
2994 (ucs_to_latin_viscii_upper): New variable.
2995 (latin_viscii_upper_to_ucs): New variable.
2996 (ucs_to_latin_tcvn5712): New variable.
2997 (latin_tcvn5712_to_ucs): New variable.
2998 (Qlatin_viscii_lower): New variable.
2999 (Qlatin_viscii_upper): New variable.
3000 (syms_of_mule_charset): Set up new symbol
3001 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3002 (complex_vars_of_mule_charset): Set up new charset
3003 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3004 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3005 `ucs_to_<CHARSET>' tables.
3007 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3009 * text-coding.c: New file.
3011 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3013 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3015 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3016 (MAKE_CHAR): Modify for `ucs-bmp'.
3017 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3018 non-MULE characters of BMP.
3020 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3022 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3025 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3028 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3029 - Include character.h for `CHAR_ASCII_P'.
3031 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3033 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3034 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3036 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3037 (BYTE_C0_P): Likewise.
3038 (BYTE_C1_P): Likewise.
3039 (Lstream_get_emchar_1): Likewise.
3040 (Lstream_fput_emchar): Likewise.
3041 (Lstream_funget_emchar): Likewise.
3042 (copy_internal_to_external): Likewise.
3043 (copy_external_to_internal): Likewise.
3045 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3046 (BYTE_C0_P): Likewise.
3047 (BYTE_C1_P): Likewise.
3048 (Lstream_get_emchar_1): Likewise.
3049 (Lstream_fput_emchar): Likewise.
3050 (Lstream_funget_emchar): Likewise.
3051 (copy_internal_to_external): Likewise.
3052 (copy_external_to_internal): Likewise.
3054 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3055 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3057 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3058 (BYTE_ASCII_P): Moved to mb-1byte.h.
3060 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3062 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3064 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3065 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3066 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3067 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3068 (VALIDATE_CHARPTR_FORWARD): Likewise.
3069 (simple_charptr_emchar): Moved to mb-multibyte.h.
3070 (simple_set_charptr_emchar): Likewise.
3071 (simple_charptr_copy_char): Likewise.
3072 (non_ascii_charptr_emchar): Likewise.
3073 (non_ascii_set_charptr_emchar): Likewise.
3074 (non_ascii_charptr_copy_char): Likewise.
3075 (charptr_emchar): Moved to mb-*byte.h.
3076 (set_charptr_emchar): Likewise.
3077 (charptr_copy_char): Likewise.
3079 * mb-1byte.h, mb-multibyte.h: New files.
3081 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3083 * mb-utf-8.h (MULTIBYTE): New macro.
3084 (MAX_EMCHAR_LEN): Moved from buffer.h.
3085 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3087 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3089 * mb-lb.h, multibyte.h: New files.
3091 * char-1byte.h (Charset_ID): Moved from buffer.h.
3092 (MIN_LEADING_BYTE): Likewise.
3093 (LEADING_BYTE_ASCII): Likewise.
3094 (NUM_LEADING_BYTES): Likewise.
3095 (CHARSETP): Likewise.
3096 (CHARSET_BY_LEADING_BYTE): Likewise.
3097 (XCHARSET_LEADING_BYTE): Likewise.
3098 (XCHARSET_GRAPHIC): Likewise.
3099 (XCHARSET_COLUMNS): Likewise.
3100 (XCHARSET_DIMENSION): Likewise.
3101 (CHAR_CHARSET): Likewise.
3102 (CHAR_LEADING_BYTE): Likewise.
3103 (BREAKUP_CHAR): Likewise.
3104 (Vcharset_ascii): Likewise.
3106 * buffer.h: Include multibyte.h unconditionally.
3107 (VALID_CHARPTR_P): Moved to multibyte.h.
3108 (ASSERT_VALID_CHARPTR): Likewise.
3109 (REAL_INC_CHARPTR): Likewise.
3110 (REAL_INC_CHARBYTIND): Likewise.
3111 (REAL_DEC_CHARPTR): Likewise.
3112 (INC_CHARPTR): Likewise.
3113 (INC_CHARBYTIND): Likewise.
3114 (DEC_CHARPTR): Likewise.
3115 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3116 (VALIDATE_CHARPTR_FORWARD): Likewise.
3117 (charptr_n_addr): Likewise.
3118 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3119 (simple_charptr_emchar): Moved to multibyte.h.
3120 (simple_set_charptr_emchar): Likewise.
3121 (simple_charptr_copy_char): Likewise.
3122 (non_ascii_charptr_emchar): Likewise.
3123 (non_ascii_set_charptr_emchar): Likewise.
3124 (non_ascii_charptr_copy_char): Likewise.
3125 (charptr_emchar): Likewise.
3126 (set_charptr_emchar): Likewise.
3127 (charptr_copy_char): Likewise.
3128 (charptr_emchar_n): Likewise.
3129 (Charset_ID): Moved to char-1byte.h.
3130 (Vcharset_ascii): Likewise.
3131 (CHAR_CHARSET): Likewise.
3132 (CHAR_LEADING_BYTE): Likewise.
3133 (LEADING_BYTE_ASCII): Likewise.
3134 (NUM_LEADING_BYTES): Likewise.
3135 (MIN_LEADING_BYTE): Likewise.
3136 (CHARSETP): Likewise.
3137 (CHARSET_BY_LEADING_BYTE): Likewise.
3138 (XCHARSET_LEADING_BYTE): Likewise.
3139 (XCHARSET_GRAPHIC): Likewise.
3140 (XCHARSET_COLUMNS): Likewise.
3141 (XCHARSET_DIMENSION): Likewise.
3142 (BREAKUP_CHAR): Likewise.
3144 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3146 * character.h: Add document about interface for characters.
3148 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3149 (MAKE_CHAR): Delete comment about
3150 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3151 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3152 (BREAKUP_CHAR): Modify name of arguments.
3153 (CHAR_CHARSET): Modify name of argument.
3155 * buffer.h: Delete document about Emchar accessors.
3157 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3159 * character.h (CHAR_INTP): Moved from buffer.h
3160 (CHAR_OR_CHAR_INTP): Likewise.
3161 (XCHAR_OR_CHAR_INT): Likewise.
3162 (CHECK_CHAR_COERCE_INT): Likewise.
3164 * buffer.h (CHAR_INTP): Moved to character.h
3165 (CHAR_OR_CHAR_INTP): Likewise.
3166 (XCHAR_OR_CHAR_INT): Likewise.
3167 (CHECK_CHAR_COERCE_INT): Likewise.
3169 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3172 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3173 - Include char-1byte.h, char-lb.h or char-ucs.h.
3175 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3177 * buffer.h: Include character unconditionally.
3178 (valid_char_p): Moved to char-*.h.
3179 (non_ascii_valid_char_p): Moved to char-lb.h.
3181 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3183 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3185 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3186 in UTF-2000 because it is not ported yet and not to use
3187 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3188 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3189 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3191 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3192 (CHAR_ASCII_P): Moved from character.h.
3194 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3195 (CHAR_ASCII_P): Likewise.
3196 (CHAR_FIELD1_MASK): Deleted.
3197 (CHAR_FIELD2_MASK): Deleted.
3198 (CHAR_FIELD3_MASK): Deleted.
3199 (MAX_CHAR_BASIC_LATIN): New macro.
3200 (CHAR_FIELD1): Deleted.
3201 (CHAR_FIELD2_INTERNAL): Deleted.
3202 (CHAR_FIELD3_INTERNAL): Deleted.
3203 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3204 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3205 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3206 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3207 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3208 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3209 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3210 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3211 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3212 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3213 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3214 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3215 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3216 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3217 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3218 (MIN_CHAR_COMPOSITION): Deleted.
3219 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3220 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3222 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3224 * buffer.h: Include mb-utf-8.h in UTF-2000.
3226 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3228 * mb-utf-8.h: New file.
3230 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3232 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3235 * mule-charset.h, buffer.h (Charset_ID): New type.
3237 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3239 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3240 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3241 instead of `MULE_CHAR_PRIVATE_OFFSET',
3242 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3243 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3244 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3246 * character.h (Vcharset_japanese_jisx0212): New variable
3249 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3251 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3252 (charset_by_attributes): Delete array about direction.
3253 (latin_a_char_to_charset): New variable in UTF-2000.
3254 (latin_a_char_to_byte1): New variable in UTF-2000.
3255 (latin_a_char_to_byte2): New variable in UTF-2000.
3256 (Qucs_bmp): New variable.
3257 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3259 (next_allocated_2_byte_leading_byte): Likewise.
3260 (non_ascii_set_charptr_emchar): Likewise.
3261 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3262 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3263 `charset_by_attributes'.
3264 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3265 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3266 and `CHARSET_BY_LEADING_BYTE'.
3267 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3268 `utf-2000-version' to `vars_of_mule_charset'.
3269 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3270 define `leading-code-private-11' in UTF-2000; move setting of
3271 `utf-2000-version' from `syms_of_mule_charset'.
3272 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3275 * character.h (Charset_ID): New type.
3276 (LEADING_BYTE_UCS_BMP): New macro.
3277 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3278 (CHARSET_ID_OFFSET_94): New macro.
3279 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3280 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3281 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3283 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3284 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3285 (CHARSET_ID_OFFSET_96): New macro.
3286 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3287 CHARSET_ID_OFFSET_96 and final-byte.
3288 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3289 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3290 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3291 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3292 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3293 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3294 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3295 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3296 (LEADING_BYTE_THAI_TIS620): Likewise.
3297 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3298 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3299 (CHARSET_ID_OFFSET_94x94): New macro.
3300 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3301 CHARSET_ID_OFFSET_94x94 and final-byte.
3302 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3303 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3304 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3305 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3306 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3307 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3308 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3309 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3310 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3311 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3312 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3313 (CHARSET_TYPE_128X128): New macro.
3314 (CHARSET_TYPE_256X256): New macro.
3315 (XCHARSET_PRIVATE_P): Delete unconditionally.
3316 (charset_by_attributes): Delete array about direction.
3317 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3318 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3319 (MIN_CHAR_94): New macro.
3320 (MAX_CHAR_94): New macro.
3321 (MIN_CHAR_96): New macro.
3322 (MAX_CHAR_96): New macro.
3323 (MIN_CHAR_94x94): New macro.
3324 (MAX_CHAR_94x94): New macro.
3325 (MIN_CHAR_96x96): New macro.
3326 (MAX_CHAR_96x96): New macro.
3327 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3328 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3329 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3331 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3332 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3333 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3334 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3335 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3336 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3337 `XCHARSET_LEADING_BYTE' to make code-point.
3338 (latin_a_char_to_charset): New variable.
3339 (latin_a_char_to_byte1): New variable.
3340 (latin_a_char_to_byte2): New variable.
3341 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3342 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3343 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3345 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3346 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3347 (find_charsets_in_emchar_string): Likewise.
3348 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3350 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3352 (decode_coding_iso2022): Likewise.
3354 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3357 * redisplay.c (redisplay_text_width_emchar_string): Use
3358 `Charset_ID' instead of `unsigned char'.
3359 (redisplay_frame_text_width_string): Likewise.
3361 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3364 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3365 instead of `unsigned char'.
3366 (face_cachel_charset_font_metric_info): Likewise.
3368 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3369 (get_non_ascii_char_table_value): Likewise.
3370 (get_char_table): Likewise.
3371 (put_char_table): Likewise.
3372 (map_over_other_charset): Likewise.
3373 (map_char_table): Likewise.
3375 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3376 instead of `unsigned char'.
3378 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3380 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3381 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3383 * mule-charset.c (leading_code_private_11): Don't define in
3386 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3387 in UTF-2000 because it is not ported yet and not to use
3388 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3390 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3392 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3394 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3396 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3399 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3400 of unsigned char to store leading-byte.
3402 * chartab.c (get_non_ascii_char_table_value): Don't use
3403 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3405 * file-coding.c (encode_coding_big5): Delete bogus implementation
3408 * character.h (LEADING_BYTE_*): Delete definition for
3410 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3411 (LEADING_BYTE_PREFIX_P): Deleted.
3412 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3413 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3414 (BUFBYTE_LEADING_BYTE_P): Deleted.
3415 (CHARSET_PRIVATE_P): Deleted unconditionally.
3416 (rep_bytes_by_first_byte): Deleted unconditionally.
3417 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3418 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3419 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3420 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3421 (CHAR_FIELD2): Deleted.
3422 (CHAR_FIELD3): Deleted.
3423 (MAKE_CHAR): Delete definition for non-UTF-2000.
3424 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3425 (breakup_char_1): New implementation.
3426 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3427 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3429 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3431 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3434 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3436 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3437 (CHARSET_PRIVATE_P): Likewise.
3438 (XCHARSET_PRIVATE_P): Likewise.
3439 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3441 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3443 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3445 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3447 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3448 (NUM_LEADING_BYTES): Changed from 128 to 256.
3449 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3450 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3452 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3454 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3456 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3457 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3458 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3459 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3460 (Qchinese_cns11643_3): New variable in UTF2000.
3461 (Qchinese_cns11643_4): New variable in UTF2000.
3462 (Qchinese_cns11643_5): New variable in UTF2000.
3463 (Qchinese_cns11643_6): New variable in UTF2000.
3464 (Qchinese_cns11643_7): New variable in UTF2000.
3465 (syms_of_mule_charset): Define `chinese-cns11643-3',
3466 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3467 and `chinese-cns11643-7' in UTF2000.
3468 (vars_of_mule_charset): Initialize
3469 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3471 (complex_vars_of_mule_charset): Setup charset
3472 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3473 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3475 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3477 * mule-charset.c: Move setting for `leading-code-private-11' from
3478 `syms_of_mule_charset' to `vars_of_mule_charset'.
3480 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3482 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3483 and `NUM_LEADING_BYTES' in assert.
3485 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3487 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3489 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3490 `NUM_LEADING_BYTES' instead of 128.
3492 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3494 * mule-charset.h (charset_by_leading_byte): Use
3495 `NUM_LEADING_BYTES' instead of 128.
3496 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3498 * mule-charset.c (charset_by_leading_byte): Use
3499 `NUM_LEADING_BYTES' instead of 128.
3500 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3502 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3505 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3507 * mule-charset.c (syms_of_mule_charset): Update to
3510 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3512 * file-coding.c (encode_coding_sjis): New implementation for
3513 UTF2000. (decode_coding_sjis): Ditto.
3515 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3517 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3518 Don't define in UTF2000.
3520 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3523 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3524 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3527 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3529 * config.h.in (CHAR_IS_UCS4): New macro.
3531 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3532 conventional MULE representation.
3533 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3535 * mule-charset.h: Reverted to original.
3537 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3538 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3539 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3541 * character.h: New file.
3543 * file-coding.c (Fmake_coding_system): Set 1 to
3544 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3546 (encode_coding_no_conversion): New implementation for UTF2000.
3548 * file-coding.h (struct Lisp_Coding_System): Add new member
3551 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
3553 * file-coding.c (decode_coding_iso2022): Code-point arguments of
3554 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3555 (encode_coding_iso2022): New implementation for UTF2000.
3557 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3559 * mule-canna.c (c2mu): New implementation for UTF2000.
3562 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3564 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3566 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3568 * file-coding.c (reset_encoding_stream): Set 0 to
3569 `str->iso2022.current_char_boundary' in UTF2000.
3570 (encode_utf8): Don't define in UTF2000.
3571 (encode_coding_utf8): New implementation for UTF-8 representation
3573 (complex_vars_of_file_coding): Define coding-system `utf-8'.
3575 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3577 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3579 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3581 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3583 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3585 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3586 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3587 as UTF-8 in UTF2000.
3588 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3589 (non_ascii_valid_char_p): Don't define in UTF2000.
3590 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3591 (Lstream_get_emchar_1): Likewise.
3592 (utf-2000-version): New variable in UTF2000.
3594 * lread.c (read_escape): Add new reader `u'.
3596 * insdel.c (three_to_one_table): Don't define in UTF2000.
3597 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3598 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3600 (bytind_to_bufpos_func): Likewise.
3601 (buffer_mule_signal_inserted_region): Likewise.
3602 (vars_of_insdel): Don't initialize `three_to_one_table'.
3603 (init_buffer_text): Use `buf->text->mule_size' instead of
3604 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3607 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3608 UTF-8 representation in UTF2000.
3609 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3610 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3611 (decode_coding_iso2022): Don't define local variable `lb' in
3612 UTF2000; don't use LEADING_BYTE in UTF2000; use
3613 `DECODE_ADD_UCS_CHAR' in UTF2000.
3614 (convert_to_external_format): Decode as UTF-8 in UTF2000.
3616 * config.h.in (UTF2000): New macro.
3618 * buffer.h (struct buffer_text): Add new member `mule_size' and
3619 don't add `mule_shifter' and `mule_three_p' in UTF2000.
3620 (valid_char_p): Return always 1 in UTF2000.
3621 (MAX_EMCHAR_LEN): 6 in UTF2000.
3622 (three_to_one_table): Don't define in UTF2000.
3623 (real_bufpos_to_bytind): Modify for UTF-8 representation in
3625 (real_bytind_to_bufpos): Likewise.
3627 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3629 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3631 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3632 representation change.
3633 (Vutf_2000_version): New variable.
3634 (leading_code_private_11): New variable.
3635 (syms_of_mule_charset): Add new variables `utf-2000-version' and
3636 `leading-code-private-11'.
3638 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3639 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3640 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3641 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3642 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3643 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3644 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3645 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3646 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3647 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3648 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3649 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3650 (MIN_CHAR_GREEK): New macro.
3651 (MAX_CHAR_GREEK): New macro.
3652 (MIN_CHAR_CYRILLIC): New macro.
3653 (MAX_CHAR_CYRILLIC): New macro.
3654 (MIN_CHAR_HEBREW): New macro.
3655 (MAX_CHAR_HEBREW): New macro.
3656 (MIN_CHAR_THAI): New macro.
3657 (MAX_CHAR_THAI): New macro.
3658 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3659 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3660 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3661 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3662 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3663 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3664 (CHAR_FIELD2): New inline function.
3665 (CHAR_FIELD3): New inline function.
3666 (MULE_CHAR_PRIVATE_OFFSET): New macro.
3667 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3668 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3669 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3670 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3671 (MIN_CHAR_COMPOSITION): Likewise.
3672 (CHAR_LEADING_BYTE): Modified for character representation change.
3673 (MAKE_CHAR): Likewise.
3675 * lisp.h (Vcharset_latin_iso8859_1): New variable.
3676 (Vcharset_greek_iso8859_7): Likewise.
3677 (Vcharset_cyrillic_iso8859_5): Likewise.
3678 (Vcharset_hebrew_iso8859_8): Likewise.
3679 (Vcharset_thai_tis620): Likewise.
3680 (Vcharset_katakana_jisx0201): Likewise.
3682 2001-02-08 Martin Buchholz <martin@xemacs.org>
3684 * XEmacs 21.2.44 "Thalia" is released.
3686 2001-02-06 Martin Buchholz <martin@xemacs.org>
3688 Fixes crashes in kill-emacs on some systems.
3689 * process-unix.c (unix_kill_child_process):
3690 It's OK for kill() to fail with ESRCH.
3692 2001-02-07 Martin Buchholz <martin@xemacs.org>
3694 Contortions to make .gdbinit tricks work on most systems.
3695 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3696 * alloc.c (dbg_valmask): Make non-const.
3697 * alloc.c (dbg_typemask): Make non-const.
3698 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3699 * alloc.c (dbg_valbits): Make non-const.
3700 * alloc.c (dbg_gctypebits): Make non-const.
3701 * .gdbinit (decode_object): Make it work with AIX cc.
3703 2001-02-06 Martin Buchholz <martin@xemacs.org>
3705 * elhash.c (make_general_lisp_hash_table):
3706 Use simpler and more efficient calloc to clear entries.
3708 2001-02-07 Martin Buchholz <martin@xemacs.org>
3710 * window.c (window_scroll): Work around an AIX C compiler bug.
3711 Fixes 'scroll-up' does nothing problem with xlC.
3713 2001-02-05 Martin Buchholz <martin@xemacs.org>
3715 * .gdbinit: Remove obsolete comment.
3717 2001-01-31 Mike Alexander <mta@arbortext.com>
3719 * select.c (Fown_selection_internal): Set owned_p for device
3722 2001-02-01 Martin Buchholz <martin@xemacs.org>
3725 "not" cannot be used as a macro name as it is an operator in C++
3726 * config.h.in: Stop #defining `not'.
3727 * chartab.c (check_category_char): not ==> not_p
3728 * chartab.h: Likewise.
3729 * regex.c (re_match_2_internal): Likewise.
3731 2001-02-02 Martin Buchholz <martin@xemacs.org>
3733 * lisp-disunion.h: Fix up comments.
3735 2001-01-31 Martin Buchholz <martin@xemacs.org>
3737 * keymap.c (define_key_check_and_coerce_keysym):
3739 Support mouse-6 and mouse-7 bindings in the obvious way.
3741 2001-02-01 Martin Buchholz <martin@xemacs.org>
3743 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
3745 2001-01-30 Martin Buchholz <martin@xemacs.org>
3747 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
3748 Previous patch missed DEFVAR_INT_MAGIC.
3749 Make sure future DEFVAR_foo use correct types.
3750 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
3751 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
3752 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
3753 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
3754 * (DEFVAR_INT): Likewise.
3755 * redisplay.c (vertical_clip): Should be of type Fixnum.
3756 * redisplay.c (horizontal_clip): Likewise.
3757 * lisp.h (dump_add_opaque_int): New.
3758 (dump_add_opaque_fixnum): New.
3760 2001-01-29 Andy Piper <andy@xemacs.org>
3762 * glyphs-widget.c (check_valid_int_or_function): allow symbols
3763 since they can be eval'ed
3765 2001-01-29 Martin Buchholz <martin@xemacs.org>
3767 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
3768 Oops, XEmacs redefines `class'. Use `typename' instead.
3770 2001-01-28 Martin Buchholz <martin@xemacs.org>
3772 * dumper.c: Fix C++ compile errors.
3774 2001-01-29 Martin Buchholz <martin@xemacs.org>
3776 * tparam.c: Use correct prototypes.
3778 2001-01-28 Martin Buchholz <martin@xemacs.org>
3780 * sysproc.h: #include util.h for NetBSD's openpty.
3782 2001-01-27 Martin Buchholz <martin@xemacs.org>
3784 More 64-bit correctness.
3785 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
3786 Use a typedef `fixnum' for the type used for DEFVAR_INT.
3788 This finally finishes the 64-bit SGI port.
3789 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
3790 * symbols.c: Fix up comments and type casts.
3791 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
3792 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
3793 * symeval.h (Fixnum): New type.
3794 * symeval.h (symbol_value_type): Fix up comment.
3810 * mule-canna.c: A million DEFVAR_INTs here...
3811 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
3824 s/int/Fixnum/g in DEFVAR_INT declarations.
3826 2001-01-26 Martin Buchholz <martin@xemacs.org>
3828 Port pdump to SGI alignment-sensitive environment.
3829 Lisp Object sizeof methods now return aligned sizes. Rely on that.
3830 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
3832 Define and use aligned reading and writing macros.
3833 Use buffered stdio instead of posix i/o for faster dumping.
3834 Eliminate kludgy 256 byte space for header.
3835 Read and write from dump file using structs for alignment safety.
3836 * dumper.c (pdump_align_stream): New.
3837 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
3838 * dumper.c (PDUMP_READ_ALIGNED): New.
3839 * dumper.c (PDUMP_WRITE_ALIGNED): New.
3840 * dumper.c (pdump_static_Lisp_Object): New struct.
3841 * dumper.c (pdump_static_pointer): New struct.
3842 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
3843 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
3844 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
3845 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
3847 * dumper.c (pdump_backtrace):
3848 * dumper.c (pdump_get_indirect_count):
3849 * dumper.c (pdump_register_object):
3850 * dumper.c (pdump_register_struct):
3851 * dumper.c (pdump_reloc_one):
3852 * dumper.c (pdump_scan_by_alignment):
3853 * dumper.c (pdump_dump_from_root_struct_ptrs):
3854 * dumper.c (pdump_dump_opaques):
3855 * dumper.c (pdump_dump_rtables):
3856 * dumper.c (pdump_dump_from_root_objects):
3858 * dumper.c (pdump_load_finish):
3859 Use aligned reading and writing.
3861 * dumper.c (pdump_free): Make static.
3862 * dumper.c (pdump_hFile): Likewise.
3863 * dumper.c (pdump_hMap): Likewise.
3865 2001-01-26 Martin Buchholz <martin@xemacs.org>
3867 * XEmacs 21.2.43 "Terspichore" is released.
3869 2001-01-25 Martin Buchholz <martin@xemacs.org>
3871 Type fiddling for window_config.saved_windows_count
3872 * window.c (struct window_config):
3873 Make saved_windows_count member unsigned.
3874 * window.c (sizeof_window_config_for_n_windows):
3875 Make parameter unsigned.
3876 * window.c (mark_window_config):
3877 * window.c (window_config_equal):
3878 * window.c (free_window_configuration):
3879 * window.c (Fset_window_configuration):
3880 * window.c (count_windows):
3881 * window.c (Fcurrent_window_configuration):
3882 * window.c (reinit_vars_of_window):
3883 Update all callers and users.
3885 2001-01-25 Martin Buchholz <martin@xemacs.org>
3887 Alignment correctness for flexible arrays.
3888 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
3889 Make alignment-correct. Add interesting comments.
3890 * alloc.c (size_vector):
3891 * alloc.c (make_vector_internal):
3892 * alloc.c (make_bit_vector_internal):
3893 * alloc.c (sweep_bit_vectors_1):
3894 * fns.c (size_bit_vector):
3895 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
3896 * window.c (sizeof_window_config_for_n_windows):
3897 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
3899 2001-01-24 Martin Buchholz <martin@xemacs.org>
3901 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
3903 2001-01-23 Andy Piper <andy@xemacs.org>
3905 * select.c (Fown_selection_internal): pass owned_p
3907 * select-msw.c (mswindows_own_selection): New Signature.
3909 * console.h (struct console_methods): add owned_p to
3912 * select-x.c (x_own_selection): pass owned_p
3913 (hack_motif_clipboard_selection): use owned_p
3914 (vars_of_select_x): new variable -
3915 x_selection_strict_motif_ownership.
3917 2001-01-23 Martin Buchholz <martin@xemacs.org>
3919 * specifier.h (specifier_data_offset): Remove pointless parens.
3920 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
3922 2001-01-24 Martin Buchholz <martin@xemacs.org>
3924 Make Lisp_Object sizeof methods be alignment-correct.
3925 pdump must restore objects to the same alignment as the C compiler
3926 assumes. It really matters on SGIs.
3927 * lstream.c (aligned_sizeof_lstream): New.
3928 (sizeof_lstream): Use aligned_sizeof_lstream.
3929 (Lstream_new): Likewise.
3930 * opaque.c (aligned_sizeof_opaque): New.
3931 (sizeof_opaque): Use aligned_sizeof_opaque.
3932 (make_opaque): Likewise.
3933 * specifier.c (aligned_sizeof_specifier): New.
3934 (sizeof_specifier): Use aligned_sizeof_specifier.
3935 (make_specifier_internal): Likewise.
3937 2001-01-23 Martin Buchholz <martin@xemacs.org>
3939 * lstream.h (struct lstream): Use max_align_t for trailing data.
3940 * specifier.h (struct Lisp_Specifier): Likewise.
3942 2001-01-22 Martin Buchholz <martin@xemacs.org>
3944 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
3945 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
3946 (CCL_SUSPEND): Likewise.
3947 (CCL_INVALID_CMD): Likewise.
3948 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
3949 (ccl_driver): Likewise.
3950 (CCL_WRITE_CHAR): Macro hygiene.
3951 (CCL_WRITE_STRING): Macro hygiene.
3953 2001-01-22 Martin Buchholz <martin@xemacs.org>
3955 Port "portable" dumper to SunOS 4 and HP-UX.
3956 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
3957 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
3958 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
3960 2001-01-22 Martin Buchholz <martin@xemacs.org>
3962 * lisp.h (ALIGNOF): A better definition for C++.
3964 2001-01-20 Martin Buchholz <martin@xemacs.org>
3967 Fix printf warnings: int format, long int arg.
3968 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
3969 (PUSH_FAILURE_POINT): Use correct printf formats.
3970 (POP_FAILURE_POINT): Use correct printf formats.
3971 Use do {...} while (0)
3973 2001-01-20 Martin Buchholz <martin@xemacs.org>
3975 * XEmacs 21.2.42 "Poseidon" is released.
3977 2001-01-20 Martin Buchholz <martin@xemacs.org>
3979 * console-x.h: typo fix du jour. Remove #if 0'ed code.
3981 2001-01-19 Martin Buchholz <martin@xemacs.org>
3983 De-kludgify FIXED_TYPE free list frobbing.
3984 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3985 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3986 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3987 * alloc.c (Lisp_Free): New pseudo lisp object definition.
3988 * alloc.c (LRECORD_FREE_P): New.
3989 * alloc.c (MARK_LRECORD_AS_FREE): New.
3990 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3991 * alloc.c (STRUCT_FREE_P): Deleted.
3992 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3993 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3994 * alloc.c (STRING_CHARS_FREE_P): New.
3995 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3996 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3997 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3998 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3999 * alloc.c (resize_string): Use new definitions.
4000 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4001 * alloc.c (verify_string_chars_integrity): Use new definitions.
4002 * alloc.c (compact_string_chars): Use new definitions.
4003 * alloc.c: Update monster comments.
4004 * lrecord.h (lrecord_type): Add some new lrecord types for
4007 2001-01-18 Martin Buchholz <martin@xemacs.org>
4009 Improve alignment hackery.
4010 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4011 (max_align_t): Moved from opaque.h - general purpose.
4012 (ALIGN_PTR): Use size_t, not long.
4013 * opaque.h (max_align_t): Move to lisp.h.
4015 2001-01-18 Norbert Koch <nk@LF.net>
4017 * gui.h: Fix and add prototypes to fix build problems.
4019 2001-01-18 Martin Buchholz <martin@xemacs.org>
4021 temacs is going away, so `dump-temacs' is now a bad name.
4022 * .dbxrc (dump-temacs): Rename to `dmp'.
4023 * .gdbinit (dump-temacs): Rename to `dmp'.
4025 2001-01-17 Andy Piper <andy@xemacs.org>
4027 * glyphs.c (print_image_instance): comment to make martin happy.
4029 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4032 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4034 (mswindows_tab_control_redisplay): warning suppression.
4036 * glyphs-widget.c (widget_update): re-write to cope with updated
4038 (widget_instantiate): use new gui_item functions.
4039 (tab_control_update): deleted.
4040 (progress_gauge_update): deleted.
4041 (image_instantiator_progress_guage): take out update reference.
4042 (image_instantiator_tree_view): ditto.
4043 (image_instantiator_tab_control): ditto.
4045 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4047 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4048 return whether anything was changed.
4049 (update_gui_item_keywords): as it sounds.
4051 * gui.h: declare widget_gui_parse_item_keywords.
4053 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4054 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4056 2001-01-17 Martin Buchholz <martin@xemacs.org>
4058 * XEmacs 21.2.41 "Polyhymnia" is released.
4060 2001-01-16 Didier Verna <didier@xemacs.org>
4062 * glyphs.c (image_instantiate): don't use fallbacks when
4063 instantiating a face's background pixmap by inheritance.
4065 2001-01-14 Mike Sperber <mike@xemacs.org>
4067 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4068 Conditionalize accordingly.
4070 2001-01-16 Martin Buchholz <martin@xemacs.org>
4072 * dumper.c (pdump_file_get): Fix a compiler warning.
4074 2001-01-15 Martin Buchholz <martin@xemacs.org>
4076 Make Purify happy when pdumping.
4077 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4078 iniitalizing all bits of new lisp object memory.
4079 * symbols.c (Fmake_local_variable): Likewise.
4080 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4081 * symbols.c (Fdefvaralias): Likewise.
4082 * mule-charset.c (vars_of_mule_charset): Likewise.
4084 2001-01-15 Martin Buchholz <martin@xemacs.org>
4085 Add the `-nd' flag when running pre-dump operations under the debugger.
4086 * .dbxrc (run-temacs): Add `-nd'.
4087 * .dbxrc (update-elc): Likewise.
4088 * .dbxrc (dump-temacs): Likewise.
4089 * .gdbinit (run-temacs): Likewise.
4090 * .gdbinit (check-temacs): Likewise.
4091 * .gdbinit (update-elc): Likewise.
4092 * .gdbinit (dump-temacs): Likewise.
4094 2001-01-14 Martin Buchholz <martin@xemacs.org>
4096 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4097 export OBJECT_MODE=64
4098 configure --pdump --use-union-type=no
4099 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4100 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4102 * miscplay.c (sndcnv8U_2mono):
4103 Avoid two uses of `++' in the same expression.
4104 Suppresses a GCC warning.
4106 2001-01-13 Martin Buchholz <martin@xemacs.org>
4108 Make sure future compilers don't miscompile alloc.c.
4110 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4111 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4113 2001-01-12 Martin Buchholz <martin@xemacs.org>
4115 * dumper.c: A little post-pdump-rename comment fixup.
4117 2001-01-09 Jerry James <james@eecs.ku.edu>
4119 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4121 2001-01-13 Martin Buchholz <martin@xemacs.org>
4123 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4127 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4130 replace_symbol pdump_wire_lists pdump_weak_object_chains
4131 replace_symbol pdump_wire_list dump_add_weak_object_chain
4133 replace_symbol pdump_wires pdump_root_objects
4134 replace_symbol pdump_wire dump_add_root_object
4136 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4137 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4139 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4140 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4141 replace_symbol dumpstructinfo pdump_root_struct_ptr
4142 replace_symbol dumpstruct dump_add_root_struct_ptr
4144 replace_symbol dumpopaque dump_add_opaque
4145 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4146 replace_symbol dumpopaqueinfos pdump_opaques
4147 replace_symbol dumpopaqueinfo pdump_opaque
4149 replace_symbol nb_structdump nb_root_struct_ptrs
4150 replace_symbol nb_opaquedump nb_opaques
4152 replace_symbol align_table pdump_align_table
4153 replace_symbol dump_header pdump_header
4155 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4156 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4159 2001-01-12 Martin Buchholz <martin@xemacs.org>
4161 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4162 optimizing bytecount_to_charcount().
4164 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4167 (HAVE_DLFCN_H): Removed.
4168 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4170 2001-01-06 Martin Buchholz <martin@xemacs.org>
4172 Portable dumper maintainability improvements.
4173 * alloc.c (staticpro):
4174 * alloc.c (staticpro_nodump):
4175 * alloc.c (garbage_collect_1):
4176 * alloc.c (reinit_alloc_once_early):
4177 * alloc.c (init_alloc_once_early):
4178 * alloc.c: Move dumper functions to alloc.c.
4179 * dumper.c (pdump_backtrace):
4180 * dumper.c (pdump_dump_structs):
4181 * dumper.c (pdump_dump_opaques):
4182 * dumper.c (pdump_dump_rtables):
4183 * dumper.c (pdump_dump_wired):
4185 * dumper.c (pdump_load_check):
4186 * dumper.c (pdump_load_finish):
4187 * dumper.c (pdump_file_unmap):
4188 * dumper.c (pdump_file_get):
4189 * dumper.c (pdump_resource_free):
4190 * dumper.c (pdump_resource_get):
4191 * dumper.c (pdump_file_free):
4192 * dumper.c (pdump_file_try):
4193 * dumper.c (pdump_load):
4194 Remove fixed size limits on staticpro(), staticpro_nodump(),
4195 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4196 Remove custom code for dumping lrecord_implementations_table - use
4198 Remove (most of the) custom code for dumping staticpros - dump it
4199 like any other dynarr.
4201 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4202 * dumper.c: Moved functions from alloc.c.
4203 * alloc.c (dumpstruct): Moved to dumper.c.
4204 * alloc.c (dumpopaque): Likewise.
4205 * alloc.c (pdump_wire): Likewise.
4206 * alloc.c (pdump_wire_list): Likewise.
4208 * lisp.h (Dynarr_sizeof): New.
4209 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4210 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4211 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4213 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4214 * lisp.h (dumpopaque): ditto.
4215 * lisp.h (pdump_wire): ditto.
4216 * lisp.h (pdump_wire_list): ditto.
4218 2001-01-09 Martin Buchholz <martin@xemacs.org>
4220 * make-src-depend (PrintPatternDeps):
4221 Use `sort' to make output independent of perl version.
4223 2001-01-08 Martin Buchholz <martin@xemacs.org>
4226 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4227 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4229 2001-01-03 Didier Verna <didier@xemacs.org>
4231 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4232 that `focus_frame' is alive before thinking of calling
4233 `redisplay_redraw_cursor' on it.
4235 2001-01-08 Martin Buchholz <martin@xemacs.org>
4237 * XEmacs 21.2.40 is released.
4239 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4241 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4243 2001-01-06 Martin Buchholz <martin@xemacs.org>
4245 * alloc.c (dbg_valmask): Make const.
4246 * alloc.c (dbg_typemask): Make const.
4247 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4248 * alloc.c (dbg_valbits): Make const.
4249 * alloc.c (dbg_gctypebits): Make const.
4251 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4253 * redisplay-x.c (x_bevel_area):
4254 redisplay.h (struct rune):
4255 Typo fixes in comments.
4257 2001-01-05 Andy Piper <andy@xemacs.org>
4259 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4262 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4264 2001-01-05 Martin Buchholz <martin@xemacs.org>
4266 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4268 * mule-ccl.c (stack_idx_of_map_multiple):
4269 Non const global data must not be initialized!
4270 Found by MIYASHITA Hisashi.
4272 2001-01-02 Andy Piper <andy@xemacs.org>
4274 * frame.c (change_frame_size): make sure frame size is always
4277 * glyphs.c (image_instance_layout): minor code reuse.
4279 * window.c (Fcurrent_window_configuration): revert previous
4282 2001-01-02 Martin Buchholz <martin@xemacs.org>
4285 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4287 2000-12-31 Andy Piper <andy@xemacs.org>
4289 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4290 when widget gets unmapped.
4292 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4293 function. Make sure widgets losing focus don't just drop it.
4294 (handle_focus_event_1): record the widget with focus.
4296 2000-12-31 Andy Piper <andy@xemacs.org>
4298 * window.c (allocate_window): use
4299 make_image_instance_cache_hash_table.
4300 (make_dummy_parent): ditto.
4301 (Fset_window_configuration): ditto.
4303 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4305 * glyphs.c (process_image_string_instantiator): use
4307 (get_image_instantiator_governing_domain): ditto.
4308 (normalize_image_instantiator): ditto.
4309 (instantiate_image_instantiator): ditto.
4310 (make_image_instance_1): ditto.
4311 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4312 (instantiator_eq_equal): new function for use with instance hash
4314 (instantiator_eq_hash): ditto.
4315 (make_image_instance_cache_hash_table): create a suitable hash
4316 table for storing image instances.
4318 * elhash.h (hash_table_weakness): new internal weakness type
4319 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4320 declare new functions.
4322 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4323 another weakness type for glyphs.
4324 (make_standard_lisp_hash_table): new function split out from
4325 make_general_lisp_hash_table.
4326 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4327 (hash_table_instantiate): ditto.
4328 (Fmake_hash_table): ditto.
4330 2000-12-31 Martin Buchholz <martin@xemacs.org>
4332 * XEmacs 21.2.39 is released.
4334 2000-12-29 Andy Piper <andy@xemacs.org>
4336 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4338 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4339 the frame has changed so that we pick up geometry changes such as
4342 2000-12-28 Andy Piper <andy@xemacs.org>
4344 * lastfile.c (my_ebss): make a char array so we can pad the
4345 bss. Fixes cygwin unexec.
4347 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4349 2000-12-26 Andy Piper <andy@xemacs.org>
4351 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4352 comments and try and be more precise about a non-/SIGIO world.
4353 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4356 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4357 we don't normalize to zero width or height.
4359 2000-12-24 Andy Piper <andy@xemacs.org>
4361 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4363 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4365 * s/sco5.h: SCO 5 has pty support.
4367 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4369 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4370 input-method-xlib.c contains whole contents of input-method-xfs.c,
4371 so we can use input-method-xlib.c's code for USE_XFONTSET
4373 * input-method-xfs.c: removed.
4375 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4377 * file-coding.h (enum coding_category_type): reorder enumerators to
4378 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4379 (now one greater than largest real coding_category_type enumerator).
4380 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4381 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4382 Fcoding_category_list, Fset_coding_priority_list,
4383 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4384 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4386 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4388 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4389 * redisplay-output.c (redisplay_output_window): Clear top of window
4390 when face is changed.
4391 * redisplay-x.c (x_redraw_exposed_window): Call
4392 redisplay_clear_top_of_window.
4393 * redisplay.h: Publish redisplay_clear_top_of_window.
4395 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4397 * buffer.c (Fkill_buffer): Map over all devices.
4398 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4399 (list_windows): New function.
4400 (list_all_windows): Ditto.
4401 (Freplace_buffer_in_windows): Use them.
4403 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4405 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4406 (Fopen_database): Use `db_create' instead of `db_open'.
4407 (syms_of_database): Initialize Qqueue.
4409 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4411 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4412 buffer_local_face_property.
4413 * buffer.h (struct buffer): New member buffer_local_face_property.
4414 * window.c (Fset_window_buffer): Mark window's face as changed
4415 when buffer has buffer local face.
4416 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4417 * objects.c (color_after_change): Set buffer_local_face_property
4418 when locale of face specifier is buffer.
4419 * objects.c (font_after_change): Ditto.
4420 * objects.c (face_boolean_after_change): Ditto.
4421 * glyphs.c (image_after_change): Ditto.
4423 2000-12-09 Dan Holmsand <dan@eyebee.com>
4425 * nt.c (mswindows_fstat): Report file permissions, volume serial
4426 number, etc. Code adapted from FSF Emacs 20.7.
4428 2000-12-09 Dan Holmsand <dan@eyebee.com>
4430 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4431 of stat when we don't have symbolic links, to make sure
4432 mswindows_stat is called on mswindows.
4434 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4436 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4438 2000-12-12 Martin Buchholz <martin@xemacs.org>
4440 * doprnt.c (emacs_doprnt_1): More printing fixes.
4441 Make printing of numbers compatible with libc and FSF Emacs.
4442 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4443 Use the system printf to do most of the hard work of formatting,
4444 instead of doprnt_1().
4445 Calculate memory to allocate for format string.
4446 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4447 (doprnt_1): Cleaner code and documentation.
4449 2000-12-01 Jerry James <james@eecs.ukans.edu>
4451 * Makefile.in.in: Use the loop variable to install headers.
4453 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4455 * window.c (Fsplit_window): Don't invalidate face cache.
4457 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4459 * minibuf.c (Fall_completions): Undo the previous change
4460 which removed checking elements start with space.
4462 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4464 * mule-canna.c: Didier suppression.
4466 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4468 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4469 (warning suppression). Add English comment translations.
4471 2000-12-05 Martin Buchholz <martin@xemacs.org>
4473 * unexelfsgi.c (unexec): Better test for mmap failure.
4475 2000-12-05 Martin Buchholz <martin@xemacs.org>
4477 * XEmacs 21.2.38 is released.
4479 2000-12-05 Martin Buchholz <martin@xemacs.org>
4481 * redisplay.c (bar-cursor): Make a user variable.
4483 * symsinit.h: Add init_postgresql_from_environment.
4485 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4487 * regex.c: Convert to clean C.
4489 2000-12-05 Dan Holmsand <dan@eyebee.com>
4492 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4494 (sys_readlink): renamed to system_readlink to avoid conflict with
4495 the other sys_readlink.
4497 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4499 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4501 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4503 * postgresql.c (init_postgresql_from_environment): new function.
4504 (vars_of_postgresql): Move code initializing Lisp variables out and
4505 into init_postgresql_from_environment.
4506 emacs.c (main_1): Call init_postgresql_from_environment if and only
4507 if running a dumped XEmacs.
4509 2000-08-31 Dan Holmsand <dan@eyebee.com>
4511 * buffer.c: Make find-file-compare-truenames default to true on
4514 * realpath.c (win32_abs_start):
4516 (win32_readlink): New functions.
4517 (xrealpath): Return really real filenames on windows.
4519 * fileio.c (Ffile_truename): Make file-truename work on windows.
4521 2000-11-29 Didier Verna <didier@xemacs.org>
4523 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4524 * faces.c (update_face_cachel_data): use it.
4525 * faces.c (add_face_cachel): use it. Complete background pixmap
4526 frobbing in face cache if `update_face_cachel_data' has not done so.
4528 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
4530 * search.c (string_match_1): Don't set last_thing_searched
4533 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
4535 * buffer.c: Include casetab.h
4536 (common_init_complex_vars_of_buffer): Use new case-table object.
4537 * buffer.h: Include casetab.h
4538 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4539 (DOWNCASE_TABLE_OF): Ditto.
4540 * bufslots.h: Remove char-tables and add case-table.
4541 * casetab.c: Include casetab.h
4542 (CASE_TABLE_P): Removed.
4543 (mark_case_table): New function.
4544 (allocate_case_table): New function.
4545 (Fcase_table_p): Use new case-table.
4546 (case_table_char): New function.
4547 (Fget_case_table): Ditto.
4548 (Fput_case_table): Ditto.
4549 (Fput_case_table_pair): Ditto.
4550 (Fcopy_case_table): Ditto.
4551 (Fcurrent_case_table): Return case-table.
4552 (Fstandard_case_table): Return case-table.
4553 (Fset_case_table): Fix doc-string.
4554 (set_case_table): Use case-table
4555 (syms_of_casetab): DEFSUBR new functions.
4556 (complex_vars_of_casetab): Set up standard case-table.
4557 * casetab.h: New file.
4558 * editfns.c: Include casetab.h
4559 (Fcompare_buffer_substrings): Use case-table.
4560 * inline.c: Include casetab.h
4561 * lisp.h: Remove bogus extern.
4562 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4563 * search.c: Include casetab.h
4564 (TRANSLATE_ASCII): Removed.
4565 (TRANSLATE): Unconditionally translate character.
4566 (looking_at_1): Use case-table.
4567 (string_match_1): Ditto.
4568 (fast_string_match): Ditto.
4569 (search_command): Ditto.
4570 (search_buffer): Separate boyer_moore. Check whether
4571 boyer_moore is possible.
4572 (simple_search): New function.
4573 (boyer_moore): Separated from search_buffer. Translate char.
4575 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
4577 * regex.c (RE_TR_ASCII): Removed.
4578 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4579 (PATFETCH): Call PATFETCH_RAW.
4580 (PATFETCH_RAW): Fetch Emchar.
4581 (PATUNFETCH): Decrement charptr.
4582 (GET_BUFFER_SPACE): Rename b to buf_end.
4584 (BUF_PUSH_2): Ditto.
4585 (BUF_PUSH_3): Ditto.
4586 (EXTEND_BUFFER): Ditto.
4587 (SET_LIST_BIT): Ditto.
4588 (regex_compile): Ditto. Translate non ASCII char.
4589 (compile_range): Ditto.
4590 (re_search_2): Ditto.
4591 (re_match_2_internal): Compare Emchar.
4592 (bcmp_translate): Ditto.
4594 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
4596 * lisp.h (basic char/int typedefs): comment improvement.
4598 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
4600 * emacs.c (main_1): unconditional pdump unstomping; don't save and
4601 unstomp inhibit_site_lisp. Improve comments.
4603 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
4605 * mule-charset.c (Fcharset_property): improve type checking, comments.
4607 2000-11-28 Andy Piper <andy@xemacs.org>
4609 * redisplay-output.c (redisplay_output_subwindow): make sure we do
4610 clipped display for windows in the gutter also.
4611 (redisplay_display_boxes_in_window_p): change semantics of return
4612 codes to be more intuitive.
4614 * gutter.h: declare display_boxes_in_gutter_p.
4616 * gutter.c (display_boxes_in_gutter_p): new function for
4619 2000-11-22 Andy Piper <andy@xemacs.org>
4621 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4624 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
4626 * callproc.c (Fold_call_process_internal):
4627 * gpm.c (Freceive_gpm_event):
4628 (tty_get_foreign_selection): Might be just warning supression.
4629 * fileio.c (Fwrite_region_internal):
4630 (Fset_visited_file_modtime):
4631 * keymap.c (event_matches_key_specifier_p):
4632 Initialize GCPROed variable.
4634 * menubar-x.c (command_builder_find_menu_accelerator):
4635 Initialize before use.
4637 2000-11-23 Andy Piper <andy@xemacs.org>
4639 * unexcw.c (unexec): make the resulting executable executable.
4641 2000-11-21 Martin Buchholz <martin@xemacs.org>
4643 * doc.c (get_doc_string):
4644 Use size_t, not int, for result of XSTRING_LENGTH.
4646 * cmds.c (Fdelete_char):
4647 * cmds.c (Fpoint_at_eol):
4648 * cmds.c (Fself_insert_command):
4649 Use EMACS_INT, not int, for result of XINT.
4650 Someday, someone will want to insert more than 2**31 identical characters.
4652 * cmds.c (Fdelete_char):
4653 * cmds.c (Fdelete_backward_char):
4654 * syntax.c (Fforward_word):
4655 * syntax.c (Fforward_comment):
4656 Make COUNT argument optional, for consistency with forward-char et al.
4658 2000-11-22 Martin Buchholz <martin@xemacs.org>
4661 * print.c (long_to_string):
4662 Return a useful value: the pointer at end of data written.
4665 Use `static const char * const' for constant strings.
4666 (union printf_arg): Delete `i', `ui' members.
4669 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4670 Do all printf-ing via the `l' specifier.
4671 Use EMACS_INT instead of int.
4674 2000-11-20 Didier Verna <didier@xemacs.org>
4676 * faces.c (update_face_cachel_data): don't frob the background
4677 pixmap when the window is being created. The face is needed but
4680 2000-11-20 Andy Piper <andy@xemacs.org>
4682 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4683 messing with a debug environment.
4685 2000-11-20 Martin Buchholz <martin@xemacs.org>
4687 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4689 2000-11-20 Martin Buchholz <martin@xemacs.org>
4691 * casetab.c (Fcase_table_p): Fix compile error and crash.
4693 2000-11-18 Philip Aston <philipa@mail.com>
4695 * s/cygwin32.h: Cygwin has SVR4-like pty support.
4697 2000-11-18 Martin Buchholz <martin@xemacs.org>
4699 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
4700 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4702 2000-11-17 Martin Buchholz <martin@xemacs.org>
4704 * config.h.in: Define HAVE_ELF_H if elf.h exists.
4705 * unexelf.c: Use HAVE_ELF_H.
4706 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4707 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4708 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4709 Greg Harrington <greg_harrington@hotmail.com> provided a machine
4711 So this is an unexelfsgi.c from a different line of development.
4713 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4715 * regex.c (RE_TR_ASCII): New function.
4716 (RE_TRANSLATE): Call it.
4718 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4720 * buffer.h (TRT_TABLE_OF): Remove assert.
4721 (IN_TRT_TABLE_DOMAIN): Removed.
4723 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
4725 * free-hook.c (log_gcpro):
4726 (show_gcprohist): Add support for GCPRO5.
4728 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
4730 * emacs.c (main_1): Improve -sd error message when --pdump=no.
4732 2000-11-16 Olivier Galibert <galibert@xemacs.org>
4734 * symeval.h: Declare flush_all_buffer_local_cache.
4736 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4737 (flush_buffer_local_cache): Added.
4738 (flush_all_buffer_local_cache): Added.
4740 * lrecord.h: Remove unused XD_LO_RESET_NIL.
4742 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4743 (pdump_dump_data): Ditto.
4744 (pdump_reloc_one): Ditto.
4745 (pdump): Remove unused pdump_qnil. Flush buffer local caches
4749 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4751 * buffer.c: Remove if 0'ed entry.
4752 * buffer.h: Rewrite TRT to use char-table.
4753 * bufslots.h: Remove mirror tables.
4754 * casetab.c: Remove mirror tables.
4755 (CASE_TABLE_P): New macro.
4756 (Fcase_table_p): Element of a case table is string or char-table.
4757 (make_mirror_trt_table): Removed.
4758 (set_case_table): Setup char-table from strings for backward
4760 * dired.c (Fdirectory_files):
4761 * dired-msw.c: (mswindows_get_files):
4762 * lisp.h: Change prototype of re_pattern_buffer.
4763 * regex.c: (RE_TRANSLATE): New macro.
4764 (TRANSLATE_P): Ditto.
4765 Change translate to type RE_TRANSLATE_TYPE.
4766 * regex.h: Define RE_TRANSLATE_TYPE
4767 * search.c (TRANSLATE): New macro.
4768 (TRANSLATE_ASCII): New macro.
4769 Translate table is changed to Lisp_Object.
4770 (signal_failure): Inhibit return.
4772 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4779 Do UNGCPRO before return.
4781 2000-11-14 Martin Buchholz <martin@xemacs.org>
4783 * XEmacs 21.2.37 is released.
4785 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4787 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4788 Add comments about discarded return value.
4790 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4793 * event-stream.c: Fix comments. Remove some #if 0'ed part.
4795 2000-10-27 Andy Piper <andy@xemacs.org>
4797 * gutter.c (Fset_default_gutter_position): default left and right
4799 (calculate_gutter_size): calculate resonable heuristic for left
4800 and right gutter sizes.
4801 (specifier_vars_of_gutter): change left and right gutter sizes to
4803 (calculate_gutter_size_from_display_lines): new function.
4804 (output_gutter): check for resizing on left and right gutters.
4805 (clear_gutter): don't special case top and left gutters.
4806 (specifier_vars_of_gutter): use new signature for
4807 set_specifier_caching.
4809 * glyphs-x.c (x_redisplay_widget): spelling fix.
4810 * glyphs.c (specifier_vars_of_glyphs):
4811 * menubar.c (specifier_vars_of_menubar):
4812 * redisplay.c (specifier_vars_of_redisplay):
4813 * toolbar.c (specifier_vars_of_toolbar):
4814 * window.c (specifier_vars_of_window):
4815 * scrollbar.c (specifier_vars_of_scrollbar):
4816 (complex_vars_of_scrollbar): use new signature for
4817 set_specifier_caching.
4819 * specifier.c (set_specifier_caching): include recompute flag.
4820 (recompute_one_cached_specifier_in_window): always recompute if
4822 (recompute_one_cached_specifier_in_frame): ditto.
4824 * specifier.h (struct specifier_caching): add recompute flag.
4826 2000-10-24 Andy Piper <andy@xemacs.org>
4828 * unexcw.c (copy_executable_and_dump_data_section): add new
4829 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4832 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4834 * console-x.h (x_device): New member modifier_release_time.
4835 * event-Xt.c (x_handle_sticky_modifiers):
4836 Bound interval modifier keys are sticky.
4837 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4838 * events.h: extern it.
4840 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4842 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4844 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4846 * event-stream.c (execute_command_event): Preserve current_events
4847 and the like when event is misc-user-event.
4848 Inhibit quit during the call to maybe_echo_keys.
4850 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
4852 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4853 symlink when buffer is killed.
4854 (inhibit_clash_detection): New variable.
4856 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
4858 * console.c (Fset_input_method): Trigger redisplay on tty.
4860 2000-11-07 Martin Buchholz <martin@xemacs.org>
4862 * process.c (Fprocess_status): Revert to previous behavior:
4863 (process-status "nosuchprocess") ==> nil
4865 2000-11-06 Martin Buchholz <martin@xemacs.org>
4867 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4868 Work around another GCC 2.95.2 optimizer bug.
4870 2000-11-02 Martin Buchholz <martin@xemacs.org>
4872 * process.c (Fget_process): Use LIST_LOOP_2.
4873 (kill_buffer_processes): Use LIST_LOOP_2.
4875 * minibuf.c (Fall_completions):
4876 Delete old non-functional code for FSF fourth argument.
4878 * frame.c (frame_matches_frame_spec):
4879 Renamed from `frame_matches_frametype'. Update all callers.
4880 (device_matches_device_spec):
4881 Renamed from 'device_matches_console_spec'. Update all callers.
4883 * doc.c (Fsubstitute_command_keys):
4884 Remove buffer overflow crash. Small code cleanups.
4886 * casetab.c (check_case_table): Simpler code.
4888 * window.c (Freplace_buffer_in_windows):
4889 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4890 (and similar implementation) as Fdelete_windows_on.
4893 * alloc.c (Fmake_list):
4894 * alloc.c (make_vector):
4895 * alloc.c (Fmake_vector):
4896 * alloc.c (make_bit_vector):
4897 * alloc.c (Fmake_bit_vector):
4898 * alloc.c (Fbit_vector):
4899 * alloc.c (Fmake_string):
4900 * alloc.c (Fpurecopy):
4901 * alloc.c (Fmemory_limit):
4903 * buffer.c (Fget_buffer):
4904 * buffer.c (Fkill_buffer):
4905 * buffer.c (complex_vars_of_buffer):
4906 * bytecode.c (Fcompiled_function_stack_depth):
4907 * callint.c (Fprefix_numeric_value):
4909 * event-stream.c (Fread_key_sequence):
4911 * casetab.c (Fcase_table_p):
4912 * casetab.c (check_case_table):
4913 * casetab.c (Fset_case_table):
4914 * casetab.c (Fset_standard_case_table):
4916 * chartab.c (Fchar_table_type):
4917 * chartab.c (Freset_char_table):
4918 * chartab.c (Fget_char_table):
4919 * chartab.c (Fget_range_char_table):
4920 * chartab.c (Fput_char_table):
4921 * chartab.c (Fmap_char_table):
4922 * chartab.c (Fcategory_table_p):
4923 * chartab.c (Fcheck_category_at):
4924 * chartab.c (Fchar_in_category_p):
4925 * chartab.c (Fcategory_table):
4926 * chartab.c (Fcopy_category_table):
4927 * chartab.c (Fset_category_table):
4928 * chartab.c (Fcategory_designator_p):
4929 * chartab.c (Fcategory_table_value_p):
4930 * cmds.c (Fdelete_char):
4931 * cmds.c (Fdelete_backward_char):
4932 * cmds.c (Fself_insert_command):
4933 * cmds.c (Fself_insert_internal):
4934 * console.c (Fvalid_console_type_p):
4935 * console.c (Fcdfw_console):
4936 * console.c (Fconsole_type):
4937 * console.c (Fconsole_name):
4938 * console.c (Fconsole_device_list):
4939 * console.c (Fconsole_on_window_system_p):
4943 * data.c (Fsubr_interactive):
4944 * data.c (Fchar_to_int):
4945 * data.c (Fint_to_char):
4948 * data.c (Fnumber_to_string):
4949 * data.c (Fstring_to_number):
4951 * database.c (mark_database):
4952 * database.c (finalize_database):
4953 * database.c (Fdatabase_live_p):
4954 * database.c (Fdatabasep):
4955 * device-x.c (Fx_get_resource):
4956 * device.c (Fdfw_device):
4958 * dired.c (Ffile_name_completion):
4959 * dired.c (Ffile_name_all_completions):
4960 * dired.c (Fuser_name_completion):
4961 * dired.c (Fuser_name_completion_1):
4962 * dired.c (Fuser_name_all_completions):
4963 * doc.c (Fdocumentation):
4964 * doc.c (Fdocumentation_property):
4965 * doc.c (Fsubstitute_command_keys):
4967 * editfns.c (Fchar_to_string):
4968 * editfns.c (Fstring_to_char):
4969 * editfns.c (Ftemp_directory):
4970 * editfns.c (Finsert_char):
4971 * editfns.c (Fbuffer_substring_no_properties):
4972 * editfns.c (Fnarrow_to_region):
4973 * editfns.c (Fchar_equal):
4974 * editfns.c (Fchar_Equal):
4975 * editfns.c (Ftranspose_regions):
4976 * emacs.c (Fdump_emacs):
4978 * eval.c (Fcommand_execute):
4979 * eval.c (Fautoload):
4980 * eval.c (Fbacktrace):
4981 * eval.c (Fbacktrace_frame):
4983 * events.c (Fcopy_event):
4984 * events.c (Fcharacter_to_event):
4985 * events.c (Fevent_button):
4986 * events.c (Fevent_process):
4988 * extents.c (Fnext_extent_change):
4989 * extents.c (Fextent_property):
4991 * faces.c (Fmake_face):
4993 * file-coding.c (Fencode_shift_jis_char):
4994 * file-coding.c (Fencode_big5_char):
4995 * fileio.c (Ffile_name_directory):
4996 * fileio.c (Ffile_name_nondirectory):
4997 * fileio.c (Ffile_name_as_directory):
4998 * fileio.c (Fdirectory_file_name):
4999 * fileio.c (Ffile_truename):
5000 * fileio.c (Fsubstitute_in_file_name):
5001 * fileio.c (Ffile_modes):
5002 * fileio.c (Fset_file_modes):
5003 * fileio.c (Fset_default_file_modes):
5004 * fileio.c (Fverify_visited_file_modtime):
5005 * floatfns.c (Facos):
5006 * floatfns.c (Fasin):
5007 * floatfns.c (Fatan):
5008 * floatfns.c (Fcos):
5009 * floatfns.c (Fsin):
5010 * floatfns.c (Ftan):
5011 * floatfns.c (Fbessel_j0):
5012 * floatfns.c (Fbessel_j1):
5013 * floatfns.c (Fbessel_jn):
5014 * floatfns.c (Fbessel_y0):
5015 * floatfns.c (Fbessel_y1):
5016 * floatfns.c (Fbessel_yn):
5017 * floatfns.c (Ferf):
5018 * floatfns.c (Ferfc):
5019 * floatfns.c (Flog_gamma):
5020 * floatfns.c (Fexp):
5021 * floatfns.c (Fexpt):
5022 * floatfns.c (Flog):
5023 * floatfns.c (Flog10):
5024 * floatfns.c (Fsqrt):
5025 * floatfns.c (Fcube_root):
5026 * floatfns.c (Facosh):
5027 * floatfns.c (Fasinh):
5028 * floatfns.c (Fatanh):
5029 * floatfns.c (Fcosh):
5030 * floatfns.c (Fsinh):
5031 * floatfns.c (Ftanh):
5032 * floatfns.c (Fabs):
5033 * floatfns.c (Ffloat):
5034 * floatfns.c (Flogb):
5035 * floatfns.c (Fceiling):
5036 * floatfns.c (Ffloor):
5037 * floatfns.c (Fround):
5038 * floatfns.c (Ftruncate):
5039 * floatfns.c (Ffceiling):
5040 * floatfns.c (Fffloor):
5041 * floatfns.c (Ffround):
5042 * floatfns.c (Fftruncate):
5043 * fns.c (Fstring_equal):
5044 * fns.c (Fstring_lessp):
5049 * fns.c (Fsubstring):
5051 * fns.c (Fold_assoc):
5052 * fns.c (assoc_no_quit):
5054 * fns.c (Fold_assq):
5055 * fns.c (assq_no_quit):
5057 * fns.c (Fold_rassoc):
5059 * fns.c (Fold_rassq):
5060 * fns.c (rassq_no_quit):
5061 * fns.c (Fremassoc):
5062 * fns.c (remassoc_no_quit):
5064 * fns.c (remassq_no_quit):
5065 * fns.c (Fremrassoc):
5066 * fns.c (Fremrassq):
5067 * fns.c (remrassq_no_quit):
5069 * fns.c (Fplist_get):
5070 * fns.c (Fplist_put):
5071 * fns.c (Fplist_remprop):
5072 * fns.c (Fplist_member):
5073 * fns.c (Flax_plist_get):
5074 * fns.c (Flax_plist_put):
5075 * fns.c (Flax_plist_remprop):
5076 * fns.c (Flax_plist_member):
5078 * fns.c (Fold_equal):
5080 * fns.c (Fbase64_encode_region):
5081 * fns.c (Fbase64_encode_string):
5082 * fns.c (Fbase64_decode_region):
5084 * frame.c (frame_matches_frame_spec):
5085 * frame.c (device_matches_device_spec):
5086 * frame.c (next_frame):
5087 * frame.c (previous_frame):
5088 * frame.c (Fnext_frame):
5089 * frame.c (Fprevious_frame):
5090 * frame.c (Fframe_property):
5091 * frame.c (Fset_frame_height):
5092 * frame.c (Fset_frame_size):
5096 * glyphs.c (decode_error_behavior_flag):
5097 * glyphs.c (Fmake_image_instance):
5098 * indent.c (Findent_to):
5099 * intl.c (Fignore_defer_gettext):
5100 * keymap.c (Fkeymapp):
5101 * keymap.c (Flookup_key):
5103 * lread.c (Fload_internal):
5104 * lread.c (Feval_buffer):
5105 * lread.c (Feval_region):
5106 * macros.c (Fexecute_kbd_macro):
5107 * marker.c (set_marker_internal):
5108 * marker.c (Fset_marker):
5109 * marker.c (set_marker_restricted):
5110 * marker.c (Fcopy_marker):
5111 * marker.c (noseeum_copy_marker):
5113 * menubar.c (Fpopup_menu):
5115 * mule-charset.c (Fcharset_name):
5116 * mule-charset.c (Fchar_charset):
5117 * mule-charset.c (Fchar_octet):
5118 * mule-charset.c (Fsplit_char):
5119 * mule-wnnfns.c (Fwnn_open):
5120 * mule-wnnfns.c (Fwnn_dict_comment):
5121 * mule-wnnfns.c (Fwnn_quit_henkan):
5122 * mule-wnnfns.c (Fwnn_word_toroku):
5123 * mule-wnnfns.c (Fwnn_word_sakujo):
5124 * mule-wnnfns.c (Fwnn_word_use):
5125 * mule-wnnfns.c (Fwnn_hindo_set):
5127 * objects.c (Fmake_color_instance):
5128 * objects.c (Fmake_font_instance):
5129 * print.c (Fwrite_char):
5131 * process.c (mark_process):
5132 * process.c (print_process):
5133 * process.c (get_process_from_usid):
5134 * process.c (Fprocessp):
5135 * process.c (Fprocess_live_p):
5136 * process.c (Fget_process):
5137 * process.c (Fget_buffer_process):
5138 * process.c (get_process):
5139 * process.c (Fprocess_id):
5140 * process.c (Fprocess_name):
5141 * process.c (Fprocess_command):
5142 * process.c (init_process_io_handles):
5143 * process.c (start_process_unwind):
5144 * process.c (Fstart_process_internal):
5145 * process.c (Fopen_multicast_group_internal):
5146 * process.c (Fset_process_window_size):
5147 * process.c (read_process_output):
5148 * process.c (send_process):
5149 * process.c (Fprocess_tty_name):
5150 * process.c (Fset_process_buffer):
5151 * process.c (Fprocess_buffer):
5152 * process.c (Fprocess_mark):
5153 * process.c (set_process_filter):
5154 * process.c (Fset_process_filter):
5155 * process.c (Fprocess_filter):
5156 * process.c (Fprocess_send_region):
5157 * process.c (Fprocess_send_string):
5158 * process.c (exec_sentinel):
5159 * process.c (Fset_process_sentinel):
5160 * process.c (Fprocess_sentinel):
5161 * process.c (status_notify):
5162 * process.c (Fprocess_status):
5163 * process.c (Fprocess_exit_status):
5164 * process.c (process_send_signal):
5165 * process.c (Fprocess_send_eof):
5166 * process.c (deactivate_process):
5167 * process.c (remove_process):
5168 * process.c (Fdelete_process):
5169 * process.c (kill_buffer_processes):
5170 * process.c (Fprocess_kill_without_query):
5171 * process.c (Fprocess_kill_without_query_p):
5173 * rangetab.c (Fget_range_table):
5174 * rangetab.c (Fput_range_table):
5175 * rangetab.c (Fremove_range_table):
5176 * rangetab.c (Fclear_range_table):
5178 * search.c (Fskip_chars_forward):
5179 * search.c (Fskip_chars_backward):
5180 * search.c (Fskip_syntax_forward):
5181 * search.c (Fskip_syntax_backward):
5182 * search.c (search_command):
5183 * search.c (Freplace_match):
5184 * search.c (Fregexp_quote):
5185 * select.c (Fown_selection_internal):
5186 * select.c (Fselection_owner_p):
5187 * select.c (Fselection_exists_p):
5188 * select.c (Fget_selection_internal):
5191 * symbols.c (Fintern):
5192 * symbols.c (Fintern_soft):
5193 * symbols.c (Funintern):
5194 * symbols.c (Fapropos_internal):
5195 * symbols.c (Fset_default):
5197 * syntax.c (Fsyntax_table_p):
5198 * syntax.c (Fcopy_syntax_table):
5199 * syntax.c (Fset_syntax_table):
5200 * syntax.c (Fchar_syntax):
5201 * syntax.c (syntax_match):
5202 * syntax.c (Fmatching_paren):
5203 * syntax.c (Fforward_word):
5204 * syntax.c (scan_lists):
5205 * syntax.c (Fscan_lists):
5206 * syntax.c (Fscan_sexps):
5207 * syntax.c (Fparse_partial_sexp):
5208 * toolbar.c (Fcheck_toolbar_button_syntax):
5211 * window.c (Fwindowp):
5212 * window.c (Fwindow_live_p):
5213 * window.c (Fwindow_point):
5214 * window.c (Fdelete_window):
5215 * window.c (Fnext_window):
5216 * window.c (Fprevious_window):
5217 * window.c (Fother_window):
5218 * window.c (window_loop):
5219 * window.c (Fget_lru_window):
5220 * window.c (Fsplit_window):
5221 * window.c (Fenlarge_window):
5222 * window.c (Fenlarge_window_pixels):
5223 * window.c (Fshrink_window):
5224 * window.c (Fshrink_window_pixels):
5225 * window.c (change_window_height):
5226 * window.c (Fwindow_configuration_p):
5227 * window.c (Fcurrent_window_configuration):
5229 * casefiddle.c (casify_object):
5230 * casefiddle.c (Fupcase):
5231 * casefiddle.c (Fdowncase):
5232 * casefiddle.c (Fcapitalize):
5233 * casefiddle.c (Fupcase_initials):
5234 * casefiddle.c (casify_region_internal):
5235 * casefiddle.c (casify_region):
5236 * casefiddle.c (Fupcase_region):
5237 * casefiddle.c (Fdowncase_region):
5238 * casefiddle.c (Fcapitalize_region):
5239 * casefiddle.c (Fupcase_initials_region):
5240 * casefiddle.c (Fupcase_word):
5241 * casefiddle.c (Fdowncase_word):
5242 * casefiddle.c (Fcapitalize_word):
5243 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5244 Replace 0 with '\0' when working with bytes.
5245 Replace initial "(" with "\(" in docstrings.
5247 2000-11-01 Martin Buchholz <martin@xemacs.org>
5249 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5251 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5253 2000-10-31 Martin Buchholz <martin@xemacs.org>
5255 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5257 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5259 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5262 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5264 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5265 (inhibit_auto_save_session): New variable.
5266 (vars_of_fileio): Declare and initialize them.
5267 * fileio.c (Fdo_auto_save): Don't create session file if
5268 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5270 2000-10-31 Martin Buchholz <martin@xemacs.org>
5272 * sgiplay.c (play_internal): C++ compilability.
5273 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5274 * callproc.c (Fold_call_process_internal):
5275 Remove unused vars `env', `first'.
5276 * scrollbar.c (update_scrollbar_instance):
5277 #### unused var `current_window'.
5278 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5279 etc. within #ifdef NOT_YET.
5280 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5281 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5282 * specifier.c (specifier_instance):
5283 #### unused var `tag'.
5284 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5286 2000-10-27 Martin Buchholz <martin@xemacs.org>
5289 * fns.c (list_sort):
5290 * fns.c (Ffillarray):
5291 * fns.c (bytecode_nconc2):
5294 * fns.c (Fmapconcat):
5295 Be pedantically 64-bit correct. For the time when someone will
5296 want to have a list with length > 2**32.
5298 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5299 Work around MIPSpro compiler bug.
5301 * process-unix.c (unix_kill_child_process): Add snarky comment.
5302 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5304 * config.h.in: Oops, _getpt ==> _getpty
5306 2000-10-26 Martin Buchholz <martin@xemacs.org>
5310 Use void*, not char*, as return type of alloca().
5312 * alloc.c (free_marker): Side effect inside assert expression!
5314 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5316 * mule-charset.c (Fset_charset_ccl_program): To check
5317 if the given ccl program is valid, use setup_ccl_program()
5318 instead of CHECK_VECTOR().
5319 (Fmake_charset): Likewise.
5321 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5323 * faces.c (get_extent_fragment_face_cache_index):
5324 Fix cachel.merged_faces memory leak.
5326 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5328 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5329 Reset MSB of octets obtained by DECODE_SJIS
5330 because of the incompatibility with Emacs.
5331 (ccl_driver)<CCL_ENCODE_SJIS>:
5332 Set MSB of octets before passing them to
5333 ENCODE_SJIS because of the incompatibility
5336 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5338 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5339 (DECLARE_LRECORD): Undo the last change.
5340 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5342 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5344 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5345 the implementation to lrecord_implementations_table.
5347 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5349 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5350 initial value of `lrecord_type_##c_name' and
5351 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5352 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5353 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5354 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5355 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5357 2000-10-17 Martin Buchholz <martin@xemacs.org>
5359 * miscplay.c (sndcnv8S_2mono):
5360 (sndcnv2monounsigned):
5361 (sndcnvULaw_2linear):
5363 Remove implementation-defined behavior.
5365 2000-10-12 Martin Buchholz <martin@xemacs.org>
5367 * input-method-xlib.c: Warning suppression.
5369 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5371 * mule-ccl.c: Sync up with Emacs 21.0.90.
5372 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5374 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5376 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5377 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5378 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5379 leading char belongs to official 2-dimensional charset.
5380 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5381 write the given character as is. Otherwise,
5382 if it is a multibyte char, convert it by
5383 non_ascii_set_charptr_emchar, then write it.
5384 (CCL_WRITE_STRING): Likewise.
5385 (ccl_get_compiled_code): New function.
5386 (setup_ccl_program): When ccl_prog is invalid,
5388 (Fregister_code_conversion_map): New function.
5389 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5391 * mule-ccl.h: Sync up with Emacs 21.0.90.
5392 (Fregister_ccl_program): export it.
5394 * redisplay-msw.c (separate_textual_runs):
5395 If ccl program is not valid, don't do ccl conversion.
5397 * redisplay-x.c (separate_textual_runs): Ditto.
5399 * file-coding.c (Fmake_coding_system):
5400 When type is ccl and value is vector, register it
5401 with a proper symbol. And checks whether the
5402 given ccl program is valid.
5403 (mule_decode): When calling ccl_driver, if src indicates
5404 NULL pointer, set an empty string instead.
5405 (mule_encode): Likewise.
5407 2000-10-11 Martin Buchholz <martin@xemacs.org>
5409 The following large batch of changes gets us back to a state of
5410 C++ compilability. Extbyte is now a char, which means that
5411 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5413 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5415 * sound.c (Fplay_sound): Type correctness.
5417 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5418 (x_get_window_property): Type correctness.
5419 (receive_incremental_selection): unsigned char ==> Extbyte
5420 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5421 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5422 (Fx_store_cutbuffer_internal): Type correctness.
5424 * process-unix.c (try_to_initialize_subtty): Type correctness.
5426 * objects-x.c (x_print_color_instance): Type correctness.
5427 (x_print_font_instance): Type correctness.
5428 (x_list_fonts): SExtbyte ==> Extbyte.
5429 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5430 (x_find_charset_font): SExtbyte ==> Extbyte.
5431 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5432 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5433 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5436 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5437 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5438 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5439 (BYTE_C0_P): Use bit ops for char-signedness safety.
5440 (BYTE_C1_P): Use bit ops for char-signedness safety.
5441 (CHARSET_BY_LEADING_BYTE):
5442 (CHARSET_BY_ATTRIBUTES):
5443 Always use inline function.
5444 Use type_checking_assert.
5447 * mule-charset.c (non_ascii_charptr_copy_char):
5448 Modify to work with both ASCII and non-ASCII characters.
5449 Improve docs and variable names.
5450 Replace over-clever fall-through switch with a simple loop.
5451 (Lstream_get_emchar_1):
5452 Replace over-clever fall-through switch with a simple loop.
5454 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5455 Warning suppression.
5457 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5458 the return value of Lstream_getc, which could be EOF as well.
5460 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5462 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5463 APIs can be used on Extbytes without casts. Risky!
5467 * input-method-xlib.c (XIM_init_device):
5468 Use Xlib.h instead of IntrinsicP.h.
5469 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5470 which will break in X11R7.
5471 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5472 to call XRegisterIMInstantiateCallback with correct types.
5474 * gui-x.c (button_item_to_widget_value): Type correctness.
5476 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5478 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5479 (xbm_instantiate_1): Type correctness.
5480 (BUILD_GLYPH_INST): Type correctness.
5482 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5485 (decode_coding_sjis):
5486 (decode_coding_big5):
5487 (decode_coding_ucs4):
5488 (decode_coding_utf8):
5489 (decode_coding_iso2022):
5490 (decode_coding_no_conversion):
5491 Make all decoding functions take an Extbyte * arg.
5492 (encode_coding_sjis):
5493 (encode_coding_big5):
5494 (encode_coding_ucs4):
5495 (encode_coding_utf8):
5496 (encode_coding_iso2022):
5497 (encode_coding_no_conversion):
5498 Make all encoding functions take a Bufbyte * arg.
5499 Use size_t instead of unsigned int for memory sizes.
5500 Only cast to unsigned char whenever dereferencing Extbyte *.
5502 * doc.c (unparesseuxify_doc_string): Type correctness.
5504 * console-x.c (split_up_display_spec):
5505 Rewrite without using details of internal string representation.
5506 (x_semi_canonicalize_device_connection): Type correctness.
5509 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5510 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5511 (HAVE_XFREE386): Removed.
5513 * buffer.h (DEC_CHARPTR): `const' correctness.
5514 (bufbyte_strcmp): New.
5515 (bufbyte_memcmp): New.
5517 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5519 * buffer.h (XCHAR_OR_CHAR_INT):
5520 Always use inline function.
5521 Remove redundant type checking assert() - XINT will abort quite nicely.
5523 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5525 * search.c (Freplace_match): Set newtext to an empty string.
5527 2000-10-10 Martin Buchholz <martin@xemacs.org>
5529 * s/decosf1-3.h: Remove #include of stropts.h
5530 * s/ptx.h: Remove #include of stropts.h
5531 * s/usg5-4.h: Remove #include of stropts.h
5534 Use stropts.h, not sys/stropts.h.
5535 Use strtio.h, not sys/strtio.h.
5537 2000-10-04 Martin Buchholz <martin@xemacs.org>
5539 * XEmacs 21.2.36 is released.
5541 2000-09-21 Andy Piper <andy@xemacs.org>
5543 * glyphs-x.c (x_redisplay_widget): make sure non-structural
5544 changes still involve copying the widget tree.
5545 (update_widget_face): make sure a change is register in the widget
5546 tree. Call update_tab_widget_face appropriately.
5547 (update_tab_widget_face): ditto.
5548 (x_tab_control_redisplay): make sure non-structural changes still
5549 involve copying the widget tree.
5551 2000-08-31 Daiki Ueno <ueno@unixuser.org>
5553 * lread.c (locate_file): Check the path element is non-nil.
5555 2000-10-02 Martin Buchholz <martin@xemacs.org>
5557 * lisp.h: Warning suppression for SCO compilers.
5559 * redisplay-tty.c (reset_tty_modes): Fix crash.
5560 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5562 2000-09-27 Martin Buchholz <martin@xemacs.org>
5564 Big signal/process handling overhaul. Bugs fixed:
5565 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5566 M-x comint-kill-subjob should work for both values nil and t of
5567 process-connection-type. It was broken on most platforms.
5568 Testing on Irix and Cygwin still needed. Other plaforms tested.
5569 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
5570 * process-unix.c: Signal/Process handling overhaul.
5571 (pty_name): make 64 bytes, as `expect' does, for paranoia.
5572 (allocate_pty): Use all available modern methods of allocating
5573 ptys, falling back to old style BSD allocation as a last resort.
5574 Use allegedly more secure Unix98 pty allocation by default.
5575 (allocate_pty_the_old_fashioned_way): New. the last resort.
5576 (unix_create_process): Push ptem, ldterm, ttcompat where
5577 available. Autoconfiscate.
5578 (try_to_initialize_subtty): New.
5579 (unix_kill_child_process): Proper signal handling for ptys on most
5580 platforms, using special knowledge of AIX, BSD, etc...
5581 (unix_create_process): Always disconnect_controlling_terminal() for
5582 subprocesses, whether using ptys or not.
5583 * process.h: Remove old getpt-dependent PTY code.
5584 * process.c (Fprocess_send_signal): New, obvious generic function.
5585 (decode_signal): New.
5586 (Finterrupt_process):
5590 (Fcontinue_process):
5591 (Fsignal_process): Use decode_signal.
5592 (process_send_signal):
5593 Many docstring corrections.
5594 Allow any signal to be sent to a process object.
5595 * config.h.in: Add symbols for big signal/process overhaul.
5596 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5597 * sysproc.h: Include process-related headers, where available:
5598 sys/stropts.h sys/strtio.h pty.h libutil.h
5606 Remove old S&M pty stuff.
5607 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5608 * systty.h: Simplify cpp hackery, improve comments.
5609 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5611 * editfns.c (Fformat_time_string):
5612 Be a little more paranoid with the return value of ctime.
5614 * fileio.c (check_executable):
5616 Use symbolic constants X_OK, W_OK.
5618 * console-x.c (split_up_display_spec): Fix a warning.
5620 2000-10-02 Martin Buchholz <martin@xemacs.org>
5622 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5623 * ntproc.c (sys_spawnve): make_string ==> build_string
5624 Small clarity improvements.
5626 2000-09-30 Martin Buchholz <martin@xemacs.org>
5628 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5630 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5632 * config.h.in (HAVE_STRCASECMP): Remove.
5634 2000-09-29 Martin Buchholz <martin@xemacs.org>
5636 * redisplay-output.c (redisplay_output_pixmap):
5637 Cleaner and possibly more 64-bit correct code.
5639 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5641 * dumper.c (pdump_load_finish): move restoration of
5642 `noninteractive1' to emacs.c (main_1).
5643 * emacs.c (main_1): protect LISP-visible command-line flags
5646 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
5648 * Makefile.in.in (versionclean): Use EXE_TARGET and
5649 DUMP_TARGET instead of literal program names.
5651 2000-09-20 Martin Buchholz <martin@xemacs.org>
5653 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5655 2000-09-19 Martin Buchholz <martin@xemacs.org>
5657 * *: Spelling mega-patch
5659 2000-09-19 Martin Buchholz <martin@xemacs.org>
5661 * fns.c (bad_bad_turtle):
5662 Delete "Eek!" comment, since we fixed the bug to which it refers.
5664 2000-09-16 Martin Buchholz <martin@xemacs.org>
5666 * alloca.c: Replace REGISTER with register.
5668 2000-09-16 Daiki Ueno <ueno@unixuser.org>
5670 * file-coding.c (ucs_to_char): Use countof.
5672 2000-09-16 Martin Buchholz <martin@xemacs.org>
5674 * file-coding.c: (ucs_to_char):
5675 (complex_vars_of_file_coding):
5676 Use countof instead of sizeof.
5677 Use CHECK_NATNUM instead of CHECK_INT.
5679 * sysdep.c (strcasecmp): Remove.
5680 * device-x.c (ascii_strcasecmp): New.
5681 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5682 Avoid using non-standard non-portable strcasecmp.
5684 2000-09-16 Martin Buchholz <martin@xemacs.org>
5686 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5687 * font-lock.c: remove reference to emacsfns.h.
5688 * search.c: small doc improvement.
5689 * event-Xt.c: correct file names in comments.
5690 * console-x.h Correct file names in comments.
5691 * frame.c: Correct file names in comments.
5692 * event-stream.c: remove Energize from comments.
5694 2000-09-15 Martin Buchholz <martin@xemacs.org>
5696 * symeval.h (DEFERROR_STANDARD):
5699 (DEFSYMBOL_NO_DUMP):
5700 (DEFSYMBOL_MULTIWORD_PREDICATE):
5701 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5703 The construct &##name is not sensible C.
5704 Fixes compilation errors with Unixware native compiler.
5706 2000-09-14 Martin Buchholz <martin@xemacs.org>
5708 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5709 (next_frame_internal): Removed. We now just have next_frame.
5711 Write a simpler and cleaner one-pass algorithm.
5712 Remove called_from_delete_device arg and #ifdefed-out code.
5714 Renamed from prev_frame. Update callers.
5715 Cleaned up to have an analogous implementation to next_frame.
5716 (other_visible_frames_internal): Remove the
5717 called_from_delete_device bogus arg, and hence, remove this
5718 function. Just use other_visible_frames().
5720 * window.c (Fnext_window):
5722 Since next_frame() is guaranteed to return a frame, remove check
5723 for nil inserted in previous patch.
5726 Make code look more like Fnext_window.
5728 Respect the `console' arg when iterating through windows.
5729 Fixes bug: (get-buffer-window buffer t device) not respecting
5731 This function needs more work, as others have pointed out.
5733 * frame.h: Rename prev_frame to previous_frame.
5734 device_matches_console_spec no longer takes a `frame' arg.
5739 Use EMACS_BLOCK_SIGNAL instead of sigblock.
5740 From "Golubev I. N." <gin@mo.msk.ru>.
5742 * make-src-depend: Fix typo.
5744 2000-09-13 Martin Buchholz <martin@xemacs.org>
5746 * window.c (Fnext_window):
5747 next_frame() might return nil, not a frame.
5749 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5751 * frame.c (next_frame_internal):
5752 We've passed a frame if we've passed its device.
5754 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5755 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5757 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
5759 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5760 Allow option to suppress accelerators in menu/dialog items.
5761 (populate_or_checksum_helper): Pass dialog title through above.
5763 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
5765 * event-msw.c (mswindows_key_to_emacs_keysym):
5766 Add "pause" key, fix "menu" key.
5768 2000-09-09 Martin Buchholz <martin@xemacs.org>
5770 * eval.c (reinit_vars_of_eval):
5771 Increase max_lisp_eval_depth to 1000,
5772 required for thai-xtis.el to byte-compile under some circumstances.
5774 2000-09-04 Martin Buchholz <martin@xemacs.org>
5776 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5779 2000-09-01 Martin Buchholz <martin@xemacs.org>
5781 * make-src-depend: Make the generated Makefiles smaller.
5783 * s/hpux.h (SETUP_SLAVE_PTY):
5784 Provide a %d in the format string for the errno argument.
5786 * editfns.c (Ftemp_directory):
5788 Avoid buffer overrun on very long file name.
5790 * input-method-xlib.c (XIM_init_device):
5791 6th parameter of XRegisterIMInstantiateCallback has different
5792 pointer types on different OSes, so simply cast to (void *).
5794 * unexhp9k800.c: Warning fixes. Fiddly changes.
5796 * sysdll.c (dll_open):
5797 shl_load will hang hard if passed a NULL filename.
5798 Simply return NULL for compatibility with dlopen.
5799 * sysdll.c: Conform to XEmacs coding standards.
5801 * sysdep.c (get_pty_max_bytes):
5802 Support pty input lines longer than 512 bytes on HP-UX 10.20.
5804 2000-08-31 Martin Buchholz <martin@xemacs.org>
5806 * tooltalk.c: Add #include <syssignal.h>
5808 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
5810 * s/hpux.h: Don't use undefined function sigunblock().
5812 2000-08-31 Martin Buchholz <martin@xemacs.org>
5814 * config.h.in: Add HAVE_BALLOON_HELP.
5815 * emacs.c: Use HAVE_BALLOON_HELP.
5816 * Makefile.in.in (x_objs):
5817 Make Balloon Help conditional on finding shape.h.
5819 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
5821 * syntax.c (regex_emacs_buffer_p): New variable.
5822 * syntax.h (regex_emacs_buffer_p): extern.
5823 * search.c (looking_at_1):
5825 (fast_string_match):
5826 (search_buffer): Set regex_emacs_buffer_p.
5827 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5828 when before_dot, at_dot, after_dot.
5830 2000-08-23 Andy Piper <andy@xemacs.org>
5832 * gui-x.c (popup_selection_callback): Only set action_occurred
5833 when we really have an image instance.
5834 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5836 2000-08-23 Andy Piper <andy@xemacs.org>
5838 * gui-msw.c (mswindows_handle_gui_wm_command): set
5840 * gui-x.c (popup_selection_callback): ditto.
5842 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5843 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5844 (struct Lisp_Image_Instance): add action_occurred flag.
5846 * glyphs.c (redisplay_subwindow): use action_occurred flag.
5847 (image_instance_changed): ditto.
5848 (reset_frame_subwindow_instance_cache): only unmap windows - do
5849 not remove them from the cache also.
5851 * glyphs-widget.c (tab_control_update): better debug.
5852 (progress_gauge_update): ditto.
5853 (layout_update): ditto.
5854 (layout_instantiate): ditto.
5855 (tab_control_order_only_changed): cope with null pending items.
5857 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5858 debug. Force selection of an item when an action occurred. Cope
5859 with null pending_items.
5860 (mswindows_progress_gauge_redisplay): better debug.
5861 * glyphs-x.c (x_tab_control_redisplay): ditto.
5863 * redisplay.c (redisplay_frame): reset the frame cache if the
5866 * window.c (Fset_window_configuration): potentially re-enable
5868 (window_unmap_subwindows): need to finalize instances here since
5869 it is only used in mark_window_as_deleted.
5871 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
5873 * nas.c (SndOpenDataForReading):
5874 nas.c (WaveOpenDataForReading):
5875 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5876 Somehow escaped from the 2000-08-14 patch.
5878 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5880 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5881 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5883 2000-08-21 Andy Piper <andy@xemacs.org>
5885 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5886 window if it is not already displayed.
5888 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5889 it is not already displayed.
5891 * window.c (Fset_window_configuration): don't reset the frame
5894 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5895 instances from the frame cache if we are actually finalizing them.
5896 (reset_frame_subwindow_instance_cache): reset frame cache only
5897 after unmapping everything.
5898 (map_subwindow): set displayed flag after mapping.
5900 2000-08-21 Martin Buchholz <martin@xemacs.org>
5902 * data.c (indirect_function):
5903 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5905 * eval.c (function_argcount):
5906 Use original function when signaling errors.
5908 2000-08-18 Andy Piper <andy@xemacs.org>
5910 * frame.c (delete_frame_internal): use new
5911 free_frame_subwindow_instances name.
5913 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5914 (add_tab_item): make return type correct.
5915 (mswindows_tab_control_instantiate): assert index of tab.
5916 (mswindows_tab_control_redisplay): Re-code to use
5917 gui_item_equal_sans_selected and gui_item_list_find_selected.
5919 * glyphs-widget.c (tab_control_update): Correct comment.
5921 * window.c (window_unmap_subwindows): use new
5922 unmap_subwindow_instance_cache_mapper.
5923 (window_unmap_subwindows_cache_mapper): deleted.
5924 (Fset_window_configuration): comparisons should now be with
5925 EQ. Preserve the subwindow instance cache across configuration
5927 (allocate_window): ditto.
5928 (make_dummy_parent): ditto.
5930 * glyphs.c (free_frame_subwindow_instances): rename from
5931 free_frame_subwindow_instance_cache. finalize all instances rather
5932 than just those in the display cache.
5933 (finalize_all_subwindow_instances): walk windows unmapping and
5934 finalizing subwindows.
5935 (unmap_subwindow_instance_cache_mapper): moved from
5936 window.c. Allow finalization as well as unmapping.
5938 * gui.c (gui_item_list_find_selected): new function.
5940 * gui.h (gui_item_list_find_selected): declare.
5942 * glyphs-x.c (x_tab_control_redisplay): pick tab
5943 explicitly. Re-code to use gui_item_equal_sans_selected and
5944 gui_item_list_find_selected.
5946 * glyphs-x.h: add lwlib-utils.h
5948 * buffer.c (Frecord_buffer): undo previous change.
5950 2000-08-09 Vin Shelton <acs@xemacs.org>
5952 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5953 possible. Create temporary files more securely. The patch was
5954 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5955 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
5956 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5959 2000-08-07 Ben Wing <ben@xemacs.org>
5961 * getloadavg.c: remove duplicate (and windows-breaking)
5962 includes of fcntl.h and sys/file.h.
5964 * nt.c: remove duplicate getloadavg() definition.
5966 * sysdll.h (Qdll_filename_encoding): add missing stand-in
5969 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
5971 * eval.c (function_argcount): If function needs to be autoloaded
5972 actually use the loaded definition.
5975 2000-08-05 Ben Wing <ben@xemacs.org>
5977 * getloadavg.c: add prototype for getloadavg(). remove
5978 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5979 of the code). remove duplicate header includes.
5981 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5983 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5984 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5985 useful load average.
5987 * alloc.c (reinit_alloc_once_early): removed references to
5988 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5989 the lisp vars are the only things referencing the malloc_sbrk_*
5990 vars, and they were already if 0'd out. these vars only exist
5991 in the older malloc.c, which is basically unused, and they're
5992 only for informational purposes.
5994 * m\*.h: removed useless VIRT_ADDR_VARIES.
5996 * m\powerpc.h: removed stray NO_ARG_ARRAY.
5998 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6000 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6001 color if the image is a mono pixmap.
6003 2000-07-30 Ben Wing <ben@xemacs.org>
6005 * Makefile.in.in (release):
6008 * buffer.c (directory_is_current_directory):
6009 * dired-msw.c (mswindows_get_files):
6011 * dired.c (Fdirectory_files):
6012 * dired.c (file_name_completion_stat):
6013 * dired.c (Ffile_attributes):
6014 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6015 preprocessor tricks, to avoid problems on some machines
6018 * callproc.c (egetenv): GC docs.
6021 * console-msw.h (struct mswindows_dialog_id):
6022 * lrecord.h (lrecord_type):
6023 New object for use with MSW dialogs.
6025 * console.h (struct console_methods):
6026 New enable/disable frame methods, for proper modal dialogs.
6028 * device-msw.c (msprinter_default_printer): Fix to follow
6029 proper Mule conventions.
6032 * device-msw.c (signal_open_printer_error):
6033 * device-msw.c (msprinter_init_device):
6034 * device-msw.c (ensure_not_printing):
6035 * device-msw.c (plist_get_margin):
6036 * device-msw.c (Fmsprinter_select_settings):
6037 * device-msw.c (finalize_devmode):
6038 * device-msw.c (Fmsprinter_settings_despecialize):
6039 * device-msw.c (signal_enum_priner_error):
6040 * extents.c (decode_extent):
6041 * extents.c (decode_map_extents_flags):
6042 * extents.c (decode_extent_at_flag):
6043 * extents.c (Fextent_at):
6044 * extents.c (Fextents_at):
6045 * extents.c (symbol_to_glyph_layout):
6046 [[[[2]]]] Use structured errors.
6049 * dialog-msw.c (mswindows_is_dialog_msg):
6050 * dialog-msw.c (mark_mswindows_dialog_id):
6051 * dialog-msw.c (dialog_proc):
6052 * dialog-msw.c (handle_question_dialog_box):
6053 * dialog-msw.c (syms_of_dialog_mswindows):
6054 Define new object to clean up marking; use it as a dialog identifier.
6055 Call new delete-dialog-box-hook.
6057 * dialog-x.c (dbox_selection_callback):
6058 * dialog-x.c (dbox_descriptor_to_widget_value):
6059 * dialog-x.c (x_make_dialog_box_internal):
6060 Call new delete-dialog-box-hook.
6064 * dialog.c (syms_of_dialog):
6065 * dialog.c (vars_of_dialog):
6066 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6069 * eval.c (signal_call_debugger):
6070 when noninteractive, output stack traces on the console instead
6071 of in a (never-seen) buffer.
6073 * eval.c (signal_type_error):
6074 * eval.c (invalid_argument_2):
6076 new funs for use w/structured errors.
6079 * event-Xt.c (x_to_emacs_keysym):
6080 * event-Xt.c (describe_event):
6081 * event-Xt.c (emacs_Xt_event_handler):
6082 * event-Xt.c (vars_of_event_Xt):
6084 * event-msw.c (mswindows_wnd_proc):
6085 * event-msw.c (vars_of_event_mswindows):
6086 rename {x,mswindows}-debug-events to debug-{}-events for
6087 consistency with other debug-foo variables.
6090 document next-event more clearly.
6092 * fileio.c (Ffile_name_directory):
6093 * fileio.c (Ffile_name_nondirectory):
6094 * fileio.c (Funhandled_file_name_directory):
6095 * fileio.c (file_name_as_directory):
6096 * fileio.c (Ffile_name_as_directory):
6097 * fileio.c (directory_file_name):
6098 * fileio.c (Fdirectory_file_name):
6099 * fileio.c (Fmake_temp_name):
6100 * fileio.c (Ffile_truename):
6101 * fileio.c (Fsubstitute_in_file_name):
6102 * fileio.c (expand_and_dir_to_file):
6103 * fileio.c (barf_or_query_if_file_exists):
6104 * fileio.c (check_executable):
6105 * fileio.c (Ffile_exists_p):
6106 * fileio.c (Ffile_writable_p):
6107 * fileio.c (Ffile_directory_p):
6108 * fileio.c (Ffile_regular_p):
6109 * fileio.c (Ffile_modes):
6110 * fileio.c (Ffile_newer_than_file_p):
6111 * fileio.c (Fverify_visited_file_modtime):
6112 * fileio.c (Fset_visited_file_modtime):
6113 * fileio.c (auto_save_1):
6118 * frame-msw.c (mswindows_init_frame_1):
6119 * frame-msw.c (mswindows_enable_frame):
6120 * frame-msw.c (error_frame_unsizable):
6121 * frame-msw.c (msprinter_init_frame_1):
6122 * frame-msw.c (msprinter_init_frame_3):
6123 * frame-msw.c (console_type_create_frame_mswindows):
6125 implement new enable/disable frame methods.
6128 * frame-x.c (x_enable_frame):
6129 * frame-x.c (console_type_create_frame_x):
6130 implement new enable/disable frame methods.
6133 * frame.c (Fdisable_frame):
6134 * frame.c (syms_of_frame):
6135 * frame.h (struct frame):
6136 implement new enable/disable frame methods/functions.
6141 * glyphs-msw.c (mswindows_widget_instantiate):
6142 comment that initial-focus should be implemented.
6145 * glyphs-widget.c (check_valid_instantiator):
6146 * glyphs-widget.c (check_valid_orientation):
6147 * glyphs-widget.c (check_valid_tab_orientation):
6148 * glyphs-widget.c (check_valid_justification):
6149 * glyphs-widget.c (check_valid_border):
6150 * glyphs-widget.c (check_valid_callback):
6151 * glyphs-widget.c (check_valid_int_or_function):
6152 * glyphs-widget.c (check_valid_string_or_vector):
6153 * glyphs-widget.c (check_valid_item_list_1):
6154 * glyphs-widget.c (widget_validate):
6155 * glyphs-widget.c (combo_box_validate):
6156 * glyphs-widget.c (widget_instantiate):
6157 * glyphs-widget.c (syms_of_glyphs_widget):
6158 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6159 * glyphs-widget.c (image_instantiator_combo_box):
6160 * glyphs-widget.c (image_instantiator_scrollbar):
6161 * glyphs-widget.c (image_instantiator_tab_control):
6162 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6164 support (unimplemented) keyword initial-focus.
6165 reindent long macros.
6167 * glyphs-x.c (x_redisplay_widget):
6168 * glyphs-x.c (x_button_instantiate):
6169 * glyphs-x.c (x_button_redisplay):
6170 * glyphs-x.c (x_progress_gauge_instantiate):
6171 * glyphs-x.c (x_edit_field_instantiate):
6172 * glyphs-x.c (x_combo_box_instantiate):
6173 * glyphs-x.c (x_tab_control_instantiate):
6174 * glyphs-x.c (x_label_instantiate):
6176 * gui-x.c (button_item_to_widget_value):
6177 * gui-x.c (gui_items_to_widget_values_1):
6178 * gui-x.c (gui_item_children_to_widget_values):
6179 * gui-x.c (gui_items_to_widget_values):
6181 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6182 add new flag to gui-parsing routines to indicate whether
6183 accelerator specs should be supported.
6185 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6187 * glyphs.h (struct Lisp_Image_Instance):
6188 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6189 add initial-focus flag.
6192 * gui.c (syms_of_gui):
6193 * gui.c (vars_of_gui):
6194 clean up menu-no-selection-hook.
6197 support delete-dialog-box-hook.
6199 * lread.c (Fload_internal):
6200 * lread.c (locate_file_in_directory_mapper):
6204 * lrecord.h (struct toolbar_button):
6205 * lrecord.h (syms_of_toolbar):
6206 document how to create a new object.
6208 * menubar-msw.c (mswindows_char_is_accelerator):
6209 may be called on frames w/o menus.
6211 * menubar.c (vars_of_menubar):
6212 clean up :filter docs.
6219 * process-nt.c (validate_signal_number):
6220 * process-nt.c (signal_cannot_launch):
6221 * process-nt.c (nt_create_process):
6222 * process-nt.c (nt_send_process):
6223 * process-nt.c (nt_kill_child_process):
6224 * process-nt.c (nt_open_network_stream):
6225 * process-nt.c (syms_of_process_nt):
6227 delete quote-handling. call new lisp code that does it better.
6229 * process-unix.c (connect_to_file_descriptor):
6230 * process-unix.c (allocate_pty):
6231 * process-unix.c (unix_send_process):
6232 * process-unix.c (unix_kill_child_process):
6233 * process-unix.c (unix_open_network_stream):
6234 * process-unix.c (unix_open_multicast_group):
6238 * process.c (Fstart_process_internal):
6239 (2). need to canonicalize process path even if absolute.
6241 * select-msw.c (symbol_to_ms_cf):
6242 * select-msw.c (ms_cf_to_symbol):
6243 * select-msw.c (cf_is_autofreed):
6244 * select-msw.c (mswindows_destroy_selection):
6246 * select.c (syms_of_select):
6248 support dibv5, fix bugs. (from Mike Alexander)
6250 * select.c (Fget_selection_internal):
6251 * select.c (select_convert_out):
6254 * sysdep.c (xemacs_stat):
6259 but keep original stat() here because we provide encapsulation
6263 * sysfile.h (fstat):
6264 remove stat garbage.
6268 don't include tchar.h. it's inappropriate because it makes
6269 compile-time distinctions when we want runtime distinctions.
6270 (we provide our own tchar replacements)
6273 use default object printer for toolbar-button.
6276 make sure we don't encapsulate.
6278 * window.c (vars_of_window):
6279 emphasize that temp-buffer-show-hook is obsolete.
6281 2000-08-05 Martin Buchholz <martin@xemacs.org>
6283 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6284 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6286 * events.c (Fevent_timestamp_lessp):
6287 Not 64-bit clean. Use EMACS_INT, not int.
6289 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6291 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6292 unsigned int and changed the last enum to
6293 lrecord_type_last_built_in_type.
6294 (lrecord_implementations_table): changed prototype to know how
6295 long the array is supposed to be.
6296 (lrecord_type_count): new unsigned int to keep track of the
6297 current number of lisp lrecord types.
6298 (DEFINE_EXTERNAL_LRECORD):
6299 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6300 dynamic-modules to declare new lisp types. They are the same
6301 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6302 int for each new type, and increment lrecord_type_count by 1.
6304 * alloc.c (lrecord_implementations_table): Changed to reference
6305 lrecord_type_last_built_in_type for the size of the array.
6306 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6308 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6310 * glyphs.h (check_valid_item_list): Renamed from
6311 check_valid_item_list_1.
6313 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6315 * select.c (Qselect_coerce): New.
6316 * select.c (Vselection_coercion_alist): New.
6317 * select.c (syms_of_select): Declare.
6318 * select.c (get-selection-internal): Use it.
6319 Use the new select-coerce functionality.
6321 * select.c (select_coerce): New.
6322 * select.h (select_coerce): Declare.
6323 New function to coerce one type of data into another.
6325 2000-08-03 Martin Buchholz <martin@xemacs.org>
6327 * callproc.c (Fcall_process_internal):
6328 (Fcall_process_internal):
6329 * process-unix.c (unix_create_process):
6330 Save and restore the value of errno, so that error messages are accurate.
6332 2000-08-01 Martin Buchholz <martin@xemacs.org>
6334 * elhash.c (print_hash_table):
6335 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6336 Prettify docstrings and indentation.
6338 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6340 * window.c (Fwindow_pixel_edges): Subtract frame border and
6343 2000-07-31 Andy Piper <andy@xemacs.org>
6345 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6346 will acknowledge the change.
6348 * glyphs.h: declare tab_control_order_only_changed.
6350 * glyphs-x.c (x_tab_control_redisplay): use
6351 tab_control_order_only_changed.
6353 * glyphs-widget.c (tab_control_order_only_changed): new function.
6355 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6356 tab_control_order_only_changed.
6358 * gui.c (gui_item_equal_sans_selected): new function.
6359 (gui_item_equal): use it.
6361 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6362 :properties in favor of :items..
6364 * glyphs-widget.c (check_valid_item_list): rename from
6365 check_valid_item_list_1.
6366 (check_valid_item_list_1): renamed.
6367 (combo_box_validate): deprecate :properties in favor of :items.
6368 (widget_instantiate): ditto.
6369 (tab_control_update): ditto.
6370 (image_instantiator_combo_box): ditto.
6371 (image_instantiator_tree_view): ditto.
6372 (image_instantiator_tab_control): ditto.
6373 (layout_post_instantiate): remove dead code.
6375 * print.c (debug_print_no_newline): only write to debugger if in
6378 * elhash.c (Fmake_hash_table): update doc string.
6380 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6381 messages whilst in GC. This at least stops XEmacs crashing but has
6382 the potential for wierd behaviour.
6384 2000-07-31 Martin Buchholz <martin@xemacs.org>
6387 Make existence of s&m files optional.
6389 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6390 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6391 * s/gnu.h: Remove HAVE_GETLOADAVG.
6392 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6393 * s/sol2.h: Remove HAVE_GETLOADAVG.
6394 * lisp.h: Remove getloadavg() declaration.
6396 Include <sys/loadavg.h> if available.
6397 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6398 * config.h.in: Group together getloadavg()-related macros.
6399 Use only configure-time tests to detect getloadavg().
6401 2000-07-30 Martin Buchholz <martin@xemacs.org>
6403 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6405 2000-07-25 Andy Piper <andy@xemacs.org>
6407 * syswindows.h: add tchar.h for native builds.
6409 * frame.c (syms_of_frame): remove set-glyph-image.
6411 * general-slots.h: add Qset_glyph_image.
6413 * glyphs-widget.c (layout_update): add domain arg to
6415 (syms_of_glyphs_widget): remove set-glyph-image.
6417 2000-07-23 Ben Wing <ben@xemacs.org>
6419 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6422 2000-07-22 Andy Piper <andy@xemacs.org>
6424 * symsinit.h: add syms_of_win32().
6426 * gui-msw.c (syms_of_gui_mswindows): remove
6427 Fmswindows_shell_execute.
6428 (Fmswindows_shell_execute): moved to win32.c.
6430 * emacs.c (main_1): add syms_of_win32 ().
6432 * win32.c (init_potentially_nonexistent_functions): rewrite in
6433 compiler-friendly terms.
6434 (Fmswindows_shell_execute): move here from gui-msw.c.
6435 (syms_of_win32): new.
6437 * device-msw.c (Fmswindows_printer_list): clean up args to
6439 Don't include tchar under cygwin or mingw.
6440 (msprinter_default_printer): make cygwin-friendly.
6442 2000-07-21 Andy Piper <andy@xemacs.org>
6444 * glyphs-widget.c (image_instantiator_tree_view): use tab
6445 control's update function.
6446 (layout_property): new function. Retrieve items.
6448 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6449 function. Re-populate the tree view from the pending items.
6451 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6452 is designated the parent if the domain is an image instance. This
6453 is needed so that dirtiness can be cascade up the hierarchy and
6454 thus for layout children to be redisplayed correctly.
6455 (allocate_image_instance): rename glyph -> parent.
6457 * redisplay.h: change redisplay_output_layout signature.
6459 * redisplay-msw.c (mswindows_output_display_block): use domain
6462 * redisplay-x.c (x_output_display_block): use domain arg.
6464 2000-07-10 Andy Piper <andy@xemacs.org>
6466 * window.c (Fset_window_configuration): add comment.
6468 * redisplay-output.c (compare_runes):
6469 (redisplay_output_subwindow): redisplay rather than update subwindow.
6470 (redisplay_output_layout): ditto.
6472 * redisplay-msw.c (mswindows_frame_output_end):
6473 (mswindows_frame_output_end): make defer window pos optional.
6475 * lisp.h: add Flast.
6477 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6478 normalize method. Change update method to be for changed
6479 instantiators. Add redisplay method. Change signature of layout
6481 (struct Lisp_Image_Instance): add instantiator.
6482 (IMAGE_INSTANCE_INSTANTIATOR): new.
6483 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6484 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6485 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6488 (find_instantiator_differences): new function.
6489 (Fset_instantiator_property): new convenience function.
6490 (check_image_instance_structure): strictly check for vector
6492 (normalize_image_instantiator): make non-static.
6493 (instantiate_image_instantiator): pass on dest_mask and use new
6494 signatures for image_instance_layout and friends.
6495 (mark_image_instance): mark the instantiator. Mark the subwindow
6496 face not the widget face.
6497 (image_instance_equal): add instantiator.
6498 (image_instance_hash): ditto.
6499 (allocate_image_instance): ditto.
6500 (Fset_image_instance_property): removed.
6501 (Fimage_instance_file_name): ditto.
6502 (Fcolorize_image_instance): ditto.
6503 (image_instance_layout): add offsets to be set.
6504 (update_image_instance): new function. update an image instance
6505 from its changed instantiator.
6506 (inherit_normalize): add dest_mask.
6507 (xbm_normalize): ditto.
6508 (xface_normalize): ditto.
6509 (xpm_normalize): ditto.
6510 (text_update): set_property -> update.
6511 (image_instantiate): use the glyph identity as a hash key, not the
6513 (glyph_width): use new image_instance_layout signature.
6514 (glyph_ascent): ditto.
6515 (glyph_descent): ditto.
6516 (glyph_height): ditto.
6517 (glyph_query_geometry): ressurrect.
6518 (glyph_layout): ditto.
6519 (redisplay_subwindow): update -> redisplay.
6520 (syms_of_glyphs): add Fset_instantiator_property.
6521 (image_instantiator_format_create): set_property -> update.
6524 (autodetect_normalize): add dest_maks to signature.
6525 (x_redisplay_subwindow): update -> redisplay.
6526 (x_redisplay_widget): ditto.
6527 (x_button_redisplay): ditto.
6528 (x_progress_gauge_redisplay): ditto.
6529 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6531 (console_type_create_glyphs_x): update -> redisplay.
6532 (image_instantiator_format_create_glyphs_x): ditto.
6535 (check_valid_instantiator): disallow glyphs in the instantiator,
6536 they must now be vectors.
6537 (check_valid_instantiator_list): ditto.
6538 (glyph_instantiator_to_glyph): use internal symbol rather than
6540 (widget_update): renamed from widget_set_property. Call cascaded
6542 (redisplay_widget): renamed from update_widget.
6543 (widget_layout): image_instance_layout now takes position as well
6545 (widget_normalize): ditto.
6546 (widget_instantiate): ditto.
6547 (tab_control_query_geometry) ditto.:
6548 (tab_control_update): renamed from tab_control_set_property.
6549 (progress_gauge_update): set_property -> update.
6550 (layout_normalize): rewrite so that child instantiators are
6552 (layout_update): new function. Create glyphs from the normalized
6553 children and cope with any other layout keywords. We do not
6554 instantiate children here that will be take care of by
6555 redisplay_output_layout.
6556 (layout_instantiate): call layout_update and not much else.
6557 (layout_post_instantiate): not sure whether this is needed
6559 (layout_query_geometry): query glyph geometry rather than
6560 image_instance geometry.
6561 (layout_layout): set offsets from pass in parameters. Use glyph
6562 geometry and layout functions rather than image instance ones.
6563 (native_layout_layout): ditto.
6564 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6565 (image_instantiator_widget): set_property -> update.
6566 (image_instantiator_buttons): ditto.
6567 (image_instantiator_progress_guage): ditto.
6568 (image_instantiator_tab_control): ditto.
6569 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6570 (image_instantiator_layout): add update method.
6572 * glyphs-msw.c (bmp_normalize):
6573 (mswindows_resource_normalize): add dest_mask so that it can be
6574 proprogated by layout_normalize.
6575 (begin_defer_window_pos): make optional because it may not be the
6576 right thing to do and it introduces differences with X.
6577 (mswindows_unmap_subwindow): ditto.
6578 (mswindows_map_subwindow): ditto.
6579 (mswindows_redisplay_subwindow): renamed from
6580 mswindows_update_subwindow.
6581 (mswindows_redisplay_widget): ditto.
6582 (mswindows_button_redisplay): renamed from
6583 mswindows_button_update. Update is now what the instantiation
6584 function does for a changed instantiator.
6585 (mswindows_progress_gauge_instantiate): set the progress value
6586 here if appropriate.
6587 (mswindows_tab_control_redisplay): cope with re-ordering of the
6588 members of the tab widget by simply selecting the new top
6589 widget. This makes things appear ok if you click on a tab.
6590 (mswindows_combo_box_instantiate): image_instance_layout now takes
6591 position as well as size.
6592 (mswindows_progress_gauge_redisplay): renamed from
6593 mswindows_progress_gauge_update.
6594 (console_type_create_glyphs_mswindows): fix update -> redisplay.
6595 (image_instantiator_format_create_glyphs_mswindows): ditto.
6597 * glyphs-eimage.c (jpeg_normalize):
6600 (tiff_normalize): add dest_mask so that it can be proprogated by
6605 (hash_table_weakness_validate):
6606 (decode_hash_table_weakness):
6607 (Fhash_table_weakness):
6609 (syms_of_elhash): use Ben's naming scheme for hashtable types..
6611 * console.h (struct console_methods): move update_* to
6614 2000-07-20 Ben Wing <ben@xemacs.org>
6616 * *.[ch] (XSETOBJ): remove unused middle argument.
6617 lisp-disunion.h: correct wrap_object() to one argument.
6619 2000-07-15 Ben Wing <ben@xemacs.org>
6622 * s/cygwin32.h (CYGWIN_CONV_PATH):
6623 Add missing logb prototype for v1.1.
6624 Use post-b20 names and alias to pre-b20 names when pre-b20.
6626 * s/windowsnt.h: [5].
6628 2000-07-15 Ben Wing <ben@xemacs.org>
6630 * Makefile.in.in (x_objs):
6631 * Makefile.in.in (sheap_objs):
6632 * Makefile.in.in (objs):
6633 added win32.o, cosmetic cleanups.
6635 * alloc.c (Fmake_byte_code):
6636 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6637 etc. macros which declare their own args now.
6639 * alloc.c (syms_of_alloc):
6640 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6643 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6645 * buffer.c (Fget_file_buffer):
6646 Fixed GCPRO problem.
6648 * buffer.c (get_truename_buffer):
6649 Fixed comment about GC checking.
6651 * buffer.c (syms_of_buffer):
6652 Undeclared those dedicated frame funs.
6656 Define convenience macros for internal/external conversions.
6657 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6658 and Qenvironment_variable_encoding for cleaner code.
6661 Remove dedicated-frame; in lisp.
6663 * bytecode.c (funcall_compiled_function):
6666 * bytecode.c (syms_of_bytecode):
6670 * console-msw.c (mswindows_show_console): Rewrote.
6672 * console-msw.c (Fmswindows_debugging_output): New.
6673 Sends to OutputDebugString (special MSWin debugger interface).
6675 * console-msw.c (Fmswindows_message_box):
6676 Fixed stupid bugs so it works when called from kill-emacs.
6678 * console-msw.c (syms_of_console_mswindows):
6679 Declare Fmswindows_debugging_output.
6682 New MSWin prototypes.
6684 * console-msw.h (struct mswindows_frame):
6685 New entry last-click-mods for improved button-modifier support.
6687 * console-msw.h (FRAME_MSWINDOWS_POPUP):
6688 New struct entry `popup' with corresponding accessor.
6691 * console-x.c (split_up_display_spec):
6692 * console-x.c (get_display_arg_connection):
6693 * console-x.c (x_semi_canonicalize_console_connection):
6694 * console-x.c (x_canonicalize_device_connection):
6695 [[[6]]]: Change char to more specific type.
6696 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6698 * console-x.c (x_semi_canonicalize_console_connection):
6699 * console-x.c (x_canonicalize_device_connection):
6700 [[[9]]]: Fix up error signalling to use new structured error system.
6703 [[[4]]]: Define codesys aliases:
6704 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6705 Qx_color_name_encoding, Qx_display_name_encoding.
6707 * console.h (struct console_methods):
6708 New method make_dialog_box_internal supersedes older
6709 popup_dialog_box method.
6712 Define many new errors, part of new structured errors.
6714 * data.c (init_errors_once_early):
6715 * data.c (syms_of_data):
6718 * device-msw.c (mswindows_init_device):
6719 [[[5]]]: Cleanup to support NT 3.51.
6721 * device-msw.c (decode_devmode): Cleanup.
6723 * device-msw.c (mswindows_handle_print_setup_dialog_box):
6724 * device-msw.c (mswindows_handle_print_dialog_box):
6725 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6726 * device-msw.c (syms_of_device_mswindows):
6727 Delete the dialog box primitives recently introduced by Kirill and
6728 instead interface to general dialog box interface.
6731 * device-x.c (compute_x_app_name):
6732 * device-x.c (x_init_device):
6733 * device-x.c (Fx_valid_keysym_name_p):
6734 * device-x.c (Fx_set_font_path):
6738 * device.h (wrap_device): New.
6739 First of its kind; meant to replace XSETDEVICE.
6741 * dialog-msw.c: Many file-dialog symbols.
6743 * dialog-msw.c (mswindows_register_popup_frame): New.
6744 * dialog-msw.c (mswindows_is_dialog_msg): New.
6745 For supporting kbd traversal in dialog boxes.
6747 * dialog-msw.c (dialog_proc):
6748 Support hitting ESC in dialogs.
6750 * dialog-msw.c (struct):
6751 Common dialog box errors.
6753 * dialog-msw.c (handle_file_dialog_box): New.
6754 Add file dialog code.
6756 * dialog-msw.c (handle_question_dialog_box):
6757 Redo existing code to support new question dialog syntax.
6759 * dialog-msw.c (console_type_create_dialog_mswindows):
6760 We support new dialog console method.
6762 * dialog-msw.c (syms_of_dialog_mswindows):
6763 * dialog-msw.c (vars_of_dialog_mswindows):
6764 New file dialog symbols, vars.
6767 * dialog-x.c (maybe_run_dbox_text_callback):
6768 * dialog-x.c (dbox_descriptor_to_widget_value):
6769 * dialog-x.c (x_make_dialog_box_internal):
6770 * dialog-x.c (console_type_create_dialog_x):
6771 Mule-ize entire file.
6772 Redo to support question dialog syntax.
6776 * dialog.c (Fmake_dialog_box_internal):
6777 * dialog.c (syms_of_dialog):
6778 Kill old popup-dialog-box, replace with new primitive.
6779 Just call device method or signal error.
6781 * eldap.c (Fldap_open):
6782 * eldap.c (Fldap_search_basic):
6783 * eldap.c (Fldap_add):
6784 * eldap.c (Fldap_modify):
6789 * emacs.c (make_arg_list_1):
6790 * emacs.c (make_arg_list):
6791 Mule-ize call to dll_init().
6795 * emacs.c (make_argc_argv):
6796 * emacs.c (free_argc_argv):
6797 * emacs.c (init_cmdargs):
6799 * emacs.c (Fkill_emacs):
6800 * emacs.c (Fdump_emacs):
6801 Update comments about what can be used in syms_* etc.
6802 Call init_win32() when necessary.
6803 Fix up MS Win dialog box in kill-buffer to actually work right.
6814 * eval.c (condition_case_3):
6816 * eval.c (function_argcount):
6817 * eval.c (funcall_lambda):
6820 * eval.c (type_error): New.
6821 * eval.c (maybe_type_error): New.
6822 * eval.c (continuable_type_error): New.
6823 * eval.c (maybe_continuable_type_error): New.
6824 * eval.c (type_error_with_frob): New.
6825 * eval.c (maybe_type_error_with_frob): New.
6826 * eval.c (continuable_type_error_with_frob): New.
6827 * eval.c (maybe_continuable_type_error_with_frob): New.
6828 New functions for use with structured errors.
6831 * event-Xt.c (x_event_to_emacs_event):
6832 Buttons are now modifiers too.
6834 * event-Xt.c (emacs_Xt_current_event_timestamp):
6835 Implement new event method.
6836 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6839 * event-msw.c (ntpipe_shove_writer): [5].
6840 * event-msw.c (mswindows_enqueue_mouse_button_event):
6841 * event-msw.c (mswindows_drain_windows_queue):
6842 * event-msw.c (mswindows_wnd_proc): [7].
6843 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6844 * event-msw.c (mswindows_modifier_state):
6845 Throughout: support new button modifiers.
6847 * event-msw.c (emacs_mswindows_current_event_timestamp):
6848 Implement new event method.
6849 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6852 * event-stream.c (event_stream_current_event_timestamp): New.
6853 * event-stream.c (maybe_kbd_translate): New functionality.
6854 * event-stream.c (vars_of_event_stream):
6855 Document new kbd-translate-table functionality.
6857 * event-stream.c (Fcurrent_event_timestamp): New.
6858 New primitive for use in fabricated events.
6859 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6861 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6864 * events.c (Fmake_event):
6865 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6869 * events.c (format_event_object): fix gcc warnings.
6871 * events.c (Fevent_timestamp): Document new primitives.
6873 * events.c (TIMESTAMP_HALFSPACE): New.
6875 * events.c (Fevent_timestamp_lessp): New. New primitive for
6876 comparing timestamps correctly (half-space algorithm).
6878 * events.c (Fevent_modifier_bits): Doc fix.
6880 * events.c (Fevent_modifiers): Major doc addition.
6881 * events.c (event_x_y_pixel_internal): Typo fix.
6882 * events.c (syms_of_events): Declare new primitives.
6885 Update long comment for button modifiers, timestamps.
6887 * events.h (struct event_stream):
6888 New current_event_timestamp method.
6891 * extents.c (extent_in_region_p):
6892 * extents.c (decode_extent):
6893 * extents.c (Fset_extent_parent):
6894 * extents.c (decode_map_extents_flags):
6898 * extents.c (struct extent_at_arg):
6899 * extents.c (decode_extent_at_flag):
6900 * extents.c (extent_at_mapper):
6901 * extents.c (extent_at_bytind):
6902 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6903 * extents.c (Fextents_at): New primitive. [9].
6904 * extents.c (symbol_to_glyph_layout): [9].
6905 Support new primitive `extents-at'.
6908 * extents.c (get_text_property_bytind):
6909 extent_at_bytind has another arg.
6912 * extents.c (syms_of_extents): New primitive.
6914 * file-coding.c (Fmake_coding_system): [1].
6915 * file-coding.c (subsidiary_coding_system): fix gcc warning
6916 * file-coding.c (syms_of_file_coding): [2].
6918 * fileio.c (Fexpand_file_name):
6919 * fileio.c (Fsysnetunam):
6920 * fileio.c (Ffile_exists_p):
6921 * fileio.c (Ffile_executable_p):
6922 * fileio.c (Fverify_visited_file_modtime):
6925 * fileio.c (syms_of_fileio): [2].
6927 * filelock.c (lock_file_1):
6928 * filelock.c (current_lock_owner):
6929 * filelock.c (lock_if_free):
6930 * filelock.c (lock_file):
6931 * filelock.c (unlock_file):
6934 * fns.c (concat): Fix gcc warning.
6937 * fns.c (Fold_member):
6939 * fns.c (Fold_memq):
6940 * fns.c (memq_no_quit):
6942 * fns.c (Fold_assoc):
6944 * fns.c (Fold_assq):
6945 * fns.c (assq_no_quit):
6947 * fns.c (Fold_rassoc):
6949 * fns.c (Fold_rassq):
6950 * fns.c (rassq_no_quit):
6952 * fns.c (Fold_delete):
6954 * fns.c (Fold_delq):
6955 * fns.c (delq_no_quit):
6956 * fns.c (Fremassoc):
6958 * fns.c (remassq_no_quit):
6959 * fns.c (Fremrassoc):
6960 * fns.c (Fremrassq):
6961 * fns.c (remrassq_no_quit):
6966 * frame-msw.c (mswindows_init_frame_1):
6967 * frame-msw.c (mswindows_delete_frame):
6968 Register popups with dialog code so keyboard traversing works.
6970 * frame-tty.c (tty_raise_frame_no_select): [1].
6973 * frame-x.c (x_set_frame_text_value):
6974 * frame-x.c (x_set_frame_properties):
6975 * frame-x.c (x_create_widgets):
6979 * frame.c (Fmouse_pixel_position): Minor doc fixes.
6981 * frame.h (wrap_frame): New.
6982 Macro like wrap_device.
6985 * general.c (SYMBOL):
6986 * general.c (syms_of_general):
6987 Major reorg. This is now just a wrapper and symbols themselves
6988 are listed in general-slots.h.
6990 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6991 * glyphs-msw.c (mswindows_resource_instantiate): [5].
6993 * glyphs-msw.c (mswindows_native_layout_instantiate):
6994 Add DS_CONTROL so keyboard traversal will work.
6997 * glyphs-widget.c (syms_of_glyphs_widget):
6998 Move some symbols to general-slots.h.
7001 * glyphs-x.c (xbm_instantiate_1):
7002 * glyphs-x.c (x_xbm_instantiate):
7003 * glyphs-x.c (x_xface_instantiate):
7004 * glyphs-x.c (autodetect_instantiate):
7005 * glyphs-x.c (cursor_font_instantiate):
7006 * glyphs-x.c (x_update_widget):
7007 * glyphs-x.c (x_widget_instantiate):
7008 * glyphs.c (bitmap_to_lisp_data):
7009 * glyphs.c (pixmap_to_lisp_data):
7012 * glyphs.c (syms_of_glyphs):
7016 * gui-x.c (print_widget_value):
7017 * gui-x.c (menu_separator_style_and_to_external):
7018 * gui-x.c (add_accel_and_to_external):
7019 * gui-x.c (button_item_to_widget_value):
7020 * gui-x.c (gui_items_to_widget_values_1):
7021 * gui-x.c (gui_items_to_widget_values):
7022 * gui-x.c (syms_of_gui_x):
7023 * gui-x.c (vars_of_gui_x):
7024 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7028 Muleize, prototype changes matching gui-x.c.
7031 * gui.c (separator_string_p):
7032 * gui.c (gui_item_add_keyval_pair):
7033 * gui.c (make_gui_item_from_keywords_internal):
7034 * gui.c (signal_too_long_error):
7035 * gui.c (parse_gui_item_tree_item):
7036 * gui.c (syms_of_gui):
7037 * gui.c (vars_of_gui):
7039 menu-no-selection-hook moved here (used by MSWin).
7040 Move some symbols to general-slots.h.
7044 * insdel.c (get_buffer_pos_char):
7045 * insdel.c (get_buffer_range_char):
7048 * keymap.c (keymap_lookup_directly):
7049 * keymap.c (keymap_store):
7050 * keymap.c (ensure_meta_prefix_char_keymapp):
7051 * keymap.c (describe_map):
7053 Support new button modifiers.
7055 * lisp-disunion.h (wrap_object):
7056 * lisp-disunion.h (XSETOBJ):
7057 Rename make_obj to wrap_object.
7060 * lisp-union.h (make_int):
7061 * lisp-union.h (make_char):
7062 Support wrap_object.
7065 * lisp.h (LIST_LOOP):
7066 * lisp.h (EXTERNAL_LIST_LOOP):
7067 * lisp.h (LIST_LOOP_2):
7068 * lisp.h (EXTERNAL_LIST_LOOP_1):
7069 * lisp.h (EXTERNAL_LIST_LOOP_2):
7070 * lisp.h (EXTERNAL_LIST_LOOP_3):
7071 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7072 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7073 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7074 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7075 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7076 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7077 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7078 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7079 * lisp.h (struct Lisp_Symbol):
7080 * lisp.h (maybe_continuable_error_with_frob):
7081 Fix up section comments.
7082 Add new types for char to indicate usage.
7083 Delete symbols auto-generated from general-slots.h.
7084 Add prototypes for structured error functions.
7085 Add long comments describing looping macros and change interface
7086 so that lvalues are automatically declared.
7087 Add NO_DECLARE macro in case callers want to declare lvalues
7090 * lread.c (read_syntax_error):
7091 * lread.c (continuable_read_syntax_error):
7092 * lread.c (read_structure):
7093 * lread.c (sequence_reader):
7094 * lread.c (read_list_conser):
7095 * lread.c (read_compiled_function):
7096 Rename syntax_error and continuable_syntax_error to avoid clash
7097 with same-named structured error functions.
7099 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7100 * menubar-msw.c (populate_menu_add_item):
7101 * menubar-msw.c (populate_or_checksum_helper):
7106 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7107 Mule-ize whole file.
7109 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7111 * mule-charset.c (Fmake_charset):
7112 * mule-wnnfns.c (Fwnn_set_param):
7115 * ntproc.c (create_child):
7116 * ntproc.c (Fwin32_set_current_locale):
7117 Add comments portending doom.
7120 * objects-msw.c (old_font_enum_callback_2):
7121 * objects-msw.c (font_enum_callback_1):
7122 * objects-msw.c (mswindows_enumerate_fonts):
7126 * objects-x.c (allocate_nearest_color):
7127 * objects-x.c (x_parse_nearest_color):
7128 * objects-x.c (x_initialize_color_instance):
7129 * objects-x.c (x_print_color_instance):
7130 * objects-x.c (x_finalize_color_instance):
7131 * objects-x.c (x_valid_color_name_p):
7132 * objects-x.c (x_initialize_font_instance):
7133 * objects-x.c (x_print_font_instance):
7134 * objects-x.c (valid_x_font_name_p):
7135 * objects-x.c (truename_via_FONT_prop):
7136 * objects-x.c (truename_via_random_props):
7137 * objects-x.c (truename_via_XListFonts):
7138 * objects-x.c (x_font_truename):
7139 * objects-x.c (x_font_instance_truename):
7140 * objects-x.c (x_font_instance_properties):
7141 * objects-x.c (x_list_fonts):
7142 * objects-x.c (x_find_charset_font):
7143 Mule-ize entire file.
7150 * print.c (std_handle_out_external):
7151 * print.c (debug_print_no_newline):
7152 * print.c (syms_of_print):
7153 Output to all debugger kinds in debug-print.
7154 Fix console-output code under MSWin to actually work.
7156 * process-nt.c (send_signal):
7157 * process-nt.c (nt_create_process):
7158 Use newer Unicode macros.
7160 * process-unix.c (unix_create_process):
7161 * process-unix.c (unix_canonicalize_host_name):
7162 * process-unix.c (unix_open_network_stream):
7168 * search.c (syms_of_search):
7171 * select-msw.c (mswindows_destroy_selection):
7174 * select-x.c (symbol_to_x_atom):
7177 * select.c (syms_of_select):
7180 * sound.c (Fplay_sound_file):
7184 * specifier.c (decode_specifier_type):
7185 * specifier.c (Fvalid_specifier_locale_type_p):
7186 * specifier.c (check_valid_locale_or_locale_type):
7187 * specifier.c (decode_locale):
7188 * specifier.c (decode_locale_type):
7189 * specifier.c (decode_locale_list):
7190 * specifier.c (check_valid_domain):
7191 * specifier.c (decode_specifier_tag_set):
7192 * specifier.c (Fcanonicalize_tag_set):
7193 * specifier.c (Fdefine_specifier_tag):
7194 * specifier.c (Fspecifier_tag_predicate):
7195 * specifier.c (check_valid_inst_list):
7196 * specifier.c (check_valid_spec_list):
7197 * specifier.c (decode_how_to_add_specification):
7198 * specifier.c (check_modifiable_specifier):
7199 * specifier.c (specifier_add_spec):
7200 * specifier.c (boolean_validate):
7201 * specifier.c (display_table_validate):
7204 * specifier.c (syms_of_specifier):
7205 Move some symbols to general-slots.h.
7209 * symbols.c (Fmapatoms):
7210 * symbols.c (Fapropos_internal):
7213 * symbols.c (set_default_buffer_slot_variable):
7214 * symbols.c (set_default_console_slot_variable):
7217 * symbols.c (defsymbol_massage_name_1):
7218 * symbols.c (defkeyword_massage_name):
7219 * symbols.c (deferror_1):
7220 * symbols.c (deferror):
7221 * symbols.c (deferror_massage_name_and_message):
7223 * symeval.h (DEFSYMBOL):
7224 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7226 * symbols.c (syms_of_symbols):
7230 * symsinit.h (init_win32): New.
7231 Also new is syms_of_dialog_mswindows.
7234 Add new Unicode macros, missing Cygwin wide-char functions,
7235 convenience conversion macros for Qmswindows_tstr, macros for
7236 encapsulating required MSWin <-> Cygwin filename conversions,
7237 prototype for dynamically-extracted (not in NT 3.51) functions.
7242 * tooltalk.c (Fadd_tooltalk_message_arg):
7243 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7244 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7247 * tooltalk.c (syms_of_tooltalk):
7251 * unexnt.c (unexec):
7252 Fix up headers, declaration of unexec() to be more standard.
7254 2000-07-20 Martin Buchholz <martin@xemacs.org>
7256 * offix.h: Revert change to guard macros - they're used in offix.c!
7258 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7260 * lisp.h: Defsubred Fdelete.
7262 * console-msw.h: (msprinter_default_printer): Added.
7264 * console-msw.c (msprinter_canonicalize_console_connection):
7265 (msprinter_canonicalize_device_connection): Added.
7267 * device-msw.c (msprinter_default_printer):
7268 (Fmswingows_get_default_printer):
7269 (signal_enum_priner_error):
7270 (Fmswingows_printer_list): Added.
7272 2000-07-19 Martin Buchholz <martin@xemacs.org>
7274 * XEmacs 21.2.35 is released.
7276 2000-07-19 Martin Buchholz <martin@xemacs.org>
7278 * select-x.c (x_handle_selection_request):
7279 Text selected in xemacs and pasted into xterm failed to appear.
7280 Spelling fixes and cosmetic changes.
7282 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7284 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7285 XEmacs frame (fix for doubling chars in dialog boxes).
7287 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7289 * select.c (select_convert_in, select_convert_out):
7290 Don't call intern() every time.
7292 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7293 * select.c (vars_of_select): Initialise them.
7295 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7297 * select.c (selection-coercible-types): New.
7299 * select.c (own-selection-internal):
7300 * select.c (get-selection-internal):
7301 MULE bug fix - these should default to COMPOUND_TEXT and not
7302 STRING for MULE. I think.
7304 * select.c (select_convert_out): Use selection-coercible-types
7305 to find types that we can attempt to perform coercions on.
7307 2000-07-18 Martin Buchholz <martin@xemacs.org>
7311 Add coding: cookie to identify encoding.
7313 * mule-canna.c (CANNA_mode_keys): make static.
7314 Use proper prototypes, even for functions of no arguments.
7315 Remove external prototype for Fding().
7317 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7319 * select.c (syms_of_select): Add missing DEFSUBR.
7321 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7323 * select.c (get_selection_internal, own_selection_internal):
7324 Make the type default to STRING, rather than placing a nil type
7325 into Vselection_alist.
7327 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7329 * gpmevent.c (tty_selection_exists_p):
7330 * gpmevent.c (tty_own_selection):
7331 Updated parameter lists.
7333 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7335 * select.h (selection-alist): Removed declaration.
7337 * select.h (get_local_selection):
7338 * select.c (get_local_selection):
7341 * select.h (convert_selection): Removed declaration.
7342 * select.c (convert_selection): Removed.
7343 This function belongs in Lisp.
7345 * select.h (select_convert_in): Declare.
7346 * select.h (select_convert_out): Declare.
7347 * select.c (select_convert_in): New.
7348 * select.c (select_convert_out): New.
7349 New conversion functions for other files to call.
7351 * select.h (select_notify_buffer_kill): Declare.
7352 * select.c (select_notify_buffer_kill): New.
7353 New functions that get called from kill-buffer.
7355 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7356 X-specific lisp code.
7358 * select.h: Declare some of the lisp-visible functions for
7361 * select.c (clean_local_selection_data): Removed. This was
7362 a disgusting function, and previously should have been in
7363 select-x.c in any case. The functionality is now provided
7364 in select-convert-from-integer (select.el).
7366 * select.c (available-selection-types): Fixed stupidity where
7367 INTEGER and ATOM got added twice. Also add STRING when we see an
7370 * select.c (get-selection-internal): Removed symbol stripping. No
7371 longer causes conversion when data comes from the internal cache.
7373 * select.c (syms_of_select): Added new functions.
7375 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7376 error checking - previously this called abort!
7378 * select-x.c (x_own_selection): Changed comment.
7380 * select-x.c (x_handle_selection_request): Use select_convert_out.
7381 Don't mess with selection-alist; it's an internal variable of select.c.
7383 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7385 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7386 rather than messing with selection-alist.
7388 * select-msw.c (mswindows_get_foreign_selection):
7389 Use TO_INTERNAL_FORMAT rather than hacking.
7391 2000-07-14 Martin Buchholz <martin@xemacs.org>
7393 * process-unix.c (unix_open_multicast_group):
7394 (unix_open_multicast_group): Remove useless casts.
7396 2000-07-13 Martin Buchholz <martin@xemacs.org>
7398 * sound.c (Fplay_sound): Fix `unused variable' warning.
7400 * emacs.c (main): Use correct type for _environ on SCO5.
7402 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7404 * console.h (own_selection_method):
7405 * console.h (selection_exists_p_method):
7406 * console.h (available_selection_types_method): New.
7407 * console.h (register_selection_data_type_method): New.
7408 * console.h (selection_data_type_name): New.
7410 * console-msw.h (mswindows_destroy_selection): Declare it. New
7411 function & alist to track GlobalAlloc()'d handles that need
7412 releasing when the clipboard data gets replaced or emptied.
7414 * event-msw.c (mswindows_wnd_proc): Call it.
7416 * lisp.h, general.c (Qappend): New symbol representing a
7419 * select.c (own-selection-internal):
7420 * select.c (selection-exists-p):
7421 * select.c (available-selection-types): New.
7422 * select.c (register-selection-data-type): New.
7423 * select.c (selection-data-type-name): New. New functions to deal
7424 with device-specific selection data formats.
7425 * select.c (selection-converter-out-alist): Renamed.
7426 * select.c (selection-converter-in-alist): New.
7427 * select.c (selection-appender-alist): New. Added new alists.
7428 * select.c (syms_of_select, vars_of_select): Added new symbols &
7430 * select.c (get_local_selection): Split.
7431 * select.c: Removed spurious type checking - selections may now be
7432 of any type, not just strings.
7433 * select.c (own-selection-internal):
7435 * select.h, select.c (convert_selection): New. Created
7436 convert_selection() function based on get_local_selection().
7437 * select.h, select.c (QCF_*): New symbols representing mswindows
7439 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7440 symbols representing `how-to-add' modes.
7442 * select-msw.c (x_sym_p): New.
7443 * select-msw.c (symbol_to_ms_cf): New.
7444 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7445 symbols & clipboard formats. Can also handle string names.
7446 * select-msw.c (mswindows_own_selection):
7447 * select-msw.c (mswindows_selection_exists_p):
7448 Added `data-type' parameter. Use it.
7449 * select-msw.c (mswindows_available_selection_types): New.
7450 * select-msw.c (mswindows_register_selection_data_type): New.
7451 * select-msw.c (mswindows_selection_data_type_name): New.
7452 * select-msw.c (mswindows_own_selection):
7453 * select-msw.c (mswindows_get_foreign_selection):
7454 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7455 * select-msw.c (console_create_select_mswindows): Added new methods.
7456 * select-msw.c (mswindows_destroy_selection): New.
7457 * select-msw.c (Vhandle_alist): New list.
7458 * select-msw.c (mswindows_own_selection):
7460 * select-x.c (x_own_selection):
7461 * select-x.c (x_selection_exists_p):
7462 * select-x.c: Added some comments about maybe using new
7464 * select-x.c (x_own_selection):
7466 * specifier.c: Remove definition of Qappend (now in general.c)
7467 * specifier.c (syms_of_specifier): Remove Qappend.
7469 2000-07-12 Martin Buchholz <martin@xemacs.org>
7471 * config.h.in: Add socklen_t.
7473 * s/decosf4-0.h: No special compiler flags needed or desired.
7474 In particular, undefine _BSD for DEC OSF 4.0.
7476 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7478 * redisplay-msw.c (msprinter_frame_output_end): Added.
7479 (console_type_create_redisplay_mswindows): Referred the above.
7481 * frame.c (setup_frame_without_minibuffer): Do not create a
7482 default minibuffer frame on a printer device.
7484 * frame-msw.c (apply_dc_geometry): Added.
7485 (msprinter_start_page):
7486 (msprinter_init_frame_3):
7487 (msprinter_eject_page): Use it.
7489 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7490 and removed residual duplex and orientation properties.
7492 2000-07-11 Martin Buchholz <martin@xemacs.org>
7494 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7496 * unexalpha.c: Remove system prototypes from C sources!
7498 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7500 * eval.c: Remove references to M-x edit-options in DEFUNs for
7501 `defvar' and `defconst'.
7503 2000-07-09 Martin Buchholz <martin@xemacs.org>
7505 * config.h.in: Remove SMART_INCLUDE hackery.
7508 * config.h.in: Don't use SMART_INCLUDE.
7510 * postgresql.h: Include libpq-fe.h here. Fix typo.
7511 * inline.c: Simply #include "postgresql.h"
7513 - Don't use SMART_INCLUDE
7514 - Use simply "const".
7515 - Use standard doc string conventions.
7516 - Use correct type for result of PQstatus.
7518 2000-07-09 Martin Buchholz <martin@xemacs.org>
7520 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7522 C++ compilation changes.
7523 * config.h.in (EXTERN_C): Define.
7524 * config.h.in (not): This is also a C++ keyword.
7525 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7526 * cm.c: Use EXTERN_C.
7527 * redisplay-tty.c: Use EXTERN_C.
7528 * sysdep.c: Use EXTERN_C. Remove Gould support.
7530 2000-07-09 Martin Buchholz <martin@xemacs.org>
7532 * general.c: Remove duplicate definition for Qfunction.
7534 2000-07-08 Ben Wing <ben@xemacs.org>
7536 * device-msw.c (msprinter_init_device):
7537 * device-msw.c (sync_printer_with_devmode):
7538 * device-msw.c (handle_devmode_changes):
7539 * device-msw.c (print_dialog_worker):
7540 * device-msw.c (Fmsprinter_apply_settings):
7541 * device-msw.c (hash_devmode):
7542 * device-msw.c (Fmsprinter_settings_despecialize):
7543 use Qmswindows_tstr, not Qctext.
7545 * vm-limit.c (check_memory_limits):
7546 avoid infinite loop printing warning messages.
7548 2000-07-05 Craig Lanning <lanning@scra.org>
7550 * Makefile.in.in: Add support for including the Windows resources
7551 when building with the cygwin and mingw targets.
7553 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7554 not set or not correct.
7555 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7556 (init_initial_directory): Don't try to use $PWD on the
7557 WIN32_NATIVE target.
7560 [[Add -mwindows to eliminate console window.]] not required --ben
7561 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7562 (MAIL_USE_POP): removed; now handled by configure.
7564 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7565 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7566 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7567 (MAIL_USE_POP): removed; now handled by configure.
7568 (ENCAPSULATE_STAT): from Dan Holmsand, added.
7569 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7570 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7572 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7573 up from <winsock.h> via systime.h.
7574 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7575 (getpagesize): from Dan Holmsand, added.
7576 Added #endif which was left dangling by Ben's mega patch; added
7577 comment to help prevent this in the future.
7579 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7581 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7583 * console-msw.h (struct mswindows_device): Removed unnecessary
7584 cached device geometry values.
7585 Added update_tick and an accessor macro.
7586 (Lisp_Devmode): Added lrecord declaration.
7587 (struct msprinter_device): Contain devmode as a Lisp object.
7588 Added mswindows_get_selected_frame_hwnd();
7590 * console.h (struct console_methods): Indentation nitpicking.
7592 * device-msw.c (mswindows_init_device): Do not initialize geometry
7593 cache. Initialize update tick.
7594 (mswindows_device_system_metrics): Ask the device for its geometry.
7595 (global_free_2_maybe):
7596 (devmode_to_hglobal):
7597 (handle_printer_changes):
7598 (ensure_not_printing):
7599 (print_dialog_worker):
7600 (Fmsprinter_print_setup_dialog):
7601 (Fmsprinter_print_dialog):
7604 (Fmsprinter_page_setup_dialog): Added functions.
7605 (sync_printer_with_devmode):
7606 (handle_devmode_changes):
7607 (Fmsprinter_get_settings):
7608 (Fmsprinter_select_settings):
7609 (Fmsprinter_apply_settings):
7611 (Fmsprinter_settings_copy):
7612 (Fmsprinter_settings_despecialize):
7616 (hash_devmode): Added functions
7617 (syms_of_device_mswindows): Init devmode lrecord class.
7619 * device.h: Added an exfun for find-device.
7621 * event-msw.c (mswindows_wnd_proc): Do not update the cached
7622 geometry; although, recreate the device compatible DC.
7624 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7625 (msprinter_init_frame_3):
7626 (msprinter_frame_property):
7627 (msprinter_internal_frame_property_p):
7628 (msprinter_frame_properties):
7629 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7630 print job properties (will move to device settings).
7632 * lisp.h: Added symbols.
7634 * general.c (syms_of_general): Declared them.
7636 * hash.c (string_hash): Added.
7638 * lrecord.h (lrecord_type): Added devmode lrecord type.
7640 2000-07-02 Mike Sperber <mike@xemacs.org>
7642 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7645 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
7647 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7650 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
7652 * data.c (Fstring_to_number): Don't recognize floating point if
7655 2000-06-22 Martin Buchholz <martin@xemacs.org>
7657 * glyphs-widget.c (tab_control_query_geometry):
7658 (widget_query_geometry):
7659 (button_query_geometry):
7660 * glyphs.c (text_query_geometry):
7661 Enforce type correctness.
7663 2000-06-18 Martin Buchholz <martin@xemacs.org>
7665 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7666 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7668 2000-06-17 Martin Buchholz <martin@xemacs.org>
7670 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7671 conflicts with gcc's fixincluded version of FOO.h.
7673 * glyphs.h (image_instance_geometry): Remove trailing `,'
7675 2000-06-08 Mike Alexander <mta@arbortext.com>
7677 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7678 (shove_thread): Don't write the same output twice
7679 (make_ntpipe_output_stream): Increase priority of shove thread
7680 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7682 (ntpipe_shove_closer): Don't delete the pipe until we're done with
7685 2000-06-12 Ben Wing <ben@xemacs.org>
7687 * s\mingw32.h (sigset):
7688 * s\windowsnt.h (sigset):
7689 rename msw_ to mswindows_ for consistency with general convention.
7691 2000-06-12 Ben Wing <ben@xemacs.org>
7694 * console-msw.c (mswindows_get_console_hwnd):
7695 * console-msw.c (mswindows_ensure_console_allocated):
7696 * console-msw.c (mswindows_hide_console):
7697 * console-msw.c (mswindows_show_console):
7698 * console-msw.c (mswindows_ensure_console_buffered):
7699 * console-msw.c (mswindows_output_console_string):
7700 * console-msw.c (mswindows_windows9x_p):
7702 * device-msw.c (mswindows_get_workspace_coords):
7703 * device-msw.c (mswindows_device_system_metrics):
7704 * dialog-msw.c (mswindows_popup_dialog_box):
7705 * event-msw.c (mswindows_wnd_proc):
7706 * frame-msw.c (mswindows_size_frame_internal):
7707 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7708 * menubar-msw.c (displayable_menu_item):
7709 * menubar-msw.c (mswindows_char_is_accelerator):
7711 * nt.c (mswindows_sigset):
7712 * nt.c (mswindows_sigrelse):
7713 * nt.c (mswindows_sigpause):
7714 * nt.c (mswindows_raise):
7715 * nt.c (timer_proc):
7717 * ntproc.c (find_child_console):
7718 * ntproc.c (sys_kill):
7720 * print.c (std_handle_out_external):
7721 * process-nt.c (find_child_console):
7722 * process-nt.c (send_signal_the_95_way):
7723 * process-nt.c (ensure_console_window_exists):
7724 * process-nt.c (nt_create_process):
7726 rename msw_ to mswindows_ for consistency with general convention.
7730 include nt.h, not syswindows.h.
7732 * nt.c (mswindows_fstat):
7733 * nt.c (mswindows_stat):
7734 prefix mswindows_ instead of attempting to directly override the
7735 library functions. fix declarations.
7738 include syswindows.h. move some sysdep.h stuff here.
7741 include syswindows.h, not <windows.h>.
7749 * sysdep.c (sys_fstat):
7750 * sysdep.c (sys_stat):
7751 call mswindows versions when appropriate.
7754 move mswin decls to nt.h.
7757 add long comment describing appropriate use of the various windows
7760 2000-06-11 Ben Wing <ben@xemacs.org>
7762 * device-x.c: Correct doc string for sixth arg of x-get-resource.
7764 2000-06-10 Ben Wing <ben@xemacs.org>
7766 * Makefile.in.in (release):
7767 Correction to make sure xemacs.exe always dumped when correct.
7771 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7773 * buffer.c (set_buffer_internal):
7774 [[[[2]]]]: Remove HAVE_FEP code.
7776 * buffer.c (init_initial_directory):
7780 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7784 * callproc.c (call_process_cleanup):
7785 * callproc.c (Fold_call_process_internal):
7786 * callproc.c (child_setup):
7787 * callproc.c (getenv_internal):
7788 * callproc.c (init_callproc):
7789 * callproc.c (vars_of_callproc):
7790 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7791 __CYGWIN32__ -> CYGWIN.
7792 DOS_NT -> WIN32_NATIVE.
7793 Remove MSDOS support/references, converting to WIN32_NATIVE
7795 __MINGW32__ -> MINGW.
7796 Fix windows.h includes.
7797 Remove bogus HAVE_NTGUI.
7803 mswindows_message_outputted added for use in allowing startup
7804 errors on the console to be seen.
7806 * console-msw.c (msw_ensure_console_allocated):
7807 * console-msw.c (msw_output_console_string):
7808 * console-msw.c (DHEADER):
7809 * console-msw.c (DOPAQUE_DATA):
7810 * console-msw.c (DEVENT):
7811 * console-msw.c (DCONS):
7812 * console-msw.c (DCONSCDR):
7813 * console-msw.c (DSTRING):
7814 * console-msw.c (DVECTOR):
7815 * console-msw.c (DSYMBOL):
7816 * console-msw.c (DSYMNAME):
7819 * console-stream.c (stream_init_console):
7820 Fix text/binary problems.
7823 * device-msw.c (mswindows_finish_init_device):
7824 * device-msw.c (mswindows_delete_device):
7827 * device.c (handle_asynch_device_change):
7831 * dgif_lib.c (DGifOpenFileName):
7832 * dgif_lib.c (DGifOpenFileHandle):
7833 * dgif_lib.c (DGifGetLine):
7834 * dgif_lib.c (DGifGetPixel):
7835 Added config.h/lisp.h, fix up includes.
7842 * dired.c (file_name_completion):
7843 * dired.c (Ffile_attributes):
7844 * dired.c (syms_of_dired):
7848 * dumper.c (pdump_file_unmap):
7849 * dumper.c (pdump_load):
7853 * editfns.c (Ftemp_directory):
7854 * editfns.c (user_login_name):
7855 * editfns.c (Fuser_real_login_name):
7856 * editfns.c (get_home_directory):
7859 * elhash.c (finish_marking_weak_hash_tables):
7860 [[[[5]]]]: Fix GCC warnings.
7863 * emacs.c (mswindows_handle_hardware_exceptions):
7864 * emacs.c (make_arg_list_1):
7866 * emacs.c (Fkill_emacs):
7867 * emacs.c (Fdump_emacs):
7869 Fix problems with nested crashes, add long comment.
7871 * event-Xt.c (init_event_Xt_late):
7875 * event-msw.c (mswindows_dde_callback):
7876 * event-msw.c (mswindows_handle_sticky_modifiers):
7877 * event-msw.c (mswindows_wnd_proc):
7881 * events.c (character_to_event):
7885 * fileio.c (Ffile_name_directory):
7886 * fileio.c (Ffile_name_nondirectory):
7887 * fileio.c (directory_file_name):
7888 * fileio.c (Fexpand_file_name):
7889 * fileio.c (Fsubstitute_in_file_name):
7890 * fileio.c (Ffile_name_absolute_p):
7891 * fileio.c (check_executable):
7892 * fileio.c (Ffile_readable_p):
7893 * fileio.c (Ffile_accessible_directory_p):
7894 * fileio.c (Ffile_modes):
7895 * fileio.c (Funix_sync):
7896 * fileio.c (vars_of_fileio):
7899 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7901 Expand getdefdir defn.
7902 Fix bogus rename() comment.
7904 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
7905 to use standard XEmacs include files, e.g. sysfile.h, rather
7906 than system-specific includes.
7912 * frame.c (vars_of_frame):
7916 * getloadavg.c (getloadavg):
7918 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
7919 (We don't use it elsewhere in the code; just add a comment.)
7926 * glyphs-msw.c (mswindows_resource_instantiate):
7929 * glyphs-x.c (x_native_layout_instantiate):
7932 * gui-msw.c (Fmswindows_shell_execute):
7941 * lread.c (locate_file_in_directory_mapper):
7948 * mem-limits.h (get_lim_data):
7960 * nt.c (rva_to_section):
7961 * nt.c (mswindows_executable_type):
7963 Fix closedir() defn.
7966 [[[[8]]]]: *_OK defs moved to sysfile.h.
7975 * print.c (std_handle_out_external):
7979 * process-nt.c (nt_create_process):
7981 try to fix process quoting somewhat.
7983 * process-unix.c (unix_create_process):
7987 * process.c (vars_of_process):
7994 * realpath.c (xrealpath):
7997 * redisplay-tty.c (init_tty_for_redisplay):
8007 * sheap.c (more_static_core):
8008 * sheap.c (report_sheap_usage):
8012 * signal.c (alarm_signal):
8019 * strftime.c (zone_name):
8022 * symsinit.h (init_sunpro):
8026 commctrl.h not in Cygwin b20.1.
8030 * sysdep.c (sys_subshell):
8031 * sysdep.c (init_baud_rate):
8032 * sysdep.c (emacs_get_tty):
8033 * sysdep.c (emacs_set_tty):
8034 * sysdep.c (tty_init_sys_modes_on_device):
8035 * sysdep.c (init_system_name):
8036 * sysdep.c (sys_open):
8037 * sysdep.c (interruptible_open):
8038 * sysdep.c (sys_fopen):
8039 * sysdep.c (sys_mkdir):
8040 * sysdep.c (sys_rename):
8041 * sysdep.c (get_process_times_1):
8048 * sysdir.h (DIRENTRY_NONEMPTY):
8051 * sysdll.c (dll_init):
8057 added text/binary defs.
8063 * sysproc.h (EDESTADDRREQ):
8064 * sysproc.h (poll_fds_for_input):
8081 Always define WIN32_LEAN_AND_MEAN.
8083 * unexcw.c (unexec):
8087 * unexec.c (copy_text_and_data):
8088 * unexec.c (adjust_lnnoptrs):
8092 * unexnt.c (_start):
8095 2000-06-07 Ben Wing <ben@xemacs.org>
8097 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8098 was used only as a model. We've long since extracted any useful
8099 logic or code out of this. (I just did an exhaustive search.)
8101 * s\msdos.h: Removed.
8103 * s\windows95.h: Removed.
8105 2000-06-10 Ben Wing <ben@xemacs.org>
8109 Don't use extern with fun defs.
8113 Remove nt\inc include.
8114 Remove getdisk, getdefdir. (The former is unused, the latter
8115 expanded in fileio.h.)
8118 * s\windowsnt.h (WIN32_NATIVE):
8119 * s\windowsnt.h (HAVE_STRCASECMP):
8121 Add long comment about preprocessor changes.
8122 Remove getdisk, getdefdir. (The former is unused, the latter
8123 expanded in fileio.h.)
8125 2000-06-10 Ben Wing <ben@xemacs.org>
8134 Remove bogus/unused NO_SOCK_SIGIO.
8136 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8138 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8141 2000-06-04 Mike Sperber <mike@xemacs.org>
8143 * casetab.c (set_case_table): For `set-standard-case-table',
8144 actually deposit the new case tables where the rest of XEmacs can
8147 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8149 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8151 2000-06-05 Ben Wing <ben@xemacs.org>
8153 * callproc.c (child_setup): Don't do close_load_descs() under
8154 MS Windows. Put in a comment explaining why.
8156 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8158 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8159 Toolkit shell" which breaks `kill-compilation' on Windows NT
8160 native, retaining STDERR handling improvements.
8162 2000-06-01 Andreas Jaeger <aj@suse.de>
8164 * s/s390.h: Support for S390, based on a patch by Martin
8165 Schwidefsky <schwidefsky@de.ibm.com>.
8167 2000-05-30 Andy Piper <andy@xemacs.org>
8169 * window.c (allocate_window):
8170 (make_dummy_parent):
8171 (Fset_window_configuration): use new hashtable type.
8173 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8174 (struct image_instantiator_methods):
8175 (struct Lisp_Image_Instance): make instance geometry signed.
8177 * glyphs.c (instantiate_image_instantiator):
8178 (image_instance_query_geometry):
8179 (image_instance_layout):
8180 (image_instance_layout):
8181 (query_string_geometry):
8182 (text_query_geometry):
8183 (image_instantiate):
8184 (image_instantiate):
8185 (cache_subwindow_instance_in_frame_maybe):
8186 (subwindow_query_geometry): make instance geometry signed.
8188 * glyphs-widget.c (widget_query_geometry):
8190 (button_query_geometry):
8191 (tree_view_query_geometry):
8192 (tab_control_query_geometry):
8193 (layout_query_geometry):
8195 (native_layout_layout): make instance geometry signed.
8197 2000-05-29 Olivier Galibert <galibert@pobox.com>
8199 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8202 * general.c (syms_of_general): Add Qfull_assoc symbol.
8204 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8206 (decode_weak_list_type): Decode full-assoc type.
8207 (encode_weak_list_type): Encode full-assoc type.
8208 (Fmake_weak_list): Update doc string.
8210 2000-05-30 Andy Piper <andy@xemacs.org>
8212 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8214 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8215 (decode_hash_table_weakness): ditto.
8216 (Fhash_table_weakness): ditto.
8217 (Fhash_table_type): ditto.
8218 (finish_marking_weak_hash_tables): ditto.
8219 (hash_table_weakness_validate): ditto.
8220 (syms_of_elhash): ditto.
8222 2000-05-28 Martin Buchholz <martin@xemacs.org>
8224 * XEmacs 21.2.34 is released.
8226 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8228 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8230 (updating_line_start_cache): Gone.
8231 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8232 generic code to force a minimum of 1 line laid out in the
8235 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8237 * glyphs.c (instantiate_image_instantiator): Check for initialized
8238 height & width no longer special cases IMAGE_NOTHING.
8239 (nothing_instantiate): Set height and width of instance.
8241 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8243 * unexelf.c (unexec): Search for ".data" section.
8244 Initialize new_data2_offset from old_data_index.
8245 Remove redundant check for ElfW.
8247 2000-05-23 Andy Piper <andy@xemacs.org>
8249 * glyphs.c (get_image_instantiator_governing_domain): allow more
8250 specific domains as the governing domain rather than expecting an
8251 exact match. This fixes problems with layouts.
8253 2000-05-22 Andy Piper <andy@xemacs.org>
8255 * redisplay-output.c (compare_runes): check for non-images
8257 * glyphs.c (set_glyph_dirty_p): ditto.
8258 (update_glyph_cachel_data): ditto.
8260 * glyphs-widget.c (layout_post_instantiate): ditto.
8261 (layout_post_instantiate): ditto.
8263 * event-msw.c (mswindows_wnd_proc): warning removal.
8265 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8267 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8269 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8271 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8273 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8274 (mswindows_executable_type): mingw32 now has enough headers for
8277 2000-05-20 Andy Piper <andy@xemacs.org>
8279 * console-msw.c (mswindows_output_last_error): ; -> ,
8281 2000-05-12 Andy Piper <andy@xemacs.org>
8283 * console-msw.c (FROB): compare ints with ints.
8285 2000-05-11 Andy Piper <andy@xemacs.org>
8287 * glyphs-x.c (x_finalize_image_instance): make minimal build
8290 2000-05-20 Ben Wing <ben@xemacs.org>
8293 * event-Xt.c (vars_of_event_Xt):
8294 move modifier-keys-are-sticky to event-stream.c.
8297 * event-msw.c (mswindows_enqueue_mouse_button_event):
8298 * event-msw.c (key_needs_default_processing_p):
8299 * event-msw.c (XEMSW_LCONTROL):
8300 * event-msw.c (mswindows_handle_sticky_modifiers):
8301 * event-msw.c (FROB):
8302 * event-msw.c (clear_sticky_modifiers):
8303 * event-msw.c (output_modifier_keyboard_state):
8304 * event-msw.c (output_alt_keyboard_state):
8305 * event-msw.c (mswindows_wnd_proc):
8306 * event-msw.c (mswindows_modifier_state):
8307 * event-msw.c (emacs_mswindows_handle_magic_event):
8308 implement sticky modifiers.
8311 * event-stream.c (vars_of_event_stream):
8312 move modifier-keys-are-sticky here.
8318 implement map-range-table.
8321 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8323 * redisplay-tty.c (reset_tty_modes):
8324 (tty_redisplay_shutdown): Adjust argument type to
8325 tty_frame_output_end.
8327 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8329 * eval.c (Fbacktrace): Don't output a line with only right
8332 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8334 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8335 (Fpq_reset_poll): Ditto.
8337 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8339 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8341 2000-05-16 Ben Wing <ben@xemacs.org>
8344 * buffer.c (dfc_convert_to/from_internal_format):
8345 * buffer.c (reinit_vars_of_buffer):
8346 Fix conversion functions to allow reentrancy.
8349 * console-msw.c (mswindows_output_last_error):
8350 New fun, generally useful -- output a human-readable
8351 version of GetLastError() on the console.
8354 * console-msw.h (struct mswindows_frame):
8355 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8357 * console-stream.c (stream_output_begin):
8358 * console-stream.c (stream_output_end):
8359 * console-stream.c (stream_output_vertical_divider):
8360 * console-stream.c (stream_clear_region):
8361 * console-stream.c (stream_flash):
8362 * console-stream.c (console_type_create_stream):
8363 Delete blank stream methods, not needed.
8365 * console.h (struct console_methods):
8366 Split begin/end methods into window and frame.
8369 * event-msw.c (mswindows_handle_paint):
8370 * event-msw.c (output_alt_keyboard_state):
8371 * event-msw.c (mswindows_wnd_proc):
8372 * event-msw.c (vars_of_event_mswindows):
8373 Comment about problems with ignored-expose.
8374 Define mswindows-debug-events; not really implemented.
8376 * frame-msw.c (mswindows_init_frame_1):
8380 * glyphs-msw.c (begin_defer_window_pos):
8381 * glyphs-msw.c (mswindows_unmap_subwindow):
8382 * glyphs-msw.c (mswindows_map_subwindow):
8383 * glyphs-msw.c (mswindows_resize_subwindow):
8384 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8386 * glyphs.c (make_image_instance_1):
8389 * gutter.c (Fredisplay_gutter_area):
8390 Use new begin/end methods.
8392 * lisp.h (Dynarr_new2):
8396 * redisplay-msw.c (mswindows_frame_output_begin):
8397 * redisplay-msw.c (mswindows_frame_output_end):
8398 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8399 New begin/end methods -- handle DeferWindowPos.
8401 * redisplay-output.c (redisplay_move_cursor):
8402 * redisplay-output.c (redraw_cursor_in_window):
8403 * redisplay-output.c (redisplay_update_line):
8404 * redisplay-output.c (redisplay_output_window):
8405 New begin/end methods.
8408 * redisplay-tty.c (tty_frame_output_begin):
8409 * redisplay-tty.c (tty_frame_output_end):
8410 * redisplay-tty.c (console_type_create_redisplay_tty):
8411 New begin/end methods.
8414 * redisplay-x.c (x_window_output_begin):
8415 * redisplay-x.c (x_window_output_end):
8416 * redisplay-x.c (console_type_create_redisplay_x):
8417 New begin/end methods.
8419 * redisplay.c (redisplay_frame):
8420 * redisplay.c (Fredisplay_echo_area):
8421 New begin/end methods.
8422 use MAYBE_DEVMETH for clear_frame; it may not exist.
8424 * window.h (WINDOW_XFRAME):
8425 WINDOW_XFOO macros -- get locale and decode struct pointer.
8428 2000-05-12 Ben Wing <ben@xemacs.org>
8431 * emacs.c (ensure_no_quitting_from_now_on):
8432 * emacs.c (fatal_error_signal):
8433 * emacs.c (mswindows_handle_hardware_exceptions):
8435 * emacs.c (Fkill_emacs):
8436 * emacs.c (shut_down_emacs):
8437 * emacs.c (assert_failed):
8438 various improvements in fatal error handling.
8441 move preparing_for_armageddon to emacs.c.
8444 declare fatal_error_in_progress.
8447 * print.c (std_handle_out_external):
8448 * print.c (std_handle_out_va):
8449 * print.c (stderr_out):
8450 * print.c (stdout_out):
8451 use console under mswin when no standard output.
8452 don't do code conversion during fatal error.
8454 * scrollbar.c (Fscrollbar_page_up):
8455 * scrollbar.c (Fscrollbar_page_down):
8456 fix missing else. reindent.
8458 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8462 * glyphs.h (GLYPH_CACHEL_DESCENT):
8463 (GLYPH_CACHEL_DESCENT):
8464 (GLYPH_CACHEL_DESCENT):
8465 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8466 used in case these are inline functions.
8467 Use more absurd values to error check.
8469 include window.h for error check functions.
8471 2000-05-11 Ben Wing <ben@xemacs.org>
8473 * cmdloop.c (Freally_early_error_handler):
8474 Display message box under windows; otherwise, message will disappear
8475 before it can be viewed.
8478 * console-msw.c (Fmswindows_message_box):
8479 * console-msw.c (FROB):
8480 * console-msw.c (syms_of_console_mswindows):
8481 Define new fun `mswindows-message-box'.
8482 #### I will merge this into `popup-dialog-box'; just give me
8486 * general.c (syms_of_general):
8487 Some new symbols used in `mswindows-message-box'.
8490 * glyphs.c (Fset_image_instance_property):
8491 put warning in this fun.
8494 * glyphs.h (GLYPH_CACHEL_WIDTH):
8495 * glyphs.h (GLYPH_CACHEL_ASCENT):
8496 * glyphs.h (GLYPH_CACHEL):
8497 * glyphs.h (GLYPH_CACHEL_GLYPH):
8498 define error-checking versions to try to catch a bug i've seen --
8499 redisplay gets in an infinite loop because the glyph width of the
8500 continuation glyph is 65535.
8503 Extern message-box stuff.
8505 * window.c (allocate_window):
8506 * window.c (make_dummy_parent):
8507 * window.c (Fset_window_configuration):
8508 Use EQUAL not EQ for subwindow caches to make them work a bit
8509 better. (Something is still very broken.)
8512 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8514 * glyphs.c (image_instantiate): Suppress gcc warnings.
8515 (Fmake_image_instance): Fix doc string.
8516 * specifier.c (Fmake_specifier): Ditto.
8518 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
8520 * paths.h.in (PATH_LOCK): Removed.
8521 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8522 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8524 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8526 * fns.c (Ffeaturep): Update e-mail address in doc-string.
8527 Document (featurep '(and xemacs 21.02)).
8529 2000-05-09 Ben Wing <ben@xemacs.org>
8531 * buffer.c (complex_vars_of_buffer):
8532 update modeline-format doc.
8535 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8538 timeline of all released versions of Emacs, for use in creating
8539 authorship comments and in synching up.
8541 * glyphs-widget.c (image_instantiator_buttons):
8542 * glyphs-widget.c (image_instantiator_edit_fields):
8543 * glyphs-widget.c (image_instantiator_combo_box):
8544 * glyphs-widget.c (image_instantiator_scrollbar):
8545 * glyphs-widget.c (image_instantiator_progress_guage):
8546 * glyphs-widget.c (image_instantiator_tree_view):
8547 * glyphs-widget.c (image_instantiator_tab_control):
8548 * glyphs-widget.c (image_instantiator_labels):
8549 * glyphs-widget.c (image_instantiator_layout):
8550 * glyphs-widget.c (image_instantiator_native_layout):
8551 rename decode_domain method to governing_domain.
8554 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8555 * glyphs.c (add_entry_to_device_ii_format_list):
8556 make sure we don't put an entry more than once into the list.
8557 * glyphs.c (check_instance_cache_mapper):
8558 *************************************************************
8559 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8561 *************************************************************
8562 * glyphs.c (get_image_instantiator_governing_domain):
8563 clean up, expand on new concept of governing domain.
8564 * glyphs.c (instantiate_image_instantiator):
8565 * glyphs.c (allocate_image_instance):
8566 use governing_domain instead of cache_domain in naming.
8567 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8568 * glyphs.c (make_image_instance_1):
8569 * glyphs.c (Fmake_image_instance):
8570 allow for any domain (not just device), and process the
8571 governing domain correctly. very big doc fix.
8572 * glyphs.c (Fimage_instance_domain):
8573 new primitive, to retrieve the governing domain of an image instance.
8574 * glyphs.c (image_instantiate):
8575 use new governing_domain stuff. this fixes a crash you could get
8576 by instantiating certain widget glyphs in frame locales. (should
8577 signal an error instead of crashing.)
8578 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8579 * glyphs.c (Fglyphp): clean up doc.
8580 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8581 * glyphs.c (syms_of_glyphs):
8582 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8583 * glyphs.c (image_instantiator_format_create): add some comments about
8585 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8586 for current-display-table. (Apparently Hrjove implemented in 1998 a
8587 design I wrote up in 1996, but didn't update the doc string.)
8589 * glyphs.h: clean up a doc string.
8590 * glyphs.h (governing_domain):
8591 * glyphs.h (struct image_instantiator_methods):
8592 changes for governing_domain stuff.
8595 * gutter.c (Fgutter_specifier_p):
8596 * gutter.c (Fgutter_size_specifier_p):
8597 * gutter.c (Fgutter_visible_specifier_p):
8599 * objects.c (Fcolor_specifier_p):
8600 * objects.c (Ffont_specifier_p):
8601 * objects.c (Fface_boolean_specifier_p):
8602 doc strings moved to make-*-specifier.
8604 * redisplay.c (add_disp_table_entry_runes_1):
8605 * redisplay.c (generate_fstring_runes):
8606 * redisplay.c (screen):
8607 add random comments and doc strings.
8610 * specifier.c (Fmake_specifier):
8611 major overhaul of this doc string.
8613 * specifier.c (Fvalid_specifier_domain_p):
8614 comment about the bogosity of image instances being domains.
8615 * specifier.c (decode_domain):
8616 now non-static, used in glyphs.c.
8617 * specifier.c (specifier_instance):
8618 comment about the bogosity of image instances being domains.
8619 * specifier.c (Fgeneric_specifier_p):
8620 move doc string to make-generic-specifier.
8621 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8625 * specifier.h (DOMAIN_FRAME):
8626 * specifier.h (DOMAIN_LIVE_P):
8627 * specifier.h (DOMAIN_XDEVICE):
8629 add comments about problems with these macros.
8630 prototype for decode_domain.
8633 * toolbar.c (Ftoolbar_specifier_p):
8634 move doc string to `make-toolbar-specifier'.
8636 * window.c (window_unmap_subwindows_cache_mapper):
8637 *************************************************************
8638 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8640 *************************************************************
8642 2000-05-09 Andy Piper <andy@xemacs.org>
8644 * glyphs.h: declare reset_frame_subwindow_instance_cache.
8646 * window.c (Fset_window_configuration): reset the frame subwindow
8647 cache and re-initialize the window subwindow caches.
8649 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8651 2000-05-09 Ben Wing <ben@xemacs.org>
8653 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8656 2000-04-26 Mike Woolley <mike@bulsara.com>
8658 * ntheap.c: Changed recreate_heap to limit the amount reserved
8659 for the heap to that which is actually available. Also now
8660 displays a message box (with some dignostics) in the event that
8661 it still can't start.
8663 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
8665 * callproc.c (Fold_call_process_internal): GCPRO path
8667 2000-05-08 Jan Vroonhof <jan@xemacs.org>
8669 Patch by Bill Perry.
8671 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8672 back data instead of #ifdef.
8673 (Fscrollbar_page_down): ditto.
8675 2000-05-07 Ben Wing <ben@xemacs.org>
8678 Kludge for defining Qmswindows_tstr.
8681 * nt.c (open_input_file):
8682 * nt.c (open_output_file):
8683 * nt.c (rva_to_section):
8684 * nt.c (mswindows_executable_type):
8685 Move all memory-mapped-file routines here (some were in unexnt.c,
8686 which is bad because they are used by process-nt.c, and unexnt
8687 won't be around when portable dumping). Synched the above routines
8691 Removed ifdef'd out bogus code.
8692 Fixed some prototypes.
8695 * nt.h (OFFSET_TO_RVA):
8696 * nt.h (RVA_TO_OFFSET):
8697 * nt.h (RVA_TO_PTR):
8698 Moved the memory-mapped-file structures, macros and prototypes
8699 here, to parallel nt.c. ntheap.h should really be removed
8700 entirely, and it's a non-portable-dumper specific file.
8702 * ntheap.h (round_to_next):
8703 Moved the memory-mapped-file structures, macros and prototypes
8706 * ntproc.c (compare_env):
8707 Moved rva_to_section and mswindows_executable_type to nt.c.
8708 Moved compare_env to process-nt.c.
8709 ntproc.c will die, one day.
8711 * ntproc.c (sys_spawnve):
8712 Account for win32_ -> mswindows_.
8715 * process-nt.c (struct nt_process_data):
8716 * process-nt.c (ensure_console_window_exists):
8717 * process-nt.c (compare_env):
8718 * process-nt.c (nt_create_process):
8719 * process-nt.c (nt_kill_process_by_pid):
8720 * process-nt.c (syms_of_process_nt):
8721 * process-nt.c (vars_of_process_nt):
8722 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8723 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8724 changes). Eliminate our old `nt-quote-process-args' mechanism.
8725 Synch up nt_create_process with FSF 20.6 sys_spawnve.
8726 Move compare_env here from ntproc.c.
8728 * process.c (Fprocess_send_region):
8729 Takes an optional fourth argument, BUFFER, which should fix some
8730 problems with call-process.
8733 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8736 Move ICC_BAR_CLASSES to syscommctrl.h.
8737 Add preliminary macros for MSWindows/Mule. More to come.
8740 * unexnt.c (unexec):
8741 open_output_file moved to nt.c.
8744 2000-05-05 Andy Piper <andy@xemacs.org>
8746 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8747 instance from the frame cache also since GC may catch up too late
8748 to make frame deletion sane.
8750 2000-05-04 Andy Piper <andy@xemacs.org>
8752 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8753 (x_finalize_image_instance): ungcpro on deletion.
8755 * glyphs.c (image_instantiator_format_create): give pointers a
8756 query geometry method so that the geometry is at least set.
8758 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8759 initialize layouts if using widgets.
8761 2000-05-03 Andy Piper <andy@xemacs.org>
8763 * nt.c: remove bogus reference to sysmmsystem.h
8765 * gui-x.c (popup_selection_callback): fix no selection abort.
8767 2000-05-02 Andy Piper <andy@xemacs.org>
8769 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8770 (mswindows_widget_instantiate): ditto.
8772 * glyphs-widget.c (initialize_widget_image_instance): initialize
8774 (widget_instantiate): cope with children and items in the same
8777 * glyphs.c (mark_image_instance): cope with children as a first
8779 (image_instance_equal): ditto.
8780 (image_instance_hash): ditto.
8781 (image_instance_changed): ditto.
8783 2000-04-30 Andy Piper <andy@xemacs.org>
8785 * glyphs.c (subwindow_query_geometry): new function. Return some
8787 (subwindow_instantiate): don't assign dimensions if none have been
8789 (image_instantiator_format_create): add subwindow_query_geometry.
8790 (print_image_instance): cope with layouts as widgets.
8792 2000-04-29 Andy Piper <andy@xemacs.org>
8794 * frame.c (delete_frame_internal): call
8795 free_frame_subwindow_instance_cache so that all subwindows are
8796 finalized before their parent.
8797 (mark_frame): remove subwindow_cachels.
8798 (Fmake_frame): remove subwindow_cachel manipulation.
8799 (allocate_frame_core): subwindow_instance_cache is a weak list.
8800 (delete_frame_internal): set subwindow_instance_cache to nil.
8802 * glyphs-msw.c (mswindows_finalize_image_instance): make double
8804 (mswindows_finalize_image_instance): use the device
8805 not the domain as the domain may have died already.
8807 * glyphs-x.c (x_finalize_image_instance): ditto.
8808 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8811 * redisplay-output.c (redisplay_unmap_subwindows): update for
8812 subwindow instance cache as a weak list.
8813 (redisplay_unmap_subwindows_maybe): ditto.
8814 (redisplay_unmap_subwindows_except_us): ditto.
8816 * glyphs.c (unmap_subwindow): error checking will check the domain
8817 so don't deal with it here. Don't use cachels anymore.
8818 (map_subwindow): ditto.
8819 (update_subwindow_cachel_data): remove old accessor names.
8820 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8821 (Fresize_subwindow): don't update cachel.
8822 (mark_subwindow_cachels):
8823 (update_subwindow_cachel_data):
8824 (add_subwindow_cachel):
8825 (get_subwindow_cachel_index):
8826 (update_subwindow_cachel):
8827 (reset_subwindow_cachels):
8828 (mark_subwindow_cachels_as_not_updated): deleted.
8829 (cache_subwindow_instance_in_frame_maybe): new function. Add a
8830 subwindow instance to the frame cache.
8831 (find_matching_subwindow): update for subwindow instance cache as
8833 (update_widget_instances): ditto.
8834 (image_instance_type_to_mask):inlined.
8835 (free_frame_subwindow_instance_cache): new function. finalize all
8836 subwindows that are instantiated.
8838 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8839 of cachel information.
8840 (IMAGE_INSTANCE_DISPLAY_X):
8841 (IMAGE_INSTANCE_DISPLAY_Y):
8842 (IMAGE_INSTANCE_DISPLAY_WIDTH):
8843 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8844 (XIMAGE_INSTANCE_DISPLAY_X):
8845 (XIMAGE_INSTANCE_DISPLAY_Y):
8846 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8847 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8848 remove subwindow_cachel structure and function references.
8849 (image_instance_type_to_mask): inline from glyphs.c
8851 * redisplay.c (redisplay_frame): remove subwindow_cachel
8854 * frame.h (struct frame): remove subwindow_cachels.
8855 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8857 * frameslots.h: add subwindow_instance_cache.
8859 * window.c (replace_window): check subwindow cache of replacement.
8860 (window_unmap_subwindows_cache_mapper):
8861 (window_unmap_subwindows): new functions. Unmap all subwindows
8862 cached on this window.
8863 (mark_window_as_deleted): unmap all subwindows.
8865 2000-04-27 Andy Piper <andy@xemacs.org>
8867 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8869 * glyphs-widget.c (widget_layout): return something.
8870 (layout_layout): return something. Fail if not initialized.
8871 (layout_query_geometry): ditto.
8872 (image_instantiator_native_layout): new function. Initialized the
8874 (widget_instantiate): don't do layout stuff here.
8876 * glyphs.c (instantiate_image_instantiator): reorded calling or
8877 instantiate and post_instantiate with layout in between.
8878 (image_instance_layout): be more selective about deciding whether
8879 the layout has been done or not.
8881 * glyphs.h (struct image_instantiator_methods): return a value
8884 2000-04-26 Andy Piper <andy@xemacs.org>
8886 * glyphs.c (allocate_image_instance): make initial width and
8887 height unspecified. Set initialized to 0.
8889 * syscommctrl.h new file. Encapsulates commctrl.h.
8891 * syswindows.h new file. Encapsulates windows.h.
8893 * ntplay.c: use new syswindows.h and syscommctrl.h header.
8895 * console-msw.h: ditto.
8897 * redisplay-tty.c (tty_output_display_block): remove layout references.
8899 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8900 window handle rather than just the frame.
8902 * glyphs.c (mark_image_instance): remove layout references.
8903 (print_image_instance): ditto.
8904 (image_instance_equal): ditto.
8905 (image_instance_hash): ditto.
8906 (decode_image_instance_type): ditto.
8907 (encode_image_instance_type): ditto.
8908 (image_instantiate): ditto.
8909 (allocate_glyph): ditto.
8910 (Fimage_instance_height): ditto.
8911 (Fimage_instance_width): ditto.
8912 (update_subwindow): ditto.
8914 * redisplay-x.c (x_output_display_block): recode for layouts as
8917 * redisplay-output.c (redisplay_output_layout): recode for layouts
8919 (compare_runes): remove layout references.
8921 * redisplay-msw.c (mswindows_output_display_block): recode for
8924 * glyphs-widget.c (image_instantiator_layout): remove
8925 layout_possible_dest_types.
8926 (layout_possible_dest_types): deleted.
8928 * glyphs.h (image_instance_type): remove layout references.
8929 (struct Lisp_Image_Instance): ditto. Add initialized flag.
8930 (IMAGE_INSTANCE_INITIALIZED): new accessor.
8931 (XIMAGE_INSTANCE_INITIALIZED): ditto.
8933 2000-04-25 Andy Piper <andy@xemacs.org>
8935 * glyphs-widget.c (image_instantiator_buttons):
8936 (image_instantiator_edit_fields):
8937 (image_instantiator_combo_box):
8938 (image_instantiator_scrollbar):
8939 (image_instantiator_progress_guage):
8940 (image_instantiator_tree_view):
8941 (image_instantiator_tab_control):
8942 (image_instantiator_labels):
8943 (image_instantiator_layout): call default post_instantiate method.
8944 (widget_post_instantiate): new function. Simply lays out the
8947 * glyphs.h (struct image_instantiator_methods): add
8948 post_instantiate method.
8950 * glyphs.c (instantiate_image_instantiator): add post_instantiate
8953 2000-04-23 Andy Piper <andy@xemacs.org>
8955 * glyphs.h (struct image_instantiator_methods): add
8956 decode_domain_method.
8957 (struct Lisp_Image_Instance): remove subwindow frame - it can be
8958 derived from the domain.
8959 (IMAGE_INSTANCE_FRAME): new accessor.
8960 (XIMAGE_INSTANCE_FRAME): ditto.
8962 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8963 instead of _SUBWINDOW_FRAME.
8964 (finalize_image_instance): ditto.
8965 (Fimage_instance_foreground): ditto.
8966 (Fimage_instance_background): ditto.
8967 (image_instantiate): ditto.
8968 (update_subwindow_cachel): ditto.
8969 (update_subwindow): ditto.
8970 (unmap_subwindow): ditto.
8971 (map_subwindow): ditto
8972 (subwindow_instantiate): ditto.
8973 * glyphs-msw.c (mswindows_update_widget): ditto.
8974 (mswindows_progress_gauge_instantiate): ditto.
8975 (mswindows_tab_control_update): ditto.
8976 * glyphs-x.c (x_update_widget): ditto.
8977 (x_widget_instantiate): ditto.
8978 (x_tab_control_instantiate): ditto.
8979 (x_tab_control_update): ditto.
8980 * event-msw.c (mswindows_wnd_proc): ditto
8982 * glyphs-widget.c (image_instantiator_layout): use
8983 subwindow_decode_domain.
8984 (image_instantiator_buttons): ditto.
8985 (image_instantiator_edit_fields): ditto.
8986 (image_instantiator_combo_box): ditto.
8987 (image_instantiator_scrollbar): ditto.
8988 (image_instantiator_progress_guage): ditto.
8989 (image_instantiator_tree_view): ditto.
8990 (image_instantiator_tab_control): ditto.
8991 (image_instantiator_labels): ditto.
8992 (image_instantiator_layout): ditto.
8994 * glyphs.c: add instance error checking to many functions.
8995 (instantiate_image_instantiator): decode device from cache_domain.
8996 (image_instantiate): partially rewrite by using
8997 decode_image_instantiator_domain to determine what domain the
8998 instance needs to be cached in.
8999 (decode_image_instantiator_domain): new function. Determine what
9000 domain the image needs to be cached in.
9001 (check_window_subwindow_cache): new error checking function.
9002 (check_instance_cache_mapper): ditto.
9003 (check_image_instance_structure): ditto.
9004 (subwindow_decode_domain): new function. Encodes a window as a
9005 subwindow's cache domain.
9006 (image_instantiator_format_create): use it for text and
9009 2000-04-21 Andy Piper <andy@xemacs.org>
9011 * glyphs.c (image_instance_device): new function.
9012 (image_instance_frame): new function.
9013 (image_instance_window): new function.
9014 (image_instance_live_p): new function.
9016 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9019 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9020 (IMAGE_INSTANCE_DOMAIN): new accessor.
9021 (XIMAGE_INSTANCE_DOMAIN): ditto.
9023 * glyphs-x.c (x_finalize_image_instance): device->domain.
9025 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9026 (mswindows_finalize_image_instance): ditto.
9028 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9029 (gif_instantiate): ditto.
9030 (png_instantiate): ditto.
9031 (tiff_instantiate): ditto.
9033 * glyphs.c (instantiate_image_instantiator): use domain rather
9035 (mark_image_instance): device -> domain.
9036 (print_image_instance): ditto.
9037 (finalize_image_instance): ditto.
9038 (image_instance_equal): ditto.
9039 (allocate_image_instance): ditto.
9040 (Fcolorize_image_instance): ditto.
9041 (query_string_geometry): ditto.
9042 (image_instantiate): ditto
9043 (query_string_font): ditto.
9044 (image_instantiate): ditto.
9045 (update_subwindow): ditto.
9046 (unmap_subwindow): ditto.
9047 (map_subwindow): ditto.
9048 (subwindow_instantiate): ditto.
9050 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9051 (DOMAIN_FRAME): ditto.
9052 (DOMAIN_WINDOW): ditto.
9053 (DOMAIN_LIVE_P): ditto.
9054 (XDOMAIN_DEVICE): ditto.
9055 (XDOMAIN_FRAME): ditto.
9056 (XDOMAIN_WINDOW): ditto.
9058 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9059 a valid specifier domain.
9061 2000-04-19 Andy Piper <andy@xemacs.org>
9063 * glyphs-widget.c (syms_of_glyphs_widget): remove
9064 widget-callback-current-channel.
9065 (vars_of_glyphs_widget): ditto.
9068 * gui.c (get_gui_callback): revert to previous behaviour.
9070 2000-04-18 Andy Piper <andy@xemacs.org>
9072 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9073 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9074 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9076 * glyphs.c (image_instance_equal): add margin_width.
9077 (image_instance_hash): ditto.
9079 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9080 (layout_query_geometry): ditto.
9081 (layout_layout): ditto.
9082 (syms_of_glyphs_widget): add margin-width.
9083 (image_instantiator_layout): allow margin-width.
9085 * glyphs.c (update_widget_instances): make a normal function.
9086 (syms_of_glyphs): remove Qupdate_widget_instances.
9089 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9090 so that we don't corrupt ideas about the last event or
9091 command. Remove widget-callback-current-channel fiddling.
9092 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9094 2000-05-01 Martin Buchholz <martin@xemacs.org>
9096 * XEmacs 21.2.33 is released.
9098 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9100 * make-src-depend: Allow dots in header file name.
9102 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9104 * mule-charset.h (struct charset_lookup): Add
9105 next_allocated_1_byte_leading_byte and
9106 next_allocated_2_byte_leading_byte.
9107 * mule-charset.c: Move above two variables so that those values
9110 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9112 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9113 when string length is zero.
9114 (find_charsets_in_emchar_string): Ditto.
9116 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9118 * lisp.h: extern Qdialog and Qmenubar.
9120 * gui-x.c: added events.h.
9121 also fixed typo which made the file uncompilable.
9123 * general.c: Added Qmenubar and Qdialog
9125 2000-04-28 Ben Wing <ben@xemacs.org>
9127 * frame-msw.c (mswindows_init_frame_1):
9128 * frame-msw.c (mswindows_mark_frame):
9129 * event-msw.c (mswindows_enqueue_dispatch_event):
9131 * console-msw.h (struct mswindows_frame):
9132 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9133 there are now three hash tables for callbacks.
9134 mswindows_enqueue_dispatch_event is no longer static.
9136 * dialog-x.c (maybe_run_dbox_text_callback):
9137 * dialog-x.c (dbox_descriptor_to_widget_value):
9138 switch to new cons3 form for callbacks.
9140 * glyphs-msw.c (mswindows_register_gui_item):
9141 * glyphs-msw.c (mswindows_widget_instantiate):
9142 * glyphs-msw.c (add_tree_item):
9143 * glyphs-msw.c (add_tab_item):
9144 new image instance parameter, so it can be passed to callback-ex.
9145 respect :callback-ex as well as :callback.
9147 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9150 * glyphs.c (print_image_instance):
9151 prettify, e.g. now prints widget type.
9154 certain funs have new image instance parameter.
9157 * gui.c (get_gui_callback):
9158 * gui.c (gui_item_add_keyval_pair):
9159 * gui.c (gui_item_init):
9160 * gui.c (gui_add_item_keywords_to_plist):
9161 * gui.c (mark_gui_item):
9162 * gui.c (gui_item_hash):
9163 * gui.c (gui_item_equal):
9164 * gui.c (copy_gui_item):
9165 * gui.c (syms_of_gui):
9166 recognize callback-ex in a number of places.
9167 also, fix the annoying "can't get out of yes-no dialog" bug.
9170 * gui.h (struct Lisp_Gui_Item):
9171 recognize callback-ex in a number of places.
9173 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9174 new parameter in button_item_to_widget_value.
9176 * glyphs-x.c (x_update_widget):
9177 * glyphs-x.c (x_button_instantiate):
9178 * glyphs-x.c (x_button_update):
9179 * glyphs-x.c (x_progress_gauge_instantiate):
9180 * glyphs-x.c (x_edit_field_instantiate):
9181 * glyphs-x.c (x_combo_box_instantiate):
9182 * glyphs-x.c (x_tab_control_instantiate):
9183 * glyphs-x.c (x_label_instantiate):
9184 new image instance parameter in various places.
9187 * event-Xt.c (enqueue_Xt_dispatch_event):
9188 this fun gets exported.
9191 * gui-msw.c (mswindows_handle_gui_wm_command):
9192 handle both :callback and :callback-ex, and generate our own
9193 event because it's one of the callback-ex arguments.
9196 * gui-x.c (popup_selection_callback):
9197 handle both :callback and :callback-ex, and generate our own
9198 event because it's one of the callback-ex arguments.
9199 * gui-x.c (button_item_to_widget_value):
9200 * gui-x.c (gui_items_to_widget_values_1):
9201 * gui-x.c (gui_item_children_to_widget_values):
9202 * gui-x.c (gui_items_to_widget_values):
9203 new image instance parameter in various places.
9205 * fns.c (Freplace_list):
9206 fix small typo in doc string.
9209 declare enqueue_Xt_dispatch_event.
9211 2000-04-28 Ben Wing <ben@xemacs.org>
9214 * buffer.c (Frecord_buffer):
9215 * buffer.c (syms_of_buffer):
9216 delete record-buffer-hook.
9219 * fns.c (Freplace_list):
9220 * fns.c (syms_of_fns):
9221 new primitive replace-list.
9224 slot for old buffer-alist.
9230 * redisplay.c (redisplay_frame):
9231 * redisplay.c (syms_of_redisplay):
9232 * redisplay.c (vars_of_redisplay):
9233 new hook buffer-list-changed-hook.
9236 2000-04-27 Ben Wing <ben@xemacs.org>
9238 * extents.h: extern in_modeline_generation.
9240 * redisplay.c (generate_formatted_string_db): set
9241 in_modeline_generation.
9243 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9244 flags if in modeline generation. otherwise frame-modified-tick
9245 is ticked far too often.
9246 Declare in_modeline_generation.
9248 2000-04-26 Ben Wing <ben@xemacs.org>
9250 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9252 (vars_of_emacs): add quick-build as an error-checking option.
9253 A bit kludgy, but there doesn't seem much point in creating
9254 a real var for this.
9256 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9258 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9260 * redisplay.h (struct display_line): Add a new variable,
9263 * redisplay.c (create_text_block): Set dl->line_continuation if
9265 (create_string_text_block): Ditto.
9266 (regenerate_window_incrementally): Use line_continuation instead
9267 of searching continuation glyph.
9268 (add_margin_runes): Call add_glyph_rune.
9269 (add_glyph_rune): Handle margin glyph.
9271 2000-04-20 Martin Buchholz <martin@xemacs.org>
9273 * filelock.c (fill_in_lock_file_name):
9275 Check for IS_ANY_SEP instead of '/'.
9277 Avoid generating gratuitous garbage. Call user_login_name() directly.
9278 Never check errno without first seeing that system call failed.
9279 (unlock_file): Add GCPRO.
9280 (Flock_buffer): Fix docstring.
9281 (Ffile_locked_p): Fix docstring. Add GCPRO.
9283 2000-04-19 Martin Buchholz <martin@xemacs.org>
9285 * sysdep.c (get_pty_max_bytes):
9286 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9287 strings longer than 252 bytes.
9289 * md5.c: Unconditionally include ANSI header <limits.h>
9291 * glyphs-x.c (convert_EImage_to_XImage):
9292 * lisp-union.h (union Lisp_Object):
9293 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9295 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9297 * filelock.c (current_lock_owner): Remove unused variable o, p.
9299 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9301 * callint.c: Remove multiply defined symbol Qlet
9302 (syms_of_callint): ditto.
9304 2000-04-14 Andy Piper <andy@xemacs.org>
9306 * general.c (syms_of_general): add last-command, this-command, let
9309 * lisp.h: declare various symbols.
9311 * glyphs.h: declare Qwidget_callback_current_channel;
9313 * glyphs-widget.c (syms_of_glyphs_widget): add
9314 Qgui_callback_current_channel.
9315 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9317 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9318 widget-callback-current-channel when invoking the interactive
9319 arg. Also bind last-command and next-command when invoking the
9321 * gui-x.c (popup_selection_callback): ditto.
9323 * gui.c (get_gui_callback): massage args so that we are always
9324 calling eval. This allows us to add our own variable bindings
9327 * glyphs-x.c (x_button_instantiate): use
9328 gui_items_to_widget_values since this is GC safe.
9329 (x_progress_gauge_instantiate): ditto.
9330 (x_edit_field_instantiate): ditto.
9331 (x_label_instantiate): ditto.
9333 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9334 (emacs_Xt_event_widget_focus_out): new function
9335 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9337 (emacs_Xt_event_add_widget_actions): new function. add focus
9338 functions as actions.
9339 (init_event_Xt_late): use it.
9341 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9343 * event-stream.c (Fdispatch_event): Doc fix.
9345 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9347 * postgresql.c: Remove all references to PQsetenv*.
9349 * postgresql.h: Remove references to PGsetenvHandler object.
9350 * lrecord.h (lrecord_type): Ditto.
9352 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9354 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9355 real_heigh and real_width members, and accessor macros for these.
9357 * glyphs-msw.c (init_image_instance_geometry): New function.
9358 (init_image_instance_from_dibitmap): Use it.
9359 (mswindows_resource_instantiate): Use it.
9360 (init_image_instance_from_xbm_inline): Use it.
9361 (mswindows_initialize_image_instance_mask): Use real bitmap
9363 (mswindows_create_resized_bitmap): Ditto.
9364 (mswindows_create_resized_mask): Ditto.
9366 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9367 and bitmap to their surface size.
9369 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9371 * process-unix.c (unix_send_process): Guard against process MIA
9372 after Faccept_process_output.
9374 2000-04-11 Ben Wing <ben@xemacs.org>
9376 * eval.c (unbind_to_hairy): fix brokenness introduced by
9377 nanosecond speed improvements.
9379 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9381 * sunplay.c (init_device): To play sounds correctly, the device
9382 apparently needs to be initialized at least once by XEmacs. Make
9385 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9387 * redisplay.c (add_margin_runes): Add text image glyph
9390 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9392 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9393 gcc is newer than 2.5.
9395 2000-04-06 Colin Rafferty <colin@xemacs.org>
9397 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9399 * fns.c (size_bit_vector):
9400 * alloc.c (size_vector):
9401 (make_vector_internal):
9402 (make_bit_vector_internal):
9403 (sweep_bit_vectors_1):
9404 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9406 2000-04-06 Andy Piper <andy@xemacs.org>
9408 * gmalloc.c (malloc): undo previous change.
9413 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9415 * line-number.c (buffer_line_number): Revert to former version.
9417 2000-04-06 Andy Piper <andy@xemacs.org>
9419 * gmalloc.c (malloc): add error checking.
9424 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9425 button_item_to_widget_value arg.
9427 * glyphs-x.c (x_button_instantiate): add extra
9428 button_item_to_widget_value arg.
9429 (x_progress_gauge_instantiate): ditto.
9430 (x_edit_field_instantiate): ditto.
9431 (x_label_instantiate): ditto.
9433 * gui-x.c (gui_items_to_widget_values_1): add extra
9434 button_item_to_widget_value arg.
9435 (button_item_to_widget_value): add extra menu_item_p arg.
9437 * gui-x.h: change signature of button_item_to_widget_value.
9439 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9440 button_item_to_widget_value arg.
9442 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9444 * buffer.h (struct buffer): auto_save_modified should be long.
9446 2000-04-05 Andy Piper <andy@xemacs.org>
9448 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9450 (button_query_geometry): give a little more room so that athena
9453 2000-04-05 Andy Piper <andy@xemacs.org>
9455 * faces.c (complex_vars_of_faces): The widget face should inherit
9456 the font of the gui-element face.
9458 2000-04-04 Andy Piper <andy@xemacs.org>
9460 * glyphs-x.c (x_button_update): new function. unconditionally
9461 update a button's state when the instance is dirty.
9462 (image_instantiator_format_create_glyphs_x): add x_button_update.
9463 (x_widget_instantiate): remove old resize cruft.
9465 2000-04-02 Andy Piper <andy@xemacs.org>
9467 * frame.c (change_frame_size_1): The introduction of gutters means
9468 that we need to allow 0 as a potential frame dimension.
9470 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9472 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9473 image glyph if allow_cursor.
9474 (add_hscroll_rune): Don't allow cursor to border glyph.
9475 (create_text_block): Ditto.
9477 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9479 (redisplay_output_layout): Call ensure_face_cachel_complete for
9483 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9485 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9487 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9490 * redisplay-tty.c (tty_output_display_block): Delete the routine
9491 for text image glyph
9492 * redisplay-x.c (x_output_display_block): ditto
9493 * redisplay-msw.c (mswindows_output_display_block): ditto
9495 2000-02-02 Mike Alexander <mta@arbortext.com>
9497 Note: Some of these were committed by accident as part of other
9500 * regex.c (regex_compile): Avoid compiler warnings.
9502 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9504 * nt.h: Declare term_ntproc correctly.
9506 * nt.c: Remove incorrect declaration of get_home_directory which
9507 is declared correctly in lisp.h.
9509 * keymap.c (get_keyelt): Avoid compiler warnings.
9510 (raw_lookup_key_mapper): Avoid compiler warnings.
9512 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9514 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9516 * filemode.c (mode_string): Avoid compiler warnings.
9518 * file-coding.c (Fcoding_system_aliasee): Add return statement to
9521 * events-mod.h: Undef some things that winuser.h defines differently.
9523 * data.c (Faset): Avoid compiler warnings.
9525 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9527 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9529 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9530 Fall through to simple beep on error.
9531 Replace "extern" by real header file.
9533 * linuxplay.c: Use nativesound.h
9534 (play_sound_data): Return error code. Be less verbose on error.
9536 * sunplay.c: Use nativesound.h
9537 (play_sound_data): Return error code. Be less verbose on error.
9539 * ntplay.c: Use nativesound.h
9540 (play_sound_data): Return fake error code
9542 * sgiplay.c: Use nativesound.h
9543 (play_sound_data): Return error code
9545 * hpplay.c: Use nativesound.h, partially implement
9546 new error code. Break compilation until finished.
9547 (play_sound_data): error code.
9549 * nativesound.h (play_sound_file):
9550 (play_sound_data): Prototype in new header.
9552 2000-03-31 Andy Piper <andy@xemacs.org>
9554 * glyphs-widget.c: (button_query_geometry): new function. Adjust
9555 for toggle and radio buttons.
9556 (image_instantiator_buttons): use it.
9558 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9560 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9561 (x_update_horizontal_scrollbar_callback): Return if no mirror was
9562 found. Scrollbar event probably belonged to some old config.
9564 2000-03-31 Andy Piper <andy@xemacs.org>
9566 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9568 (initialize_widget_image_instance): default layout to
9569 LAYOUT_HORIZONTAL rather than 0.
9570 (widget_instantiate): reverse the item list at the end rather than
9572 (layout_layout): re-code for the border text at the front of the
9573 item list rather than at the end.
9574 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9575 provided by the user.
9576 (widget_query_geometry): comment.
9578 2000-03-30 Andy Piper <andy@xemacs.org>
9580 * glyphs-widget.c (image_instantiator_layout): allow standard
9581 widget keywords in layouts.
9583 * gutter.c (output_gutter): cope with nil gutter contents.
9585 * frame.c (Fset_frame_properties): add gutter docs.
9587 2000-03-29 Andy Piper <andy@xemacs.org>
9589 * toolbar-msw.c (TBSTYLE_FLAT): add.
9590 (mswindows_output_toolbar): minor fiddling.
9592 2000-03-29 Andy Piper <andy@xemacs.org>
9594 * gutter.c (output_gutter): force gutter size recalculation if
9595 what we are trying to display won't fit.
9596 (update_gutter_geometry): new function. A per-gutter version of
9597 update_frame_gutter_geometry.
9598 (update_frame_gutter_geometry): use it.
9599 (redraw_exposed_gutter): add extra debugging output.
9601 2000-03-28 Mike Alexander <mta@arbortext.com>
9603 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9604 (pdump_file_unmap): Implement it on Windows
9605 (pdump_file_get): Save alocated handles for pdump_file_unmap
9607 2000-03-28 Andy Piper <andy@xemacs.org>
9609 * gui.c (get_gui_callback): treat Quit specially.
9611 2000-03-27 Andy Piper <andy@xemacs.org>
9613 * glyphs.c (image_instantiate): be careful to check in the same
9616 2000-03-27 Didier Verna <didier@xemacs.org>
9618 * config.h.in: define the proper SMART_INCLUDE macro.
9619 handle renaming of `foo_h_path' to `foo_h_file'.
9621 * database.c: ditto.
9625 * linuxplay.c: ditto.
9627 * terminfo.c: ditto.
9629 * tooltalk.h: ditto.
9631 2000-03-27 Andy Piper <andy@xemacs.org>
9633 * glyphs-msw.c (mswindows_update_widget): make sure the widget
9634 gets updated whenever the face might have changed.
9636 2000-03-26 Mike Alexander <mta@arbortext.com>
9638 * dumper.c (pdump_resource_free): Fix the comment.
9640 2000-03-21 Olivier Galibert <galibert@pobox.com>
9642 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9644 2000-03-22 Mike Alexander <mta@arbortext.com>
9646 * dumper.c: Include Windows headers on Windows
9647 (pdump_resource_free): Add a body to the function
9648 (pdump_load): exe_name -> exe_path and add some comments.
9650 2000-03-25 Mike Alexander <mta@arbortext.com>
9652 * gui.c (copy_gui_item_tree): Return a value in all cases
9654 2000-03-21 Didier Verna <didier@xemacs.org>
9656 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9658 (SMART_INCLUDE): new macro.
9659 (POSTGRES_INCLUDE): new macro to include postgresql headers from
9660 the proper location.
9662 * postgresql.c: use it.
9666 2000-03-24 Andy Piper <andy@xemacs.org>
9668 * gutter.c (redraw_exposed_gutters): must be "in display" when we
9671 2000-03-24 Andy Piper <andy@xemacs.org>
9673 * redisplay-output.c (compare_runes): use image_instance_changed
9674 to detect changes. Do not depend on glyphs_changed, only depend on
9676 (redisplay_output_layout): add debug messages.
9677 (compare_runes): ditto.
9679 * glyphs.h: declare new functions.
9680 (struct Lisp_Image_Instance): remove percent and associated
9683 * gui.h: declare new copying functions.
9685 * gui.c (copy_gui_item_tree): new function.
9686 (copy_gui_item): new function.
9687 (gui_item_id_hash): revert to standard hash.
9688 (gui_item_hash): ditto.
9689 (gui_item_hash_internal): deleted.
9690 (mark_gui_item): mark value.
9691 (gui_item_add_keyval_pair): add value.
9692 (gui_item_init): ditto.
9693 (gui_add_item_keywords_to_plist): ditto.
9694 (gui_item_equal): ditto.
9695 (syms_of_gui): add Q_value.
9697 * glyphs-x.c (x_progress_gauge_update): use pending items and
9698 value for setting the state.
9699 (x_update_widget): don't set items from pending here.
9701 * glyphs-widget.c (update_widget): update items here.
9702 (progress_gauge_set_property): use items for storing value. Put
9703 new value in pending items.
9705 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9706 items for new value. Convert percent -> value.
9707 (mswindows_tab_control_update): don't update items here.
9709 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9710 (update_subwindow): ditto.
9711 (image_instance_changed): new function. Compare hash values and
9712 past and present widget items.
9713 (image_instantiate): We more careful about where we instantiate
9715 (image_instantiate): add error checking.
9717 * gutter.c (syms_of_gutter): use -hook.
9719 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
9721 * console-tty.c (Fset_console_tty_input_coding_system): Use
9723 (Fset_console_tty_output_coding_system): Use Qterminal.
9724 (tty_init_console): Use Qkeyboard and Qterminal.
9726 2000-03-21 Ben Wing <ben@xemacs.org>
9728 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9729 From Mike Alexander <mta@arbortext.com>.
9731 2000-03-21 Ben Wing <ben@xemacs.org>
9733 * event-msw.c (mswindows_need_event): Horrible kludge to fix
9734 process brokenness. Proper implementation to come.
9736 Rename call-process-internal to old-call-process-internal.
9737 New impl. in process.el.
9739 2000-03-21 Martin Buchholz <martin@xemacs.org>
9741 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9743 2000-03-20 Andy Piper <andy@xemacs.org>
9745 * glyphs.c (full_list_hash): make hashes of the same elements in
9746 different orders return different values.
9748 2000-03-20 Martin Buchholz <martin@xemacs.org>
9750 * XEmacs 21.2.32 is released.
9752 2000-03-20 Martin Buchholz <martin@xemacs.org>
9754 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9755 (DFC_MALLOC_USE_CONVERTED_DATA):
9756 Add aliasing-safe casts to allow use with char* or unsigned char*
9759 * eldap.c (Fldap_open):
9760 (Fldap_search_basic):
9763 Make C++-compilable.
9764 Make sure GCPRO'ed variables are initialized.
9765 Use temp variables to avoid repeated calls to Flength.
9767 2000-03-16 Martin Buchholz <martin@xemacs.org>
9770 Make sure PATH_MAX is always defined.
9771 Include limits.h for PATH_MAX.
9772 Deprecate use of MAXPATHLEN.
9774 2000-03-10 Martin Buchholz <martin@xemacs.org>
9776 * emacs.c: Add reinit_vars_of_fileio.
9777 * symsinit.h: Add reinit_vars_of_fileio.
9778 * fileio.c (reinit_vars_of_fileio): New.
9779 * fileio.c (Fmake_temp_name):
9780 Initialize temp_name random number from microseconds to make
9781 collisions even less likely. Initialize always at process startup
9782 time. (make-temp-name) used to return the same file name twice in
9784 Random stylistic fiddling.
9787 2000-03-20 Andy Piper <andy@xemacs.org>
9789 * glyphs.c (image_instantiate): allow text glyphs to be
9790 instantiated in the minibuffer window.
9792 2000-03-19 Andy Piper <andy@xemacs.org>
9794 * glyphs.c (image_instance_hash): be careful about which items we
9797 * glyphs-widget.c (tab_control_set_property): record into pending
9798 items rather than the actual items.
9800 * glyphs-x.c (x_update_widget): use pending items to update with.
9802 * glyphs-msw.c (mswindows_tab_control_update): use pending items
9805 * glyphs.c (mark_image_instance): mark pending items.
9807 * window.c (Fset_window_configuration): record the buffer.
9808 (Fselect_window): totally revert previous change which breaks many
9811 2000-03-18 Andy Piper <andy@xemacs.org>
9813 * glyphs-msw.c (mswindows_tab_control_update): force selected
9816 * glyphs.c (image_instantiate): don't allow the minibuffer as a
9817 window domain cache, otherwise we get inconsistencies at
9818 startup. There is something fishy at startup which can lead to the
9819 minibuffer being the selected window when the gutter content is
9822 * gui.c (parse_gui_item_tree_list): add probably unnecessary
9824 (parse_gui_item_tree_children): ditto.
9825 (parse_gui_item_tree_item): ditto.
9827 * glyphs.c (Fupdate_widget_instances): return something.
9829 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
9831 * window.c (Fselect_window): Undo 2000-03-17 change.
9833 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
9835 * postgresql.c (Fpq_setenv): Remove this turkey when linking
9836 against v7.0 libraries. Insta-coredump city until the postgres
9839 2000-03-17 Andy Piper <andy@xemacs.org>
9841 * faces.c (complex_vars_of_faces): don't give the widget face an
9842 inherited background pixmap.
9844 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9847 * event-stream.c (Fdispatch_non_command_events): return something.
9849 * gutter.c (output_gutter): use widget face.
9850 (clear_gutter): ditto.
9852 * NEWS: adjust again.
9854 * window.c (Fselect_window): make sure this runs to completion to
9855 avoid oddities with Fset_window_configuration.
9856 (Fcurrent_window_configuration): in general do not save the
9857 minibuffer as the selected window.
9859 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9861 2000-03-16 Olivier Galibert <galibert@pobox.com>
9863 * emacs.c (Frunning_temacs_p): Revert previous patch.
9864 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9866 2000-03-16 Andy Piper <andy@xemacs.org>
9868 * glyphs-x.c (x_tab_control_update): if no widget values then
9871 * NEWS: update for new features.
9873 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9874 synthetic event to the native system.
9875 (reinit_vars_of_event_Xt): set force_event_pending to
9876 emacs_Xt_force_event_pending.
9878 * events.h (struct event_stream): add force_event_pending.
9880 * specifier.c (recompute_one_cached_specifier_in_window): add
9883 * redisplay.c (redisplay_frame): don't call
9884 update_frame_subwindows. Reset subwindow cachels when
9885 subwindows_changed, removing this was an optimization too far.
9887 * redisplay-output.c (compare_runes): reorganize so that we catch
9888 glyph changes when we want them. Set optimize_output when this
9890 (redisplay_output_layout): remove frame_really_changed, use
9891 optimize_output instead.
9893 * redisplay-msw.c (mswindows_output_display_block): reset
9894 optimize_output after outputting a glyph.
9895 * redisplay-x.c (x_output_display_block): ditto.
9896 * redisplay-tty.c (tty_output_display_block): ditto.
9898 * gutter.c: (specifier_vars_of_gutter): use new spec changed
9900 (gutter_specs_changed): do specific gutter positions.
9901 (top_gutter_specs_changed): new function. Only update the
9902 specified gutter specs.
9903 (bottom_gutter_specs_changed): ditto.
9904 (left_gutter_specs_changed): ditto.
9905 (right_gutter_specs_changed): ditto.
9907 * gui.c (gui_item_hash_internal): new function, does a real hash.
9908 (gui_item_id_hash): use it.
9909 (gui_item_hash): hash the eval'ed gui_item.
9911 * gui-x.c (popup_selection_callback): send an eval event to call
9912 Fupdate_widget_instances.
9914 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9915 to call Fupdate_widget_instances.
9917 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9918 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9920 * glyphs.c: (update_frame_subwindows): deleted.
9921 (Fupdate_widget_instances): new function for updating the dirty
9922 state of widgets that might have changed.
9923 (syms_of_glyphs): add Qupdate_widget_instances.
9924 (full_list_hash): hash a list completely.
9925 (image_instance_hash): use it for items and properties.
9927 * frame-msw.c (mswindows_size_frame_internal): remove unused
9930 * faces.h (struct face_cachel): fix comment.
9932 * event-stream.c (Fdispatch_non_command_events): new
9933 function. Process non-command events, forcing an event cycle
9935 (syms_of_event_stream): declare.
9936 (event_stream_force_event_pending): new function. Force an event
9937 on the native event queue so that an event cycle will occur next
9941 (struct ntpipe_shove_stream):
9942 (mswindows_enqueue_dispatch_event):
9943 (mswindows_dequeue_dispatch_event):
9944 (mswindows_cancel_dispatch_event):
9945 (mswindows_pump_outstanding_events):
9946 (mswindows_drain_windows_queue):
9947 (mswindows_handle_paint):
9948 (mswindows_wnd_proc):
9949 (mswindows_key_to_emacs_keysym):
9950 (get_process_input_waitable):
9951 (emacs_mswindows_delete_stream_pair): re-indent file.
9952 (mswindows_need_event): do not process further fds if the windows
9953 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9954 fixes the 100% cpu problem.
9955 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9957 2000-03-15 Olivier Galibert <galibert@pobox.com>
9963 * emacs.c: Moved dump file searching to dumper.c.
9964 (Frunning_temacs_p): Fixed.
9966 * alloc.c: Moved everything pdump-related to dumper.c. Removed
9967 last_lrecord_type_index_assigned.
9969 2000-02-20 Olivier Galibert <galibert@pobox.com>
9971 * symsinit.h: Added reinit parameter to init_console_stream
9974 * lisp.h: Added file parameter to pdump_load declaration.
9976 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9977 support. Added dump file searching.
9979 * config.h.in: Added EMACS_PROGNAME.
9981 * console-stream.c (init_console_stream): Fix reinitialisation
9982 when running from temacs.
9984 * alloc.c (pdump): Add id support.
9985 (pdump_load): Add file parameter and signature/id support.
9987 * Makefile.in.in: Add full pdump support.
9989 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
9991 * postgresql.c: Update documentation to reflect latest code
9993 (print_result): Show tuple counts in printed representation when
9995 (Fpq_put_nbytes): MULE-ize.
9996 (Fpq_get_line_async): Ditto.
9998 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10000 * postgresql.c (Fpq_lo_import): Fix return value.
10001 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10003 2000-03-13 Ben Wing <ben@xemacs.org>
10005 * alloc.c (pdump_load):
10006 Fix compile warning under mswin.
10008 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10010 * postgresql.c: Mule-ization, bug fixes.
10011 Use PG_CODING to encapsulate coding system name changes.
10012 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10013 (pg-coding-system): Create.
10015 (Fpq_conn_defaults): Mule-ize.
10016 (Fpq_connectdb): Mule-ize & bug fix.
10017 (Fpq_connect_start): Mule-ize.
10018 (Fpq_set_client_encoding): Mule-ize.
10019 (Fpq_finish): Document `DEAD' connection status.
10020 (Fpq_clear): Ditto.
10021 (Fpq_pgconn): Mule-ize.
10022 (Fpq_exec): Mule-ize & bug fix.
10023 (Fpq_send_query): Ditto.
10024 (Fpq_get_result): Ditto.
10025 (Fpq_res_status): Mule-ize.
10026 (Fpq_result_error_message): Mule-ize.
10027 (Fpq_ntuples): fix comments.
10028 (Fpq_fname): Mule-ize.
10029 (Fpq_fnumber): Mule-ize.
10030 (Fpq_ftype): fix comments.
10031 (Fpq_get_value): Mule-ize.
10032 (Fpq_cmd_status): Ditto.
10033 (Fpq_cmd_tuples): Ditto.
10034 (Fpq_oid_value): Ditto.
10035 (Fpq_notifies): Ditto.
10036 (Fpq_lo_import): Ditto.
10037 (Fpq_lo_export): Ditto.
10038 (Fpq_get_line): Ditto.
10039 (Fpq_put_line): Mule-ize and bug fix.
10040 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10042 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10044 * postgresql.c (vars_of_postgresql): Mule-ize.
10045 (Fpq_conn_defaults): Ditto.
10047 2000-03-12 Ben Wing <ben@xemacs.org>
10049 * alloc.c (Fmake_byte_code):
10050 * alloc.c (debug_string_purity_print):
10051 * alloc.c (pdump_backtrace):
10052 * alloc.c (pdump_get_indirect_count):
10053 * alloc.c (pdump_register_sub):
10054 * alloc.c (pdump_register_object):
10055 * alloc.c (pdump_register_struct):
10056 * alloc.c (pdump_dump_data):
10057 * alloc.c (pdump_reloc_one):
10061 * console-msw.c (GetConsoleHwnd):
10062 * console-msw.c (msw_hide_console):
10063 * console-msw.c (msw_show_console):
10064 * console-msw.c (msw_ensure_console_buffered):
10065 * console-msw.c (msw_output_console_string):
10066 * console-msw.c (console_type_create_mswindows):
10068 a) Added functions to manipulate the console window for use with
10071 b) Added support for writing text to the console, which is now
10072 used under Windows when xemacs is not being run non-interactively,
10073 to write text that would otherwise be destined for stdout because
10074 under these circumstances, text written to stdout tends to
10075 disappear and not be seen.
10079 * event-Xt.c (x_event_to_emacs_event):
10080 * event-Xt.c (describe_event_window):
10081 * events-mod.h (XEMACS_MOD_CONTROL):
10083 * events.c (Fmake_event):
10084 * events.c (character_to_event):
10085 * events.c (event_to_character):
10086 * events.c (format_event_object):
10087 * events.c (Fevent_modifiers):
10089 * events.h (struct key_data):
10090 * events.h (struct button_data):
10091 * events.h (struct misc_user_data):
10092 * frame-x.c (Fcde_start_drag_internal):
10093 * frame-x.c (Foffix_start_drag_internal):
10094 * gpmevent.c (Freceive_gpm_event):
10096 * keymap.c (bucky_sym_to_bucky_bit):
10097 * keymap.c (control_meta_superify):
10098 * keymap.c (make_key_description):
10099 * keymap.c (keymap_lookup_directly):
10100 * keymap.c (create_bucky_submap):
10101 * keymap.c (keymap_store):
10102 * keymap.c (define_key_check_and_coerce_keysym):
10103 * keymap.c (define_key_parser):
10104 * keymap.c (define_key_alternate_name):
10105 * keymap.c (Fdefine_key):
10106 * keymap.c (raw_lookup_key_mapper):
10107 * keymap.c (struct map_keymap_unsorted_closure):
10108 * keymap.c (map_keymap_unsorted_mapper):
10109 * keymap.c (map_keymap_sort_predicate):
10110 * keymap.c (map_keymap_sorted):
10111 * keymap.c (accessible_keymaps_mapper_1):
10112 * keymap.c (where_is_recursive_mapper):
10113 * keymap.c (describe_map_mapper):
10114 * keymap.c (describe_map_sort_predicate):
10115 * keymap.c (describe_map):
10116 * keymap.c (complex_vars_of_keymap):
10117 And a number of other files, the key modifier preprocessor
10118 constants that xemacs uses have names that conflict with constants
10119 defined under MS Windows for other purposes, so they were renamed
10120 to begin with the prefix XEMACS_. The variables that hold such
10121 modifiers were changed to consistently be of type int to fix
10122 various compile warnings.
10124 * console.c (complex_vars_of_console):
10127 * device-msw.c (mswindows_finish_init_device):
10128 * device-msw.c (msw_get_workspace_coords):
10129 * device-msw.c (mswindows_device_system_metrics):
10130 and various other files, added support for a new
10131 device property called offset-workspace which returns the position
10132 of the upper left corner of the workspace area and goes along with
10133 the existing size-workspace property.
10136 * dialog-msw.c (push_bufbyte_string_as_unicode):
10137 * dialog-msw.c (mswindows_popup_dialog_box):
10138 Added support for XEmacs-style accelerator specifications in
10139 button text. Note: I didn't add support for this under X Windows,
10140 and somebody needs to do this.
10143 * dialog.c (Fpopup_dialog_box):
10144 Documented the support for accelerators that was just mentioned.
10146 editfns.c (get_home_directory): Changed behavior under Windows
10147 when HOME not defined; former behavior was irretrievably broken.
10150 * emacs.c (main_1):
10152 * minibuf.c (clear_echo_area_internal):
10153 * minibuf.c (echo_area_append):
10155 * print.c (std_handle_out_external):
10156 * print.c (std_handle_out_va):
10158 * print.c (write_string_to_stdio_stream):
10159 * print.c (output_string):
10160 * print.c (debug_print):
10161 * print.c (debug_backtrace):
10162 * print.c (debug_short_backtrace):
10163 Cleaned up the code that prints text to stdout so that this can be
10164 changed to output into a console window instead under MS Windows,
10165 as described above.
10168 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10169 * eval.c (internal_catch):
10170 * eval.c (unwind_to_catch):
10171 * eval.c (throw_or_bomb_out):
10172 * eval.c (condition_case_1):
10173 * eval.c (signal_1):
10174 * eval.c (check_error_state_sanity):
10175 * eval.c (call_with_suspended_errors_1):
10176 * eval.c (call_with_suspended_errors):
10177 * eval.c (reinit_vars_of_eval):
10178 Added code to catch throw loops and check for a pesky bug that may
10182 * event-msw.c (key_needs_default_processing_p):
10183 * event-msw.c (mswindows_wnd_proc):
10184 * event-msw.c (mswindows_modifier_state):
10185 * event-msw.c (emacs_mswindows_quit_p):
10186 * event-msw.c (vars_of_event_mswindows):
10187 a) Added support for using the alt key to select menu items as is
10188 standard under MS Windows. This is controlled using the variable
10189 menu-accelerator-enabled, just like under X Windows. There is an
10190 option on the options menu to turn this support on. I really
10191 think that it should be on by default under Windows, but I'm not
10192 going to make this change yet.
10194 b) Added support for dynamic display size changes under Windows.
10197 * event-stream.c (maybe_echo_keys):
10198 * event-stream.c (Fnext_event):
10199 * event-stream.c (command_builder_find_leaf):
10200 * event-stream.c (lookup_command_event):
10201 * event-stream.c (execute_command_event):
10202 * event-stream.c (pre_command_hook):
10203 * event-stream.c (post_command_hook):
10204 * event-stream.c (syms_of_event_stream):
10205 * event-stream.c (vars_of_event_stream):
10206 * event-stream.c (complex_vars_of_event_stream):
10207 * events.h (struct command_builder):
10209 a) Tried to clean up a little bit the horribly written x-specific
10210 accelerator code that crept into this file. I moved this code
10211 into menubar-x.c where it belongs. I also needed to move the
10212 command builder structure into the file events.h because it is
10213 accessed directly by this accelerator code. What I didn't do, but
10214 which should be done at some point, is to properly abstract this
10215 code using device methods instead of the kludgy way that it
10216 currently hooks into the event code.
10218 b) Added the lisp variables this-command-properties and
10219 last-command- properties, which should be used to synchronize two
10220 adjacent commands in preference to playing games with the variable
10221 this-command, which is typically what happens.
10223 c) Added some slightly nasty code to hook into the lisp support
10224 for shifted- motion-key selection. This is actually necessary for
10225 somewhat complicated reasons, which are described in
10226 simple.el. (NB: I think the proper thing would be to have the code
10227 that calls the pre and post command hooks also call out to generic
10228 lisp functions in simple.el, where all built-in stuff could be
10229 added. I will think about this more.)
10231 * event-unixoid.c (poll_fds_for_input):
10232 * lread.c (readchar):
10233 * redisplay-tty.c (tty_clear_frame):
10234 * redisplay-x.c (x_get_gc):
10235 * signal.c (interrupt_signal):
10236 And a whole bunch of other files: fixed up places that printed
10237 directly to stderr to instead call the function stderr_out so that
10238 the changes I made under Windows work correctly.
10240 * filemode.c (mode_string):
10244 * frame-msw.c (mswindows_size_frame_internal):
10245 Fixed the computation of frame size and position to keep the frame
10246 within the workspace area, rather than within the physical
10247 dimensions of the screen, so that the frame doesn't overlap window
10248 manager decorations, such as the start menu and toolbar, typically
10249 at the bottom of the screen.
10251 * frame.c (vars_of_frame):
10252 Changed the default frame title format under MS Windows to consist
10253 of buffername-XEmacs, which is standard under MS Windows. I think
10254 it might be a good idea to change this everywhere because I think
10255 it is superior to the current frame title format, but this is the
10256 kind of change that is likely to cause some people to get annoyed,
10257 so I'm not making it.
10259 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10261 * gui-msw.c (mswindows_handle_gui_wm_command):
10262 Fixed compile warnings.
10265 * gui-x.c (strdup_and_add_accel):
10266 * gui-x.c (button_item_to_widget_value):
10268 Added code to automatically put an accelerator onto the beginning
10269 of menu items that don't have one as is now the standard, and is
10270 described more later. Also fixed things so that the menu item
10271 name can be an evaluated expression, again a new standard.
10274 * gui.c (gui_item_add_keyval_pair):
10275 * gui.c (make_gui_item_from_keywords_internal):
10276 * gui.c (gui_add_item_keywords_to_plist):
10277 * gui.c (gui_item_accelerator):
10278 * gui.c (gui_name_accelerator):
10279 * gui.c (gui_item_included_p):
10280 * gui.c (gui_item_display_flush_left):
10281 * gui.c (gui_item_display_flush_right):
10282 * gui.c (parse_gui_item_tree_item):
10283 * gui.c (parse_gui_item_tree_children):
10284 * gui.c (parse_gui_item_tree_list):
10285 Mule-ized. Cleanup. GCPRO addition.
10287 * line-number.c (buffer_line_number):
10289 * lisp.h (EMACS_INT_MAX):
10290 Added the manifest constant EMACS_INT_MIN corresponding to the
10291 existing constant EMACS_INT_MAX. This is partially to fix compile
10292 warnings under Windows, and partly for cleanliness.
10295 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10296 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10297 * menubar-msw.c (displayable_menu_item):
10298 * menubar-msw.c (populate_menu_add_item):
10299 * menubar-msw.c (populate_or_checksum_helper):
10300 * menubar-msw.c (populate_menu):
10301 * menubar-msw.c (update_frame_menubar_maybe):
10302 * menubar-msw.c (prune_menubar):
10303 * menubar-msw.c (msw_char_is_accelerator):
10304 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10305 * menubar-msw.c (mswindows_handle_wm_command):
10306 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10307 * menubar-msw.c (mswindows_handle_wm_initmenu):
10308 * menubar-msw.c (mswindows_update_frame_menubars):
10309 * menubar-msw.c (mswindows_free_frame_menubars):
10310 * menubar-msw.c (mswindows_popup_menu):
10311 Fixed a bug in handling accelerators where an extra character
10312 would be displayed in the menu item. Also generalized the
10313 function displayable_menu_item because it is now used by the
10314 dialog box code as well. And finally, added code in the functions
10315 that create the menubar to extract a list of accelerators for the
10316 top level menubar, which is used in the event code to determine
10317 whether a particular alt-key combination should be used to invoke
10318 a menu item, or should be passed through to access the standard
10319 XEmacs keymap binding for this key combination.
10321 Much needed GCPROing.
10324 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10325 * menubar-x.c (menu_item_descriptor_to_widget_value):
10326 * menubar-x.c (restore_in_menu_callback):
10327 * menubar-x.c (x_popup_menu):
10328 * menubar-x.c (menu_move_up):
10329 * menubar-x.c (menu_move_down):
10330 * menubar-x.c (menu_move_left):
10331 * menubar-x.c (menu_move_right):
10332 * menubar-x.c (menu_select_item):
10333 * menubar-x.c (command_builder_operate_menu_accelerator):
10334 * menubar-x.c (menu_accelerator_junk_on_error):
10335 * menubar-x.c (command_builder_find_menu_accelerator):
10336 * menubar-x.c (Faccelerate_menu):
10338 Moved a whole bunch of code here that was previously in
10339 event-stream.c as described above. There is also code connected
10340 to the new standard of adding an accelerator to the beginning of
10341 menu items that don't have one as described above and below.
10344 * menubar.c (menu_parse_submenu_keywords):
10345 * menubar.c (Fmenu_find_real_submenu):
10346 * menubar.c (Fnormalize_menu_item_name):
10347 * menubar.c (syms_of_menubar):
10348 * menubar.c (vars_of_menubar):
10349 * menubar.c (complex_vars_of_menubar):
10351 a) Cleaned up a bunch of documentation and improved it.
10353 b) XEmacs now automatically adds an accelerator onto the beginning
10354 of any menu items that don't have one. I did this because there
10355 will inevitably be some menu items on the main menubar that don't
10356 have accelerators on them because the package that adds that
10357 particular menu item hasn't yet been fixed up to have accelerators
10358 in them and it looked rather strange to have some items with and
10359 some items without accelerators, especially since even in items
10360 without accelerators, you can, at least under windows, still
10361 access the item through an accelerator corresponding to the first
10362 character in the item's name. If people don't like this behavior,
10363 I can add a variable to turn it off optionally, but I'm not sure
10364 this is a good idea because we really do need to have accelerators
10365 on all of the menu items, and if a package doesn't like the
10366 accelerators being put on the first character, then it should put
10367 the accelerators where they belong.
10369 c) I made a behavior change, which is that the descriptor that
10370 specifies the text of the menu item, which formerly was just a
10371 string, can now also be an evaluated expression. This makes this
10372 descriptor parallel with all of the others, which could also be
10373 evaluated expressions. This also obviates the need for the
10374 keyword :label, which was previously listed in the documentation
10375 as unimplemented, and which was for the same purpose.
10380 * ntproc.c (new_child):
10381 * ntproc.c (sys_spawnve):
10382 * ntproc.c (find_child_console):
10383 * ntproc.c (sys_kill):
10384 Fixed compile warnings. By the way, this file should really go
10385 away entirely, and this will happen as soon as Kirill makes his
10386 final round of process cleanups, which affect the function
10390 * process-nt.c (struct nt_process_data):
10391 * process-nt.c (find_process_from_pid):
10392 * process-nt.c (send_signal_the_nt_way):
10393 * process-nt.c (enable_child_signals):
10394 * process-nt.c (find_child_console):
10395 * process-nt.c (send_signal_the_95_way):
10396 * process-nt.c (nt_finalize_process_data):
10397 * process-nt.c (ensure_console_window_exists):
10398 * process-nt.c (nt_create_process):
10399 * process-nt.c (nt_kill_child_process):
10400 * process-nt.c (nt_kill_process_by_pid):
10401 * process-nt.c (nt_open_network_stream):
10402 * process-nt.c (vars_of_process_nt):
10403 Copied over code from Emacs 20.5 to correctly send signals to sub-
10404 processes under Windows 95. Also added code to automatically
10405 create and hide console window when a sub-process is created under
10406 Windows 95, which obviates the need for the separate runemacs.exe
10407 executable, and finally implemented some variables that were
10408 implemented in Emacs 20.5, but previously not in XEmacs. These
10409 include mswindows- start-process-share-console and
10410 mswindows-start-process-inherit-error-mode. (Both of these only
10411 apply to Windows 95.)
10413 * regex.c (regex_compile): Fixed a compile warning.
10416 * select-msw.c (mswindows_own_selection):
10417 * select-msw.c (mswindows_get_foreign_selection):
10418 * select-msw.c (mswindows_disown_selection):
10419 * select-msw.c (console_type_create_select_mswindows):
10420 * select-msw.c (syms_of_select_mswindows):
10421 Cleaned up the file and implemented the device method
10422 selection_exists_p, which had accidentally been left out. Also
10423 removed four lisp functions that were remnants from before the
10424 time when the selection code was properly device abstracted.
10425 These functions are no longer needed because there are generic
10426 equivalents, and because they were added recently and don't exist
10427 in FSF Emacs, I don't think there's any problem with just deleting
10431 * sysdep.c (sys_subshell):
10432 Fixed a compile warning, although in this case there's probably
10433 something wrong with this code, and it ought to be looked into
10434 more thoroughly by somebody who understands it.
10437 * window.c (Fwindow_text_area_height):
10438 * window.c (Fwindow_width):
10439 * window.c (Fwindow_full_width):
10440 * window.c (Fwindow_pixel_width):
10441 * window.c (debug_print_window):
10442 * window.c (syms_of_window):
10443 Added functions window-text-area-height and window-full-width,
10444 which are functions for returning various width and height
10445 characteristics of a window. (One of these functions is necessary
10446 for making the file dialog box work correctly, and the other one
10447 was added for completeness.) Also added a table to the
10448 documentation for window-height which describes the entire scheme
10449 for accessing width and height characteristics of a window.
10451 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10453 * nt.c (fstat): Added a comment for another problem with
10454 non-encapsulated [f]stat(), reported by Adrian Aichner
10455 <aichner@ecf.teradyne.com>.
10457 2000-03-11 Andy Piper <andy@xemacs.org>
10459 * window.c (make_dummy_parent): initialize subwindow instance
10461 (Fset_window_configuration): zero extent_modiff.
10463 2000-03-10 Andy Piper <andy@xemacs.org>
10465 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10466 more changes can be triggered.
10467 (Fredisplay_frame): ditto.
10468 (Fredraw_device): ditto.
10469 (Fredisplay_device): ditto.
10470 (redisplay_frame): make non-static.
10471 (redisplay_frame): call update_frame_gutter_geometry outside of
10474 * gutter.h: declare update_frame_gutter_geometry.
10476 * redisplay.h: declare redisplay_frame.
10478 * gutter.c (update_frame_gutter_geometry): move geometry changes
10479 in update_frame_gutters here. Geometry changes can only occur
10480 outside of redisplay.
10481 (update_frame_gutters): remove geometry change code.
10482 (Fredisplay_gutter_area): make sure that we are in display when we
10483 update and that we have flushed any size changes.
10485 2000-03-11 Andy Piper <andy@xemacs.org>
10487 * alloc.c (pdump_dump_data): remove i & count shadows.
10489 2000-02-27 Mike Alexander <mta@arbortext.com>
10491 * sysdep.h: Declare pdump_read_file
10493 * sysdep.c (pdump_read_file): New function
10495 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10498 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10500 * lrecord.h: add `lrecord_type_pgsetenv'.
10502 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10504 * symsinit.h: declare (vars|syms)_of* functions.
10505 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10507 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
10509 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10511 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10514 * emacs.c (main_1): Call postgres initialization code.
10516 * postgresql.h: New file. PostgreSQL RDBMS support.
10517 * postgresql.c: New file.
10519 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10521 * redisplay-output.c (redisplay_output_display_block): Disable
10524 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10526 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10527 (Fcanna_henkan_next): Ditto.
10528 (Fcanna_bunsetu_henkou): Ditto.
10529 (Fcanna_henkan_kakutei): Ditto.
10530 (Fcanna_henkan_end): Ditto.
10531 (Fcanna_henkan_quit): Ditto.
10532 (Fcanna_henkan_next): Set retun value correctly.
10533 (c2mu): Use unsigned char instead of signed char.
10535 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10537 * emacs.c (main_1): Always call syms_of_gui.
10538 * inline.c: include gui.h
10540 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10542 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10543 converted to Lisp_Object.
10544 (Qtop_bottom): New variable.
10545 (syms_of_redisplay): Initialize it.
10546 * redisplay.h (Vvisible_bell): Ditto.
10547 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10548 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10549 only flash top and bottom.
10551 2000-03-08 Andy Piper <andy@xemacs.org>
10553 * buffer.c (Frename_buffer): record new buffer name the right way.
10555 2000-03-08 Andy Piper <andy@xemacs.org>
10557 * glyphs.c (update_subwindow): increase hash depth so that widget
10558 items get picked up properly.
10560 * redisplay-output.c (compare_runes): increase hash depth so that
10561 widget items get picked up properly.
10563 2000-03-08 Andy Piper <andy@xemacs.org>
10565 * gutter.c (output_gutter): add some debug.
10567 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10568 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10569 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10571 * redisplay-output.c (compare_runes): use display_hash to
10572 determine if glyphs really are not the same.
10574 * glyphs.c (update_subwindow): check display_hash to see if
10575 anything really needs to be updated. If not then do
10576 nothing. Record the display_hash after updating.
10577 (image_instance_equal): compare the image_instance face also.
10579 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
10581 * redisplay.h: Fix comment style.
10583 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
10585 * consle-msw.h (struct mswindows_frame):
10586 Added new member paint_pending to indicate whether a WM_PAINT
10587 magic event has been queued for this frame.
10589 * event-msw.c (mswindows_drain_windows_queue):
10590 Don't queue a WM_PAINT magic event if one is already queued.
10591 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10593 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10595 2000-03-07 Didier Verna <didier@xemacs.org>
10597 * dired.c: #include `regex.h' after `sysfile.h'.
10599 2000-03-06 Martin Buchholz <martin@xemacs.org>
10601 * sound.c (init_nas_sound): Fix compiler warning.
10603 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10605 (MARK_STRUCT_AS_FREE):
10606 (MARK_STRUCT_AS_NOT_FREE):
10607 Make `gcc -fstrict-aliasing' work properly.
10609 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
10611 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10612 (mswindows_delete_device): Call CoUnnitialize().
10614 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10616 2000-02-25 <CraigL@DyCon.com>
10618 * process-nt.c: MinGW now has <shellapi.h>, but still needs
10621 * sysdep.c: This extern declaration for environ prevents MinGW
10622 from finding the variable in CRTDLL.DLL.
10624 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10626 (SHGFI_EXETYPE): ..
10627 (WM_MOUSEWHEEL): ..
10628 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10630 (MMRESULT): Removed, now defined in cygwin's windows headers.
10632 (uid_t,gid_t,pid_t,ssize_t): ..
10633 (_timeb): Removed, MinGW defines both _timeb and timeb.
10634 (HAVE_H_ERRNO): Added.
10635 (HAVE_TZNAME): Added, configure is not detecting this.
10637 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
10639 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10640 * syntax.c (syntax_match): Use it.
10642 * cmds.c: Import auto-fill-chars from FSF Emacs.
10643 (Vauto_fill_chars): New variables.
10644 (internal_self_insert): Check Vauto_fill_chars.
10646 Declare auto-fill-chars as a Lisp variable and initialize it.
10648 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10650 * fileio.c (Fmake_symbolic_link):
10652 Run handlers even if local machine doesn't have symlinks.
10654 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10656 * event-msw.c (mswindows_drain_windows_queue):
10657 Don't generate paint magic events for non-XEmacs frames.
10659 2000-03-05 Andy Piper <andy@xemacs.org>
10661 * redisplay.c (redisplay_frame): generate_displayable_area and
10662 friends assumes that we are not in GC, we therefore have to make
10663 sure that this doesn't happen.
10665 * gutter.c (calculate_gutter_size): generate_displayable_area
10666 assumes that we are not in GC, we therefore have to make sure that
10667 this doesn't happen.
10669 2000-03-05 Martin Buchholz <martin@xemacs.org>
10671 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10673 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10675 * redisplay.c (regenerate_window): Make sure we set a sane value
10676 for end_pos even if we jump out of the loop.
10677 (regenerate_window): Answer Ben's question :-).
10678 (start_end_of_last_line): Add may_error argument.
10679 (start_of_last_line):
10680 (end_of_last_line): Pass may_error = 0.
10681 (end_of_last_line_may_error): New function.
10682 (pixel_to_glyph_translation): Use it, so we don't crash in
10685 2000-03-04 Andy Piper <andy@xemacs.org>
10687 * window.h (struct window): add gutter_extent_modiff.
10689 * window.c (allocate_window): zero out gutter_extent_modiff.
10691 * redisplay.h: declare sync_display_line_structs.
10693 * redisplay.c (add_glyph_rune): add a better comment.
10695 * redisplay-output.c (sync_display_line_structs): made non-static.
10696 (compare_runes): remove unneccesary glyph cachel access.
10698 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10700 * gutter.c (output_gutter): don't output the gutter if extent
10701 changes only involve extents in buffers. use 4 sets of display
10703 (gutter_extent_signal_changed_region_maybe): new function. Mark
10704 extents in gutters as changed.
10705 (update_frame_gutters): use 4 sets of display lines.
10706 (reset_gutter_display_lines): ditto.
10707 (free_frame_gutters): ditto.
10708 (redraw_exposed_gutter): force output of gutters.
10710 * frame.h (struct frame): add 4 sets of gutter display lines.
10712 * extents.c: (extent_changed_for_redisplay): signal changes to
10713 extents in strings in the gutter as well as extents in buffers.
10715 2000-03-02 Andy Piper <andy@xemacs.org>
10717 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10719 * frame.c (Fmake_frame): make sure the gutters get initialized
10720 after the frame is visible.
10721 (set_frame_selected_window): re-arrange compilation macros a
10723 (change_frame_size_1): mark gutters changed.
10725 * device.c (Fset_device_class): mark gutters changed.
10727 2000-03-01 Andy Piper <andy@xemacs.org>
10729 * window.c (window_top_frame_gutter_height): deleted.
10730 (window_bottom_frame_gutter_height): ditto.
10731 (window_left_frame_gutter_height): ditto.
10732 (window_right_frame_gutter_height): ditto.
10733 (window_top_gutter_height): don't use them.
10734 (window_bottom_gutter_height): ditto.
10735 (window_left_gutter_width): ditto.
10736 (window_right_gutter_width): ditto.
10737 (Fsplit_window): ditto.
10738 (Fwindow_pixel_edges): don't use border dimensions here.
10740 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10741 (update_scrollbar_instance): ditto.
10743 * redisplay.c (generate_modeline): don't take gutters into account.
10744 (generate_modeline): ditto.
10745 (redisplay_frame): small gutter display optimization.
10747 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10749 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10750 gutters into account.
10752 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10753 for window position and type.
10755 * gutter.c (get_gutter_coords): fix for frame gutters.
10756 (update_frame_gutters): update frame geometry if the gutters have
10758 (init_frame_gutters): record current gutter geometries.
10760 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10762 (mswindows_widget_instantiate): ditto.
10764 * frame.h (struct frame): add current_gutter_bounds.
10766 * frame.c (change_frame_size_1): position window and minibuffer
10767 appropriately taking into account the frame gutters.
10769 * frame-x.c: (x_initialize_frame_size): take into account the
10772 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10774 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
10776 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10778 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10780 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10782 * file-coding.c (reset_decoding_stream): Clear previous
10783 detection state when autodetect.
10785 2000-02-29 Didier Verna <didier@xemacs.org>
10787 * extents.c (set_extent_glyph_1): don't require extents to be
10790 2000-02-27 Andy Piper <andy@xemacs.org>
10792 * gutter.c (Fset_default_gutter_position): don't default left and
10793 right gutter visibility to t.
10794 (Fset_default_gutter_position): run
10795 default-gutter-position-changed-hook.
10796 (syms_of_gutter): add default-gutter-position-changed-hook.
10798 2000-02-26 Andy Piper <andy@xemacs.org>
10800 * specifier.c (Fmake_specifier): add gutter references.
10802 * gutter.h (RAW_WINDOW_GUTTER): new macro.
10804 * lisp.h: declare Fvalid_plist_p.
10806 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10808 (default_gutter_visible_p_changed_in_window): invalidate gutter as
10809 well as its visibility so that it gets reconstructed.
10810 (construct_window_gutter_spec): new function. Construct a string
10811 to be displayed in the gutter from a plist of strings. Take care
10812 to only use elements that are declared as visible.
10813 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10815 (gutter_validate): allow plists of strings in the specifier.
10816 (gutter_specs_changed): construct the real_gutter from the gutter
10817 specs using construct_window_gutter_spec.
10818 (gutter_visible_validate): gutter-visible is a new specifier type.
10819 (Fgutter_visible_specifier_p): new function for the new specifier.
10820 (syms_of_gutter): declare gutter-visible and
10821 Fgutter_visible_specifier_p.
10822 (specifier_type_create_gutter): intitalize new gutter-visible
10824 (reinit_specifier_type_create_gutter): ditto.
10825 (specifier_vars_of_gutter): use new specifier type for gutter
10827 (init_frame_gutters): construct real_gutter correctly.
10828 (Fgutter_specifier_p): beef up documentation.
10829 (Fgutter_size_specifier_p): ditto.
10831 * winslots.h: add real_gutter slots.
10833 2000-02-25 Andy Piper <andy@xemacs.org>
10835 * device-msw.c: Be kind to older cygwin versions. From Raymond
10836 Toy <toy@rtp.ericsson.se>.
10838 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10839 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10841 2000-02-25 Martin Buchholz <martin@xemacs.org>
10843 * elhash.c (MARK_OBJ): Practice macro hygiene.
10845 2000-02-24 Martin Buchholz <martin@xemacs.org>
10847 * miscplay.c: s/__inline__/inline/g;
10848 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10849 (get_device_compdc): INLINE ==> static inline
10850 * *.[ch]: Change INLINE to INLINE_HEADER globally.
10851 find -name '*.h' | \
10852 xargs global-replace \
10853 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10855 2000-02-25 Andy Piper <andy@xemacs.org>
10857 * window.c (window_top_frame_gutter_height): new function.
10858 (window_top_window_gutter_height): ditto.
10859 (window_top_gutter_height): use them.
10860 (window_bottom_frame_gutter_height): new function.
10861 (window_bottom_window_gutter_height): ditto.
10862 (window_bottom_gutter_height): use them.
10863 (window_left_window_gutter_width): new function.
10864 (window_left_frame_gutter_width): ditto.
10865 (window_left_gutter_width): use them.
10866 (window_right_window_gutter_width): new function.
10867 (window_right_frame_gutter_width): ditto.
10868 (window_right_gutter_width): use them.
10869 (window_pixel_height): new function. calulate window pixel height
10870 with frame gutter involvement.
10871 (Fsplit_window): calculate new sizes taking frame gutters into
10873 (window_char_height_to_pixel_height): don't include frame gutters.
10874 (window_char_height): use window_pixel_height.
10875 (window_pixheight): rename from window_pixel_height.
10876 (change_window_height): use it.
10877 (window_pixel_height_to_char_height): don't include frame gutters.
10878 (window_char_width_to_pixel_width): ditto.
10880 2000-02-25 Andy Piper <andy@xemacs.org>
10882 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10885 2000-02-24 Martin Buchholz <martin@xemacs.org>
10887 * alloc.c (staticpro):
10888 (staticpro_nodump):
10893 (compact_string_chars):
10894 (pdump_dump_wired):
10895 Convert: if (foo) abort(); ==> assert (! foo);
10897 * eldap.c (Fldap_search_basic):
10901 Fix compiler warnings, and possible crashes if (random) return
10902 value were to be used.
10904 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10906 * device-msw.c: Workaround ResetDC failure.
10908 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10909 applying a devmode.
10911 * redisplay-msw.c (get_frame_dc): Added start_page_p.
10912 (mswindows_text_width): Do not start printer page.
10914 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10916 * glyphs-msw.c: Added image methods to msprinter console and
10917 msprinter-specific image instantiation.
10919 2000-02-20 Mike Alexander <mta@arbortext.com>
10921 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10922 to avoid crashes when selection-sets-clipboard is on
10923 (mswindows_own_selection): ditto
10925 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10928 * redisplay-msw.c (get_frame_dc):
10929 (get_frame_compdc):
10931 * device-msw.c (mswindows_init_device):
10932 (mswindows_delete_device):
10933 (msprinter_init_device):
10934 (msprinter_delete_device):
10935 * frame-msw.c (mswindows_init_frame_1):
10936 (mswindows_delete_frame):
10937 (msprinter_init_frame_3):
10938 (msprinter_delete_frame): Move compatible DC to device object from
10939 frame object, for both mswindows and msprinter. Only one at a time
10940 is needed, it is a real waste to have one per frame!
10942 2000-02-23 Andy Piper <andy@xemacs.org>
10944 * glyphs.c: add dynamic width and height elements.
10945 (image_instance_equal): ditto.
10947 * glyphs-widget.c (widget_query_geometry): calculate width and
10948 height dynamically if required.
10949 (initialize_widget_image_instance): initialize dynamic dimensions.
10950 (widget_instantiate): pick-up dynamic dimensions.
10952 * glyphs.h (struct Lisp_Image_Instance): add width and height for
10953 dynamic determination. Add appropriate macros.
10955 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10957 (WINDOW_GUTTER_SIZE): ditto.
10958 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10960 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10962 (get_frame_dc): ditto.
10964 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10967 2000-02-23 Martin Buchholz <martin@xemacs.org>
10969 * XEmacs 21.2.31 is released.
10971 2000-02-22 Ben Wing <ben@xemacs.org>
10973 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10975 2000-02-22 Andy Piper <andy@xemacs.org>
10977 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10979 2000-02-21 Mike Sperber <mike@xemacs.org>
10983 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10986 2000-02-21 Mike Sperber <mike@xemacs.org>
10988 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10990 2000-02-21 Martin Buchholz <martin@xemacs.org>
10992 * XEmacs 21.2.30 is released.
10994 2000-02-20 Martin Buchholz <martin@xemacs.org>
10996 Performance hacking.
10998 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10999 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11000 * emacs.c (main_1):
11002 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11003 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11004 * symeval.h (DEFVAR_SYMVAL_FWD):
11005 * symbols.c (guts_of_unbound_marker):
11006 Make all c_readonly objects also lisp_readonly and marked for life.
11007 * lrecord.h (struct lrecord_implementation):
11008 Document flags better.
11009 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11010 * lrecord.h (DECLARE_LRECORD):
11011 * lrecord.h (XSETRECORD):
11012 * lrecord.h (RECORDP):
11013 * lrecord.h (RECORD_TYPEP):
11014 * lrecord.h (RECORD_MARKER): New.
11015 * lrecord.h (error_check_*):
11016 * lrecord.h (CONCHECK_NONRECORD):
11017 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11018 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11019 * lrecord.h (set_lheader_implementation):
11020 * lrecord.h (enum lrecord_type): New.
11021 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11022 * alloc.c (disksave_object_finalization_1):
11023 * alloc.c (mark_object):
11024 * alloc.c (lrecord_type_index):
11025 * alloc.c (tick_lcrecord_stats):
11026 * alloc.c (Fgarbage_collect):
11027 * alloc.c (init_alloc_once_early):
11028 * alloc.c (pdump_load):
11029 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11030 * alloc.c (lrecord_type_index): Delete.
11031 Make lisp object type indexes be constant.
11032 Makes (byte-compile) 5% faster.
11033 Put all marker functions into their own array.
11034 Makes (garbage-collect) 5% faster.
11035 Optimize SYMBOL_VALUE_MAGIC_P.
11036 Makes (byte-compile) 2-3% faster.
11037 * config.h.in (gc_checking_assert): New.
11038 * alloc.c: Use gc_checking_assert().
11039 * .dbxrc: Make compatible with new object type implementation.
11040 * .gdbinit: Make compatible with new object type implementation.
11041 * alloc.c: Delete all symbols defined only for debugging, such as
11042 Lisp_Type_Vector and lrecord_charset.
11044 2000-02-21 Andy Piper <andy@xemacs.org>
11046 * gui-msw.c (Fmswindows_shell_execute): fix file location
11049 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11050 unshowing so that set_window_buffer doesn't undo
11051 kill_buffer_hook's hard work.
11053 * glyphs-widget.c (tab_control_query_geometry): don't count the
11054 first item when calculating geometry.
11056 * glyphs.c (map_subwindow): remove redundant code.
11057 (update_frame_subwindows): be more circumspect about when to
11060 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11061 when items haven't changed. Update faces if faces have changed as
11062 well as just the widget face.
11063 (x_tab_control_update): Update faces if faces have changed as well
11064 as just the widget face.
11066 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11068 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11070 (build_syscolor_string): Use mswindows_color_to_string to try to
11072 (mswindows_device_system_metrics): Reverse the foreground and
11073 background colors so that they match the documentation.
11075 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11076 they match the default Windows palette.
11077 (mswindows_color_to_string): New function.
11079 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11081 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11083 2000-02-18 Olivier Galibert <galibert@pobox.com>
11085 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11086 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11088 * symbols.c (init_symbols_once_early): Removed obsolete
11089 DATA_SEG_BITS related kludge.
11090 (defvar_magic): Ditto.
11092 * malloc.c: Removed obsolete DATA_SEG_BITS
11094 * mem-limits.h: Ditto.
11096 * Makefile.in.in: Removed obsolete HAVE_SHM
11099 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11101 * device-msw.c (mswindows_delete_device): Free DDE string
11104 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11106 * keymap.c (get_keyelt):
11107 * unexnt.c (unexec):
11108 * vm-limit.c (memory_warnings):
11109 * ntheap.c (recreate_heap):
11110 * ntheap.h (UNINIT_PTR):
11111 * select-msw.c (Fmswindows_get_clipboard):
11112 (Fmswindows_set_clipboard):
11113 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11115 * menubar-msw.c (displayable_menu_item):
11117 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11118 * sysdep.c (sys_subshell):
11119 * process-nt.c (nt_create_process):
11120 * nt.c (normalize_filename):
11121 (dostounix_filename):
11122 (unixtodos_filename):
11123 * ntproc.c (win32_executable_type):
11124 * ntplay.c (play_sound_data_1):
11126 * editfns.c (get_home_directory):
11127 * event-msw.c (struct winsock_stream):
11128 (mswindows_dde_callback):
11129 * device-msw.c (msprinter_init_device):
11130 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11132 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11133 mswindows_clear_toolbar were swapped!
11135 * objects-msw.c:(colormap_t):
11137 * emacs.c (struct standard_args): Fixed const jumble.
11139 * glyphs-widget.c (update_widget): Fixed comparison notation.
11141 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11143 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11144 __declspec(noreturn) syntax.
11146 2000-02-19 Martin Buchholz <martin@xemacs.org>
11148 * eldap.c (Fldap_open):
11149 (Fldap_search_basic):
11152 Use new coding system conversion macros.
11154 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11156 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11158 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11160 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11161 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11163 * eldap.c (Qadd, Qreplace): New constant symbols
11164 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11165 interruptions by XEmacs signals
11166 Remove unnecessary calls to slow_down_interrupts and
11167 speed_up_interrupts
11168 (Fldap_search_basic): Renamed from Fldap_search_internal
11169 Added new optional parameter VERBOSE that triggers the
11170 display of progress messages
11171 Remove unnecessary calls to slow_down_interrupts and
11172 speed_up_interrupts
11173 LDAP result code analysis rewritten
11174 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11175 (syms_of_eldap): Define the new symbols and functions
11178 2000-02-17 Martin Buchholz <martin@xemacs.org>
11180 * realpath.c: Determine PATH_MAX maximally portably.
11182 * insdel.c (bytecount_to_charcount): Optimize.
11183 The function used to be optimized for entirely ASCII sequences.
11184 Now it is optimized for successive characters from the same
11185 charset. This also wins big for _mostly_ ASCII sequences.
11187 * fileio.c (Ffile_truename): convert return from realpath() using
11188 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11189 - Rewrite GCPROing slightly.
11191 * sysdep.c (sys_open): Do filename conversion, like all other
11192 sys_* functions. Fixes bug:
11193 (let ((file-name-coding-system 'iso-8859-2))
11194 (write-region x y latin2-name))
11195 ==> writes filename using internal encoding.
11197 2000-02-18 Martin Buchholz <martin@xemacs.org>
11199 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11200 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11201 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11202 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11203 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11204 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11205 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11206 (CONST_IF_NOT_DEBUG): Delete.
11207 * alloc.c (this_one_is_unmarkable): Delete.
11208 (mark_object): Don't check for this_one_is_unmarkable. Use the
11209 c_readonly flag instead.
11210 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11212 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11214 * event-msw.c (mswindows_drain_windows_queue):
11215 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11216 away redundant repaint events.
11218 2000-02-17 Andy Piper <andy@xemacs.org>
11220 * redisplay.h: declare mark_redisplay_structs.
11222 * redisplay.c (redisplay_window):
11223 (redisplay_frame): don't check subwindows_state_changed.
11224 (mark_redisplay): mark gutters here.
11226 * glyphs.c: (instantiate_image_instantiator): always layout if we
11227 haven't done so already.
11228 (allocate_image_instance): don't mark as dirty.
11229 (update_subwindow): bind inhibit_quit.
11231 * gutter.c (mark_gutters): new function.
11233 * glyphs-x.c (x_update_widget): Always resize to get round a
11236 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11237 breaking absolutely everything.
11239 * gutter.h: declare mark_gutters.
11241 2000-02-16 Martin Buchholz <martin@xemacs.org>
11243 * XEmacs 21.2.29 is released.
11245 2000-02-15 Olivier Galibert <galibert@pobox.com>
11247 * fns.c (size_bit_vector): Fix computation of the size.
11249 2000-02-15 Martin Buchholz <martin@xemacs.org>
11251 * *.[ch]: Change CONST to const globally.
11252 find -name '*.[ch]' | \
11253 xargs global-replace \
11254 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11255 - Remove vestigial references to CONST_IS_LOSING
11257 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11259 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11260 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11261 events instead of dispatching them directly.
11262 (mswindows_handle_paint): New function to do repainting.
11263 (mswindows_wnd_proc):
11264 (emacs_mswindows_handle_magic_event): Call above function.
11266 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11268 * objects-msw.c (mswindows_create_font_variant): Return the new
11270 (initialize_font_instance): Get font metrics from the underlined
11271 variant of the font to cope with the case where the underlined
11272 font has a bigger descent.
11274 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11276 * gui.c (gui_item_accelerator): Return the first underlined
11277 character in item name.
11279 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11281 * lisp.h: Added Qprinter.
11283 * general.c (syms_of_general): Initialized it.
11285 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11287 (get_frame_compdc): Made inline.
11289 * console.h (struct console_methods): Added eject_page method.
11291 * frame.h: Added FRAME_DISPLAY_P and friends.
11292 Aligned backslahes in many macros in more readable fashion.
11293 Added page_number to struct frame, and an accessor macro
11296 * defice.h: Added DEVICE_DISPLAY_P and friends.
11298 * device.c (Fdevice_printer_p): Used these.
11300 * frame.c (allocate_frame_core): Initialize page number.
11301 (Fprint_job_page_number):
11302 (Fprint_job_eject_page): Implemented.
11304 * frame-msw.c (msprinter_eject_page): Added method.
11305 (msprinter_start_page): Added.
11307 * window.c (Fwindow_truncated_p): Fixed docstring.
11308 (Fwindow_last_line_visible_height): Implemented.
11310 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11312 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11314 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11316 * syntax.c (scan_words): Always advance at least one character.
11318 2000-02-13 Andy Piper <andy@xemacs.org>
11320 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11321 to make sure the glyph is in the cachels.
11323 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11324 global image instance flag.
11325 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11326 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11328 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11329 (Fset_image_instance_property): mark layout as changed.
11330 (invalidate_glyph_geometry_maybe): mark layout as changed.
11331 (glyph_width): use new NEEDS_LAYOUT macro.
11332 (glyph_ascent): ditto.
11333 (glyph_descent): ditto.
11334 (glyph_height): ditto.
11335 (image_instance_layout): mark layout as clean after laying out.
11336 (update_subwindow): don't mark layout as clean here.
11338 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11339 should no longer be needed.
11341 * glyphs-x.c (x_update_widget): sanitize asserts.
11342 (x_finalize_image_instance): sanitize assignment to widgets.
11344 * glyphs-widget.c (widget_instantiate): don't need to clear the
11347 2000-02-13 Martin Buchholz <martin@xemacs.org>
11349 * sysdep.c (getcwd): Use standard prototype.
11350 * sysdep.h (getcwd): Use standard prototype.
11352 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11353 (sequence, start, end).
11354 Remove redundant type checking.
11355 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11356 view of `caller-protects') to avoid a crash where the real fix was
11359 2000-02-12 Martin Buchholz <martin@xemacs.org>
11361 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11363 * s/sol2.h: Remove feature macro initialization.
11365 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11366 (vector_hash): New. Code from internal_hash.
11368 Fix up allocation subsystem comments.
11370 * config.h.in: Add __EXTENSIONS__ for Solaris.
11372 * systime.h (EMACS_GETTIMEOFDAY): New.
11373 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11374 Remove Solaris-specific code.
11375 Use void* for the (ignored) second arg for gettimeofday().
11377 * elhash.c (hash_table_hash): Implement it, finally.
11378 * elhash.c: Use hashcode_t.
11380 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11381 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11383 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11384 * fns.c (size_bit_vector):
11385 * alloc.c (size_vector):
11386 (make_vector_internal):
11387 (make_bit_vector_internal):
11388 (sweep_bit_vectors_1):
11389 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11391 2000-02-10 Martin Buchholz <martin@xemacs.org>
11393 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11394 Include strings.h to avoid warnings for bzero and strcasecmp.
11396 2000-02-10 Olivier Galibert <galibert@pobox.com>
11398 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11399 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11401 * fns.c (size_bit_vector): New. Declare bit vectors as a
11404 2000-02-10 Olivier Galibert <galibert@pobox.com>
11406 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11407 use a value field instead.
11408 (symbol_value_forward_forward): Use value field.
11409 (DEFVAR_SYMVAL_FWD): Use value field.
11410 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11411 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11412 (DEFVAR_CONST_INT): Ditto.
11413 (DEFVAR_BOOL): Ditto.
11414 (DEFVAR_CONST_BOOL): Ditto.
11415 (DEFVAR_INT_MAGIC): Ditto.
11416 (DEFVAR_BOOL_MAGIC): Ditto.
11418 * symbols.c (guts_of_unbound_marker): Use value field.
11419 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11420 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11422 * lisp.h: Declare dumpopaque and noninteractive1.
11424 * alloc.c (dumpopaque): Added.
11425 (pdump_dump_opaquevec): Added.
11426 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11427 (pdump_load): Reload opaque data. Sync noninteractive1 with
11430 2000-02-10 Andy Piper <andy@xemacs.org>
11432 * glyphs.c (image_instance_layout): if the size changes, mark it
11435 * redisplay-output.c (redisplay_output_layout): Update the
11437 (redisplay_output_subwindow): ditto.
11439 * glyphs.c (update_subwindow): make sure we reset flags for
11440 layouts as well as everything else.
11442 * glyphs-widget.c (layout_layout): don't need to set the instances
11445 2000-02-09 Martin Buchholz <martin@xemacs.org>
11447 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11448 not HAVE_DLOPEN, which is a lower-level thing.
11450 * .cvsignore: Ignore gmon.out
11452 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11454 * .cvsignore: Ignore portable dumper xemacs.dmp file
11456 2000-02-09 Andy Piper <andy@xemacs.org>
11458 * redisplay-output.c (redisplay_output_layout): be more clever
11459 about when we output based on the changed flags.
11461 * glyphs.h (struct image_instantiator_methods): add update_method.
11462 (struct Lisp_Image_Instance): add changed flags. Declare new
11463 macros for manipulating them.
11465 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11466 (image_instance_parent_glyph): find an image_instance's parent
11467 glyph or image_instance.
11468 (image_instance_layout): mark the size as changed.
11469 (set_image_instance_dirty_p): new function. mark an image
11470 instance, plus all of its parents, as dirty.
11471 (Fset_image_instance_property): use it.
11472 (Fglyph_animated_timeout_handler): use it.
11473 (update_subwindow): call update_widget and device methods for
11474 update_subwindow. Mark all changed flags as clean.
11475 (Fresize_subwindow): mark size as changed.
11477 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11479 (x_update_subwindow): only resize subwindows here.
11480 (x_update_widget): new function. Update all changed properties of
11482 (x_resize_subwindow): deleted.
11483 (x_widget_set_property): deleted.
11484 (x_progress_gauge_set_property): deleted.
11485 (x_progress_gauge_update): new function. Implement recorded
11487 (x_tab_control_update): ditto.
11488 (x_tab_control_set_property): deleted.
11489 (console_type_create_glyphs_x): declare new functions.
11490 (image_instantiator_format_create_glyphs_x): ditto.
11492 * glyphs-widget.c (widget_set_property): mark text changed.
11493 (update_widget): new function. Update properties of a widget.
11494 (widget_instantiate): for layouts make sure we set their
11495 children's parent correctly.
11496 (tab_control_set_property): new function. Record changes that will
11497 take place under redisplay's control.
11498 (progress_gauge_set_property): ditto.
11499 (image_instantiator_progress_guage): declare new functions.
11500 (image_instantiator_tab_control): ditto.
11502 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11504 (mswindows_update_widget): new function. Update all properties on
11505 a widget that have changed.
11506 (mswindows_button_update): new function. Update a button's set
11508 (mswindows_tab_control_update): new function. Update the items in
11510 (mswindows_tab_control_set_property): deleted.
11511 (mswindows_progress_gauge_update): new function. Update the
11512 progress gauge's progress.
11513 (mswindows_widget_set_property): deleted. This is all done
11514 asynchronously now.
11515 (mswindows_progress_gauge_set_property): ditto.
11516 (console_type_create_glyphs_mswindows): declare new methods.
11517 (image_instantiator_format_create_glyphs_mswindows): ditto.
11519 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11520 (msprinter_set_frame_properties): ditto.
11522 * console.h (struct console_methods): Add update_widget_method.
11524 2000-02-09 Andy Piper <andy@xemacs.org>
11526 * gui-msw.c (Fmswindows_shell_execute): Make
11527 mswindows-shell-execute industrial strength.
11529 2000-02-08 Martin Buchholz <martin@xemacs.org>
11531 * lrecord.h: Make macro argument `props' match member function `plist'.
11534 * fns.c (Fremprop):
11535 * fns.c (Fobject_plist):
11538 Object property list frobbing cleanup.
11539 - Allow any lisp object (compared with `eq'), not just symbols, as
11540 keys in object plists.
11541 - Move symbol plist frobbing into symbols.c, where it belongs.
11542 - Move string plist frobbing into alloc.c, where it belongs.
11543 - Everything's an lrecord now, so no need to test for symbolp, etc.
11544 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11546 * extents.c: Reorder code to remove declarations.
11548 * frame.h (store_in_alist): Remove useless declaration.
11550 2000-02-07 Martin Buchholz <martin@xemacs.org>
11552 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11553 * config.h.in: Add HAVE_XCONVERTCASE.
11555 2000-02-07 Andy Piper <andy@xemacs.org>
11557 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11558 it breaks many things.
11560 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11562 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11563 actually can start a common comment type.
11564 * src/syntax.h (SYNTAX_END_P): ditto for end.
11566 2000-02-07 Martin Buchholz <martin@xemacs.org>
11568 * XEmacs 21.2.28 is released.
11570 2000-02-06 Martin Buchholz <martin@xemacs.org>
11572 * event-Xt.c (x_keysym_to_character): New.
11573 (maybe_define_x_key_as_self_inserting_character): New.
11574 (x_has_keysym): New.
11575 Auto-define all keys on the keyboard as self-insert-key.
11577 2000-02-02 Martin Buchholz <martin@xemacs.org>
11579 * menubar.c (vars_of_menubar): A small code simplification.
11581 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11584 * ExternalClient.c:
11585 * EmacsShell-sub.c:
11588 Use consistent style for specifying X resources.
11590 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11591 This makes (dontusethis-set-symbol-value-handler) actually usable.
11593 * lrecord.h (lrecord_decription_type):
11594 * alloc.c (pdump_register_sub):
11597 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11598 Comply with XEmacs coding style.
11599 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11600 args, and XD_LISP_OBJECT_ARRAY with 3 args.
11602 * keymap.c (Faccessible_keymaps):
11603 Make (accessible-keymaps map "\C-h") do the Right Thing.
11604 Make (accessible-keymaps map []) do the Right Thing.
11605 Make (accessible-keymaps map "") do the Right Thing.
11606 (check_keymap_definition_loop): New function.
11607 (keymap_store_internal): Keep luser from shooting self in foot,
11608 via (define-key ctl-x-4-map "p" global-map).
11609 Remove fullness slot from struct Lisp_Keymap, since hash tables
11611 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11613 2000-01-30 Martin Buchholz <martin@xemacs.org>
11615 * redisplay.c (init_redisplay): Fix small memory leak.
11617 * elhash.c (pdump_reorganize_hash_table):
11618 Rename from reorganize_hash_table. Change prototype.
11619 Reuse the original memory for hentries. Save 100k.
11620 * alloc.c (PDUMP_READ): new macro.
11621 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11622 * alloc.c: No need to #ifndef before #undef.
11624 * print.c: Allow debug_print() to print readably by modifying
11625 debug_print_readably. Use consistent variable names.
11627 * .dbxrc: Try to get things to work even if stopped in a function
11628 without source available by explicitly specifying source files.
11629 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11631 * unexnt.c (_start): Removed bogus code which caused loading heap
11632 from differrent executable file.
11633 Removed bogus assignment to _fmode, which caused inconsistencies.
11635 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11637 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11638 Have spawnve encapsulation regard DONT_ENCAPSULATE.
11639 Do not preliminary `#define signal sigset'.
11641 * systime.h: Do not prototype environ on windows nt and cygwin,
11642 this conflicts with system header.
11644 * syssignal.h: Use correct define for WINDOWSNT
11646 * sysdep.h: Do not prototype environ on windows nt, this conflicts
11647 with system header.
11649 * sysdep.c (near start of file): Fixed commentary and rearranged
11650 ifdefs in readable order.
11651 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11654 (end_of_data): Do not compile in if using PDUMP.
11656 * symsinit.h: Prototyped vars_of_nt().
11658 * ntproc.c (windows9x_p): Added, instead of os_subtype.
11659 (find_child_console): Use it.
11660 (sys_kill): Use it.
11662 * ntheap.h: Do not extern os_subtype.
11664 * ntheap.c (cache_system_info): Do not cache unneeded:
11665 nt_major_version, nt_minor_version and os_subtype.
11666 (recreate_heap): Do not compile in when PDUMPing.
11668 * nt.c (geteuid and friends): Use the new varibale
11669 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11670 (init_user_info): Removed the above mentioned hackery.
11671 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11672 stat has been fixed in the C runtime.
11673 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11675 * file-coding.c (struct file_coding_dump): Do not define
11676 ucs_to_mule_table in the struct if not MULE.
11677 (struct struct lrecord_description fcd_description_1): Do not dump
11680 * emacs.c (main_1): Call vars_of_nt().
11681 (right before Fdump_emacs_data): Don't need lastfile if using both
11682 portabe dumper and system malloc.
11684 * alloc.c (Fmemory_limit): Conditionalized out.
11685 (pdump): Use OPEN_BINARY for the portable dump file.
11686 (pdump_load): Ditto.
11688 2000-02-02 Mike Alexander <mta@arbortext.com>
11690 * nt.c (convert_time): Set tm_isdst before calling mktime and
11691 avoid calling it at all if the compiler supports 64 bit integers.
11692 Also initialize utc_base_ft before using it.
11694 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11696 * frame.c (change_frame_size_1): Take f->internal_border_width
11697 into consideration when calculating the width of the frame.
11699 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11701 * window.c (frame_min_height):
11702 (frame_size_valid_p):
11703 (frame_pixsize_valid_p): Added.
11704 (check_frame_size): Generalized.
11706 * window.h: Prototyped the above.
11709 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11710 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11711 Deleted Vwin32_* and Vbinary_process_* unused variables.
11713 * device-msw.c (msprinter_init_device): Do not get printer font
11714 list; Added DEVMODE functions.
11716 * frame-msw.c: Added lots of printer code.
11718 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11721 * console-msw.h: Added more msprinter device private slots.
11723 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11725 * event-msw.c (key_needs_default_processing_p): Added.
11726 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11728 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11730 * glyphs.c (image_instance_layout): Mark image instance as clean
11732 (glyph_dirty_p): Removed redundant function.
11733 (invalidate_glyph_geometry_maybe): Added.
11734 (update_glyph_cachel_data): Call it.
11736 * glyphs.h: Prototyped it.
11738 * redisplay.c (add_glyph_rune): Call it.
11739 (redisplay_window): Reset glyphs cachels when frame faces have
11740 changed, thus forcing recomputation of built-in border glyphs.
11742 2000-01-30 Martin Buchholz <martin@xemacs.org>
11744 * Makefile.in.in: Make portable dumper and purify play well together.
11745 Add imperfect, but better than nothing, support for pdump.
11746 Remove xemacs.dmp when temacs is re-generated.
11747 Don't ignore errors when dumping xemacs.
11749 * symbols.c (maybe_call_magic_handler): Remove one magic number.
11751 2000-01-28 Andy Piper <andy@xemacs.org>
11753 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11754 (setup_normal_frame): ditto.
11755 (setup_frame_without_minibuffer): ditto.
11756 (setup_minibuffer_frame): ditto.
11757 (delete_frame_internal): ditto.
11758 (Fmake_frame_invisible): ditto.
11759 (Ficonify_frame): ditto.
11761 * window.h: change Fset_window_buffer signature.
11763 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11764 (Fset_window_buffer): allow recording of buffer if the window is
11765 the selected window.
11766 (window_loop): Use new Fset_window signature.
11768 2000-01-23 Daniel Pittman <daniel@danann.net>
11770 * config.h.in: Added template for `HAVE_ATHENA_3D'
11772 2000-01-29 Andy Piper <andy@xemacs.org>
11774 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11776 * gutter.c (output_gutter): Don't output if the window isn't live.
11778 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11780 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11781 of 01/12/00: Moved SetFocus back here where it belongs.
11783 2000-01-23 Andy Piper <andy@xemacs.org>
11785 * s/cygwin32.h: declare printer things.
11787 2000-01-26 Andy Piper <andy@xemacs.org>
11789 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11792 2000-01-24 Andy Piper <andy@xemacs.org>
11794 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11795 (mswindows_button_instantiate): Make sure glyph is a pixmap.
11797 * glyphs-widget.c (widget_instantiate): Avoid shadows.
11799 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11801 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11803 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11804 (mswindows_output_display_block): Avoid local shadows.
11806 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11807 (mswindows_enqueue_mouse_button_event): ditto.
11808 (mswindows_handle_gui_wm_command): remove declaration.
11810 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11813 * console-msw.h: Avoid shadows.
11814 (mswindows_get_toolbar_button_text):
11815 (emacs_mswindows_create_stream_pair):
11816 (emacs_mswindows_delete_stream_pair):
11817 (mswindows_handle_toolbar_wm_command): declare.
11819 * device-msw.c (build_syscolor_string): Avoid shadows.
11821 2000-01-23 Andy Piper <andy@xemacs.org>
11823 * glyphs-widget.c (widget_instantiate): reverse the items for
11824 layouts so that children are in the expected order.
11826 2000-01-28 Martin Buchholz <martin@xemacs.org>
11828 * ralloc.c: safe_bcopy ==> memmove
11829 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11830 * s/msdos.h: Remove BCOPY macros.
11831 * insdel.c (gap_right): Remove BCOPY conditional code.
11832 * insdel.c (gap_left): Remove BCOPY conditional code.
11833 XEmacs demands a working ANSI C compiler - hence memmove.
11835 * regex.c (regex_compile): Remove accidental use of trigraphs.
11837 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11839 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11842 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11844 * event-msw.c (mswindows_drain_windows_queue): Added the
11846 (mswindows_need_event): Commented the call to
11847 mswindows_drain_windows_queue().
11848 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11851 * console-msw.h: Moved a few function prototypes here from
11854 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11855 parameter from unsigned short to unsigned long.
11856 (Fmswindows_shell_execute): Added return value.
11858 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11860 * sysdep.c (init_system_name):
11861 process-unix.c (unix_canonicalized_host_name):
11862 Don't call freeaddrinfo() if getaddrinfo() fails.
11864 * process-unix.c (unix_open_unix_network_stream):
11865 Moved the code to get a port # into address loop.
11867 2000-01-27 Martin Buchholz <martin@xemacs.org>
11869 * buffer.c (reinit_vars_of_buffer):
11870 The right place to initialize conversion_in_dynarr and
11871 conversion_out_dynarr.
11873 * alloc.c (pdump): Use the real open() till sys_open() is functional.
11875 * process-unix.c (unix_canonicalize_host_name): Muleize.
11876 (unix_open_network_stream): Muleize.
11878 * buffer.h: Fix up prototypes for ralloc.c functions.
11880 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11881 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11882 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11883 instead of gethostbyname()
11884 * process-unix.c: In unix_canonicalize_host_name() and
11885 unix_open_network_stream(), add code to use getaddrinfo()
11886 instead of gethostbyname().
11888 2000-01-27 Daniel Pittman <daniel@danann.net>
11890 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11891 libs when built with flat Athena.
11893 2000-01-27 Martin Buchholz <martin@xemacs.org>
11895 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11896 Use coding standards for function prototypes.
11898 2000-01-25 Martin Buchholz <martin@xemacs.org>
11900 * dialog-msw.c (push_lisp_string_as_unicode):
11901 * doc.c (unparesseuxify_doc_string):
11902 * dired.c (Fuser_name_completion_1):
11903 * dired.c (Fuser_name_all_completions):
11904 * dired.c (free_user_cache):
11905 * dired.c (user_name_completion):
11906 * console-x.c (get_display_arg_connection):
11907 * minibuf.c (clear_echo_area_internal):
11908 * minibuf.c (echo_area_append):
11909 * eldap.c (Fldap_open):
11910 * eldap.c (Fldap_search_internal):
11911 * frame-x.c (x_set_frame_text_value):
11912 * frame-x.c (x_set_frame_properties):
11913 * frame-x.c (x_create_widgets):
11914 * redisplay-tty.c (term_get_fkeys_1):
11915 * objects-x.c (x_parse_nearest_color):
11916 * objects-x.c (x_valid_color_name_p):
11917 * objects-x.c (x_initialize_font_instance):
11918 * objects-x.c (x_list_fonts):
11919 * objects-x.c (x_find_charset_font):
11920 * tooltalk.c (Fadd_tooltalk_message_arg):
11921 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11922 * tooltalk.c (Fadd_tooltalk_pattern_arg):
11923 * process-unix.c (unix_create_process):
11924 * ntproc.c (sys_spawnve):
11925 * sound.c (Fplay_sound_file):
11926 * sound.c (Fplay_sound):
11927 * buffer.c (init_initial_directory):
11928 * buffer.c (init_buffer):
11929 * editfns.c (init_editfns):
11930 * editfns.c (Ftemp_directory):
11931 * editfns.c (Fuser_full_name):
11932 * editfns.c (uncache_home_directory):
11933 * editfns.c (get_home_directory):
11934 * editfns.c (Fuser_home_directory):
11935 * editfns.c (Fformat_time_string):
11936 * editfns.c (Fcurrent_time_string):
11937 * gui-x.c (button_item_to_widget_value):
11938 * database.c (Fopen_database):
11939 * event-Xt.c (x_to_emacs_keysym):
11940 * event-Xt.c (x_event_to_emacs_event):
11941 * event-Xt.c (describe_event_window):
11942 * event-msw.c (mswindows_wnd_proc):
11943 * glyphs-eimage.c (jpeg_instantiate):
11944 * glyphs-eimage.c (gif_instantiate):
11945 * glyphs-eimage.c (png_instantiate):
11946 * glyphs-eimage.c (tiff_instantiate):
11947 * glyphs-x.c (xbm_instantiate_1):
11948 * glyphs-x.c (x_xbm_instantiate):
11949 * glyphs-x.c (x_xface_instantiate):
11950 * glyphs-x.c (autodetect_instantiate):
11951 * glyphs-x.c (cursor_font_instantiate):
11952 * glyphs-x.c (x_widget_instantiate):
11953 * glyphs-x.c (x_widget_set_property):
11954 * glyphs-x.c (x_widget_property):
11955 * glyphs-x.c (BUILD_GLYPH_INST):
11956 * print.c (write_string_to_stdio_stream):
11957 * print.c (output_string):
11958 * print.c (Falternate_debugging_output):
11959 * print.c (Fexternal_debugging_output):
11960 * glyphs-msw.c (extract_xpm_color_names):
11961 * glyphs-msw.c (mswindows_xpm_instantiate):
11962 * glyphs-msw.c (bmp_instantiate):
11963 * glyphs-msw.c (resource_name_to_resource):
11964 * glyphs-msw.c (mswindows_resource_instantiate):
11965 * glyphs-msw.c (xbm_instantiate_1):
11966 * glyphs-msw.c (mswindows_xbm_instantiate):
11967 * glyphs-msw.c (mswindows_xface_instantiate):
11968 * glyphs-msw.c (mswindows_widget_instantiate):
11969 * glyphs-msw.c (add_tree_item):
11970 * glyphs-msw.c (add_tab_item):
11971 * glyphs-msw.c (mswindows_combo_box_instantiate):
11972 * glyphs-msw.c (mswindows_widget_property):
11973 * glyphs-msw.c (mswindows_combo_box_property):
11974 * glyphs-msw.c (mswindows_widget_set_property):
11975 * console.c (stuff_buffered_input):
11976 * objects-msw.c (mswindows_initialize_color_instance):
11977 * objects-msw.c (mswindows_valid_color_name_p):
11978 * objects-msw.c (mswindows_list_fonts):
11979 * objects-msw.c (mswindows_font_instance_truename):
11980 * bytecode.c (optimize_compiled_function):
11981 * select-x.c (symbol_to_x_atom):
11982 * select-x.c (x_atom_to_symbol):
11983 * select-x.c (hack_motif_clipboard_selection):
11984 * select-x.c (selection_data_to_lisp_data):
11985 * select-x.c (lisp_data_to_selection_data):
11986 * select-x.c (Fx_get_cutbuffer_internal):
11987 * select-x.c (Fx_store_cutbuffer_internal):
11988 * buffer.h (TO_EXTERNAL_FORMAT): New function.
11989 * buffer.h (TO_INTERNAL_FORMAT): New function.
11990 * emacs.c (make_arg_list_1):
11991 * emacs.c (make_argc_argv):
11992 * emacs.c (main_1):
11993 * emacs.c (Fdump_emacs):
11994 * emacs.c (split_string_by_emchar_1):
11999 * device-x.c (x_init_device):
12000 * device-x.c (Fx_valid_keysym_name_p):
12001 * device-x.c (Fx_get_font_path):
12002 * device-x.c (Fx_set_font_path):
12003 * glyphs.c (bitmap_to_lisp_data):
12004 * glyphs.c (pixmap_to_lisp_data):
12005 * alloc.c (make_ext_string): Use coding system arguments. Update
12007 * alloc.c (build_string):
12008 * callproc.c (child_setup):
12009 * callproc.c (init_callproc):
12010 * fileio.c (lisp_strerror):
12011 * fileio.c (directory_file_name):
12012 * fileio.c (Fexpand_file_name):
12013 * fileio.c (Ffile_truename):
12014 * fileio.c (Fsysnetunam):
12015 * fileio.c (Fdo_auto_save):
12016 * sysdep.c (sys_readdir):
12017 * tests.c: New file. Allow adding C tests.
12018 Replace GET_* macros with a more comprehensible and flexible
12019 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12021 Any coding system can be used to do format conversion.
12022 Eliminate enum external_data_format.
12023 Eliminate convert_to_external_format.
12024 Eliminate convert_to_internal_format.
12025 Make sure file-name, keyboard, terminal, and ctext are always
12026 defined as coding systems or aliases. Make
12027 file-name-coding-system, terminal-coding-system, and
12028 keyboard-coding-system magical variables that are equivalent to
12029 defining the corresponding coding system aliases.
12031 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12032 * file-coding.c (Fcoding_system_alias_p): New function.
12033 * file-coding.c (Fcoding_system_aliasee): New function.
12034 * file-coding.c (append_suffix_to_symbol): New function.
12035 * file-coding.c (dangling_coding_system_alias_p): New function.
12036 * file-coding.c (Ffind_coding_system):
12037 * file-coding.c (Fcopy_coding_system):
12038 * file-coding.c (encode_coding_no_conversion):
12039 * file-coding.c (syms_of_file_coding):
12040 * file-coding.c (vars_of_file_coding):
12041 Rewrite coding system alias code.
12042 Allow nested aliases, like symbolic links.
12043 Allow redefinition of coding system aliases.
12044 Prevent existence of dangling coding system aliases.
12046 * dired.c (Fuser_name_completion_1):
12047 * dired.c (Fuser_name_all_completions):
12048 A crash would happen if user did QUIT in the middle of building
12049 user_name_cache. Remove redundant code in mainline and unwind_protect.
12052 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12054 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12055 an unsigned char *. Update all callers.
12057 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12059 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12061 2000-01-25 Martin Buchholz <martin@xemacs.org>
12063 * elhash.c (hentry_description): Use more portable definition.
12064 (resize_hash_table): Initialize new hentries using
12065 xnew_array_and_zero, thereby simplifying the code.
12067 * mule-charset.c (make_charset): Make sure entire object is
12068 initialized, to avoid Purify warnings.
12070 * alloc.c (resize_string): Fix unlikely crash with big strings.
12072 2000-01-24 Martin Buchholz <martin@xemacs.org>
12074 * realpath.c (xrealpath):
12075 Don't call getwd().
12077 2000-01-25 Martin Buchholz <martin@xemacs.org>
12079 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12081 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12083 * unexelfsgi.c (unexec): Change the way we decide which segment
12084 should be extended.
12086 Assumption that .bss section should be outside the PT_LOADable
12087 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12088 it's present) is inside the 'data' segment. This would fail the
12089 test which was used to find a segment to grow and cover new
12090 heap. Instead of this assumption, I created another one - on IRIX
12091 the segment to grow should start below .bss and it's address
12092 should extent above the end of .bss. Once this segment is
12093 identified, it's grown to accommodate the new heap and new
12094 zero-length .bss section is added at the end of .data2.
12096 2000-01-25 Martin Buchholz <martin@xemacs.org>
12098 * eval.c (Feval): Wrong number of arguments should use original
12099 function, not the indirect_function version of it.
12101 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12103 * glyphs-x.c (x_button_instantiate): Don't add image if
12104 it is not a pixmap.
12105 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12108 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12110 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12112 (DEFVAR_INT_MAGIC): Ditto.
12113 (DEFVAR_BOOL_MAGIC): Ditto.
12114 * glyphs.h: Reindent backslash.
12116 2000-01-24 Martin Buchholz <martin@xemacs.org>
12118 * glyphs-widget.c (layout_query_geometry):
12119 (layout_layout): Use correct types for gheight, gwidth.
12121 2000-01-24 Martin Buchholz <martin@xemacs.org>
12123 * EmacsManager.c (QueryGeometry): Purified.
12125 2000-01-23 Martin Buchholz <martin@xemacs.org>
12127 * alloc.c (make_float): Make sure entire object is initialized, to
12128 avoid Purify warnings.
12129 (pdump_register_sub): Remove useless assignment.
12130 (pdump): Use xmalloc, not malloc.
12131 (pdump_load): Use xmalloc, not malloc.
12133 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12140 * sysdep.c: Removed redundant #include <windows.h>
12142 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12144 * frame.c (delete_frame_internal): Do not delete device when its
12145 implementation so declares.
12146 (delete_frame_internal): Set device selected frame to nil when
12147 last frame goes away.
12149 * device-msw.c (msprinter_device_system_metrics): Implemented.
12150 (mswindows_device_system_metrics): Added 'device-dpi property.
12152 * device.c: (Fdevice_printer_p): Added.
12153 Added 'offset-workspace device metric.
12155 * console.h (device_metrics): Declared DM_offset_workspace.
12157 2000-01-23 Martin Buchholz <martin@xemacs.org>
12159 * fileio.c (Ffile_truename): Remove pointless and confusing
12160 initialization of elen.
12162 * glyphs-widget.c: Compiler warning fixes.
12164 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12166 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12167 instead of a Lisp_Object as argument to make it consistent with
12168 the other LIVE_P macros.
12169 (CHECK_LIVE_PROCESS): New macro.
12171 * process.c: Declare Qprocess_live_p.
12172 (Fprocess_live_p): New function.
12173 (create_process): Use PROCESS_LIVE_P.
12174 (read_process_output): Ditto.
12175 (set_process_filter): Ditto.
12176 (Fdelete_process): Ditto.
12177 (kill_buffer_processes): Ditto
12178 (process_send_signal): Use CHECK_LIVE_PROCESS.
12179 (Fprocess_input_coding_system): Check whether process is still
12180 alive (fix PR#1061).
12181 (Fprocess_output_coding_system): Ditto.
12182 (Fprocess_coding_system): Ditto.
12183 (Fset_process_input_coding_system): Ditto.
12184 (Fset_process_output_coding_system): Ditto.
12186 2000-01-23 Andy Piper <andy@xemacs.org>
12188 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12191 * glyphs.c (mark_image_instance): take into account changed
12192 image_instance format.
12193 (image_instance_equal): ditto.
12194 (image_instance_hash): ditto.
12196 * glyphs-widget.c (widget_instantiate): Incorporate layout
12197 instantiation here. Delay layout of the layout until later.
12198 (layout_instantiate): deleted.
12199 (layout_query_geometry): new function. get the geometry of a
12201 (layout_layout): layout a layout dynamically.
12202 (image_instantiator_widget): New function - splitting up
12203 image_instantiator_format_create_glyphs_widget for netwinder
12205 (image_instantiator_buttons):
12206 (image_instantiator_edit_fields):
12207 (image_instantiator_combo_box):
12208 (image_instantiator_scrollbar):
12209 (image_instantiator_progress_guage):
12210 (image_instantiator_tree_view):
12211 (image_instantiator_tab_control):
12212 (image_instantiator_labels):
12213 (image_instantiator_layout): ditto.
12214 (image_instantiator_format_create_glyphs_widget): Call preceding
12217 2000-01-22 Martin Buchholz <martin@xemacs.org>
12219 * process.c (Fset_process_coding_system):
12220 * device-x.c (Fx_keysym_hash_table):
12223 * lstream.c (Lstream_write): Return documented value, not 0.
12225 * fileio.c (directory_file_name):
12226 (Fsubstitute_in_file_name):
12227 (Fsubstitute_insert_file_contents_internal):
12228 (Fwrite_region_internal):
12233 Remove vestigial APOLLO-conditional code.
12235 2000-01-21 Martin Buchholz <martin@xemacs.org>
12237 * getpagesize.h: Add guard macros.
12238 * libsst.h: Add guard macros.
12239 * libst.h: Add guard macros.
12240 * line-number.h: Add guard macros.
12241 * ndir.h: Add guard macros.
12242 * sysfloat.h: Add guard macros.
12243 * sysfile.h: Add guard macros.
12244 * sysproc.h: Add guard macros.
12245 * syswait.h: Add guard macros.
12246 * xintrinsic.h: Add guard macros.
12247 * xintrinsicp.h: Add guard macros.
12248 * xmmanager.h: Add guard macros.
12249 * xmmanagerp.h: Add guard macros.
12250 * xmprimitive.h: Add guard macros.
12251 * xmu.h: Add guard macros.
12252 * gpmevent.h: Add copyright statement. Add guard macros.
12253 * miscplay.h: Add guard macros.
12254 * *.h: Use consistent C-standards-approved guard macro names.
12256 * opaque.c (make_opaque): Switch parameter order.
12257 * opaque.h (make_opaque): Switch parameter order.
12258 Update all callers.
12259 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12261 * config.h.in (type_checking_assert): Added.
12262 (bufpos_checking_assert): Added.
12264 2000-01-21 Martin Buchholz <martin@xemacs.org>
12266 * alloc.c: Harmless pdump changes.
12268 - spell alignment correctly.
12269 * sysdep.c: Use countof()
12271 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12273 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12274 initially_selected_for_input() console method, default to 0.
12275 (semi_canonicalize_console_connection): Try to delegate to
12276 canonicalize_console_connection if no such console method.
12277 (canonicalize_console_connection): Vice versa.
12278 (print_console): Do not print nil connection.
12280 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12281 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12282 (XDEVIMPF_FRAMELESS_OK): Added.
12283 (CONSOLE_INHERITS_METHOD): Added.
12285 * console-msw.c (mswindows_canonicalize_console_connection):
12287 (mswindows_canonicalize_device_connection): Added.
12289 * console-msw.h (struct msprinter_device): Added this struct and
12291 (mswindows_device): Made fontlist a lisp object.
12293 * device.c (semi_canonicalize_device_connection): Try to delegate
12294 to canonicalize_device_connection if no such console method.
12295 (canonicalize_device_connection): Vice versa.
12296 (print_device): Do not print nil connection.
12298 * device-msw.c (mswindows_init_device): Call InitCommonControls
12300 (mswindows_delete_device): Removed fontlist deallocation.
12301 (mswindows_mark_device): Added.
12303 * events.c (event_equal): Added abort() at unreached code.
12304 (event_hash): Ditto.
12306 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12307 fallback tags of Windows devices.
12309 * general.c (syms_of_general): Initialized Qmsprinter.
12311 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12312 of fallback tags of Windows devices.
12314 * lisp.h: Declared Qmsprinter.
12316 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12318 (mswindows_list_fonts): Ditto.
12319 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12320 that it can be used by both mswindows and msprinter devices.
12321 (initialize_font_instance): Added.
12322 (mswindows_initialize_font_instance): Use it.
12323 (msprinter_initialize_font_instance): Added.
12325 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12326 and implementation flags check.
12327 (redisplay_without_hooks): Changed the call to the above.
12328 (Fredraw_device): Ditto.
12329 (Fredisplay_device): Ditto.
12331 * redisplay-msw.c (get_frame_dc): Implemented.
12332 (get_frame_compdc): Implemented.
12333 (many functions): Use the two functions above to get device
12334 contexts, ether for a window or a printer.
12336 2000-01-21 Olivier Galibert <galibert@pobox.com>
12338 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12339 initialization here.
12340 (init_symbols_once_early): Call it.
12341 * emacs.c (main_1): Call it.
12342 * symsinit.h: Declare it.
12344 2000-01-19 Olivier Galibert <galibert@pobox.com>
12346 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12348 (pdump_backtrace): Ditto.
12349 (pdump_register_object): Ditto. Cleanup use of the pointers.
12350 (pdump_get_entry): Abort if trying to register a null pointer.
12351 (pdump_dump_data): Cleanup types when relocating.
12352 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12353 (pdump_dump_rtables): Remove bad casts.
12354 (pdump_load): Cleanup relocation w.r.t union type. Use a
12355 Lisp_Object instead of a EMACS_INT for the hashtable
12358 2000-01-20 Martin Buchholz <martin@xemacs.org>
12360 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12362 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12364 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12366 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12368 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12370 * faces.h (FACE_STRIKETHRU_P): Added.
12372 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12375 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12376 (mswindows_set_dc_font): New function, aware of font variants,
12377 separated from mswindows_update_dc.
12379 * objects-msw.h (struct mswindows_font_instance_data): Added
12382 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12383 cached fonts and the data structure.
12384 (mswindows_initialize_font_instance): Added creation of font data
12386 (mswindows_print_font_instance): Print at least something.
12387 (mswindows_create_font_variant): Implemented.
12388 (mswindows_get_hfont): Implemented.
12390 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12392 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12393 prototyping problem with msvc.
12395 * emacs.c (main_1): added syms_of_gui_mswindows() call
12397 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12398 syms_of_gui_mswindows() function
12400 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12402 2000-01-18 Martin Buchholz <martin@xemacs.org>
12404 * XEmacs 21.2.27 is released.
12406 2000-01-18 Martin Buchholz <martin@xemacs.org>
12408 * glyphs-eimage.c (struct tiff_error_struct):
12410 (tiff_warning_func):
12411 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12416 * unexec.c: Remove vestigial Lucid C code.
12420 * libsst.c: Ansify.
12421 Remove declarations of errno and strerror().
12423 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12425 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12427 2000-01-16 Martin Buchholz <martin@xemacs.org>
12429 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12432 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12437 Change enum eol_type to eol_type_t.
12439 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12441 * gui.c (get_gui_callback): Check cons before accessing car.
12443 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12445 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12446 (XSETSPECIFIER_TYPE): Ditto.
12448 2000-01-17 Didier Verna <didier@xemacs.org>
12450 * redisplay.c (generate_fstring_runes): compute string size in
12451 characters, not bytes.
12453 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12455 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12457 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12459 * print.c (print_error_message): Call print_prepare().
12461 2000-01-14 Martin Buchholz <martin@xemacs.org>
12463 * .dbxrc: Renamed from dbxrc.
12465 * events.c (event_to_character):
12466 Use `assert (foo)' instead of `if (!foo) abort()'
12468 * .gdbinit (xtype): Add documentation.
12469 * .gdbinit (check-temacs): New function.
12470 * .gdbinit (check-xemacs): New function.
12471 * dbxrc (check-xemacs): New function.
12472 * dbxrc (check-xemacs): New function.
12474 2000-01-14 Andy Piper <andy@xemacs.org>
12476 * glyphs-widget.c (widget_query_geometry): Make sure that we
12477 calculate default dimensions correctly.
12479 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12481 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12483 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12484 pdump_wire'd variable.
12486 * emacs.c: (main_1): Conditionalized calls to
12487 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12489 2000-01-13 Martin Buchholz <martin@xemacs.org>
12491 * window.c (Fset_window_configuration):
12492 * sysdep.c (_start):
12493 * input-method-motif.c (res):
12494 * event-Xt.c (Xt_process_to_emacs_event):
12495 Simple compiler warning fixes.
12497 * bytecode.c (funcall_compiled_function): Use the original
12498 function symbol on the backtrace list in preference to the
12499 compiled_function object in error messages.
12501 2000-01-13 Andy Piper <andy@xemacs.org>
12503 * glyphs-x.c (update_widget_face): Make sure we update the widget
12504 background as well as foreground.
12506 2000-01-13 Andy Piper <andy@xemacs.org>
12508 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12509 fields to subwindow.
12510 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12511 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12512 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12513 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12515 * glyphs-widget.c (check_valid_tab_orientation): new function.
12516 (initialize_widget_image_instance): zero orientation and
12518 (widget_instantiate): pick up orientation.
12519 (tab_control_query_geometry): return appropriate values for
12522 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12523 appropriate creation flags for left, right and bottom tabs.
12525 * s/cygwin32.h: add tab definitions.
12527 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12529 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12530 frame upon hiding a subwindow.
12531 (mswindows_button_instantiate): Changed the push button style to
12533 (mswindows_button_instantiate): Removed button BS_NOTIFY
12535 (mswindows_button_instantiate): Removed redundant check for
12536 a disabled gui item.
12537 (mswindows_button_instantiate): Made use of WS_TABSTOP
12538 consistent: "operable" controls (edit, button, tree, scroll) have
12539 this style, "display-only" ones (static, progress gauge) do
12540 not. This style is currently ignored by XEmacs though. Also,
12541 removed the WS_EX_CONTROLPARENT style - it is not for children,
12542 it is for their parents!
12543 (mswindows_edit_field_instantiate): Ditto.
12544 (mswindows_progress_gauge_instantiate): Ditto.
12545 (mswindows_tree_view_instantiate): Ditto.
12546 (mswindows_tab_control_instantiate): Ditto.
12547 (mswindows_scrollbar_instantiate): Ditto.
12548 (mswindows_combo_box_instantiate): Ditto.
12549 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12550 style to the "clip" window.
12551 (mswindows_button_instantiate): Removed compilation warning by
12552 equally typing terms of the ?: operator.
12554 2000-01-12 Didier Verna <didier@xemacs.org>
12556 * redisplay.c (generate_fstring_runes): new parameter holding the
12557 last modeline-format extent.
12558 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12559 extent, fill the glyph block with it.
12560 (generate_fstring_runes): handle these parameters.
12561 (generate_formatted_string_db): ditto.
12563 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12564 glyphs'extents in the modeline.
12566 1999-01-11 Mike Woolley <mike@bulsara.com>
12568 * ntheap.c: Reduced the reserved heap space from 1Gb down to
12569 256Mb, as a workaround for the non-starting problem many people
12572 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12574 * console-tty.c (Fset_console_tty_output_coding_system):
12575 Force redrawing tty frame.
12577 2000-01-10 Didier Verna <didier@xemacs.org>
12579 * redisplay.c (generate_fstring_runes): fix size computation bug.
12581 2000-01-09 William M. Perry <wmperry@aventail.com>
12583 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12585 2000-01-09 Andy Piper <andy@xemacs.org>
12587 * glyphs-msw.c: index -> i to avoid shadows.
12588 (xbm_create_bitmap_from_data): make static.
12589 (check_valid_string_or_int): deleted.
12590 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12592 * glyphs-x.c (x_update_subwindow): remove unused args.
12594 * glyphs.c (glyph_image_instance): return the thing. Don't set the
12595 back pointer - this is done in allocate_image_instance.
12596 (query_string_font): return Qnil to make the compiler happy.
12597 (unmap_subwindow): set to ~0 to make the compiler happy.
12598 (glyph_query_geometry): comment out until used.
12599 (glyph_layout): ditto.
12601 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12603 * insdel.c (signal_after_change): Remove extraneous unbind_to().