1 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * mule-charset.c (Fcharset_name): Modify DOC-string for UTF-2000
6 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
8 * mule-charset.c (decode_builtin_char): Support mother charsets.
10 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
12 * mule-charset.c (Q94x94x60): New variable.
13 (charset_code_point): Support conversion `94x94x60'.
14 (Fmake_charset): Likewise.
15 (syms_of_mule_charset): Add new symbol `94x94x60'.
17 * char-ucs.h (CONVERSION_94x94x60): New macro.
19 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
21 * mule-charset.c (charset_code_point): Unify code about
24 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
26 * mule-charset.c (charset_code_point): Merge code about builtin
27 characters into code about mother charsets; don't use
28 `range_charset_code_point'.
29 (range_charset_code_point): Deleted.
31 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
33 * mule-charset.c (Qcode_offset): New variable.
34 (Fmake_charset): Use `XUINT' to get value of `min-code' and
35 `max-code'; accept new property `code-offset'.
36 (syms_of_mule_charset): Add new symbol `code-offset'.
38 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
40 * mule-charset.c (range_charset_code_point): Fixed.
42 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
44 * mule-charset.c (decode_builtin_char): Change semantics of
45 code-offset of coded-charset.
46 (charset_code_point): Likewise.
47 (range_charset_code_point): Likewise.
48 (complex_vars_of_mule_charset): Modify for the change.
50 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
52 * mule-charset.c (Fencode_char): Reverse arguments.
54 * mule-charset.c (charset_code_point): Fixed.
56 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
58 * mule-charset.c (Vcharset_mojikyo): Deleted.
59 (Vcharset_mojikyo_2022_1): Deleted.
60 (Vcharset_mojikyo_pj_{1..21}): Deleted.
61 (Qmin_code): New variable in UTF-2000.
62 (Qmax_code): Likewise.
64 (Qconversion): Likewise.
67 (Qmojikyo_2022_1): Deleted.
68 (Qmojikyo_pj_{1..22}): Deleted.
69 (mark_charset): Mark `cs->mother'.
70 (charset_description): Add description for `mother'.
71 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
72 new arguments `mother' and `conversion'; use
73 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
74 (charset_code_point): Moved from char-ucs.h; support `mother'
76 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
77 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
78 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
79 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
80 allow 2 as the value of `graphic' in UTF-2000; add new properties
81 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
82 require `final' in UTF-2000; modify for `make_charset'.
83 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
84 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
85 (Fcharset_property): Support `mother', `min-code' and `max-code'.
86 (Fencode_char): New function.
87 (syms_of_mule_charset): Add new builtin function `encode-char' in
88 UTF-2000; add new symbols `min-code', `max-code', `mother',
89 `conversion' and `94x60'; delete symbols `mojikyo',
90 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
91 (complex_vars_of_mule_charset): Modify for `make_charset' change;
92 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
93 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
95 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
96 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
98 * char-ucs.h (Vcharset_mojikyo): Deleted.
99 (Vcharset_mojikyo_2022_1): Deleted.
100 (LEADING_BYTE_MOJIKYO): Deleted.
101 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
102 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
103 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
104 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
105 add new member `mother'; add new member `conversion'.
106 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
107 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
108 (CHARSET_MOTHER): New macro.
109 (CHARSET_CONVERSION): New macro.
110 (CONVERSION_IDENTICAL): New macro.
111 (CONVERSION_94x60): New macro.
112 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
113 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
114 (XCHARSET_MOTHER): New macro.
115 (XCHARSET_CONVERSION): New macro.
116 (MIN_CHAR_MOJIKYO): Deleted.
117 (MAX_CHAR_MOJIKYO): Deleted.
118 (DECODE_MOJIKYO_2022): Deleted.
119 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
120 (charset_code_point): Changed to non-inline function.
121 (encode_char_1): Use `charset_code_point'.
122 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
124 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
126 * lread.c (read_compiled_function): Fix prototype.
127 (read_vector): Likewise.
129 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
131 * lrecord.h (struct lrecord_header): Delete `older'.
132 (set_lheader_implementation): Delete code for `older'.
133 (set_lheader_older_implementation): Deleted.
134 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
135 (OLDER_RECORD_P): Deleted.
136 (OLDER_RECORD_HEADER_P): Deleted.
137 (alloc_older_lcrecord): Deleted.
138 (alloc_older_lcrecord_type): Deleted.
140 * alloc.c (all_older_lcrecords): Deleted.
141 (alloc_older_lcrecord): Deleted.
142 (disksave_object_finalization_1): Delete code for older objects.
143 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
144 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
146 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
148 * mule-charset.c (decoding_table_put_char): Use `make_vector'
149 instead of `make_older_vector'.
150 (put_char_ccs_code_point): Likewise.
151 (mark_charset): Mark `cs->decoding_table'.
152 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
154 * lisp.h (make_older_vector): Deleted.
155 (make_vector_newer): Deleted.
157 * config.h.in (HAVE_GGC): Deleted.
159 * alloc.c (make_older_vector): Deleted.
160 (make_vector_newer_1): Deleted.
161 (make_vector_newer): Deleted.
163 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
165 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
166 (Qideograph_daikanwa_2): New variable.
167 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
168 (complex_vars_of_mule_charset): Add new coded-charset
169 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
170 `LEADING_BYTE_DAIKANWA'.
172 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
173 (LEADING_BYTE_DAIKANWA_1): New macro.
174 (LEADING_BYTE_DAIKANWA_2): New macro.
175 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
177 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
179 * mule-charset.c (complex_vars_of_mule_charset): Change
180 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
181 the second revised version.
183 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
185 * mule-charset.c (Vcharset_ucs_smp): New variable.
186 (Vcharset_ucs_sip): New variable.
187 (Qucs_smp): New variable.
188 (Qucs_sip): New variable.
189 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
190 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
191 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
192 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
193 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
194 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
196 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
197 (LEADING_BYTE_UCS_SIP): New macro.
198 (MIN_CHAR_SMP): New macro.
199 (MAX_CHAR_SMP): New macro.
200 (MIN_CHAR_SIP): New macro.
201 (MAX_CHAR_SIP): New macro.
203 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
205 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
208 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
210 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
211 value; don't store value into `encoding_table' of `Lisp_Charset'.
212 (mark_charset): `encoding_table' was deleted.
213 (charset_description): Likewise.
214 (make_charset): Likewise.
215 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
216 `put_char_ccs_code_point'.
218 * chartab.h (Fput_char_attribute): New EXFUN.
220 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
221 is unified with normal symbol space.
222 (Fget_char_attribute): Likewise.
223 (Fput_char_attribute): Likewise; behavior of
224 `put_char_ccs_code_point' is changed.
226 * char-ucs.h: Include "elhash.h".
227 (Vchar_attribute_hash_table): New external variable.
228 (struct Lisp_Charset): Delete `encoding_table'.
229 (CHARSET_ENCODING_TABLE): New implementation; refer
230 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
233 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
235 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
238 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
240 * text-coding.c (char_encode_big5): Prefer charset-g1 than
243 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
245 * chartab.c (uint8_byte_table_description): New constant.
246 (uint8-byte-table): Use `uint8_byte_table_description'.
247 (uint16_byte_table_description): New constant.
248 (uint16-byte-table): Use `uint16_byte_table_description'.
250 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
252 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
253 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
255 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
257 * mule-charset.c (Vcharset_ucs_ks): New variable.
258 (Qucs_ks): New variable.
259 (syms_of_mule_charset): Add new symbol `ucs-ks'.
260 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
262 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
264 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
266 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
267 (Fdecode_char): Likewise.
269 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
271 (Fdefine_char): Modify for Fdecode_char.
272 (Ffind_char): Likewise.
274 * mule-charset.c (Fdecode_char): Add new optional argument
276 (Fdecode_builtin_char): Modify for `Fdecode_char'.
278 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
280 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
281 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
282 (allocate_coding_system): Initialize initial-charsets of
283 CODESYS_BIG5 in XEmacs UTF-2000.
284 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
285 CODESYS_BIG5 in XEmacs UTF-2000.
286 (decode_coding_big5): Use initial-charset-g0 and -g1 of
287 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
289 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
291 (Qideograph_hanziku_{1 .. 12}): Likewise.
292 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
294 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
295 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
296 `ideograph-hanziku-{1 .. 12}'.
298 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
299 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
300 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
301 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
302 (DECODE_DEFINED_CHAR): New inline function.
303 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
305 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
307 * mule-charset.c (Vcharset_china3_jef): Renamed from
308 `Vcharset_japanese_jef_china3'.
309 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
310 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
311 `{MIN|MAX}_CHAR_JEF_CHINA3'..
312 (syms_of_mule_charset): Rename `china3-jef' from
313 `japanese-jef-china3'.
314 (complex_vars_of_mule_charset): Likewise; rename
315 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
317 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
318 `LEADING_BYTE_JEF_CHINA3'.
319 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
320 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
322 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
324 * mule-charset.c (encode_builtin_char_1): Comment out special code
325 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
327 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
328 (MAX_CHAR_MOJIKYO_0): Comment out.
329 (MIN_CHAR_CBETA): Changed to 0x00E20000.
330 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
331 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
332 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
334 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
336 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
337 (Qideograph_cbeta): New variable.
338 (encode_builtin_char_1): Comment out special code for
339 coded-charset `mojikyo' and `japanese-jef-china3'.
340 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
341 (complex_vars_of_mule_charset): Add new coded-charset
344 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
345 (MIN_CHAR_CBETA): New macro.
346 (MAX_CHAR_CBETA): New macro.
348 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
350 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
351 (LEADING_BYTE_JEF_CHINA3): New macro.
352 (MIN_CHAR_JEF_CHINA3): New macro.
353 (MAX_CHAR_JEF_CHINA3): Likewise.
354 (DECODE_CHAR): Fixed.
356 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
358 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
359 (Qjapanese_jef_china3): New variable.
360 (encode_builtin_char_1): Support `japanese-jef-china3'.
361 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
362 (complex_vars_of_mule_charset): Add new coded-charset
363 `japanese-jef-china3'.
365 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
367 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
368 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
369 94^4, 96^3, 96^4, 128^n and 256^n set.
370 (put_char_table): Use `XCHARSET_CELL_RANGE'.
371 (map_char_table): Likewise.
373 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
375 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
378 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
380 * chartab.h (get_char_id_table): New inline function.
382 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
385 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
387 * chartab.h (decode_char_table_range): New prototype in XEmacs
389 (put_char_id_table): New inline function in XEmacs UTF-2000.
391 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
393 (decode_char_table_range): Delete static declaration in XEmacs
396 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
398 * chartab.c (put_char_id_table): Use `put_char_table'.
400 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
402 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
403 (map_over_uint16_byte_table): Likewise.
404 (map_over_byte_table): Likewise.
405 (map_char_table): Modify for `map_over_uint8_byte_table',
406 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
409 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
411 * chartab.c (struct map_char_table_for_charset_arg): New
413 (map_char_table_for_charset_fun): New function.
414 (map_char_table): Use `map_char_table' for encoding_table of
417 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
419 * chartab.c (map_char_table): Check a character is found in
420 range->charset instead of non default value is defined in
421 char-table when range is CHARTAB_RANGE_ROW.
423 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
425 * chartab.c (map_char_id_table): Deleted.
426 (Fmap_char_attribute): Use `map_char_table' instead of
429 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
431 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
433 (update_syntax_table): Deleted in XEmacs UTF-2000.
435 * syntax.c (find_defun_start): Use `syntax_table' instead of
436 `mirror_syntax_table' in XEmacs UTF-2000.
437 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
439 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
441 (Fmatching_paren): Likewise.
442 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
444 (find_start_of_comment): Likewise.
445 (find_end_of_comment): Likewise.
446 (Fforward_comment): Likewise.
447 (scan_lists): Likewise.
448 (char_quoted): Likewise.
449 (Fbackward_prefix_chars): Likewise.
450 (scan_sexps_forward): Likewise.
451 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
452 (update_syntax_table): Likewise.
454 * search.c (skip_chars): Use `syntax_table' instead of
455 `mirror_syntax_table' in XEmacs UTF-2000.
457 (Freplace_match): Likewise.
459 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
460 `mirror_syntax_table' in XEmacs UTF-2000.
461 (WORDCHAR_P_UNSAFE): Likewise.
462 (re_match_2_internal): Likewise.
464 * font-lock.c (find_context): Use `buf->syntax_table' instead of
465 `buf->mirror_syntax_table' in XEmacs UTF-2000.
467 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
468 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
470 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
473 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
475 (print_char_table): Print `default_value' in XEmacs UTF-2000.
476 (char_table_description): Delete `mirror_table' in XEmacs
478 (fill_char_table): Don't call `update_syntax_table' in XEmacs
480 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
481 (Fcopy_char_table): Likewise.
482 (put_char_table): Don't call `update_syntax_table' in XEmacs
485 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
486 `buf->mirror_syntax_table' in XEmacs UTF-2000.
487 (casify_region_internal): Likewise.
489 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
491 * buffer.c (common_init_complex_vars_of_buffer): Don't use
492 `mirror_syntax_table' in XEmacs UTF-2000.
494 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
495 `buf->mirror_syntax_table' in XEmacs UTF-2000.
496 (Fexpand_abbrev): Likewise.
498 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
500 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
502 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
504 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
505 (map_over_uint16_byte_table): Likewise.
506 (map_over_byte_table): Likewise.
507 (get_char_id_table): Refer `cit->default_value'.
508 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
509 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
510 of character-id ranges.
511 (mark_char_table): Mark `ct->default_value'.
512 (char_table_description): Add `default_value'.
513 (fill_char_table): Use `default_value'.
514 (decode_char_table_range): Decode `nil' as
515 `CHARTAB_RANGE_DEFAULT'.
516 (get_char_id_table): Refer `cit->default_value'.
517 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
518 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
519 temporary hack; check value of char-table is bound or not.
520 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
522 * chartab.h (struct Lisp_Char_Table): Add new member
523 `default_value' in XEmacs UTF-2000.
524 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
525 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
528 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
530 * chartab.h (Lisp_Char_ID_Table): Deleted.
532 * chartab.c (char_table_description): Fix typo.
533 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
534 `Lisp_Char_ID_Table'.
536 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
538 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
541 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
544 * chartab.h (XCHAR_ID_TABLE): Deleted.
545 (XSETCHAR_ID_TABLE): Deleted.
546 (CHAR_ID_TABLE_P): Deleted.
548 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
550 (Fget_composite_char): Likewise.
551 (put_char_table): Likewise.
552 (add_char_attribute_alist_mapper): Fixed.
553 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
555 (Fget_char_attribute): Likewise.
556 (Fget_char_attribute): Likewise.
557 (Fmap_char_attribute): Likewise.
559 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
561 (encode_char_1): Likewise.
563 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
565 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
568 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
569 instead of `XCHAR_ID_TABLE'.
570 (remove_char_ccs): Likewise.
572 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
574 (Fget_composite_char): Likewise.
575 (Fchar_variants): Likewise.
576 (put_char_table): Likewise.
577 (add_char_attribute_alist_mapper): Likewise.
578 (Fchar_attribute_alist): Likewise.
579 (Fget_char_attribute): Likewise.
580 (Fput_char_attribute): Likewise.
581 (Fmap_char_attribute): Likewise.
582 (Fmap_char_attribute): Likewise.
584 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
586 (encode_char_1): Likewise.
588 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
590 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
591 `Lisp_Char_ID_Table'.
592 (mark_char_id_table): Deleted.
593 (print_char_id_table): Likewise.
594 (char_id_table_equal): Likewise.
595 (char_id_table_hash): Likewise.
596 (char_id_table_description): Likewise.
597 (char_id_table): Likewise.
598 (make_char_id_table): Use `Fmake_char_table' and
600 (get_char_id_table): Use `Lisp_Char_Table' instead of
601 `Lisp_Char_ID_Table'.
602 (put_char_id_table): Likewise.
603 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
605 (Fremove_char_attribute): Likewise.
606 (syms_of_chartab): Don't define type `char-id-table'.
608 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
609 (char_id_table): Likewise.
610 (GC_CHAR_ID_TABLE_P): Likewise.
611 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
612 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
613 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
614 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
615 (get_char_id_table): Use `Lisp_Char_Table' instead of
616 `Lisp_Char_ID_Table'.
617 (put_char_id_table_0): Likewise.
618 (put_char_id_table): Likewise.
620 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
622 * chartab.h: Lisp_Byte_Table related codes are moved from
625 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
627 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
629 * chartab.h: Don't include "chartab.h".
630 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
631 (Lisp_Char_ID_Table): Likewise.
632 (char_id_table): Likewise.
633 (XCHAR_ID_TABLE): Likewise.
634 (XSETCHAR_ID_TABLE): Likewise.
635 (CHAR_ID_TABLE_P): Likewise.
636 (GC_CHAR_ID_TABLE_P): Likewise.
637 (get_char_id_table): Likewise.
639 * char-ucs.h: Include "chartab.h".
640 (struct Lisp_Char_ID_Table): Moved to chartab.h.
641 (Lisp_Char_ID_Table): Likewise.
642 (char_id_table): Likewise.
643 (XCHAR_ID_TABLE): Likewise.
644 (XSETCHAR_ID_TABLE): Likewise.
645 (CHAR_ID_TABLE_P): Likewise.
646 (GC_CHAR_ID_TABLE_P): Likewise.
647 (get_char_id_table): Likewise.
649 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
651 * chartab.c (copy_uint8_byte_table): New function.
652 (copy_uint16_byte_table): New function.
653 (copy_byte_table): New function.
654 (map_over_uint8_byte_table): Modify to avoid huge numbers of
656 (map_over_uint16_byte_table): Likewise.
657 (map_over_byte_table): Likewise.
658 (get_byte_table): Move prototype to chartab.h.
659 (put_byte_table): Likewise.
660 (put_char_id_table_0): Moved to chartab.h.
661 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
662 (char_table_entry_equal): Likewise.
663 (char_table_entry_hash): Likewise.
664 (char_table_entry_description): Likewise.
665 (char_table_entry): Likewise.
666 (make_char_table_entry): Likewise.
667 (copy_char_table_entry): Likewise.
668 (get_non_ascii_char_table_value): Likewise.
669 (map_over_charset_ascii): Likewise.
670 (map_over_charset_control_1): Likewise.
671 (map_over_charset_row): Likewise.
672 (map_over_other_charset): Likewise.
673 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
674 (print_char_table): Likewise.
675 (char_table_equal): Likewise.
676 (char_table_hash): Likewise.
677 (char_table_description): Likewise.
678 (fill_char_table): Likewise.
679 (Fcopy_char_table): Likewise.
680 (get_char_table): Likewise.
681 (Fget_range_char_table): Likewise.
682 (put_char_table): Likewise.
683 (map_char_table): Likewise.
684 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
687 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
689 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
690 `Vauto_fill_chars' in XEmacs UTF-2000.
692 * chartab.h (get_byte_table): New prototype [moved from
694 (put_byte_table): Likewise [moved from chartab.c].
695 (put_char_id_table_0): New inline function [moved from chartab.c].
696 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
697 (Lisp_Char_Table_Entry): Likewise.
698 (char_table_entry): Likewise.
699 (XCHAR_TABLE_ENTRY): Likewise.
700 (XSETCHAR_TABLE_ENTRY): Likewise.
701 (CHAR_TABLE_ENTRYP): Likewise.
702 (CHECK_CHAR_TABLE_ENTRY): Likewise.
703 (NUM_ASCII_CHARS): Likewise.
704 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
705 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
707 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
709 * chartab.c (get_char_id_table): Change interface.
710 (put_char_id_table_0): New function.
711 (put_char_id_table): Change interface; new implementation.
712 (Fget_composite_char): Modify for interface change of
714 (Fchar_variants): Likewise.
715 (add_char_attribute_alist_mapper): Likewise.
716 (Fchar_attribute_alist): Likewise.
717 (Fget_char_attribute): Likewise.
718 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
719 as same as character as the first argument like `put-char-table';
720 modify for interface change of `put_char_id_table'.
721 (Fremove_char_attribute): Modify for interface change of
724 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
726 * text-coding.c: Sync up with XEmacs 21.2.41.
727 (COMPOSE_ADD_CHAR): Modify for interface change of
730 * mule-charset.c (put_char_ccs_code_point): Modify for interface
731 change of `put_char_id_table'.
732 (remove_char_ccs): Likewise.
734 * chartab.h (put_char_id_table): Change interface.
736 * char-ucs.h (get_char_id_table): Change interface.
737 (charset_code_point): Modify for interface change of
739 (encode_char_1): Likewise.
741 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
743 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
745 (map_over_uint16_byte_table): Likewise.
746 (map_over_byte_table): Likewise.
747 (map_char_id_table): Add new argument `range' like
749 (Fmap_char_attribute): Add new argument `range' like
752 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
754 * chartab.c (map_over_uint8_byte_table): Change interface of
755 mapping function to use struct chartab_range instead of Emchar.
756 (map_over_uint16_byte_table): Likewise.
757 (map_over_byte_table): Likewise.
758 (map_char_id_table): Likewise.
759 (struct slow_map_char_id_table_arg): Deleted.
760 (slow_map_char_id_table_fun): Deleted.
761 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
762 function `slow_map_char_table_fun' instead of struct
763 `slow_map_char_id_table_arg' and function
764 `slow_map_char_id_table_fun'.
766 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
768 * mule-charset.c: Move char-it-table related codes to chartab.c.
769 (Vutf_2000_version): Moved to chartab.c.
770 (Fdefine_char): Likewise.
771 (Ffind_char): Likewise.
772 (syms_of_mule_charset): Move types `uint8-byte-table',
773 `uint16-byte-table', `byte-table' and `char-id-table' to
774 chartab.c; move functions `char_attribute_list,
775 `find_char_attribute_table, `char_attribute_alist,
776 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
777 `map_char_attribute, `define_char, `find_char, `char_variants and
778 `get_composite_char to chartab.c; move symbols `=>ucs',
779 `->decomposition', `compat', `isolated', `initial', `medial',
780 `final', `vertical', `noBreak', `fraction', `super', `sub',
781 `circle', `square', `wide', `narrow', `small' and `font' to
783 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
784 setting codes for `Vcharacter_composition_table' and
785 `Vcharacter_variant_table' to chartab.c.
786 (complex_vars_of_mule_charset): Move setting code for
787 `Vchar_attribute_hash_table' to chartab.c.
789 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
790 (make_char_id_table): New prototype.
791 (put_char_id_table): Likewise.
792 (Fget_char_attribute): Likewise.
794 * chartab.c: Move char-id-table related code from mule-charset.c.
795 (Vutf_2000_version): Moved from mule-charset.c.
797 * char-ucs.h (Qucs): New external variable.
798 (put_char_ccs_code_point): New prototype.
799 (remove_char_ccs): Likewise.
801 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
803 * mule-charset.c (Vcharset_ucs_jis): New variable.
804 (Qucs_jis): Likewise.
805 (syms_of_mule_charset): Add new symbol `ucs-jis'.
806 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
808 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
810 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
812 * mule-charset.c (map_over_uint8_byte_table): New function.
813 (map_over_uint16_byte_table): Likewise.
814 (map_over_byte_table): Likewise.
815 (map_char_id_table): Likewise.
816 (slow_map_char_id_table_fun): Likewise.
817 (Fmap_char_attribute): Likewise.
818 (syms_of_mule_charset): Add new function `map-char-attribute'.
820 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
822 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
823 (syms_of_mule_charset): Add new function `find-char'.
825 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
827 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
829 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
830 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
832 (complex_vars_of_mule_charset): Add new coded-charset
833 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
836 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
838 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
840 * mule-charset.c (encode_builtin_char_1): Purge codes about
841 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
842 {MIN|MAX}_CHAR_HEBREW.
843 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
844 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
846 * char-ucs.h (MIN_CHAR_GREEK): Purged.
847 (MAX_CHAR_GREEK): Purged.
848 (MIN_CHAR_CYRILLIC): Purged.
849 (MAX_CHAR_CYRILLIC): Purged.
850 (MIN_CHAR_HEBREW): Commented out.
851 (MAX_CHAR_HEBREW): Likewise.
853 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
855 * mule-charset.c (Qto_ucs): New variable.
856 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
857 (Fdefine_char): Likewise.
858 (syms_of_mule_charset): Add new symbol `=>ucs'.
860 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
862 * mule-charset.c (Fdecode_char): Fixed.
864 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
866 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
867 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
870 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
872 * mule-charset.c (Vcharset_ucs_big5): New variable.
873 (Qucs_big5): Likewise.
874 (syms_of_mule_charset): Add new symbol `ucs-big5'.
875 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
877 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
879 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
881 * mule-charset.c (decode_builtin_char): Check Big5 code range
882 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
884 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
886 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
887 (Qchinese_gb12345): Likewise.
888 (Fdecode_builtin_char): Fixed.
889 (syms_of_mule_charset): Add `chinese-gb12345'.
890 (complex_vars_of_mule_charset): Add coded-charset
893 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
894 (LEADING_BYTE_CHINESE_GB12345): New macro.
896 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
898 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
899 and `latin-viscii-upper' for `latin-viscii'.
901 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
903 * mule-charset.c (Fdecode_builtin_char): Comment out
904 regularization code for ISO-IR GR representation.
906 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
908 * mule-charset.c (decode_builtin_char): New function; renamed from
909 `make_builtin_char'; return -1 instead of signal.
910 (Fdecode_builtin_char): Use `decode_builtin_char'.
912 * char-ucs.h (decode_builtin_char): New prototype; renamed from
914 (DECODE_CHAR): Use `decode_builtin_char' instead of
915 `make_builtin_char'; use mapping table of `chinese-big5' for
916 `chinese-big5-{1,2}'.
918 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
920 * text-coding.c (char_encode_big5): New function.
921 (char_finish_big5): Likewise.
922 (reset_encoding_stream): Use `char_encode_big5' and
923 `char_finish_big5' for CODESYS_BIG5.
924 (mule_encode): Don't use `encode_coding_big5'.
925 (encode_coding_big5): Deleted.
927 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
929 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
930 0x81- in XEmacs UTF-2000.
931 (detect_coding_big5): Likewise.
933 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
935 * mule-charset.c (Fdefine_char): Don't use a CCS property to
936 generate character-id if the CCS property does not have
937 corresponding predefined character.
938 (make_builtin_char): Return -1 if corresponding predefined
939 character is not found.
940 (Fdecode_char): Return nil if corresponding character is not
942 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
943 don't map to builtin ucs space.
945 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
947 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
948 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
950 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
952 * mule-charset.c (Vcharset_ideograph_gt): New variable.
953 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
954 (Qideograph_gt): Likewise.
955 (Qideograph_gt_pj_{1..11}): Likewise.
956 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
957 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
958 `ideograph-gt-pj-11'.
959 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
960 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
961 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
963 * char-ucs.h (LEADING_BYTE_GT): New macro.
964 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
965 (MIN_CHAR_GT): Likewise.
966 (MAX_CHAR_GT): Likewise.
968 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
970 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
971 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
973 * doprnt.c (unsigned_int_converters): Add `c'.
974 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
976 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
977 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
979 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
980 (MAX_CHAR_MOJIKYO_0): New macro.
981 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
983 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
985 * mule-charset.c (Fdefine_char): Delete cemented out code.
986 (encode_builtin_char_1): Modify for new allocation of builtin
989 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
991 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
993 * mule-charset.c (Vcharset_ucs_cns): New variable.
994 (Qucs_cns): New variable.
995 (syms_of_mule_charset): Add new symbol `ucs-cns'.
996 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
998 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1000 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1002 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1004 * search.c (search_buffer): Make `charset_base_code' as
1005 character-id >> 6 to eliminate the corresponding last byte in
1006 UTF-8 representation [I'm not sure it is right thing].
1007 (boyer_moore): Likewise.
1009 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1011 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1012 representation in MULE.
1014 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016 * text-coding.c (Fmake_coding_system): Use
1017 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1018 `EXTERNAL_PROPERTY_LIST_LOOP'.
1020 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1022 * text-coding.c (decode_output_utf8_partial_char): New function.
1023 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1025 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027 * text-coding.c (decode_coding_utf8): Output original byte
1028 sequence if it is broken; change order of conditions.
1030 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1033 * mb-multibyte.h (BYTE_ASCII_P):
1034 Use bit ops for char-signedness safety.
1035 (BYTE_C0_P): Use bit ops for char-signedness safety.
1036 (BYTE_C1_P): Use bit ops for char-signedness safety.
1038 * character.h: (XCHAR_OR_CHAR_INT):
1039 Always use inline function.
1040 Remove redundant type checking assert() - XINT will abort quite
1043 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1045 * text-coding.c: (Fencode_shift_jis_char):
1046 (Fencode_big5_char):
1047 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1048 Replace 0 with '\0' when working with bytes.
1049 Replace initial "(" with "\(" in docstrings.
1051 (Fmake_coding_system):
1052 When type is ccl and value is vector, register it with a proper
1053 symbol. And checks whether the given ccl program is valid.
1054 (mule_decode): When calling ccl_driver, if src indicates
1055 NULL pointer, set an empty string instead.
1056 (mule_encode): Likewise.
1059 (detect_coding_sjis):
1060 (decode_coding_sjis):
1061 (detect_coding_big5):
1062 (decode_coding_big5):
1063 (detect_coding_ucs4):
1064 (decode_coding_ucs4):
1065 (detect_coding_utf8):
1066 (decode_coding_utf8):
1067 (detect_coding_iso2022):
1068 (decode_coding_iso2022):
1069 (decode_coding_no_conversion):
1071 Make all detecting and decoding functions take an Extbyte * arg.
1072 (text_encode_generic):
1073 (encode_coding_big5):
1074 (encode_coding_no_conversion):
1076 Make all encoding functions take a Bufbyte * arg.
1077 Use size_t instead of unsigned int for memory sizes.
1078 Only cast to unsigned char whenever dereferencing Extbyte *.
1080 (struct lrecord_description fcd_description_1): Use countof.
1081 (complex_vars_of_file_coding):
1082 Use countof instead of sizeof.
1083 Use CHECK_NATNUM instead of CHECK_INT.
1085 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1087 * mule-charset.c (Fget_char_attribute): Add new optional argument
1089 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1090 (remove_char_ccs): Likewise.
1092 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1094 * text-coding.c (char_encode_shift_jis): New implementation in
1096 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1099 * mule-charset.c (Vcharset_chinese_big5): New variable in
1101 (Qchinese_big5): New variable in UTF-2000.
1102 (BIG5_SAME_ROW): New macro in UTF-2000.
1103 (make_builtin_char): Use builtin characters of
1104 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1105 characters of `Vcharset_chinese_big5'.
1106 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1107 (complex_vars_of_mule_charset): Add new coded-charset
1108 `chinese-big5' in UTF-2000.
1110 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1111 (Vcharset_chinese_big5): New external variable declaration.
1112 (Vcharset_japanese_jisx0208_1990): Likewise.
1114 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1116 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1118 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1120 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1122 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1123 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1124 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1127 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1129 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1131 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1133 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1136 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1139 for `CHARSET_BY_ATTRIBUTES'.
1140 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1141 `CHARSET_BY_ATTRIBUTES'.
1143 * text-coding.c (struct decoding_stream): Rename member `CH' to
1145 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1146 (decode_coding_sjis): Likewise.
1147 (decode_coding_big5): Likewise.
1148 (decode_coding_ucs4): Likewise.
1149 (decode_coding_utf8): Likewise.
1150 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1151 `CHARSET_BY_ATTRIBUTES'.
1152 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1153 `str->counter'; decode 3, 4 bytes sets.
1154 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1156 (decode_coding_no_conversion): Use `str->cpos' instead of
1159 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1160 (Qmojikyo_2022_1): New variable.
1161 (make_charset): Don't use `CHARSET_TYPE_*'.
1162 (range_charset_code_point): Support coded-charset
1164 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1165 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1166 `CHARSET_BY_ATTRIBUTES'.
1167 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1168 `CHARSET_BY_ATTRIBUTES'.
1169 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1170 (complex_vars_of_mule_charset): Add new coded-charset
1173 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1174 interface; changed to inline function.
1176 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1177 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1178 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1179 (CHARSET_TYPE_94): Deleted.
1180 (CHARSET_TYPE_94X94): Deleted.
1181 (CHARSET_TYPE_96): Deleted.
1182 (CHARSET_TYPE_96X96): Deleted.
1183 (CHARSET_TYPE_128): Deleted.
1184 (CHARSET_TYPE_128X128): Deleted.
1185 (CHARSET_TYPE_256): Deleted.
1186 (CHARSET_TYPE_256X256): Deleted.
1187 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1189 (DECODE_MOJIKYO_2022): New inline function.
1190 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1191 `Vcharset_mojikyo_2022_1'.
1193 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1197 (put_byte_table): Likewise.
1198 (char_id_table_equal): Use `get_byte_table' [new implementation].
1200 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1202 * mule-charset.c: Include <limits.h> in UTF-2000.
1203 (BT_UINT8_MIN): New macro in UTF-2000.
1204 (BT_UINT8_MAX): New macro in UTF-2000.
1205 (BT_UINT8_t): New macro in UTF-2000.
1206 (BT_UINT8_nil): New macro in UTF-2000.
1207 (BT_UINT8_unbound): New macro in UTF-2000.
1208 (INT_UINT8_P): New inline function in UTF-2000.
1209 (UINT8_VALUE_P): New inline function in UTF-2000.
1210 (UINT8_ENCODE): New inline function in UTF-2000.
1211 (UINT8_DECODE): New inline function in UTF-2000.
1212 (mark_uint8_byte_table): New function in UTF-2000.
1213 (print_uint8_byte_table): New function in UTF-2000.
1214 (uint8_byte_table_equal): New function in UTF-2000.
1215 (uint8_byte_table_hash): New function in UTF-2000.
1216 (make_uint8_byte_table): New function in UTF-2000.
1217 (uint8_byte_table_same_value_p): New function in UTF-2000.
1218 (BT_UINT16_MIN): New macro in UTF-2000.
1219 (BT_UINT16_MAX): New macro in UTF-2000.
1220 (BT_UINT16_t): New macro in UTF-2000.
1221 (BT_UINT16_nil): New macro in UTF-2000.
1222 (BT_UINT16_unbound): New macro in UTF-2000.
1223 (INT_UINT16_P): New inline function in UTF-2000.
1224 (UINT16_VALUE_P): New inline function in UTF-2000.
1225 (UINT16_ENCODE): New inline function in UTF-2000.
1226 (UINT16_DECODE): New inline function in UTF-2000.
1227 (UINT8_TO_UINT16): New inline function in UTF-2000.
1228 (mark_uint16_byte_table): New function in UTF-2000.
1229 (print_uint16_byte_table): New function in UTF-2000.
1230 (uint16_byte_table_equal): New function in UTF-2000.
1231 (uint16_byte_table_hash): New function in UTF-2000.
1232 (make_uint16_byte_table): New function in UTF-2000.
1233 (uint16_byte_table_same_value_p): New function in UTF-2000.
1234 (print_byte_table): New function in UTF-2000.
1235 (byte-table): Use `print_byte_table' as printer.
1236 (make_byte_table): Delete second argument `older'.
1237 (byte_table_same_value_p): New function in UTF-2000.
1238 (copy_byte_table): Deleted.
1239 (get_byte_table): New function in UTF-2000.
1240 (put_byte_table): New function in UTF-2000.
1241 (print_char_id_table): New function in UTF-2000.
1242 (char-id-table): Use `print_char_id_table' as printer.
1243 (make_char_id_table): Delete second argument `older'.
1244 (get_char_id_table): Use `get_byte_table [new implementation].
1245 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1247 (Ffind_char_attribute_table): New function in UTF-2000.
1248 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1249 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1250 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1251 (syms_of_mule_charset): Add new function
1252 `find-char-attribute-table' in UTF-2000.
1254 * lrecord.h (enum lrecord_type): Add
1255 `lrecord_type_uint16_byte_table' and
1256 `lrecord_type_uint8_byte_table'.
1258 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1259 (Lisp_Uint8_Byte_Table): New type.
1260 (XUINT8_BYTE_TABLE): New macro.
1261 (XSETUINT8_BYTE_TABLE): New macro.
1262 (UINT8_BYTE_TABLE_P): New macro.
1263 (GC_UINT8_BYTE_TABLE_P): New macro.
1264 (struct Lisp_Uint16_Byte_Table): New structure.
1265 (Lisp_Uint16_Byte_Table): New type.
1266 (XUINT16_BYTE_TABLE): New macro.
1267 (XSETUINT16_BYTE_TABLE): New macro.
1268 (UINT16_BYTE_TABLE_P): New macro.
1269 (GC_UINT16_BYTE_TABLE_P): New macro.
1271 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1273 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1274 (Vcharacter_ideographic_strokes_table): Deleted.
1275 (Vcharacter_total_strokes_table): Deleted.
1276 (Vcharacter_morohashi_daikanwa_table): Deleted.
1277 (Vcharacter_decomposition_table): Deleted.
1278 (Qname): Deleted because it is duplicated.
1279 (Qideographic_radical): Deleted.
1280 (Qideographic_strokes): Deleted.
1281 (Qtotal_strokes): Deleted.
1282 (Qmorohashi_daikanwa): Deleted.
1283 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1284 `ideographic-radical', `ideographic-strokes', `total-strokes',
1285 `morohashi-daikanwa' and `->decomposition'.
1286 (Fget_char_attribute): Likewise.
1287 (Fput_char_attribute): Likewise; use `make-vector' instead of
1288 `make_older_vector' for `->decomposition' value.
1289 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1290 `ideograph-daikanwa'.
1291 (syms_of_mule_charset): Delete builtin symbols `name',
1292 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1293 `morohashi-daikanwa'.
1294 (vars_of_mule_charset): Don't setup
1295 `Vcharacter_ideographic_radical_table',
1296 `Vcharacter_ideographic_strokes_table',
1297 `Vcharacter_total_strokes_table',
1298 `Vcharacter_morohashi_daikanwa_table' and
1299 `Vcharacter_decomposition_table'.
1301 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1303 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1304 `make_older_vector', `make_vector_newer_1' and
1305 `make_vector_newer'.
1307 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1308 `make_older_vector' and `make_vector_newer'.
1310 * config.h.in (HAVE_GGC): New macro.
1312 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1314 * mule-charset.c (struct char_attribute_list_closure): New
1315 structure in UTF-2000.
1316 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1317 (Fchar_attribute_list): Likewise.
1318 (Fset_charset_mapping_table): Use `make_vector_newer'.
1319 (Fdecode_builtin_char): New function in UTF-2000.
1320 (syms_of_mule_charset): Add new function `char-attribute-list' and
1321 `decode-builtin-char' in UTF-2000.
1323 * lisp.h (make_vector_newer): New prototype.
1325 * alloc.c (make_vector_newer_1): New function.
1326 (make_vector_newer): New function.
1328 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1330 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1333 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1335 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1336 (Vcharacter_attribute_table): Deleted.
1337 (Vcharacter_name_table): Deleted.
1338 (put_char_attribute): Deleted.
1339 (remove_char_attribute): Deleted.
1340 (struct char_attribute_alist_closure): New structure.
1341 (add_char_attribute_alist_mapper): New function.
1342 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1343 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1344 (Fget_char_attribute): Likewise.
1345 (Fput_char_attribute): Likewise.
1346 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1347 of `remove_char_attribute'.
1348 (Fdefine_char): Return character.
1349 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1350 and `Vcharacter_name_table'.
1351 (complex_vars_of_mule_charset): Likewise
1352 `Vchar_attribute_hash_table'.
1354 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356 * character.h (CHARC_CHARSET): New macro.
1357 (CHARC_CHARSET_ID): New macro.
1358 (CHARC_CODE_POINT): New macro.
1359 (CHARC_COLUMNS): New macro.
1360 (CHARC_TO_CHAR): New inline function.
1361 (CHARC_EQ): New inline function.
1362 (CHARC_ASCII_EQ): New inline function.
1363 (CHARC_IS_SPACE): New inline function.
1364 (ASCII_TO_CHARC): New inline function.
1366 * char-ucs.h (encode_char_2): Deleted.
1367 (ENCODE_CHAR): Use `encode_char_1' again.
1368 (breakup_char_1): Likewise.
1369 (CHAR_TO_CHARC): New inline function.
1371 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1373 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1375 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1376 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1377 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1378 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1379 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1381 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1383 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1385 (x_output_display_block): Use `CHARC_CHARSET' and
1388 * redisplay-tty.c (tty_output_display_block): Use
1390 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1392 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1394 * insdel.c (find_charsets_in_charc_string): Use
1396 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1397 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1398 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1399 (convert_charc_string_into_malloced_string): Likewise.
1401 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1404 instead of <Emchar_dynarr *> for buf; use
1405 `convert_bufbyte_string_into_charc_dynarr' instead of
1406 `convert_bufbyte_string_into_emchar_dynarr'; use
1407 `find_charsets_in_charc_string' instead of
1408 `find_charsets_in_emchar_string'.
1411 - Include "character.h".
1412 (struct rune): New member `cglyph'; delete member `chr'.
1414 * redisplay.c (redisplay_text_width_charc_string): New function;
1415 delete `redisplay_text_width_emchar_string'.
1416 (rtw_charc_dynarr): New variable; renamed from
1417 `rtw_emchar_dynarr'.
1418 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1419 `rtw_emchar_dynarr'; use
1420 `convert_bufbyte_string_into_charc_dynarr' instead of
1421 `convert_bufbyte_string_into_emchar_dynarr'; use
1422 `redisplay_text_width_charc_string' instead of
1423 `redisplay_text_width_emchar_string'.
1424 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1425 instead of `rtw_emchar_dynarr'; use
1426 `convert_bufbyte_string_into_charc_dynarr' instead of
1427 `convert_bufbyte_string_into_emchar_dynarr'.
1428 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1429 `redisplay_text_width_charc_string' instead of
1430 `redisplay_text_width_emchar_string'.
1431 (create_text_block): Modify for <struct rune> change.
1432 (generate_formatted_string_db): Likewise.
1433 (create_string_text_block): Likewise.
1434 (pixel_to_glyph_translation): Likewise.
1436 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1437 instead of <const Emchar *>.
1438 (x_text_width): Likewise.
1439 (x_output_display_block): Use <Charc_dynarr *> instead
1440 <Emchar_dynarr *>; modify for <structure rune> change.
1441 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1444 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1445 <const Emchar *>; use `charc_string_displayed_columns' instead of
1446 `emchar_string_displayed_columns'.
1447 (tty_output_display_block): Use <Charc_dynarr *> instead of
1448 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1449 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1450 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1451 `tty_output_emchar_dynarr_dynarr'.
1452 (tty_output_charc_dynarr): New function; delete
1453 `tty_output_charc_dynarr'.
1455 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1456 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1457 <Emchar_dynarr *> for buf; use
1458 `convert_bufbyte_string_into_charc_dynarr' instead of
1459 `convert_bufbyte_string_into_emchar_dynarr'.
1461 * frame.c (title_string_charc_dynarr): New variable; renamed from
1462 `title_string_emchar_dynarr'.
1463 (generate_title_string): Use `title_string_charc_dynarr' instead
1464 of `title_string_emchar_dynarr'; use
1465 `convert_charc_string_into_malloced_string' instead of
1466 `convert_emchar_string_into_malloced_string'.
1467 (init_frame): Use `title_string_charc_dynarr' instead of
1468 `title_string_emchar_dynarr'.
1471 - Include "character.h".
1472 (struct console_methods): Use <const Charc *> instead of <const
1473 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1474 <Emchar_dynarr *> in output_string_method.
1476 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1479 * console-stream.c (stream_text_width): Use <const Charc *>
1480 instead of <const Emchar *>.
1482 * character.h (Charc_dynarr): New type.
1484 * char-ucs.h (structure Charc): New structure; define new type
1487 * char-lb.h (DECODE_CHAR): New inline function.
1488 (encode_char_1): New inline function.
1489 (ENCODE_CHAR): New macro.
1490 (structure Charc): New structure; define new type `Charc'.
1492 * char-1byte.h (Vcharset_control_1): New macro.
1493 (Vcharset_latin_iso8859_1): New macro.
1494 (DECODE_CHAR): New inline function.
1495 (encode_char_1): New inline function.
1496 (ENCODE_CHAR): New macro.
1497 (structure Charc): New structure; define new type `Charc'.
1499 * insdel.c (find_charsets_in_charc_string): New function; delete
1500 `find_charsets_in_emchar_string'.
1501 (charc_string_displayed_columns): New function; delete
1502 `emchar_string_displayed_columns'.
1503 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1504 `convert_bufbyte_string_into_emchar_dynarr'.
1505 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1506 `convert_charc_string_into_bufbyte_dynarr'.
1507 (convert_charc_string_into_malloced_string): New function; delete
1508 `convert_charc_string_into_malloced_string'.
1510 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1511 `find_charsets_in_emchar_string'.
1512 (charc_string_displayed_columns): New prototype; delete
1513 `emchar_string_displayed_columns'.
1514 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1515 `convert_charc_string_into_bufbyte_dynarr'.
1516 (convert_charc_string_into_malloced_string): New prototype; delete
1517 `convert_charc_string_into_malloced_string'.
1519 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1523 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1525 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1527 * char-ucs.h: Use <short> for <Charset_ID>.
1529 * mule-charset.h, char-1byte.h: Use <unsigned char> for
1532 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1534 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1537 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1541 (Qmorohashi_daikanwa): New variable.
1542 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1543 for `morohashi-daikanwa' attribute.
1544 (Fget_char_attribute): Likewise.
1545 (Fput_char_attribute): Likewise.
1546 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1547 has the same value of `ideograph-daikanwa'.
1548 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1549 (vars_of_mule_charset): Setup
1550 `Vcharacter_morohashi_daikanwa_table'.
1552 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1554 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1556 (add_charset_to_list_mapper): Add `key' instead of
1557 `XCHARSET_NAME (value)' to return aliases.
1559 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561 * mule-charset.c (Vcharacter_ideographic_radical_table): New
1563 (Vcharacter_ideographic_strokes_table): New variable.
1564 (Qideographic_radical): New variable.
1565 (Qideographic_strokes): New variable.
1566 (Fchar_attribute_alist): Use
1567 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1568 attribute; use `Vcharacter_ideographic_strokes_table' for
1569 `ideographic-strokes' attribute.
1570 (Fget_char_attribute): Likewise.
1571 (Fput_char_attribute): Likewise.
1572 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1573 `ideographic-strokes'.
1574 (vars_of_mule_charset): Setup
1575 `Vcharacter_ideographic_radical_table' and
1576 `Vcharacter_ideographic_strokes_table'.
1578 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1580 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1581 (Qtotal_strokes): New variable.
1582 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1583 `total-strokes' attribute.
1584 (Fget_char_attribute): Likewise.
1585 (Fput_char_attribute): Likewise.
1586 (syms_of_mule_charset): Add new symbol `total-strokes'.
1587 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1589 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1591 * mule-charset.c (Vcharacter_decomposition_table): New variable.
1592 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1594 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1595 `->decomposition' attribute.
1596 (Fput_char_attribute): Likewise.
1597 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1599 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601 * mule-charset.c (decoding_table_check_elements): New function.
1602 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1604 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606 * mule-charset.c (Fset_charset_mapping_table): Use
1607 `put_char_ccs_code_point'.
1609 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1611 * mule-charset.c (decoding_table_put_char): New inline function.
1612 (put_char_ccs_code_point): Use `decoding_table_put_char'.
1614 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1617 (XCHARSET_BYTE_SIZE): New macro.
1618 (decoding_table_remove_char): New inline function.
1619 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1620 `decoding_table_remove_char'.
1621 (remove_char_ccs): Use `decoding_table_remove_char'.
1622 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1624 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1626 * mule-charset.c (Vcharacter_name_table): New variable.
1627 (Qname): New variable.
1628 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1630 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1631 `Vcharacter_name_table' for `name' attribute.
1632 (Fremove_char_attribute): Use function `remove_char_ccs'.
1633 (put_char_ccs_code_point): New function.
1634 (remove_char_ccs): New function.
1635 (syms_of_mule_charset): Add new symbol `name'.
1636 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1638 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1640 * mule-charset.c (make_byte_table): Add new argument `older'.
1641 (make_char_id_table): Likewise.
1642 (copy_char_id_table): Comment out because it is not used.
1643 (put_char_id_table): Modify for `make_byte_table'.
1644 (Fput_char_attribute): Make encoding_table as older object;
1645 inherit older bit of `Vcharacter_composition_table'.
1646 (mark_charset): Don't mark `cs->encoding_table'.
1647 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1648 normal object; make `Vcharacter_composition_table' as an older
1649 object; delete staticpro for `Vcharacter_composition_table'; make
1650 `Vcharacter_variant_table' as a normal object.
1652 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1653 (mark_object): Don't check older object in UTF-2000.
1655 * lrecord.h (struct lrecord_header): Add new member `older' in
1657 (set_lheader_implementation): Setup `SLI_header->older' in
1659 (set_lheader_older_implementation): New macro in UTF-2000.
1660 (OLDER_RECORD_P): New macro in UTF-2000.
1661 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1662 (alloc_older_lcrecord): New prototype in UTF-2000.
1663 (alloc_older_lcrecord_type): New macro in UTF-2000.
1665 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667 * mule-charset.c (byte_table_description): Use
1668 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1669 (char_id_table_description): Delete bogus `, 1'.
1670 (Fget_char_attribute): Refer encoding_table of each coded-charset
1671 to get value of coded-charset attribute of a character.
1672 (Fput_char_attribute): Use `make_older_vector' instead of
1673 `make_vector'; use encoding_table of each coded-charset to store
1674 value of coded-charset attribute of a character.
1675 (Fremove_char_attribute): Use encoding_table of each coded-charset
1676 to store value of coded-charset attribute of a character.
1677 (mark_charset): Mark `cs->encoding_table'; don't mark
1678 `cs->decoding_table'.
1679 (charset_description): Add description of new member
1681 (make_charset): Initialize `encoding_table'.
1683 * char-ucs.h (struct Lisp_Charset): Add new member
1685 (CHARSET_ENCODING_TABLE): New macro.
1686 (XCHARSET_ENCODING_TABLE): New macro.
1687 (charset_code_point): New implementation.
1688 (encode_char_1): Likewise.
1690 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1691 (disksave_object_finalization_1): Call finalizers of
1692 `all_older_lcrecords' in UTF-2000.
1693 (make_older_vector): New function in UTF-2000.
1694 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1697 * lisp.h (make_older_vector): New prototype in UTF-2000.
1699 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1701 * lrecord.h (enum lrecord_type): Rename
1702 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1704 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1705 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1706 `get_char_code_table'.
1708 * mule-charset.c (mark_char_id_table): Renamed from
1709 `mark_char_code_table'.
1710 (char_id_table_equal): Renamed from `char_code_table_equal'.
1711 (char_id_table_hash): Renamed from `char_code_table_hash'.
1712 (make_char_id_table): Renamed from `make_char_code_table'.
1713 (copy_char_id_table): Renamed from `copy_char_code_table'.
1714 (get_char_id_table): Renamed from `get_char_code_table'.
1715 (put_char_id_table): Renamed from `put_char_code_table'.
1716 (to_char_id): Renamed from `to_char_code'.
1718 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1719 `Lisp_Char_Code_Table'.
1720 (char_id_table): Renamed from `char_code_table'.
1721 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1722 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1723 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1724 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1725 (get_char_id_table): Renamed from `get_char_code_table'.
1727 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1729 * lrecord.h (enum lrecord_type): Rename
1730 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1732 * mule-charset.c (mark_byte_table): Renamed from
1733 `mark_char_byte_table'.
1734 (byte_table_equal): Renamed from `char_byte_table_equal'.
1735 (byte_table_hash): Renamed from `byte_table_hash'.
1736 (make_byte_table): Renamed from `make_byte_table'.
1737 (copy_byte_table): Renamed from `copy_char_byte_table'.
1739 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1740 `Lisp_Char_Byte_Table'.
1741 (byte_table): Renamed from `char_byte_table'.
1742 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1743 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1744 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1745 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1747 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1749 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1750 (dfc_convert_to_internal_format): Likewise.
1752 * text-coding.c (Fcoding_system_canonical_name_p): New function.
1753 * text-coding.c (Fcoding_system_alias_p): New function.
1754 * text-coding.c (Fcoding_system_aliasee): New function.
1755 * text-coding.c (append_suffix_to_symbol): New function.
1756 * text-coding.c (dangling_coding_system_alias_p): New function.
1757 * text-coding.c (Ffind_coding_system):
1758 * text-coding.c (Fcopy_coding_system):
1759 * text-coding.c (encode_coding_no_conversion):
1760 * text-coding.c (syms_of_file_coding):
1761 * text-coding.c (vars_of_file_coding):
1762 Rewrite coding system alias code.
1763 Allow nested aliases, like symbolic links.
1764 Allow redefinition of coding system aliases.
1765 Prevent existence of dangling coding system aliases.
1766 Eliminate convert_to_external_format.
1767 Eliminate convert_to_internal_format.
1769 * text-coding.c: Change enum eol_type to eol_type_t.
1771 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1773 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1774 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1776 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1777 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1779 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1782 `ideograph-daikanwa'.
1784 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1785 (Vcharset_ucs_bmp): Likewise.
1786 (Vcharset_mojikyo): Add new extern variable definition.
1787 (Vcharset_latin_iso8859_2): Deleted because it is not used.
1788 (Vcharset_latin_iso8859_3): Likewise.
1789 (Vcharset_latin_iso8859_4): Likewise.
1790 (Vcharset_latin_iso8859_9): Likewise.
1791 (Vcharset_latin_viscii_lower): Likewise.
1792 (Vcharset_latin_viscii_upper): Likewise.
1793 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1794 `mojikyo' code-point is used to decode.
1795 (encode_char_2): New function [to convert `mojikyo' code-point to
1796 Mojikyo font encoding].
1797 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1798 (breakup_char_1): Likewise.
1799 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1801 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1803 * text-coding.c (Fmake_coding_system): Add document about
1804 `disable-composition' property.
1806 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1808 * text-coding.c (Qdisable_composition): New variable; delete
1810 (Fmake_coding_system): Add new property `disable-composite';
1811 delete property `composite'.
1812 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1813 instead of `!CODING_SYSTEM_COMPOSITE'.
1814 (syms_of_file_coding): Add new symbol `disable-composition';
1815 delete symbol `composite'.
1817 * file-coding.h (struct Lisp_Coding_System): Add
1818 `disable_composition'; delete `enable_composition'.
1819 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1820 `CODING_SYSTEM_COMPOSITE'.
1821 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1822 `XCODING_SYSTEM_COMPOSITE'.
1824 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1826 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1829 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1831 * text-coding.c (Qcomposite): New variable.
1832 (Fmake_coding_system): Add new property `composite'.
1833 (struct decoding_stream): Add `combined_char_count',
1834 `combined_chars' and `combining_table' in UTF-2000.
1835 (COMPOSE_FLUSH_CHARS): New macro.
1836 (COMPOSE_ADD_CHAR): New macro.
1837 (reset_decoding_stream): Reset `str->combined_char_count' and
1838 `str->combining_table' in UTF-2000.
1839 (decode_coding_iso2022): Modify for character-decomposition.
1840 (syms_of_file_coding): Add new symbol `composite'.
1842 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1844 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1845 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1846 of `Vcharacter_composition_table' if `->decomposition' property
1848 (Qlatin_tcvn5712): New variable.
1849 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1850 (complex_vars_of_mule_charset): Add new coded-charset
1853 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1855 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857 * file-coding.h (struct Lisp_Coding_System): Add
1858 `enable_composition'.
1859 (CODING_SYSTEM_COMPOSITE): New macro.
1860 (XCODING_SYSTEM_COMPOSITE): New macro.
1862 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
1864 * mule-canna.c (c2mu): Fix problem with UTF-2000.
1866 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
1868 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1869 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1871 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
1873 * mule-charset.c (Vcharset_mojikyo): New variable.
1874 (Fdefine_char): Don't use coded-charset which does not have
1875 non-builtin character range to allocate character-id.
1876 (Qmojikyo): New variable.
1877 (syms_of_mule_charset): Add new symbol `mojikyo'.
1878 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1880 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1881 (LEADING_BYTE_MOJIKYO): New macro.
1882 (MIN_CHAR_MOJIKYO): New macro.
1883 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1884 (MAX_CHAR_MOJIKYO): New macro.
1886 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
1888 * mule-charset.c (remove_char_attribute): Fixed.
1890 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
1892 * mule-charset.c (remove_char_attribute): New function.
1893 (Fremove_char_attribute): New function.
1894 (encode_builtin_char_1): Comment out builtin-support for
1895 greek-iso8859-7 and cyrillic-iso8859-5.
1896 (Fdecode_char): Check `code' is an integer.
1897 (syms_of_mule_charset): Add `remove-char-attribute'.
1898 (MIN_CHAR_GREEK): Deleted.
1899 (MAX_CHAR_GREEK): Likewise.
1900 (MIN_CHAR_CYRILLIC): Likewise.
1901 (MAX_CHAR_CYRILLIC): Likewise.
1902 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1903 MAX_CHAR_GREEK for `greek-iso8859-7'.
1905 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1906 (MAX_CHAR_GREEK): Likewise.
1907 (MIN_CHAR_CYRILLIC): Likewise.
1908 (MAX_CHAR_CYRILLIC): Likewise.
1910 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
1912 * mule-charset.c (Fdefine_char): Fix problem when new code-point
1913 format is used without `ucs' property.
1914 (Fdecode_char): Fix problem with GR representation.
1915 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1916 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1918 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1920 * mule-charset.c (make_builtin_char): New function.
1921 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1922 (Fset_charset_mapping_table): Modify for new representation of
1924 (Fdecode_char): New function.
1925 (syms_of_mule_charset): Add new builtin function `decode-char' in
1928 * char-ucs.h (make_builtin_char): New prototype.
1929 (DECODE_CHAR): New inline function.
1930 (MAKE_CHAR): Use `DECODE_CHAR'.
1932 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
1934 * text-coding.c (parse_charset_conversion_specs): Use
1935 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1937 (iso2022_designate): Likewise.
1939 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1940 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1942 * mule-charset.c (Vcharset_ucs): New variable.
1943 (print_charset): Change design; use `CHARSET_CHARS' and
1944 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1945 (make_charset): Change signature to specify `chars' and
1946 `dimension' instead of `type'.
1947 (range_charset_code_point): Modify for 256^n-set.
1948 (encode_builtin_char_1): Encode as `ucs' in default.
1949 (Fmake_charset): Modify for `make_charset'.
1950 (Fmake_reverse_direction_charset): Likewise.
1951 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1953 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1956 * char-ucs.h (Vcharset_ucs): New variable.
1957 (LEADING_BYTE_UCS): New macro.
1958 (struct Lisp_Charset): Delete `type'; change type of `dimension'
1959 and `chars' to `unsigned short' from `unsigned int'.
1960 (CHARSET_TYPE): Deleted.
1961 (XCHARSET_TYPE): Deleted.
1963 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
1965 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1967 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1968 (ENCODE_CHAR): New macro.
1970 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1972 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1973 to 0.14 (Kawachi-Katakami).
1975 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1977 * text-coding.c (char_encode_shift_jis): Modify for
1978 `charset_code_point'.
1979 (char_encode_iso2022): Likewise.
1981 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1982 (integer) instead of list of <Lisp_Object>s (integers) as the
1983 format of code-point of a coded-charset.
1984 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1985 (encode_builtin_char_1): New function; delete
1986 `split_builtin_char'.
1987 (charset_code_point): Return <int> instead of <Lisp_Object>.
1988 (Fsplit_char): Don't use `SPLIT_CHAR'.
1990 * char-ucs.h (encode_builtin_char_1): New prototype; delete
1991 prototype for `split_builtin_char'.
1992 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1993 (charset_code_point): Likewise.
1994 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1995 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1997 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
1999 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2000 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2002 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2004 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2006 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2007 (MAX_CHAR_OBS_94x94): Deleted.
2009 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2011 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2013 * char-ucs.h (MAX_CHAR_BMP): New macro.
2015 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2017 * text-coding.c: Sync with r21-2-24.
2019 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2021 * file-coding.c: Modify for UTF-2000.
2023 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2025 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2028 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2030 * mule-charset.c (split_builtin_char): Delete builtin support for
2031 `katakana-jisx0201'.
2032 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2033 BMP area in builtin representation.
2035 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2036 `Vcharset_katakana_jisx0201'.
2038 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2040 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2041 (Qisolated): New variable.
2042 (Qinitial): New variable.
2043 (Qmedial): New variable.
2044 (Qfinal): New variable.
2045 (Qvertical): New variable.
2046 (Qsmall): New variable.
2047 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2048 `Qvertical' and `Qsmall'.
2049 (Qmojikyo_pj_[1 .. 21]): New variable.
2050 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2051 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2052 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2055 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2057 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2058 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2059 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2061 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2063 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2064 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2066 (Qjapanese_jisx0208_1990): New variable.
2067 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2068 (complex_vars_of_mule_charset): Add new coded-charset
2069 `japanese-jisx0208-1990'.
2071 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2072 (MIN_CHAR_JIS_X0208_1990): New macro.
2073 (MAX_CHAR_JIS_X0208_1990): New macro.
2075 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2077 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2078 coded-charset is not found.
2080 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2082 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2083 (Fdefine_char): Use `Fmake_char'.
2085 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2087 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2088 (Vcharset_hiragana_jisx0208): Deleted.
2089 (Vcharset_katakana_jisx0208): Deleted.
2090 (Qideograph_daikanwa): New variable.
2091 (Qhiragana_jisx0208): Deleted.
2092 (Qkatakana_jisx0208): Deleted.
2093 (split_builtin_char): Split `ideograph-daikanwa'.
2094 (Fsplit_char): New implementation for UTF-2000.
2095 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2096 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2097 (complex_vars_of_mule_charset): Add new coded-charset
2098 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2099 `katakana-jisx0208'.
2101 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2102 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2103 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2104 (MIN_CHAR_DAIKANWA): New macro.
2105 (MAX_CHAR_DAIKANWA): New macro.
2107 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2109 * data.c (Fstring_to_number): Don't recognize floating point if
2112 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2114 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2116 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2118 * mule-charset.c (Qsquare): New variable.
2119 (to_char_code): Add `Qsquare'.
2120 (syms_of_mule_charset): Add new symbol `square'.
2122 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2124 * mule-charset.c (Qcircle): New variable.
2125 (to_char_code): Add `Qcircle'.
2126 (syms_of_mule_charset): Add new symbol `circle'.
2128 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2130 * mule-charset.c (Qfont): New variable.
2131 (to_char_code): Add `Qfont'.
2132 (syms_of_mule_charset): Add new symbol `font'.
2134 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2136 * mule-charset.c (Qsub): New variable.
2137 (to_char_code): Add `Qsub'.
2138 (syms_of_mule_charset): Add new symbol `sub'.
2140 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2142 * mule-charset.c (Fput_char_attribute): Convert each element of
2143 VALUE to GL position if ATTRIBUTE is a GR-set,
2145 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2147 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2148 coded-charset is a GR-set.
2150 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2152 * mule-charset.c (Fput_char_attribute): Check each element of
2153 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2155 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2157 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2159 (Qethiopic_ucs): New variable in UTF-2000.
2160 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2161 (complex_vars_of_mule_charset): Add new coded-charset
2162 `ethiopic-ucs' in UTF-2000.
2164 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2165 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2167 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2169 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2171 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2173 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2176 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2178 * mule-charset.c (Vcharacter_variant_table): New variable.
2179 (Q_ucs): New variable.
2180 (Fchar_variants): New function.
2181 (Fput_char_attribute): Register `->ucs' value to
2182 `Vcharacter_variant_table'.
2183 (syms_of_mule_charset): Add new function `char-variants' and new
2185 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2187 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2189 * mule-charset.c (get_char_code_table): Allow negative character
2191 (put_char_code_table): Likewise.
2192 (Vcharacter_composition_table): New variable.
2193 (Q_decomposition): New variable.
2194 (Qwide): New variable.
2195 (Qnarrow): New variable.
2196 (Qcompat): New variable.
2197 (QnoBreak): New variable.
2198 (Qsuper): New variable.
2199 (Qfraction): New variable.
2200 (to_char_code): New function.
2201 (Fget_composite_char): New function.
2202 (Fput_char_attribute): Register `->decomposition' value to
2203 `Vcharacter_composition_table'.
2204 (syms_of_mule_charset): Add new function `get-composite-char', new
2205 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2206 `super' and `fraction'.
2207 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2209 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2211 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2212 character; copy the return value.
2214 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2216 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2218 * mule-charset.c (range_charset_code_point): Must use make_int.
2219 (split_builtin_char): New function.
2221 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2223 * mule-charset.c (char_byte_table): Change name from
2224 "char-code-table" to "char-byte-table".
2225 (mark_char_code_table): New function.
2226 (char_code_table_equal): New function.
2227 (char_code_table_hash): New function.
2228 (char_code_table_description): New constant.
2229 (char_code_table): New type.
2230 (make_char_code_table): New function.
2231 (copy_char_code_table): New function.
2232 (get_char_code_table): Modify for `char_code_table' type.
2233 (put_char_code_table): Likewise.
2234 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2237 * char-ucs.h (char_code_table): New type.
2238 (XCHAR_CODE_TABLE): New macro.
2239 (XSETCHAR_CODE_TABLE): New macro.
2240 (CHAR_CODE_TABLE_P): New macro.
2241 (GC_CHAR_CODE_TABLE_P): New macro.
2242 (struct Lisp_Char_Code_Table): New structure.
2244 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2246 * mule-charset.c (Fmake_charset): Setup byte_offset for
2249 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2251 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2254 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2256 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2259 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2261 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2262 charset, it is regarded as a charset.
2263 (put_char_attribute): New function in UTF-2000.
2264 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2265 charset, mapping-table of the charset is modified.
2266 (Fdefine_char): New function in UTF-2000.
2267 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2268 `Fput_char_attribute'.
2269 (syms_of_mule_charset): Add new function `define-char' and new
2270 symbol `ucs' in UTF-2000.
2271 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2273 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2275 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2276 non-UTF-2000 configuration.
2278 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2280 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2281 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2283 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2285 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2286 (Fset_charset_mapping_table): Likewise.
2288 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2289 (CHARSET_ENCODING_TABLE): Delete.
2290 (XCHARSET_ENCODING_TABLE): Delete.
2291 (charset_code_point): New interface.
2293 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2295 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2296 instead of `charset_get_byte1' and `charset_get_byte2'.
2298 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2299 (charset_get_byte2): Deleted.
2301 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2303 * char-ucs.h (SPLIT_CHAR): New inline function.
2304 (breakup_char_1): Use `SPLIT_CHAR'.
2306 * mule-charset.c (range_charset_code_point): New function.
2307 (charset_code_point): New function.
2309 * char-ucs.h (range_charset_code_point): New interface.
2310 (breakup_char_1): Use `range_charset_code_point'.
2312 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2314 * mule-charset.c (Fmake_charset): Delete unused local variable
2317 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2318 (breakup_char_1): Find a charset and code-point in
2319 `Vcharacter_attribute_table'.
2321 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2323 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2326 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2328 * mule-charset.c (Vcharacter_attribute_table): New variable.
2329 (Fchar_attribute_alist): New function.
2330 (Fget_char_attribute): New function.
2331 (Fput_char_attribute): New function.
2332 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2334 (syms_of_mule_charset): Add new function `char-attribute-alist',
2335 `get-char-attribute' and `put-char-attribute'.
2336 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2338 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2340 * mule-charset.c (Fmake_charset): Just use
2341 `get_unallocated_leading_byte'.
2343 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2344 sets; don't use final-byte based number for private sets.
2346 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2348 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2351 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2353 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2356 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2358 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2359 of `CHAR_LEADING_BYTE' in UTF-2000.
2361 * insdel.c (find_charsets_in_bufbyte_string): Use
2362 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2363 (find_charsets_in_emchar_string): Likewise.
2365 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2366 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2368 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2369 (CHAR_CHARSET_ID): New macro.
2371 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2373 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2374 charset-id - MIN_LEADING_BYTE.
2375 (put_char_table): Likewise.
2377 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2379 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2380 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2381 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2382 (CHARSET_ID_OFFSET): New macro.
2383 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2384 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2385 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2386 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2388 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2390 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2391 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2392 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2393 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2394 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2396 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2398 * mule-charset.c (next_allocated_leading_byte): New variable in
2400 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2401 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2402 (get_unallocated_leading_byte): Simply use
2403 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2404 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2407 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2408 (MAX_LEADING_BYTE_PRIVATE): New macro.
2409 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2410 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2412 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2414 * mule-charset.c (Fmake_charset): Allocate final-byte based
2415 charset-id for 94-set, 96-set and 94x94-set.
2417 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2419 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2421 (Fmake_charset): Likewise.
2422 (complex_vars_of_mule_charset): Modify the font registry of
2423 `ucs-bmp' not to match `Ethiopic-Unicode'.
2425 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2427 * mule-charset.c (complex_vars_of_mule_charset): Add font
2428 registory of `ucs-bmp'.
2430 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2432 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2433 coded-charsets in `default-coded-charset-priority-list' when
2434 breaking up a character.
2436 * mule-charset.c (Vcharset_latin_viscii): New variable.
2437 (Qlatin_viscii): New variable.
2438 (make_charset): Don't use `decoding_table'.
2439 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2441 (Fset_charset_mapping_table): New implementation.
2442 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2443 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2444 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2445 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2446 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2447 charset `latin_viscii'.
2449 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2450 (CHARSET_TYPE_94X94): Change to 1 from 2.
2451 (CHARSET_TYPE_96): Change to 2 from 1.
2452 (CHARSET_TYPE_128): New macro.
2453 (CHARSET_TYPE_128X128): Change to 5 from 4.
2454 (CHARSET_TYPE_256): New macro.
2455 (CHARSET_TYPE_256X256): Change to 7 from 5.
2456 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2458 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2460 * text-coding.c (char_encode_shift_jis): Refer
2461 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2462 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2464 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2465 (char_byte_table_equal): New function in UTF-2000.
2466 (char_byte_table_hash): New function in UTF-2000.
2467 (char_byte_table_description): New constant in UTF-2000.
2468 (char_byte_table): New type in UTF-2000.
2469 (make_char_byte_table): New function in UTF-2000.
2470 (copy_char_byte_table): New function in UTF-2000.
2471 (make_char_code_table): New macro in UTF-2000.
2472 (get_char_code_table): New function in UTF-2000.
2473 (put_char_code_table): New function in UTF-2000.
2474 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2475 (charset_description): Add setting in UTF-2000.
2476 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2477 `CHARSET_TO_BYTE1_TABLE(cs)'.
2478 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2479 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2480 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2481 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2482 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2483 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2484 `CHARSET_TO_BYTE2_TABLE(cs)'.
2486 * char-ucs.h (char_byte_table): New type.
2487 (XCHAR_BYTE_TABLE): New macro.
2488 (XSETCHAR_BYTE_TABLE): New macro.
2489 (CHAR_BYTE_TABLE_P): New macro.
2490 (GC_CHAR_BYTE_TABLE_P): New macro.
2491 (struct Lisp_Char_Byte_Table): New structure.
2492 (get_char_code_table): New interface.
2493 (Emchar_to_byte_table): Deleted.
2494 (get_byte_from_character_table): Deleted.
2495 (struct Lisp_Charset): Add `encoding_table'; delete
2496 `to_byte1_table' and `to_byte2_table'.
2497 (CHARSET_ENCODING_TABLE): New macro.
2498 (CHARSET_TO_BYTE1_TABLE): Deleted.
2499 (CHARSET_TO_BYTE2_TABLE): Deleted.
2500 (XCHARSET_ENCODING_TABLE): New macro.
2501 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2502 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2504 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2506 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2507 `vietnamese-viscii-*'.
2509 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2511 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2512 (Qvietnamese_viscii_upper): New variable.
2513 (Fdefine_charset_alias): New function.
2514 (syms_of_mule_charset): Add new function `define-charset-alias'.
2515 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2516 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2519 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2521 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2522 (MAX_CHAR_OBS_94x94): New macro.
2523 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2526 * mule-charset.c (put_byte_from_character_table): Change unit size
2528 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2530 (Fmake_reverse_direction_charset): Modify dummy argument of
2531 `make_charset' for non-UTF-2000 environment.
2533 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2535 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2537 * mule-charset.c (destroy_byte_from_character_table): New macro.
2538 (latin_jisx0201_to_ucs): Deleted.
2539 (latin_iso8859_2_to_ucs): Deleted.
2540 (latin_iso8859_3_to_ucs): Deleted.
2541 (latin_iso8859_4_to_ucs): Deleted.
2542 (latin_iso8859_9_to_ucs): Deleted.
2543 (latin_viscii_lower_to_ucs): Deleted.
2544 (latin_viscii_upper_to_ucs): Deleted.
2545 (mark_charset): Mark `cs->decoding_table'.
2546 (Fcharset_mapping_table): Fix DOC-string.
2547 (Fset_charset_mapping_table): New function.
2548 (syms_of_mule_charset): Add nwe function
2549 `set-charset-mapping-table'.
2550 (complex_vars_of_mule_charset): Don't setup and use
2553 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
2555 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2558 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
2560 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2561 (Vcharset_katakana_jisx0208): New variable.
2562 (Qhiragana_jisx0208): New variable.
2563 (Qkatakana_jisx0208): New variable.
2564 (make_charset): Add new argument `byte_offset'.
2565 (charset_get_byte1): Modify for new coded-charset definition; use
2566 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2567 `XCHARSET_BYTE_OFFSET'.
2568 (Fmake_charset): Modify for `make_charset'.
2569 (Fmake_reverse_direction_charset): Likewise.
2570 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2571 `katakana-jisx0208'.
2572 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2573 `.' in font registry of charset `katakana-jisx0201',
2574 `latin-jisx0201', `vietnamese-viscii-lower' and
2575 `vietnamese-viscii-upper'; modify DOC-string of charset
2576 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2577 registry of charset `japanese-jisx0208' not to use font for JIS
2578 X0208:1990; add new charset `hiragana-jisx0208' and
2579 `katakana-jisx0208'.
2581 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2582 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2583 (struct Lisp_Charset): Add `byte_offset'.
2584 (CHARSET_BYTE_OFFSET): New macro.
2585 (XCHARSET_UCS_MIN): New macro.
2586 (XCHARSET_UCS_MAX): New macro.
2587 (XCHARSET_CODE_OFFSET): New macro.
2588 (XCHARSET_BYTE_OFFSET): New macro.
2589 (MIN_CHAR_HIRAGANA): New macro.
2590 (MAX_CHAR_HIRAGANA): New macro.
2591 (MIN_CHAR_KATAKANA): New macro.
2592 (MAX_CHAR_KATAKANA): New macro.
2593 (MAKE_CHAR): Modify for new coded-charset definition; use
2594 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2595 `XCHARSET_BYTE_OFFSET'.
2597 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2599 * mule-charset.c (CHAR96): Deleted.
2600 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2602 (latin_iso8859_2_to_ucs): Likewise.
2603 (latin_iso8859_3_to_ucs): Likewise.
2604 (latin_iso8859_4_to_ucs): Likewise.
2605 (latin_iso8859_9_to_ucs): Likewise.
2606 (latin_viscii_lower_to_ucs): Likewise.
2607 (latin_viscii_upper_to_ucs): Likewise.
2608 (latin_tcvn5712_to_ucs): Commented out.
2609 (make_charset): Change type of argument `decoding_table' from
2610 <Emchar*> to <Lisp_Object> [vector of characters].
2611 (Fmake_charset): Modify for `make_charset'.
2612 (Fmake_reverse_direction_charset): Likewise.
2613 (Fcharset_mapping_table): New function in UTF-2000.
2614 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2616 (complex_vars_of_mule_charset): Modify for type change of
2617 `*_to_ucs'; modify for `make_charset'.
2619 * char-ucs.h (struct Lisp_Charset): Change type of
2620 `decoding_table' from <Emchar*> to <Lisp_Object>.
2621 (MAKE_CHAR): Modify for new specification of `decoding_table'.
2623 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2625 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2626 error with non-UTF-2000-Mule.
2628 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
2630 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2632 (Vcharset_chinese_cns11643_4): Likewise.
2633 (Vcharset_chinese_cns11643_5): Likewise.
2634 (Vcharset_chinese_cns11643_6): Likewise.
2635 (Vcharset_chinese_cns11643_7): Likewise.
2636 (Qchinese_cns11643_3): Likewise.
2637 (Qchinese_cns11643_4): Likewise.
2638 (Qchinese_cns11643_5): Likewise.
2639 (Qchinese_cns11643_6): Likewise.
2640 (Qchinese_cns11643_7): Likewise.
2641 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2642 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2643 and `chinese-cns11643-7' to lisp/mule/chinese.el.
2644 (complex_vars_of_mule_charset): Likewise.
2646 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2648 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2650 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2651 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2653 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2655 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2657 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2658 (breakup_char_1): Likewise.
2660 * text-coding.c (char_encode_iso2022): Keep designated charsets if
2661 one of them includes the specified character.
2663 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2665 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2667 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2669 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2671 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2673 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2674 definition for non-UTF-2000 Mule.
2675 (latin_iso8859_3_to_ucs): Likewise.
2676 (latin_iso8859_4_to_ucs): Likewise.
2677 (latin_iso8859_9_to_ucs): Likewise.
2678 (latin_jisx0201_to_ucs): Likewise.
2679 (MIN_CHAR_THAI): Likewise.
2680 (MAX_CHAR_THAI): Likewise.
2681 (MIN_CHAR_GREEK): Likewise.
2682 (MAX_CHAR_GREEK): Likewise.
2683 (MIN_CHAR_HEBREW): Likewise.
2684 (MAX_CHAR_HEBREW): Likewise.
2685 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2686 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2687 (MIN_CHAR_CYRILLIC): Likewise.
2688 (MAX_CHAR_CYRILLIC): Likewise.
2690 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2692 * char-ucs.h (breakup_char_1): Use
2693 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2694 thai-tis620 and katakana-jisx0201 area.
2696 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2698 * char-ucs.h (breakup_char_1): Use
2699 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2702 * text-coding.c (reset_encoding_stream): Fixed.
2703 (char_encode_ucs4): Delete `& 255'.
2705 * char-ucs.h (breakup_char_1): Use
2706 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2708 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2710 * file-coding.c (Fmake_coding_system): Don't set up
2711 `codesys->fixed.size'.
2712 (encode_coding_no_conversion): Don't refer
2713 `str->codesys->fixed.size'.
2715 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2717 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2718 (latin_a_char_to_byte1): Deleted.
2719 (latin_a_char_to_byte2): Deleted.
2721 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2723 * mule-charset.c (make_charset): Add new argument `ucs_min',
2724 `ucs_max' and `code_offset'.
2725 (charset_get_byte1): New implementation [delete specific charset
2726 depended implementations].
2727 (Fmake_charset): Modify for `make_charset'.
2728 (Fmake_reverse_direction_charset): Likewise.
2729 (complex_vars_of_mule_charset): Likewise.
2731 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2733 (CHARSET_UCS_MIN): New macro.
2734 (CHARSET_UCS_MAX): New macro.
2735 (CHARSET_CODE_OFFSET): New macro.
2736 (MAKE_CHAR): Delete charset depended definitions [except
2739 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2741 * char-ucs.h (breakup_char_1): Use
2742 `Vdefault_coded_charset_priority_list' for C0-Controls,
2743 Basic-Latin, C1-Controls and Latin-1-Supplement area.
2745 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2747 * char-ucs.h (charset_get_byte1): New function.
2748 (XCHARSET_GET_BYTE1): Deleted.
2749 (charset_get_byte2): New function.
2750 (XCHARSET_GET_BYTE2): Deleted.
2751 (Vdefault_coded_charset_priority_list): New external variable.
2752 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2753 `Vdefault_preferred_coded_charset_list'.
2755 * mule-charset.c (charset_get_byte1): New function.
2756 (charset_get_byte2): New function.
2757 (Vdefault_coded_charset_priority_list): New variable.
2758 (vars_of_mule_charset): Add new variable
2759 `default-coded-charset-priority-list'.
2761 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2763 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2764 (XCHARSET_GET_BYTE2): New inline function.
2765 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2766 `XCHARSET_GET_BYTE2'.
2768 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2770 * mule-charset.c (make_charset): Initialize
2771 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2772 NULL if table is not defined.
2774 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2776 * text-coding.c (char_encode_shift_jis): Use
2777 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2778 `ucs_to_latin_jisx0201'.
2780 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2781 (ucs_to_latin_iso8859_2): Deleted.
2782 (ucs_to_latin_iso8859_3): Deleted.
2783 (ucs_to_latin_iso8859_4): Deleted.
2784 (ucs_to_latin_iso8859_9): Deleted.
2785 (ucs_to_latin_viscii_lower): Deleted.
2786 (ucs_to_latin_viscii_upper): Deleted.
2787 (ucs_to_latin_tcvn5712): Deleted.
2788 (make_charset): Add new argument `decoding_table'; set up
2789 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2790 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2791 `decoding_table' is defined in UTF-2000.
2792 (Fmake_charset): Modify for `make_charset'.
2793 (Fmake_reverse_direction_charset): Likewise.
2794 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2795 and `GENERATE_96_SET'.
2797 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2798 (ucs_to_latin_jisx0201): Deleted.
2799 (latin_iso8859_2_to_ucs): Deleted.
2800 (ucs_to_latin_iso8859_2): Deleted.
2801 (latin_iso8859_3_to_ucs): Deleted.
2802 (ucs_to_latin_iso8859_3): Deleted.
2803 (latin_iso8859_4_to_ucs): Deleted.
2804 (ucs_to_latin_iso8859_4): Deleted.
2805 (latin_iso8859_9_to_ucs): Deleted.
2806 (ucs_to_latin_iso8859_9): Deleted.
2807 (latin_viscii_lower_to_ucs): Deleted.
2808 (ucs_to_latin_viscii_lower): Deleted.
2809 (latin_viscii_upper_to_ucs): Deleted.
2810 (ucs_to_latin_viscii_upper): Deleted.
2811 (struct Lisp_Charset): Renamed `encoding_table' to
2812 `to_byte1_table'; add `to_byte2_table'.
2813 (CHARSET_DECODING_TABLE): New macro.
2814 (CHARSET_TO_BYTE1_TABLE): New macro.
2815 (CHARSET_TO_BYTE2_TABLE): New macro.
2816 (XCHARSET_DECODING_TABLE): New macro.
2817 (XCHARSET_TO_BYTE1_TABLE): New macro.
2818 (XCHARSET_TO_BYTE2_TABLE): New macro.
2819 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2821 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2822 don't use `ucs_to_*' tables.
2824 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2826 * text-coding.c (Fmake_coding_system): Don't set up
2827 `codesys->fixed.size'.
2828 (encode_coding_no_conversion): Use `if' instead of `switch'.
2830 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2832 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2834 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2835 (Fmake_charset): Modify for `make_charset'.
2836 (Fmake_reverse_direction_charset): Likewise.
2837 (complex_vars_of_mule_charset): Likewise.
2839 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2841 * text-coding.c (char_encode_shift_jis): Use table
2842 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2844 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2846 * text-coding.c (text_encode_generic): Use `if' instead of
2848 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2851 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2853 * text-coding.c (encode_coding_sjis): Deleted.
2854 (char_encode_shift_jis): New function.
2855 (char_finish_shift_jis): New function.
2856 (reset_encoding_stream): Set up `encode_char' and `finish' for
2857 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2858 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2859 (char_encode_utf8): Treat `eol_type'.
2861 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2863 * file-coding.c (decode_coding_iso2022): Use
2864 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2866 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2868 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2871 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2873 * char-lb.h (CHAR_COLUMNS): New macro.
2875 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2877 * text-coding.c (char_encode_ucs4): New function.
2878 (char_finish_ucs4): New function.
2879 (encode_coding_ucs4): Deleted.
2880 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2881 (text_encode_generic): Delete local variable `charset' and `half'.
2882 (ucs_to_mule_table): Deleted.
2883 (mule_to_ucs_table): Deleted.
2884 (Fset_ucs_char): Deleted.
2885 (ucs_to_char): Deleted.
2886 (Fucs_char): Deleted.
2887 (Fset_char_ucs): Deleted.
2888 (Fchar_ucs): Deleted.
2889 (decode_ucs4): Deleted.
2890 (mule_char_to_ucs4): Deleted.
2891 (encode_ucs4): Deleted.
2892 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2893 (decode_coding_utf8): Likewise.
2894 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2895 (char_encode_iso2022): Fixed.
2896 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2897 `Fset_char_ucs' and `Fchar_ucs'.
2898 (complex_vars_of_file_coding): Don't initialize
2899 `ucs_to_mule_table'.
2901 * objects-tty.c (tty_initialize_font_instance): Don't use
2904 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2907 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2908 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2910 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2911 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2912 (emchar_string_displayed_columns): Likewise.
2914 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2915 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2916 (string_column_at_point): Likewise.
2917 (Fmove_to_column): Likewise.
2919 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2920 `encoding_table' and `decoding_table'.
2921 (CHARSET_REP_BYTES): Deleted.
2922 (XCHARSET_REP_BYTES): Deleted.
2923 (XCHARSET_COLUMNS): Deleted.
2924 (CHAR_COLUMNS): New macro.
2925 (lookup_composite_char): Deleted unconditionally.
2926 (composite_char_string): Likewise.
2928 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2930 * char-ucs.h (Emchar_to_byte_table): New type.
2931 (get_byte_from_character_table): New function interface.
2932 (Vcharset_latin_jisx0201): New variable.
2933 (latin_jisx0201_to_ucs): New variable.
2934 (ucs_to_latin_jisx0201): New variable.
2935 (Vcharset_latin_iso8859_2): New variable.
2936 (latin_iso8859_2_to_ucs): New variable.
2937 (ucs_to_latin_iso8859_2): New variable.
2938 (Vcharset_latin_iso8859_3): New variable.
2939 (latin_iso8859_3_to_ucs): New variable.
2940 (ucs_to_latin_iso8859_3): New variable.
2941 (Vcharset_latin_iso8859_4): New variable.
2942 (latin_iso8859_4_to_ucs): New variable.
2943 (ucs_to_latin_iso8859_4): New variable.
2944 (Vcharset_latin_iso8859_9): New variable.
2945 (latin_iso8859_9_to_ucs): New variable.
2946 (ucs_to_latin_iso8859_9): New variable.
2947 (Vcharset_latin_viscii_lower): New variable.
2948 (latin_viscii_lower_to_ucs): New variable.
2949 (ucs_to_latin_viscii_lower): New variable.
2950 (Vcharset_latin_viscii_upper): New variable.
2951 (latin_viscii_upper_to_ucs): New variable.
2952 (ucs_to_latin_viscii_upper): New variable.
2953 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2954 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2955 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2956 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2957 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2958 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2959 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2960 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2961 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2962 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2964 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2965 (Vcharset_latin_viscii_upper): New variable.
2966 (make_byte_from_character_table): New function.
2967 (put_byte_from_character_table): New function.
2968 (get_byte_from_character_table): New function.
2969 (CHAR96): New macro.
2970 (ucs_to_latin_jisx0201): New variable.
2971 (latin_jisx0201_to_ucs): New variable.
2972 (ucs_to_latin_iso8859_2): New variable.
2973 (latin_iso8859_2_to_ucs): New variable.
2974 (ucs_to_latin_iso8859_3): New variable.
2975 (latin_iso8859_3_to_ucs): New variable.
2976 (ucs_to_latin_iso8859_4): New variable.
2977 (latin_iso8859_4_to_ucs): New variable.
2978 (ucs_to_latin_iso8859_9): New variable.
2979 (latin_iso8859_9_to_ucs): New variable.
2980 (ucs_to_latin_viscii_lower): New variable.
2981 (latin_viscii_lower_to_ucs): New variable.
2982 (ucs_to_latin_viscii_upper): New variable.
2983 (latin_viscii_upper_to_ucs): New variable.
2984 (ucs_to_latin_tcvn5712): New variable.
2985 (latin_tcvn5712_to_ucs): New variable.
2986 (Qlatin_viscii_lower): New variable.
2987 (Qlatin_viscii_upper): New variable.
2988 (syms_of_mule_charset): Set up new symbol
2989 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2990 (complex_vars_of_mule_charset): Set up new charset
2991 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2992 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2993 `ucs_to_<CHARSET>' tables.
2995 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2997 * text-coding.c: New file.
2999 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3001 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3003 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3004 (MAKE_CHAR): Modify for `ucs-bmp'.
3005 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3006 non-MULE characters of BMP.
3008 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3010 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3013 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3016 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3017 - Include character.h for `CHAR_ASCII_P'.
3019 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3021 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3022 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3024 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3025 (BYTE_C0_P): Likewise.
3026 (BYTE_C1_P): Likewise.
3027 (Lstream_get_emchar_1): Likewise.
3028 (Lstream_fput_emchar): Likewise.
3029 (Lstream_funget_emchar): Likewise.
3030 (copy_internal_to_external): Likewise.
3031 (copy_external_to_internal): Likewise.
3033 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3034 (BYTE_C0_P): Likewise.
3035 (BYTE_C1_P): Likewise.
3036 (Lstream_get_emchar_1): Likewise.
3037 (Lstream_fput_emchar): Likewise.
3038 (Lstream_funget_emchar): Likewise.
3039 (copy_internal_to_external): Likewise.
3040 (copy_external_to_internal): Likewise.
3042 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3043 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3045 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3046 (BYTE_ASCII_P): Moved to mb-1byte.h.
3048 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3050 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3052 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3053 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3054 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3055 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3056 (VALIDATE_CHARPTR_FORWARD): Likewise.
3057 (simple_charptr_emchar): Moved to mb-multibyte.h.
3058 (simple_set_charptr_emchar): Likewise.
3059 (simple_charptr_copy_char): Likewise.
3060 (non_ascii_charptr_emchar): Likewise.
3061 (non_ascii_set_charptr_emchar): Likewise.
3062 (non_ascii_charptr_copy_char): Likewise.
3063 (charptr_emchar): Moved to mb-*byte.h.
3064 (set_charptr_emchar): Likewise.
3065 (charptr_copy_char): Likewise.
3067 * mb-1byte.h, mb-multibyte.h: New files.
3069 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3071 * mb-utf-8.h (MULTIBYTE): New macro.
3072 (MAX_EMCHAR_LEN): Moved from buffer.h.
3073 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3075 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3077 * mb-lb.h, multibyte.h: New files.
3079 * char-1byte.h (Charset_ID): Moved from buffer.h.
3080 (MIN_LEADING_BYTE): Likewise.
3081 (LEADING_BYTE_ASCII): Likewise.
3082 (NUM_LEADING_BYTES): Likewise.
3083 (CHARSETP): Likewise.
3084 (CHARSET_BY_LEADING_BYTE): Likewise.
3085 (XCHARSET_LEADING_BYTE): Likewise.
3086 (XCHARSET_GRAPHIC): Likewise.
3087 (XCHARSET_COLUMNS): Likewise.
3088 (XCHARSET_DIMENSION): Likewise.
3089 (CHAR_CHARSET): Likewise.
3090 (CHAR_LEADING_BYTE): Likewise.
3091 (BREAKUP_CHAR): Likewise.
3092 (Vcharset_ascii): Likewise.
3094 * buffer.h: Include multibyte.h unconditionally.
3095 (VALID_CHARPTR_P): Moved to multibyte.h.
3096 (ASSERT_VALID_CHARPTR): Likewise.
3097 (REAL_INC_CHARPTR): Likewise.
3098 (REAL_INC_CHARBYTIND): Likewise.
3099 (REAL_DEC_CHARPTR): Likewise.
3100 (INC_CHARPTR): Likewise.
3101 (INC_CHARBYTIND): Likewise.
3102 (DEC_CHARPTR): Likewise.
3103 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3104 (VALIDATE_CHARPTR_FORWARD): Likewise.
3105 (charptr_n_addr): Likewise.
3106 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3107 (simple_charptr_emchar): Moved to multibyte.h.
3108 (simple_set_charptr_emchar): Likewise.
3109 (simple_charptr_copy_char): Likewise.
3110 (non_ascii_charptr_emchar): Likewise.
3111 (non_ascii_set_charptr_emchar): Likewise.
3112 (non_ascii_charptr_copy_char): Likewise.
3113 (charptr_emchar): Likewise.
3114 (set_charptr_emchar): Likewise.
3115 (charptr_copy_char): Likewise.
3116 (charptr_emchar_n): Likewise.
3117 (Charset_ID): Moved to char-1byte.h.
3118 (Vcharset_ascii): Likewise.
3119 (CHAR_CHARSET): Likewise.
3120 (CHAR_LEADING_BYTE): Likewise.
3121 (LEADING_BYTE_ASCII): Likewise.
3122 (NUM_LEADING_BYTES): Likewise.
3123 (MIN_LEADING_BYTE): Likewise.
3124 (CHARSETP): Likewise.
3125 (CHARSET_BY_LEADING_BYTE): Likewise.
3126 (XCHARSET_LEADING_BYTE): Likewise.
3127 (XCHARSET_GRAPHIC): Likewise.
3128 (XCHARSET_COLUMNS): Likewise.
3129 (XCHARSET_DIMENSION): Likewise.
3130 (BREAKUP_CHAR): Likewise.
3132 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3134 * character.h: Add document about interface for characters.
3136 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3137 (MAKE_CHAR): Delete comment about
3138 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3139 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3140 (BREAKUP_CHAR): Modify name of arguments.
3141 (CHAR_CHARSET): Modify name of argument.
3143 * buffer.h: Delete document about Emchar accessors.
3145 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3147 * character.h (CHAR_INTP): Moved from buffer.h
3148 (CHAR_OR_CHAR_INTP): Likewise.
3149 (XCHAR_OR_CHAR_INT): Likewise.
3150 (CHECK_CHAR_COERCE_INT): Likewise.
3152 * buffer.h (CHAR_INTP): Moved to character.h
3153 (CHAR_OR_CHAR_INTP): Likewise.
3154 (XCHAR_OR_CHAR_INT): Likewise.
3155 (CHECK_CHAR_COERCE_INT): Likewise.
3157 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3160 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3161 - Include char-1byte.h, char-lb.h or char-ucs.h.
3163 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3165 * buffer.h: Include character unconditionally.
3166 (valid_char_p): Moved to char-*.h.
3167 (non_ascii_valid_char_p): Moved to char-lb.h.
3169 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3171 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3173 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3174 in UTF-2000 because it is not ported yet and not to use
3175 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3176 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3177 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3179 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3180 (CHAR_ASCII_P): Moved from character.h.
3182 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3183 (CHAR_ASCII_P): Likewise.
3184 (CHAR_FIELD1_MASK): Deleted.
3185 (CHAR_FIELD2_MASK): Deleted.
3186 (CHAR_FIELD3_MASK): Deleted.
3187 (MAX_CHAR_BASIC_LATIN): New macro.
3188 (CHAR_FIELD1): Deleted.
3189 (CHAR_FIELD2_INTERNAL): Deleted.
3190 (CHAR_FIELD3_INTERNAL): Deleted.
3191 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3192 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3193 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3194 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3195 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3196 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3197 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3198 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3199 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3200 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3201 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3202 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3203 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3204 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3205 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3206 (MIN_CHAR_COMPOSITION): Deleted.
3207 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3208 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3210 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3212 * buffer.h: Include mb-utf-8.h in UTF-2000.
3214 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3216 * mb-utf-8.h: New file.
3218 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3220 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3223 * mule-charset.h, buffer.h (Charset_ID): New type.
3225 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3227 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3228 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3229 instead of `MULE_CHAR_PRIVATE_OFFSET',
3230 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3231 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3232 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3234 * character.h (Vcharset_japanese_jisx0212): New variable
3237 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3239 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3240 (charset_by_attributes): Delete array about direction.
3241 (latin_a_char_to_charset): New variable in UTF-2000.
3242 (latin_a_char_to_byte1): New variable in UTF-2000.
3243 (latin_a_char_to_byte2): New variable in UTF-2000.
3244 (Qucs_bmp): New variable.
3245 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3247 (next_allocated_2_byte_leading_byte): Likewise.
3248 (non_ascii_set_charptr_emchar): Likewise.
3249 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3250 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3251 `charset_by_attributes'.
3252 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3253 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3254 and `CHARSET_BY_LEADING_BYTE'.
3255 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3256 `utf-2000-version' to `vars_of_mule_charset'.
3257 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3258 define `leading-code-private-11' in UTF-2000; move setting of
3259 `utf-2000-version' from `syms_of_mule_charset'.
3260 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3263 * character.h (Charset_ID): New type.
3264 (LEADING_BYTE_UCS_BMP): New macro.
3265 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3266 (CHARSET_ID_OFFSET_94): New macro.
3267 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3268 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3269 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3271 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3272 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3273 (CHARSET_ID_OFFSET_96): New macro.
3274 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3275 CHARSET_ID_OFFSET_96 and final-byte.
3276 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3277 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3278 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3279 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3280 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3281 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3282 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3283 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3284 (LEADING_BYTE_THAI_TIS620): Likewise.
3285 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3286 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3287 (CHARSET_ID_OFFSET_94x94): New macro.
3288 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3289 CHARSET_ID_OFFSET_94x94 and final-byte.
3290 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3291 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3292 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3293 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3294 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3295 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3296 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3297 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3298 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3299 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3300 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3301 (CHARSET_TYPE_128X128): New macro.
3302 (CHARSET_TYPE_256X256): New macro.
3303 (XCHARSET_PRIVATE_P): Delete unconditionally.
3304 (charset_by_attributes): Delete array about direction.
3305 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3306 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3307 (MIN_CHAR_94): New macro.
3308 (MAX_CHAR_94): New macro.
3309 (MIN_CHAR_96): New macro.
3310 (MAX_CHAR_96): New macro.
3311 (MIN_CHAR_94x94): New macro.
3312 (MAX_CHAR_94x94): New macro.
3313 (MIN_CHAR_96x96): New macro.
3314 (MAX_CHAR_96x96): New macro.
3315 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3316 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3317 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3319 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3320 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3321 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3322 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3323 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3324 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3325 `XCHARSET_LEADING_BYTE' to make code-point.
3326 (latin_a_char_to_charset): New variable.
3327 (latin_a_char_to_byte1): New variable.
3328 (latin_a_char_to_byte2): New variable.
3329 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3330 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3331 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3333 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3334 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3335 (find_charsets_in_emchar_string): Likewise.
3336 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3338 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3340 (decode_coding_iso2022): Likewise.
3342 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3345 * redisplay.c (redisplay_text_width_emchar_string): Use
3346 `Charset_ID' instead of `unsigned char'.
3347 (redisplay_frame_text_width_string): Likewise.
3349 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3352 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3353 instead of `unsigned char'.
3354 (face_cachel_charset_font_metric_info): Likewise.
3356 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3357 (get_non_ascii_char_table_value): Likewise.
3358 (get_char_table): Likewise.
3359 (put_char_table): Likewise.
3360 (map_over_other_charset): Likewise.
3361 (map_char_table): Likewise.
3363 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3364 instead of `unsigned char'.
3366 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3368 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3369 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3371 * mule-charset.c (leading_code_private_11): Don't define in
3374 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3375 in UTF-2000 because it is not ported yet and not to use
3376 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3378 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3380 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3382 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3384 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3387 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3388 of unsigned char to store leading-byte.
3390 * chartab.c (get_non_ascii_char_table_value): Don't use
3391 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3393 * file-coding.c (encode_coding_big5): Delete bogus implementation
3396 * character.h (LEADING_BYTE_*): Delete definition for
3398 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3399 (LEADING_BYTE_PREFIX_P): Deleted.
3400 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3401 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3402 (BUFBYTE_LEADING_BYTE_P): Deleted.
3403 (CHARSET_PRIVATE_P): Deleted unconditionally.
3404 (rep_bytes_by_first_byte): Deleted unconditionally.
3405 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3406 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3407 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3408 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3409 (CHAR_FIELD2): Deleted.
3410 (CHAR_FIELD3): Deleted.
3411 (MAKE_CHAR): Delete definition for non-UTF-2000.
3412 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3413 (breakup_char_1): New implementation.
3414 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3415 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3417 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3419 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3422 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3424 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3425 (CHARSET_PRIVATE_P): Likewise.
3426 (XCHARSET_PRIVATE_P): Likewise.
3427 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3429 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3431 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3433 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3435 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3436 (NUM_LEADING_BYTES): Changed from 128 to 256.
3437 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3438 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3440 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3442 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3444 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3445 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3446 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3447 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3448 (Qchinese_cns11643_3): New variable in UTF2000.
3449 (Qchinese_cns11643_4): New variable in UTF2000.
3450 (Qchinese_cns11643_5): New variable in UTF2000.
3451 (Qchinese_cns11643_6): New variable in UTF2000.
3452 (Qchinese_cns11643_7): New variable in UTF2000.
3453 (syms_of_mule_charset): Define `chinese-cns11643-3',
3454 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3455 and `chinese-cns11643-7' in UTF2000.
3456 (vars_of_mule_charset): Initialize
3457 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3459 (complex_vars_of_mule_charset): Setup charset
3460 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3461 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3463 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3465 * mule-charset.c: Move setting for `leading-code-private-11' from
3466 `syms_of_mule_charset' to `vars_of_mule_charset'.
3468 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3470 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3471 and `NUM_LEADING_BYTES' in assert.
3473 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3475 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3477 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3478 `NUM_LEADING_BYTES' instead of 128.
3480 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3482 * mule-charset.h (charset_by_leading_byte): Use
3483 `NUM_LEADING_BYTES' instead of 128.
3484 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3486 * mule-charset.c (charset_by_leading_byte): Use
3487 `NUM_LEADING_BYTES' instead of 128.
3488 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3490 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3493 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3495 * mule-charset.c (syms_of_mule_charset): Update to
3498 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3500 * file-coding.c (encode_coding_sjis): New implementation for
3501 UTF2000. (decode_coding_sjis): Ditto.
3503 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3505 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3506 Don't define in UTF2000.
3508 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3511 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3512 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3515 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3517 * config.h.in (CHAR_IS_UCS4): New macro.
3519 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3520 conventional MULE representation.
3521 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3523 * mule-charset.h: Reverted to original.
3525 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3526 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3527 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3529 * character.h: New file.
3531 * file-coding.c (Fmake_coding_system): Set 1 to
3532 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3534 (encode_coding_no_conversion): New implementation for UTF2000.
3536 * file-coding.h (struct Lisp_Coding_System): Add new member
3539 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
3541 * file-coding.c (decode_coding_iso2022): Code-point arguments of
3542 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3543 (encode_coding_iso2022): New implementation for UTF2000.
3545 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3547 * mule-canna.c (c2mu): New implementation for UTF2000.
3550 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3552 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3554 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3556 * file-coding.c (reset_encoding_stream): Set 0 to
3557 `str->iso2022.current_char_boundary' in UTF2000.
3558 (encode_utf8): Don't define in UTF2000.
3559 (encode_coding_utf8): New implementation for UTF-8 representation
3561 (complex_vars_of_file_coding): Define coding-system `utf-8'.
3563 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3565 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3567 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3569 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3571 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3573 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3574 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3575 as UTF-8 in UTF2000.
3576 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3577 (non_ascii_valid_char_p): Don't define in UTF2000.
3578 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3579 (Lstream_get_emchar_1): Likewise.
3580 (utf-2000-version): New variable in UTF2000.
3582 * lread.c (read_escape): Add new reader `u'.
3584 * insdel.c (three_to_one_table): Don't define in UTF2000.
3585 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3586 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3588 (bytind_to_bufpos_func): Likewise.
3589 (buffer_mule_signal_inserted_region): Likewise.
3590 (vars_of_insdel): Don't initialize `three_to_one_table'.
3591 (init_buffer_text): Use `buf->text->mule_size' instead of
3592 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3595 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3596 UTF-8 representation in UTF2000.
3597 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3598 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3599 (decode_coding_iso2022): Don't define local variable `lb' in
3600 UTF2000; don't use LEADING_BYTE in UTF2000; use
3601 `DECODE_ADD_UCS_CHAR' in UTF2000.
3602 (convert_to_external_format): Decode as UTF-8 in UTF2000.
3604 * config.h.in (UTF2000): New macro.
3606 * buffer.h (struct buffer_text): Add new member `mule_size' and
3607 don't add `mule_shifter' and `mule_three_p' in UTF2000.
3608 (valid_char_p): Return always 1 in UTF2000.
3609 (MAX_EMCHAR_LEN): 6 in UTF2000.
3610 (three_to_one_table): Don't define in UTF2000.
3611 (real_bufpos_to_bytind): Modify for UTF-8 representation in
3613 (real_bytind_to_bufpos): Likewise.
3615 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3617 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3619 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3620 representation change.
3621 (Vutf_2000_version): New variable.
3622 (leading_code_private_11): New variable.
3623 (syms_of_mule_charset): Add new variables `utf-2000-version' and
3624 `leading-code-private-11'.
3626 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3627 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3628 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3629 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3630 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3631 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3632 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3633 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3634 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3635 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3636 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3637 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3638 (MIN_CHAR_GREEK): New macro.
3639 (MAX_CHAR_GREEK): New macro.
3640 (MIN_CHAR_CYRILLIC): New macro.
3641 (MAX_CHAR_CYRILLIC): New macro.
3642 (MIN_CHAR_HEBREW): New macro.
3643 (MAX_CHAR_HEBREW): New macro.
3644 (MIN_CHAR_THAI): New macro.
3645 (MAX_CHAR_THAI): New macro.
3646 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3647 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3648 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3649 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3650 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3651 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3652 (CHAR_FIELD2): New inline function.
3653 (CHAR_FIELD3): New inline function.
3654 (MULE_CHAR_PRIVATE_OFFSET): New macro.
3655 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3656 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3657 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3658 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3659 (MIN_CHAR_COMPOSITION): Likewise.
3660 (CHAR_LEADING_BYTE): Modified for character representation change.
3661 (MAKE_CHAR): Likewise.
3663 * lisp.h (Vcharset_latin_iso8859_1): New variable.
3664 (Vcharset_greek_iso8859_7): Likewise.
3665 (Vcharset_cyrillic_iso8859_5): Likewise.
3666 (Vcharset_hebrew_iso8859_8): Likewise.
3667 (Vcharset_thai_tis620): Likewise.
3668 (Vcharset_katakana_jisx0201): Likewise.
3670 2001-02-08 Martin Buchholz <martin@xemacs.org>
3672 * XEmacs 21.2.44 "Thalia" is released.
3674 2001-02-06 Martin Buchholz <martin@xemacs.org>
3676 Fixes crashes in kill-emacs on some systems.
3677 * process-unix.c (unix_kill_child_process):
3678 It's OK for kill() to fail with ESRCH.
3680 2001-02-07 Martin Buchholz <martin@xemacs.org>
3682 Contortions to make .gdbinit tricks work on most systems.
3683 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3684 * alloc.c (dbg_valmask): Make non-const.
3685 * alloc.c (dbg_typemask): Make non-const.
3686 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3687 * alloc.c (dbg_valbits): Make non-const.
3688 * alloc.c (dbg_gctypebits): Make non-const.
3689 * .gdbinit (decode_object): Make it work with AIX cc.
3691 2001-02-06 Martin Buchholz <martin@xemacs.org>
3693 * elhash.c (make_general_lisp_hash_table):
3694 Use simpler and more efficient calloc to clear entries.
3696 2001-02-07 Martin Buchholz <martin@xemacs.org>
3698 * window.c (window_scroll): Work around an AIX C compiler bug.
3699 Fixes 'scroll-up' does nothing problem with xlC.
3701 2001-02-05 Martin Buchholz <martin@xemacs.org>
3703 * .gdbinit: Remove obsolete comment.
3705 2001-01-31 Mike Alexander <mta@arbortext.com>
3707 * select.c (Fown_selection_internal): Set owned_p for device
3710 2001-02-01 Martin Buchholz <martin@xemacs.org>
3713 "not" cannot be used as a macro name as it is an operator in C++
3714 * config.h.in: Stop #defining `not'.
3715 * chartab.c (check_category_char): not ==> not_p
3716 * chartab.h: Likewise.
3717 * regex.c (re_match_2_internal): Likewise.
3719 2001-02-02 Martin Buchholz <martin@xemacs.org>
3721 * lisp-disunion.h: Fix up comments.
3723 2001-01-31 Martin Buchholz <martin@xemacs.org>
3725 * keymap.c (define_key_check_and_coerce_keysym):
3727 Support mouse-6 and mouse-7 bindings in the obvious way.
3729 2001-02-01 Martin Buchholz <martin@xemacs.org>
3731 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
3733 2001-01-30 Martin Buchholz <martin@xemacs.org>
3735 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
3736 Previous patch missed DEFVAR_INT_MAGIC.
3737 Make sure future DEFVAR_foo use correct types.
3738 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
3739 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
3740 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
3741 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
3742 * (DEFVAR_INT): Likewise.
3743 * redisplay.c (vertical_clip): Should be of type Fixnum.
3744 * redisplay.c (horizontal_clip): Likewise.
3745 * lisp.h (dump_add_opaque_int): New.
3746 (dump_add_opaque_fixnum): New.
3748 2001-01-29 Andy Piper <andy@xemacs.org>
3750 * glyphs-widget.c (check_valid_int_or_function): allow symbols
3751 since they can be eval'ed
3753 2001-01-29 Martin Buchholz <martin@xemacs.org>
3755 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
3756 Oops, XEmacs redefines `class'. Use `typename' instead.
3758 2001-01-28 Martin Buchholz <martin@xemacs.org>
3760 * dumper.c: Fix C++ compile errors.
3762 2001-01-29 Martin Buchholz <martin@xemacs.org>
3764 * tparam.c: Use correct prototypes.
3766 2001-01-28 Martin Buchholz <martin@xemacs.org>
3768 * sysproc.h: #include util.h for NetBSD's openpty.
3770 2001-01-27 Martin Buchholz <martin@xemacs.org>
3772 More 64-bit correctness.
3773 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
3774 Use a typedef `fixnum' for the type used for DEFVAR_INT.
3776 This finally finishes the 64-bit SGI port.
3777 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
3778 * symbols.c: Fix up comments and type casts.
3779 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
3780 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
3781 * symeval.h (Fixnum): New type.
3782 * symeval.h (symbol_value_type): Fix up comment.
3798 * mule-canna.c: A million DEFVAR_INTs here...
3799 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
3812 s/int/Fixnum/g in DEFVAR_INT declarations.
3814 2001-01-26 Martin Buchholz <martin@xemacs.org>
3816 Port pdump to SGI alignment-sensitive environment.
3817 Lisp Object sizeof methods now return aligned sizes. Rely on that.
3818 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
3820 Define and use aligned reading and writing macros.
3821 Use buffered stdio instead of posix i/o for faster dumping.
3822 Eliminate kludgy 256 byte space for header.
3823 Read and write from dump file using structs for alignment safety.
3824 * dumper.c (pdump_align_stream): New.
3825 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
3826 * dumper.c (PDUMP_READ_ALIGNED): New.
3827 * dumper.c (PDUMP_WRITE_ALIGNED): New.
3828 * dumper.c (pdump_static_Lisp_Object): New struct.
3829 * dumper.c (pdump_static_pointer): New struct.
3830 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
3831 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
3832 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
3833 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
3835 * dumper.c (pdump_backtrace):
3836 * dumper.c (pdump_get_indirect_count):
3837 * dumper.c (pdump_register_object):
3838 * dumper.c (pdump_register_struct):
3839 * dumper.c (pdump_reloc_one):
3840 * dumper.c (pdump_scan_by_alignment):
3841 * dumper.c (pdump_dump_from_root_struct_ptrs):
3842 * dumper.c (pdump_dump_opaques):
3843 * dumper.c (pdump_dump_rtables):
3844 * dumper.c (pdump_dump_from_root_objects):
3846 * dumper.c (pdump_load_finish):
3847 Use aligned reading and writing.
3849 * dumper.c (pdump_free): Make static.
3850 * dumper.c (pdump_hFile): Likewise.
3851 * dumper.c (pdump_hMap): Likewise.
3853 2001-01-26 Martin Buchholz <martin@xemacs.org>
3855 * XEmacs 21.2.43 "Terspichore" is released.
3857 2001-01-25 Martin Buchholz <martin@xemacs.org>
3859 Type fiddling for window_config.saved_windows_count
3860 * window.c (struct window_config):
3861 Make saved_windows_count member unsigned.
3862 * window.c (sizeof_window_config_for_n_windows):
3863 Make parameter unsigned.
3864 * window.c (mark_window_config):
3865 * window.c (window_config_equal):
3866 * window.c (free_window_configuration):
3867 * window.c (Fset_window_configuration):
3868 * window.c (count_windows):
3869 * window.c (Fcurrent_window_configuration):
3870 * window.c (reinit_vars_of_window):
3871 Update all callers and users.
3873 2001-01-25 Martin Buchholz <martin@xemacs.org>
3875 Alignment correctness for flexible arrays.
3876 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
3877 Make alignment-correct. Add interesting comments.
3878 * alloc.c (size_vector):
3879 * alloc.c (make_vector_internal):
3880 * alloc.c (make_bit_vector_internal):
3881 * alloc.c (sweep_bit_vectors_1):
3882 * fns.c (size_bit_vector):
3883 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
3884 * window.c (sizeof_window_config_for_n_windows):
3885 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
3887 2001-01-24 Martin Buchholz <martin@xemacs.org>
3889 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
3891 2001-01-23 Andy Piper <andy@xemacs.org>
3893 * select.c (Fown_selection_internal): pass owned_p
3895 * select-msw.c (mswindows_own_selection): New Signature.
3897 * console.h (struct console_methods): add owned_p to
3900 * select-x.c (x_own_selection): pass owned_p
3901 (hack_motif_clipboard_selection): use owned_p
3902 (vars_of_select_x): new variable -
3903 x_selection_strict_motif_ownership.
3905 2001-01-23 Martin Buchholz <martin@xemacs.org>
3907 * specifier.h (specifier_data_offset): Remove pointless parens.
3908 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
3910 2001-01-24 Martin Buchholz <martin@xemacs.org>
3912 Make Lisp_Object sizeof methods be alignment-correct.
3913 pdump must restore objects to the same alignment as the C compiler
3914 assumes. It really matters on SGIs.
3915 * lstream.c (aligned_sizeof_lstream): New.
3916 (sizeof_lstream): Use aligned_sizeof_lstream.
3917 (Lstream_new): Likewise.
3918 * opaque.c (aligned_sizeof_opaque): New.
3919 (sizeof_opaque): Use aligned_sizeof_opaque.
3920 (make_opaque): Likewise.
3921 * specifier.c (aligned_sizeof_specifier): New.
3922 (sizeof_specifier): Use aligned_sizeof_specifier.
3923 (make_specifier_internal): Likewise.
3925 2001-01-23 Martin Buchholz <martin@xemacs.org>
3927 * lstream.h (struct lstream): Use max_align_t for trailing data.
3928 * specifier.h (struct Lisp_Specifier): Likewise.
3930 2001-01-22 Martin Buchholz <martin@xemacs.org>
3932 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
3933 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
3934 (CCL_SUSPEND): Likewise.
3935 (CCL_INVALID_CMD): Likewise.
3936 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
3937 (ccl_driver): Likewise.
3938 (CCL_WRITE_CHAR): Macro hygiene.
3939 (CCL_WRITE_STRING): Macro hygiene.
3941 2001-01-22 Martin Buchholz <martin@xemacs.org>
3943 Port "portable" dumper to SunOS 4 and HP-UX.
3944 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
3945 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
3946 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
3948 2001-01-22 Martin Buchholz <martin@xemacs.org>
3950 * lisp.h (ALIGNOF): A better definition for C++.
3952 2001-01-20 Martin Buchholz <martin@xemacs.org>
3955 Fix printf warnings: int format, long int arg.
3956 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
3957 (PUSH_FAILURE_POINT): Use correct printf formats.
3958 (POP_FAILURE_POINT): Use correct printf formats.
3959 Use do {...} while (0)
3961 2001-01-20 Martin Buchholz <martin@xemacs.org>
3963 * XEmacs 21.2.42 "Poseidon" is released.
3965 2001-01-20 Martin Buchholz <martin@xemacs.org>
3967 * console-x.h: typo fix du jour. Remove #if 0'ed code.
3969 2001-01-19 Martin Buchholz <martin@xemacs.org>
3971 De-kludgify FIXED_TYPE free list frobbing.
3972 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3973 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3974 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3975 * alloc.c (Lisp_Free): New pseudo lisp object definition.
3976 * alloc.c (LRECORD_FREE_P): New.
3977 * alloc.c (MARK_LRECORD_AS_FREE): New.
3978 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3979 * alloc.c (STRUCT_FREE_P): Deleted.
3980 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3981 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3982 * alloc.c (STRING_CHARS_FREE_P): New.
3983 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3984 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3985 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3986 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3987 * alloc.c (resize_string): Use new definitions.
3988 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
3989 * alloc.c (verify_string_chars_integrity): Use new definitions.
3990 * alloc.c (compact_string_chars): Use new definitions.
3991 * alloc.c: Update monster comments.
3992 * lrecord.h (lrecord_type): Add some new lrecord types for
3995 2001-01-18 Martin Buchholz <martin@xemacs.org>
3997 Improve alignment hackery.
3998 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
3999 (max_align_t): Moved from opaque.h - general purpose.
4000 (ALIGN_PTR): Use size_t, not long.
4001 * opaque.h (max_align_t): Move to lisp.h.
4003 2001-01-18 Norbert Koch <nk@LF.net>
4005 * gui.h: Fix and add prototypes to fix build problems.
4007 2001-01-18 Martin Buchholz <martin@xemacs.org>
4009 temacs is going away, so `dump-temacs' is now a bad name.
4010 * .dbxrc (dump-temacs): Rename to `dmp'.
4011 * .gdbinit (dump-temacs): Rename to `dmp'.
4013 2001-01-17 Andy Piper <andy@xemacs.org>
4015 * glyphs.c (print_image_instance): comment to make martin happy.
4017 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4020 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4022 (mswindows_tab_control_redisplay): warning suppression.
4024 * glyphs-widget.c (widget_update): re-write to cope with updated
4026 (widget_instantiate): use new gui_item functions.
4027 (tab_control_update): deleted.
4028 (progress_gauge_update): deleted.
4029 (image_instantiator_progress_guage): take out update reference.
4030 (image_instantiator_tree_view): ditto.
4031 (image_instantiator_tab_control): ditto.
4033 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4035 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4036 return whether anything was changed.
4037 (update_gui_item_keywords): as it sounds.
4039 * gui.h: declare widget_gui_parse_item_keywords.
4041 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4042 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4044 2001-01-17 Martin Buchholz <martin@xemacs.org>
4046 * XEmacs 21.2.41 "Polyhymnia" is released.
4048 2001-01-16 Didier Verna <didier@xemacs.org>
4050 * glyphs.c (image_instantiate): don't use fallbacks when
4051 instantiating a face's background pixmap by inheritance.
4053 2001-01-14 Mike Sperber <mike@xemacs.org>
4055 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4056 Conditionalize accordingly.
4058 2001-01-16 Martin Buchholz <martin@xemacs.org>
4060 * dumper.c (pdump_file_get): Fix a compiler warning.
4062 2001-01-15 Martin Buchholz <martin@xemacs.org>
4064 Make Purify happy when pdumping.
4065 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4066 iniitalizing all bits of new lisp object memory.
4067 * symbols.c (Fmake_local_variable): Likewise.
4068 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4069 * symbols.c (Fdefvaralias): Likewise.
4070 * mule-charset.c (vars_of_mule_charset): Likewise.
4072 2001-01-15 Martin Buchholz <martin@xemacs.org>
4073 Add the `-nd' flag when running pre-dump operations under the debugger.
4074 * .dbxrc (run-temacs): Add `-nd'.
4075 * .dbxrc (update-elc): Likewise.
4076 * .dbxrc (dump-temacs): Likewise.
4077 * .gdbinit (run-temacs): Likewise.
4078 * .gdbinit (check-temacs): Likewise.
4079 * .gdbinit (update-elc): Likewise.
4080 * .gdbinit (dump-temacs): Likewise.
4082 2001-01-14 Martin Buchholz <martin@xemacs.org>
4084 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4085 export OBJECT_MODE=64
4086 configure --pdump --use-union-type=no
4087 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4088 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4090 * miscplay.c (sndcnv8U_2mono):
4091 Avoid two uses of `++' in the same expression.
4092 Suppresses a GCC warning.
4094 2001-01-13 Martin Buchholz <martin@xemacs.org>
4096 Make sure future compilers don't miscompile alloc.c.
4098 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4099 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4101 2001-01-12 Martin Buchholz <martin@xemacs.org>
4103 * dumper.c: A little post-pdump-rename comment fixup.
4105 2001-01-09 Jerry James <james@eecs.ku.edu>
4107 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4109 2001-01-13 Martin Buchholz <martin@xemacs.org>
4111 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4115 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4118 replace_symbol pdump_wire_lists pdump_weak_object_chains
4119 replace_symbol pdump_wire_list dump_add_weak_object_chain
4121 replace_symbol pdump_wires pdump_root_objects
4122 replace_symbol pdump_wire dump_add_root_object
4124 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4125 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4127 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4128 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4129 replace_symbol dumpstructinfo pdump_root_struct_ptr
4130 replace_symbol dumpstruct dump_add_root_struct_ptr
4132 replace_symbol dumpopaque dump_add_opaque
4133 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4134 replace_symbol dumpopaqueinfos pdump_opaques
4135 replace_symbol dumpopaqueinfo pdump_opaque
4137 replace_symbol nb_structdump nb_root_struct_ptrs
4138 replace_symbol nb_opaquedump nb_opaques
4140 replace_symbol align_table pdump_align_table
4141 replace_symbol dump_header pdump_header
4143 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4144 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4147 2001-01-12 Martin Buchholz <martin@xemacs.org>
4149 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4150 optimizing bytecount_to_charcount().
4152 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4155 (HAVE_DLFCN_H): Removed.
4156 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4158 2001-01-06 Martin Buchholz <martin@xemacs.org>
4160 Portable dumper maintainability improvements.
4161 * alloc.c (staticpro):
4162 * alloc.c (staticpro_nodump):
4163 * alloc.c (garbage_collect_1):
4164 * alloc.c (reinit_alloc_once_early):
4165 * alloc.c (init_alloc_once_early):
4166 * alloc.c: Move dumper functions to alloc.c.
4167 * dumper.c (pdump_backtrace):
4168 * dumper.c (pdump_dump_structs):
4169 * dumper.c (pdump_dump_opaques):
4170 * dumper.c (pdump_dump_rtables):
4171 * dumper.c (pdump_dump_wired):
4173 * dumper.c (pdump_load_check):
4174 * dumper.c (pdump_load_finish):
4175 * dumper.c (pdump_file_unmap):
4176 * dumper.c (pdump_file_get):
4177 * dumper.c (pdump_resource_free):
4178 * dumper.c (pdump_resource_get):
4179 * dumper.c (pdump_file_free):
4180 * dumper.c (pdump_file_try):
4181 * dumper.c (pdump_load):
4182 Remove fixed size limits on staticpro(), staticpro_nodump(),
4183 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4184 Remove custom code for dumping lrecord_implementations_table - use
4186 Remove (most of the) custom code for dumping staticpros - dump it
4187 like any other dynarr.
4189 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4190 * dumper.c: Moved functions from alloc.c.
4191 * alloc.c (dumpstruct): Moved to dumper.c.
4192 * alloc.c (dumpopaque): Likewise.
4193 * alloc.c (pdump_wire): Likewise.
4194 * alloc.c (pdump_wire_list): Likewise.
4196 * lisp.h (Dynarr_sizeof): New.
4197 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4198 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4199 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4201 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4202 * lisp.h (dumpopaque): ditto.
4203 * lisp.h (pdump_wire): ditto.
4204 * lisp.h (pdump_wire_list): ditto.
4206 2001-01-09 Martin Buchholz <martin@xemacs.org>
4208 * make-src-depend (PrintPatternDeps):
4209 Use `sort' to make output independent of perl version.
4211 2001-01-08 Martin Buchholz <martin@xemacs.org>
4214 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4215 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4217 2001-01-03 Didier Verna <didier@xemacs.org>
4219 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4220 that `focus_frame' is alive before thinking of calling
4221 `redisplay_redraw_cursor' on it.
4223 2001-01-08 Martin Buchholz <martin@xemacs.org>
4225 * XEmacs 21.2.40 is released.
4227 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4229 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4231 2001-01-06 Martin Buchholz <martin@xemacs.org>
4233 * alloc.c (dbg_valmask): Make const.
4234 * alloc.c (dbg_typemask): Make const.
4235 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4236 * alloc.c (dbg_valbits): Make const.
4237 * alloc.c (dbg_gctypebits): Make const.
4239 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4241 * redisplay-x.c (x_bevel_area):
4242 redisplay.h (struct rune):
4243 Typo fixes in comments.
4245 2001-01-05 Andy Piper <andy@xemacs.org>
4247 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4250 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4252 2001-01-05 Martin Buchholz <martin@xemacs.org>
4254 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4256 * mule-ccl.c (stack_idx_of_map_multiple):
4257 Non const global data must not be initialized!
4258 Found by MIYASHITA Hisashi.
4260 2001-01-02 Andy Piper <andy@xemacs.org>
4262 * frame.c (change_frame_size): make sure frame size is always
4265 * glyphs.c (image_instance_layout): minor code reuse.
4267 * window.c (Fcurrent_window_configuration): revert previous
4270 2001-01-02 Martin Buchholz <martin@xemacs.org>
4273 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4275 2000-12-31 Andy Piper <andy@xemacs.org>
4277 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4278 when widget gets unmapped.
4280 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4281 function. Make sure widgets losing focus don't just drop it.
4282 (handle_focus_event_1): record the widget with focus.
4284 2000-12-31 Andy Piper <andy@xemacs.org>
4286 * window.c (allocate_window): use
4287 make_image_instance_cache_hash_table.
4288 (make_dummy_parent): ditto.
4289 (Fset_window_configuration): ditto.
4291 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4293 * glyphs.c (process_image_string_instantiator): use
4295 (get_image_instantiator_governing_domain): ditto.
4296 (normalize_image_instantiator): ditto.
4297 (instantiate_image_instantiator): ditto.
4298 (make_image_instance_1): ditto.
4299 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4300 (instantiator_eq_equal): new function for use with instance hash
4302 (instantiator_eq_hash): ditto.
4303 (make_image_instance_cache_hash_table): create a suitable hash
4304 table for storing image instances.
4306 * elhash.h (hash_table_weakness): new internal weakness type
4307 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4308 declare new functions.
4310 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4311 another weakness type for glyphs.
4312 (make_standard_lisp_hash_table): new function split out from
4313 make_general_lisp_hash_table.
4314 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4315 (hash_table_instantiate): ditto.
4316 (Fmake_hash_table): ditto.
4318 2000-12-31 Martin Buchholz <martin@xemacs.org>
4320 * XEmacs 21.2.39 is released.
4322 2000-12-29 Andy Piper <andy@xemacs.org>
4324 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4326 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4327 the frame has changed so that we pick up geometry changes such as
4330 2000-12-28 Andy Piper <andy@xemacs.org>
4332 * lastfile.c (my_ebss): make a char array so we can pad the
4333 bss. Fixes cygwin unexec.
4335 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4337 2000-12-26 Andy Piper <andy@xemacs.org>
4339 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4340 comments and try and be more precise about a non-/SIGIO world.
4341 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4344 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4345 we don't normalize to zero width or height.
4347 2000-12-24 Andy Piper <andy@xemacs.org>
4349 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4351 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4353 * s/sco5.h: SCO 5 has pty support.
4355 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4357 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4358 input-method-xlib.c contains whole contents of input-method-xfs.c,
4359 so we can use input-method-xlib.c's code for USE_XFONTSET
4361 * input-method-xfs.c: removed.
4363 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4365 * file-coding.h (enum coding_category_type): reorder enumerators to
4366 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4367 (now one greater than largest real coding_category_type enumerator).
4368 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4369 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4370 Fcoding_category_list, Fset_coding_priority_list,
4371 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4372 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4374 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4376 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4377 * redisplay-output.c (redisplay_output_window): Clear top of window
4378 when face is changed.
4379 * redisplay-x.c (x_redraw_exposed_window): Call
4380 redisplay_clear_top_of_window.
4381 * redisplay.h: Publish redisplay_clear_top_of_window.
4383 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4385 * buffer.c (Fkill_buffer): Map over all devices.
4386 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4387 (list_windows): New function.
4388 (list_all_windows): Ditto.
4389 (Freplace_buffer_in_windows): Use them.
4391 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4393 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4394 (Fopen_database): Use `db_create' instead of `db_open'.
4395 (syms_of_database): Initialize Qqueue.
4397 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4399 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4400 buffer_local_face_property.
4401 * buffer.h (struct buffer): New member buffer_local_face_property.
4402 * window.c (Fset_window_buffer): Mark window's face as changed
4403 when buffer has buffer local face.
4404 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4405 * objects.c (color_after_change): Set buffer_local_face_property
4406 when locale of face specifier is buffer.
4407 * objects.c (font_after_change): Ditto.
4408 * objects.c (face_boolean_after_change): Ditto.
4409 * glyphs.c (image_after_change): Ditto.
4411 2000-12-09 Dan Holmsand <dan@eyebee.com>
4413 * nt.c (mswindows_fstat): Report file permissions, volume serial
4414 number, etc. Code adapted from FSF Emacs 20.7.
4416 2000-12-09 Dan Holmsand <dan@eyebee.com>
4418 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4419 of stat when we don't have symbolic links, to make sure
4420 mswindows_stat is called on mswindows.
4422 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4424 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4426 2000-12-12 Martin Buchholz <martin@xemacs.org>
4428 * doprnt.c (emacs_doprnt_1): More printing fixes.
4429 Make printing of numbers compatible with libc and FSF Emacs.
4430 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4431 Use the system printf to do most of the hard work of formatting,
4432 instead of doprnt_1().
4433 Calculate memory to allocate for format string.
4434 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4435 (doprnt_1): Cleaner code and documentation.
4437 2000-12-01 Jerry James <james@eecs.ukans.edu>
4439 * Makefile.in.in: Use the loop variable to install headers.
4441 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4443 * window.c (Fsplit_window): Don't invalidate face cache.
4445 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4447 * minibuf.c (Fall_completions): Undo the previous change
4448 which removed checking elements start with space.
4450 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4452 * mule-canna.c: Didier suppression.
4454 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4456 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4457 (warning suppression). Add English comment translations.
4459 2000-12-05 Martin Buchholz <martin@xemacs.org>
4461 * unexelfsgi.c (unexec): Better test for mmap failure.
4463 2000-12-05 Martin Buchholz <martin@xemacs.org>
4465 * XEmacs 21.2.38 is released.
4467 2000-12-05 Martin Buchholz <martin@xemacs.org>
4469 * redisplay.c (bar-cursor): Make a user variable.
4471 * symsinit.h: Add init_postgresql_from_environment.
4473 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4475 * regex.c: Convert to clean C.
4477 2000-12-05 Dan Holmsand <dan@eyebee.com>
4480 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4482 (sys_readlink): renamed to system_readlink to avoid conflict with
4483 the other sys_readlink.
4485 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4487 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4489 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4491 * postgresql.c (init_postgresql_from_environment): new function.
4492 (vars_of_postgresql): Move code initializing Lisp variables out and
4493 into init_postgresql_from_environment.
4494 emacs.c (main_1): Call init_postgresql_from_environment if and only
4495 if running a dumped XEmacs.
4497 2000-08-31 Dan Holmsand <dan@eyebee.com>
4499 * buffer.c: Make find-file-compare-truenames default to true on
4502 * realpath.c (win32_abs_start):
4504 (win32_readlink): New functions.
4505 (xrealpath): Return really real filenames on windows.
4507 * fileio.c (Ffile_truename): Make file-truename work on windows.
4509 2000-11-29 Didier Verna <didier@xemacs.org>
4511 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4512 * faces.c (update_face_cachel_data): use it.
4513 * faces.c (add_face_cachel): use it. Complete background pixmap
4514 frobbing in face cache if `update_face_cachel_data' has not done so.
4516 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
4518 * search.c (string_match_1): Don't set last_thing_searched
4521 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
4523 * buffer.c: Include casetab.h
4524 (common_init_complex_vars_of_buffer): Use new case-table object.
4525 * buffer.h: Include casetab.h
4526 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4527 (DOWNCASE_TABLE_OF): Ditto.
4528 * bufslots.h: Remove char-tables and add case-table.
4529 * casetab.c: Include casetab.h
4530 (CASE_TABLE_P): Removed.
4531 (mark_case_table): New function.
4532 (allocate_case_table): New function.
4533 (Fcase_table_p): Use new case-table.
4534 (case_table_char): New function.
4535 (Fget_case_table): Ditto.
4536 (Fput_case_table): Ditto.
4537 (Fput_case_table_pair): Ditto.
4538 (Fcopy_case_table): Ditto.
4539 (Fcurrent_case_table): Return case-table.
4540 (Fstandard_case_table): Return case-table.
4541 (Fset_case_table): Fix doc-string.
4542 (set_case_table): Use case-table
4543 (syms_of_casetab): DEFSUBR new functions.
4544 (complex_vars_of_casetab): Set up standard case-table.
4545 * casetab.h: New file.
4546 * editfns.c: Include casetab.h
4547 (Fcompare_buffer_substrings): Use case-table.
4548 * inline.c: Include casetab.h
4549 * lisp.h: Remove bogus extern.
4550 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4551 * search.c: Include casetab.h
4552 (TRANSLATE_ASCII): Removed.
4553 (TRANSLATE): Unconditionally translate character.
4554 (looking_at_1): Use case-table.
4555 (string_match_1): Ditto.
4556 (fast_string_match): Ditto.
4557 (search_command): Ditto.
4558 (search_buffer): Separate boyer_moore. Check whether
4559 boyer_moore is possible.
4560 (simple_search): New function.
4561 (boyer_moore): Separated from search_buffer. Translate char.
4563 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
4565 * regex.c (RE_TR_ASCII): Removed.
4566 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4567 (PATFETCH): Call PATFETCH_RAW.
4568 (PATFETCH_RAW): Fetch Emchar.
4569 (PATUNFETCH): Decrement charptr.
4570 (GET_BUFFER_SPACE): Rename b to buf_end.
4572 (BUF_PUSH_2): Ditto.
4573 (BUF_PUSH_3): Ditto.
4574 (EXTEND_BUFFER): Ditto.
4575 (SET_LIST_BIT): Ditto.
4576 (regex_compile): Ditto. Translate non ASCII char.
4577 (compile_range): Ditto.
4578 (re_search_2): Ditto.
4579 (re_match_2_internal): Compare Emchar.
4580 (bcmp_translate): Ditto.
4582 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
4584 * lisp.h (basic char/int typedefs): comment improvement.
4586 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
4588 * emacs.c (main_1): unconditional pdump unstomping; don't save and
4589 unstomp inhibit_site_lisp. Improve comments.
4591 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
4593 * mule-charset.c (Fcharset_property): improve type checking, comments.
4595 2000-11-28 Andy Piper <andy@xemacs.org>
4597 * redisplay-output.c (redisplay_output_subwindow): make sure we do
4598 clipped display for windows in the gutter also.
4599 (redisplay_display_boxes_in_window_p): change semantics of return
4600 codes to be more intuitive.
4602 * gutter.h: declare display_boxes_in_gutter_p.
4604 * gutter.c (display_boxes_in_gutter_p): new function for
4607 2000-11-22 Andy Piper <andy@xemacs.org>
4609 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4612 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
4614 * callproc.c (Fold_call_process_internal):
4615 * gpm.c (Freceive_gpm_event):
4616 (tty_get_foreign_selection): Might be just warning supression.
4617 * fileio.c (Fwrite_region_internal):
4618 (Fset_visited_file_modtime):
4619 * keymap.c (event_matches_key_specifier_p):
4620 Initialize GCPROed variable.
4622 * menubar-x.c (command_builder_find_menu_accelerator):
4623 Initialize before use.
4625 2000-11-23 Andy Piper <andy@xemacs.org>
4627 * unexcw.c (unexec): make the resulting executable executable.
4629 2000-11-21 Martin Buchholz <martin@xemacs.org>
4631 * doc.c (get_doc_string):
4632 Use size_t, not int, for result of XSTRING_LENGTH.
4634 * cmds.c (Fdelete_char):
4635 * cmds.c (Fpoint_at_eol):
4636 * cmds.c (Fself_insert_command):
4637 Use EMACS_INT, not int, for result of XINT.
4638 Someday, someone will want to insert more than 2**31 identical characters.
4640 * cmds.c (Fdelete_char):
4641 * cmds.c (Fdelete_backward_char):
4642 * syntax.c (Fforward_word):
4643 * syntax.c (Fforward_comment):
4644 Make COUNT argument optional, for consistency with forward-char et al.
4646 2000-11-22 Martin Buchholz <martin@xemacs.org>
4649 * print.c (long_to_string):
4650 Return a useful value: the pointer at end of data written.
4653 Use `static const char * const' for constant strings.
4654 (union printf_arg): Delete `i', `ui' members.
4657 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4658 Do all printf-ing via the `l' specifier.
4659 Use EMACS_INT instead of int.
4662 2000-11-20 Didier Verna <didier@xemacs.org>
4664 * faces.c (update_face_cachel_data): don't frob the background
4665 pixmap when the window is being created. The face is needed but
4668 2000-11-20 Andy Piper <andy@xemacs.org>
4670 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4671 messing with a debug environment.
4673 2000-11-20 Martin Buchholz <martin@xemacs.org>
4675 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4677 2000-11-20 Martin Buchholz <martin@xemacs.org>
4679 * casetab.c (Fcase_table_p): Fix compile error and crash.
4681 2000-11-18 Philip Aston <philipa@mail.com>
4683 * s/cygwin32.h: Cygwin has SVR4-like pty support.
4685 2000-11-18 Martin Buchholz <martin@xemacs.org>
4687 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
4688 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4690 2000-11-17 Martin Buchholz <martin@xemacs.org>
4692 * config.h.in: Define HAVE_ELF_H if elf.h exists.
4693 * unexelf.c: Use HAVE_ELF_H.
4694 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4695 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4696 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4697 Greg Harrington <greg_harrington@hotmail.com> provided a machine
4699 So this is an unexelfsgi.c from a different line of development.
4701 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4703 * regex.c (RE_TR_ASCII): New function.
4704 (RE_TRANSLATE): Call it.
4706 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4708 * buffer.h (TRT_TABLE_OF): Remove assert.
4709 (IN_TRT_TABLE_DOMAIN): Removed.
4711 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
4713 * free-hook.c (log_gcpro):
4714 (show_gcprohist): Add support for GCPRO5.
4716 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
4718 * emacs.c (main_1): Improve -sd error message when --pdump=no.
4720 2000-11-16 Olivier Galibert <galibert@xemacs.org>
4722 * symeval.h: Declare flush_all_buffer_local_cache.
4724 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4725 (flush_buffer_local_cache): Added.
4726 (flush_all_buffer_local_cache): Added.
4728 * lrecord.h: Remove unused XD_LO_RESET_NIL.
4730 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4731 (pdump_dump_data): Ditto.
4732 (pdump_reloc_one): Ditto.
4733 (pdump): Remove unused pdump_qnil. Flush buffer local caches
4737 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4739 * buffer.c: Remove if 0'ed entry.
4740 * buffer.h: Rewrite TRT to use char-table.
4741 * bufslots.h: Remove mirror tables.
4742 * casetab.c: Remove mirror tables.
4743 (CASE_TABLE_P): New macro.
4744 (Fcase_table_p): Element of a case table is string or char-table.
4745 (make_mirror_trt_table): Removed.
4746 (set_case_table): Setup char-table from strings for backward
4748 * dired.c (Fdirectory_files):
4749 * dired-msw.c: (mswindows_get_files):
4750 * lisp.h: Change prototype of re_pattern_buffer.
4751 * regex.c: (RE_TRANSLATE): New macro.
4752 (TRANSLATE_P): Ditto.
4753 Change translate to type RE_TRANSLATE_TYPE.
4754 * regex.h: Define RE_TRANSLATE_TYPE
4755 * search.c (TRANSLATE): New macro.
4756 (TRANSLATE_ASCII): New macro.
4757 Translate table is changed to Lisp_Object.
4758 (signal_failure): Inhibit return.
4760 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4767 Do UNGCPRO before return.
4769 2000-11-14 Martin Buchholz <martin@xemacs.org>
4771 * XEmacs 21.2.37 is released.
4773 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4775 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4776 Add comments about discarded return value.
4778 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4781 * event-stream.c: Fix comments. Remove some #if 0'ed part.
4783 2000-10-27 Andy Piper <andy@xemacs.org>
4785 * gutter.c (Fset_default_gutter_position): default left and right
4787 (calculate_gutter_size): calculate resonable heuristic for left
4788 and right gutter sizes.
4789 (specifier_vars_of_gutter): change left and right gutter sizes to
4791 (calculate_gutter_size_from_display_lines): new function.
4792 (output_gutter): check for resizing on left and right gutters.
4793 (clear_gutter): don't special case top and left gutters.
4794 (specifier_vars_of_gutter): use new signature for
4795 set_specifier_caching.
4797 * glyphs-x.c (x_redisplay_widget): spelling fix.
4798 * glyphs.c (specifier_vars_of_glyphs):
4799 * menubar.c (specifier_vars_of_menubar):
4800 * redisplay.c (specifier_vars_of_redisplay):
4801 * toolbar.c (specifier_vars_of_toolbar):
4802 * window.c (specifier_vars_of_window):
4803 * scrollbar.c (specifier_vars_of_scrollbar):
4804 (complex_vars_of_scrollbar): use new signature for
4805 set_specifier_caching.
4807 * specifier.c (set_specifier_caching): include recompute flag.
4808 (recompute_one_cached_specifier_in_window): always recompute if
4810 (recompute_one_cached_specifier_in_frame): ditto.
4812 * specifier.h (struct specifier_caching): add recompute flag.
4814 2000-10-24 Andy Piper <andy@xemacs.org>
4816 * unexcw.c (copy_executable_and_dump_data_section): add new
4817 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4820 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4822 * console-x.h (x_device): New member modifier_release_time.
4823 * event-Xt.c (x_handle_sticky_modifiers):
4824 Bound interval modifier keys are sticky.
4825 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4826 * events.h: extern it.
4828 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4830 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4832 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4834 * event-stream.c (execute_command_event): Preserve current_events
4835 and the like when event is misc-user-event.
4836 Inhibit quit during the call to maybe_echo_keys.
4838 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
4840 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4841 symlink when buffer is killed.
4842 (inhibit_clash_detection): New variable.
4844 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
4846 * console.c (Fset_input_method): Trigger redisplay on tty.
4848 2000-11-07 Martin Buchholz <martin@xemacs.org>
4850 * process.c (Fprocess_status): Revert to previous behavior:
4851 (process-status "nosuchprocess") ==> nil
4853 2000-11-06 Martin Buchholz <martin@xemacs.org>
4855 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4856 Work around another GCC 2.95.2 optimizer bug.
4858 2000-11-02 Martin Buchholz <martin@xemacs.org>
4860 * process.c (Fget_process): Use LIST_LOOP_2.
4861 (kill_buffer_processes): Use LIST_LOOP_2.
4863 * minibuf.c (Fall_completions):
4864 Delete old non-functional code for FSF fourth argument.
4866 * frame.c (frame_matches_frame_spec):
4867 Renamed from `frame_matches_frametype'. Update all callers.
4868 (device_matches_device_spec):
4869 Renamed from 'device_matches_console_spec'. Update all callers.
4871 * doc.c (Fsubstitute_command_keys):
4872 Remove buffer overflow crash. Small code cleanups.
4874 * casetab.c (check_case_table): Simpler code.
4876 * window.c (Freplace_buffer_in_windows):
4877 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4878 (and similar implementation) as Fdelete_windows_on.
4881 * alloc.c (Fmake_list):
4882 * alloc.c (make_vector):
4883 * alloc.c (Fmake_vector):
4884 * alloc.c (make_bit_vector):
4885 * alloc.c (Fmake_bit_vector):
4886 * alloc.c (Fbit_vector):
4887 * alloc.c (Fmake_string):
4888 * alloc.c (Fpurecopy):
4889 * alloc.c (Fmemory_limit):
4891 * buffer.c (Fget_buffer):
4892 * buffer.c (Fkill_buffer):
4893 * buffer.c (complex_vars_of_buffer):
4894 * bytecode.c (Fcompiled_function_stack_depth):
4895 * callint.c (Fprefix_numeric_value):
4897 * event-stream.c (Fread_key_sequence):
4899 * casetab.c (Fcase_table_p):
4900 * casetab.c (check_case_table):
4901 * casetab.c (Fset_case_table):
4902 * casetab.c (Fset_standard_case_table):
4904 * chartab.c (Fchar_table_type):
4905 * chartab.c (Freset_char_table):
4906 * chartab.c (Fget_char_table):
4907 * chartab.c (Fget_range_char_table):
4908 * chartab.c (Fput_char_table):
4909 * chartab.c (Fmap_char_table):
4910 * chartab.c (Fcategory_table_p):
4911 * chartab.c (Fcheck_category_at):
4912 * chartab.c (Fchar_in_category_p):
4913 * chartab.c (Fcategory_table):
4914 * chartab.c (Fcopy_category_table):
4915 * chartab.c (Fset_category_table):
4916 * chartab.c (Fcategory_designator_p):
4917 * chartab.c (Fcategory_table_value_p):
4918 * cmds.c (Fdelete_char):
4919 * cmds.c (Fdelete_backward_char):
4920 * cmds.c (Fself_insert_command):
4921 * cmds.c (Fself_insert_internal):
4922 * console.c (Fvalid_console_type_p):
4923 * console.c (Fcdfw_console):
4924 * console.c (Fconsole_type):
4925 * console.c (Fconsole_name):
4926 * console.c (Fconsole_device_list):
4927 * console.c (Fconsole_on_window_system_p):
4931 * data.c (Fsubr_interactive):
4932 * data.c (Fchar_to_int):
4933 * data.c (Fint_to_char):
4936 * data.c (Fnumber_to_string):
4937 * data.c (Fstring_to_number):
4939 * database.c (mark_database):
4940 * database.c (finalize_database):
4941 * database.c (Fdatabase_live_p):
4942 * database.c (Fdatabasep):
4943 * device-x.c (Fx_get_resource):
4944 * device.c (Fdfw_device):
4946 * dired.c (Ffile_name_completion):
4947 * dired.c (Ffile_name_all_completions):
4948 * dired.c (Fuser_name_completion):
4949 * dired.c (Fuser_name_completion_1):
4950 * dired.c (Fuser_name_all_completions):
4951 * doc.c (Fdocumentation):
4952 * doc.c (Fdocumentation_property):
4953 * doc.c (Fsubstitute_command_keys):
4955 * editfns.c (Fchar_to_string):
4956 * editfns.c (Fstring_to_char):
4957 * editfns.c (Ftemp_directory):
4958 * editfns.c (Finsert_char):
4959 * editfns.c (Fbuffer_substring_no_properties):
4960 * editfns.c (Fnarrow_to_region):
4961 * editfns.c (Fchar_equal):
4962 * editfns.c (Fchar_Equal):
4963 * editfns.c (Ftranspose_regions):
4964 * emacs.c (Fdump_emacs):
4966 * eval.c (Fcommand_execute):
4967 * eval.c (Fautoload):
4968 * eval.c (Fbacktrace):
4969 * eval.c (Fbacktrace_frame):
4971 * events.c (Fcopy_event):
4972 * events.c (Fcharacter_to_event):
4973 * events.c (Fevent_button):
4974 * events.c (Fevent_process):
4976 * extents.c (Fnext_extent_change):
4977 * extents.c (Fextent_property):
4979 * faces.c (Fmake_face):
4981 * file-coding.c (Fencode_shift_jis_char):
4982 * file-coding.c (Fencode_big5_char):
4983 * fileio.c (Ffile_name_directory):
4984 * fileio.c (Ffile_name_nondirectory):
4985 * fileio.c (Ffile_name_as_directory):
4986 * fileio.c (Fdirectory_file_name):
4987 * fileio.c (Ffile_truename):
4988 * fileio.c (Fsubstitute_in_file_name):
4989 * fileio.c (Ffile_modes):
4990 * fileio.c (Fset_file_modes):
4991 * fileio.c (Fset_default_file_modes):
4992 * fileio.c (Fverify_visited_file_modtime):
4993 * floatfns.c (Facos):
4994 * floatfns.c (Fasin):
4995 * floatfns.c (Fatan):
4996 * floatfns.c (Fcos):
4997 * floatfns.c (Fsin):
4998 * floatfns.c (Ftan):
4999 * floatfns.c (Fbessel_j0):
5000 * floatfns.c (Fbessel_j1):
5001 * floatfns.c (Fbessel_jn):
5002 * floatfns.c (Fbessel_y0):
5003 * floatfns.c (Fbessel_y1):
5004 * floatfns.c (Fbessel_yn):
5005 * floatfns.c (Ferf):
5006 * floatfns.c (Ferfc):
5007 * floatfns.c (Flog_gamma):
5008 * floatfns.c (Fexp):
5009 * floatfns.c (Fexpt):
5010 * floatfns.c (Flog):
5011 * floatfns.c (Flog10):
5012 * floatfns.c (Fsqrt):
5013 * floatfns.c (Fcube_root):
5014 * floatfns.c (Facosh):
5015 * floatfns.c (Fasinh):
5016 * floatfns.c (Fatanh):
5017 * floatfns.c (Fcosh):
5018 * floatfns.c (Fsinh):
5019 * floatfns.c (Ftanh):
5020 * floatfns.c (Fabs):
5021 * floatfns.c (Ffloat):
5022 * floatfns.c (Flogb):
5023 * floatfns.c (Fceiling):
5024 * floatfns.c (Ffloor):
5025 * floatfns.c (Fround):
5026 * floatfns.c (Ftruncate):
5027 * floatfns.c (Ffceiling):
5028 * floatfns.c (Fffloor):
5029 * floatfns.c (Ffround):
5030 * floatfns.c (Fftruncate):
5031 * fns.c (Fstring_equal):
5032 * fns.c (Fstring_lessp):
5037 * fns.c (Fsubstring):
5039 * fns.c (Fold_assoc):
5040 * fns.c (assoc_no_quit):
5042 * fns.c (Fold_assq):
5043 * fns.c (assq_no_quit):
5045 * fns.c (Fold_rassoc):
5047 * fns.c (Fold_rassq):
5048 * fns.c (rassq_no_quit):
5049 * fns.c (Fremassoc):
5050 * fns.c (remassoc_no_quit):
5052 * fns.c (remassq_no_quit):
5053 * fns.c (Fremrassoc):
5054 * fns.c (Fremrassq):
5055 * fns.c (remrassq_no_quit):
5057 * fns.c (Fplist_get):
5058 * fns.c (Fplist_put):
5059 * fns.c (Fplist_remprop):
5060 * fns.c (Fplist_member):
5061 * fns.c (Flax_plist_get):
5062 * fns.c (Flax_plist_put):
5063 * fns.c (Flax_plist_remprop):
5064 * fns.c (Flax_plist_member):
5066 * fns.c (Fold_equal):
5068 * fns.c (Fbase64_encode_region):
5069 * fns.c (Fbase64_encode_string):
5070 * fns.c (Fbase64_decode_region):
5072 * frame.c (frame_matches_frame_spec):
5073 * frame.c (device_matches_device_spec):
5074 * frame.c (next_frame):
5075 * frame.c (previous_frame):
5076 * frame.c (Fnext_frame):
5077 * frame.c (Fprevious_frame):
5078 * frame.c (Fframe_property):
5079 * frame.c (Fset_frame_height):
5080 * frame.c (Fset_frame_size):
5084 * glyphs.c (decode_error_behavior_flag):
5085 * glyphs.c (Fmake_image_instance):
5086 * indent.c (Findent_to):
5087 * intl.c (Fignore_defer_gettext):
5088 * keymap.c (Fkeymapp):
5089 * keymap.c (Flookup_key):
5091 * lread.c (Fload_internal):
5092 * lread.c (Feval_buffer):
5093 * lread.c (Feval_region):
5094 * macros.c (Fexecute_kbd_macro):
5095 * marker.c (set_marker_internal):
5096 * marker.c (Fset_marker):
5097 * marker.c (set_marker_restricted):
5098 * marker.c (Fcopy_marker):
5099 * marker.c (noseeum_copy_marker):
5101 * menubar.c (Fpopup_menu):
5103 * mule-charset.c (Fcharset_name):
5104 * mule-charset.c (Fchar_charset):
5105 * mule-charset.c (Fchar_octet):
5106 * mule-charset.c (Fsplit_char):
5107 * mule-wnnfns.c (Fwnn_open):
5108 * mule-wnnfns.c (Fwnn_dict_comment):
5109 * mule-wnnfns.c (Fwnn_quit_henkan):
5110 * mule-wnnfns.c (Fwnn_word_toroku):
5111 * mule-wnnfns.c (Fwnn_word_sakujo):
5112 * mule-wnnfns.c (Fwnn_word_use):
5113 * mule-wnnfns.c (Fwnn_hindo_set):
5115 * objects.c (Fmake_color_instance):
5116 * objects.c (Fmake_font_instance):
5117 * print.c (Fwrite_char):
5119 * process.c (mark_process):
5120 * process.c (print_process):
5121 * process.c (get_process_from_usid):
5122 * process.c (Fprocessp):
5123 * process.c (Fprocess_live_p):
5124 * process.c (Fget_process):
5125 * process.c (Fget_buffer_process):
5126 * process.c (get_process):
5127 * process.c (Fprocess_id):
5128 * process.c (Fprocess_name):
5129 * process.c (Fprocess_command):
5130 * process.c (init_process_io_handles):
5131 * process.c (start_process_unwind):
5132 * process.c (Fstart_process_internal):
5133 * process.c (Fopen_multicast_group_internal):
5134 * process.c (Fset_process_window_size):
5135 * process.c (read_process_output):
5136 * process.c (send_process):
5137 * process.c (Fprocess_tty_name):
5138 * process.c (Fset_process_buffer):
5139 * process.c (Fprocess_buffer):
5140 * process.c (Fprocess_mark):
5141 * process.c (set_process_filter):
5142 * process.c (Fset_process_filter):
5143 * process.c (Fprocess_filter):
5144 * process.c (Fprocess_send_region):
5145 * process.c (Fprocess_send_string):
5146 * process.c (exec_sentinel):
5147 * process.c (Fset_process_sentinel):
5148 * process.c (Fprocess_sentinel):
5149 * process.c (status_notify):
5150 * process.c (Fprocess_status):
5151 * process.c (Fprocess_exit_status):
5152 * process.c (process_send_signal):
5153 * process.c (Fprocess_send_eof):
5154 * process.c (deactivate_process):
5155 * process.c (remove_process):
5156 * process.c (Fdelete_process):
5157 * process.c (kill_buffer_processes):
5158 * process.c (Fprocess_kill_without_query):
5159 * process.c (Fprocess_kill_without_query_p):
5161 * rangetab.c (Fget_range_table):
5162 * rangetab.c (Fput_range_table):
5163 * rangetab.c (Fremove_range_table):
5164 * rangetab.c (Fclear_range_table):
5166 * search.c (Fskip_chars_forward):
5167 * search.c (Fskip_chars_backward):
5168 * search.c (Fskip_syntax_forward):
5169 * search.c (Fskip_syntax_backward):
5170 * search.c (search_command):
5171 * search.c (Freplace_match):
5172 * search.c (Fregexp_quote):
5173 * select.c (Fown_selection_internal):
5174 * select.c (Fselection_owner_p):
5175 * select.c (Fselection_exists_p):
5176 * select.c (Fget_selection_internal):
5179 * symbols.c (Fintern):
5180 * symbols.c (Fintern_soft):
5181 * symbols.c (Funintern):
5182 * symbols.c (Fapropos_internal):
5183 * symbols.c (Fset_default):
5185 * syntax.c (Fsyntax_table_p):
5186 * syntax.c (Fcopy_syntax_table):
5187 * syntax.c (Fset_syntax_table):
5188 * syntax.c (Fchar_syntax):
5189 * syntax.c (syntax_match):
5190 * syntax.c (Fmatching_paren):
5191 * syntax.c (Fforward_word):
5192 * syntax.c (scan_lists):
5193 * syntax.c (Fscan_lists):
5194 * syntax.c (Fscan_sexps):
5195 * syntax.c (Fparse_partial_sexp):
5196 * toolbar.c (Fcheck_toolbar_button_syntax):
5199 * window.c (Fwindowp):
5200 * window.c (Fwindow_live_p):
5201 * window.c (Fwindow_point):
5202 * window.c (Fdelete_window):
5203 * window.c (Fnext_window):
5204 * window.c (Fprevious_window):
5205 * window.c (Fother_window):
5206 * window.c (window_loop):
5207 * window.c (Fget_lru_window):
5208 * window.c (Fsplit_window):
5209 * window.c (Fenlarge_window):
5210 * window.c (Fenlarge_window_pixels):
5211 * window.c (Fshrink_window):
5212 * window.c (Fshrink_window_pixels):
5213 * window.c (change_window_height):
5214 * window.c (Fwindow_configuration_p):
5215 * window.c (Fcurrent_window_configuration):
5217 * casefiddle.c (casify_object):
5218 * casefiddle.c (Fupcase):
5219 * casefiddle.c (Fdowncase):
5220 * casefiddle.c (Fcapitalize):
5221 * casefiddle.c (Fupcase_initials):
5222 * casefiddle.c (casify_region_internal):
5223 * casefiddle.c (casify_region):
5224 * casefiddle.c (Fupcase_region):
5225 * casefiddle.c (Fdowncase_region):
5226 * casefiddle.c (Fcapitalize_region):
5227 * casefiddle.c (Fupcase_initials_region):
5228 * casefiddle.c (Fupcase_word):
5229 * casefiddle.c (Fdowncase_word):
5230 * casefiddle.c (Fcapitalize_word):
5231 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5232 Replace 0 with '\0' when working with bytes.
5233 Replace initial "(" with "\(" in docstrings.
5235 2000-11-01 Martin Buchholz <martin@xemacs.org>
5237 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5239 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5241 2000-10-31 Martin Buchholz <martin@xemacs.org>
5243 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5245 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5247 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5250 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5252 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5253 (inhibit_auto_save_session): New variable.
5254 (vars_of_fileio): Declare and initialize them.
5255 * fileio.c (Fdo_auto_save): Don't create session file if
5256 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5258 2000-10-31 Martin Buchholz <martin@xemacs.org>
5260 * sgiplay.c (play_internal): C++ compilability.
5261 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5262 * callproc.c (Fold_call_process_internal):
5263 Remove unused vars `env', `first'.
5264 * scrollbar.c (update_scrollbar_instance):
5265 #### unused var `current_window'.
5266 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5267 etc. within #ifdef NOT_YET.
5268 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5269 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5270 * specifier.c (specifier_instance):
5271 #### unused var `tag'.
5272 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5274 2000-10-27 Martin Buchholz <martin@xemacs.org>
5277 * fns.c (list_sort):
5278 * fns.c (Ffillarray):
5279 * fns.c (bytecode_nconc2):
5282 * fns.c (Fmapconcat):
5283 Be pedantically 64-bit correct. For the time when someone will
5284 want to have a list with length > 2**32.
5286 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5287 Work around MIPSpro compiler bug.
5289 * process-unix.c (unix_kill_child_process): Add snarky comment.
5290 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5292 * config.h.in: Oops, _getpt ==> _getpty
5294 2000-10-26 Martin Buchholz <martin@xemacs.org>
5298 Use void*, not char*, as return type of alloca().
5300 * alloc.c (free_marker): Side effect inside assert expression!
5302 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5304 * mule-charset.c (Fset_charset_ccl_program): To check
5305 if the given ccl program is valid, use setup_ccl_program()
5306 instead of CHECK_VECTOR().
5307 (Fmake_charset): Likewise.
5309 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5311 * faces.c (get_extent_fragment_face_cache_index):
5312 Fix cachel.merged_faces memory leak.
5314 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5316 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5317 Reset MSB of octets obtained by DECODE_SJIS
5318 because of the incompatibility with Emacs.
5319 (ccl_driver)<CCL_ENCODE_SJIS>:
5320 Set MSB of octets before passing them to
5321 ENCODE_SJIS because of the incompatibility
5324 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5326 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5327 (DECLARE_LRECORD): Undo the last change.
5328 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5330 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5332 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5333 the implementation to lrecord_implementations_table.
5335 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5337 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5338 initial value of `lrecord_type_##c_name' and
5339 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5340 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5341 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5342 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5343 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5345 2000-10-17 Martin Buchholz <martin@xemacs.org>
5347 * miscplay.c (sndcnv8S_2mono):
5348 (sndcnv2monounsigned):
5349 (sndcnvULaw_2linear):
5351 Remove implementation-defined behavior.
5353 2000-10-12 Martin Buchholz <martin@xemacs.org>
5355 * input-method-xlib.c: Warning suppression.
5357 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5359 * mule-ccl.c: Sync up with Emacs 21.0.90.
5360 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5362 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5364 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5365 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5366 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5367 leading char belongs to official 2-dimensional charset.
5368 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5369 write the given character as is. Otherwise,
5370 if it is a multibyte char, convert it by
5371 non_ascii_set_charptr_emchar, then write it.
5372 (CCL_WRITE_STRING): Likewise.
5373 (ccl_get_compiled_code): New function.
5374 (setup_ccl_program): When ccl_prog is invalid,
5376 (Fregister_code_conversion_map): New function.
5377 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5379 * mule-ccl.h: Sync up with Emacs 21.0.90.
5380 (Fregister_ccl_program): export it.
5382 * redisplay-msw.c (separate_textual_runs):
5383 If ccl program is not valid, don't do ccl conversion.
5385 * redisplay-x.c (separate_textual_runs): Ditto.
5387 * file-coding.c (Fmake_coding_system):
5388 When type is ccl and value is vector, register it
5389 with a proper symbol. And checks whether the
5390 given ccl program is valid.
5391 (mule_decode): When calling ccl_driver, if src indicates
5392 NULL pointer, set an empty string instead.
5393 (mule_encode): Likewise.
5395 2000-10-11 Martin Buchholz <martin@xemacs.org>
5397 The following large batch of changes gets us back to a state of
5398 C++ compilability. Extbyte is now a char, which means that
5399 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5401 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5403 * sound.c (Fplay_sound): Type correctness.
5405 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5406 (x_get_window_property): Type correctness.
5407 (receive_incremental_selection): unsigned char ==> Extbyte
5408 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5409 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5410 (Fx_store_cutbuffer_internal): Type correctness.
5412 * process-unix.c (try_to_initialize_subtty): Type correctness.
5414 * objects-x.c (x_print_color_instance): Type correctness.
5415 (x_print_font_instance): Type correctness.
5416 (x_list_fonts): SExtbyte ==> Extbyte.
5417 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5418 (x_find_charset_font): SExtbyte ==> Extbyte.
5419 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5420 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5421 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5424 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5425 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5426 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5427 (BYTE_C0_P): Use bit ops for char-signedness safety.
5428 (BYTE_C1_P): Use bit ops for char-signedness safety.
5429 (CHARSET_BY_LEADING_BYTE):
5430 (CHARSET_BY_ATTRIBUTES):
5431 Always use inline function.
5432 Use type_checking_assert.
5435 * mule-charset.c (non_ascii_charptr_copy_char):
5436 Modify to work with both ASCII and non-ASCII characters.
5437 Improve docs and variable names.
5438 Replace over-clever fall-through switch with a simple loop.
5439 (Lstream_get_emchar_1):
5440 Replace over-clever fall-through switch with a simple loop.
5442 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5443 Warning suppression.
5445 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5446 the return value of Lstream_getc, which could be EOF as well.
5448 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5450 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5451 APIs can be used on Extbytes without casts. Risky!
5455 * input-method-xlib.c (XIM_init_device):
5456 Use Xlib.h instead of IntrinsicP.h.
5457 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5458 which will break in X11R7.
5459 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5460 to call XRegisterIMInstantiateCallback with correct types.
5462 * gui-x.c (button_item_to_widget_value): Type correctness.
5464 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5466 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5467 (xbm_instantiate_1): Type correctness.
5468 (BUILD_GLYPH_INST): Type correctness.
5470 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5473 (decode_coding_sjis):
5474 (decode_coding_big5):
5475 (decode_coding_ucs4):
5476 (decode_coding_utf8):
5477 (decode_coding_iso2022):
5478 (decode_coding_no_conversion):
5479 Make all decoding functions take an Extbyte * arg.
5480 (encode_coding_sjis):
5481 (encode_coding_big5):
5482 (encode_coding_ucs4):
5483 (encode_coding_utf8):
5484 (encode_coding_iso2022):
5485 (encode_coding_no_conversion):
5486 Make all encoding functions take a Bufbyte * arg.
5487 Use size_t instead of unsigned int for memory sizes.
5488 Only cast to unsigned char whenever dereferencing Extbyte *.
5490 * doc.c (unparesseuxify_doc_string): Type correctness.
5492 * console-x.c (split_up_display_spec):
5493 Rewrite without using details of internal string representation.
5494 (x_semi_canonicalize_device_connection): Type correctness.
5497 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5498 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5499 (HAVE_XFREE386): Removed.
5501 * buffer.h (DEC_CHARPTR): `const' correctness.
5502 (bufbyte_strcmp): New.
5503 (bufbyte_memcmp): New.
5505 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5507 * buffer.h (XCHAR_OR_CHAR_INT):
5508 Always use inline function.
5509 Remove redundant type checking assert() - XINT will abort quite nicely.
5511 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5513 * search.c (Freplace_match): Set newtext to an empty string.
5515 2000-10-10 Martin Buchholz <martin@xemacs.org>
5517 * s/decosf1-3.h: Remove #include of stropts.h
5518 * s/ptx.h: Remove #include of stropts.h
5519 * s/usg5-4.h: Remove #include of stropts.h
5522 Use stropts.h, not sys/stropts.h.
5523 Use strtio.h, not sys/strtio.h.
5525 2000-10-04 Martin Buchholz <martin@xemacs.org>
5527 * XEmacs 21.2.36 is released.
5529 2000-09-21 Andy Piper <andy@xemacs.org>
5531 * glyphs-x.c (x_redisplay_widget): make sure non-structural
5532 changes still involve copying the widget tree.
5533 (update_widget_face): make sure a change is register in the widget
5534 tree. Call update_tab_widget_face appropriately.
5535 (update_tab_widget_face): ditto.
5536 (x_tab_control_redisplay): make sure non-structural changes still
5537 involve copying the widget tree.
5539 2000-08-31 Daiki Ueno <ueno@unixuser.org>
5541 * lread.c (locate_file): Check the path element is non-nil.
5543 2000-10-02 Martin Buchholz <martin@xemacs.org>
5545 * lisp.h: Warning suppression for SCO compilers.
5547 * redisplay-tty.c (reset_tty_modes): Fix crash.
5548 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5550 2000-09-27 Martin Buchholz <martin@xemacs.org>
5552 Big signal/process handling overhaul. Bugs fixed:
5553 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5554 M-x comint-kill-subjob should work for both values nil and t of
5555 process-connection-type. It was broken on most platforms.
5556 Testing on Irix and Cygwin still needed. Other plaforms tested.
5557 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
5558 * process-unix.c: Signal/Process handling overhaul.
5559 (pty_name): make 64 bytes, as `expect' does, for paranoia.
5560 (allocate_pty): Use all available modern methods of allocating
5561 ptys, falling back to old style BSD allocation as a last resort.
5562 Use allegedly more secure Unix98 pty allocation by default.
5563 (allocate_pty_the_old_fashioned_way): New. the last resort.
5564 (unix_create_process): Push ptem, ldterm, ttcompat where
5565 available. Autoconfiscate.
5566 (try_to_initialize_subtty): New.
5567 (unix_kill_child_process): Proper signal handling for ptys on most
5568 platforms, using special knowledge of AIX, BSD, etc...
5569 (unix_create_process): Always disconnect_controlling_terminal() for
5570 subprocesses, whether using ptys or not.
5571 * process.h: Remove old getpt-dependent PTY code.
5572 * process.c (Fprocess_send_signal): New, obvious generic function.
5573 (decode_signal): New.
5574 (Finterrupt_process):
5578 (Fcontinue_process):
5579 (Fsignal_process): Use decode_signal.
5580 (process_send_signal):
5581 Many docstring corrections.
5582 Allow any signal to be sent to a process object.
5583 * config.h.in: Add symbols for big signal/process overhaul.
5584 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5585 * sysproc.h: Include process-related headers, where available:
5586 sys/stropts.h sys/strtio.h pty.h libutil.h
5594 Remove old S&M pty stuff.
5595 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5596 * systty.h: Simplify cpp hackery, improve comments.
5597 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5599 * editfns.c (Fformat_time_string):
5600 Be a little more paranoid with the return value of ctime.
5602 * fileio.c (check_executable):
5604 Use symbolic constants X_OK, W_OK.
5606 * console-x.c (split_up_display_spec): Fix a warning.
5608 2000-10-02 Martin Buchholz <martin@xemacs.org>
5610 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5611 * ntproc.c (sys_spawnve): make_string ==> build_string
5612 Small clarity improvements.
5614 2000-09-30 Martin Buchholz <martin@xemacs.org>
5616 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5618 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5620 * config.h.in (HAVE_STRCASECMP): Remove.
5622 2000-09-29 Martin Buchholz <martin@xemacs.org>
5624 * redisplay-output.c (redisplay_output_pixmap):
5625 Cleaner and possibly more 64-bit correct code.
5627 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5629 * dumper.c (pdump_load_finish): move restoration of
5630 `noninteractive1' to emacs.c (main_1).
5631 * emacs.c (main_1): protect LISP-visible command-line flags
5634 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
5636 * Makefile.in.in (versionclean): Use EXE_TARGET and
5637 DUMP_TARGET instead of literal program names.
5639 2000-09-20 Martin Buchholz <martin@xemacs.org>
5641 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5643 2000-09-19 Martin Buchholz <martin@xemacs.org>
5645 * *: Spelling mega-patch
5647 2000-09-19 Martin Buchholz <martin@xemacs.org>
5649 * fns.c (bad_bad_turtle):
5650 Delete "Eek!" comment, since we fixed the bug to which it refers.
5652 2000-09-16 Martin Buchholz <martin@xemacs.org>
5654 * alloca.c: Replace REGISTER with register.
5656 2000-09-16 Daiki Ueno <ueno@unixuser.org>
5658 * file-coding.c (ucs_to_char): Use countof.
5660 2000-09-16 Martin Buchholz <martin@xemacs.org>
5662 * file-coding.c: (ucs_to_char):
5663 (complex_vars_of_file_coding):
5664 Use countof instead of sizeof.
5665 Use CHECK_NATNUM instead of CHECK_INT.
5667 * sysdep.c (strcasecmp): Remove.
5668 * device-x.c (ascii_strcasecmp): New.
5669 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5670 Avoid using non-standard non-portable strcasecmp.
5672 2000-09-16 Martin Buchholz <martin@xemacs.org>
5674 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5675 * font-lock.c: remove reference to emacsfns.h.
5676 * search.c: small doc improvement.
5677 * event-Xt.c: correct file names in comments.
5678 * console-x.h Correct file names in comments.
5679 * frame.c: Correct file names in comments.
5680 * event-stream.c: remove Energize from comments.
5682 2000-09-15 Martin Buchholz <martin@xemacs.org>
5684 * symeval.h (DEFERROR_STANDARD):
5687 (DEFSYMBOL_NO_DUMP):
5688 (DEFSYMBOL_MULTIWORD_PREDICATE):
5689 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5691 The construct &##name is not sensible C.
5692 Fixes compilation errors with Unixware native compiler.
5694 2000-09-14 Martin Buchholz <martin@xemacs.org>
5696 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5697 (next_frame_internal): Removed. We now just have next_frame.
5699 Write a simpler and cleaner one-pass algorithm.
5700 Remove called_from_delete_device arg and #ifdefed-out code.
5702 Renamed from prev_frame. Update callers.
5703 Cleaned up to have an analogous implementation to next_frame.
5704 (other_visible_frames_internal): Remove the
5705 called_from_delete_device bogus arg, and hence, remove this
5706 function. Just use other_visible_frames().
5708 * window.c (Fnext_window):
5710 Since next_frame() is guaranteed to return a frame, remove check
5711 for nil inserted in previous patch.
5714 Make code look more like Fnext_window.
5716 Respect the `console' arg when iterating through windows.
5717 Fixes bug: (get-buffer-window buffer t device) not respecting
5719 This function needs more work, as others have pointed out.
5721 * frame.h: Rename prev_frame to previous_frame.
5722 device_matches_console_spec no longer takes a `frame' arg.
5727 Use EMACS_BLOCK_SIGNAL instead of sigblock.
5728 From "Golubev I. N." <gin@mo.msk.ru>.
5730 * make-src-depend: Fix typo.
5732 2000-09-13 Martin Buchholz <martin@xemacs.org>
5734 * window.c (Fnext_window):
5735 next_frame() might return nil, not a frame.
5737 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5739 * frame.c (next_frame_internal):
5740 We've passed a frame if we've passed its device.
5742 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5743 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5745 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
5747 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5748 Allow option to suppress accelerators in menu/dialog items.
5749 (populate_or_checksum_helper): Pass dialog title through above.
5751 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
5753 * event-msw.c (mswindows_key_to_emacs_keysym):
5754 Add "pause" key, fix "menu" key.
5756 2000-09-09 Martin Buchholz <martin@xemacs.org>
5758 * eval.c (reinit_vars_of_eval):
5759 Increase max_lisp_eval_depth to 1000,
5760 required for thai-xtis.el to byte-compile under some circumstances.
5762 2000-09-04 Martin Buchholz <martin@xemacs.org>
5764 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5767 2000-09-01 Martin Buchholz <martin@xemacs.org>
5769 * make-src-depend: Make the generated Makefiles smaller.
5771 * s/hpux.h (SETUP_SLAVE_PTY):
5772 Provide a %d in the format string for the errno argument.
5774 * editfns.c (Ftemp_directory):
5776 Avoid buffer overrun on very long file name.
5778 * input-method-xlib.c (XIM_init_device):
5779 6th parameter of XRegisterIMInstantiateCallback has different
5780 pointer types on different OSes, so simply cast to (void *).
5782 * unexhp9k800.c: Warning fixes. Fiddly changes.
5784 * sysdll.c (dll_open):
5785 shl_load will hang hard if passed a NULL filename.
5786 Simply return NULL for compatibility with dlopen.
5787 * sysdll.c: Conform to XEmacs coding standards.
5789 * sysdep.c (get_pty_max_bytes):
5790 Support pty input lines longer than 512 bytes on HP-UX 10.20.
5792 2000-08-31 Martin Buchholz <martin@xemacs.org>
5794 * tooltalk.c: Add #include <syssignal.h>
5796 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
5798 * s/hpux.h: Don't use undefined function sigunblock().
5800 2000-08-31 Martin Buchholz <martin@xemacs.org>
5802 * config.h.in: Add HAVE_BALLOON_HELP.
5803 * emacs.c: Use HAVE_BALLOON_HELP.
5804 * Makefile.in.in (x_objs):
5805 Make Balloon Help conditional on finding shape.h.
5807 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
5809 * syntax.c (regex_emacs_buffer_p): New variable.
5810 * syntax.h (regex_emacs_buffer_p): extern.
5811 * search.c (looking_at_1):
5813 (fast_string_match):
5814 (search_buffer): Set regex_emacs_buffer_p.
5815 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5816 when before_dot, at_dot, after_dot.
5818 2000-08-23 Andy Piper <andy@xemacs.org>
5820 * gui-x.c (popup_selection_callback): Only set action_occurred
5821 when we really have an image instance.
5822 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5824 2000-08-23 Andy Piper <andy@xemacs.org>
5826 * gui-msw.c (mswindows_handle_gui_wm_command): set
5828 * gui-x.c (popup_selection_callback): ditto.
5830 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5831 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5832 (struct Lisp_Image_Instance): add action_occurred flag.
5834 * glyphs.c (redisplay_subwindow): use action_occurred flag.
5835 (image_instance_changed): ditto.
5836 (reset_frame_subwindow_instance_cache): only unmap windows - do
5837 not remove them from the cache also.
5839 * glyphs-widget.c (tab_control_update): better debug.
5840 (progress_gauge_update): ditto.
5841 (layout_update): ditto.
5842 (layout_instantiate): ditto.
5843 (tab_control_order_only_changed): cope with null pending items.
5845 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5846 debug. Force selection of an item when an action occurred. Cope
5847 with null pending_items.
5848 (mswindows_progress_gauge_redisplay): better debug.
5849 * glyphs-x.c (x_tab_control_redisplay): ditto.
5851 * redisplay.c (redisplay_frame): reset the frame cache if the
5854 * window.c (Fset_window_configuration): potentially re-enable
5856 (window_unmap_subwindows): need to finalize instances here since
5857 it is only used in mark_window_as_deleted.
5859 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
5861 * nas.c (SndOpenDataForReading):
5862 nas.c (WaveOpenDataForReading):
5863 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5864 Somehow escaped from the 2000-08-14 patch.
5866 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5868 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5869 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5871 2000-08-21 Andy Piper <andy@xemacs.org>
5873 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5874 window if it is not already displayed.
5876 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5877 it is not already displayed.
5879 * window.c (Fset_window_configuration): don't reset the frame
5882 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5883 instances from the frame cache if we are actually finalizing them.
5884 (reset_frame_subwindow_instance_cache): reset frame cache only
5885 after unmapping everything.
5886 (map_subwindow): set displayed flag after mapping.
5888 2000-08-21 Martin Buchholz <martin@xemacs.org>
5890 * data.c (indirect_function):
5891 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5893 * eval.c (function_argcount):
5894 Use original function when signaling errors.
5896 2000-08-18 Andy Piper <andy@xemacs.org>
5898 * frame.c (delete_frame_internal): use new
5899 free_frame_subwindow_instances name.
5901 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5902 (add_tab_item): make return type correct.
5903 (mswindows_tab_control_instantiate): assert index of tab.
5904 (mswindows_tab_control_redisplay): Re-code to use
5905 gui_item_equal_sans_selected and gui_item_list_find_selected.
5907 * glyphs-widget.c (tab_control_update): Correct comment.
5909 * window.c (window_unmap_subwindows): use new
5910 unmap_subwindow_instance_cache_mapper.
5911 (window_unmap_subwindows_cache_mapper): deleted.
5912 (Fset_window_configuration): comparisons should now be with
5913 EQ. Preserve the subwindow instance cache across configuration
5915 (allocate_window): ditto.
5916 (make_dummy_parent): ditto.
5918 * glyphs.c (free_frame_subwindow_instances): rename from
5919 free_frame_subwindow_instance_cache. finalize all instances rather
5920 than just those in the display cache.
5921 (finalize_all_subwindow_instances): walk windows unmapping and
5922 finalizing subwindows.
5923 (unmap_subwindow_instance_cache_mapper): moved from
5924 window.c. Allow finalization as well as unmapping.
5926 * gui.c (gui_item_list_find_selected): new function.
5928 * gui.h (gui_item_list_find_selected): declare.
5930 * glyphs-x.c (x_tab_control_redisplay): pick tab
5931 explicitly. Re-code to use gui_item_equal_sans_selected and
5932 gui_item_list_find_selected.
5934 * glyphs-x.h: add lwlib-utils.h
5936 * buffer.c (Frecord_buffer): undo previous change.
5938 2000-08-09 Vin Shelton <acs@xemacs.org>
5940 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5941 possible. Create temporary files more securely. The patch was
5942 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5943 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
5944 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5947 2000-08-07 Ben Wing <ben@xemacs.org>
5949 * getloadavg.c: remove duplicate (and windows-breaking)
5950 includes of fcntl.h and sys/file.h.
5952 * nt.c: remove duplicate getloadavg() definition.
5954 * sysdll.h (Qdll_filename_encoding): add missing stand-in
5957 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
5959 * eval.c (function_argcount): If function needs to be autoloaded
5960 actually use the loaded definition.
5963 2000-08-05 Ben Wing <ben@xemacs.org>
5965 * getloadavg.c: add prototype for getloadavg(). remove
5966 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5967 of the code). remove duplicate header includes.
5969 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5971 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5972 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5973 useful load average.
5975 * alloc.c (reinit_alloc_once_early): removed references to
5976 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5977 the lisp vars are the only things referencing the malloc_sbrk_*
5978 vars, and they were already if 0'd out. these vars only exist
5979 in the older malloc.c, which is basically unused, and they're
5980 only for informational purposes.
5982 * m\*.h: removed useless VIRT_ADDR_VARIES.
5984 * m\powerpc.h: removed stray NO_ARG_ARRAY.
5986 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
5988 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5989 color if the image is a mono pixmap.
5991 2000-07-30 Ben Wing <ben@xemacs.org>
5993 * Makefile.in.in (release):
5996 * buffer.c (directory_is_current_directory):
5997 * dired-msw.c (mswindows_get_files):
5999 * dired.c (Fdirectory_files):
6000 * dired.c (file_name_completion_stat):
6001 * dired.c (Ffile_attributes):
6002 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6003 preprocessor tricks, to avoid problems on some machines
6006 * callproc.c (egetenv): GC docs.
6009 * console-msw.h (struct mswindows_dialog_id):
6010 * lrecord.h (lrecord_type):
6011 New object for use with MSW dialogs.
6013 * console.h (struct console_methods):
6014 New enable/disable frame methods, for proper modal dialogs.
6016 * device-msw.c (msprinter_default_printer): Fix to follow
6017 proper Mule conventions.
6020 * device-msw.c (signal_open_printer_error):
6021 * device-msw.c (msprinter_init_device):
6022 * device-msw.c (ensure_not_printing):
6023 * device-msw.c (plist_get_margin):
6024 * device-msw.c (Fmsprinter_select_settings):
6025 * device-msw.c (finalize_devmode):
6026 * device-msw.c (Fmsprinter_settings_despecialize):
6027 * device-msw.c (signal_enum_priner_error):
6028 * extents.c (decode_extent):
6029 * extents.c (decode_map_extents_flags):
6030 * extents.c (decode_extent_at_flag):
6031 * extents.c (Fextent_at):
6032 * extents.c (Fextents_at):
6033 * extents.c (symbol_to_glyph_layout):
6034 [[[[2]]]] Use structured errors.
6037 * dialog-msw.c (mswindows_is_dialog_msg):
6038 * dialog-msw.c (mark_mswindows_dialog_id):
6039 * dialog-msw.c (dialog_proc):
6040 * dialog-msw.c (handle_question_dialog_box):
6041 * dialog-msw.c (syms_of_dialog_mswindows):
6042 Define new object to clean up marking; use it as a dialog identifier.
6043 Call new delete-dialog-box-hook.
6045 * dialog-x.c (dbox_selection_callback):
6046 * dialog-x.c (dbox_descriptor_to_widget_value):
6047 * dialog-x.c (x_make_dialog_box_internal):
6048 Call new delete-dialog-box-hook.
6052 * dialog.c (syms_of_dialog):
6053 * dialog.c (vars_of_dialog):
6054 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6057 * eval.c (signal_call_debugger):
6058 when noninteractive, output stack traces on the console instead
6059 of in a (never-seen) buffer.
6061 * eval.c (signal_type_error):
6062 * eval.c (invalid_argument_2):
6064 new funs for use w/structured errors.
6067 * event-Xt.c (x_to_emacs_keysym):
6068 * event-Xt.c (describe_event):
6069 * event-Xt.c (emacs_Xt_event_handler):
6070 * event-Xt.c (vars_of_event_Xt):
6072 * event-msw.c (mswindows_wnd_proc):
6073 * event-msw.c (vars_of_event_mswindows):
6074 rename {x,mswindows}-debug-events to debug-{}-events for
6075 consistency with other debug-foo variables.
6078 document next-event more clearly.
6080 * fileio.c (Ffile_name_directory):
6081 * fileio.c (Ffile_name_nondirectory):
6082 * fileio.c (Funhandled_file_name_directory):
6083 * fileio.c (file_name_as_directory):
6084 * fileio.c (Ffile_name_as_directory):
6085 * fileio.c (directory_file_name):
6086 * fileio.c (Fdirectory_file_name):
6087 * fileio.c (Fmake_temp_name):
6088 * fileio.c (Ffile_truename):
6089 * fileio.c (Fsubstitute_in_file_name):
6090 * fileio.c (expand_and_dir_to_file):
6091 * fileio.c (barf_or_query_if_file_exists):
6092 * fileio.c (check_executable):
6093 * fileio.c (Ffile_exists_p):
6094 * fileio.c (Ffile_writable_p):
6095 * fileio.c (Ffile_directory_p):
6096 * fileio.c (Ffile_regular_p):
6097 * fileio.c (Ffile_modes):
6098 * fileio.c (Ffile_newer_than_file_p):
6099 * fileio.c (Fverify_visited_file_modtime):
6100 * fileio.c (Fset_visited_file_modtime):
6101 * fileio.c (auto_save_1):
6106 * frame-msw.c (mswindows_init_frame_1):
6107 * frame-msw.c (mswindows_enable_frame):
6108 * frame-msw.c (error_frame_unsizable):
6109 * frame-msw.c (msprinter_init_frame_1):
6110 * frame-msw.c (msprinter_init_frame_3):
6111 * frame-msw.c (console_type_create_frame_mswindows):
6113 implement new enable/disable frame methods.
6116 * frame-x.c (x_enable_frame):
6117 * frame-x.c (console_type_create_frame_x):
6118 implement new enable/disable frame methods.
6121 * frame.c (Fdisable_frame):
6122 * frame.c (syms_of_frame):
6123 * frame.h (struct frame):
6124 implement new enable/disable frame methods/functions.
6129 * glyphs-msw.c (mswindows_widget_instantiate):
6130 comment that initial-focus should be implemented.
6133 * glyphs-widget.c (check_valid_instantiator):
6134 * glyphs-widget.c (check_valid_orientation):
6135 * glyphs-widget.c (check_valid_tab_orientation):
6136 * glyphs-widget.c (check_valid_justification):
6137 * glyphs-widget.c (check_valid_border):
6138 * glyphs-widget.c (check_valid_callback):
6139 * glyphs-widget.c (check_valid_int_or_function):
6140 * glyphs-widget.c (check_valid_string_or_vector):
6141 * glyphs-widget.c (check_valid_item_list_1):
6142 * glyphs-widget.c (widget_validate):
6143 * glyphs-widget.c (combo_box_validate):
6144 * glyphs-widget.c (widget_instantiate):
6145 * glyphs-widget.c (syms_of_glyphs_widget):
6146 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6147 * glyphs-widget.c (image_instantiator_combo_box):
6148 * glyphs-widget.c (image_instantiator_scrollbar):
6149 * glyphs-widget.c (image_instantiator_tab_control):
6150 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6152 support (unimplemented) keyword initial-focus.
6153 reindent long macros.
6155 * glyphs-x.c (x_redisplay_widget):
6156 * glyphs-x.c (x_button_instantiate):
6157 * glyphs-x.c (x_button_redisplay):
6158 * glyphs-x.c (x_progress_gauge_instantiate):
6159 * glyphs-x.c (x_edit_field_instantiate):
6160 * glyphs-x.c (x_combo_box_instantiate):
6161 * glyphs-x.c (x_tab_control_instantiate):
6162 * glyphs-x.c (x_label_instantiate):
6164 * gui-x.c (button_item_to_widget_value):
6165 * gui-x.c (gui_items_to_widget_values_1):
6166 * gui-x.c (gui_item_children_to_widget_values):
6167 * gui-x.c (gui_items_to_widget_values):
6169 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6170 add new flag to gui-parsing routines to indicate whether
6171 accelerator specs should be supported.
6173 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6175 * glyphs.h (struct Lisp_Image_Instance):
6176 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6177 add initial-focus flag.
6180 * gui.c (syms_of_gui):
6181 * gui.c (vars_of_gui):
6182 clean up menu-no-selection-hook.
6185 support delete-dialog-box-hook.
6187 * lread.c (Fload_internal):
6188 * lread.c (locate_file_in_directory_mapper):
6192 * lrecord.h (struct toolbar_button):
6193 * lrecord.h (syms_of_toolbar):
6194 document how to create a new object.
6196 * menubar-msw.c (mswindows_char_is_accelerator):
6197 may be called on frames w/o menus.
6199 * menubar.c (vars_of_menubar):
6200 clean up :filter docs.
6207 * process-nt.c (validate_signal_number):
6208 * process-nt.c (signal_cannot_launch):
6209 * process-nt.c (nt_create_process):
6210 * process-nt.c (nt_send_process):
6211 * process-nt.c (nt_kill_child_process):
6212 * process-nt.c (nt_open_network_stream):
6213 * process-nt.c (syms_of_process_nt):
6215 delete quote-handling. call new lisp code that does it better.
6217 * process-unix.c (connect_to_file_descriptor):
6218 * process-unix.c (allocate_pty):
6219 * process-unix.c (unix_send_process):
6220 * process-unix.c (unix_kill_child_process):
6221 * process-unix.c (unix_open_network_stream):
6222 * process-unix.c (unix_open_multicast_group):
6226 * process.c (Fstart_process_internal):
6227 (2). need to canonicalize process path even if absolute.
6229 * select-msw.c (symbol_to_ms_cf):
6230 * select-msw.c (ms_cf_to_symbol):
6231 * select-msw.c (cf_is_autofreed):
6232 * select-msw.c (mswindows_destroy_selection):
6234 * select.c (syms_of_select):
6236 support dibv5, fix bugs. (from Mike Alexander)
6238 * select.c (Fget_selection_internal):
6239 * select.c (select_convert_out):
6242 * sysdep.c (xemacs_stat):
6247 but keep original stat() here because we provide encapsulation
6251 * sysfile.h (fstat):
6252 remove stat garbage.
6256 don't include tchar.h. it's inappropriate because it makes
6257 compile-time distinctions when we want runtime distinctions.
6258 (we provide our own tchar replacements)
6261 use default object printer for toolbar-button.
6264 make sure we don't encapsulate.
6266 * window.c (vars_of_window):
6267 emphasize that temp-buffer-show-hook is obsolete.
6269 2000-08-05 Martin Buchholz <martin@xemacs.org>
6271 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6272 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6274 * events.c (Fevent_timestamp_lessp):
6275 Not 64-bit clean. Use EMACS_INT, not int.
6277 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6279 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6280 unsigned int and changed the last enum to
6281 lrecord_type_last_built_in_type.
6282 (lrecord_implementations_table): changed prototype to know how
6283 long the array is supposed to be.
6284 (lrecord_type_count): new unsigned int to keep track of the
6285 current number of lisp lrecord types.
6286 (DEFINE_EXTERNAL_LRECORD):
6287 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6288 dynamic-modules to declare new lisp types. They are the same
6289 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6290 int for each new type, and increment lrecord_type_count by 1.
6292 * alloc.c (lrecord_implementations_table): Changed to reference
6293 lrecord_type_last_built_in_type for the size of the array.
6294 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6296 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6298 * glyphs.h (check_valid_item_list): Renamed from
6299 check_valid_item_list_1.
6301 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6303 * select.c (Qselect_coerce): New.
6304 * select.c (Vselection_coercion_alist): New.
6305 * select.c (syms_of_select): Declare.
6306 * select.c (get-selection-internal): Use it.
6307 Use the new select-coerce functionality.
6309 * select.c (select_coerce): New.
6310 * select.h (select_coerce): Declare.
6311 New function to coerce one type of data into another.
6313 2000-08-03 Martin Buchholz <martin@xemacs.org>
6315 * callproc.c (Fcall_process_internal):
6316 (Fcall_process_internal):
6317 * process-unix.c (unix_create_process):
6318 Save and restore the value of errno, so that error messages are accurate.
6320 2000-08-01 Martin Buchholz <martin@xemacs.org>
6322 * elhash.c (print_hash_table):
6323 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6324 Prettify docstrings and indentation.
6326 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6328 * window.c (Fwindow_pixel_edges): Subtract frame border and
6331 2000-07-31 Andy Piper <andy@xemacs.org>
6333 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6334 will acknowledge the change.
6336 * glyphs.h: declare tab_control_order_only_changed.
6338 * glyphs-x.c (x_tab_control_redisplay): use
6339 tab_control_order_only_changed.
6341 * glyphs-widget.c (tab_control_order_only_changed): new function.
6343 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6344 tab_control_order_only_changed.
6346 * gui.c (gui_item_equal_sans_selected): new function.
6347 (gui_item_equal): use it.
6349 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6350 :properties in favor of :items..
6352 * glyphs-widget.c (check_valid_item_list): rename from
6353 check_valid_item_list_1.
6354 (check_valid_item_list_1): renamed.
6355 (combo_box_validate): deprecate :properties in favor of :items.
6356 (widget_instantiate): ditto.
6357 (tab_control_update): ditto.
6358 (image_instantiator_combo_box): ditto.
6359 (image_instantiator_tree_view): ditto.
6360 (image_instantiator_tab_control): ditto.
6361 (layout_post_instantiate): remove dead code.
6363 * print.c (debug_print_no_newline): only write to debugger if in
6366 * elhash.c (Fmake_hash_table): update doc string.
6368 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6369 messages whilst in GC. This at least stops XEmacs crashing but has
6370 the potential for wierd behaviour.
6372 2000-07-31 Martin Buchholz <martin@xemacs.org>
6375 Make existence of s&m files optional.
6377 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6378 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6379 * s/gnu.h: Remove HAVE_GETLOADAVG.
6380 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6381 * s/sol2.h: Remove HAVE_GETLOADAVG.
6382 * lisp.h: Remove getloadavg() declaration.
6384 Include <sys/loadavg.h> if available.
6385 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6386 * config.h.in: Group together getloadavg()-related macros.
6387 Use only configure-time tests to detect getloadavg().
6389 2000-07-30 Martin Buchholz <martin@xemacs.org>
6391 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6393 2000-07-25 Andy Piper <andy@xemacs.org>
6395 * syswindows.h: add tchar.h for native builds.
6397 * frame.c (syms_of_frame): remove set-glyph-image.
6399 * general-slots.h: add Qset_glyph_image.
6401 * glyphs-widget.c (layout_update): add domain arg to
6403 (syms_of_glyphs_widget): remove set-glyph-image.
6405 2000-07-23 Ben Wing <ben@xemacs.org>
6407 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6410 2000-07-22 Andy Piper <andy@xemacs.org>
6412 * symsinit.h: add syms_of_win32().
6414 * gui-msw.c (syms_of_gui_mswindows): remove
6415 Fmswindows_shell_execute.
6416 (Fmswindows_shell_execute): moved to win32.c.
6418 * emacs.c (main_1): add syms_of_win32 ().
6420 * win32.c (init_potentially_nonexistent_functions): rewrite in
6421 compiler-friendly terms.
6422 (Fmswindows_shell_execute): move here from gui-msw.c.
6423 (syms_of_win32): new.
6425 * device-msw.c (Fmswindows_printer_list): clean up args to
6427 Don't include tchar under cygwin or mingw.
6428 (msprinter_default_printer): make cygwin-friendly.
6430 2000-07-21 Andy Piper <andy@xemacs.org>
6432 * glyphs-widget.c (image_instantiator_tree_view): use tab
6433 control's update function.
6434 (layout_property): new function. Retrieve items.
6436 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6437 function. Re-populate the tree view from the pending items.
6439 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6440 is designated the parent if the domain is an image instance. This
6441 is needed so that dirtiness can be cascade up the hierarchy and
6442 thus for layout children to be redisplayed correctly.
6443 (allocate_image_instance): rename glyph -> parent.
6445 * redisplay.h: change redisplay_output_layout signature.
6447 * redisplay-msw.c (mswindows_output_display_block): use domain
6450 * redisplay-x.c (x_output_display_block): use domain arg.
6452 2000-07-10 Andy Piper <andy@xemacs.org>
6454 * window.c (Fset_window_configuration): add comment.
6456 * redisplay-output.c (compare_runes):
6457 (redisplay_output_subwindow): redisplay rather than update subwindow.
6458 (redisplay_output_layout): ditto.
6460 * redisplay-msw.c (mswindows_frame_output_end):
6461 (mswindows_frame_output_end): make defer window pos optional.
6463 * lisp.h: add Flast.
6465 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6466 normalize method. Change update method to be for changed
6467 instantiators. Add redisplay method. Change signature of layout
6469 (struct Lisp_Image_Instance): add instantiator.
6470 (IMAGE_INSTANCE_INSTANTIATOR): new.
6471 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6472 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6473 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6476 (find_instantiator_differences): new function.
6477 (Fset_instantiator_property): new convenience function.
6478 (check_image_instance_structure): strictly check for vector
6480 (normalize_image_instantiator): make non-static.
6481 (instantiate_image_instantiator): pass on dest_mask and use new
6482 signatures for image_instance_layout and friends.
6483 (mark_image_instance): mark the instantiator. Mark the subwindow
6484 face not the widget face.
6485 (image_instance_equal): add instantiator.
6486 (image_instance_hash): ditto.
6487 (allocate_image_instance): ditto.
6488 (Fset_image_instance_property): removed.
6489 (Fimage_instance_file_name): ditto.
6490 (Fcolorize_image_instance): ditto.
6491 (image_instance_layout): add offsets to be set.
6492 (update_image_instance): new function. update an image instance
6493 from its changed instantiator.
6494 (inherit_normalize): add dest_mask.
6495 (xbm_normalize): ditto.
6496 (xface_normalize): ditto.
6497 (xpm_normalize): ditto.
6498 (text_update): set_property -> update.
6499 (image_instantiate): use the glyph identity as a hash key, not the
6501 (glyph_width): use new image_instance_layout signature.
6502 (glyph_ascent): ditto.
6503 (glyph_descent): ditto.
6504 (glyph_height): ditto.
6505 (glyph_query_geometry): ressurrect.
6506 (glyph_layout): ditto.
6507 (redisplay_subwindow): update -> redisplay.
6508 (syms_of_glyphs): add Fset_instantiator_property.
6509 (image_instantiator_format_create): set_property -> update.
6512 (autodetect_normalize): add dest_maks to signature.
6513 (x_redisplay_subwindow): update -> redisplay.
6514 (x_redisplay_widget): ditto.
6515 (x_button_redisplay): ditto.
6516 (x_progress_gauge_redisplay): ditto.
6517 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6519 (console_type_create_glyphs_x): update -> redisplay.
6520 (image_instantiator_format_create_glyphs_x): ditto.
6523 (check_valid_instantiator): disallow glyphs in the instantiator,
6524 they must now be vectors.
6525 (check_valid_instantiator_list): ditto.
6526 (glyph_instantiator_to_glyph): use internal symbol rather than
6528 (widget_update): renamed from widget_set_property. Call cascaded
6530 (redisplay_widget): renamed from update_widget.
6531 (widget_layout): image_instance_layout now takes position as well
6533 (widget_normalize): ditto.
6534 (widget_instantiate): ditto.
6535 (tab_control_query_geometry) ditto.:
6536 (tab_control_update): renamed from tab_control_set_property.
6537 (progress_gauge_update): set_property -> update.
6538 (layout_normalize): rewrite so that child instantiators are
6540 (layout_update): new function. Create glyphs from the normalized
6541 children and cope with any other layout keywords. We do not
6542 instantiate children here that will be take care of by
6543 redisplay_output_layout.
6544 (layout_instantiate): call layout_update and not much else.
6545 (layout_post_instantiate): not sure whether this is needed
6547 (layout_query_geometry): query glyph geometry rather than
6548 image_instance geometry.
6549 (layout_layout): set offsets from pass in parameters. Use glyph
6550 geometry and layout functions rather than image instance ones.
6551 (native_layout_layout): ditto.
6552 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6553 (image_instantiator_widget): set_property -> update.
6554 (image_instantiator_buttons): ditto.
6555 (image_instantiator_progress_guage): ditto.
6556 (image_instantiator_tab_control): ditto.
6557 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6558 (image_instantiator_layout): add update method.
6560 * glyphs-msw.c (bmp_normalize):
6561 (mswindows_resource_normalize): add dest_mask so that it can be
6562 proprogated by layout_normalize.
6563 (begin_defer_window_pos): make optional because it may not be the
6564 right thing to do and it introduces differences with X.
6565 (mswindows_unmap_subwindow): ditto.
6566 (mswindows_map_subwindow): ditto.
6567 (mswindows_redisplay_subwindow): renamed from
6568 mswindows_update_subwindow.
6569 (mswindows_redisplay_widget): ditto.
6570 (mswindows_button_redisplay): renamed from
6571 mswindows_button_update. Update is now what the instantiation
6572 function does for a changed instantiator.
6573 (mswindows_progress_gauge_instantiate): set the progress value
6574 here if appropriate.
6575 (mswindows_tab_control_redisplay): cope with re-ordering of the
6576 members of the tab widget by simply selecting the new top
6577 widget. This makes things appear ok if you click on a tab.
6578 (mswindows_combo_box_instantiate): image_instance_layout now takes
6579 position as well as size.
6580 (mswindows_progress_gauge_redisplay): renamed from
6581 mswindows_progress_gauge_update.
6582 (console_type_create_glyphs_mswindows): fix update -> redisplay.
6583 (image_instantiator_format_create_glyphs_mswindows): ditto.
6585 * glyphs-eimage.c (jpeg_normalize):
6588 (tiff_normalize): add dest_mask so that it can be proprogated by
6593 (hash_table_weakness_validate):
6594 (decode_hash_table_weakness):
6595 (Fhash_table_weakness):
6597 (syms_of_elhash): use Ben's naming scheme for hashtable types..
6599 * console.h (struct console_methods): move update_* to
6602 2000-07-20 Ben Wing <ben@xemacs.org>
6604 * *.[ch] (XSETOBJ): remove unused middle argument.
6605 lisp-disunion.h: correct wrap_object() to one argument.
6607 2000-07-15 Ben Wing <ben@xemacs.org>
6610 * s/cygwin32.h (CYGWIN_CONV_PATH):
6611 Add missing logb prototype for v1.1.
6612 Use post-b20 names and alias to pre-b20 names when pre-b20.
6614 * s/windowsnt.h: [5].
6616 2000-07-15 Ben Wing <ben@xemacs.org>
6618 * Makefile.in.in (x_objs):
6619 * Makefile.in.in (sheap_objs):
6620 * Makefile.in.in (objs):
6621 added win32.o, cosmetic cleanups.
6623 * alloc.c (Fmake_byte_code):
6624 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6625 etc. macros which declare their own args now.
6627 * alloc.c (syms_of_alloc):
6628 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6631 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6633 * buffer.c (Fget_file_buffer):
6634 Fixed GCPRO problem.
6636 * buffer.c (get_truename_buffer):
6637 Fixed comment about GC checking.
6639 * buffer.c (syms_of_buffer):
6640 Undeclared those dedicated frame funs.
6644 Define convenience macros for internal/external conversions.
6645 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6646 and Qenvironment_variable_encoding for cleaner code.
6649 Remove dedicated-frame; in lisp.
6651 * bytecode.c (funcall_compiled_function):
6654 * bytecode.c (syms_of_bytecode):
6658 * console-msw.c (mswindows_show_console): Rewrote.
6660 * console-msw.c (Fmswindows_debugging_output): New.
6661 Sends to OutputDebugString (special MSWin debugger interface).
6663 * console-msw.c (Fmswindows_message_box):
6664 Fixed stupid bugs so it works when called from kill-emacs.
6666 * console-msw.c (syms_of_console_mswindows):
6667 Declare Fmswindows_debugging_output.
6670 New MSWin prototypes.
6672 * console-msw.h (struct mswindows_frame):
6673 New entry last-click-mods for improved button-modifier support.
6675 * console-msw.h (FRAME_MSWINDOWS_POPUP):
6676 New struct entry `popup' with corresponding accessor.
6679 * console-x.c (split_up_display_spec):
6680 * console-x.c (get_display_arg_connection):
6681 * console-x.c (x_semi_canonicalize_console_connection):
6682 * console-x.c (x_canonicalize_device_connection):
6683 [[[6]]]: Change char to more specific type.
6684 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6686 * console-x.c (x_semi_canonicalize_console_connection):
6687 * console-x.c (x_canonicalize_device_connection):
6688 [[[9]]]: Fix up error signalling to use new structured error system.
6691 [[[4]]]: Define codesys aliases:
6692 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6693 Qx_color_name_encoding, Qx_display_name_encoding.
6695 * console.h (struct console_methods):
6696 New method make_dialog_box_internal supersedes older
6697 popup_dialog_box method.
6700 Define many new errors, part of new structured errors.
6702 * data.c (init_errors_once_early):
6703 * data.c (syms_of_data):
6706 * device-msw.c (mswindows_init_device):
6707 [[[5]]]: Cleanup to support NT 3.51.
6709 * device-msw.c (decode_devmode): Cleanup.
6711 * device-msw.c (mswindows_handle_print_setup_dialog_box):
6712 * device-msw.c (mswindows_handle_print_dialog_box):
6713 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6714 * device-msw.c (syms_of_device_mswindows):
6715 Delete the dialog box primitives recently introduced by Kirill and
6716 instead interface to general dialog box interface.
6719 * device-x.c (compute_x_app_name):
6720 * device-x.c (x_init_device):
6721 * device-x.c (Fx_valid_keysym_name_p):
6722 * device-x.c (Fx_set_font_path):
6726 * device.h (wrap_device): New.
6727 First of its kind; meant to replace XSETDEVICE.
6729 * dialog-msw.c: Many file-dialog symbols.
6731 * dialog-msw.c (mswindows_register_popup_frame): New.
6732 * dialog-msw.c (mswindows_is_dialog_msg): New.
6733 For supporting kbd traversal in dialog boxes.
6735 * dialog-msw.c (dialog_proc):
6736 Support hitting ESC in dialogs.
6738 * dialog-msw.c (struct):
6739 Common dialog box errors.
6741 * dialog-msw.c (handle_file_dialog_box): New.
6742 Add file dialog code.
6744 * dialog-msw.c (handle_question_dialog_box):
6745 Redo existing code to support new question dialog syntax.
6747 * dialog-msw.c (console_type_create_dialog_mswindows):
6748 We support new dialog console method.
6750 * dialog-msw.c (syms_of_dialog_mswindows):
6751 * dialog-msw.c (vars_of_dialog_mswindows):
6752 New file dialog symbols, vars.
6755 * dialog-x.c (maybe_run_dbox_text_callback):
6756 * dialog-x.c (dbox_descriptor_to_widget_value):
6757 * dialog-x.c (x_make_dialog_box_internal):
6758 * dialog-x.c (console_type_create_dialog_x):
6759 Mule-ize entire file.
6760 Redo to support question dialog syntax.
6764 * dialog.c (Fmake_dialog_box_internal):
6765 * dialog.c (syms_of_dialog):
6766 Kill old popup-dialog-box, replace with new primitive.
6767 Just call device method or signal error.
6769 * eldap.c (Fldap_open):
6770 * eldap.c (Fldap_search_basic):
6771 * eldap.c (Fldap_add):
6772 * eldap.c (Fldap_modify):
6777 * emacs.c (make_arg_list_1):
6778 * emacs.c (make_arg_list):
6779 Mule-ize call to dll_init().
6783 * emacs.c (make_argc_argv):
6784 * emacs.c (free_argc_argv):
6785 * emacs.c (init_cmdargs):
6787 * emacs.c (Fkill_emacs):
6788 * emacs.c (Fdump_emacs):
6789 Update comments about what can be used in syms_* etc.
6790 Call init_win32() when necessary.
6791 Fix up MS Win dialog box in kill-buffer to actually work right.
6802 * eval.c (condition_case_3):
6804 * eval.c (function_argcount):
6805 * eval.c (funcall_lambda):
6808 * eval.c (type_error): New.
6809 * eval.c (maybe_type_error): New.
6810 * eval.c (continuable_type_error): New.
6811 * eval.c (maybe_continuable_type_error): New.
6812 * eval.c (type_error_with_frob): New.
6813 * eval.c (maybe_type_error_with_frob): New.
6814 * eval.c (continuable_type_error_with_frob): New.
6815 * eval.c (maybe_continuable_type_error_with_frob): New.
6816 New functions for use with structured errors.
6819 * event-Xt.c (x_event_to_emacs_event):
6820 Buttons are now modifiers too.
6822 * event-Xt.c (emacs_Xt_current_event_timestamp):
6823 Implement new event method.
6824 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6827 * event-msw.c (ntpipe_shove_writer): [5].
6828 * event-msw.c (mswindows_enqueue_mouse_button_event):
6829 * event-msw.c (mswindows_drain_windows_queue):
6830 * event-msw.c (mswindows_wnd_proc): [7].
6831 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6832 * event-msw.c (mswindows_modifier_state):
6833 Throughout: support new button modifiers.
6835 * event-msw.c (emacs_mswindows_current_event_timestamp):
6836 Implement new event method.
6837 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6840 * event-stream.c (event_stream_current_event_timestamp): New.
6841 * event-stream.c (maybe_kbd_translate): New functionality.
6842 * event-stream.c (vars_of_event_stream):
6843 Document new kbd-translate-table functionality.
6845 * event-stream.c (Fcurrent_event_timestamp): New.
6846 New primitive for use in fabricated events.
6847 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6849 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6852 * events.c (Fmake_event):
6853 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6857 * events.c (format_event_object): fix gcc warnings.
6859 * events.c (Fevent_timestamp): Document new primitives.
6861 * events.c (TIMESTAMP_HALFSPACE): New.
6863 * events.c (Fevent_timestamp_lessp): New. New primitive for
6864 comparing timestamps correctly (half-space algorithm).
6866 * events.c (Fevent_modifier_bits): Doc fix.
6868 * events.c (Fevent_modifiers): Major doc addition.
6869 * events.c (event_x_y_pixel_internal): Typo fix.
6870 * events.c (syms_of_events): Declare new primitives.
6873 Update long comment for button modifiers, timestamps.
6875 * events.h (struct event_stream):
6876 New current_event_timestamp method.
6879 * extents.c (extent_in_region_p):
6880 * extents.c (decode_extent):
6881 * extents.c (Fset_extent_parent):
6882 * extents.c (decode_map_extents_flags):
6886 * extents.c (struct extent_at_arg):
6887 * extents.c (decode_extent_at_flag):
6888 * extents.c (extent_at_mapper):
6889 * extents.c (extent_at_bytind):
6890 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6891 * extents.c (Fextents_at): New primitive. [9].
6892 * extents.c (symbol_to_glyph_layout): [9].
6893 Support new primitive `extents-at'.
6896 * extents.c (get_text_property_bytind):
6897 extent_at_bytind has another arg.
6900 * extents.c (syms_of_extents): New primitive.
6902 * file-coding.c (Fmake_coding_system): [1].
6903 * file-coding.c (subsidiary_coding_system): fix gcc warning
6904 * file-coding.c (syms_of_file_coding): [2].
6906 * fileio.c (Fexpand_file_name):
6907 * fileio.c (Fsysnetunam):
6908 * fileio.c (Ffile_exists_p):
6909 * fileio.c (Ffile_executable_p):
6910 * fileio.c (Fverify_visited_file_modtime):
6913 * fileio.c (syms_of_fileio): [2].
6915 * filelock.c (lock_file_1):
6916 * filelock.c (current_lock_owner):
6917 * filelock.c (lock_if_free):
6918 * filelock.c (lock_file):
6919 * filelock.c (unlock_file):
6922 * fns.c (concat): Fix gcc warning.
6925 * fns.c (Fold_member):
6927 * fns.c (Fold_memq):
6928 * fns.c (memq_no_quit):
6930 * fns.c (Fold_assoc):
6932 * fns.c (Fold_assq):
6933 * fns.c (assq_no_quit):
6935 * fns.c (Fold_rassoc):
6937 * fns.c (Fold_rassq):
6938 * fns.c (rassq_no_quit):
6940 * fns.c (Fold_delete):
6942 * fns.c (Fold_delq):
6943 * fns.c (delq_no_quit):
6944 * fns.c (Fremassoc):
6946 * fns.c (remassq_no_quit):
6947 * fns.c (Fremrassoc):
6948 * fns.c (Fremrassq):
6949 * fns.c (remrassq_no_quit):
6954 * frame-msw.c (mswindows_init_frame_1):
6955 * frame-msw.c (mswindows_delete_frame):
6956 Register popups with dialog code so keyboard traversing works.
6958 * frame-tty.c (tty_raise_frame_no_select): [1].
6961 * frame-x.c (x_set_frame_text_value):
6962 * frame-x.c (x_set_frame_properties):
6963 * frame-x.c (x_create_widgets):
6967 * frame.c (Fmouse_pixel_position): Minor doc fixes.
6969 * frame.h (wrap_frame): New.
6970 Macro like wrap_device.
6973 * general.c (SYMBOL):
6974 * general.c (syms_of_general):
6975 Major reorg. This is now just a wrapper and symbols themselves
6976 are listed in general-slots.h.
6978 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6979 * glyphs-msw.c (mswindows_resource_instantiate): [5].
6981 * glyphs-msw.c (mswindows_native_layout_instantiate):
6982 Add DS_CONTROL so keyboard traversal will work.
6985 * glyphs-widget.c (syms_of_glyphs_widget):
6986 Move some symbols to general-slots.h.
6989 * glyphs-x.c (xbm_instantiate_1):
6990 * glyphs-x.c (x_xbm_instantiate):
6991 * glyphs-x.c (x_xface_instantiate):
6992 * glyphs-x.c (autodetect_instantiate):
6993 * glyphs-x.c (cursor_font_instantiate):
6994 * glyphs-x.c (x_update_widget):
6995 * glyphs-x.c (x_widget_instantiate):
6996 * glyphs.c (bitmap_to_lisp_data):
6997 * glyphs.c (pixmap_to_lisp_data):
7000 * glyphs.c (syms_of_glyphs):
7004 * gui-x.c (print_widget_value):
7005 * gui-x.c (menu_separator_style_and_to_external):
7006 * gui-x.c (add_accel_and_to_external):
7007 * gui-x.c (button_item_to_widget_value):
7008 * gui-x.c (gui_items_to_widget_values_1):
7009 * gui-x.c (gui_items_to_widget_values):
7010 * gui-x.c (syms_of_gui_x):
7011 * gui-x.c (vars_of_gui_x):
7012 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7016 Muleize, prototype changes matching gui-x.c.
7019 * gui.c (separator_string_p):
7020 * gui.c (gui_item_add_keyval_pair):
7021 * gui.c (make_gui_item_from_keywords_internal):
7022 * gui.c (signal_too_long_error):
7023 * gui.c (parse_gui_item_tree_item):
7024 * gui.c (syms_of_gui):
7025 * gui.c (vars_of_gui):
7027 menu-no-selection-hook moved here (used by MSWin).
7028 Move some symbols to general-slots.h.
7032 * insdel.c (get_buffer_pos_char):
7033 * insdel.c (get_buffer_range_char):
7036 * keymap.c (keymap_lookup_directly):
7037 * keymap.c (keymap_store):
7038 * keymap.c (ensure_meta_prefix_char_keymapp):
7039 * keymap.c (describe_map):
7041 Support new button modifiers.
7043 * lisp-disunion.h (wrap_object):
7044 * lisp-disunion.h (XSETOBJ):
7045 Rename make_obj to wrap_object.
7048 * lisp-union.h (make_int):
7049 * lisp-union.h (make_char):
7050 Support wrap_object.
7053 * lisp.h (LIST_LOOP):
7054 * lisp.h (EXTERNAL_LIST_LOOP):
7055 * lisp.h (LIST_LOOP_2):
7056 * lisp.h (EXTERNAL_LIST_LOOP_1):
7057 * lisp.h (EXTERNAL_LIST_LOOP_2):
7058 * lisp.h (EXTERNAL_LIST_LOOP_3):
7059 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7060 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7061 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7062 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7063 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7064 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7065 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7066 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7067 * lisp.h (struct Lisp_Symbol):
7068 * lisp.h (maybe_continuable_error_with_frob):
7069 Fix up section comments.
7070 Add new types for char to indicate usage.
7071 Delete symbols auto-generated from general-slots.h.
7072 Add prototypes for structured error functions.
7073 Add long comments describing looping macros and change interface
7074 so that lvalues are automatically declared.
7075 Add NO_DECLARE macro in case callers want to declare lvalues
7078 * lread.c (read_syntax_error):
7079 * lread.c (continuable_read_syntax_error):
7080 * lread.c (read_structure):
7081 * lread.c (sequence_reader):
7082 * lread.c (read_list_conser):
7083 * lread.c (read_compiled_function):
7084 Rename syntax_error and continuable_syntax_error to avoid clash
7085 with same-named structured error functions.
7087 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7088 * menubar-msw.c (populate_menu_add_item):
7089 * menubar-msw.c (populate_or_checksum_helper):
7094 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7095 Mule-ize whole file.
7097 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7099 * mule-charset.c (Fmake_charset):
7100 * mule-wnnfns.c (Fwnn_set_param):
7103 * ntproc.c (create_child):
7104 * ntproc.c (Fwin32_set_current_locale):
7105 Add comments portending doom.
7108 * objects-msw.c (old_font_enum_callback_2):
7109 * objects-msw.c (font_enum_callback_1):
7110 * objects-msw.c (mswindows_enumerate_fonts):
7114 * objects-x.c (allocate_nearest_color):
7115 * objects-x.c (x_parse_nearest_color):
7116 * objects-x.c (x_initialize_color_instance):
7117 * objects-x.c (x_print_color_instance):
7118 * objects-x.c (x_finalize_color_instance):
7119 * objects-x.c (x_valid_color_name_p):
7120 * objects-x.c (x_initialize_font_instance):
7121 * objects-x.c (x_print_font_instance):
7122 * objects-x.c (valid_x_font_name_p):
7123 * objects-x.c (truename_via_FONT_prop):
7124 * objects-x.c (truename_via_random_props):
7125 * objects-x.c (truename_via_XListFonts):
7126 * objects-x.c (x_font_truename):
7127 * objects-x.c (x_font_instance_truename):
7128 * objects-x.c (x_font_instance_properties):
7129 * objects-x.c (x_list_fonts):
7130 * objects-x.c (x_find_charset_font):
7131 Mule-ize entire file.
7138 * print.c (std_handle_out_external):
7139 * print.c (debug_print_no_newline):
7140 * print.c (syms_of_print):
7141 Output to all debugger kinds in debug-print.
7142 Fix console-output code under MSWin to actually work.
7144 * process-nt.c (send_signal):
7145 * process-nt.c (nt_create_process):
7146 Use newer Unicode macros.
7148 * process-unix.c (unix_create_process):
7149 * process-unix.c (unix_canonicalize_host_name):
7150 * process-unix.c (unix_open_network_stream):
7156 * search.c (syms_of_search):
7159 * select-msw.c (mswindows_destroy_selection):
7162 * select-x.c (symbol_to_x_atom):
7165 * select.c (syms_of_select):
7168 * sound.c (Fplay_sound_file):
7172 * specifier.c (decode_specifier_type):
7173 * specifier.c (Fvalid_specifier_locale_type_p):
7174 * specifier.c (check_valid_locale_or_locale_type):
7175 * specifier.c (decode_locale):
7176 * specifier.c (decode_locale_type):
7177 * specifier.c (decode_locale_list):
7178 * specifier.c (check_valid_domain):
7179 * specifier.c (decode_specifier_tag_set):
7180 * specifier.c (Fcanonicalize_tag_set):
7181 * specifier.c (Fdefine_specifier_tag):
7182 * specifier.c (Fspecifier_tag_predicate):
7183 * specifier.c (check_valid_inst_list):
7184 * specifier.c (check_valid_spec_list):
7185 * specifier.c (decode_how_to_add_specification):
7186 * specifier.c (check_modifiable_specifier):
7187 * specifier.c (specifier_add_spec):
7188 * specifier.c (boolean_validate):
7189 * specifier.c (display_table_validate):
7192 * specifier.c (syms_of_specifier):
7193 Move some symbols to general-slots.h.
7197 * symbols.c (Fmapatoms):
7198 * symbols.c (Fapropos_internal):
7201 * symbols.c (set_default_buffer_slot_variable):
7202 * symbols.c (set_default_console_slot_variable):
7205 * symbols.c (defsymbol_massage_name_1):
7206 * symbols.c (defkeyword_massage_name):
7207 * symbols.c (deferror_1):
7208 * symbols.c (deferror):
7209 * symbols.c (deferror_massage_name_and_message):
7211 * symeval.h (DEFSYMBOL):
7212 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7214 * symbols.c (syms_of_symbols):
7218 * symsinit.h (init_win32): New.
7219 Also new is syms_of_dialog_mswindows.
7222 Add new Unicode macros, missing Cygwin wide-char functions,
7223 convenience conversion macros for Qmswindows_tstr, macros for
7224 encapsulating required MSWin <-> Cygwin filename conversions,
7225 prototype for dynamically-extracted (not in NT 3.51) functions.
7230 * tooltalk.c (Fadd_tooltalk_message_arg):
7231 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7232 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7235 * tooltalk.c (syms_of_tooltalk):
7239 * unexnt.c (unexec):
7240 Fix up headers, declaration of unexec() to be more standard.
7242 2000-07-20 Martin Buchholz <martin@xemacs.org>
7244 * offix.h: Revert change to guard macros - they're used in offix.c!
7246 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7248 * lisp.h: Defsubred Fdelete.
7250 * console-msw.h: (msprinter_default_printer): Added.
7252 * console-msw.c (msprinter_canonicalize_console_connection):
7253 (msprinter_canonicalize_device_connection): Added.
7255 * device-msw.c (msprinter_default_printer):
7256 (Fmswingows_get_default_printer):
7257 (signal_enum_priner_error):
7258 (Fmswingows_printer_list): Added.
7260 2000-07-19 Martin Buchholz <martin@xemacs.org>
7262 * XEmacs 21.2.35 is released.
7264 2000-07-19 Martin Buchholz <martin@xemacs.org>
7266 * select-x.c (x_handle_selection_request):
7267 Text selected in xemacs and pasted into xterm failed to appear.
7268 Spelling fixes and cosmetic changes.
7270 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7272 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7273 XEmacs frame (fix for doubling chars in dialog boxes).
7275 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7277 * select.c (select_convert_in, select_convert_out):
7278 Don't call intern() every time.
7280 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7281 * select.c (vars_of_select): Initialise them.
7283 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7285 * select.c (selection-coercible-types): New.
7287 * select.c (own-selection-internal):
7288 * select.c (get-selection-internal):
7289 MULE bug fix - these should default to COMPOUND_TEXT and not
7290 STRING for MULE. I think.
7292 * select.c (select_convert_out): Use selection-coercible-types
7293 to find types that we can attempt to perform coercions on.
7295 2000-07-18 Martin Buchholz <martin@xemacs.org>
7299 Add coding: cookie to identify encoding.
7301 * mule-canna.c (CANNA_mode_keys): make static.
7302 Use proper prototypes, even for functions of no arguments.
7303 Remove external prototype for Fding().
7305 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7307 * select.c (syms_of_select): Add missing DEFSUBR.
7309 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7311 * select.c (get_selection_internal, own_selection_internal):
7312 Make the type default to STRING, rather than placing a nil type
7313 into Vselection_alist.
7315 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7317 * gpmevent.c (tty_selection_exists_p):
7318 * gpmevent.c (tty_own_selection):
7319 Updated parameter lists.
7321 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7323 * select.h (selection-alist): Removed declaration.
7325 * select.h (get_local_selection):
7326 * select.c (get_local_selection):
7329 * select.h (convert_selection): Removed declaration.
7330 * select.c (convert_selection): Removed.
7331 This function belongs in Lisp.
7333 * select.h (select_convert_in): Declare.
7334 * select.h (select_convert_out): Declare.
7335 * select.c (select_convert_in): New.
7336 * select.c (select_convert_out): New.
7337 New conversion functions for other files to call.
7339 * select.h (select_notify_buffer_kill): Declare.
7340 * select.c (select_notify_buffer_kill): New.
7341 New functions that get called from kill-buffer.
7343 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7344 X-specific lisp code.
7346 * select.h: Declare some of the lisp-visible functions for
7349 * select.c (clean_local_selection_data): Removed. This was
7350 a disgusting function, and previously should have been in
7351 select-x.c in any case. The functionality is now provided
7352 in select-convert-from-integer (select.el).
7354 * select.c (available-selection-types): Fixed stupidity where
7355 INTEGER and ATOM got added twice. Also add STRING when we see an
7358 * select.c (get-selection-internal): Removed symbol stripping. No
7359 longer causes conversion when data comes from the internal cache.
7361 * select.c (syms_of_select): Added new functions.
7363 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7364 error checking - previously this called abort!
7366 * select-x.c (x_own_selection): Changed comment.
7368 * select-x.c (x_handle_selection_request): Use select_convert_out.
7369 Don't mess with selection-alist; it's an internal variable of select.c.
7371 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7373 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7374 rather than messing with selection-alist.
7376 * select-msw.c (mswindows_get_foreign_selection):
7377 Use TO_INTERNAL_FORMAT rather than hacking.
7379 2000-07-14 Martin Buchholz <martin@xemacs.org>
7381 * process-unix.c (unix_open_multicast_group):
7382 (unix_open_multicast_group): Remove useless casts.
7384 2000-07-13 Martin Buchholz <martin@xemacs.org>
7386 * sound.c (Fplay_sound): Fix `unused variable' warning.
7388 * emacs.c (main): Use correct type for _environ on SCO5.
7390 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7392 * console.h (own_selection_method):
7393 * console.h (selection_exists_p_method):
7394 * console.h (available_selection_types_method): New.
7395 * console.h (register_selection_data_type_method): New.
7396 * console.h (selection_data_type_name): New.
7398 * console-msw.h (mswindows_destroy_selection): Declare it. New
7399 function & alist to track GlobalAlloc()'d handles that need
7400 releasing when the clipboard data gets replaced or emptied.
7402 * event-msw.c (mswindows_wnd_proc): Call it.
7404 * lisp.h, general.c (Qappend): New symbol representing a
7407 * select.c (own-selection-internal):
7408 * select.c (selection-exists-p):
7409 * select.c (available-selection-types): New.
7410 * select.c (register-selection-data-type): New.
7411 * select.c (selection-data-type-name): New. New functions to deal
7412 with device-specific selection data formats.
7413 * select.c (selection-converter-out-alist): Renamed.
7414 * select.c (selection-converter-in-alist): New.
7415 * select.c (selection-appender-alist): New. Added new alists.
7416 * select.c (syms_of_select, vars_of_select): Added new symbols &
7418 * select.c (get_local_selection): Split.
7419 * select.c: Removed spurious type checking - selections may now be
7420 of any type, not just strings.
7421 * select.c (own-selection-internal):
7423 * select.h, select.c (convert_selection): New. Created
7424 convert_selection() function based on get_local_selection().
7425 * select.h, select.c (QCF_*): New symbols representing mswindows
7427 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7428 symbols representing `how-to-add' modes.
7430 * select-msw.c (x_sym_p): New.
7431 * select-msw.c (symbol_to_ms_cf): New.
7432 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7433 symbols & clipboard formats. Can also handle string names.
7434 * select-msw.c (mswindows_own_selection):
7435 * select-msw.c (mswindows_selection_exists_p):
7436 Added `data-type' parameter. Use it.
7437 * select-msw.c (mswindows_available_selection_types): New.
7438 * select-msw.c (mswindows_register_selection_data_type): New.
7439 * select-msw.c (mswindows_selection_data_type_name): New.
7440 * select-msw.c (mswindows_own_selection):
7441 * select-msw.c (mswindows_get_foreign_selection):
7442 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7443 * select-msw.c (console_create_select_mswindows): Added new methods.
7444 * select-msw.c (mswindows_destroy_selection): New.
7445 * select-msw.c (Vhandle_alist): New list.
7446 * select-msw.c (mswindows_own_selection):
7448 * select-x.c (x_own_selection):
7449 * select-x.c (x_selection_exists_p):
7450 * select-x.c: Added some comments about maybe using new
7452 * select-x.c (x_own_selection):
7454 * specifier.c: Remove definition of Qappend (now in general.c)
7455 * specifier.c (syms_of_specifier): Remove Qappend.
7457 2000-07-12 Martin Buchholz <martin@xemacs.org>
7459 * config.h.in: Add socklen_t.
7461 * s/decosf4-0.h: No special compiler flags needed or desired.
7462 In particular, undefine _BSD for DEC OSF 4.0.
7464 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7466 * redisplay-msw.c (msprinter_frame_output_end): Added.
7467 (console_type_create_redisplay_mswindows): Referred the above.
7469 * frame.c (setup_frame_without_minibuffer): Do not create a
7470 default minibuffer frame on a printer device.
7472 * frame-msw.c (apply_dc_geometry): Added.
7473 (msprinter_start_page):
7474 (msprinter_init_frame_3):
7475 (msprinter_eject_page): Use it.
7477 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7478 and removed residual duplex and orientation properties.
7480 2000-07-11 Martin Buchholz <martin@xemacs.org>
7482 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7484 * unexalpha.c: Remove system prototypes from C sources!
7486 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7488 * eval.c: Remove references to M-x edit-options in DEFUNs for
7489 `defvar' and `defconst'.
7491 2000-07-09 Martin Buchholz <martin@xemacs.org>
7493 * config.h.in: Remove SMART_INCLUDE hackery.
7496 * config.h.in: Don't use SMART_INCLUDE.
7498 * postgresql.h: Include libpq-fe.h here. Fix typo.
7499 * inline.c: Simply #include "postgresql.h"
7501 - Don't use SMART_INCLUDE
7502 - Use simply "const".
7503 - Use standard doc string conventions.
7504 - Use correct type for result of PQstatus.
7506 2000-07-09 Martin Buchholz <martin@xemacs.org>
7508 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7510 C++ compilation changes.
7511 * config.h.in (EXTERN_C): Define.
7512 * config.h.in (not): This is also a C++ keyword.
7513 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7514 * cm.c: Use EXTERN_C.
7515 * redisplay-tty.c: Use EXTERN_C.
7516 * sysdep.c: Use EXTERN_C. Remove Gould support.
7518 2000-07-09 Martin Buchholz <martin@xemacs.org>
7520 * general.c: Remove duplicate definition for Qfunction.
7522 2000-07-08 Ben Wing <ben@xemacs.org>
7524 * device-msw.c (msprinter_init_device):
7525 * device-msw.c (sync_printer_with_devmode):
7526 * device-msw.c (handle_devmode_changes):
7527 * device-msw.c (print_dialog_worker):
7528 * device-msw.c (Fmsprinter_apply_settings):
7529 * device-msw.c (hash_devmode):
7530 * device-msw.c (Fmsprinter_settings_despecialize):
7531 use Qmswindows_tstr, not Qctext.
7533 * vm-limit.c (check_memory_limits):
7534 avoid infinite loop printing warning messages.
7536 2000-07-05 Craig Lanning <lanning@scra.org>
7538 * Makefile.in.in: Add support for including the Windows resources
7539 when building with the cygwin and mingw targets.
7541 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7542 not set or not correct.
7543 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7544 (init_initial_directory): Don't try to use $PWD on the
7545 WIN32_NATIVE target.
7548 [[Add -mwindows to eliminate console window.]] not required --ben
7549 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7550 (MAIL_USE_POP): removed; now handled by configure.
7552 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7553 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7554 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7555 (MAIL_USE_POP): removed; now handled by configure.
7556 (ENCAPSULATE_STAT): from Dan Holmsand, added.
7557 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7558 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7560 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7561 up from <winsock.h> via systime.h.
7562 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7563 (getpagesize): from Dan Holmsand, added.
7564 Added #endif which was left dangling by Ben's mega patch; added
7565 comment to help prevent this in the future.
7567 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7569 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7571 * console-msw.h (struct mswindows_device): Removed unnecessary
7572 cached device geometry values.
7573 Added update_tick and an accessor macro.
7574 (Lisp_Devmode): Added lrecord declaration.
7575 (struct msprinter_device): Contain devmode as a Lisp object.
7576 Added mswindows_get_selected_frame_hwnd();
7578 * console.h (struct console_methods): Indentation nitpicking.
7580 * device-msw.c (mswindows_init_device): Do not initialize geometry
7581 cache. Initialize update tick.
7582 (mswindows_device_system_metrics): Ask the device for its geometry.
7583 (global_free_2_maybe):
7584 (devmode_to_hglobal):
7585 (handle_printer_changes):
7586 (ensure_not_printing):
7587 (print_dialog_worker):
7588 (Fmsprinter_print_setup_dialog):
7589 (Fmsprinter_print_dialog):
7592 (Fmsprinter_page_setup_dialog): Added functions.
7593 (sync_printer_with_devmode):
7594 (handle_devmode_changes):
7595 (Fmsprinter_get_settings):
7596 (Fmsprinter_select_settings):
7597 (Fmsprinter_apply_settings):
7599 (Fmsprinter_settings_copy):
7600 (Fmsprinter_settings_despecialize):
7604 (hash_devmode): Added functions
7605 (syms_of_device_mswindows): Init devmode lrecord class.
7607 * device.h: Added an exfun for find-device.
7609 * event-msw.c (mswindows_wnd_proc): Do not update the cached
7610 geometry; although, recreate the device compatible DC.
7612 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7613 (msprinter_init_frame_3):
7614 (msprinter_frame_property):
7615 (msprinter_internal_frame_property_p):
7616 (msprinter_frame_properties):
7617 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7618 print job properties (will move to device settings).
7620 * lisp.h: Added symbols.
7622 * general.c (syms_of_general): Declared them.
7624 * hash.c (string_hash): Added.
7626 * lrecord.h (lrecord_type): Added devmode lrecord type.
7628 2000-07-02 Mike Sperber <mike@xemacs.org>
7630 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7633 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
7635 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7638 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
7640 * data.c (Fstring_to_number): Don't recognize floating point if
7643 2000-06-22 Martin Buchholz <martin@xemacs.org>
7645 * glyphs-widget.c (tab_control_query_geometry):
7646 (widget_query_geometry):
7647 (button_query_geometry):
7648 * glyphs.c (text_query_geometry):
7649 Enforce type correctness.
7651 2000-06-18 Martin Buchholz <martin@xemacs.org>
7653 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7654 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7656 2000-06-17 Martin Buchholz <martin@xemacs.org>
7658 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7659 conflicts with gcc's fixincluded version of FOO.h.
7661 * glyphs.h (image_instance_geometry): Remove trailing `,'
7663 2000-06-08 Mike Alexander <mta@arbortext.com>
7665 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7666 (shove_thread): Don't write the same output twice
7667 (make_ntpipe_output_stream): Increase priority of shove thread
7668 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7670 (ntpipe_shove_closer): Don't delete the pipe until we're done with
7673 2000-06-12 Ben Wing <ben@xemacs.org>
7675 * s\mingw32.h (sigset):
7676 * s\windowsnt.h (sigset):
7677 rename msw_ to mswindows_ for consistency with general convention.
7679 2000-06-12 Ben Wing <ben@xemacs.org>
7682 * console-msw.c (mswindows_get_console_hwnd):
7683 * console-msw.c (mswindows_ensure_console_allocated):
7684 * console-msw.c (mswindows_hide_console):
7685 * console-msw.c (mswindows_show_console):
7686 * console-msw.c (mswindows_ensure_console_buffered):
7687 * console-msw.c (mswindows_output_console_string):
7688 * console-msw.c (mswindows_windows9x_p):
7690 * device-msw.c (mswindows_get_workspace_coords):
7691 * device-msw.c (mswindows_device_system_metrics):
7692 * dialog-msw.c (mswindows_popup_dialog_box):
7693 * event-msw.c (mswindows_wnd_proc):
7694 * frame-msw.c (mswindows_size_frame_internal):
7695 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7696 * menubar-msw.c (displayable_menu_item):
7697 * menubar-msw.c (mswindows_char_is_accelerator):
7699 * nt.c (mswindows_sigset):
7700 * nt.c (mswindows_sigrelse):
7701 * nt.c (mswindows_sigpause):
7702 * nt.c (mswindows_raise):
7703 * nt.c (timer_proc):
7705 * ntproc.c (find_child_console):
7706 * ntproc.c (sys_kill):
7708 * print.c (std_handle_out_external):
7709 * process-nt.c (find_child_console):
7710 * process-nt.c (send_signal_the_95_way):
7711 * process-nt.c (ensure_console_window_exists):
7712 * process-nt.c (nt_create_process):
7714 rename msw_ to mswindows_ for consistency with general convention.
7718 include nt.h, not syswindows.h.
7720 * nt.c (mswindows_fstat):
7721 * nt.c (mswindows_stat):
7722 prefix mswindows_ instead of attempting to directly override the
7723 library functions. fix declarations.
7726 include syswindows.h. move some sysdep.h stuff here.
7729 include syswindows.h, not <windows.h>.
7737 * sysdep.c (sys_fstat):
7738 * sysdep.c (sys_stat):
7739 call mswindows versions when appropriate.
7742 move mswin decls to nt.h.
7745 add long comment describing appropriate use of the various windows
7748 2000-06-11 Ben Wing <ben@xemacs.org>
7750 * device-x.c: Correct doc string for sixth arg of x-get-resource.
7752 2000-06-10 Ben Wing <ben@xemacs.org>
7754 * Makefile.in.in (release):
7755 Correction to make sure xemacs.exe always dumped when correct.
7759 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7761 * buffer.c (set_buffer_internal):
7762 [[[[2]]]]: Remove HAVE_FEP code.
7764 * buffer.c (init_initial_directory):
7768 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7772 * callproc.c (call_process_cleanup):
7773 * callproc.c (Fold_call_process_internal):
7774 * callproc.c (child_setup):
7775 * callproc.c (getenv_internal):
7776 * callproc.c (init_callproc):
7777 * callproc.c (vars_of_callproc):
7778 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7779 __CYGWIN32__ -> CYGWIN.
7780 DOS_NT -> WIN32_NATIVE.
7781 Remove MSDOS support/references, converting to WIN32_NATIVE
7783 __MINGW32__ -> MINGW.
7784 Fix windows.h includes.
7785 Remove bogus HAVE_NTGUI.
7791 mswindows_message_outputted added for use in allowing startup
7792 errors on the console to be seen.
7794 * console-msw.c (msw_ensure_console_allocated):
7795 * console-msw.c (msw_output_console_string):
7796 * console-msw.c (DHEADER):
7797 * console-msw.c (DOPAQUE_DATA):
7798 * console-msw.c (DEVENT):
7799 * console-msw.c (DCONS):
7800 * console-msw.c (DCONSCDR):
7801 * console-msw.c (DSTRING):
7802 * console-msw.c (DVECTOR):
7803 * console-msw.c (DSYMBOL):
7804 * console-msw.c (DSYMNAME):
7807 * console-stream.c (stream_init_console):
7808 Fix text/binary problems.
7811 * device-msw.c (mswindows_finish_init_device):
7812 * device-msw.c (mswindows_delete_device):
7815 * device.c (handle_asynch_device_change):
7819 * dgif_lib.c (DGifOpenFileName):
7820 * dgif_lib.c (DGifOpenFileHandle):
7821 * dgif_lib.c (DGifGetLine):
7822 * dgif_lib.c (DGifGetPixel):
7823 Added config.h/lisp.h, fix up includes.
7830 * dired.c (file_name_completion):
7831 * dired.c (Ffile_attributes):
7832 * dired.c (syms_of_dired):
7836 * dumper.c (pdump_file_unmap):
7837 * dumper.c (pdump_load):
7841 * editfns.c (Ftemp_directory):
7842 * editfns.c (user_login_name):
7843 * editfns.c (Fuser_real_login_name):
7844 * editfns.c (get_home_directory):
7847 * elhash.c (finish_marking_weak_hash_tables):
7848 [[[[5]]]]: Fix GCC warnings.
7851 * emacs.c (mswindows_handle_hardware_exceptions):
7852 * emacs.c (make_arg_list_1):
7854 * emacs.c (Fkill_emacs):
7855 * emacs.c (Fdump_emacs):
7857 Fix problems with nested crashes, add long comment.
7859 * event-Xt.c (init_event_Xt_late):
7863 * event-msw.c (mswindows_dde_callback):
7864 * event-msw.c (mswindows_handle_sticky_modifiers):
7865 * event-msw.c (mswindows_wnd_proc):
7869 * events.c (character_to_event):
7873 * fileio.c (Ffile_name_directory):
7874 * fileio.c (Ffile_name_nondirectory):
7875 * fileio.c (directory_file_name):
7876 * fileio.c (Fexpand_file_name):
7877 * fileio.c (Fsubstitute_in_file_name):
7878 * fileio.c (Ffile_name_absolute_p):
7879 * fileio.c (check_executable):
7880 * fileio.c (Ffile_readable_p):
7881 * fileio.c (Ffile_accessible_directory_p):
7882 * fileio.c (Ffile_modes):
7883 * fileio.c (Funix_sync):
7884 * fileio.c (vars_of_fileio):
7887 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7889 Expand getdefdir defn.
7890 Fix bogus rename() comment.
7892 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
7893 to use standard XEmacs include files, e.g. sysfile.h, rather
7894 than system-specific includes.
7900 * frame.c (vars_of_frame):
7904 * getloadavg.c (getloadavg):
7906 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
7907 (We don't use it elsewhere in the code; just add a comment.)
7914 * glyphs-msw.c (mswindows_resource_instantiate):
7917 * glyphs-x.c (x_native_layout_instantiate):
7920 * gui-msw.c (Fmswindows_shell_execute):
7929 * lread.c (locate_file_in_directory_mapper):
7936 * mem-limits.h (get_lim_data):
7948 * nt.c (rva_to_section):
7949 * nt.c (mswindows_executable_type):
7951 Fix closedir() defn.
7954 [[[[8]]]]: *_OK defs moved to sysfile.h.
7963 * print.c (std_handle_out_external):
7967 * process-nt.c (nt_create_process):
7969 try to fix process quoting somewhat.
7971 * process-unix.c (unix_create_process):
7975 * process.c (vars_of_process):
7982 * realpath.c (xrealpath):
7985 * redisplay-tty.c (init_tty_for_redisplay):
7995 * sheap.c (more_static_core):
7996 * sheap.c (report_sheap_usage):
8000 * signal.c (alarm_signal):
8007 * strftime.c (zone_name):
8010 * symsinit.h (init_sunpro):
8014 commctrl.h not in Cygwin b20.1.
8018 * sysdep.c (sys_subshell):
8019 * sysdep.c (init_baud_rate):
8020 * sysdep.c (emacs_get_tty):
8021 * sysdep.c (emacs_set_tty):
8022 * sysdep.c (tty_init_sys_modes_on_device):
8023 * sysdep.c (init_system_name):
8024 * sysdep.c (sys_open):
8025 * sysdep.c (interruptible_open):
8026 * sysdep.c (sys_fopen):
8027 * sysdep.c (sys_mkdir):
8028 * sysdep.c (sys_rename):
8029 * sysdep.c (get_process_times_1):
8036 * sysdir.h (DIRENTRY_NONEMPTY):
8039 * sysdll.c (dll_init):
8045 added text/binary defs.
8051 * sysproc.h (EDESTADDRREQ):
8052 * sysproc.h (poll_fds_for_input):
8069 Always define WIN32_LEAN_AND_MEAN.
8071 * unexcw.c (unexec):
8075 * unexec.c (copy_text_and_data):
8076 * unexec.c (adjust_lnnoptrs):
8080 * unexnt.c (_start):
8083 2000-06-07 Ben Wing <ben@xemacs.org>
8085 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8086 was used only as a model. We've long since extracted any useful
8087 logic or code out of this. (I just did an exhaustive search.)
8089 * s\msdos.h: Removed.
8091 * s\windows95.h: Removed.
8093 2000-06-10 Ben Wing <ben@xemacs.org>
8097 Don't use extern with fun defs.
8101 Remove nt\inc include.
8102 Remove getdisk, getdefdir. (The former is unused, the latter
8103 expanded in fileio.h.)
8106 * s\windowsnt.h (WIN32_NATIVE):
8107 * s\windowsnt.h (HAVE_STRCASECMP):
8109 Add long comment about preprocessor changes.
8110 Remove getdisk, getdefdir. (The former is unused, the latter
8111 expanded in fileio.h.)
8113 2000-06-10 Ben Wing <ben@xemacs.org>
8122 Remove bogus/unused NO_SOCK_SIGIO.
8124 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8126 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8129 2000-06-04 Mike Sperber <mike@xemacs.org>
8131 * casetab.c (set_case_table): For `set-standard-case-table',
8132 actually deposit the new case tables where the rest of XEmacs can
8135 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8137 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8139 2000-06-05 Ben Wing <ben@xemacs.org>
8141 * callproc.c (child_setup): Don't do close_load_descs() under
8142 MS Windows. Put in a comment explaining why.
8144 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8146 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8147 Toolkit shell" which breaks `kill-compilation' on Windows NT
8148 native, retaining STDERR handling improvements.
8150 2000-06-01 Andreas Jaeger <aj@suse.de>
8152 * s/s390.h: Support for S390, based on a patch by Martin
8153 Schwidefsky <schwidefsky@de.ibm.com>.
8155 2000-05-30 Andy Piper <andy@xemacs.org>
8157 * window.c (allocate_window):
8158 (make_dummy_parent):
8159 (Fset_window_configuration): use new hashtable type.
8161 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8162 (struct image_instantiator_methods):
8163 (struct Lisp_Image_Instance): make instance geometry signed.
8165 * glyphs.c (instantiate_image_instantiator):
8166 (image_instance_query_geometry):
8167 (image_instance_layout):
8168 (image_instance_layout):
8169 (query_string_geometry):
8170 (text_query_geometry):
8171 (image_instantiate):
8172 (image_instantiate):
8173 (cache_subwindow_instance_in_frame_maybe):
8174 (subwindow_query_geometry): make instance geometry signed.
8176 * glyphs-widget.c (widget_query_geometry):
8178 (button_query_geometry):
8179 (tree_view_query_geometry):
8180 (tab_control_query_geometry):
8181 (layout_query_geometry):
8183 (native_layout_layout): make instance geometry signed.
8185 2000-05-29 Olivier Galibert <galibert@pobox.com>
8187 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8190 * general.c (syms_of_general): Add Qfull_assoc symbol.
8192 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8194 (decode_weak_list_type): Decode full-assoc type.
8195 (encode_weak_list_type): Encode full-assoc type.
8196 (Fmake_weak_list): Update doc string.
8198 2000-05-30 Andy Piper <andy@xemacs.org>
8200 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8202 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8203 (decode_hash_table_weakness): ditto.
8204 (Fhash_table_weakness): ditto.
8205 (Fhash_table_type): ditto.
8206 (finish_marking_weak_hash_tables): ditto.
8207 (hash_table_weakness_validate): ditto.
8208 (syms_of_elhash): ditto.
8210 2000-05-28 Martin Buchholz <martin@xemacs.org>
8212 * XEmacs 21.2.34 is released.
8214 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8216 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8218 (updating_line_start_cache): Gone.
8219 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8220 generic code to force a minimum of 1 line laid out in the
8223 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8225 * glyphs.c (instantiate_image_instantiator): Check for initialized
8226 height & width no longer special cases IMAGE_NOTHING.
8227 (nothing_instantiate): Set height and width of instance.
8229 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8231 * unexelf.c (unexec): Search for ".data" section.
8232 Initialize new_data2_offset from old_data_index.
8233 Remove redundant check for ElfW.
8235 2000-05-23 Andy Piper <andy@xemacs.org>
8237 * glyphs.c (get_image_instantiator_governing_domain): allow more
8238 specific domains as the governing domain rather than expecting an
8239 exact match. This fixes problems with layouts.
8241 2000-05-22 Andy Piper <andy@xemacs.org>
8243 * redisplay-output.c (compare_runes): check for non-images
8245 * glyphs.c (set_glyph_dirty_p): ditto.
8246 (update_glyph_cachel_data): ditto.
8248 * glyphs-widget.c (layout_post_instantiate): ditto.
8249 (layout_post_instantiate): ditto.
8251 * event-msw.c (mswindows_wnd_proc): warning removal.
8253 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8255 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8257 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8259 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8261 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8262 (mswindows_executable_type): mingw32 now has enough headers for
8265 2000-05-20 Andy Piper <andy@xemacs.org>
8267 * console-msw.c (mswindows_output_last_error): ; -> ,
8269 2000-05-12 Andy Piper <andy@xemacs.org>
8271 * console-msw.c (FROB): compare ints with ints.
8273 2000-05-11 Andy Piper <andy@xemacs.org>
8275 * glyphs-x.c (x_finalize_image_instance): make minimal build
8278 2000-05-20 Ben Wing <ben@xemacs.org>
8281 * event-Xt.c (vars_of_event_Xt):
8282 move modifier-keys-are-sticky to event-stream.c.
8285 * event-msw.c (mswindows_enqueue_mouse_button_event):
8286 * event-msw.c (key_needs_default_processing_p):
8287 * event-msw.c (XEMSW_LCONTROL):
8288 * event-msw.c (mswindows_handle_sticky_modifiers):
8289 * event-msw.c (FROB):
8290 * event-msw.c (clear_sticky_modifiers):
8291 * event-msw.c (output_modifier_keyboard_state):
8292 * event-msw.c (output_alt_keyboard_state):
8293 * event-msw.c (mswindows_wnd_proc):
8294 * event-msw.c (mswindows_modifier_state):
8295 * event-msw.c (emacs_mswindows_handle_magic_event):
8296 implement sticky modifiers.
8299 * event-stream.c (vars_of_event_stream):
8300 move modifier-keys-are-sticky here.
8306 implement map-range-table.
8309 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8311 * redisplay-tty.c (reset_tty_modes):
8312 (tty_redisplay_shutdown): Adjust argument type to
8313 tty_frame_output_end.
8315 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8317 * eval.c (Fbacktrace): Don't output a line with only right
8320 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8322 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8323 (Fpq_reset_poll): Ditto.
8325 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8327 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8329 2000-05-16 Ben Wing <ben@xemacs.org>
8332 * buffer.c (dfc_convert_to/from_internal_format):
8333 * buffer.c (reinit_vars_of_buffer):
8334 Fix conversion functions to allow reentrancy.
8337 * console-msw.c (mswindows_output_last_error):
8338 New fun, generally useful -- output a human-readable
8339 version of GetLastError() on the console.
8342 * console-msw.h (struct mswindows_frame):
8343 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8345 * console-stream.c (stream_output_begin):
8346 * console-stream.c (stream_output_end):
8347 * console-stream.c (stream_output_vertical_divider):
8348 * console-stream.c (stream_clear_region):
8349 * console-stream.c (stream_flash):
8350 * console-stream.c (console_type_create_stream):
8351 Delete blank stream methods, not needed.
8353 * console.h (struct console_methods):
8354 Split begin/end methods into window and frame.
8357 * event-msw.c (mswindows_handle_paint):
8358 * event-msw.c (output_alt_keyboard_state):
8359 * event-msw.c (mswindows_wnd_proc):
8360 * event-msw.c (vars_of_event_mswindows):
8361 Comment about problems with ignored-expose.
8362 Define mswindows-debug-events; not really implemented.
8364 * frame-msw.c (mswindows_init_frame_1):
8368 * glyphs-msw.c (begin_defer_window_pos):
8369 * glyphs-msw.c (mswindows_unmap_subwindow):
8370 * glyphs-msw.c (mswindows_map_subwindow):
8371 * glyphs-msw.c (mswindows_resize_subwindow):
8372 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8374 * glyphs.c (make_image_instance_1):
8377 * gutter.c (Fredisplay_gutter_area):
8378 Use new begin/end methods.
8380 * lisp.h (Dynarr_new2):
8384 * redisplay-msw.c (mswindows_frame_output_begin):
8385 * redisplay-msw.c (mswindows_frame_output_end):
8386 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8387 New begin/end methods -- handle DeferWindowPos.
8389 * redisplay-output.c (redisplay_move_cursor):
8390 * redisplay-output.c (redraw_cursor_in_window):
8391 * redisplay-output.c (redisplay_update_line):
8392 * redisplay-output.c (redisplay_output_window):
8393 New begin/end methods.
8396 * redisplay-tty.c (tty_frame_output_begin):
8397 * redisplay-tty.c (tty_frame_output_end):
8398 * redisplay-tty.c (console_type_create_redisplay_tty):
8399 New begin/end methods.
8402 * redisplay-x.c (x_window_output_begin):
8403 * redisplay-x.c (x_window_output_end):
8404 * redisplay-x.c (console_type_create_redisplay_x):
8405 New begin/end methods.
8407 * redisplay.c (redisplay_frame):
8408 * redisplay.c (Fredisplay_echo_area):
8409 New begin/end methods.
8410 use MAYBE_DEVMETH for clear_frame; it may not exist.
8412 * window.h (WINDOW_XFRAME):
8413 WINDOW_XFOO macros -- get locale and decode struct pointer.
8416 2000-05-12 Ben Wing <ben@xemacs.org>
8419 * emacs.c (ensure_no_quitting_from_now_on):
8420 * emacs.c (fatal_error_signal):
8421 * emacs.c (mswindows_handle_hardware_exceptions):
8423 * emacs.c (Fkill_emacs):
8424 * emacs.c (shut_down_emacs):
8425 * emacs.c (assert_failed):
8426 various improvements in fatal error handling.
8429 move preparing_for_armageddon to emacs.c.
8432 declare fatal_error_in_progress.
8435 * print.c (std_handle_out_external):
8436 * print.c (std_handle_out_va):
8437 * print.c (stderr_out):
8438 * print.c (stdout_out):
8439 use console under mswin when no standard output.
8440 don't do code conversion during fatal error.
8442 * scrollbar.c (Fscrollbar_page_up):
8443 * scrollbar.c (Fscrollbar_page_down):
8444 fix missing else. reindent.
8446 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8450 * glyphs.h (GLYPH_CACHEL_DESCENT):
8451 (GLYPH_CACHEL_DESCENT):
8452 (GLYPH_CACHEL_DESCENT):
8453 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8454 used in case these are inline functions.
8455 Use more absurd values to error check.
8457 include window.h for error check functions.
8459 2000-05-11 Ben Wing <ben@xemacs.org>
8461 * cmdloop.c (Freally_early_error_handler):
8462 Display message box under windows; otherwise, message will disappear
8463 before it can be viewed.
8466 * console-msw.c (Fmswindows_message_box):
8467 * console-msw.c (FROB):
8468 * console-msw.c (syms_of_console_mswindows):
8469 Define new fun `mswindows-message-box'.
8470 #### I will merge this into `popup-dialog-box'; just give me
8474 * general.c (syms_of_general):
8475 Some new symbols used in `mswindows-message-box'.
8478 * glyphs.c (Fset_image_instance_property):
8479 put warning in this fun.
8482 * glyphs.h (GLYPH_CACHEL_WIDTH):
8483 * glyphs.h (GLYPH_CACHEL_ASCENT):
8484 * glyphs.h (GLYPH_CACHEL):
8485 * glyphs.h (GLYPH_CACHEL_GLYPH):
8486 define error-checking versions to try to catch a bug i've seen --
8487 redisplay gets in an infinite loop because the glyph width of the
8488 continuation glyph is 65535.
8491 Extern message-box stuff.
8493 * window.c (allocate_window):
8494 * window.c (make_dummy_parent):
8495 * window.c (Fset_window_configuration):
8496 Use EQUAL not EQ for subwindow caches to make them work a bit
8497 better. (Something is still very broken.)
8500 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8502 * glyphs.c (image_instantiate): Suppress gcc warnings.
8503 (Fmake_image_instance): Fix doc string.
8504 * specifier.c (Fmake_specifier): Ditto.
8506 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
8508 * paths.h.in (PATH_LOCK): Removed.
8509 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8510 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8512 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8514 * fns.c (Ffeaturep): Update e-mail address in doc-string.
8515 Document (featurep '(and xemacs 21.02)).
8517 2000-05-09 Ben Wing <ben@xemacs.org>
8519 * buffer.c (complex_vars_of_buffer):
8520 update modeline-format doc.
8523 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8526 timeline of all released versions of Emacs, for use in creating
8527 authorship comments and in synching up.
8529 * glyphs-widget.c (image_instantiator_buttons):
8530 * glyphs-widget.c (image_instantiator_edit_fields):
8531 * glyphs-widget.c (image_instantiator_combo_box):
8532 * glyphs-widget.c (image_instantiator_scrollbar):
8533 * glyphs-widget.c (image_instantiator_progress_guage):
8534 * glyphs-widget.c (image_instantiator_tree_view):
8535 * glyphs-widget.c (image_instantiator_tab_control):
8536 * glyphs-widget.c (image_instantiator_labels):
8537 * glyphs-widget.c (image_instantiator_layout):
8538 * glyphs-widget.c (image_instantiator_native_layout):
8539 rename decode_domain method to governing_domain.
8542 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8543 * glyphs.c (add_entry_to_device_ii_format_list):
8544 make sure we don't put an entry more than once into the list.
8545 * glyphs.c (check_instance_cache_mapper):
8546 *************************************************************
8547 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8549 *************************************************************
8550 * glyphs.c (get_image_instantiator_governing_domain):
8551 clean up, expand on new concept of governing domain.
8552 * glyphs.c (instantiate_image_instantiator):
8553 * glyphs.c (allocate_image_instance):
8554 use governing_domain instead of cache_domain in naming.
8555 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8556 * glyphs.c (make_image_instance_1):
8557 * glyphs.c (Fmake_image_instance):
8558 allow for any domain (not just device), and process the
8559 governing domain correctly. very big doc fix.
8560 * glyphs.c (Fimage_instance_domain):
8561 new primitive, to retrieve the governing domain of an image instance.
8562 * glyphs.c (image_instantiate):
8563 use new governing_domain stuff. this fixes a crash you could get
8564 by instantiating certain widget glyphs in frame locales. (should
8565 signal an error instead of crashing.)
8566 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8567 * glyphs.c (Fglyphp): clean up doc.
8568 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8569 * glyphs.c (syms_of_glyphs):
8570 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8571 * glyphs.c (image_instantiator_format_create): add some comments about
8573 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8574 for current-display-table. (Apparently Hrjove implemented in 1998 a
8575 design I wrote up in 1996, but didn't update the doc string.)
8577 * glyphs.h: clean up a doc string.
8578 * glyphs.h (governing_domain):
8579 * glyphs.h (struct image_instantiator_methods):
8580 changes for governing_domain stuff.
8583 * gutter.c (Fgutter_specifier_p):
8584 * gutter.c (Fgutter_size_specifier_p):
8585 * gutter.c (Fgutter_visible_specifier_p):
8587 * objects.c (Fcolor_specifier_p):
8588 * objects.c (Ffont_specifier_p):
8589 * objects.c (Fface_boolean_specifier_p):
8590 doc strings moved to make-*-specifier.
8592 * redisplay.c (add_disp_table_entry_runes_1):
8593 * redisplay.c (generate_fstring_runes):
8594 * redisplay.c (screen):
8595 add random comments and doc strings.
8598 * specifier.c (Fmake_specifier):
8599 major overhaul of this doc string.
8601 * specifier.c (Fvalid_specifier_domain_p):
8602 comment about the bogosity of image instances being domains.
8603 * specifier.c (decode_domain):
8604 now non-static, used in glyphs.c.
8605 * specifier.c (specifier_instance):
8606 comment about the bogosity of image instances being domains.
8607 * specifier.c (Fgeneric_specifier_p):
8608 move doc string to make-generic-specifier.
8609 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8613 * specifier.h (DOMAIN_FRAME):
8614 * specifier.h (DOMAIN_LIVE_P):
8615 * specifier.h (DOMAIN_XDEVICE):
8617 add comments about problems with these macros.
8618 prototype for decode_domain.
8621 * toolbar.c (Ftoolbar_specifier_p):
8622 move doc string to `make-toolbar-specifier'.
8624 * window.c (window_unmap_subwindows_cache_mapper):
8625 *************************************************************
8626 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8628 *************************************************************
8630 2000-05-09 Andy Piper <andy@xemacs.org>
8632 * glyphs.h: declare reset_frame_subwindow_instance_cache.
8634 * window.c (Fset_window_configuration): reset the frame subwindow
8635 cache and re-initialize the window subwindow caches.
8637 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8639 2000-05-09 Ben Wing <ben@xemacs.org>
8641 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8644 2000-04-26 Mike Woolley <mike@bulsara.com>
8646 * ntheap.c: Changed recreate_heap to limit the amount reserved
8647 for the heap to that which is actually available. Also now
8648 displays a message box (with some dignostics) in the event that
8649 it still can't start.
8651 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
8653 * callproc.c (Fold_call_process_internal): GCPRO path
8655 2000-05-08 Jan Vroonhof <jan@xemacs.org>
8657 Patch by Bill Perry.
8659 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8660 back data instead of #ifdef.
8661 (Fscrollbar_page_down): ditto.
8663 2000-05-07 Ben Wing <ben@xemacs.org>
8666 Kludge for defining Qmswindows_tstr.
8669 * nt.c (open_input_file):
8670 * nt.c (open_output_file):
8671 * nt.c (rva_to_section):
8672 * nt.c (mswindows_executable_type):
8673 Move all memory-mapped-file routines here (some were in unexnt.c,
8674 which is bad because they are used by process-nt.c, and unexnt
8675 won't be around when portable dumping). Synched the above routines
8679 Removed ifdef'd out bogus code.
8680 Fixed some prototypes.
8683 * nt.h (OFFSET_TO_RVA):
8684 * nt.h (RVA_TO_OFFSET):
8685 * nt.h (RVA_TO_PTR):
8686 Moved the memory-mapped-file structures, macros and prototypes
8687 here, to parallel nt.c. ntheap.h should really be removed
8688 entirely, and it's a non-portable-dumper specific file.
8690 * ntheap.h (round_to_next):
8691 Moved the memory-mapped-file structures, macros and prototypes
8694 * ntproc.c (compare_env):
8695 Moved rva_to_section and mswindows_executable_type to nt.c.
8696 Moved compare_env to process-nt.c.
8697 ntproc.c will die, one day.
8699 * ntproc.c (sys_spawnve):
8700 Account for win32_ -> mswindows_.
8703 * process-nt.c (struct nt_process_data):
8704 * process-nt.c (ensure_console_window_exists):
8705 * process-nt.c (compare_env):
8706 * process-nt.c (nt_create_process):
8707 * process-nt.c (nt_kill_process_by_pid):
8708 * process-nt.c (syms_of_process_nt):
8709 * process-nt.c (vars_of_process_nt):
8710 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8711 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8712 changes). Eliminate our old `nt-quote-process-args' mechanism.
8713 Synch up nt_create_process with FSF 20.6 sys_spawnve.
8714 Move compare_env here from ntproc.c.
8716 * process.c (Fprocess_send_region):
8717 Takes an optional fourth argument, BUFFER, which should fix some
8718 problems with call-process.
8721 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8724 Move ICC_BAR_CLASSES to syscommctrl.h.
8725 Add preliminary macros for MSWindows/Mule. More to come.
8728 * unexnt.c (unexec):
8729 open_output_file moved to nt.c.
8732 2000-05-05 Andy Piper <andy@xemacs.org>
8734 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8735 instance from the frame cache also since GC may catch up too late
8736 to make frame deletion sane.
8738 2000-05-04 Andy Piper <andy@xemacs.org>
8740 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8741 (x_finalize_image_instance): ungcpro on deletion.
8743 * glyphs.c (image_instantiator_format_create): give pointers a
8744 query geometry method so that the geometry is at least set.
8746 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8747 initialize layouts if using widgets.
8749 2000-05-03 Andy Piper <andy@xemacs.org>
8751 * nt.c: remove bogus reference to sysmmsystem.h
8753 * gui-x.c (popup_selection_callback): fix no selection abort.
8755 2000-05-02 Andy Piper <andy@xemacs.org>
8757 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8758 (mswindows_widget_instantiate): ditto.
8760 * glyphs-widget.c (initialize_widget_image_instance): initialize
8762 (widget_instantiate): cope with children and items in the same
8765 * glyphs.c (mark_image_instance): cope with children as a first
8767 (image_instance_equal): ditto.
8768 (image_instance_hash): ditto.
8769 (image_instance_changed): ditto.
8771 2000-04-30 Andy Piper <andy@xemacs.org>
8773 * glyphs.c (subwindow_query_geometry): new function. Return some
8775 (subwindow_instantiate): don't assign dimensions if none have been
8777 (image_instantiator_format_create): add subwindow_query_geometry.
8778 (print_image_instance): cope with layouts as widgets.
8780 2000-04-29 Andy Piper <andy@xemacs.org>
8782 * frame.c (delete_frame_internal): call
8783 free_frame_subwindow_instance_cache so that all subwindows are
8784 finalized before their parent.
8785 (mark_frame): remove subwindow_cachels.
8786 (Fmake_frame): remove subwindow_cachel manipulation.
8787 (allocate_frame_core): subwindow_instance_cache is a weak list.
8788 (delete_frame_internal): set subwindow_instance_cache to nil.
8790 * glyphs-msw.c (mswindows_finalize_image_instance): make double
8792 (mswindows_finalize_image_instance): use the device
8793 not the domain as the domain may have died already.
8795 * glyphs-x.c (x_finalize_image_instance): ditto.
8796 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8799 * redisplay-output.c (redisplay_unmap_subwindows): update for
8800 subwindow instance cache as a weak list.
8801 (redisplay_unmap_subwindows_maybe): ditto.
8802 (redisplay_unmap_subwindows_except_us): ditto.
8804 * glyphs.c (unmap_subwindow): error checking will check the domain
8805 so don't deal with it here. Don't use cachels anymore.
8806 (map_subwindow): ditto.
8807 (update_subwindow_cachel_data): remove old accessor names.
8808 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8809 (Fresize_subwindow): don't update cachel.
8810 (mark_subwindow_cachels):
8811 (update_subwindow_cachel_data):
8812 (add_subwindow_cachel):
8813 (get_subwindow_cachel_index):
8814 (update_subwindow_cachel):
8815 (reset_subwindow_cachels):
8816 (mark_subwindow_cachels_as_not_updated): deleted.
8817 (cache_subwindow_instance_in_frame_maybe): new function. Add a
8818 subwindow instance to the frame cache.
8819 (find_matching_subwindow): update for subwindow instance cache as
8821 (update_widget_instances): ditto.
8822 (image_instance_type_to_mask):inlined.
8823 (free_frame_subwindow_instance_cache): new function. finalize all
8824 subwindows that are instantiated.
8826 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8827 of cachel information.
8828 (IMAGE_INSTANCE_DISPLAY_X):
8829 (IMAGE_INSTANCE_DISPLAY_Y):
8830 (IMAGE_INSTANCE_DISPLAY_WIDTH):
8831 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8832 (XIMAGE_INSTANCE_DISPLAY_X):
8833 (XIMAGE_INSTANCE_DISPLAY_Y):
8834 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8835 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8836 remove subwindow_cachel structure and function references.
8837 (image_instance_type_to_mask): inline from glyphs.c
8839 * redisplay.c (redisplay_frame): remove subwindow_cachel
8842 * frame.h (struct frame): remove subwindow_cachels.
8843 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8845 * frameslots.h: add subwindow_instance_cache.
8847 * window.c (replace_window): check subwindow cache of replacement.
8848 (window_unmap_subwindows_cache_mapper):
8849 (window_unmap_subwindows): new functions. Unmap all subwindows
8850 cached on this window.
8851 (mark_window_as_deleted): unmap all subwindows.
8853 2000-04-27 Andy Piper <andy@xemacs.org>
8855 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8857 * glyphs-widget.c (widget_layout): return something.
8858 (layout_layout): return something. Fail if not initialized.
8859 (layout_query_geometry): ditto.
8860 (image_instantiator_native_layout): new function. Initialized the
8862 (widget_instantiate): don't do layout stuff here.
8864 * glyphs.c (instantiate_image_instantiator): reorded calling or
8865 instantiate and post_instantiate with layout in between.
8866 (image_instance_layout): be more selective about deciding whether
8867 the layout has been done or not.
8869 * glyphs.h (struct image_instantiator_methods): return a value
8872 2000-04-26 Andy Piper <andy@xemacs.org>
8874 * glyphs.c (allocate_image_instance): make initial width and
8875 height unspecified. Set initialized to 0.
8877 * syscommctrl.h new file. Encapsulates commctrl.h.
8879 * syswindows.h new file. Encapsulates windows.h.
8881 * ntplay.c: use new syswindows.h and syscommctrl.h header.
8883 * console-msw.h: ditto.
8885 * redisplay-tty.c (tty_output_display_block): remove layout references.
8887 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8888 window handle rather than just the frame.
8890 * glyphs.c (mark_image_instance): remove layout references.
8891 (print_image_instance): ditto.
8892 (image_instance_equal): ditto.
8893 (image_instance_hash): ditto.
8894 (decode_image_instance_type): ditto.
8895 (encode_image_instance_type): ditto.
8896 (image_instantiate): ditto.
8897 (allocate_glyph): ditto.
8898 (Fimage_instance_height): ditto.
8899 (Fimage_instance_width): ditto.
8900 (update_subwindow): ditto.
8902 * redisplay-x.c (x_output_display_block): recode for layouts as
8905 * redisplay-output.c (redisplay_output_layout): recode for layouts
8907 (compare_runes): remove layout references.
8909 * redisplay-msw.c (mswindows_output_display_block): recode for
8912 * glyphs-widget.c (image_instantiator_layout): remove
8913 layout_possible_dest_types.
8914 (layout_possible_dest_types): deleted.
8916 * glyphs.h (image_instance_type): remove layout references.
8917 (struct Lisp_Image_Instance): ditto. Add initialized flag.
8918 (IMAGE_INSTANCE_INITIALIZED): new accessor.
8919 (XIMAGE_INSTANCE_INITIALIZED): ditto.
8921 2000-04-25 Andy Piper <andy@xemacs.org>
8923 * glyphs-widget.c (image_instantiator_buttons):
8924 (image_instantiator_edit_fields):
8925 (image_instantiator_combo_box):
8926 (image_instantiator_scrollbar):
8927 (image_instantiator_progress_guage):
8928 (image_instantiator_tree_view):
8929 (image_instantiator_tab_control):
8930 (image_instantiator_labels):
8931 (image_instantiator_layout): call default post_instantiate method.
8932 (widget_post_instantiate): new function. Simply lays out the
8935 * glyphs.h (struct image_instantiator_methods): add
8936 post_instantiate method.
8938 * glyphs.c (instantiate_image_instantiator): add post_instantiate
8941 2000-04-23 Andy Piper <andy@xemacs.org>
8943 * glyphs.h (struct image_instantiator_methods): add
8944 decode_domain_method.
8945 (struct Lisp_Image_Instance): remove subwindow frame - it can be
8946 derived from the domain.
8947 (IMAGE_INSTANCE_FRAME): new accessor.
8948 (XIMAGE_INSTANCE_FRAME): ditto.
8950 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8951 instead of _SUBWINDOW_FRAME.
8952 (finalize_image_instance): ditto.
8953 (Fimage_instance_foreground): ditto.
8954 (Fimage_instance_background): ditto.
8955 (image_instantiate): ditto.
8956 (update_subwindow_cachel): ditto.
8957 (update_subwindow): ditto.
8958 (unmap_subwindow): ditto.
8959 (map_subwindow): ditto
8960 (subwindow_instantiate): ditto.
8961 * glyphs-msw.c (mswindows_update_widget): ditto.
8962 (mswindows_progress_gauge_instantiate): ditto.
8963 (mswindows_tab_control_update): ditto.
8964 * glyphs-x.c (x_update_widget): ditto.
8965 (x_widget_instantiate): ditto.
8966 (x_tab_control_instantiate): ditto.
8967 (x_tab_control_update): ditto.
8968 * event-msw.c (mswindows_wnd_proc): ditto
8970 * glyphs-widget.c (image_instantiator_layout): use
8971 subwindow_decode_domain.
8972 (image_instantiator_buttons): ditto.
8973 (image_instantiator_edit_fields): ditto.
8974 (image_instantiator_combo_box): ditto.
8975 (image_instantiator_scrollbar): ditto.
8976 (image_instantiator_progress_guage): ditto.
8977 (image_instantiator_tree_view): ditto.
8978 (image_instantiator_tab_control): ditto.
8979 (image_instantiator_labels): ditto.
8980 (image_instantiator_layout): ditto.
8982 * glyphs.c: add instance error checking to many functions.
8983 (instantiate_image_instantiator): decode device from cache_domain.
8984 (image_instantiate): partially rewrite by using
8985 decode_image_instantiator_domain to determine what domain the
8986 instance needs to be cached in.
8987 (decode_image_instantiator_domain): new function. Determine what
8988 domain the image needs to be cached in.
8989 (check_window_subwindow_cache): new error checking function.
8990 (check_instance_cache_mapper): ditto.
8991 (check_image_instance_structure): ditto.
8992 (subwindow_decode_domain): new function. Encodes a window as a
8993 subwindow's cache domain.
8994 (image_instantiator_format_create): use it for text and
8997 2000-04-21 Andy Piper <andy@xemacs.org>
8999 * glyphs.c (image_instance_device): new function.
9000 (image_instance_frame): new function.
9001 (image_instance_window): new function.
9002 (image_instance_live_p): new function.
9004 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9007 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9008 (IMAGE_INSTANCE_DOMAIN): new accessor.
9009 (XIMAGE_INSTANCE_DOMAIN): ditto.
9011 * glyphs-x.c (x_finalize_image_instance): device->domain.
9013 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9014 (mswindows_finalize_image_instance): ditto.
9016 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9017 (gif_instantiate): ditto.
9018 (png_instantiate): ditto.
9019 (tiff_instantiate): ditto.
9021 * glyphs.c (instantiate_image_instantiator): use domain rather
9023 (mark_image_instance): device -> domain.
9024 (print_image_instance): ditto.
9025 (finalize_image_instance): ditto.
9026 (image_instance_equal): ditto.
9027 (allocate_image_instance): ditto.
9028 (Fcolorize_image_instance): ditto.
9029 (query_string_geometry): ditto.
9030 (image_instantiate): ditto
9031 (query_string_font): ditto.
9032 (image_instantiate): ditto.
9033 (update_subwindow): ditto.
9034 (unmap_subwindow): ditto.
9035 (map_subwindow): ditto.
9036 (subwindow_instantiate): ditto.
9038 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9039 (DOMAIN_FRAME): ditto.
9040 (DOMAIN_WINDOW): ditto.
9041 (DOMAIN_LIVE_P): ditto.
9042 (XDOMAIN_DEVICE): ditto.
9043 (XDOMAIN_FRAME): ditto.
9044 (XDOMAIN_WINDOW): ditto.
9046 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9047 a valid specifier domain.
9049 2000-04-19 Andy Piper <andy@xemacs.org>
9051 * glyphs-widget.c (syms_of_glyphs_widget): remove
9052 widget-callback-current-channel.
9053 (vars_of_glyphs_widget): ditto.
9056 * gui.c (get_gui_callback): revert to previous behaviour.
9058 2000-04-18 Andy Piper <andy@xemacs.org>
9060 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9061 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9062 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9064 * glyphs.c (image_instance_equal): add margin_width.
9065 (image_instance_hash): ditto.
9067 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9068 (layout_query_geometry): ditto.
9069 (layout_layout): ditto.
9070 (syms_of_glyphs_widget): add margin-width.
9071 (image_instantiator_layout): allow margin-width.
9073 * glyphs.c (update_widget_instances): make a normal function.
9074 (syms_of_glyphs): remove Qupdate_widget_instances.
9077 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9078 so that we don't corrupt ideas about the last event or
9079 command. Remove widget-callback-current-channel fiddling.
9080 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9082 2000-05-01 Martin Buchholz <martin@xemacs.org>
9084 * XEmacs 21.2.33 is released.
9086 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9088 * make-src-depend: Allow dots in header file name.
9090 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9092 * mule-charset.h (struct charset_lookup): Add
9093 next_allocated_1_byte_leading_byte and
9094 next_allocated_2_byte_leading_byte.
9095 * mule-charset.c: Move above two variables so that those values
9098 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9100 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9101 when string length is zero.
9102 (find_charsets_in_emchar_string): Ditto.
9104 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9106 * lisp.h: extern Qdialog and Qmenubar.
9108 * gui-x.c: added events.h.
9109 also fixed typo which made the file uncompilable.
9111 * general.c: Added Qmenubar and Qdialog
9113 2000-04-28 Ben Wing <ben@xemacs.org>
9115 * frame-msw.c (mswindows_init_frame_1):
9116 * frame-msw.c (mswindows_mark_frame):
9117 * event-msw.c (mswindows_enqueue_dispatch_event):
9119 * console-msw.h (struct mswindows_frame):
9120 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9121 there are now three hash tables for callbacks.
9122 mswindows_enqueue_dispatch_event is no longer static.
9124 * dialog-x.c (maybe_run_dbox_text_callback):
9125 * dialog-x.c (dbox_descriptor_to_widget_value):
9126 switch to new cons3 form for callbacks.
9128 * glyphs-msw.c (mswindows_register_gui_item):
9129 * glyphs-msw.c (mswindows_widget_instantiate):
9130 * glyphs-msw.c (add_tree_item):
9131 * glyphs-msw.c (add_tab_item):
9132 new image instance parameter, so it can be passed to callback-ex.
9133 respect :callback-ex as well as :callback.
9135 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9138 * glyphs.c (print_image_instance):
9139 prettify, e.g. now prints widget type.
9142 certain funs have new image instance parameter.
9145 * gui.c (get_gui_callback):
9146 * gui.c (gui_item_add_keyval_pair):
9147 * gui.c (gui_item_init):
9148 * gui.c (gui_add_item_keywords_to_plist):
9149 * gui.c (mark_gui_item):
9150 * gui.c (gui_item_hash):
9151 * gui.c (gui_item_equal):
9152 * gui.c (copy_gui_item):
9153 * gui.c (syms_of_gui):
9154 recognize callback-ex in a number of places.
9155 also, fix the annoying "can't get out of yes-no dialog" bug.
9158 * gui.h (struct Lisp_Gui_Item):
9159 recognize callback-ex in a number of places.
9161 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9162 new parameter in button_item_to_widget_value.
9164 * glyphs-x.c (x_update_widget):
9165 * glyphs-x.c (x_button_instantiate):
9166 * glyphs-x.c (x_button_update):
9167 * glyphs-x.c (x_progress_gauge_instantiate):
9168 * glyphs-x.c (x_edit_field_instantiate):
9169 * glyphs-x.c (x_combo_box_instantiate):
9170 * glyphs-x.c (x_tab_control_instantiate):
9171 * glyphs-x.c (x_label_instantiate):
9172 new image instance parameter in various places.
9175 * event-Xt.c (enqueue_Xt_dispatch_event):
9176 this fun gets exported.
9179 * gui-msw.c (mswindows_handle_gui_wm_command):
9180 handle both :callback and :callback-ex, and generate our own
9181 event because it's one of the callback-ex arguments.
9184 * gui-x.c (popup_selection_callback):
9185 handle both :callback and :callback-ex, and generate our own
9186 event because it's one of the callback-ex arguments.
9187 * gui-x.c (button_item_to_widget_value):
9188 * gui-x.c (gui_items_to_widget_values_1):
9189 * gui-x.c (gui_item_children_to_widget_values):
9190 * gui-x.c (gui_items_to_widget_values):
9191 new image instance parameter in various places.
9193 * fns.c (Freplace_list):
9194 fix small typo in doc string.
9197 declare enqueue_Xt_dispatch_event.
9199 2000-04-28 Ben Wing <ben@xemacs.org>
9202 * buffer.c (Frecord_buffer):
9203 * buffer.c (syms_of_buffer):
9204 delete record-buffer-hook.
9207 * fns.c (Freplace_list):
9208 * fns.c (syms_of_fns):
9209 new primitive replace-list.
9212 slot for old buffer-alist.
9218 * redisplay.c (redisplay_frame):
9219 * redisplay.c (syms_of_redisplay):
9220 * redisplay.c (vars_of_redisplay):
9221 new hook buffer-list-changed-hook.
9224 2000-04-27 Ben Wing <ben@xemacs.org>
9226 * extents.h: extern in_modeline_generation.
9228 * redisplay.c (generate_formatted_string_db): set
9229 in_modeline_generation.
9231 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9232 flags if in modeline generation. otherwise frame-modified-tick
9233 is ticked far too often.
9234 Declare in_modeline_generation.
9236 2000-04-26 Ben Wing <ben@xemacs.org>
9238 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9240 (vars_of_emacs): add quick-build as an error-checking option.
9241 A bit kludgy, but there doesn't seem much point in creating
9242 a real var for this.
9244 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9246 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9248 * redisplay.h (struct display_line): Add a new variable,
9251 * redisplay.c (create_text_block): Set dl->line_continuation if
9253 (create_string_text_block): Ditto.
9254 (regenerate_window_incrementally): Use line_continuation instead
9255 of searching continuation glyph.
9256 (add_margin_runes): Call add_glyph_rune.
9257 (add_glyph_rune): Handle margin glyph.
9259 2000-04-20 Martin Buchholz <martin@xemacs.org>
9261 * filelock.c (fill_in_lock_file_name):
9263 Check for IS_ANY_SEP instead of '/'.
9265 Avoid generating gratuitous garbage. Call user_login_name() directly.
9266 Never check errno without first seeing that system call failed.
9267 (unlock_file): Add GCPRO.
9268 (Flock_buffer): Fix docstring.
9269 (Ffile_locked_p): Fix docstring. Add GCPRO.
9271 2000-04-19 Martin Buchholz <martin@xemacs.org>
9273 * sysdep.c (get_pty_max_bytes):
9274 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9275 strings longer than 252 bytes.
9277 * md5.c: Unconditionally include ANSI header <limits.h>
9279 * glyphs-x.c (convert_EImage_to_XImage):
9280 * lisp-union.h (union Lisp_Object):
9281 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9283 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9285 * filelock.c (current_lock_owner): Remove unused variable o, p.
9287 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9289 * callint.c: Remove multiply defined symbol Qlet
9290 (syms_of_callint): ditto.
9292 2000-04-14 Andy Piper <andy@xemacs.org>
9294 * general.c (syms_of_general): add last-command, this-command, let
9297 * lisp.h: declare various symbols.
9299 * glyphs.h: declare Qwidget_callback_current_channel;
9301 * glyphs-widget.c (syms_of_glyphs_widget): add
9302 Qgui_callback_current_channel.
9303 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9305 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9306 widget-callback-current-channel when invoking the interactive
9307 arg. Also bind last-command and next-command when invoking the
9309 * gui-x.c (popup_selection_callback): ditto.
9311 * gui.c (get_gui_callback): massage args so that we are always
9312 calling eval. This allows us to add our own variable bindings
9315 * glyphs-x.c (x_button_instantiate): use
9316 gui_items_to_widget_values since this is GC safe.
9317 (x_progress_gauge_instantiate): ditto.
9318 (x_edit_field_instantiate): ditto.
9319 (x_label_instantiate): ditto.
9321 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9322 (emacs_Xt_event_widget_focus_out): new function
9323 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9325 (emacs_Xt_event_add_widget_actions): new function. add focus
9326 functions as actions.
9327 (init_event_Xt_late): use it.
9329 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9331 * event-stream.c (Fdispatch_event): Doc fix.
9333 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9335 * postgresql.c: Remove all references to PQsetenv*.
9337 * postgresql.h: Remove references to PGsetenvHandler object.
9338 * lrecord.h (lrecord_type): Ditto.
9340 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9342 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9343 real_heigh and real_width members, and accessor macros for these.
9345 * glyphs-msw.c (init_image_instance_geometry): New function.
9346 (init_image_instance_from_dibitmap): Use it.
9347 (mswindows_resource_instantiate): Use it.
9348 (init_image_instance_from_xbm_inline): Use it.
9349 (mswindows_initialize_image_instance_mask): Use real bitmap
9351 (mswindows_create_resized_bitmap): Ditto.
9352 (mswindows_create_resized_mask): Ditto.
9354 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9355 and bitmap to their surface size.
9357 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9359 * process-unix.c (unix_send_process): Guard against process MIA
9360 after Faccept_process_output.
9362 2000-04-11 Ben Wing <ben@xemacs.org>
9364 * eval.c (unbind_to_hairy): fix brokenness introduced by
9365 nanosecond speed improvements.
9367 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9369 * sunplay.c (init_device): To play sounds correctly, the device
9370 apparently needs to be initialized at least once by XEmacs. Make
9373 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9375 * redisplay.c (add_margin_runes): Add text image glyph
9378 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9380 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9381 gcc is newer than 2.5.
9383 2000-04-06 Colin Rafferty <colin@xemacs.org>
9385 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9387 * fns.c (size_bit_vector):
9388 * alloc.c (size_vector):
9389 (make_vector_internal):
9390 (make_bit_vector_internal):
9391 (sweep_bit_vectors_1):
9392 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9394 2000-04-06 Andy Piper <andy@xemacs.org>
9396 * gmalloc.c (malloc): undo previous change.
9401 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9403 * line-number.c (buffer_line_number): Revert to former version.
9405 2000-04-06 Andy Piper <andy@xemacs.org>
9407 * gmalloc.c (malloc): add error checking.
9412 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9413 button_item_to_widget_value arg.
9415 * glyphs-x.c (x_button_instantiate): add extra
9416 button_item_to_widget_value arg.
9417 (x_progress_gauge_instantiate): ditto.
9418 (x_edit_field_instantiate): ditto.
9419 (x_label_instantiate): ditto.
9421 * gui-x.c (gui_items_to_widget_values_1): add extra
9422 button_item_to_widget_value arg.
9423 (button_item_to_widget_value): add extra menu_item_p arg.
9425 * gui-x.h: change signature of button_item_to_widget_value.
9427 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9428 button_item_to_widget_value arg.
9430 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9432 * buffer.h (struct buffer): auto_save_modified should be long.
9434 2000-04-05 Andy Piper <andy@xemacs.org>
9436 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9438 (button_query_geometry): give a little more room so that athena
9441 2000-04-05 Andy Piper <andy@xemacs.org>
9443 * faces.c (complex_vars_of_faces): The widget face should inherit
9444 the font of the gui-element face.
9446 2000-04-04 Andy Piper <andy@xemacs.org>
9448 * glyphs-x.c (x_button_update): new function. unconditionally
9449 update a button's state when the instance is dirty.
9450 (image_instantiator_format_create_glyphs_x): add x_button_update.
9451 (x_widget_instantiate): remove old resize cruft.
9453 2000-04-02 Andy Piper <andy@xemacs.org>
9455 * frame.c (change_frame_size_1): The introduction of gutters means
9456 that we need to allow 0 as a potential frame dimension.
9458 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9460 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9461 image glyph if allow_cursor.
9462 (add_hscroll_rune): Don't allow cursor to border glyph.
9463 (create_text_block): Ditto.
9465 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9467 (redisplay_output_layout): Call ensure_face_cachel_complete for
9471 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9473 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9475 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9478 * redisplay-tty.c (tty_output_display_block): Delete the routine
9479 for text image glyph
9480 * redisplay-x.c (x_output_display_block): ditto
9481 * redisplay-msw.c (mswindows_output_display_block): ditto
9483 2000-02-02 Mike Alexander <mta@arbortext.com>
9485 Note: Some of these were committed by accident as part of other
9488 * regex.c (regex_compile): Avoid compiler warnings.
9490 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9492 * nt.h: Declare term_ntproc correctly.
9494 * nt.c: Remove incorrect declaration of get_home_directory which
9495 is declared correctly in lisp.h.
9497 * keymap.c (get_keyelt): Avoid compiler warnings.
9498 (raw_lookup_key_mapper): Avoid compiler warnings.
9500 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9502 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9504 * filemode.c (mode_string): Avoid compiler warnings.
9506 * file-coding.c (Fcoding_system_aliasee): Add return statement to
9509 * events-mod.h: Undef some things that winuser.h defines differently.
9511 * data.c (Faset): Avoid compiler warnings.
9513 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9515 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9517 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9518 Fall through to simple beep on error.
9519 Replace "extern" by real header file.
9521 * linuxplay.c: Use nativesound.h
9522 (play_sound_data): Return error code. Be less verbose on error.
9524 * sunplay.c: Use nativesound.h
9525 (play_sound_data): Return error code. Be less verbose on error.
9527 * ntplay.c: Use nativesound.h
9528 (play_sound_data): Return fake error code
9530 * sgiplay.c: Use nativesound.h
9531 (play_sound_data): Return error code
9533 * hpplay.c: Use nativesound.h, partially implement
9534 new error code. Break compilation until finished.
9535 (play_sound_data): error code.
9537 * nativesound.h (play_sound_file):
9538 (play_sound_data): Prototype in new header.
9540 2000-03-31 Andy Piper <andy@xemacs.org>
9542 * glyphs-widget.c: (button_query_geometry): new function. Adjust
9543 for toggle and radio buttons.
9544 (image_instantiator_buttons): use it.
9546 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9548 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9549 (x_update_horizontal_scrollbar_callback): Return if no mirror was
9550 found. Scrollbar event probably belonged to some old config.
9552 2000-03-31 Andy Piper <andy@xemacs.org>
9554 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9556 (initialize_widget_image_instance): default layout to
9557 LAYOUT_HORIZONTAL rather than 0.
9558 (widget_instantiate): reverse the item list at the end rather than
9560 (layout_layout): re-code for the border text at the front of the
9561 item list rather than at the end.
9562 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9563 provided by the user.
9564 (widget_query_geometry): comment.
9566 2000-03-30 Andy Piper <andy@xemacs.org>
9568 * glyphs-widget.c (image_instantiator_layout): allow standard
9569 widget keywords in layouts.
9571 * gutter.c (output_gutter): cope with nil gutter contents.
9573 * frame.c (Fset_frame_properties): add gutter docs.
9575 2000-03-29 Andy Piper <andy@xemacs.org>
9577 * toolbar-msw.c (TBSTYLE_FLAT): add.
9578 (mswindows_output_toolbar): minor fiddling.
9580 2000-03-29 Andy Piper <andy@xemacs.org>
9582 * gutter.c (output_gutter): force gutter size recalculation if
9583 what we are trying to display won't fit.
9584 (update_gutter_geometry): new function. A per-gutter version of
9585 update_frame_gutter_geometry.
9586 (update_frame_gutter_geometry): use it.
9587 (redraw_exposed_gutter): add extra debugging output.
9589 2000-03-28 Mike Alexander <mta@arbortext.com>
9591 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9592 (pdump_file_unmap): Implement it on Windows
9593 (pdump_file_get): Save alocated handles for pdump_file_unmap
9595 2000-03-28 Andy Piper <andy@xemacs.org>
9597 * gui.c (get_gui_callback): treat Quit specially.
9599 2000-03-27 Andy Piper <andy@xemacs.org>
9601 * glyphs.c (image_instantiate): be careful to check in the same
9604 2000-03-27 Didier Verna <didier@xemacs.org>
9606 * config.h.in: define the proper SMART_INCLUDE macro.
9607 handle renaming of `foo_h_path' to `foo_h_file'.
9609 * database.c: ditto.
9613 * linuxplay.c: ditto.
9615 * terminfo.c: ditto.
9617 * tooltalk.h: ditto.
9619 2000-03-27 Andy Piper <andy@xemacs.org>
9621 * glyphs-msw.c (mswindows_update_widget): make sure the widget
9622 gets updated whenever the face might have changed.
9624 2000-03-26 Mike Alexander <mta@arbortext.com>
9626 * dumper.c (pdump_resource_free): Fix the comment.
9628 2000-03-21 Olivier Galibert <galibert@pobox.com>
9630 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9632 2000-03-22 Mike Alexander <mta@arbortext.com>
9634 * dumper.c: Include Windows headers on Windows
9635 (pdump_resource_free): Add a body to the function
9636 (pdump_load): exe_name -> exe_path and add some comments.
9638 2000-03-25 Mike Alexander <mta@arbortext.com>
9640 * gui.c (copy_gui_item_tree): Return a value in all cases
9642 2000-03-21 Didier Verna <didier@xemacs.org>
9644 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9646 (SMART_INCLUDE): new macro.
9647 (POSTGRES_INCLUDE): new macro to include postgresql headers from
9648 the proper location.
9650 * postgresql.c: use it.
9654 2000-03-24 Andy Piper <andy@xemacs.org>
9656 * gutter.c (redraw_exposed_gutters): must be "in display" when we
9659 2000-03-24 Andy Piper <andy@xemacs.org>
9661 * redisplay-output.c (compare_runes): use image_instance_changed
9662 to detect changes. Do not depend on glyphs_changed, only depend on
9664 (redisplay_output_layout): add debug messages.
9665 (compare_runes): ditto.
9667 * glyphs.h: declare new functions.
9668 (struct Lisp_Image_Instance): remove percent and associated
9671 * gui.h: declare new copying functions.
9673 * gui.c (copy_gui_item_tree): new function.
9674 (copy_gui_item): new function.
9675 (gui_item_id_hash): revert to standard hash.
9676 (gui_item_hash): ditto.
9677 (gui_item_hash_internal): deleted.
9678 (mark_gui_item): mark value.
9679 (gui_item_add_keyval_pair): add value.
9680 (gui_item_init): ditto.
9681 (gui_add_item_keywords_to_plist): ditto.
9682 (gui_item_equal): ditto.
9683 (syms_of_gui): add Q_value.
9685 * glyphs-x.c (x_progress_gauge_update): use pending items and
9686 value for setting the state.
9687 (x_update_widget): don't set items from pending here.
9689 * glyphs-widget.c (update_widget): update items here.
9690 (progress_gauge_set_property): use items for storing value. Put
9691 new value in pending items.
9693 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9694 items for new value. Convert percent -> value.
9695 (mswindows_tab_control_update): don't update items here.
9697 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9698 (update_subwindow): ditto.
9699 (image_instance_changed): new function. Compare hash values and
9700 past and present widget items.
9701 (image_instantiate): We more careful about where we instantiate
9703 (image_instantiate): add error checking.
9705 * gutter.c (syms_of_gutter): use -hook.
9707 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
9709 * console-tty.c (Fset_console_tty_input_coding_system): Use
9711 (Fset_console_tty_output_coding_system): Use Qterminal.
9712 (tty_init_console): Use Qkeyboard and Qterminal.
9714 2000-03-21 Ben Wing <ben@xemacs.org>
9716 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9717 From Mike Alexander <mta@arbortext.com>.
9719 2000-03-21 Ben Wing <ben@xemacs.org>
9721 * event-msw.c (mswindows_need_event): Horrible kludge to fix
9722 process brokenness. Proper implementation to come.
9724 Rename call-process-internal to old-call-process-internal.
9725 New impl. in process.el.
9727 2000-03-21 Martin Buchholz <martin@xemacs.org>
9729 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9731 2000-03-20 Andy Piper <andy@xemacs.org>
9733 * glyphs.c (full_list_hash): make hashes of the same elements in
9734 different orders return different values.
9736 2000-03-20 Martin Buchholz <martin@xemacs.org>
9738 * XEmacs 21.2.32 is released.
9740 2000-03-20 Martin Buchholz <martin@xemacs.org>
9742 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9743 (DFC_MALLOC_USE_CONVERTED_DATA):
9744 Add aliasing-safe casts to allow use with char* or unsigned char*
9747 * eldap.c (Fldap_open):
9748 (Fldap_search_basic):
9751 Make C++-compilable.
9752 Make sure GCPRO'ed variables are initialized.
9753 Use temp variables to avoid repeated calls to Flength.
9755 2000-03-16 Martin Buchholz <martin@xemacs.org>
9758 Make sure PATH_MAX is always defined.
9759 Include limits.h for PATH_MAX.
9760 Deprecate use of MAXPATHLEN.
9762 2000-03-10 Martin Buchholz <martin@xemacs.org>
9764 * emacs.c: Add reinit_vars_of_fileio.
9765 * symsinit.h: Add reinit_vars_of_fileio.
9766 * fileio.c (reinit_vars_of_fileio): New.
9767 * fileio.c (Fmake_temp_name):
9768 Initialize temp_name random number from microseconds to make
9769 collisions even less likely. Initialize always at process startup
9770 time. (make-temp-name) used to return the same file name twice in
9772 Random stylistic fiddling.
9775 2000-03-20 Andy Piper <andy@xemacs.org>
9777 * glyphs.c (image_instantiate): allow text glyphs to be
9778 instantiated in the minibuffer window.
9780 2000-03-19 Andy Piper <andy@xemacs.org>
9782 * glyphs.c (image_instance_hash): be careful about which items we
9785 * glyphs-widget.c (tab_control_set_property): record into pending
9786 items rather than the actual items.
9788 * glyphs-x.c (x_update_widget): use pending items to update with.
9790 * glyphs-msw.c (mswindows_tab_control_update): use pending items
9793 * glyphs.c (mark_image_instance): mark pending items.
9795 * window.c (Fset_window_configuration): record the buffer.
9796 (Fselect_window): totally revert previous change which breaks many
9799 2000-03-18 Andy Piper <andy@xemacs.org>
9801 * glyphs-msw.c (mswindows_tab_control_update): force selected
9804 * glyphs.c (image_instantiate): don't allow the minibuffer as a
9805 window domain cache, otherwise we get inconsistencies at
9806 startup. There is something fishy at startup which can lead to the
9807 minibuffer being the selected window when the gutter content is
9810 * gui.c (parse_gui_item_tree_list): add probably unnecessary
9812 (parse_gui_item_tree_children): ditto.
9813 (parse_gui_item_tree_item): ditto.
9815 * glyphs.c (Fupdate_widget_instances): return something.
9817 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
9819 * window.c (Fselect_window): Undo 2000-03-17 change.
9821 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
9823 * postgresql.c (Fpq_setenv): Remove this turkey when linking
9824 against v7.0 libraries. Insta-coredump city until the postgres
9827 2000-03-17 Andy Piper <andy@xemacs.org>
9829 * faces.c (complex_vars_of_faces): don't give the widget face an
9830 inherited background pixmap.
9832 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9835 * event-stream.c (Fdispatch_non_command_events): return something.
9837 * gutter.c (output_gutter): use widget face.
9838 (clear_gutter): ditto.
9840 * NEWS: adjust again.
9842 * window.c (Fselect_window): make sure this runs to completion to
9843 avoid oddities with Fset_window_configuration.
9844 (Fcurrent_window_configuration): in general do not save the
9845 minibuffer as the selected window.
9847 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9849 2000-03-16 Olivier Galibert <galibert@pobox.com>
9851 * emacs.c (Frunning_temacs_p): Revert previous patch.
9852 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9854 2000-03-16 Andy Piper <andy@xemacs.org>
9856 * glyphs-x.c (x_tab_control_update): if no widget values then
9859 * NEWS: update for new features.
9861 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9862 synthetic event to the native system.
9863 (reinit_vars_of_event_Xt): set force_event_pending to
9864 emacs_Xt_force_event_pending.
9866 * events.h (struct event_stream): add force_event_pending.
9868 * specifier.c (recompute_one_cached_specifier_in_window): add
9871 * redisplay.c (redisplay_frame): don't call
9872 update_frame_subwindows. Reset subwindow cachels when
9873 subwindows_changed, removing this was an optimization too far.
9875 * redisplay-output.c (compare_runes): reorganize so that we catch
9876 glyph changes when we want them. Set optimize_output when this
9878 (redisplay_output_layout): remove frame_really_changed, use
9879 optimize_output instead.
9881 * redisplay-msw.c (mswindows_output_display_block): reset
9882 optimize_output after outputting a glyph.
9883 * redisplay-x.c (x_output_display_block): ditto.
9884 * redisplay-tty.c (tty_output_display_block): ditto.
9886 * gutter.c: (specifier_vars_of_gutter): use new spec changed
9888 (gutter_specs_changed): do specific gutter positions.
9889 (top_gutter_specs_changed): new function. Only update the
9890 specified gutter specs.
9891 (bottom_gutter_specs_changed): ditto.
9892 (left_gutter_specs_changed): ditto.
9893 (right_gutter_specs_changed): ditto.
9895 * gui.c (gui_item_hash_internal): new function, does a real hash.
9896 (gui_item_id_hash): use it.
9897 (gui_item_hash): hash the eval'ed gui_item.
9899 * gui-x.c (popup_selection_callback): send an eval event to call
9900 Fupdate_widget_instances.
9902 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9903 to call Fupdate_widget_instances.
9905 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9906 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9908 * glyphs.c: (update_frame_subwindows): deleted.
9909 (Fupdate_widget_instances): new function for updating the dirty
9910 state of widgets that might have changed.
9911 (syms_of_glyphs): add Qupdate_widget_instances.
9912 (full_list_hash): hash a list completely.
9913 (image_instance_hash): use it for items and properties.
9915 * frame-msw.c (mswindows_size_frame_internal): remove unused
9918 * faces.h (struct face_cachel): fix comment.
9920 * event-stream.c (Fdispatch_non_command_events): new
9921 function. Process non-command events, forcing an event cycle
9923 (syms_of_event_stream): declare.
9924 (event_stream_force_event_pending): new function. Force an event
9925 on the native event queue so that an event cycle will occur next
9929 (struct ntpipe_shove_stream):
9930 (mswindows_enqueue_dispatch_event):
9931 (mswindows_dequeue_dispatch_event):
9932 (mswindows_cancel_dispatch_event):
9933 (mswindows_pump_outstanding_events):
9934 (mswindows_drain_windows_queue):
9935 (mswindows_handle_paint):
9936 (mswindows_wnd_proc):
9937 (mswindows_key_to_emacs_keysym):
9938 (get_process_input_waitable):
9939 (emacs_mswindows_delete_stream_pair): re-indent file.
9940 (mswindows_need_event): do not process further fds if the windows
9941 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9942 fixes the 100% cpu problem.
9943 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9945 2000-03-15 Olivier Galibert <galibert@pobox.com>
9951 * emacs.c: Moved dump file searching to dumper.c.
9952 (Frunning_temacs_p): Fixed.
9954 * alloc.c: Moved everything pdump-related to dumper.c. Removed
9955 last_lrecord_type_index_assigned.
9957 2000-02-20 Olivier Galibert <galibert@pobox.com>
9959 * symsinit.h: Added reinit parameter to init_console_stream
9962 * lisp.h: Added file parameter to pdump_load declaration.
9964 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9965 support. Added dump file searching.
9967 * config.h.in: Added EMACS_PROGNAME.
9969 * console-stream.c (init_console_stream): Fix reinitialisation
9970 when running from temacs.
9972 * alloc.c (pdump): Add id support.
9973 (pdump_load): Add file parameter and signature/id support.
9975 * Makefile.in.in: Add full pdump support.
9977 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
9979 * postgresql.c: Update documentation to reflect latest code
9981 (print_result): Show tuple counts in printed representation when
9983 (Fpq_put_nbytes): MULE-ize.
9984 (Fpq_get_line_async): Ditto.
9986 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
9988 * postgresql.c (Fpq_lo_import): Fix return value.
9989 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9991 2000-03-13 Ben Wing <ben@xemacs.org>
9993 * alloc.c (pdump_load):
9994 Fix compile warning under mswin.
9996 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
9998 * postgresql.c: Mule-ization, bug fixes.
9999 Use PG_CODING to encapsulate coding system name changes.
10000 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10001 (pg-coding-system): Create.
10003 (Fpq_conn_defaults): Mule-ize.
10004 (Fpq_connectdb): Mule-ize & bug fix.
10005 (Fpq_connect_start): Mule-ize.
10006 (Fpq_set_client_encoding): Mule-ize.
10007 (Fpq_finish): Document `DEAD' connection status.
10008 (Fpq_clear): Ditto.
10009 (Fpq_pgconn): Mule-ize.
10010 (Fpq_exec): Mule-ize & bug fix.
10011 (Fpq_send_query): Ditto.
10012 (Fpq_get_result): Ditto.
10013 (Fpq_res_status): Mule-ize.
10014 (Fpq_result_error_message): Mule-ize.
10015 (Fpq_ntuples): fix comments.
10016 (Fpq_fname): Mule-ize.
10017 (Fpq_fnumber): Mule-ize.
10018 (Fpq_ftype): fix comments.
10019 (Fpq_get_value): Mule-ize.
10020 (Fpq_cmd_status): Ditto.
10021 (Fpq_cmd_tuples): Ditto.
10022 (Fpq_oid_value): Ditto.
10023 (Fpq_notifies): Ditto.
10024 (Fpq_lo_import): Ditto.
10025 (Fpq_lo_export): Ditto.
10026 (Fpq_get_line): Ditto.
10027 (Fpq_put_line): Mule-ize and bug fix.
10028 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10030 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10032 * postgresql.c (vars_of_postgresql): Mule-ize.
10033 (Fpq_conn_defaults): Ditto.
10035 2000-03-12 Ben Wing <ben@xemacs.org>
10037 * alloc.c (Fmake_byte_code):
10038 * alloc.c (debug_string_purity_print):
10039 * alloc.c (pdump_backtrace):
10040 * alloc.c (pdump_get_indirect_count):
10041 * alloc.c (pdump_register_sub):
10042 * alloc.c (pdump_register_object):
10043 * alloc.c (pdump_register_struct):
10044 * alloc.c (pdump_dump_data):
10045 * alloc.c (pdump_reloc_one):
10049 * console-msw.c (GetConsoleHwnd):
10050 * console-msw.c (msw_hide_console):
10051 * console-msw.c (msw_show_console):
10052 * console-msw.c (msw_ensure_console_buffered):
10053 * console-msw.c (msw_output_console_string):
10054 * console-msw.c (console_type_create_mswindows):
10056 a) Added functions to manipulate the console window for use with
10059 b) Added support for writing text to the console, which is now
10060 used under Windows when xemacs is not being run non-interactively,
10061 to write text that would otherwise be destined for stdout because
10062 under these circumstances, text written to stdout tends to
10063 disappear and not be seen.
10067 * event-Xt.c (x_event_to_emacs_event):
10068 * event-Xt.c (describe_event_window):
10069 * events-mod.h (XEMACS_MOD_CONTROL):
10071 * events.c (Fmake_event):
10072 * events.c (character_to_event):
10073 * events.c (event_to_character):
10074 * events.c (format_event_object):
10075 * events.c (Fevent_modifiers):
10077 * events.h (struct key_data):
10078 * events.h (struct button_data):
10079 * events.h (struct misc_user_data):
10080 * frame-x.c (Fcde_start_drag_internal):
10081 * frame-x.c (Foffix_start_drag_internal):
10082 * gpmevent.c (Freceive_gpm_event):
10084 * keymap.c (bucky_sym_to_bucky_bit):
10085 * keymap.c (control_meta_superify):
10086 * keymap.c (make_key_description):
10087 * keymap.c (keymap_lookup_directly):
10088 * keymap.c (create_bucky_submap):
10089 * keymap.c (keymap_store):
10090 * keymap.c (define_key_check_and_coerce_keysym):
10091 * keymap.c (define_key_parser):
10092 * keymap.c (define_key_alternate_name):
10093 * keymap.c (Fdefine_key):
10094 * keymap.c (raw_lookup_key_mapper):
10095 * keymap.c (struct map_keymap_unsorted_closure):
10096 * keymap.c (map_keymap_unsorted_mapper):
10097 * keymap.c (map_keymap_sort_predicate):
10098 * keymap.c (map_keymap_sorted):
10099 * keymap.c (accessible_keymaps_mapper_1):
10100 * keymap.c (where_is_recursive_mapper):
10101 * keymap.c (describe_map_mapper):
10102 * keymap.c (describe_map_sort_predicate):
10103 * keymap.c (describe_map):
10104 * keymap.c (complex_vars_of_keymap):
10105 And a number of other files, the key modifier preprocessor
10106 constants that xemacs uses have names that conflict with constants
10107 defined under MS Windows for other purposes, so they were renamed
10108 to begin with the prefix XEMACS_. The variables that hold such
10109 modifiers were changed to consistently be of type int to fix
10110 various compile warnings.
10112 * console.c (complex_vars_of_console):
10115 * device-msw.c (mswindows_finish_init_device):
10116 * device-msw.c (msw_get_workspace_coords):
10117 * device-msw.c (mswindows_device_system_metrics):
10118 and various other files, added support for a new
10119 device property called offset-workspace which returns the position
10120 of the upper left corner of the workspace area and goes along with
10121 the existing size-workspace property.
10124 * dialog-msw.c (push_bufbyte_string_as_unicode):
10125 * dialog-msw.c (mswindows_popup_dialog_box):
10126 Added support for XEmacs-style accelerator specifications in
10127 button text. Note: I didn't add support for this under X Windows,
10128 and somebody needs to do this.
10131 * dialog.c (Fpopup_dialog_box):
10132 Documented the support for accelerators that was just mentioned.
10134 editfns.c (get_home_directory): Changed behavior under Windows
10135 when HOME not defined; former behavior was irretrievably broken.
10138 * emacs.c (main_1):
10140 * minibuf.c (clear_echo_area_internal):
10141 * minibuf.c (echo_area_append):
10143 * print.c (std_handle_out_external):
10144 * print.c (std_handle_out_va):
10146 * print.c (write_string_to_stdio_stream):
10147 * print.c (output_string):
10148 * print.c (debug_print):
10149 * print.c (debug_backtrace):
10150 * print.c (debug_short_backtrace):
10151 Cleaned up the code that prints text to stdout so that this can be
10152 changed to output into a console window instead under MS Windows,
10153 as described above.
10156 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10157 * eval.c (internal_catch):
10158 * eval.c (unwind_to_catch):
10159 * eval.c (throw_or_bomb_out):
10160 * eval.c (condition_case_1):
10161 * eval.c (signal_1):
10162 * eval.c (check_error_state_sanity):
10163 * eval.c (call_with_suspended_errors_1):
10164 * eval.c (call_with_suspended_errors):
10165 * eval.c (reinit_vars_of_eval):
10166 Added code to catch throw loops and check for a pesky bug that may
10170 * event-msw.c (key_needs_default_processing_p):
10171 * event-msw.c (mswindows_wnd_proc):
10172 * event-msw.c (mswindows_modifier_state):
10173 * event-msw.c (emacs_mswindows_quit_p):
10174 * event-msw.c (vars_of_event_mswindows):
10175 a) Added support for using the alt key to select menu items as is
10176 standard under MS Windows. This is controlled using the variable
10177 menu-accelerator-enabled, just like under X Windows. There is an
10178 option on the options menu to turn this support on. I really
10179 think that it should be on by default under Windows, but I'm not
10180 going to make this change yet.
10182 b) Added support for dynamic display size changes under Windows.
10185 * event-stream.c (maybe_echo_keys):
10186 * event-stream.c (Fnext_event):
10187 * event-stream.c (command_builder_find_leaf):
10188 * event-stream.c (lookup_command_event):
10189 * event-stream.c (execute_command_event):
10190 * event-stream.c (pre_command_hook):
10191 * event-stream.c (post_command_hook):
10192 * event-stream.c (syms_of_event_stream):
10193 * event-stream.c (vars_of_event_stream):
10194 * event-stream.c (complex_vars_of_event_stream):
10195 * events.h (struct command_builder):
10197 a) Tried to clean up a little bit the horribly written x-specific
10198 accelerator code that crept into this file. I moved this code
10199 into menubar-x.c where it belongs. I also needed to move the
10200 command builder structure into the file events.h because it is
10201 accessed directly by this accelerator code. What I didn't do, but
10202 which should be done at some point, is to properly abstract this
10203 code using device methods instead of the kludgy way that it
10204 currently hooks into the event code.
10206 b) Added the lisp variables this-command-properties and
10207 last-command- properties, which should be used to synchronize two
10208 adjacent commands in preference to playing games with the variable
10209 this-command, which is typically what happens.
10211 c) Added some slightly nasty code to hook into the lisp support
10212 for shifted- motion-key selection. This is actually necessary for
10213 somewhat complicated reasons, which are described in
10214 simple.el. (NB: I think the proper thing would be to have the code
10215 that calls the pre and post command hooks also call out to generic
10216 lisp functions in simple.el, where all built-in stuff could be
10217 added. I will think about this more.)
10219 * event-unixoid.c (poll_fds_for_input):
10220 * lread.c (readchar):
10221 * redisplay-tty.c (tty_clear_frame):
10222 * redisplay-x.c (x_get_gc):
10223 * signal.c (interrupt_signal):
10224 And a whole bunch of other files: fixed up places that printed
10225 directly to stderr to instead call the function stderr_out so that
10226 the changes I made under Windows work correctly.
10228 * filemode.c (mode_string):
10232 * frame-msw.c (mswindows_size_frame_internal):
10233 Fixed the computation of frame size and position to keep the frame
10234 within the workspace area, rather than within the physical
10235 dimensions of the screen, so that the frame doesn't overlap window
10236 manager decorations, such as the start menu and toolbar, typically
10237 at the bottom of the screen.
10239 * frame.c (vars_of_frame):
10240 Changed the default frame title format under MS Windows to consist
10241 of buffername-XEmacs, which is standard under MS Windows. I think
10242 it might be a good idea to change this everywhere because I think
10243 it is superior to the current frame title format, but this is the
10244 kind of change that is likely to cause some people to get annoyed,
10245 so I'm not making it.
10247 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10249 * gui-msw.c (mswindows_handle_gui_wm_command):
10250 Fixed compile warnings.
10253 * gui-x.c (strdup_and_add_accel):
10254 * gui-x.c (button_item_to_widget_value):
10256 Added code to automatically put an accelerator onto the beginning
10257 of menu items that don't have one as is now the standard, and is
10258 described more later. Also fixed things so that the menu item
10259 name can be an evaluated expression, again a new standard.
10262 * gui.c (gui_item_add_keyval_pair):
10263 * gui.c (make_gui_item_from_keywords_internal):
10264 * gui.c (gui_add_item_keywords_to_plist):
10265 * gui.c (gui_item_accelerator):
10266 * gui.c (gui_name_accelerator):
10267 * gui.c (gui_item_included_p):
10268 * gui.c (gui_item_display_flush_left):
10269 * gui.c (gui_item_display_flush_right):
10270 * gui.c (parse_gui_item_tree_item):
10271 * gui.c (parse_gui_item_tree_children):
10272 * gui.c (parse_gui_item_tree_list):
10273 Mule-ized. Cleanup. GCPRO addition.
10275 * line-number.c (buffer_line_number):
10277 * lisp.h (EMACS_INT_MAX):
10278 Added the manifest constant EMACS_INT_MIN corresponding to the
10279 existing constant EMACS_INT_MAX. This is partially to fix compile
10280 warnings under Windows, and partly for cleanliness.
10283 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10284 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10285 * menubar-msw.c (displayable_menu_item):
10286 * menubar-msw.c (populate_menu_add_item):
10287 * menubar-msw.c (populate_or_checksum_helper):
10288 * menubar-msw.c (populate_menu):
10289 * menubar-msw.c (update_frame_menubar_maybe):
10290 * menubar-msw.c (prune_menubar):
10291 * menubar-msw.c (msw_char_is_accelerator):
10292 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10293 * menubar-msw.c (mswindows_handle_wm_command):
10294 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10295 * menubar-msw.c (mswindows_handle_wm_initmenu):
10296 * menubar-msw.c (mswindows_update_frame_menubars):
10297 * menubar-msw.c (mswindows_free_frame_menubars):
10298 * menubar-msw.c (mswindows_popup_menu):
10299 Fixed a bug in handling accelerators where an extra character
10300 would be displayed in the menu item. Also generalized the
10301 function displayable_menu_item because it is now used by the
10302 dialog box code as well. And finally, added code in the functions
10303 that create the menubar to extract a list of accelerators for the
10304 top level menubar, which is used in the event code to determine
10305 whether a particular alt-key combination should be used to invoke
10306 a menu item, or should be passed through to access the standard
10307 XEmacs keymap binding for this key combination.
10309 Much needed GCPROing.
10312 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10313 * menubar-x.c (menu_item_descriptor_to_widget_value):
10314 * menubar-x.c (restore_in_menu_callback):
10315 * menubar-x.c (x_popup_menu):
10316 * menubar-x.c (menu_move_up):
10317 * menubar-x.c (menu_move_down):
10318 * menubar-x.c (menu_move_left):
10319 * menubar-x.c (menu_move_right):
10320 * menubar-x.c (menu_select_item):
10321 * menubar-x.c (command_builder_operate_menu_accelerator):
10322 * menubar-x.c (menu_accelerator_junk_on_error):
10323 * menubar-x.c (command_builder_find_menu_accelerator):
10324 * menubar-x.c (Faccelerate_menu):
10326 Moved a whole bunch of code here that was previously in
10327 event-stream.c as described above. There is also code connected
10328 to the new standard of adding an accelerator to the beginning of
10329 menu items that don't have one as described above and below.
10332 * menubar.c (menu_parse_submenu_keywords):
10333 * menubar.c (Fmenu_find_real_submenu):
10334 * menubar.c (Fnormalize_menu_item_name):
10335 * menubar.c (syms_of_menubar):
10336 * menubar.c (vars_of_menubar):
10337 * menubar.c (complex_vars_of_menubar):
10339 a) Cleaned up a bunch of documentation and improved it.
10341 b) XEmacs now automatically adds an accelerator onto the beginning
10342 of any menu items that don't have one. I did this because there
10343 will inevitably be some menu items on the main menubar that don't
10344 have accelerators on them because the package that adds that
10345 particular menu item hasn't yet been fixed up to have accelerators
10346 in them and it looked rather strange to have some items with and
10347 some items without accelerators, especially since even in items
10348 without accelerators, you can, at least under windows, still
10349 access the item through an accelerator corresponding to the first
10350 character in the item's name. If people don't like this behavior,
10351 I can add a variable to turn it off optionally, but I'm not sure
10352 this is a good idea because we really do need to have accelerators
10353 on all of the menu items, and if a package doesn't like the
10354 accelerators being put on the first character, then it should put
10355 the accelerators where they belong.
10357 c) I made a behavior change, which is that the descriptor that
10358 specifies the text of the menu item, which formerly was just a
10359 string, can now also be an evaluated expression. This makes this
10360 descriptor parallel with all of the others, which could also be
10361 evaluated expressions. This also obviates the need for the
10362 keyword :label, which was previously listed in the documentation
10363 as unimplemented, and which was for the same purpose.
10368 * ntproc.c (new_child):
10369 * ntproc.c (sys_spawnve):
10370 * ntproc.c (find_child_console):
10371 * ntproc.c (sys_kill):
10372 Fixed compile warnings. By the way, this file should really go
10373 away entirely, and this will happen as soon as Kirill makes his
10374 final round of process cleanups, which affect the function
10378 * process-nt.c (struct nt_process_data):
10379 * process-nt.c (find_process_from_pid):
10380 * process-nt.c (send_signal_the_nt_way):
10381 * process-nt.c (enable_child_signals):
10382 * process-nt.c (find_child_console):
10383 * process-nt.c (send_signal_the_95_way):
10384 * process-nt.c (nt_finalize_process_data):
10385 * process-nt.c (ensure_console_window_exists):
10386 * process-nt.c (nt_create_process):
10387 * process-nt.c (nt_kill_child_process):
10388 * process-nt.c (nt_kill_process_by_pid):
10389 * process-nt.c (nt_open_network_stream):
10390 * process-nt.c (vars_of_process_nt):
10391 Copied over code from Emacs 20.5 to correctly send signals to sub-
10392 processes under Windows 95. Also added code to automatically
10393 create and hide console window when a sub-process is created under
10394 Windows 95, which obviates the need for the separate runemacs.exe
10395 executable, and finally implemented some variables that were
10396 implemented in Emacs 20.5, but previously not in XEmacs. These
10397 include mswindows- start-process-share-console and
10398 mswindows-start-process-inherit-error-mode. (Both of these only
10399 apply to Windows 95.)
10401 * regex.c (regex_compile): Fixed a compile warning.
10404 * select-msw.c (mswindows_own_selection):
10405 * select-msw.c (mswindows_get_foreign_selection):
10406 * select-msw.c (mswindows_disown_selection):
10407 * select-msw.c (console_type_create_select_mswindows):
10408 * select-msw.c (syms_of_select_mswindows):
10409 Cleaned up the file and implemented the device method
10410 selection_exists_p, which had accidentally been left out. Also
10411 removed four lisp functions that were remnants from before the
10412 time when the selection code was properly device abstracted.
10413 These functions are no longer needed because there are generic
10414 equivalents, and because they were added recently and don't exist
10415 in FSF Emacs, I don't think there's any problem with just deleting
10419 * sysdep.c (sys_subshell):
10420 Fixed a compile warning, although in this case there's probably
10421 something wrong with this code, and it ought to be looked into
10422 more thoroughly by somebody who understands it.
10425 * window.c (Fwindow_text_area_height):
10426 * window.c (Fwindow_width):
10427 * window.c (Fwindow_full_width):
10428 * window.c (Fwindow_pixel_width):
10429 * window.c (debug_print_window):
10430 * window.c (syms_of_window):
10431 Added functions window-text-area-height and window-full-width,
10432 which are functions for returning various width and height
10433 characteristics of a window. (One of these functions is necessary
10434 for making the file dialog box work correctly, and the other one
10435 was added for completeness.) Also added a table to the
10436 documentation for window-height which describes the entire scheme
10437 for accessing width and height characteristics of a window.
10439 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10441 * nt.c (fstat): Added a comment for another problem with
10442 non-encapsulated [f]stat(), reported by Adrian Aichner
10443 <aichner@ecf.teradyne.com>.
10445 2000-03-11 Andy Piper <andy@xemacs.org>
10447 * window.c (make_dummy_parent): initialize subwindow instance
10449 (Fset_window_configuration): zero extent_modiff.
10451 2000-03-10 Andy Piper <andy@xemacs.org>
10453 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10454 more changes can be triggered.
10455 (Fredisplay_frame): ditto.
10456 (Fredraw_device): ditto.
10457 (Fredisplay_device): ditto.
10458 (redisplay_frame): make non-static.
10459 (redisplay_frame): call update_frame_gutter_geometry outside of
10462 * gutter.h: declare update_frame_gutter_geometry.
10464 * redisplay.h: declare redisplay_frame.
10466 * gutter.c (update_frame_gutter_geometry): move geometry changes
10467 in update_frame_gutters here. Geometry changes can only occur
10468 outside of redisplay.
10469 (update_frame_gutters): remove geometry change code.
10470 (Fredisplay_gutter_area): make sure that we are in display when we
10471 update and that we have flushed any size changes.
10473 2000-03-11 Andy Piper <andy@xemacs.org>
10475 * alloc.c (pdump_dump_data): remove i & count shadows.
10477 2000-02-27 Mike Alexander <mta@arbortext.com>
10479 * sysdep.h: Declare pdump_read_file
10481 * sysdep.c (pdump_read_file): New function
10483 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10486 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10488 * lrecord.h: add `lrecord_type_pgsetenv'.
10490 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10492 * symsinit.h: declare (vars|syms)_of* functions.
10493 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10495 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
10497 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10499 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10502 * emacs.c (main_1): Call postgres initialization code.
10504 * postgresql.h: New file. PostgreSQL RDBMS support.
10505 * postgresql.c: New file.
10507 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10509 * redisplay-output.c (redisplay_output_display_block): Disable
10512 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10514 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10515 (Fcanna_henkan_next): Ditto.
10516 (Fcanna_bunsetu_henkou): Ditto.
10517 (Fcanna_henkan_kakutei): Ditto.
10518 (Fcanna_henkan_end): Ditto.
10519 (Fcanna_henkan_quit): Ditto.
10520 (Fcanna_henkan_next): Set retun value correctly.
10521 (c2mu): Use unsigned char instead of signed char.
10523 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10525 * emacs.c (main_1): Always call syms_of_gui.
10526 * inline.c: include gui.h
10528 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10530 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10531 converted to Lisp_Object.
10532 (Qtop_bottom): New variable.
10533 (syms_of_redisplay): Initialize it.
10534 * redisplay.h (Vvisible_bell): Ditto.
10535 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10536 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10537 only flash top and bottom.
10539 2000-03-08 Andy Piper <andy@xemacs.org>
10541 * buffer.c (Frename_buffer): record new buffer name the right way.
10543 2000-03-08 Andy Piper <andy@xemacs.org>
10545 * glyphs.c (update_subwindow): increase hash depth so that widget
10546 items get picked up properly.
10548 * redisplay-output.c (compare_runes): increase hash depth so that
10549 widget items get picked up properly.
10551 2000-03-08 Andy Piper <andy@xemacs.org>
10553 * gutter.c (output_gutter): add some debug.
10555 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10556 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10557 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10559 * redisplay-output.c (compare_runes): use display_hash to
10560 determine if glyphs really are not the same.
10562 * glyphs.c (update_subwindow): check display_hash to see if
10563 anything really needs to be updated. If not then do
10564 nothing. Record the display_hash after updating.
10565 (image_instance_equal): compare the image_instance face also.
10567 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
10569 * redisplay.h: Fix comment style.
10571 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
10573 * consle-msw.h (struct mswindows_frame):
10574 Added new member paint_pending to indicate whether a WM_PAINT
10575 magic event has been queued for this frame.
10577 * event-msw.c (mswindows_drain_windows_queue):
10578 Don't queue a WM_PAINT magic event if one is already queued.
10579 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10581 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10583 2000-03-07 Didier Verna <didier@xemacs.org>
10585 * dired.c: #include `regex.h' after `sysfile.h'.
10587 2000-03-06 Martin Buchholz <martin@xemacs.org>
10589 * sound.c (init_nas_sound): Fix compiler warning.
10591 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10593 (MARK_STRUCT_AS_FREE):
10594 (MARK_STRUCT_AS_NOT_FREE):
10595 Make `gcc -fstrict-aliasing' work properly.
10597 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
10599 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10600 (mswindows_delete_device): Call CoUnnitialize().
10602 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10604 2000-02-25 <CraigL@DyCon.com>
10606 * process-nt.c: MinGW now has <shellapi.h>, but still needs
10609 * sysdep.c: This extern declaration for environ prevents MinGW
10610 from finding the variable in CRTDLL.DLL.
10612 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10614 (SHGFI_EXETYPE): ..
10615 (WM_MOUSEWHEEL): ..
10616 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10618 (MMRESULT): Removed, now defined in cygwin's windows headers.
10620 (uid_t,gid_t,pid_t,ssize_t): ..
10621 (_timeb): Removed, MinGW defines both _timeb and timeb.
10622 (HAVE_H_ERRNO): Added.
10623 (HAVE_TZNAME): Added, configure is not detecting this.
10625 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
10627 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10628 * syntax.c (syntax_match): Use it.
10630 * cmds.c: Import auto-fill-chars from FSF Emacs.
10631 (Vauto_fill_chars): New variables.
10632 (internal_self_insert): Check Vauto_fill_chars.
10634 Declare auto-fill-chars as a Lisp variable and initialize it.
10636 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10638 * fileio.c (Fmake_symbolic_link):
10640 Run handlers even if local machine doesn't have symlinks.
10642 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10644 * event-msw.c (mswindows_drain_windows_queue):
10645 Don't generate paint magic events for non-XEmacs frames.
10647 2000-03-05 Andy Piper <andy@xemacs.org>
10649 * redisplay.c (redisplay_frame): generate_displayable_area and
10650 friends assumes that we are not in GC, we therefore have to make
10651 sure that this doesn't happen.
10653 * gutter.c (calculate_gutter_size): generate_displayable_area
10654 assumes that we are not in GC, we therefore have to make sure that
10655 this doesn't happen.
10657 2000-03-05 Martin Buchholz <martin@xemacs.org>
10659 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10661 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10663 * redisplay.c (regenerate_window): Make sure we set a sane value
10664 for end_pos even if we jump out of the loop.
10665 (regenerate_window): Answer Ben's question :-).
10666 (start_end_of_last_line): Add may_error argument.
10667 (start_of_last_line):
10668 (end_of_last_line): Pass may_error = 0.
10669 (end_of_last_line_may_error): New function.
10670 (pixel_to_glyph_translation): Use it, so we don't crash in
10673 2000-03-04 Andy Piper <andy@xemacs.org>
10675 * window.h (struct window): add gutter_extent_modiff.
10677 * window.c (allocate_window): zero out gutter_extent_modiff.
10679 * redisplay.h: declare sync_display_line_structs.
10681 * redisplay.c (add_glyph_rune): add a better comment.
10683 * redisplay-output.c (sync_display_line_structs): made non-static.
10684 (compare_runes): remove unneccesary glyph cachel access.
10686 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10688 * gutter.c (output_gutter): don't output the gutter if extent
10689 changes only involve extents in buffers. use 4 sets of display
10691 (gutter_extent_signal_changed_region_maybe): new function. Mark
10692 extents in gutters as changed.
10693 (update_frame_gutters): use 4 sets of display lines.
10694 (reset_gutter_display_lines): ditto.
10695 (free_frame_gutters): ditto.
10696 (redraw_exposed_gutter): force output of gutters.
10698 * frame.h (struct frame): add 4 sets of gutter display lines.
10700 * extents.c: (extent_changed_for_redisplay): signal changes to
10701 extents in strings in the gutter as well as extents in buffers.
10703 2000-03-02 Andy Piper <andy@xemacs.org>
10705 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10707 * frame.c (Fmake_frame): make sure the gutters get initialized
10708 after the frame is visible.
10709 (set_frame_selected_window): re-arrange compilation macros a
10711 (change_frame_size_1): mark gutters changed.
10713 * device.c (Fset_device_class): mark gutters changed.
10715 2000-03-01 Andy Piper <andy@xemacs.org>
10717 * window.c (window_top_frame_gutter_height): deleted.
10718 (window_bottom_frame_gutter_height): ditto.
10719 (window_left_frame_gutter_height): ditto.
10720 (window_right_frame_gutter_height): ditto.
10721 (window_top_gutter_height): don't use them.
10722 (window_bottom_gutter_height): ditto.
10723 (window_left_gutter_width): ditto.
10724 (window_right_gutter_width): ditto.
10725 (Fsplit_window): ditto.
10726 (Fwindow_pixel_edges): don't use border dimensions here.
10728 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10729 (update_scrollbar_instance): ditto.
10731 * redisplay.c (generate_modeline): don't take gutters into account.
10732 (generate_modeline): ditto.
10733 (redisplay_frame): small gutter display optimization.
10735 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10737 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10738 gutters into account.
10740 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10741 for window position and type.
10743 * gutter.c (get_gutter_coords): fix for frame gutters.
10744 (update_frame_gutters): update frame geometry if the gutters have
10746 (init_frame_gutters): record current gutter geometries.
10748 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10750 (mswindows_widget_instantiate): ditto.
10752 * frame.h (struct frame): add current_gutter_bounds.
10754 * frame.c (change_frame_size_1): position window and minibuffer
10755 appropriately taking into account the frame gutters.
10757 * frame-x.c: (x_initialize_frame_size): take into account the
10760 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10762 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
10764 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10766 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10768 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10770 * file-coding.c (reset_decoding_stream): Clear previous
10771 detection state when autodetect.
10773 2000-02-29 Didier Verna <didier@xemacs.org>
10775 * extents.c (set_extent_glyph_1): don't require extents to be
10778 2000-02-27 Andy Piper <andy@xemacs.org>
10780 * gutter.c (Fset_default_gutter_position): don't default left and
10781 right gutter visibility to t.
10782 (Fset_default_gutter_position): run
10783 default-gutter-position-changed-hook.
10784 (syms_of_gutter): add default-gutter-position-changed-hook.
10786 2000-02-26 Andy Piper <andy@xemacs.org>
10788 * specifier.c (Fmake_specifier): add gutter references.
10790 * gutter.h (RAW_WINDOW_GUTTER): new macro.
10792 * lisp.h: declare Fvalid_plist_p.
10794 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10796 (default_gutter_visible_p_changed_in_window): invalidate gutter as
10797 well as its visibility so that it gets reconstructed.
10798 (construct_window_gutter_spec): new function. Construct a string
10799 to be displayed in the gutter from a plist of strings. Take care
10800 to only use elements that are declared as visible.
10801 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10803 (gutter_validate): allow plists of strings in the specifier.
10804 (gutter_specs_changed): construct the real_gutter from the gutter
10805 specs using construct_window_gutter_spec.
10806 (gutter_visible_validate): gutter-visible is a new specifier type.
10807 (Fgutter_visible_specifier_p): new function for the new specifier.
10808 (syms_of_gutter): declare gutter-visible and
10809 Fgutter_visible_specifier_p.
10810 (specifier_type_create_gutter): intitalize new gutter-visible
10812 (reinit_specifier_type_create_gutter): ditto.
10813 (specifier_vars_of_gutter): use new specifier type for gutter
10815 (init_frame_gutters): construct real_gutter correctly.
10816 (Fgutter_specifier_p): beef up documentation.
10817 (Fgutter_size_specifier_p): ditto.
10819 * winslots.h: add real_gutter slots.
10821 2000-02-25 Andy Piper <andy@xemacs.org>
10823 * device-msw.c: Be kind to older cygwin versions. From Raymond
10824 Toy <toy@rtp.ericsson.se>.
10826 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10827 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10829 2000-02-25 Martin Buchholz <martin@xemacs.org>
10831 * elhash.c (MARK_OBJ): Practice macro hygiene.
10833 2000-02-24 Martin Buchholz <martin@xemacs.org>
10835 * miscplay.c: s/__inline__/inline/g;
10836 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10837 (get_device_compdc): INLINE ==> static inline
10838 * *.[ch]: Change INLINE to INLINE_HEADER globally.
10839 find -name '*.h' | \
10840 xargs global-replace \
10841 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10843 2000-02-25 Andy Piper <andy@xemacs.org>
10845 * window.c (window_top_frame_gutter_height): new function.
10846 (window_top_window_gutter_height): ditto.
10847 (window_top_gutter_height): use them.
10848 (window_bottom_frame_gutter_height): new function.
10849 (window_bottom_window_gutter_height): ditto.
10850 (window_bottom_gutter_height): use them.
10851 (window_left_window_gutter_width): new function.
10852 (window_left_frame_gutter_width): ditto.
10853 (window_left_gutter_width): use them.
10854 (window_right_window_gutter_width): new function.
10855 (window_right_frame_gutter_width): ditto.
10856 (window_right_gutter_width): use them.
10857 (window_pixel_height): new function. calulate window pixel height
10858 with frame gutter involvement.
10859 (Fsplit_window): calculate new sizes taking frame gutters into
10861 (window_char_height_to_pixel_height): don't include frame gutters.
10862 (window_char_height): use window_pixel_height.
10863 (window_pixheight): rename from window_pixel_height.
10864 (change_window_height): use it.
10865 (window_pixel_height_to_char_height): don't include frame gutters.
10866 (window_char_width_to_pixel_width): ditto.
10868 2000-02-25 Andy Piper <andy@xemacs.org>
10870 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10873 2000-02-24 Martin Buchholz <martin@xemacs.org>
10875 * alloc.c (staticpro):
10876 (staticpro_nodump):
10881 (compact_string_chars):
10882 (pdump_dump_wired):
10883 Convert: if (foo) abort(); ==> assert (! foo);
10885 * eldap.c (Fldap_search_basic):
10889 Fix compiler warnings, and possible crashes if (random) return
10890 value were to be used.
10892 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10894 * device-msw.c: Workaround ResetDC failure.
10896 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10897 applying a devmode.
10899 * redisplay-msw.c (get_frame_dc): Added start_page_p.
10900 (mswindows_text_width): Do not start printer page.
10902 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10904 * glyphs-msw.c: Added image methods to msprinter console and
10905 msprinter-specific image instantiation.
10907 2000-02-20 Mike Alexander <mta@arbortext.com>
10909 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10910 to avoid crashes when selection-sets-clipboard is on
10911 (mswindows_own_selection): ditto
10913 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10916 * redisplay-msw.c (get_frame_dc):
10917 (get_frame_compdc):
10919 * device-msw.c (mswindows_init_device):
10920 (mswindows_delete_device):
10921 (msprinter_init_device):
10922 (msprinter_delete_device):
10923 * frame-msw.c (mswindows_init_frame_1):
10924 (mswindows_delete_frame):
10925 (msprinter_init_frame_3):
10926 (msprinter_delete_frame): Move compatible DC to device object from
10927 frame object, for both mswindows and msprinter. Only one at a time
10928 is needed, it is a real waste to have one per frame!
10930 2000-02-23 Andy Piper <andy@xemacs.org>
10932 * glyphs.c: add dynamic width and height elements.
10933 (image_instance_equal): ditto.
10935 * glyphs-widget.c (widget_query_geometry): calculate width and
10936 height dynamically if required.
10937 (initialize_widget_image_instance): initialize dynamic dimensions.
10938 (widget_instantiate): pick-up dynamic dimensions.
10940 * glyphs.h (struct Lisp_Image_Instance): add width and height for
10941 dynamic determination. Add appropriate macros.
10943 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10945 (WINDOW_GUTTER_SIZE): ditto.
10946 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10948 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10950 (get_frame_dc): ditto.
10952 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10955 2000-02-23 Martin Buchholz <martin@xemacs.org>
10957 * XEmacs 21.2.31 is released.
10959 2000-02-22 Ben Wing <ben@xemacs.org>
10961 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10963 2000-02-22 Andy Piper <andy@xemacs.org>
10965 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10967 2000-02-21 Mike Sperber <mike@xemacs.org>
10971 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10974 2000-02-21 Mike Sperber <mike@xemacs.org>
10976 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10978 2000-02-21 Martin Buchholz <martin@xemacs.org>
10980 * XEmacs 21.2.30 is released.
10982 2000-02-20 Martin Buchholz <martin@xemacs.org>
10984 Performance hacking.
10986 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10987 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10988 * emacs.c (main_1):
10990 * console.c (DEFVAR_CONSOLE_LOCAL_1):
10991 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10992 * symeval.h (DEFVAR_SYMVAL_FWD):
10993 * symbols.c (guts_of_unbound_marker):
10994 Make all c_readonly objects also lisp_readonly and marked for life.
10995 * lrecord.h (struct lrecord_implementation):
10996 Document flags better.
10997 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10998 * lrecord.h (DECLARE_LRECORD):
10999 * lrecord.h (XSETRECORD):
11000 * lrecord.h (RECORDP):
11001 * lrecord.h (RECORD_TYPEP):
11002 * lrecord.h (RECORD_MARKER): New.
11003 * lrecord.h (error_check_*):
11004 * lrecord.h (CONCHECK_NONRECORD):
11005 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11006 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11007 * lrecord.h (set_lheader_implementation):
11008 * lrecord.h (enum lrecord_type): New.
11009 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11010 * alloc.c (disksave_object_finalization_1):
11011 * alloc.c (mark_object):
11012 * alloc.c (lrecord_type_index):
11013 * alloc.c (tick_lcrecord_stats):
11014 * alloc.c (Fgarbage_collect):
11015 * alloc.c (init_alloc_once_early):
11016 * alloc.c (pdump_load):
11017 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11018 * alloc.c (lrecord_type_index): Delete.
11019 Make lisp object type indexes be constant.
11020 Makes (byte-compile) 5% faster.
11021 Put all marker functions into their own array.
11022 Makes (garbage-collect) 5% faster.
11023 Optimize SYMBOL_VALUE_MAGIC_P.
11024 Makes (byte-compile) 2-3% faster.
11025 * config.h.in (gc_checking_assert): New.
11026 * alloc.c: Use gc_checking_assert().
11027 * .dbxrc: Make compatible with new object type implementation.
11028 * .gdbinit: Make compatible with new object type implementation.
11029 * alloc.c: Delete all symbols defined only for debugging, such as
11030 Lisp_Type_Vector and lrecord_charset.
11032 2000-02-21 Andy Piper <andy@xemacs.org>
11034 * gui-msw.c (Fmswindows_shell_execute): fix file location
11037 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11038 unshowing so that set_window_buffer doesn't undo
11039 kill_buffer_hook's hard work.
11041 * glyphs-widget.c (tab_control_query_geometry): don't count the
11042 first item when calculating geometry.
11044 * glyphs.c (map_subwindow): remove redundant code.
11045 (update_frame_subwindows): be more circumspect about when to
11048 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11049 when items haven't changed. Update faces if faces have changed as
11050 well as just the widget face.
11051 (x_tab_control_update): Update faces if faces have changed as well
11052 as just the widget face.
11054 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11056 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11058 (build_syscolor_string): Use mswindows_color_to_string to try to
11060 (mswindows_device_system_metrics): Reverse the foreground and
11061 background colors so that they match the documentation.
11063 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11064 they match the default Windows palette.
11065 (mswindows_color_to_string): New function.
11067 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11069 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11071 2000-02-18 Olivier Galibert <galibert@pobox.com>
11073 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11074 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11076 * symbols.c (init_symbols_once_early): Removed obsolete
11077 DATA_SEG_BITS related kludge.
11078 (defvar_magic): Ditto.
11080 * malloc.c: Removed obsolete DATA_SEG_BITS
11082 * mem-limits.h: Ditto.
11084 * Makefile.in.in: Removed obsolete HAVE_SHM
11087 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11089 * device-msw.c (mswindows_delete_device): Free DDE string
11092 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11094 * keymap.c (get_keyelt):
11095 * unexnt.c (unexec):
11096 * vm-limit.c (memory_warnings):
11097 * ntheap.c (recreate_heap):
11098 * ntheap.h (UNINIT_PTR):
11099 * select-msw.c (Fmswindows_get_clipboard):
11100 (Fmswindows_set_clipboard):
11101 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11103 * menubar-msw.c (displayable_menu_item):
11105 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11106 * sysdep.c (sys_subshell):
11107 * process-nt.c (nt_create_process):
11108 * nt.c (normalize_filename):
11109 (dostounix_filename):
11110 (unixtodos_filename):
11111 * ntproc.c (win32_executable_type):
11112 * ntplay.c (play_sound_data_1):
11114 * editfns.c (get_home_directory):
11115 * event-msw.c (struct winsock_stream):
11116 (mswindows_dde_callback):
11117 * device-msw.c (msprinter_init_device):
11118 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11120 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11121 mswindows_clear_toolbar were swapped!
11123 * objects-msw.c:(colormap_t):
11125 * emacs.c (struct standard_args): Fixed const jumble.
11127 * glyphs-widget.c (update_widget): Fixed comparison notation.
11129 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11131 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11132 __declspec(noreturn) syntax.
11134 2000-02-19 Martin Buchholz <martin@xemacs.org>
11136 * eldap.c (Fldap_open):
11137 (Fldap_search_basic):
11140 Use new coding system conversion macros.
11142 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11144 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11146 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11148 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11149 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11151 * eldap.c (Qadd, Qreplace): New constant symbols
11152 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11153 interruptions by XEmacs signals
11154 Remove unnecessary calls to slow_down_interrupts and
11155 speed_up_interrupts
11156 (Fldap_search_basic): Renamed from Fldap_search_internal
11157 Added new optional parameter VERBOSE that triggers the
11158 display of progress messages
11159 Remove unnecessary calls to slow_down_interrupts and
11160 speed_up_interrupts
11161 LDAP result code analysis rewritten
11162 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11163 (syms_of_eldap): Define the new symbols and functions
11166 2000-02-17 Martin Buchholz <martin@xemacs.org>
11168 * realpath.c: Determine PATH_MAX maximally portably.
11170 * insdel.c (bytecount_to_charcount): Optimize.
11171 The function used to be optimized for entirely ASCII sequences.
11172 Now it is optimized for successive characters from the same
11173 charset. This also wins big for _mostly_ ASCII sequences.
11175 * fileio.c (Ffile_truename): convert return from realpath() using
11176 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11177 - Rewrite GCPROing slightly.
11179 * sysdep.c (sys_open): Do filename conversion, like all other
11180 sys_* functions. Fixes bug:
11181 (let ((file-name-coding-system 'iso-8859-2))
11182 (write-region x y latin2-name))
11183 ==> writes filename using internal encoding.
11185 2000-02-18 Martin Buchholz <martin@xemacs.org>
11187 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11188 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11189 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11190 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11191 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11192 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11193 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11194 (CONST_IF_NOT_DEBUG): Delete.
11195 * alloc.c (this_one_is_unmarkable): Delete.
11196 (mark_object): Don't check for this_one_is_unmarkable. Use the
11197 c_readonly flag instead.
11198 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11200 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11202 * event-msw.c (mswindows_drain_windows_queue):
11203 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11204 away redundant repaint events.
11206 2000-02-17 Andy Piper <andy@xemacs.org>
11208 * redisplay.h: declare mark_redisplay_structs.
11210 * redisplay.c (redisplay_window):
11211 (redisplay_frame): don't check subwindows_state_changed.
11212 (mark_redisplay): mark gutters here.
11214 * glyphs.c: (instantiate_image_instantiator): always layout if we
11215 haven't done so already.
11216 (allocate_image_instance): don't mark as dirty.
11217 (update_subwindow): bind inhibit_quit.
11219 * gutter.c (mark_gutters): new function.
11221 * glyphs-x.c (x_update_widget): Always resize to get round a
11224 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11225 breaking absolutely everything.
11227 * gutter.h: declare mark_gutters.
11229 2000-02-16 Martin Buchholz <martin@xemacs.org>
11231 * XEmacs 21.2.29 is released.
11233 2000-02-15 Olivier Galibert <galibert@pobox.com>
11235 * fns.c (size_bit_vector): Fix computation of the size.
11237 2000-02-15 Martin Buchholz <martin@xemacs.org>
11239 * *.[ch]: Change CONST to const globally.
11240 find -name '*.[ch]' | \
11241 xargs global-replace \
11242 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11243 - Remove vestigial references to CONST_IS_LOSING
11245 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11247 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11248 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11249 events instead of dispatching them directly.
11250 (mswindows_handle_paint): New function to do repainting.
11251 (mswindows_wnd_proc):
11252 (emacs_mswindows_handle_magic_event): Call above function.
11254 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11256 * objects-msw.c (mswindows_create_font_variant): Return the new
11258 (initialize_font_instance): Get font metrics from the underlined
11259 variant of the font to cope with the case where the underlined
11260 font has a bigger descent.
11262 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11264 * gui.c (gui_item_accelerator): Return the first underlined
11265 character in item name.
11267 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11269 * lisp.h: Added Qprinter.
11271 * general.c (syms_of_general): Initialized it.
11273 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11275 (get_frame_compdc): Made inline.
11277 * console.h (struct console_methods): Added eject_page method.
11279 * frame.h: Added FRAME_DISPLAY_P and friends.
11280 Aligned backslahes in many macros in more readable fashion.
11281 Added page_number to struct frame, and an accessor macro
11284 * defice.h: Added DEVICE_DISPLAY_P and friends.
11286 * device.c (Fdevice_printer_p): Used these.
11288 * frame.c (allocate_frame_core): Initialize page number.
11289 (Fprint_job_page_number):
11290 (Fprint_job_eject_page): Implemented.
11292 * frame-msw.c (msprinter_eject_page): Added method.
11293 (msprinter_start_page): Added.
11295 * window.c (Fwindow_truncated_p): Fixed docstring.
11296 (Fwindow_last_line_visible_height): Implemented.
11298 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11300 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11302 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11304 * syntax.c (scan_words): Always advance at least one character.
11306 2000-02-13 Andy Piper <andy@xemacs.org>
11308 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11309 to make sure the glyph is in the cachels.
11311 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11312 global image instance flag.
11313 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11314 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11316 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11317 (Fset_image_instance_property): mark layout as changed.
11318 (invalidate_glyph_geometry_maybe): mark layout as changed.
11319 (glyph_width): use new NEEDS_LAYOUT macro.
11320 (glyph_ascent): ditto.
11321 (glyph_descent): ditto.
11322 (glyph_height): ditto.
11323 (image_instance_layout): mark layout as clean after laying out.
11324 (update_subwindow): don't mark layout as clean here.
11326 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11327 should no longer be needed.
11329 * glyphs-x.c (x_update_widget): sanitize asserts.
11330 (x_finalize_image_instance): sanitize assignment to widgets.
11332 * glyphs-widget.c (widget_instantiate): don't need to clear the
11335 2000-02-13 Martin Buchholz <martin@xemacs.org>
11337 * sysdep.c (getcwd): Use standard prototype.
11338 * sysdep.h (getcwd): Use standard prototype.
11340 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11341 (sequence, start, end).
11342 Remove redundant type checking.
11343 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11344 view of `caller-protects') to avoid a crash where the real fix was
11347 2000-02-12 Martin Buchholz <martin@xemacs.org>
11349 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11351 * s/sol2.h: Remove feature macro initialization.
11353 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11354 (vector_hash): New. Code from internal_hash.
11356 Fix up allocation subsystem comments.
11358 * config.h.in: Add __EXTENSIONS__ for Solaris.
11360 * systime.h (EMACS_GETTIMEOFDAY): New.
11361 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11362 Remove Solaris-specific code.
11363 Use void* for the (ignored) second arg for gettimeofday().
11365 * elhash.c (hash_table_hash): Implement it, finally.
11366 * elhash.c: Use hashcode_t.
11368 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11369 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11371 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11372 * fns.c (size_bit_vector):
11373 * alloc.c (size_vector):
11374 (make_vector_internal):
11375 (make_bit_vector_internal):
11376 (sweep_bit_vectors_1):
11377 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11379 2000-02-10 Martin Buchholz <martin@xemacs.org>
11381 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11382 Include strings.h to avoid warnings for bzero and strcasecmp.
11384 2000-02-10 Olivier Galibert <galibert@pobox.com>
11386 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11387 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11389 * fns.c (size_bit_vector): New. Declare bit vectors as a
11392 2000-02-10 Olivier Galibert <galibert@pobox.com>
11394 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11395 use a value field instead.
11396 (symbol_value_forward_forward): Use value field.
11397 (DEFVAR_SYMVAL_FWD): Use value field.
11398 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11399 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11400 (DEFVAR_CONST_INT): Ditto.
11401 (DEFVAR_BOOL): Ditto.
11402 (DEFVAR_CONST_BOOL): Ditto.
11403 (DEFVAR_INT_MAGIC): Ditto.
11404 (DEFVAR_BOOL_MAGIC): Ditto.
11406 * symbols.c (guts_of_unbound_marker): Use value field.
11407 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11408 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11410 * lisp.h: Declare dumpopaque and noninteractive1.
11412 * alloc.c (dumpopaque): Added.
11413 (pdump_dump_opaquevec): Added.
11414 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11415 (pdump_load): Reload opaque data. Sync noninteractive1 with
11418 2000-02-10 Andy Piper <andy@xemacs.org>
11420 * glyphs.c (image_instance_layout): if the size changes, mark it
11423 * redisplay-output.c (redisplay_output_layout): Update the
11425 (redisplay_output_subwindow): ditto.
11427 * glyphs.c (update_subwindow): make sure we reset flags for
11428 layouts as well as everything else.
11430 * glyphs-widget.c (layout_layout): don't need to set the instances
11433 2000-02-09 Martin Buchholz <martin@xemacs.org>
11435 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11436 not HAVE_DLOPEN, which is a lower-level thing.
11438 * .cvsignore: Ignore gmon.out
11440 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11442 * .cvsignore: Ignore portable dumper xemacs.dmp file
11444 2000-02-09 Andy Piper <andy@xemacs.org>
11446 * redisplay-output.c (redisplay_output_layout): be more clever
11447 about when we output based on the changed flags.
11449 * glyphs.h (struct image_instantiator_methods): add update_method.
11450 (struct Lisp_Image_Instance): add changed flags. Declare new
11451 macros for manipulating them.
11453 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11454 (image_instance_parent_glyph): find an image_instance's parent
11455 glyph or image_instance.
11456 (image_instance_layout): mark the size as changed.
11457 (set_image_instance_dirty_p): new function. mark an image
11458 instance, plus all of its parents, as dirty.
11459 (Fset_image_instance_property): use it.
11460 (Fglyph_animated_timeout_handler): use it.
11461 (update_subwindow): call update_widget and device methods for
11462 update_subwindow. Mark all changed flags as clean.
11463 (Fresize_subwindow): mark size as changed.
11465 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11467 (x_update_subwindow): only resize subwindows here.
11468 (x_update_widget): new function. Update all changed properties of
11470 (x_resize_subwindow): deleted.
11471 (x_widget_set_property): deleted.
11472 (x_progress_gauge_set_property): deleted.
11473 (x_progress_gauge_update): new function. Implement recorded
11475 (x_tab_control_update): ditto.
11476 (x_tab_control_set_property): deleted.
11477 (console_type_create_glyphs_x): declare new functions.
11478 (image_instantiator_format_create_glyphs_x): ditto.
11480 * glyphs-widget.c (widget_set_property): mark text changed.
11481 (update_widget): new function. Update properties of a widget.
11482 (widget_instantiate): for layouts make sure we set their
11483 children's parent correctly.
11484 (tab_control_set_property): new function. Record changes that will
11485 take place under redisplay's control.
11486 (progress_gauge_set_property): ditto.
11487 (image_instantiator_progress_guage): declare new functions.
11488 (image_instantiator_tab_control): ditto.
11490 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11492 (mswindows_update_widget): new function. Update all properties on
11493 a widget that have changed.
11494 (mswindows_button_update): new function. Update a button's set
11496 (mswindows_tab_control_update): new function. Update the items in
11498 (mswindows_tab_control_set_property): deleted.
11499 (mswindows_progress_gauge_update): new function. Update the
11500 progress gauge's progress.
11501 (mswindows_widget_set_property): deleted. This is all done
11502 asynchronously now.
11503 (mswindows_progress_gauge_set_property): ditto.
11504 (console_type_create_glyphs_mswindows): declare new methods.
11505 (image_instantiator_format_create_glyphs_mswindows): ditto.
11507 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11508 (msprinter_set_frame_properties): ditto.
11510 * console.h (struct console_methods): Add update_widget_method.
11512 2000-02-09 Andy Piper <andy@xemacs.org>
11514 * gui-msw.c (Fmswindows_shell_execute): Make
11515 mswindows-shell-execute industrial strength.
11517 2000-02-08 Martin Buchholz <martin@xemacs.org>
11519 * lrecord.h: Make macro argument `props' match member function `plist'.
11522 * fns.c (Fremprop):
11523 * fns.c (Fobject_plist):
11526 Object property list frobbing cleanup.
11527 - Allow any lisp object (compared with `eq'), not just symbols, as
11528 keys in object plists.
11529 - Move symbol plist frobbing into symbols.c, where it belongs.
11530 - Move string plist frobbing into alloc.c, where it belongs.
11531 - Everything's an lrecord now, so no need to test for symbolp, etc.
11532 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11534 * extents.c: Reorder code to remove declarations.
11536 * frame.h (store_in_alist): Remove useless declaration.
11538 2000-02-07 Martin Buchholz <martin@xemacs.org>
11540 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11541 * config.h.in: Add HAVE_XCONVERTCASE.
11543 2000-02-07 Andy Piper <andy@xemacs.org>
11545 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11546 it breaks many things.
11548 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11550 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11551 actually can start a common comment type.
11552 * src/syntax.h (SYNTAX_END_P): ditto for end.
11554 2000-02-07 Martin Buchholz <martin@xemacs.org>
11556 * XEmacs 21.2.28 is released.
11558 2000-02-06 Martin Buchholz <martin@xemacs.org>
11560 * event-Xt.c (x_keysym_to_character): New.
11561 (maybe_define_x_key_as_self_inserting_character): New.
11562 (x_has_keysym): New.
11563 Auto-define all keys on the keyboard as self-insert-key.
11565 2000-02-02 Martin Buchholz <martin@xemacs.org>
11567 * menubar.c (vars_of_menubar): A small code simplification.
11569 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11572 * ExternalClient.c:
11573 * EmacsShell-sub.c:
11576 Use consistent style for specifying X resources.
11578 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11579 This makes (dontusethis-set-symbol-value-handler) actually usable.
11581 * lrecord.h (lrecord_decription_type):
11582 * alloc.c (pdump_register_sub):
11585 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11586 Comply with XEmacs coding style.
11587 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11588 args, and XD_LISP_OBJECT_ARRAY with 3 args.
11590 * keymap.c (Faccessible_keymaps):
11591 Make (accessible-keymaps map "\C-h") do the Right Thing.
11592 Make (accessible-keymaps map []) do the Right Thing.
11593 Make (accessible-keymaps map "") do the Right Thing.
11594 (check_keymap_definition_loop): New function.
11595 (keymap_store_internal): Keep luser from shooting self in foot,
11596 via (define-key ctl-x-4-map "p" global-map).
11597 Remove fullness slot from struct Lisp_Keymap, since hash tables
11599 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11601 2000-01-30 Martin Buchholz <martin@xemacs.org>
11603 * redisplay.c (init_redisplay): Fix small memory leak.
11605 * elhash.c (pdump_reorganize_hash_table):
11606 Rename from reorganize_hash_table. Change prototype.
11607 Reuse the original memory for hentries. Save 100k.
11608 * alloc.c (PDUMP_READ): new macro.
11609 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11610 * alloc.c: No need to #ifndef before #undef.
11612 * print.c: Allow debug_print() to print readably by modifying
11613 debug_print_readably. Use consistent variable names.
11615 * .dbxrc: Try to get things to work even if stopped in a function
11616 without source available by explicitly specifying source files.
11617 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11619 * unexnt.c (_start): Removed bogus code which caused loading heap
11620 from differrent executable file.
11621 Removed bogus assignment to _fmode, which caused inconsistencies.
11623 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11625 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11626 Have spawnve encapsulation regard DONT_ENCAPSULATE.
11627 Do not preliminary `#define signal sigset'.
11629 * systime.h: Do not prototype environ on windows nt and cygwin,
11630 this conflicts with system header.
11632 * syssignal.h: Use correct define for WINDOWSNT
11634 * sysdep.h: Do not prototype environ on windows nt, this conflicts
11635 with system header.
11637 * sysdep.c (near start of file): Fixed commentary and rearranged
11638 ifdefs in readable order.
11639 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11642 (end_of_data): Do not compile in if using PDUMP.
11644 * symsinit.h: Prototyped vars_of_nt().
11646 * ntproc.c (windows9x_p): Added, instead of os_subtype.
11647 (find_child_console): Use it.
11648 (sys_kill): Use it.
11650 * ntheap.h: Do not extern os_subtype.
11652 * ntheap.c (cache_system_info): Do not cache unneeded:
11653 nt_major_version, nt_minor_version and os_subtype.
11654 (recreate_heap): Do not compile in when PDUMPing.
11656 * nt.c (geteuid and friends): Use the new varibale
11657 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11658 (init_user_info): Removed the above mentioned hackery.
11659 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11660 stat has been fixed in the C runtime.
11661 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11663 * file-coding.c (struct file_coding_dump): Do not define
11664 ucs_to_mule_table in the struct if not MULE.
11665 (struct struct lrecord_description fcd_description_1): Do not dump
11668 * emacs.c (main_1): Call vars_of_nt().
11669 (right before Fdump_emacs_data): Don't need lastfile if using both
11670 portabe dumper and system malloc.
11672 * alloc.c (Fmemory_limit): Conditionalized out.
11673 (pdump): Use OPEN_BINARY for the portable dump file.
11674 (pdump_load): Ditto.
11676 2000-02-02 Mike Alexander <mta@arbortext.com>
11678 * nt.c (convert_time): Set tm_isdst before calling mktime and
11679 avoid calling it at all if the compiler supports 64 bit integers.
11680 Also initialize utc_base_ft before using it.
11682 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11684 * frame.c (change_frame_size_1): Take f->internal_border_width
11685 into consideration when calculating the width of the frame.
11687 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11689 * window.c (frame_min_height):
11690 (frame_size_valid_p):
11691 (frame_pixsize_valid_p): Added.
11692 (check_frame_size): Generalized.
11694 * window.h: Prototyped the above.
11697 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11698 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11699 Deleted Vwin32_* and Vbinary_process_* unused variables.
11701 * device-msw.c (msprinter_init_device): Do not get printer font
11702 list; Added DEVMODE functions.
11704 * frame-msw.c: Added lots of printer code.
11706 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11709 * console-msw.h: Added more msprinter device private slots.
11711 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11713 * event-msw.c (key_needs_default_processing_p): Added.
11714 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11716 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11718 * glyphs.c (image_instance_layout): Mark image instance as clean
11720 (glyph_dirty_p): Removed redundant function.
11721 (invalidate_glyph_geometry_maybe): Added.
11722 (update_glyph_cachel_data): Call it.
11724 * glyphs.h: Prototyped it.
11726 * redisplay.c (add_glyph_rune): Call it.
11727 (redisplay_window): Reset glyphs cachels when frame faces have
11728 changed, thus forcing recomputation of built-in border glyphs.
11730 2000-01-30 Martin Buchholz <martin@xemacs.org>
11732 * Makefile.in.in: Make portable dumper and purify play well together.
11733 Add imperfect, but better than nothing, support for pdump.
11734 Remove xemacs.dmp when temacs is re-generated.
11735 Don't ignore errors when dumping xemacs.
11737 * symbols.c (maybe_call_magic_handler): Remove one magic number.
11739 2000-01-28 Andy Piper <andy@xemacs.org>
11741 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11742 (setup_normal_frame): ditto.
11743 (setup_frame_without_minibuffer): ditto.
11744 (setup_minibuffer_frame): ditto.
11745 (delete_frame_internal): ditto.
11746 (Fmake_frame_invisible): ditto.
11747 (Ficonify_frame): ditto.
11749 * window.h: change Fset_window_buffer signature.
11751 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11752 (Fset_window_buffer): allow recording of buffer if the window is
11753 the selected window.
11754 (window_loop): Use new Fset_window signature.
11756 2000-01-23 Daniel Pittman <daniel@danann.net>
11758 * config.h.in: Added template for `HAVE_ATHENA_3D'
11760 2000-01-29 Andy Piper <andy@xemacs.org>
11762 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11764 * gutter.c (output_gutter): Don't output if the window isn't live.
11766 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11768 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11769 of 01/12/00: Moved SetFocus back here where it belongs.
11771 2000-01-23 Andy Piper <andy@xemacs.org>
11773 * s/cygwin32.h: declare printer things.
11775 2000-01-26 Andy Piper <andy@xemacs.org>
11777 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11780 2000-01-24 Andy Piper <andy@xemacs.org>
11782 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11783 (mswindows_button_instantiate): Make sure glyph is a pixmap.
11785 * glyphs-widget.c (widget_instantiate): Avoid shadows.
11787 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11789 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11791 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11792 (mswindows_output_display_block): Avoid local shadows.
11794 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11795 (mswindows_enqueue_mouse_button_event): ditto.
11796 (mswindows_handle_gui_wm_command): remove declaration.
11798 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11801 * console-msw.h: Avoid shadows.
11802 (mswindows_get_toolbar_button_text):
11803 (emacs_mswindows_create_stream_pair):
11804 (emacs_mswindows_delete_stream_pair):
11805 (mswindows_handle_toolbar_wm_command): declare.
11807 * device-msw.c (build_syscolor_string): Avoid shadows.
11809 2000-01-23 Andy Piper <andy@xemacs.org>
11811 * glyphs-widget.c (widget_instantiate): reverse the items for
11812 layouts so that children are in the expected order.
11814 2000-01-28 Martin Buchholz <martin@xemacs.org>
11816 * ralloc.c: safe_bcopy ==> memmove
11817 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11818 * s/msdos.h: Remove BCOPY macros.
11819 * insdel.c (gap_right): Remove BCOPY conditional code.
11820 * insdel.c (gap_left): Remove BCOPY conditional code.
11821 XEmacs demands a working ANSI C compiler - hence memmove.
11823 * regex.c (regex_compile): Remove accidental use of trigraphs.
11825 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11827 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11830 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11832 * event-msw.c (mswindows_drain_windows_queue): Added the
11834 (mswindows_need_event): Commented the call to
11835 mswindows_drain_windows_queue().
11836 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11839 * console-msw.h: Moved a few function prototypes here from
11842 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11843 parameter from unsigned short to unsigned long.
11844 (Fmswindows_shell_execute): Added return value.
11846 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11848 * sysdep.c (init_system_name):
11849 process-unix.c (unix_canonicalized_host_name):
11850 Don't call freeaddrinfo() if getaddrinfo() fails.
11852 * process-unix.c (unix_open_unix_network_stream):
11853 Moved the code to get a port # into address loop.
11855 2000-01-27 Martin Buchholz <martin@xemacs.org>
11857 * buffer.c (reinit_vars_of_buffer):
11858 The right place to initialize conversion_in_dynarr and
11859 conversion_out_dynarr.
11861 * alloc.c (pdump): Use the real open() till sys_open() is functional.
11863 * process-unix.c (unix_canonicalize_host_name): Muleize.
11864 (unix_open_network_stream): Muleize.
11866 * buffer.h: Fix up prototypes for ralloc.c functions.
11868 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11869 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11870 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11871 instead of gethostbyname()
11872 * process-unix.c: In unix_canonicalize_host_name() and
11873 unix_open_network_stream(), add code to use getaddrinfo()
11874 instead of gethostbyname().
11876 2000-01-27 Daniel Pittman <daniel@danann.net>
11878 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11879 libs when built with flat Athena.
11881 2000-01-27 Martin Buchholz <martin@xemacs.org>
11883 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11884 Use coding standards for function prototypes.
11886 2000-01-25 Martin Buchholz <martin@xemacs.org>
11888 * dialog-msw.c (push_lisp_string_as_unicode):
11889 * doc.c (unparesseuxify_doc_string):
11890 * dired.c (Fuser_name_completion_1):
11891 * dired.c (Fuser_name_all_completions):
11892 * dired.c (free_user_cache):
11893 * dired.c (user_name_completion):
11894 * console-x.c (get_display_arg_connection):
11895 * minibuf.c (clear_echo_area_internal):
11896 * minibuf.c (echo_area_append):
11897 * eldap.c (Fldap_open):
11898 * eldap.c (Fldap_search_internal):
11899 * frame-x.c (x_set_frame_text_value):
11900 * frame-x.c (x_set_frame_properties):
11901 * frame-x.c (x_create_widgets):
11902 * redisplay-tty.c (term_get_fkeys_1):
11903 * objects-x.c (x_parse_nearest_color):
11904 * objects-x.c (x_valid_color_name_p):
11905 * objects-x.c (x_initialize_font_instance):
11906 * objects-x.c (x_list_fonts):
11907 * objects-x.c (x_find_charset_font):
11908 * tooltalk.c (Fadd_tooltalk_message_arg):
11909 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11910 * tooltalk.c (Fadd_tooltalk_pattern_arg):
11911 * process-unix.c (unix_create_process):
11912 * ntproc.c (sys_spawnve):
11913 * sound.c (Fplay_sound_file):
11914 * sound.c (Fplay_sound):
11915 * buffer.c (init_initial_directory):
11916 * buffer.c (init_buffer):
11917 * editfns.c (init_editfns):
11918 * editfns.c (Ftemp_directory):
11919 * editfns.c (Fuser_full_name):
11920 * editfns.c (uncache_home_directory):
11921 * editfns.c (get_home_directory):
11922 * editfns.c (Fuser_home_directory):
11923 * editfns.c (Fformat_time_string):
11924 * editfns.c (Fcurrent_time_string):
11925 * gui-x.c (button_item_to_widget_value):
11926 * database.c (Fopen_database):
11927 * event-Xt.c (x_to_emacs_keysym):
11928 * event-Xt.c (x_event_to_emacs_event):
11929 * event-Xt.c (describe_event_window):
11930 * event-msw.c (mswindows_wnd_proc):
11931 * glyphs-eimage.c (jpeg_instantiate):
11932 * glyphs-eimage.c (gif_instantiate):
11933 * glyphs-eimage.c (png_instantiate):
11934 * glyphs-eimage.c (tiff_instantiate):
11935 * glyphs-x.c (xbm_instantiate_1):
11936 * glyphs-x.c (x_xbm_instantiate):
11937 * glyphs-x.c (x_xface_instantiate):
11938 * glyphs-x.c (autodetect_instantiate):
11939 * glyphs-x.c (cursor_font_instantiate):
11940 * glyphs-x.c (x_widget_instantiate):
11941 * glyphs-x.c (x_widget_set_property):
11942 * glyphs-x.c (x_widget_property):
11943 * glyphs-x.c (BUILD_GLYPH_INST):
11944 * print.c (write_string_to_stdio_stream):
11945 * print.c (output_string):
11946 * print.c (Falternate_debugging_output):
11947 * print.c (Fexternal_debugging_output):
11948 * glyphs-msw.c (extract_xpm_color_names):
11949 * glyphs-msw.c (mswindows_xpm_instantiate):
11950 * glyphs-msw.c (bmp_instantiate):
11951 * glyphs-msw.c (resource_name_to_resource):
11952 * glyphs-msw.c (mswindows_resource_instantiate):
11953 * glyphs-msw.c (xbm_instantiate_1):
11954 * glyphs-msw.c (mswindows_xbm_instantiate):
11955 * glyphs-msw.c (mswindows_xface_instantiate):
11956 * glyphs-msw.c (mswindows_widget_instantiate):
11957 * glyphs-msw.c (add_tree_item):
11958 * glyphs-msw.c (add_tab_item):
11959 * glyphs-msw.c (mswindows_combo_box_instantiate):
11960 * glyphs-msw.c (mswindows_widget_property):
11961 * glyphs-msw.c (mswindows_combo_box_property):
11962 * glyphs-msw.c (mswindows_widget_set_property):
11963 * console.c (stuff_buffered_input):
11964 * objects-msw.c (mswindows_initialize_color_instance):
11965 * objects-msw.c (mswindows_valid_color_name_p):
11966 * objects-msw.c (mswindows_list_fonts):
11967 * objects-msw.c (mswindows_font_instance_truename):
11968 * bytecode.c (optimize_compiled_function):
11969 * select-x.c (symbol_to_x_atom):
11970 * select-x.c (x_atom_to_symbol):
11971 * select-x.c (hack_motif_clipboard_selection):
11972 * select-x.c (selection_data_to_lisp_data):
11973 * select-x.c (lisp_data_to_selection_data):
11974 * select-x.c (Fx_get_cutbuffer_internal):
11975 * select-x.c (Fx_store_cutbuffer_internal):
11976 * buffer.h (TO_EXTERNAL_FORMAT): New function.
11977 * buffer.h (TO_INTERNAL_FORMAT): New function.
11978 * emacs.c (make_arg_list_1):
11979 * emacs.c (make_argc_argv):
11980 * emacs.c (main_1):
11981 * emacs.c (Fdump_emacs):
11982 * emacs.c (split_string_by_emchar_1):
11987 * device-x.c (x_init_device):
11988 * device-x.c (Fx_valid_keysym_name_p):
11989 * device-x.c (Fx_get_font_path):
11990 * device-x.c (Fx_set_font_path):
11991 * glyphs.c (bitmap_to_lisp_data):
11992 * glyphs.c (pixmap_to_lisp_data):
11993 * alloc.c (make_ext_string): Use coding system arguments. Update
11995 * alloc.c (build_string):
11996 * callproc.c (child_setup):
11997 * callproc.c (init_callproc):
11998 * fileio.c (lisp_strerror):
11999 * fileio.c (directory_file_name):
12000 * fileio.c (Fexpand_file_name):
12001 * fileio.c (Ffile_truename):
12002 * fileio.c (Fsysnetunam):
12003 * fileio.c (Fdo_auto_save):
12004 * sysdep.c (sys_readdir):
12005 * tests.c: New file. Allow adding C tests.
12006 Replace GET_* macros with a more comprehensible and flexible
12007 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12009 Any coding system can be used to do format conversion.
12010 Eliminate enum external_data_format.
12011 Eliminate convert_to_external_format.
12012 Eliminate convert_to_internal_format.
12013 Make sure file-name, keyboard, terminal, and ctext are always
12014 defined as coding systems or aliases. Make
12015 file-name-coding-system, terminal-coding-system, and
12016 keyboard-coding-system magical variables that are equivalent to
12017 defining the corresponding coding system aliases.
12019 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12020 * file-coding.c (Fcoding_system_alias_p): New function.
12021 * file-coding.c (Fcoding_system_aliasee): New function.
12022 * file-coding.c (append_suffix_to_symbol): New function.
12023 * file-coding.c (dangling_coding_system_alias_p): New function.
12024 * file-coding.c (Ffind_coding_system):
12025 * file-coding.c (Fcopy_coding_system):
12026 * file-coding.c (encode_coding_no_conversion):
12027 * file-coding.c (syms_of_file_coding):
12028 * file-coding.c (vars_of_file_coding):
12029 Rewrite coding system alias code.
12030 Allow nested aliases, like symbolic links.
12031 Allow redefinition of coding system aliases.
12032 Prevent existence of dangling coding system aliases.
12034 * dired.c (Fuser_name_completion_1):
12035 * dired.c (Fuser_name_all_completions):
12036 A crash would happen if user did QUIT in the middle of building
12037 user_name_cache. Remove redundant code in mainline and unwind_protect.
12040 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12042 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12043 an unsigned char *. Update all callers.
12045 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12047 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12049 2000-01-25 Martin Buchholz <martin@xemacs.org>
12051 * elhash.c (hentry_description): Use more portable definition.
12052 (resize_hash_table): Initialize new hentries using
12053 xnew_array_and_zero, thereby simplifying the code.
12055 * mule-charset.c (make_charset): Make sure entire object is
12056 initialized, to avoid Purify warnings.
12058 * alloc.c (resize_string): Fix unlikely crash with big strings.
12060 2000-01-24 Martin Buchholz <martin@xemacs.org>
12062 * realpath.c (xrealpath):
12063 Don't call getwd().
12065 2000-01-25 Martin Buchholz <martin@xemacs.org>
12067 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12069 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12071 * unexelfsgi.c (unexec): Change the way we decide which segment
12072 should be extended.
12074 Assumption that .bss section should be outside the PT_LOADable
12075 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12076 it's present) is inside the 'data' segment. This would fail the
12077 test which was used to find a segment to grow and cover new
12078 heap. Instead of this assumption, I created another one - on IRIX
12079 the segment to grow should start below .bss and it's address
12080 should extent above the end of .bss. Once this segment is
12081 identified, it's grown to accommodate the new heap and new
12082 zero-length .bss section is added at the end of .data2.
12084 2000-01-25 Martin Buchholz <martin@xemacs.org>
12086 * eval.c (Feval): Wrong number of arguments should use original
12087 function, not the indirect_function version of it.
12089 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12091 * glyphs-x.c (x_button_instantiate): Don't add image if
12092 it is not a pixmap.
12093 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12096 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12098 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12100 (DEFVAR_INT_MAGIC): Ditto.
12101 (DEFVAR_BOOL_MAGIC): Ditto.
12102 * glyphs.h: Reindent backslash.
12104 2000-01-24 Martin Buchholz <martin@xemacs.org>
12106 * glyphs-widget.c (layout_query_geometry):
12107 (layout_layout): Use correct types for gheight, gwidth.
12109 2000-01-24 Martin Buchholz <martin@xemacs.org>
12111 * EmacsManager.c (QueryGeometry): Purified.
12113 2000-01-23 Martin Buchholz <martin@xemacs.org>
12115 * alloc.c (make_float): Make sure entire object is initialized, to
12116 avoid Purify warnings.
12117 (pdump_register_sub): Remove useless assignment.
12118 (pdump): Use xmalloc, not malloc.
12119 (pdump_load): Use xmalloc, not malloc.
12121 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12128 * sysdep.c: Removed redundant #include <windows.h>
12130 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12132 * frame.c (delete_frame_internal): Do not delete device when its
12133 implementation so declares.
12134 (delete_frame_internal): Set device selected frame to nil when
12135 last frame goes away.
12137 * device-msw.c (msprinter_device_system_metrics): Implemented.
12138 (mswindows_device_system_metrics): Added 'device-dpi property.
12140 * device.c: (Fdevice_printer_p): Added.
12141 Added 'offset-workspace device metric.
12143 * console.h (device_metrics): Declared DM_offset_workspace.
12145 2000-01-23 Martin Buchholz <martin@xemacs.org>
12147 * fileio.c (Ffile_truename): Remove pointless and confusing
12148 initialization of elen.
12150 * glyphs-widget.c: Compiler warning fixes.
12152 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12154 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12155 instead of a Lisp_Object as argument to make it consistent with
12156 the other LIVE_P macros.
12157 (CHECK_LIVE_PROCESS): New macro.
12159 * process.c: Declare Qprocess_live_p.
12160 (Fprocess_live_p): New function.
12161 (create_process): Use PROCESS_LIVE_P.
12162 (read_process_output): Ditto.
12163 (set_process_filter): Ditto.
12164 (Fdelete_process): Ditto.
12165 (kill_buffer_processes): Ditto
12166 (process_send_signal): Use CHECK_LIVE_PROCESS.
12167 (Fprocess_input_coding_system): Check whether process is still
12168 alive (fix PR#1061).
12169 (Fprocess_output_coding_system): Ditto.
12170 (Fprocess_coding_system): Ditto.
12171 (Fset_process_input_coding_system): Ditto.
12172 (Fset_process_output_coding_system): Ditto.
12174 2000-01-23 Andy Piper <andy@xemacs.org>
12176 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12179 * glyphs.c (mark_image_instance): take into account changed
12180 image_instance format.
12181 (image_instance_equal): ditto.
12182 (image_instance_hash): ditto.
12184 * glyphs-widget.c (widget_instantiate): Incorporate layout
12185 instantiation here. Delay layout of the layout until later.
12186 (layout_instantiate): deleted.
12187 (layout_query_geometry): new function. get the geometry of a
12189 (layout_layout): layout a layout dynamically.
12190 (image_instantiator_widget): New function - splitting up
12191 image_instantiator_format_create_glyphs_widget for netwinder
12193 (image_instantiator_buttons):
12194 (image_instantiator_edit_fields):
12195 (image_instantiator_combo_box):
12196 (image_instantiator_scrollbar):
12197 (image_instantiator_progress_guage):
12198 (image_instantiator_tree_view):
12199 (image_instantiator_tab_control):
12200 (image_instantiator_labels):
12201 (image_instantiator_layout): ditto.
12202 (image_instantiator_format_create_glyphs_widget): Call preceding
12205 2000-01-22 Martin Buchholz <martin@xemacs.org>
12207 * process.c (Fset_process_coding_system):
12208 * device-x.c (Fx_keysym_hash_table):
12211 * lstream.c (Lstream_write): Return documented value, not 0.
12213 * fileio.c (directory_file_name):
12214 (Fsubstitute_in_file_name):
12215 (Fsubstitute_insert_file_contents_internal):
12216 (Fwrite_region_internal):
12221 Remove vestigial APOLLO-conditional code.
12223 2000-01-21 Martin Buchholz <martin@xemacs.org>
12225 * getpagesize.h: Add guard macros.
12226 * libsst.h: Add guard macros.
12227 * libst.h: Add guard macros.
12228 * line-number.h: Add guard macros.
12229 * ndir.h: Add guard macros.
12230 * sysfloat.h: Add guard macros.
12231 * sysfile.h: Add guard macros.
12232 * sysproc.h: Add guard macros.
12233 * syswait.h: Add guard macros.
12234 * xintrinsic.h: Add guard macros.
12235 * xintrinsicp.h: Add guard macros.
12236 * xmmanager.h: Add guard macros.
12237 * xmmanagerp.h: Add guard macros.
12238 * xmprimitive.h: Add guard macros.
12239 * xmu.h: Add guard macros.
12240 * gpmevent.h: Add copyright statement. Add guard macros.
12241 * miscplay.h: Add guard macros.
12242 * *.h: Use consistent C-standards-approved guard macro names.
12244 * opaque.c (make_opaque): Switch parameter order.
12245 * opaque.h (make_opaque): Switch parameter order.
12246 Update all callers.
12247 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12249 * config.h.in (type_checking_assert): Added.
12250 (bufpos_checking_assert): Added.
12252 2000-01-21 Martin Buchholz <martin@xemacs.org>
12254 * alloc.c: Harmless pdump changes.
12256 - spell alignment correctly.
12257 * sysdep.c: Use countof()
12259 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12261 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12262 initially_selected_for_input() console method, default to 0.
12263 (semi_canonicalize_console_connection): Try to delegate to
12264 canonicalize_console_connection if no such console method.
12265 (canonicalize_console_connection): Vice versa.
12266 (print_console): Do not print nil connection.
12268 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12269 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12270 (XDEVIMPF_FRAMELESS_OK): Added.
12271 (CONSOLE_INHERITS_METHOD): Added.
12273 * console-msw.c (mswindows_canonicalize_console_connection):
12275 (mswindows_canonicalize_device_connection): Added.
12277 * console-msw.h (struct msprinter_device): Added this struct and
12279 (mswindows_device): Made fontlist a lisp object.
12281 * device.c (semi_canonicalize_device_connection): Try to delegate
12282 to canonicalize_device_connection if no such console method.
12283 (canonicalize_device_connection): Vice versa.
12284 (print_device): Do not print nil connection.
12286 * device-msw.c (mswindows_init_device): Call InitCommonControls
12288 (mswindows_delete_device): Removed fontlist deallocation.
12289 (mswindows_mark_device): Added.
12291 * events.c (event_equal): Added abort() at unreached code.
12292 (event_hash): Ditto.
12294 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12295 fallback tags of Windows devices.
12297 * general.c (syms_of_general): Initialized Qmsprinter.
12299 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12300 of fallback tags of Windows devices.
12302 * lisp.h: Declared Qmsprinter.
12304 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12306 (mswindows_list_fonts): Ditto.
12307 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12308 that it can be used by both mswindows and msprinter devices.
12309 (initialize_font_instance): Added.
12310 (mswindows_initialize_font_instance): Use it.
12311 (msprinter_initialize_font_instance): Added.
12313 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12314 and implementation flags check.
12315 (redisplay_without_hooks): Changed the call to the above.
12316 (Fredraw_device): Ditto.
12317 (Fredisplay_device): Ditto.
12319 * redisplay-msw.c (get_frame_dc): Implemented.
12320 (get_frame_compdc): Implemented.
12321 (many functions): Use the two functions above to get device
12322 contexts, ether for a window or a printer.
12324 2000-01-21 Olivier Galibert <galibert@pobox.com>
12326 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12327 initialization here.
12328 (init_symbols_once_early): Call it.
12329 * emacs.c (main_1): Call it.
12330 * symsinit.h: Declare it.
12332 2000-01-19 Olivier Galibert <galibert@pobox.com>
12334 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12336 (pdump_backtrace): Ditto.
12337 (pdump_register_object): Ditto. Cleanup use of the pointers.
12338 (pdump_get_entry): Abort if trying to register a null pointer.
12339 (pdump_dump_data): Cleanup types when relocating.
12340 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12341 (pdump_dump_rtables): Remove bad casts.
12342 (pdump_load): Cleanup relocation w.r.t union type. Use a
12343 Lisp_Object instead of a EMACS_INT for the hashtable
12346 2000-01-20 Martin Buchholz <martin@xemacs.org>
12348 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12350 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12352 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12354 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12356 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12358 * faces.h (FACE_STRIKETHRU_P): Added.
12360 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12363 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12364 (mswindows_set_dc_font): New function, aware of font variants,
12365 separated from mswindows_update_dc.
12367 * objects-msw.h (struct mswindows_font_instance_data): Added
12370 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12371 cached fonts and the data structure.
12372 (mswindows_initialize_font_instance): Added creation of font data
12374 (mswindows_print_font_instance): Print at least something.
12375 (mswindows_create_font_variant): Implemented.
12376 (mswindows_get_hfont): Implemented.
12378 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12380 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12381 prototyping problem with msvc.
12383 * emacs.c (main_1): added syms_of_gui_mswindows() call
12385 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12386 syms_of_gui_mswindows() function
12388 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12390 2000-01-18 Martin Buchholz <martin@xemacs.org>
12392 * XEmacs 21.2.27 is released.
12394 2000-01-18 Martin Buchholz <martin@xemacs.org>
12396 * glyphs-eimage.c (struct tiff_error_struct):
12398 (tiff_warning_func):
12399 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12404 * unexec.c: Remove vestigial Lucid C code.
12408 * libsst.c: Ansify.
12409 Remove declarations of errno and strerror().
12411 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12413 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12415 2000-01-16 Martin Buchholz <martin@xemacs.org>
12417 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12420 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12425 Change enum eol_type to eol_type_t.
12427 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12429 * gui.c (get_gui_callback): Check cons before accessing car.
12431 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12433 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12434 (XSETSPECIFIER_TYPE): Ditto.
12436 2000-01-17 Didier Verna <didier@xemacs.org>
12438 * redisplay.c (generate_fstring_runes): compute string size in
12439 characters, not bytes.
12441 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12443 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12445 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12447 * print.c (print_error_message): Call print_prepare().
12449 2000-01-14 Martin Buchholz <martin@xemacs.org>
12451 * .dbxrc: Renamed from dbxrc.
12453 * events.c (event_to_character):
12454 Use `assert (foo)' instead of `if (!foo) abort()'
12456 * .gdbinit (xtype): Add documentation.
12457 * .gdbinit (check-temacs): New function.
12458 * .gdbinit (check-xemacs): New function.
12459 * dbxrc (check-xemacs): New function.
12460 * dbxrc (check-xemacs): New function.
12462 2000-01-14 Andy Piper <andy@xemacs.org>
12464 * glyphs-widget.c (widget_query_geometry): Make sure that we
12465 calculate default dimensions correctly.
12467 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12469 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12471 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12472 pdump_wire'd variable.
12474 * emacs.c: (main_1): Conditionalized calls to
12475 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12477 2000-01-13 Martin Buchholz <martin@xemacs.org>
12479 * window.c (Fset_window_configuration):
12480 * sysdep.c (_start):
12481 * input-method-motif.c (res):
12482 * event-Xt.c (Xt_process_to_emacs_event):
12483 Simple compiler warning fixes.
12485 * bytecode.c (funcall_compiled_function): Use the original
12486 function symbol on the backtrace list in preference to the
12487 compiled_function object in error messages.
12489 2000-01-13 Andy Piper <andy@xemacs.org>
12491 * glyphs-x.c (update_widget_face): Make sure we update the widget
12492 background as well as foreground.
12494 2000-01-13 Andy Piper <andy@xemacs.org>
12496 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12497 fields to subwindow.
12498 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12499 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12500 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12501 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12503 * glyphs-widget.c (check_valid_tab_orientation): new function.
12504 (initialize_widget_image_instance): zero orientation and
12506 (widget_instantiate): pick up orientation.
12507 (tab_control_query_geometry): return appropriate values for
12510 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12511 appropriate creation flags for left, right and bottom tabs.
12513 * s/cygwin32.h: add tab definitions.
12515 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12517 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12518 frame upon hiding a subwindow.
12519 (mswindows_button_instantiate): Changed the push button style to
12521 (mswindows_button_instantiate): Removed button BS_NOTIFY
12523 (mswindows_button_instantiate): Removed redundant check for
12524 a disabled gui item.
12525 (mswindows_button_instantiate): Made use of WS_TABSTOP
12526 consistent: "operable" controls (edit, button, tree, scroll) have
12527 this style, "display-only" ones (static, progress gauge) do
12528 not. This style is currently ignored by XEmacs though. Also,
12529 removed the WS_EX_CONTROLPARENT style - it is not for children,
12530 it is for their parents!
12531 (mswindows_edit_field_instantiate): Ditto.
12532 (mswindows_progress_gauge_instantiate): Ditto.
12533 (mswindows_tree_view_instantiate): Ditto.
12534 (mswindows_tab_control_instantiate): Ditto.
12535 (mswindows_scrollbar_instantiate): Ditto.
12536 (mswindows_combo_box_instantiate): Ditto.
12537 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12538 style to the "clip" window.
12539 (mswindows_button_instantiate): Removed compilation warning by
12540 equally typing terms of the ?: operator.
12542 2000-01-12 Didier Verna <didier@xemacs.org>
12544 * redisplay.c (generate_fstring_runes): new parameter holding the
12545 last modeline-format extent.
12546 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12547 extent, fill the glyph block with it.
12548 (generate_fstring_runes): handle these parameters.
12549 (generate_formatted_string_db): ditto.
12551 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12552 glyphs'extents in the modeline.
12554 1999-01-11 Mike Woolley <mike@bulsara.com>
12556 * ntheap.c: Reduced the reserved heap space from 1Gb down to
12557 256Mb, as a workaround for the non-starting problem many people
12560 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12562 * console-tty.c (Fset_console_tty_output_coding_system):
12563 Force redrawing tty frame.
12565 2000-01-10 Didier Verna <didier@xemacs.org>
12567 * redisplay.c (generate_fstring_runes): fix size computation bug.
12569 2000-01-09 William M. Perry <wmperry@aventail.com>
12571 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12573 2000-01-09 Andy Piper <andy@xemacs.org>
12575 * glyphs-msw.c: index -> i to avoid shadows.
12576 (xbm_create_bitmap_from_data): make static.
12577 (check_valid_string_or_int): deleted.
12578 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12580 * glyphs-x.c (x_update_subwindow): remove unused args.
12582 * glyphs.c (glyph_image_instance): return the thing. Don't set the
12583 back pointer - this is done in allocate_image_instance.
12584 (query_string_font): return Qnil to make the compiler happy.
12585 (unmap_subwindow): set to ~0 to make the compiler happy.
12586 (glyph_query_geometry): comment out until used.
12587 (glyph_layout): ditto.
12589 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12591 * insdel.c (signal_after_change): Remove extraneous unbind_to().