1 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * mule-charset.c (decode_builtin_char): Support mother charsets.
5 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
7 * mule-charset.c (Q94x94x60): New variable.
8 (charset_code_point): Support conversion `94x94x60'.
9 (Fmake_charset): Likewise.
10 (syms_of_mule_charset): Add new symbol `94x94x60'.
12 * char-ucs.h (CONVERSION_94x94x60): New macro.
14 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
16 * mule-charset.c (charset_code_point): Unify code about
19 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
21 * mule-charset.c (charset_code_point): Merge code about builtin
22 characters into code about mother charsets; don't use
23 `range_charset_code_point'.
24 (range_charset_code_point): Deleted.
26 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
28 * mule-charset.c (Qcode_offset): New variable.
29 (Fmake_charset): Use `XUINT' to get value of `min-code' and
30 `max-code'; accept new property `code-offset'.
31 (syms_of_mule_charset): Add new symbol `code-offset'.
33 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
35 * mule-charset.c (range_charset_code_point): Fixed.
37 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
39 * mule-charset.c (decode_builtin_char): Change semantics of
40 code-offset of coded-charset.
41 (charset_code_point): Likewise.
42 (range_charset_code_point): Likewise.
43 (complex_vars_of_mule_charset): Modify for the change.
45 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
47 * mule-charset.c (Fencode_char): Reverse arguments.
49 * mule-charset.c (charset_code_point): Fixed.
51 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
53 * mule-charset.c (Vcharset_mojikyo): Deleted.
54 (Vcharset_mojikyo_2022_1): Deleted.
55 (Vcharset_mojikyo_pj_{1..21}): Deleted.
56 (Qmin_code): New variable in UTF-2000.
57 (Qmax_code): Likewise.
59 (Qconversion): Likewise.
62 (Qmojikyo_2022_1): Deleted.
63 (Qmojikyo_pj_{1..22}): Deleted.
64 (mark_charset): Mark `cs->mother'.
65 (charset_description): Add description for `mother'.
66 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
67 new arguments `mother' and `conversion'; use
68 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
69 (charset_code_point): Moved from char-ucs.h; support `mother'
71 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
72 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
73 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
74 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
75 allow 2 as the value of `graphic' in UTF-2000; add new properties
76 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
77 require `final' in UTF-2000; modify for `make_charset'.
78 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
79 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
80 (Fcharset_property): Support `mother', `min-code' and `max-code'.
81 (Fencode_char): New function.
82 (syms_of_mule_charset): Add new builtin function `encode-char' in
83 UTF-2000; add new symbols `min-code', `max-code', `mother',
84 `conversion' and `94x60'; delete symbols `mojikyo',
85 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
86 (complex_vars_of_mule_charset): Modify for `make_charset' change;
87 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
88 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
90 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
91 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
93 * char-ucs.h (Vcharset_mojikyo): Deleted.
94 (Vcharset_mojikyo_2022_1): Deleted.
95 (LEADING_BYTE_MOJIKYO): Deleted.
96 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
97 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
98 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
99 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
100 add new member `mother'; add new member `conversion'.
101 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
102 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
103 (CHARSET_MOTHER): New macro.
104 (CHARSET_CONVERSION): New macro.
105 (CONVERSION_IDENTICAL): New macro.
106 (CONVERSION_94x60): New macro.
107 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
108 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
109 (XCHARSET_MOTHER): New macro.
110 (XCHARSET_CONVERSION): New macro.
111 (MIN_CHAR_MOJIKYO): Deleted.
112 (MAX_CHAR_MOJIKYO): Deleted.
113 (DECODE_MOJIKYO_2022): Deleted.
114 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
115 (charset_code_point): Changed to non-inline function.
116 (encode_char_1): Use `charset_code_point'.
117 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
119 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
121 * lread.c (read_compiled_function): Fix prototype.
122 (read_vector): Likewise.
124 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
126 * lrecord.h (struct lrecord_header): Delete `older'.
127 (set_lheader_implementation): Delete code for `older'.
128 (set_lheader_older_implementation): Deleted.
129 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
130 (OLDER_RECORD_P): Deleted.
131 (OLDER_RECORD_HEADER_P): Deleted.
132 (alloc_older_lcrecord): Deleted.
133 (alloc_older_lcrecord_type): Deleted.
135 * alloc.c (all_older_lcrecords): Deleted.
136 (alloc_older_lcrecord): Deleted.
137 (disksave_object_finalization_1): Delete code for older objects.
138 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
139 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
141 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
143 * mule-charset.c (decoding_table_put_char): Use `make_vector'
144 instead of `make_older_vector'.
145 (put_char_ccs_code_point): Likewise.
146 (mark_charset): Mark `cs->decoding_table'.
147 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
149 * lisp.h (make_older_vector): Deleted.
150 (make_vector_newer): Deleted.
152 * config.h.in (HAVE_GGC): Deleted.
154 * alloc.c (make_older_vector): Deleted.
155 (make_vector_newer_1): Deleted.
156 (make_vector_newer): Deleted.
158 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
160 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
161 (Qideograph_daikanwa_2): New variable.
162 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
163 (complex_vars_of_mule_charset): Add new coded-charset
164 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
165 `LEADING_BYTE_DAIKANWA'.
167 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
168 (LEADING_BYTE_DAIKANWA_1): New macro.
169 (LEADING_BYTE_DAIKANWA_2): New macro.
170 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
172 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
174 * mule-charset.c (complex_vars_of_mule_charset): Change
175 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
176 the second revised version.
178 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
180 * mule-charset.c (Vcharset_ucs_smp): New variable.
181 (Vcharset_ucs_sip): New variable.
182 (Qucs_smp): New variable.
183 (Qucs_sip): New variable.
184 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
185 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
186 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
187 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
188 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
189 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
191 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
192 (LEADING_BYTE_UCS_SIP): New macro.
193 (MIN_CHAR_SMP): New macro.
194 (MAX_CHAR_SMP): New macro.
195 (MIN_CHAR_SIP): New macro.
196 (MAX_CHAR_SIP): New macro.
198 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
200 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
203 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
205 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
206 value; don't store value into `encoding_table' of `Lisp_Charset'.
207 (mark_charset): `encoding_table' was deleted.
208 (charset_description): Likewise.
209 (make_charset): Likewise.
210 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
211 `put_char_ccs_code_point'.
213 * chartab.h (Fput_char_attribute): New EXFUN.
215 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
216 is unified with normal symbol space.
217 (Fget_char_attribute): Likewise.
218 (Fput_char_attribute): Likewise; behavior of
219 `put_char_ccs_code_point' is changed.
221 * char-ucs.h: Include "elhash.h".
222 (Vchar_attribute_hash_table): New external variable.
223 (struct Lisp_Charset): Delete `encoding_table'.
224 (CHARSET_ENCODING_TABLE): New implementation; refer
225 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
228 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
230 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
233 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
235 * text-coding.c (char_encode_big5): Prefer charset-g1 than
238 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
240 * chartab.c (uint8_byte_table_description): New constant.
241 (uint8-byte-table): Use `uint8_byte_table_description'.
242 (uint16_byte_table_description): New constant.
243 (uint16-byte-table): Use `uint16_byte_table_description'.
245 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
247 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
248 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
250 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
252 * mule-charset.c (Vcharset_ucs_ks): New variable.
253 (Qucs_ks): New variable.
254 (syms_of_mule_charset): Add new symbol `ucs-ks'.
255 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
257 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
259 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
261 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
262 (Fdecode_char): Likewise.
264 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
266 (Fdefine_char): Modify for Fdecode_char.
267 (Ffind_char): Likewise.
269 * mule-charset.c (Fdecode_char): Add new optional argument
271 (Fdecode_builtin_char): Modify for `Fdecode_char'.
273 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
275 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
276 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
277 (allocate_coding_system): Initialize initial-charsets of
278 CODESYS_BIG5 in XEmacs UTF-2000.
279 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
280 CODESYS_BIG5 in XEmacs UTF-2000.
281 (decode_coding_big5): Use initial-charset-g0 and -g1 of
282 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
284 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
286 (Qideograph_hanziku_{1 .. 12}): Likewise.
287 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
289 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
290 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
291 `ideograph-hanziku-{1 .. 12}'.
293 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
294 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
295 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
296 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
297 (DECODE_DEFINED_CHAR): New inline function.
298 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
300 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
302 * mule-charset.c (Vcharset_china3_jef): Renamed from
303 `Vcharset_japanese_jef_china3'.
304 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
305 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
306 `{MIN|MAX}_CHAR_JEF_CHINA3'..
307 (syms_of_mule_charset): Rename `china3-jef' from
308 `japanese-jef-china3'.
309 (complex_vars_of_mule_charset): Likewise; rename
310 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
312 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
313 `LEADING_BYTE_JEF_CHINA3'.
314 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
315 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
317 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
319 * mule-charset.c (encode_builtin_char_1): Comment out special code
320 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
322 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
323 (MAX_CHAR_MOJIKYO_0): Comment out.
324 (MIN_CHAR_CBETA): Changed to 0x00E20000.
325 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
326 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
327 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
329 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
331 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
332 (Qideograph_cbeta): New variable.
333 (encode_builtin_char_1): Comment out special code for
334 coded-charset `mojikyo' and `japanese-jef-china3'.
335 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
336 (complex_vars_of_mule_charset): Add new coded-charset
339 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
340 (MIN_CHAR_CBETA): New macro.
341 (MAX_CHAR_CBETA): New macro.
343 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
345 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
346 (LEADING_BYTE_JEF_CHINA3): New macro.
347 (MIN_CHAR_JEF_CHINA3): New macro.
348 (MAX_CHAR_JEF_CHINA3): Likewise.
349 (DECODE_CHAR): Fixed.
351 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
353 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
354 (Qjapanese_jef_china3): New variable.
355 (encode_builtin_char_1): Support `japanese-jef-china3'.
356 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
357 (complex_vars_of_mule_charset): Add new coded-charset
358 `japanese-jef-china3'.
360 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
362 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
363 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
364 94^4, 96^3, 96^4, 128^n and 256^n set.
365 (put_char_table): Use `XCHARSET_CELL_RANGE'.
366 (map_char_table): Likewise.
368 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
370 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
373 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
375 * chartab.h (get_char_id_table): New inline function.
377 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
380 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
382 * chartab.h (decode_char_table_range): New prototype in XEmacs
384 (put_char_id_table): New inline function in XEmacs UTF-2000.
386 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
388 (decode_char_table_range): Delete static declaration in XEmacs
391 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
393 * chartab.c (put_char_id_table): Use `put_char_table'.
395 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
397 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
398 (map_over_uint16_byte_table): Likewise.
399 (map_over_byte_table): Likewise.
400 (map_char_table): Modify for `map_over_uint8_byte_table',
401 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
404 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
406 * chartab.c (struct map_char_table_for_charset_arg): New
408 (map_char_table_for_charset_fun): New function.
409 (map_char_table): Use `map_char_table' for encoding_table of
412 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
414 * chartab.c (map_char_table): Check a character is found in
415 range->charset instead of non default value is defined in
416 char-table when range is CHARTAB_RANGE_ROW.
418 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
420 * chartab.c (map_char_id_table): Deleted.
421 (Fmap_char_attribute): Use `map_char_table' instead of
424 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
426 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
428 (update_syntax_table): Deleted in XEmacs UTF-2000.
430 * syntax.c (find_defun_start): Use `syntax_table' instead of
431 `mirror_syntax_table' in XEmacs UTF-2000.
432 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
434 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
436 (Fmatching_paren): Likewise.
437 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
439 (find_start_of_comment): Likewise.
440 (find_end_of_comment): Likewise.
441 (Fforward_comment): Likewise.
442 (scan_lists): Likewise.
443 (char_quoted): Likewise.
444 (Fbackward_prefix_chars): Likewise.
445 (scan_sexps_forward): Likewise.
446 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
447 (update_syntax_table): Likewise.
449 * search.c (skip_chars): Use `syntax_table' instead of
450 `mirror_syntax_table' in XEmacs UTF-2000.
452 (Freplace_match): Likewise.
454 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
455 `mirror_syntax_table' in XEmacs UTF-2000.
456 (WORDCHAR_P_UNSAFE): Likewise.
457 (re_match_2_internal): Likewise.
459 * font-lock.c (find_context): Use `buf->syntax_table' instead of
460 `buf->mirror_syntax_table' in XEmacs UTF-2000.
462 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
463 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
465 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
468 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
470 (print_char_table): Print `default_value' in XEmacs UTF-2000.
471 (char_table_description): Delete `mirror_table' in XEmacs
473 (fill_char_table): Don't call `update_syntax_table' in XEmacs
475 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
476 (Fcopy_char_table): Likewise.
477 (put_char_table): Don't call `update_syntax_table' in XEmacs
480 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
481 `buf->mirror_syntax_table' in XEmacs UTF-2000.
482 (casify_region_internal): Likewise.
484 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
486 * buffer.c (common_init_complex_vars_of_buffer): Don't use
487 `mirror_syntax_table' in XEmacs UTF-2000.
489 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
490 `buf->mirror_syntax_table' in XEmacs UTF-2000.
491 (Fexpand_abbrev): Likewise.
493 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
495 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
497 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
499 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
500 (map_over_uint16_byte_table): Likewise.
501 (map_over_byte_table): Likewise.
502 (get_char_id_table): Refer `cit->default_value'.
503 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
504 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
505 of character-id ranges.
506 (mark_char_table): Mark `ct->default_value'.
507 (char_table_description): Add `default_value'.
508 (fill_char_table): Use `default_value'.
509 (decode_char_table_range): Decode `nil' as
510 `CHARTAB_RANGE_DEFAULT'.
511 (get_char_id_table): Refer `cit->default_value'.
512 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
513 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
514 temporary hack; check value of char-table is bound or not.
515 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
517 * chartab.h (struct Lisp_Char_Table): Add new member
518 `default_value' in XEmacs UTF-2000.
519 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
520 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
523 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
525 * chartab.h (Lisp_Char_ID_Table): Deleted.
527 * chartab.c (char_table_description): Fix typo.
528 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
529 `Lisp_Char_ID_Table'.
531 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
533 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
536 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
539 * chartab.h (XCHAR_ID_TABLE): Deleted.
540 (XSETCHAR_ID_TABLE): Deleted.
541 (CHAR_ID_TABLE_P): Deleted.
543 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
545 (Fget_composite_char): Likewise.
546 (put_char_table): Likewise.
547 (add_char_attribute_alist_mapper): Fixed.
548 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
550 (Fget_char_attribute): Likewise.
551 (Fget_char_attribute): Likewise.
552 (Fmap_char_attribute): Likewise.
554 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
556 (encode_char_1): Likewise.
558 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
560 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
563 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
564 instead of `XCHAR_ID_TABLE'.
565 (remove_char_ccs): Likewise.
567 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
569 (Fget_composite_char): Likewise.
570 (Fchar_variants): Likewise.
571 (put_char_table): Likewise.
572 (add_char_attribute_alist_mapper): Likewise.
573 (Fchar_attribute_alist): Likewise.
574 (Fget_char_attribute): Likewise.
575 (Fput_char_attribute): Likewise.
576 (Fmap_char_attribute): Likewise.
577 (Fmap_char_attribute): Likewise.
579 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
581 (encode_char_1): Likewise.
583 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
585 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
586 `Lisp_Char_ID_Table'.
587 (mark_char_id_table): Deleted.
588 (print_char_id_table): Likewise.
589 (char_id_table_equal): Likewise.
590 (char_id_table_hash): Likewise.
591 (char_id_table_description): Likewise.
592 (char_id_table): Likewise.
593 (make_char_id_table): Use `Fmake_char_table' and
595 (get_char_id_table): Use `Lisp_Char_Table' instead of
596 `Lisp_Char_ID_Table'.
597 (put_char_id_table): Likewise.
598 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
600 (Fremove_char_attribute): Likewise.
601 (syms_of_chartab): Don't define type `char-id-table'.
603 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
604 (char_id_table): Likewise.
605 (GC_CHAR_ID_TABLE_P): Likewise.
606 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
607 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
608 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
609 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
610 (get_char_id_table): Use `Lisp_Char_Table' instead of
611 `Lisp_Char_ID_Table'.
612 (put_char_id_table_0): Likewise.
613 (put_char_id_table): Likewise.
615 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
617 * chartab.h: Lisp_Byte_Table related codes are moved from
620 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
622 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
624 * chartab.h: Don't include "chartab.h".
625 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
626 (Lisp_Char_ID_Table): Likewise.
627 (char_id_table): Likewise.
628 (XCHAR_ID_TABLE): Likewise.
629 (XSETCHAR_ID_TABLE): Likewise.
630 (CHAR_ID_TABLE_P): Likewise.
631 (GC_CHAR_ID_TABLE_P): Likewise.
632 (get_char_id_table): Likewise.
634 * char-ucs.h: Include "chartab.h".
635 (struct Lisp_Char_ID_Table): Moved to chartab.h.
636 (Lisp_Char_ID_Table): Likewise.
637 (char_id_table): Likewise.
638 (XCHAR_ID_TABLE): Likewise.
639 (XSETCHAR_ID_TABLE): Likewise.
640 (CHAR_ID_TABLE_P): Likewise.
641 (GC_CHAR_ID_TABLE_P): Likewise.
642 (get_char_id_table): Likewise.
644 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
646 * chartab.c (copy_uint8_byte_table): New function.
647 (copy_uint16_byte_table): New function.
648 (copy_byte_table): New function.
649 (map_over_uint8_byte_table): Modify to avoid huge numbers of
651 (map_over_uint16_byte_table): Likewise.
652 (map_over_byte_table): Likewise.
653 (get_byte_table): Move prototype to chartab.h.
654 (put_byte_table): Likewise.
655 (put_char_id_table_0): Moved to chartab.h.
656 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
657 (char_table_entry_equal): Likewise.
658 (char_table_entry_hash): Likewise.
659 (char_table_entry_description): Likewise.
660 (char_table_entry): Likewise.
661 (make_char_table_entry): Likewise.
662 (copy_char_table_entry): Likewise.
663 (get_non_ascii_char_table_value): Likewise.
664 (map_over_charset_ascii): Likewise.
665 (map_over_charset_control_1): Likewise.
666 (map_over_charset_row): Likewise.
667 (map_over_other_charset): Likewise.
668 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
669 (print_char_table): Likewise.
670 (char_table_equal): Likewise.
671 (char_table_hash): Likewise.
672 (char_table_description): Likewise.
673 (fill_char_table): Likewise.
674 (Fcopy_char_table): Likewise.
675 (get_char_table): Likewise.
676 (Fget_range_char_table): Likewise.
677 (put_char_table): Likewise.
678 (map_char_table): Likewise.
679 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
682 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
684 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
685 `Vauto_fill_chars' in XEmacs UTF-2000.
687 * chartab.h (get_byte_table): New prototype [moved from
689 (put_byte_table): Likewise [moved from chartab.c].
690 (put_char_id_table_0): New inline function [moved from chartab.c].
691 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
692 (Lisp_Char_Table_Entry): Likewise.
693 (char_table_entry): Likewise.
694 (XCHAR_TABLE_ENTRY): Likewise.
695 (XSETCHAR_TABLE_ENTRY): Likewise.
696 (CHAR_TABLE_ENTRYP): Likewise.
697 (CHECK_CHAR_TABLE_ENTRY): Likewise.
698 (NUM_ASCII_CHARS): Likewise.
699 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
700 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
702 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
704 * chartab.c (get_char_id_table): Change interface.
705 (put_char_id_table_0): New function.
706 (put_char_id_table): Change interface; new implementation.
707 (Fget_composite_char): Modify for interface change of
709 (Fchar_variants): Likewise.
710 (add_char_attribute_alist_mapper): Likewise.
711 (Fchar_attribute_alist): Likewise.
712 (Fget_char_attribute): Likewise.
713 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
714 as same as character as the first argument like `put-char-table';
715 modify for interface change of `put_char_id_table'.
716 (Fremove_char_attribute): Modify for interface change of
719 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
721 * text-coding.c: Sync up with XEmacs 21.2.41.
722 (COMPOSE_ADD_CHAR): Modify for interface change of
725 * mule-charset.c (put_char_ccs_code_point): Modify for interface
726 change of `put_char_id_table'.
727 (remove_char_ccs): Likewise.
729 * chartab.h (put_char_id_table): Change interface.
731 * char-ucs.h (get_char_id_table): Change interface.
732 (charset_code_point): Modify for interface change of
734 (encode_char_1): Likewise.
736 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
738 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
740 (map_over_uint16_byte_table): Likewise.
741 (map_over_byte_table): Likewise.
742 (map_char_id_table): Add new argument `range' like
744 (Fmap_char_attribute): Add new argument `range' like
747 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
749 * chartab.c (map_over_uint8_byte_table): Change interface of
750 mapping function to use struct chartab_range instead of Emchar.
751 (map_over_uint16_byte_table): Likewise.
752 (map_over_byte_table): Likewise.
753 (map_char_id_table): Likewise.
754 (struct slow_map_char_id_table_arg): Deleted.
755 (slow_map_char_id_table_fun): Deleted.
756 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
757 function `slow_map_char_table_fun' instead of struct
758 `slow_map_char_id_table_arg' and function
759 `slow_map_char_id_table_fun'.
761 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
763 * mule-charset.c: Move char-it-table related codes to chartab.c.
764 (Vutf_2000_version): Moved to chartab.c.
765 (Fdefine_char): Likewise.
766 (Ffind_char): Likewise.
767 (syms_of_mule_charset): Move types `uint8-byte-table',
768 `uint16-byte-table', `byte-table' and `char-id-table' to
769 chartab.c; move functions `char_attribute_list,
770 `find_char_attribute_table, `char_attribute_alist,
771 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
772 `map_char_attribute, `define_char, `find_char, `char_variants and
773 `get_composite_char to chartab.c; move symbols `=>ucs',
774 `->decomposition', `compat', `isolated', `initial', `medial',
775 `final', `vertical', `noBreak', `fraction', `super', `sub',
776 `circle', `square', `wide', `narrow', `small' and `font' to
778 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
779 setting codes for `Vcharacter_composition_table' and
780 `Vcharacter_variant_table' to chartab.c.
781 (complex_vars_of_mule_charset): Move setting code for
782 `Vchar_attribute_hash_table' to chartab.c.
784 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
785 (make_char_id_table): New prototype.
786 (put_char_id_table): Likewise.
787 (Fget_char_attribute): Likewise.
789 * chartab.c: Move char-id-table related code from mule-charset.c.
790 (Vutf_2000_version): Moved from mule-charset.c.
792 * char-ucs.h (Qucs): New external variable.
793 (put_char_ccs_code_point): New prototype.
794 (remove_char_ccs): Likewise.
796 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
798 * mule-charset.c (Vcharset_ucs_jis): New variable.
799 (Qucs_jis): Likewise.
800 (syms_of_mule_charset): Add new symbol `ucs-jis'.
801 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
803 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
805 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
807 * mule-charset.c (map_over_uint8_byte_table): New function.
808 (map_over_uint16_byte_table): Likewise.
809 (map_over_byte_table): Likewise.
810 (map_char_id_table): Likewise.
811 (slow_map_char_id_table_fun): Likewise.
812 (Fmap_char_attribute): Likewise.
813 (syms_of_mule_charset): Add new function `map-char-attribute'.
815 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
817 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
818 (syms_of_mule_charset): Add new function `find-char'.
820 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
822 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
824 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
825 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
827 (complex_vars_of_mule_charset): Add new coded-charset
828 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
831 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
833 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
835 * mule-charset.c (encode_builtin_char_1): Purge codes about
836 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
837 {MIN|MAX}_CHAR_HEBREW.
838 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
839 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
841 * char-ucs.h (MIN_CHAR_GREEK): Purged.
842 (MAX_CHAR_GREEK): Purged.
843 (MIN_CHAR_CYRILLIC): Purged.
844 (MAX_CHAR_CYRILLIC): Purged.
845 (MIN_CHAR_HEBREW): Commented out.
846 (MAX_CHAR_HEBREW): Likewise.
848 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
850 * mule-charset.c (Qto_ucs): New variable.
851 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
852 (Fdefine_char): Likewise.
853 (syms_of_mule_charset): Add new symbol `=>ucs'.
855 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
857 * mule-charset.c (Fdecode_char): Fixed.
859 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
861 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
862 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
865 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
867 * mule-charset.c (Vcharset_ucs_big5): New variable.
868 (Qucs_big5): Likewise.
869 (syms_of_mule_charset): Add new symbol `ucs-big5'.
870 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
872 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
874 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
876 * mule-charset.c (decode_builtin_char): Check Big5 code range
877 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
879 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
881 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
882 (Qchinese_gb12345): Likewise.
883 (Fdecode_builtin_char): Fixed.
884 (syms_of_mule_charset): Add `chinese-gb12345'.
885 (complex_vars_of_mule_charset): Add coded-charset
888 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
889 (LEADING_BYTE_CHINESE_GB12345): New macro.
891 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
893 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
894 and `latin-viscii-upper' for `latin-viscii'.
896 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
898 * mule-charset.c (Fdecode_builtin_char): Comment out
899 regularization code for ISO-IR GR representation.
901 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
903 * mule-charset.c (decode_builtin_char): New function; renamed from
904 `make_builtin_char'; return -1 instead of signal.
905 (Fdecode_builtin_char): Use `decode_builtin_char'.
907 * char-ucs.h (decode_builtin_char): New prototype; renamed from
909 (DECODE_CHAR): Use `decode_builtin_char' instead of
910 `make_builtin_char'; use mapping table of `chinese-big5' for
911 `chinese-big5-{1,2}'.
913 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
915 * text-coding.c (char_encode_big5): New function.
916 (char_finish_big5): Likewise.
917 (reset_encoding_stream): Use `char_encode_big5' and
918 `char_finish_big5' for CODESYS_BIG5.
919 (mule_encode): Don't use `encode_coding_big5'.
920 (encode_coding_big5): Deleted.
922 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
924 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
925 0x81- in XEmacs UTF-2000.
926 (detect_coding_big5): Likewise.
928 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
930 * mule-charset.c (Fdefine_char): Don't use a CCS property to
931 generate character-id if the CCS property does not have
932 corresponding predefined character.
933 (make_builtin_char): Return -1 if corresponding predefined
934 character is not found.
935 (Fdecode_char): Return nil if corresponding character is not
937 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
938 don't map to builtin ucs space.
940 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
942 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
943 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
945 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
947 * mule-charset.c (Vcharset_ideograph_gt): New variable.
948 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
949 (Qideograph_gt): Likewise.
950 (Qideograph_gt_pj_{1..11}): Likewise.
951 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
952 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
953 `ideograph-gt-pj-11'.
954 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
955 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
956 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
958 * char-ucs.h (LEADING_BYTE_GT): New macro.
959 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
960 (MIN_CHAR_GT): Likewise.
961 (MAX_CHAR_GT): Likewise.
963 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
965 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
966 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
968 * doprnt.c (unsigned_int_converters): Add `c'.
969 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
971 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
972 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
974 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
975 (MAX_CHAR_MOJIKYO_0): New macro.
976 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
978 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
980 * mule-charset.c (Fdefine_char): Delete cemented out code.
981 (encode_builtin_char_1): Modify for new allocation of builtin
984 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
986 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
988 * mule-charset.c (Vcharset_ucs_cns): New variable.
989 (Qucs_cns): New variable.
990 (syms_of_mule_charset): Add new symbol `ucs-cns'.
991 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
993 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
995 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
997 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
999 * search.c (search_buffer): Make `charset_base_code' as
1000 character-id >> 6 to eliminate the corresponding last byte in
1001 UTF-8 representation [I'm not sure it is right thing].
1002 (boyer_moore): Likewise.
1004 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1006 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1007 representation in MULE.
1009 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1011 * text-coding.c (Fmake_coding_system): Use
1012 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1013 `EXTERNAL_PROPERTY_LIST_LOOP'.
1015 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1017 * text-coding.c (decode_output_utf8_partial_char): New function.
1018 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1020 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1022 * text-coding.c (decode_coding_utf8): Output original byte
1023 sequence if it is broken; change order of conditions.
1025 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1028 * mb-multibyte.h (BYTE_ASCII_P):
1029 Use bit ops for char-signedness safety.
1030 (BYTE_C0_P): Use bit ops for char-signedness safety.
1031 (BYTE_C1_P): Use bit ops for char-signedness safety.
1033 * character.h: (XCHAR_OR_CHAR_INT):
1034 Always use inline function.
1035 Remove redundant type checking assert() - XINT will abort quite
1038 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1040 * text-coding.c: (Fencode_shift_jis_char):
1041 (Fencode_big5_char):
1042 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1043 Replace 0 with '\0' when working with bytes.
1044 Replace initial "(" with "\(" in docstrings.
1046 (Fmake_coding_system):
1047 When type is ccl and value is vector, register it with a proper
1048 symbol. And checks whether the given ccl program is valid.
1049 (mule_decode): When calling ccl_driver, if src indicates
1050 NULL pointer, set an empty string instead.
1051 (mule_encode): Likewise.
1054 (detect_coding_sjis):
1055 (decode_coding_sjis):
1056 (detect_coding_big5):
1057 (decode_coding_big5):
1058 (detect_coding_ucs4):
1059 (decode_coding_ucs4):
1060 (detect_coding_utf8):
1061 (decode_coding_utf8):
1062 (detect_coding_iso2022):
1063 (decode_coding_iso2022):
1064 (decode_coding_no_conversion):
1066 Make all detecting and decoding functions take an Extbyte * arg.
1067 (text_encode_generic):
1068 (encode_coding_big5):
1069 (encode_coding_no_conversion):
1071 Make all encoding functions take a Bufbyte * arg.
1072 Use size_t instead of unsigned int for memory sizes.
1073 Only cast to unsigned char whenever dereferencing Extbyte *.
1075 (struct lrecord_description fcd_description_1): Use countof.
1076 (complex_vars_of_file_coding):
1077 Use countof instead of sizeof.
1078 Use CHECK_NATNUM instead of CHECK_INT.
1080 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1082 * mule-charset.c (Fget_char_attribute): Add new optional argument
1084 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1085 (remove_char_ccs): Likewise.
1087 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1089 * text-coding.c (char_encode_shift_jis): New implementation in
1091 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1094 * mule-charset.c (Vcharset_chinese_big5): New variable in
1096 (Qchinese_big5): New variable in UTF-2000.
1097 (BIG5_SAME_ROW): New macro in UTF-2000.
1098 (make_builtin_char): Use builtin characters of
1099 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1100 characters of `Vcharset_chinese_big5'.
1101 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1102 (complex_vars_of_mule_charset): Add new coded-charset
1103 `chinese-big5' in UTF-2000.
1105 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1106 (Vcharset_chinese_big5): New external variable declaration.
1107 (Vcharset_japanese_jisx0208_1990): Likewise.
1109 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1113 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1115 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1117 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1118 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1119 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1122 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1124 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1126 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1128 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1131 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1133 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1134 for `CHARSET_BY_ATTRIBUTES'.
1135 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1136 `CHARSET_BY_ATTRIBUTES'.
1138 * text-coding.c (struct decoding_stream): Rename member `CH' to
1140 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1141 (decode_coding_sjis): Likewise.
1142 (decode_coding_big5): Likewise.
1143 (decode_coding_ucs4): Likewise.
1144 (decode_coding_utf8): Likewise.
1145 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1146 `CHARSET_BY_ATTRIBUTES'.
1147 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1148 `str->counter'; decode 3, 4 bytes sets.
1149 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1151 (decode_coding_no_conversion): Use `str->cpos' instead of
1154 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1155 (Qmojikyo_2022_1): New variable.
1156 (make_charset): Don't use `CHARSET_TYPE_*'.
1157 (range_charset_code_point): Support coded-charset
1159 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1160 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1161 `CHARSET_BY_ATTRIBUTES'.
1162 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1163 `CHARSET_BY_ATTRIBUTES'.
1164 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1165 (complex_vars_of_mule_charset): Add new coded-charset
1168 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1169 interface; changed to inline function.
1171 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1172 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1173 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1174 (CHARSET_TYPE_94): Deleted.
1175 (CHARSET_TYPE_94X94): Deleted.
1176 (CHARSET_TYPE_96): Deleted.
1177 (CHARSET_TYPE_96X96): Deleted.
1178 (CHARSET_TYPE_128): Deleted.
1179 (CHARSET_TYPE_128X128): Deleted.
1180 (CHARSET_TYPE_256): Deleted.
1181 (CHARSET_TYPE_256X256): Deleted.
1182 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1184 (DECODE_MOJIKYO_2022): New inline function.
1185 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1186 `Vcharset_mojikyo_2022_1'.
1188 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1190 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1192 (put_byte_table): Likewise.
1193 (char_id_table_equal): Use `get_byte_table' [new implementation].
1195 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1197 * mule-charset.c: Include <limits.h> in UTF-2000.
1198 (BT_UINT8_MIN): New macro in UTF-2000.
1199 (BT_UINT8_MAX): New macro in UTF-2000.
1200 (BT_UINT8_t): New macro in UTF-2000.
1201 (BT_UINT8_nil): New macro in UTF-2000.
1202 (BT_UINT8_unbound): New macro in UTF-2000.
1203 (INT_UINT8_P): New inline function in UTF-2000.
1204 (UINT8_VALUE_P): New inline function in UTF-2000.
1205 (UINT8_ENCODE): New inline function in UTF-2000.
1206 (UINT8_DECODE): New inline function in UTF-2000.
1207 (mark_uint8_byte_table): New function in UTF-2000.
1208 (print_uint8_byte_table): New function in UTF-2000.
1209 (uint8_byte_table_equal): New function in UTF-2000.
1210 (uint8_byte_table_hash): New function in UTF-2000.
1211 (make_uint8_byte_table): New function in UTF-2000.
1212 (uint8_byte_table_same_value_p): New function in UTF-2000.
1213 (BT_UINT16_MIN): New macro in UTF-2000.
1214 (BT_UINT16_MAX): New macro in UTF-2000.
1215 (BT_UINT16_t): New macro in UTF-2000.
1216 (BT_UINT16_nil): New macro in UTF-2000.
1217 (BT_UINT16_unbound): New macro in UTF-2000.
1218 (INT_UINT16_P): New inline function in UTF-2000.
1219 (UINT16_VALUE_P): New inline function in UTF-2000.
1220 (UINT16_ENCODE): New inline function in UTF-2000.
1221 (UINT16_DECODE): New inline function in UTF-2000.
1222 (UINT8_TO_UINT16): New inline function in UTF-2000.
1223 (mark_uint16_byte_table): New function in UTF-2000.
1224 (print_uint16_byte_table): New function in UTF-2000.
1225 (uint16_byte_table_equal): New function in UTF-2000.
1226 (uint16_byte_table_hash): New function in UTF-2000.
1227 (make_uint16_byte_table): New function in UTF-2000.
1228 (uint16_byte_table_same_value_p): New function in UTF-2000.
1229 (print_byte_table): New function in UTF-2000.
1230 (byte-table): Use `print_byte_table' as printer.
1231 (make_byte_table): Delete second argument `older'.
1232 (byte_table_same_value_p): New function in UTF-2000.
1233 (copy_byte_table): Deleted.
1234 (get_byte_table): New function in UTF-2000.
1235 (put_byte_table): New function in UTF-2000.
1236 (print_char_id_table): New function in UTF-2000.
1237 (char-id-table): Use `print_char_id_table' as printer.
1238 (make_char_id_table): Delete second argument `older'.
1239 (get_char_id_table): Use `get_byte_table [new implementation].
1240 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1242 (Ffind_char_attribute_table): New function in UTF-2000.
1243 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1244 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1245 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1246 (syms_of_mule_charset): Add new function
1247 `find-char-attribute-table' in UTF-2000.
1249 * lrecord.h (enum lrecord_type): Add
1250 `lrecord_type_uint16_byte_table' and
1251 `lrecord_type_uint8_byte_table'.
1253 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1254 (Lisp_Uint8_Byte_Table): New type.
1255 (XUINT8_BYTE_TABLE): New macro.
1256 (XSETUINT8_BYTE_TABLE): New macro.
1257 (UINT8_BYTE_TABLE_P): New macro.
1258 (GC_UINT8_BYTE_TABLE_P): New macro.
1259 (struct Lisp_Uint16_Byte_Table): New structure.
1260 (Lisp_Uint16_Byte_Table): New type.
1261 (XUINT16_BYTE_TABLE): New macro.
1262 (XSETUINT16_BYTE_TABLE): New macro.
1263 (UINT16_BYTE_TABLE_P): New macro.
1264 (GC_UINT16_BYTE_TABLE_P): New macro.
1266 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1268 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1269 (Vcharacter_ideographic_strokes_table): Deleted.
1270 (Vcharacter_total_strokes_table): Deleted.
1271 (Vcharacter_morohashi_daikanwa_table): Deleted.
1272 (Vcharacter_decomposition_table): Deleted.
1273 (Qname): Deleted because it is duplicated.
1274 (Qideographic_radical): Deleted.
1275 (Qideographic_strokes): Deleted.
1276 (Qtotal_strokes): Deleted.
1277 (Qmorohashi_daikanwa): Deleted.
1278 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1279 `ideographic-radical', `ideographic-strokes', `total-strokes',
1280 `morohashi-daikanwa' and `->decomposition'.
1281 (Fget_char_attribute): Likewise.
1282 (Fput_char_attribute): Likewise; use `make-vector' instead of
1283 `make_older_vector' for `->decomposition' value.
1284 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1285 `ideograph-daikanwa'.
1286 (syms_of_mule_charset): Delete builtin symbols `name',
1287 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1288 `morohashi-daikanwa'.
1289 (vars_of_mule_charset): Don't setup
1290 `Vcharacter_ideographic_radical_table',
1291 `Vcharacter_ideographic_strokes_table',
1292 `Vcharacter_total_strokes_table',
1293 `Vcharacter_morohashi_daikanwa_table' and
1294 `Vcharacter_decomposition_table'.
1296 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1299 `make_older_vector', `make_vector_newer_1' and
1300 `make_vector_newer'.
1302 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1303 `make_older_vector' and `make_vector_newer'.
1305 * config.h.in (HAVE_GGC): New macro.
1307 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1309 * mule-charset.c (struct char_attribute_list_closure): New
1310 structure in UTF-2000.
1311 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1312 (Fchar_attribute_list): Likewise.
1313 (Fset_charset_mapping_table): Use `make_vector_newer'.
1314 (Fdecode_builtin_char): New function in UTF-2000.
1315 (syms_of_mule_charset): Add new function `char-attribute-list' and
1316 `decode-builtin-char' in UTF-2000.
1318 * lisp.h (make_vector_newer): New prototype.
1320 * alloc.c (make_vector_newer_1): New function.
1321 (make_vector_newer): New function.
1323 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1328 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1330 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1331 (Vcharacter_attribute_table): Deleted.
1332 (Vcharacter_name_table): Deleted.
1333 (put_char_attribute): Deleted.
1334 (remove_char_attribute): Deleted.
1335 (struct char_attribute_alist_closure): New structure.
1336 (add_char_attribute_alist_mapper): New function.
1337 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1338 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1339 (Fget_char_attribute): Likewise.
1340 (Fput_char_attribute): Likewise.
1341 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1342 of `remove_char_attribute'.
1343 (Fdefine_char): Return character.
1344 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1345 and `Vcharacter_name_table'.
1346 (complex_vars_of_mule_charset): Likewise
1347 `Vchar_attribute_hash_table'.
1349 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351 * character.h (CHARC_CHARSET): New macro.
1352 (CHARC_CHARSET_ID): New macro.
1353 (CHARC_CODE_POINT): New macro.
1354 (CHARC_COLUMNS): New macro.
1355 (CHARC_TO_CHAR): New inline function.
1356 (CHARC_EQ): New inline function.
1357 (CHARC_ASCII_EQ): New inline function.
1358 (CHARC_IS_SPACE): New inline function.
1359 (ASCII_TO_CHARC): New inline function.
1361 * char-ucs.h (encode_char_2): Deleted.
1362 (ENCODE_CHAR): Use `encode_char_1' again.
1363 (breakup_char_1): Likewise.
1364 (CHAR_TO_CHARC): New inline function.
1366 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1368 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1370 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1371 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1372 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1373 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1374 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1376 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1378 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1380 (x_output_display_block): Use `CHARC_CHARSET' and
1383 * redisplay-tty.c (tty_output_display_block): Use
1385 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1387 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1389 * insdel.c (find_charsets_in_charc_string): Use
1391 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1392 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1393 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1394 (convert_charc_string_into_malloced_string): Likewise.
1396 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1399 instead of <Emchar_dynarr *> for buf; use
1400 `convert_bufbyte_string_into_charc_dynarr' instead of
1401 `convert_bufbyte_string_into_emchar_dynarr'; use
1402 `find_charsets_in_charc_string' instead of
1403 `find_charsets_in_emchar_string'.
1406 - Include "character.h".
1407 (struct rune): New member `cglyph'; delete member `chr'.
1409 * redisplay.c (redisplay_text_width_charc_string): New function;
1410 delete `redisplay_text_width_emchar_string'.
1411 (rtw_charc_dynarr): New variable; renamed from
1412 `rtw_emchar_dynarr'.
1413 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1414 `rtw_emchar_dynarr'; use
1415 `convert_bufbyte_string_into_charc_dynarr' instead of
1416 `convert_bufbyte_string_into_emchar_dynarr'; use
1417 `redisplay_text_width_charc_string' instead of
1418 `redisplay_text_width_emchar_string'.
1419 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1420 instead of `rtw_emchar_dynarr'; use
1421 `convert_bufbyte_string_into_charc_dynarr' instead of
1422 `convert_bufbyte_string_into_emchar_dynarr'.
1423 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1424 `redisplay_text_width_charc_string' instead of
1425 `redisplay_text_width_emchar_string'.
1426 (create_text_block): Modify for <struct rune> change.
1427 (generate_formatted_string_db): Likewise.
1428 (create_string_text_block): Likewise.
1429 (pixel_to_glyph_translation): Likewise.
1431 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1432 instead of <const Emchar *>.
1433 (x_text_width): Likewise.
1434 (x_output_display_block): Use <Charc_dynarr *> instead
1435 <Emchar_dynarr *>; modify for <structure rune> change.
1436 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1439 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1440 <const Emchar *>; use `charc_string_displayed_columns' instead of
1441 `emchar_string_displayed_columns'.
1442 (tty_output_display_block): Use <Charc_dynarr *> instead of
1443 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1444 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1445 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1446 `tty_output_emchar_dynarr_dynarr'.
1447 (tty_output_charc_dynarr): New function; delete
1448 `tty_output_charc_dynarr'.
1450 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1451 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1452 <Emchar_dynarr *> for buf; use
1453 `convert_bufbyte_string_into_charc_dynarr' instead of
1454 `convert_bufbyte_string_into_emchar_dynarr'.
1456 * frame.c (title_string_charc_dynarr): New variable; renamed from
1457 `title_string_emchar_dynarr'.
1458 (generate_title_string): Use `title_string_charc_dynarr' instead
1459 of `title_string_emchar_dynarr'; use
1460 `convert_charc_string_into_malloced_string' instead of
1461 `convert_emchar_string_into_malloced_string'.
1462 (init_frame): Use `title_string_charc_dynarr' instead of
1463 `title_string_emchar_dynarr'.
1466 - Include "character.h".
1467 (struct console_methods): Use <const Charc *> instead of <const
1468 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1469 <Emchar_dynarr *> in output_string_method.
1471 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1474 * console-stream.c (stream_text_width): Use <const Charc *>
1475 instead of <const Emchar *>.
1477 * character.h (Charc_dynarr): New type.
1479 * char-ucs.h (structure Charc): New structure; define new type
1482 * char-lb.h (DECODE_CHAR): New inline function.
1483 (encode_char_1): New inline function.
1484 (ENCODE_CHAR): New macro.
1485 (structure Charc): New structure; define new type `Charc'.
1487 * char-1byte.h (Vcharset_control_1): New macro.
1488 (Vcharset_latin_iso8859_1): New macro.
1489 (DECODE_CHAR): New inline function.
1490 (encode_char_1): New inline function.
1491 (ENCODE_CHAR): New macro.
1492 (structure Charc): New structure; define new type `Charc'.
1494 * insdel.c (find_charsets_in_charc_string): New function; delete
1495 `find_charsets_in_emchar_string'.
1496 (charc_string_displayed_columns): New function; delete
1497 `emchar_string_displayed_columns'.
1498 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1499 `convert_bufbyte_string_into_emchar_dynarr'.
1500 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1501 `convert_charc_string_into_bufbyte_dynarr'.
1502 (convert_charc_string_into_malloced_string): New function; delete
1503 `convert_charc_string_into_malloced_string'.
1505 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1506 `find_charsets_in_emchar_string'.
1507 (charc_string_displayed_columns): New prototype; delete
1508 `emchar_string_displayed_columns'.
1509 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1510 `convert_charc_string_into_bufbyte_dynarr'.
1511 (convert_charc_string_into_malloced_string): New prototype; delete
1512 `convert_charc_string_into_malloced_string'.
1514 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1516 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1518 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1522 * char-ucs.h: Use <short> for <Charset_ID>.
1524 * mule-charset.h, char-1byte.h: Use <unsigned char> for
1527 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1529 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1532 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1534 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1536 (Qmorohashi_daikanwa): New variable.
1537 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1538 for `morohashi-daikanwa' attribute.
1539 (Fget_char_attribute): Likewise.
1540 (Fput_char_attribute): Likewise.
1541 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1542 has the same value of `ideograph-daikanwa'.
1543 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1544 (vars_of_mule_charset): Setup
1545 `Vcharacter_morohashi_daikanwa_table'.
1547 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1549 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1551 (add_charset_to_list_mapper): Add `key' instead of
1552 `XCHARSET_NAME (value)' to return aliases.
1554 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1556 * mule-charset.c (Vcharacter_ideographic_radical_table): New
1558 (Vcharacter_ideographic_strokes_table): New variable.
1559 (Qideographic_radical): New variable.
1560 (Qideographic_strokes): New variable.
1561 (Fchar_attribute_alist): Use
1562 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1563 attribute; use `Vcharacter_ideographic_strokes_table' for
1564 `ideographic-strokes' attribute.
1565 (Fget_char_attribute): Likewise.
1566 (Fput_char_attribute): Likewise.
1567 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1568 `ideographic-strokes'.
1569 (vars_of_mule_charset): Setup
1570 `Vcharacter_ideographic_radical_table' and
1571 `Vcharacter_ideographic_strokes_table'.
1573 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1576 (Qtotal_strokes): New variable.
1577 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1578 `total-strokes' attribute.
1579 (Fget_char_attribute): Likewise.
1580 (Fput_char_attribute): Likewise.
1581 (syms_of_mule_charset): Add new symbol `total-strokes'.
1582 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1584 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1586 * mule-charset.c (Vcharacter_decomposition_table): New variable.
1587 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1589 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1590 `->decomposition' attribute.
1591 (Fput_char_attribute): Likewise.
1592 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1594 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596 * mule-charset.c (decoding_table_check_elements): New function.
1597 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1599 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601 * mule-charset.c (Fset_charset_mapping_table): Use
1602 `put_char_ccs_code_point'.
1604 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606 * mule-charset.c (decoding_table_put_char): New inline function.
1607 (put_char_ccs_code_point): Use `decoding_table_put_char'.
1609 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1611 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1612 (XCHARSET_BYTE_SIZE): New macro.
1613 (decoding_table_remove_char): New inline function.
1614 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1615 `decoding_table_remove_char'.
1616 (remove_char_ccs): Use `decoding_table_remove_char'.
1617 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1619 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1621 * mule-charset.c (Vcharacter_name_table): New variable.
1622 (Qname): New variable.
1623 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1625 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1626 `Vcharacter_name_table' for `name' attribute.
1627 (Fremove_char_attribute): Use function `remove_char_ccs'.
1628 (put_char_ccs_code_point): New function.
1629 (remove_char_ccs): New function.
1630 (syms_of_mule_charset): Add new symbol `name'.
1631 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1633 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1635 * mule-charset.c (make_byte_table): Add new argument `older'.
1636 (make_char_id_table): Likewise.
1637 (copy_char_id_table): Comment out because it is not used.
1638 (put_char_id_table): Modify for `make_byte_table'.
1639 (Fput_char_attribute): Make encoding_table as older object;
1640 inherit older bit of `Vcharacter_composition_table'.
1641 (mark_charset): Don't mark `cs->encoding_table'.
1642 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1643 normal object; make `Vcharacter_composition_table' as an older
1644 object; delete staticpro for `Vcharacter_composition_table'; make
1645 `Vcharacter_variant_table' as a normal object.
1647 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1648 (mark_object): Don't check older object in UTF-2000.
1650 * lrecord.h (struct lrecord_header): Add new member `older' in
1652 (set_lheader_implementation): Setup `SLI_header->older' in
1654 (set_lheader_older_implementation): New macro in UTF-2000.
1655 (OLDER_RECORD_P): New macro in UTF-2000.
1656 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1657 (alloc_older_lcrecord): New prototype in UTF-2000.
1658 (alloc_older_lcrecord_type): New macro in UTF-2000.
1660 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1662 * mule-charset.c (byte_table_description): Use
1663 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1664 (char_id_table_description): Delete bogus `, 1'.
1665 (Fget_char_attribute): Refer encoding_table of each coded-charset
1666 to get value of coded-charset attribute of a character.
1667 (Fput_char_attribute): Use `make_older_vector' instead of
1668 `make_vector'; use encoding_table of each coded-charset to store
1669 value of coded-charset attribute of a character.
1670 (Fremove_char_attribute): Use encoding_table of each coded-charset
1671 to store value of coded-charset attribute of a character.
1672 (mark_charset): Mark `cs->encoding_table'; don't mark
1673 `cs->decoding_table'.
1674 (charset_description): Add description of new member
1676 (make_charset): Initialize `encoding_table'.
1678 * char-ucs.h (struct Lisp_Charset): Add new member
1680 (CHARSET_ENCODING_TABLE): New macro.
1681 (XCHARSET_ENCODING_TABLE): New macro.
1682 (charset_code_point): New implementation.
1683 (encode_char_1): Likewise.
1685 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1686 (disksave_object_finalization_1): Call finalizers of
1687 `all_older_lcrecords' in UTF-2000.
1688 (make_older_vector): New function in UTF-2000.
1689 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1692 * lisp.h (make_older_vector): New prototype in UTF-2000.
1694 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1696 * lrecord.h (enum lrecord_type): Rename
1697 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1699 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1700 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1701 `get_char_code_table'.
1703 * mule-charset.c (mark_char_id_table): Renamed from
1704 `mark_char_code_table'.
1705 (char_id_table_equal): Renamed from `char_code_table_equal'.
1706 (char_id_table_hash): Renamed from `char_code_table_hash'.
1707 (make_char_id_table): Renamed from `make_char_code_table'.
1708 (copy_char_id_table): Renamed from `copy_char_code_table'.
1709 (get_char_id_table): Renamed from `get_char_code_table'.
1710 (put_char_id_table): Renamed from `put_char_code_table'.
1711 (to_char_id): Renamed from `to_char_code'.
1713 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1714 `Lisp_Char_Code_Table'.
1715 (char_id_table): Renamed from `char_code_table'.
1716 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1717 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1718 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1719 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1720 (get_char_id_table): Renamed from `get_char_code_table'.
1722 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1724 * lrecord.h (enum lrecord_type): Rename
1725 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1727 * mule-charset.c (mark_byte_table): Renamed from
1728 `mark_char_byte_table'.
1729 (byte_table_equal): Renamed from `char_byte_table_equal'.
1730 (byte_table_hash): Renamed from `byte_table_hash'.
1731 (make_byte_table): Renamed from `make_byte_table'.
1732 (copy_byte_table): Renamed from `copy_char_byte_table'.
1734 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1735 `Lisp_Char_Byte_Table'.
1736 (byte_table): Renamed from `char_byte_table'.
1737 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1738 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1739 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1740 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1742 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1744 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1745 (dfc_convert_to_internal_format): Likewise.
1747 * text-coding.c (Fcoding_system_canonical_name_p): New function.
1748 * text-coding.c (Fcoding_system_alias_p): New function.
1749 * text-coding.c (Fcoding_system_aliasee): New function.
1750 * text-coding.c (append_suffix_to_symbol): New function.
1751 * text-coding.c (dangling_coding_system_alias_p): New function.
1752 * text-coding.c (Ffind_coding_system):
1753 * text-coding.c (Fcopy_coding_system):
1754 * text-coding.c (encode_coding_no_conversion):
1755 * text-coding.c (syms_of_file_coding):
1756 * text-coding.c (vars_of_file_coding):
1757 Rewrite coding system alias code.
1758 Allow nested aliases, like symbolic links.
1759 Allow redefinition of coding system aliases.
1760 Prevent existence of dangling coding system aliases.
1761 Eliminate convert_to_external_format.
1762 Eliminate convert_to_internal_format.
1764 * text-coding.c: Change enum eol_type to eol_type_t.
1766 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1768 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1769 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1771 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1772 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1774 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1776 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1777 `ideograph-daikanwa'.
1779 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1780 (Vcharset_ucs_bmp): Likewise.
1781 (Vcharset_mojikyo): Add new extern variable definition.
1782 (Vcharset_latin_iso8859_2): Deleted because it is not used.
1783 (Vcharset_latin_iso8859_3): Likewise.
1784 (Vcharset_latin_iso8859_4): Likewise.
1785 (Vcharset_latin_iso8859_9): Likewise.
1786 (Vcharset_latin_viscii_lower): Likewise.
1787 (Vcharset_latin_viscii_upper): Likewise.
1788 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1789 `mojikyo' code-point is used to decode.
1790 (encode_char_2): New function [to convert `mojikyo' code-point to
1791 Mojikyo font encoding].
1792 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1793 (breakup_char_1): Likewise.
1794 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1796 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798 * text-coding.c (Fmake_coding_system): Add document about
1799 `disable-composition' property.
1801 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1803 * text-coding.c (Qdisable_composition): New variable; delete
1805 (Fmake_coding_system): Add new property `disable-composite';
1806 delete property `composite'.
1807 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1808 instead of `!CODING_SYSTEM_COMPOSITE'.
1809 (syms_of_file_coding): Add new symbol `disable-composition';
1810 delete symbol `composite'.
1812 * file-coding.h (struct Lisp_Coding_System): Add
1813 `disable_composition'; delete `enable_composition'.
1814 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1815 `CODING_SYSTEM_COMPOSITE'.
1816 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1817 `XCODING_SYSTEM_COMPOSITE'.
1819 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1821 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1824 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1826 * text-coding.c (Qcomposite): New variable.
1827 (Fmake_coding_system): Add new property `composite'.
1828 (struct decoding_stream): Add `combined_char_count',
1829 `combined_chars' and `combining_table' in UTF-2000.
1830 (COMPOSE_FLUSH_CHARS): New macro.
1831 (COMPOSE_ADD_CHAR): New macro.
1832 (reset_decoding_stream): Reset `str->combined_char_count' and
1833 `str->combining_table' in UTF-2000.
1834 (decode_coding_iso2022): Modify for character-decomposition.
1835 (syms_of_file_coding): Add new symbol `composite'.
1837 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1839 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1840 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1841 of `Vcharacter_composition_table' if `->decomposition' property
1843 (Qlatin_tcvn5712): New variable.
1844 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1845 (complex_vars_of_mule_charset): Add new coded-charset
1848 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1850 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852 * file-coding.h (struct Lisp_Coding_System): Add
1853 `enable_composition'.
1854 (CODING_SYSTEM_COMPOSITE): New macro.
1855 (XCODING_SYSTEM_COMPOSITE): New macro.
1857 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
1859 * mule-canna.c (c2mu): Fix problem with UTF-2000.
1861 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
1863 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1864 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1866 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
1868 * mule-charset.c (Vcharset_mojikyo): New variable.
1869 (Fdefine_char): Don't use coded-charset which does not have
1870 non-builtin character range to allocate character-id.
1871 (Qmojikyo): New variable.
1872 (syms_of_mule_charset): Add new symbol `mojikyo'.
1873 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1875 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1876 (LEADING_BYTE_MOJIKYO): New macro.
1877 (MIN_CHAR_MOJIKYO): New macro.
1878 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1879 (MAX_CHAR_MOJIKYO): New macro.
1881 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
1883 * mule-charset.c (remove_char_attribute): Fixed.
1885 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
1887 * mule-charset.c (remove_char_attribute): New function.
1888 (Fremove_char_attribute): New function.
1889 (encode_builtin_char_1): Comment out builtin-support for
1890 greek-iso8859-7 and cyrillic-iso8859-5.
1891 (Fdecode_char): Check `code' is an integer.
1892 (syms_of_mule_charset): Add `remove-char-attribute'.
1893 (MIN_CHAR_GREEK): Deleted.
1894 (MAX_CHAR_GREEK): Likewise.
1895 (MIN_CHAR_CYRILLIC): Likewise.
1896 (MAX_CHAR_CYRILLIC): Likewise.
1897 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1898 MAX_CHAR_GREEK for `greek-iso8859-7'.
1900 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1901 (MAX_CHAR_GREEK): Likewise.
1902 (MIN_CHAR_CYRILLIC): Likewise.
1903 (MAX_CHAR_CYRILLIC): Likewise.
1905 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
1907 * mule-charset.c (Fdefine_char): Fix problem when new code-point
1908 format is used without `ucs' property.
1909 (Fdecode_char): Fix problem with GR representation.
1910 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1911 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1913 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1915 * mule-charset.c (make_builtin_char): New function.
1916 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1917 (Fset_charset_mapping_table): Modify for new representation of
1919 (Fdecode_char): New function.
1920 (syms_of_mule_charset): Add new builtin function `decode-char' in
1923 * char-ucs.h (make_builtin_char): New prototype.
1924 (DECODE_CHAR): New inline function.
1925 (MAKE_CHAR): Use `DECODE_CHAR'.
1927 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
1929 * text-coding.c (parse_charset_conversion_specs): Use
1930 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1932 (iso2022_designate): Likewise.
1934 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1935 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1937 * mule-charset.c (Vcharset_ucs): New variable.
1938 (print_charset): Change design; use `CHARSET_CHARS' and
1939 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1940 (make_charset): Change signature to specify `chars' and
1941 `dimension' instead of `type'.
1942 (range_charset_code_point): Modify for 256^n-set.
1943 (encode_builtin_char_1): Encode as `ucs' in default.
1944 (Fmake_charset): Modify for `make_charset'.
1945 (Fmake_reverse_direction_charset): Likewise.
1946 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1948 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1951 * char-ucs.h (Vcharset_ucs): New variable.
1952 (LEADING_BYTE_UCS): New macro.
1953 (struct Lisp_Charset): Delete `type'; change type of `dimension'
1954 and `chars' to `unsigned short' from `unsigned int'.
1955 (CHARSET_TYPE): Deleted.
1956 (XCHARSET_TYPE): Deleted.
1958 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
1960 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1962 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1963 (ENCODE_CHAR): New macro.
1965 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1967 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1968 to 0.14 (Kawachi-Katakami).
1970 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1972 * text-coding.c (char_encode_shift_jis): Modify for
1973 `charset_code_point'.
1974 (char_encode_iso2022): Likewise.
1976 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1977 (integer) instead of list of <Lisp_Object>s (integers) as the
1978 format of code-point of a coded-charset.
1979 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1980 (encode_builtin_char_1): New function; delete
1981 `split_builtin_char'.
1982 (charset_code_point): Return <int> instead of <Lisp_Object>.
1983 (Fsplit_char): Don't use `SPLIT_CHAR'.
1985 * char-ucs.h (encode_builtin_char_1): New prototype; delete
1986 prototype for `split_builtin_char'.
1987 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1988 (charset_code_point): Likewise.
1989 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1990 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1992 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
1994 * mule-charset.c (complex_vars_of_mule_charset): Don't define
1995 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1997 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1999 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2001 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2002 (MAX_CHAR_OBS_94x94): Deleted.
2004 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2006 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2008 * char-ucs.h (MAX_CHAR_BMP): New macro.
2010 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2012 * text-coding.c: Sync with r21-2-24.
2014 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2016 * file-coding.c: Modify for UTF-2000.
2018 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2020 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2023 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2025 * mule-charset.c (split_builtin_char): Delete builtin support for
2026 `katakana-jisx0201'.
2027 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2028 BMP area in builtin representation.
2030 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2031 `Vcharset_katakana_jisx0201'.
2033 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2035 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2036 (Qisolated): New variable.
2037 (Qinitial): New variable.
2038 (Qmedial): New variable.
2039 (Qfinal): New variable.
2040 (Qvertical): New variable.
2041 (Qsmall): New variable.
2042 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2043 `Qvertical' and `Qsmall'.
2044 (Qmojikyo_pj_[1 .. 21]): New variable.
2045 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2046 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2047 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2050 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2052 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2053 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2054 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2056 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2058 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2059 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2061 (Qjapanese_jisx0208_1990): New variable.
2062 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2063 (complex_vars_of_mule_charset): Add new coded-charset
2064 `japanese-jisx0208-1990'.
2066 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2067 (MIN_CHAR_JIS_X0208_1990): New macro.
2068 (MAX_CHAR_JIS_X0208_1990): New macro.
2070 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2072 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2073 coded-charset is not found.
2075 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2077 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2078 (Fdefine_char): Use `Fmake_char'.
2080 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2082 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2083 (Vcharset_hiragana_jisx0208): Deleted.
2084 (Vcharset_katakana_jisx0208): Deleted.
2085 (Qideograph_daikanwa): New variable.
2086 (Qhiragana_jisx0208): Deleted.
2087 (Qkatakana_jisx0208): Deleted.
2088 (split_builtin_char): Split `ideograph-daikanwa'.
2089 (Fsplit_char): New implementation for UTF-2000.
2090 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2091 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2092 (complex_vars_of_mule_charset): Add new coded-charset
2093 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2094 `katakana-jisx0208'.
2096 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2097 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2098 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2099 (MIN_CHAR_DAIKANWA): New macro.
2100 (MAX_CHAR_DAIKANWA): New macro.
2102 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2104 * data.c (Fstring_to_number): Don't recognize floating point if
2107 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2109 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2111 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2113 * mule-charset.c (Qsquare): New variable.
2114 (to_char_code): Add `Qsquare'.
2115 (syms_of_mule_charset): Add new symbol `square'.
2117 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2119 * mule-charset.c (Qcircle): New variable.
2120 (to_char_code): Add `Qcircle'.
2121 (syms_of_mule_charset): Add new symbol `circle'.
2123 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2125 * mule-charset.c (Qfont): New variable.
2126 (to_char_code): Add `Qfont'.
2127 (syms_of_mule_charset): Add new symbol `font'.
2129 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2131 * mule-charset.c (Qsub): New variable.
2132 (to_char_code): Add `Qsub'.
2133 (syms_of_mule_charset): Add new symbol `sub'.
2135 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2137 * mule-charset.c (Fput_char_attribute): Convert each element of
2138 VALUE to GL position if ATTRIBUTE is a GR-set,
2140 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2142 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2143 coded-charset is a GR-set.
2145 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2147 * mule-charset.c (Fput_char_attribute): Check each element of
2148 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2150 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2152 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2154 (Qethiopic_ucs): New variable in UTF-2000.
2155 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2156 (complex_vars_of_mule_charset): Add new coded-charset
2157 `ethiopic-ucs' in UTF-2000.
2159 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2160 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2162 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2164 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2166 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2168 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2171 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2173 * mule-charset.c (Vcharacter_variant_table): New variable.
2174 (Q_ucs): New variable.
2175 (Fchar_variants): New function.
2176 (Fput_char_attribute): Register `->ucs' value to
2177 `Vcharacter_variant_table'.
2178 (syms_of_mule_charset): Add new function `char-variants' and new
2180 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2182 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2184 * mule-charset.c (get_char_code_table): Allow negative character
2186 (put_char_code_table): Likewise.
2187 (Vcharacter_composition_table): New variable.
2188 (Q_decomposition): New variable.
2189 (Qwide): New variable.
2190 (Qnarrow): New variable.
2191 (Qcompat): New variable.
2192 (QnoBreak): New variable.
2193 (Qsuper): New variable.
2194 (Qfraction): New variable.
2195 (to_char_code): New function.
2196 (Fget_composite_char): New function.
2197 (Fput_char_attribute): Register `->decomposition' value to
2198 `Vcharacter_composition_table'.
2199 (syms_of_mule_charset): Add new function `get-composite-char', new
2200 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2201 `super' and `fraction'.
2202 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2204 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2206 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2207 character; copy the return value.
2209 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2211 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2213 * mule-charset.c (range_charset_code_point): Must use make_int.
2214 (split_builtin_char): New function.
2216 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2218 * mule-charset.c (char_byte_table): Change name from
2219 "char-code-table" to "char-byte-table".
2220 (mark_char_code_table): New function.
2221 (char_code_table_equal): New function.
2222 (char_code_table_hash): New function.
2223 (char_code_table_description): New constant.
2224 (char_code_table): New type.
2225 (make_char_code_table): New function.
2226 (copy_char_code_table): New function.
2227 (get_char_code_table): Modify for `char_code_table' type.
2228 (put_char_code_table): Likewise.
2229 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2232 * char-ucs.h (char_code_table): New type.
2233 (XCHAR_CODE_TABLE): New macro.
2234 (XSETCHAR_CODE_TABLE): New macro.
2235 (CHAR_CODE_TABLE_P): New macro.
2236 (GC_CHAR_CODE_TABLE_P): New macro.
2237 (struct Lisp_Char_Code_Table): New structure.
2239 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2241 * mule-charset.c (Fmake_charset): Setup byte_offset for
2244 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2246 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2249 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2251 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2254 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2256 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2257 charset, it is regarded as a charset.
2258 (put_char_attribute): New function in UTF-2000.
2259 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2260 charset, mapping-table of the charset is modified.
2261 (Fdefine_char): New function in UTF-2000.
2262 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2263 `Fput_char_attribute'.
2264 (syms_of_mule_charset): Add new function `define-char' and new
2265 symbol `ucs' in UTF-2000.
2266 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2268 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2270 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2271 non-UTF-2000 configuration.
2273 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2275 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2276 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2278 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2280 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2281 (Fset_charset_mapping_table): Likewise.
2283 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2284 (CHARSET_ENCODING_TABLE): Delete.
2285 (XCHARSET_ENCODING_TABLE): Delete.
2286 (charset_code_point): New interface.
2288 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2290 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2291 instead of `charset_get_byte1' and `charset_get_byte2'.
2293 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2294 (charset_get_byte2): Deleted.
2296 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2298 * char-ucs.h (SPLIT_CHAR): New inline function.
2299 (breakup_char_1): Use `SPLIT_CHAR'.
2301 * mule-charset.c (range_charset_code_point): New function.
2302 (charset_code_point): New function.
2304 * char-ucs.h (range_charset_code_point): New interface.
2305 (breakup_char_1): Use `range_charset_code_point'.
2307 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2309 * mule-charset.c (Fmake_charset): Delete unused local variable
2312 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2313 (breakup_char_1): Find a charset and code-point in
2314 `Vcharacter_attribute_table'.
2316 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2318 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2321 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2323 * mule-charset.c (Vcharacter_attribute_table): New variable.
2324 (Fchar_attribute_alist): New function.
2325 (Fget_char_attribute): New function.
2326 (Fput_char_attribute): New function.
2327 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2329 (syms_of_mule_charset): Add new function `char-attribute-alist',
2330 `get-char-attribute' and `put-char-attribute'.
2331 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2333 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2335 * mule-charset.c (Fmake_charset): Just use
2336 `get_unallocated_leading_byte'.
2338 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2339 sets; don't use final-byte based number for private sets.
2341 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2343 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2346 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2348 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2351 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2353 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2354 of `CHAR_LEADING_BYTE' in UTF-2000.
2356 * insdel.c (find_charsets_in_bufbyte_string): Use
2357 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2358 (find_charsets_in_emchar_string): Likewise.
2360 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2361 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2363 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2364 (CHAR_CHARSET_ID): New macro.
2366 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2368 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2369 charset-id - MIN_LEADING_BYTE.
2370 (put_char_table): Likewise.
2372 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2374 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2375 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2376 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2377 (CHARSET_ID_OFFSET): New macro.
2378 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2379 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2380 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2381 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2383 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2385 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2386 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2387 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2388 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2389 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2391 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2393 * mule-charset.c (next_allocated_leading_byte): New variable in
2395 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2396 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2397 (get_unallocated_leading_byte): Simply use
2398 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2399 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2402 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2403 (MAX_LEADING_BYTE_PRIVATE): New macro.
2404 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2405 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2407 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2409 * mule-charset.c (Fmake_charset): Allocate final-byte based
2410 charset-id for 94-set, 96-set and 94x94-set.
2412 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2414 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2416 (Fmake_charset): Likewise.
2417 (complex_vars_of_mule_charset): Modify the font registry of
2418 `ucs-bmp' not to match `Ethiopic-Unicode'.
2420 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2422 * mule-charset.c (complex_vars_of_mule_charset): Add font
2423 registory of `ucs-bmp'.
2425 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2427 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2428 coded-charsets in `default-coded-charset-priority-list' when
2429 breaking up a character.
2431 * mule-charset.c (Vcharset_latin_viscii): New variable.
2432 (Qlatin_viscii): New variable.
2433 (make_charset): Don't use `decoding_table'.
2434 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2436 (Fset_charset_mapping_table): New implementation.
2437 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2438 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2439 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2440 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2441 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2442 charset `latin_viscii'.
2444 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2445 (CHARSET_TYPE_94X94): Change to 1 from 2.
2446 (CHARSET_TYPE_96): Change to 2 from 1.
2447 (CHARSET_TYPE_128): New macro.
2448 (CHARSET_TYPE_128X128): Change to 5 from 4.
2449 (CHARSET_TYPE_256): New macro.
2450 (CHARSET_TYPE_256X256): Change to 7 from 5.
2451 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2453 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2455 * text-coding.c (char_encode_shift_jis): Refer
2456 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2457 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2459 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2460 (char_byte_table_equal): New function in UTF-2000.
2461 (char_byte_table_hash): New function in UTF-2000.
2462 (char_byte_table_description): New constant in UTF-2000.
2463 (char_byte_table): New type in UTF-2000.
2464 (make_char_byte_table): New function in UTF-2000.
2465 (copy_char_byte_table): New function in UTF-2000.
2466 (make_char_code_table): New macro in UTF-2000.
2467 (get_char_code_table): New function in UTF-2000.
2468 (put_char_code_table): New function in UTF-2000.
2469 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2470 (charset_description): Add setting in UTF-2000.
2471 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2472 `CHARSET_TO_BYTE1_TABLE(cs)'.
2473 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2474 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2475 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2476 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2477 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2478 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2479 `CHARSET_TO_BYTE2_TABLE(cs)'.
2481 * char-ucs.h (char_byte_table): New type.
2482 (XCHAR_BYTE_TABLE): New macro.
2483 (XSETCHAR_BYTE_TABLE): New macro.
2484 (CHAR_BYTE_TABLE_P): New macro.
2485 (GC_CHAR_BYTE_TABLE_P): New macro.
2486 (struct Lisp_Char_Byte_Table): New structure.
2487 (get_char_code_table): New interface.
2488 (Emchar_to_byte_table): Deleted.
2489 (get_byte_from_character_table): Deleted.
2490 (struct Lisp_Charset): Add `encoding_table'; delete
2491 `to_byte1_table' and `to_byte2_table'.
2492 (CHARSET_ENCODING_TABLE): New macro.
2493 (CHARSET_TO_BYTE1_TABLE): Deleted.
2494 (CHARSET_TO_BYTE2_TABLE): Deleted.
2495 (XCHARSET_ENCODING_TABLE): New macro.
2496 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2497 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2499 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2501 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2502 `vietnamese-viscii-*'.
2504 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2506 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2507 (Qvietnamese_viscii_upper): New variable.
2508 (Fdefine_charset_alias): New function.
2509 (syms_of_mule_charset): Add new function `define-charset-alias'.
2510 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2511 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2514 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2516 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2517 (MAX_CHAR_OBS_94x94): New macro.
2518 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2521 * mule-charset.c (put_byte_from_character_table): Change unit size
2523 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2525 (Fmake_reverse_direction_charset): Modify dummy argument of
2526 `make_charset' for non-UTF-2000 environment.
2528 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2530 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2532 * mule-charset.c (destroy_byte_from_character_table): New macro.
2533 (latin_jisx0201_to_ucs): Deleted.
2534 (latin_iso8859_2_to_ucs): Deleted.
2535 (latin_iso8859_3_to_ucs): Deleted.
2536 (latin_iso8859_4_to_ucs): Deleted.
2537 (latin_iso8859_9_to_ucs): Deleted.
2538 (latin_viscii_lower_to_ucs): Deleted.
2539 (latin_viscii_upper_to_ucs): Deleted.
2540 (mark_charset): Mark `cs->decoding_table'.
2541 (Fcharset_mapping_table): Fix DOC-string.
2542 (Fset_charset_mapping_table): New function.
2543 (syms_of_mule_charset): Add nwe function
2544 `set-charset-mapping-table'.
2545 (complex_vars_of_mule_charset): Don't setup and use
2548 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
2550 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2553 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
2555 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2556 (Vcharset_katakana_jisx0208): New variable.
2557 (Qhiragana_jisx0208): New variable.
2558 (Qkatakana_jisx0208): New variable.
2559 (make_charset): Add new argument `byte_offset'.
2560 (charset_get_byte1): Modify for new coded-charset definition; use
2561 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2562 `XCHARSET_BYTE_OFFSET'.
2563 (Fmake_charset): Modify for `make_charset'.
2564 (Fmake_reverse_direction_charset): Likewise.
2565 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2566 `katakana-jisx0208'.
2567 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2568 `.' in font registry of charset `katakana-jisx0201',
2569 `latin-jisx0201', `vietnamese-viscii-lower' and
2570 `vietnamese-viscii-upper'; modify DOC-string of charset
2571 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2572 registry of charset `japanese-jisx0208' not to use font for JIS
2573 X0208:1990; add new charset `hiragana-jisx0208' and
2574 `katakana-jisx0208'.
2576 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2577 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2578 (struct Lisp_Charset): Add `byte_offset'.
2579 (CHARSET_BYTE_OFFSET): New macro.
2580 (XCHARSET_UCS_MIN): New macro.
2581 (XCHARSET_UCS_MAX): New macro.
2582 (XCHARSET_CODE_OFFSET): New macro.
2583 (XCHARSET_BYTE_OFFSET): New macro.
2584 (MIN_CHAR_HIRAGANA): New macro.
2585 (MAX_CHAR_HIRAGANA): New macro.
2586 (MIN_CHAR_KATAKANA): New macro.
2587 (MAX_CHAR_KATAKANA): New macro.
2588 (MAKE_CHAR): Modify for new coded-charset definition; use
2589 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2590 `XCHARSET_BYTE_OFFSET'.
2592 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2594 * mule-charset.c (CHAR96): Deleted.
2595 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2597 (latin_iso8859_2_to_ucs): Likewise.
2598 (latin_iso8859_3_to_ucs): Likewise.
2599 (latin_iso8859_4_to_ucs): Likewise.
2600 (latin_iso8859_9_to_ucs): Likewise.
2601 (latin_viscii_lower_to_ucs): Likewise.
2602 (latin_viscii_upper_to_ucs): Likewise.
2603 (latin_tcvn5712_to_ucs): Commented out.
2604 (make_charset): Change type of argument `decoding_table' from
2605 <Emchar*> to <Lisp_Object> [vector of characters].
2606 (Fmake_charset): Modify for `make_charset'.
2607 (Fmake_reverse_direction_charset): Likewise.
2608 (Fcharset_mapping_table): New function in UTF-2000.
2609 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2611 (complex_vars_of_mule_charset): Modify for type change of
2612 `*_to_ucs'; modify for `make_charset'.
2614 * char-ucs.h (struct Lisp_Charset): Change type of
2615 `decoding_table' from <Emchar*> to <Lisp_Object>.
2616 (MAKE_CHAR): Modify for new specification of `decoding_table'.
2618 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2620 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2621 error with non-UTF-2000-Mule.
2623 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
2625 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2627 (Vcharset_chinese_cns11643_4): Likewise.
2628 (Vcharset_chinese_cns11643_5): Likewise.
2629 (Vcharset_chinese_cns11643_6): Likewise.
2630 (Vcharset_chinese_cns11643_7): Likewise.
2631 (Qchinese_cns11643_3): Likewise.
2632 (Qchinese_cns11643_4): Likewise.
2633 (Qchinese_cns11643_5): Likewise.
2634 (Qchinese_cns11643_6): Likewise.
2635 (Qchinese_cns11643_7): Likewise.
2636 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2637 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2638 and `chinese-cns11643-7' to lisp/mule/chinese.el.
2639 (complex_vars_of_mule_charset): Likewise.
2641 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2643 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2645 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2646 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2648 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2650 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2652 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2653 (breakup_char_1): Likewise.
2655 * text-coding.c (char_encode_iso2022): Keep designated charsets if
2656 one of them includes the specified character.
2658 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2660 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2662 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2664 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2666 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2668 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2669 definition for non-UTF-2000 Mule.
2670 (latin_iso8859_3_to_ucs): Likewise.
2671 (latin_iso8859_4_to_ucs): Likewise.
2672 (latin_iso8859_9_to_ucs): Likewise.
2673 (latin_jisx0201_to_ucs): Likewise.
2674 (MIN_CHAR_THAI): Likewise.
2675 (MAX_CHAR_THAI): Likewise.
2676 (MIN_CHAR_GREEK): Likewise.
2677 (MAX_CHAR_GREEK): Likewise.
2678 (MIN_CHAR_HEBREW): Likewise.
2679 (MAX_CHAR_HEBREW): Likewise.
2680 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2681 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2682 (MIN_CHAR_CYRILLIC): Likewise.
2683 (MAX_CHAR_CYRILLIC): Likewise.
2685 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2687 * char-ucs.h (breakup_char_1): Use
2688 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2689 thai-tis620 and katakana-jisx0201 area.
2691 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2693 * char-ucs.h (breakup_char_1): Use
2694 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2697 * text-coding.c (reset_encoding_stream): Fixed.
2698 (char_encode_ucs4): Delete `& 255'.
2700 * char-ucs.h (breakup_char_1): Use
2701 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2703 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2705 * file-coding.c (Fmake_coding_system): Don't set up
2706 `codesys->fixed.size'.
2707 (encode_coding_no_conversion): Don't refer
2708 `str->codesys->fixed.size'.
2710 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2712 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2713 (latin_a_char_to_byte1): Deleted.
2714 (latin_a_char_to_byte2): Deleted.
2716 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2718 * mule-charset.c (make_charset): Add new argument `ucs_min',
2719 `ucs_max' and `code_offset'.
2720 (charset_get_byte1): New implementation [delete specific charset
2721 depended implementations].
2722 (Fmake_charset): Modify for `make_charset'.
2723 (Fmake_reverse_direction_charset): Likewise.
2724 (complex_vars_of_mule_charset): Likewise.
2726 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2728 (CHARSET_UCS_MIN): New macro.
2729 (CHARSET_UCS_MAX): New macro.
2730 (CHARSET_CODE_OFFSET): New macro.
2731 (MAKE_CHAR): Delete charset depended definitions [except
2734 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2736 * char-ucs.h (breakup_char_1): Use
2737 `Vdefault_coded_charset_priority_list' for C0-Controls,
2738 Basic-Latin, C1-Controls and Latin-1-Supplement area.
2740 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2742 * char-ucs.h (charset_get_byte1): New function.
2743 (XCHARSET_GET_BYTE1): Deleted.
2744 (charset_get_byte2): New function.
2745 (XCHARSET_GET_BYTE2): Deleted.
2746 (Vdefault_coded_charset_priority_list): New external variable.
2747 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2748 `Vdefault_preferred_coded_charset_list'.
2750 * mule-charset.c (charset_get_byte1): New function.
2751 (charset_get_byte2): New function.
2752 (Vdefault_coded_charset_priority_list): New variable.
2753 (vars_of_mule_charset): Add new variable
2754 `default-coded-charset-priority-list'.
2756 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2758 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2759 (XCHARSET_GET_BYTE2): New inline function.
2760 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2761 `XCHARSET_GET_BYTE2'.
2763 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2765 * mule-charset.c (make_charset): Initialize
2766 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2767 NULL if table is not defined.
2769 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2771 * text-coding.c (char_encode_shift_jis): Use
2772 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2773 `ucs_to_latin_jisx0201'.
2775 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2776 (ucs_to_latin_iso8859_2): Deleted.
2777 (ucs_to_latin_iso8859_3): Deleted.
2778 (ucs_to_latin_iso8859_4): Deleted.
2779 (ucs_to_latin_iso8859_9): Deleted.
2780 (ucs_to_latin_viscii_lower): Deleted.
2781 (ucs_to_latin_viscii_upper): Deleted.
2782 (ucs_to_latin_tcvn5712): Deleted.
2783 (make_charset): Add new argument `decoding_table'; set up
2784 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2785 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2786 `decoding_table' is defined in UTF-2000.
2787 (Fmake_charset): Modify for `make_charset'.
2788 (Fmake_reverse_direction_charset): Likewise.
2789 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2790 and `GENERATE_96_SET'.
2792 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2793 (ucs_to_latin_jisx0201): Deleted.
2794 (latin_iso8859_2_to_ucs): Deleted.
2795 (ucs_to_latin_iso8859_2): Deleted.
2796 (latin_iso8859_3_to_ucs): Deleted.
2797 (ucs_to_latin_iso8859_3): Deleted.
2798 (latin_iso8859_4_to_ucs): Deleted.
2799 (ucs_to_latin_iso8859_4): Deleted.
2800 (latin_iso8859_9_to_ucs): Deleted.
2801 (ucs_to_latin_iso8859_9): Deleted.
2802 (latin_viscii_lower_to_ucs): Deleted.
2803 (ucs_to_latin_viscii_lower): Deleted.
2804 (latin_viscii_upper_to_ucs): Deleted.
2805 (ucs_to_latin_viscii_upper): Deleted.
2806 (struct Lisp_Charset): Renamed `encoding_table' to
2807 `to_byte1_table'; add `to_byte2_table'.
2808 (CHARSET_DECODING_TABLE): New macro.
2809 (CHARSET_TO_BYTE1_TABLE): New macro.
2810 (CHARSET_TO_BYTE2_TABLE): New macro.
2811 (XCHARSET_DECODING_TABLE): New macro.
2812 (XCHARSET_TO_BYTE1_TABLE): New macro.
2813 (XCHARSET_TO_BYTE2_TABLE): New macro.
2814 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2816 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2817 don't use `ucs_to_*' tables.
2819 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2821 * text-coding.c (Fmake_coding_system): Don't set up
2822 `codesys->fixed.size'.
2823 (encode_coding_no_conversion): Use `if' instead of `switch'.
2825 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2827 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2829 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2830 (Fmake_charset): Modify for `make_charset'.
2831 (Fmake_reverse_direction_charset): Likewise.
2832 (complex_vars_of_mule_charset): Likewise.
2834 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2836 * text-coding.c (char_encode_shift_jis): Use table
2837 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2839 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2841 * text-coding.c (text_encode_generic): Use `if' instead of
2843 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2846 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2848 * text-coding.c (encode_coding_sjis): Deleted.
2849 (char_encode_shift_jis): New function.
2850 (char_finish_shift_jis): New function.
2851 (reset_encoding_stream): Set up `encode_char' and `finish' for
2852 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2853 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2854 (char_encode_utf8): Treat `eol_type'.
2856 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2858 * file-coding.c (decode_coding_iso2022): Use
2859 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2861 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2863 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2866 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2868 * char-lb.h (CHAR_COLUMNS): New macro.
2870 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2872 * text-coding.c (char_encode_ucs4): New function.
2873 (char_finish_ucs4): New function.
2874 (encode_coding_ucs4): Deleted.
2875 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2876 (text_encode_generic): Delete local variable `charset' and `half'.
2877 (ucs_to_mule_table): Deleted.
2878 (mule_to_ucs_table): Deleted.
2879 (Fset_ucs_char): Deleted.
2880 (ucs_to_char): Deleted.
2881 (Fucs_char): Deleted.
2882 (Fset_char_ucs): Deleted.
2883 (Fchar_ucs): Deleted.
2884 (decode_ucs4): Deleted.
2885 (mule_char_to_ucs4): Deleted.
2886 (encode_ucs4): Deleted.
2887 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2888 (decode_coding_utf8): Likewise.
2889 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2890 (char_encode_iso2022): Fixed.
2891 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2892 `Fset_char_ucs' and `Fchar_ucs'.
2893 (complex_vars_of_file_coding): Don't initialize
2894 `ucs_to_mule_table'.
2896 * objects-tty.c (tty_initialize_font_instance): Don't use
2899 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2902 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2903 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2905 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2906 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2907 (emchar_string_displayed_columns): Likewise.
2909 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2910 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2911 (string_column_at_point): Likewise.
2912 (Fmove_to_column): Likewise.
2914 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2915 `encoding_table' and `decoding_table'.
2916 (CHARSET_REP_BYTES): Deleted.
2917 (XCHARSET_REP_BYTES): Deleted.
2918 (XCHARSET_COLUMNS): Deleted.
2919 (CHAR_COLUMNS): New macro.
2920 (lookup_composite_char): Deleted unconditionally.
2921 (composite_char_string): Likewise.
2923 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2925 * char-ucs.h (Emchar_to_byte_table): New type.
2926 (get_byte_from_character_table): New function interface.
2927 (Vcharset_latin_jisx0201): New variable.
2928 (latin_jisx0201_to_ucs): New variable.
2929 (ucs_to_latin_jisx0201): New variable.
2930 (Vcharset_latin_iso8859_2): New variable.
2931 (latin_iso8859_2_to_ucs): New variable.
2932 (ucs_to_latin_iso8859_2): New variable.
2933 (Vcharset_latin_iso8859_3): New variable.
2934 (latin_iso8859_3_to_ucs): New variable.
2935 (ucs_to_latin_iso8859_3): New variable.
2936 (Vcharset_latin_iso8859_4): New variable.
2937 (latin_iso8859_4_to_ucs): New variable.
2938 (ucs_to_latin_iso8859_4): New variable.
2939 (Vcharset_latin_iso8859_9): New variable.
2940 (latin_iso8859_9_to_ucs): New variable.
2941 (ucs_to_latin_iso8859_9): New variable.
2942 (Vcharset_latin_viscii_lower): New variable.
2943 (latin_viscii_lower_to_ucs): New variable.
2944 (ucs_to_latin_viscii_lower): New variable.
2945 (Vcharset_latin_viscii_upper): New variable.
2946 (latin_viscii_upper_to_ucs): New variable.
2947 (ucs_to_latin_viscii_upper): New variable.
2948 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2949 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2950 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2951 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2952 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2953 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2954 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2955 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2956 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2957 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2959 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2960 (Vcharset_latin_viscii_upper): New variable.
2961 (make_byte_from_character_table): New function.
2962 (put_byte_from_character_table): New function.
2963 (get_byte_from_character_table): New function.
2964 (CHAR96): New macro.
2965 (ucs_to_latin_jisx0201): New variable.
2966 (latin_jisx0201_to_ucs): New variable.
2967 (ucs_to_latin_iso8859_2): New variable.
2968 (latin_iso8859_2_to_ucs): New variable.
2969 (ucs_to_latin_iso8859_3): New variable.
2970 (latin_iso8859_3_to_ucs): New variable.
2971 (ucs_to_latin_iso8859_4): New variable.
2972 (latin_iso8859_4_to_ucs): New variable.
2973 (ucs_to_latin_iso8859_9): New variable.
2974 (latin_iso8859_9_to_ucs): New variable.
2975 (ucs_to_latin_viscii_lower): New variable.
2976 (latin_viscii_lower_to_ucs): New variable.
2977 (ucs_to_latin_viscii_upper): New variable.
2978 (latin_viscii_upper_to_ucs): New variable.
2979 (ucs_to_latin_tcvn5712): New variable.
2980 (latin_tcvn5712_to_ucs): New variable.
2981 (Qlatin_viscii_lower): New variable.
2982 (Qlatin_viscii_upper): New variable.
2983 (syms_of_mule_charset): Set up new symbol
2984 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2985 (complex_vars_of_mule_charset): Set up new charset
2986 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2987 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2988 `ucs_to_<CHARSET>' tables.
2990 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2992 * text-coding.c: New file.
2994 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2996 * mule-charset.c (Fmake_char): Fix problem of 256-set.
2998 * char-ucs.h (Vcharset_ucs_bmp): New variable.
2999 (MAKE_CHAR): Modify for `ucs-bmp'.
3000 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3001 non-MULE characters of BMP.
3003 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3005 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3008 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3011 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3012 - Include character.h for `CHAR_ASCII_P'.
3014 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3016 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3017 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3019 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3020 (BYTE_C0_P): Likewise.
3021 (BYTE_C1_P): Likewise.
3022 (Lstream_get_emchar_1): Likewise.
3023 (Lstream_fput_emchar): Likewise.
3024 (Lstream_funget_emchar): Likewise.
3025 (copy_internal_to_external): Likewise.
3026 (copy_external_to_internal): Likewise.
3028 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3029 (BYTE_C0_P): Likewise.
3030 (BYTE_C1_P): Likewise.
3031 (Lstream_get_emchar_1): Likewise.
3032 (Lstream_fput_emchar): Likewise.
3033 (Lstream_funget_emchar): Likewise.
3034 (copy_internal_to_external): Likewise.
3035 (copy_external_to_internal): Likewise.
3037 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3038 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3040 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3041 (BYTE_ASCII_P): Moved to mb-1byte.h.
3043 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3045 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3047 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3048 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3049 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3050 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3051 (VALIDATE_CHARPTR_FORWARD): Likewise.
3052 (simple_charptr_emchar): Moved to mb-multibyte.h.
3053 (simple_set_charptr_emchar): Likewise.
3054 (simple_charptr_copy_char): Likewise.
3055 (non_ascii_charptr_emchar): Likewise.
3056 (non_ascii_set_charptr_emchar): Likewise.
3057 (non_ascii_charptr_copy_char): Likewise.
3058 (charptr_emchar): Moved to mb-*byte.h.
3059 (set_charptr_emchar): Likewise.
3060 (charptr_copy_char): Likewise.
3062 * mb-1byte.h, mb-multibyte.h: New files.
3064 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3066 * mb-utf-8.h (MULTIBYTE): New macro.
3067 (MAX_EMCHAR_LEN): Moved from buffer.h.
3068 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3070 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3072 * mb-lb.h, multibyte.h: New files.
3074 * char-1byte.h (Charset_ID): Moved from buffer.h.
3075 (MIN_LEADING_BYTE): Likewise.
3076 (LEADING_BYTE_ASCII): Likewise.
3077 (NUM_LEADING_BYTES): Likewise.
3078 (CHARSETP): Likewise.
3079 (CHARSET_BY_LEADING_BYTE): Likewise.
3080 (XCHARSET_LEADING_BYTE): Likewise.
3081 (XCHARSET_GRAPHIC): Likewise.
3082 (XCHARSET_COLUMNS): Likewise.
3083 (XCHARSET_DIMENSION): Likewise.
3084 (CHAR_CHARSET): Likewise.
3085 (CHAR_LEADING_BYTE): Likewise.
3086 (BREAKUP_CHAR): Likewise.
3087 (Vcharset_ascii): Likewise.
3089 * buffer.h: Include multibyte.h unconditionally.
3090 (VALID_CHARPTR_P): Moved to multibyte.h.
3091 (ASSERT_VALID_CHARPTR): Likewise.
3092 (REAL_INC_CHARPTR): Likewise.
3093 (REAL_INC_CHARBYTIND): Likewise.
3094 (REAL_DEC_CHARPTR): Likewise.
3095 (INC_CHARPTR): Likewise.
3096 (INC_CHARBYTIND): Likewise.
3097 (DEC_CHARPTR): Likewise.
3098 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3099 (VALIDATE_CHARPTR_FORWARD): Likewise.
3100 (charptr_n_addr): Likewise.
3101 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3102 (simple_charptr_emchar): Moved to multibyte.h.
3103 (simple_set_charptr_emchar): Likewise.
3104 (simple_charptr_copy_char): Likewise.
3105 (non_ascii_charptr_emchar): Likewise.
3106 (non_ascii_set_charptr_emchar): Likewise.
3107 (non_ascii_charptr_copy_char): Likewise.
3108 (charptr_emchar): Likewise.
3109 (set_charptr_emchar): Likewise.
3110 (charptr_copy_char): Likewise.
3111 (charptr_emchar_n): Likewise.
3112 (Charset_ID): Moved to char-1byte.h.
3113 (Vcharset_ascii): Likewise.
3114 (CHAR_CHARSET): Likewise.
3115 (CHAR_LEADING_BYTE): Likewise.
3116 (LEADING_BYTE_ASCII): Likewise.
3117 (NUM_LEADING_BYTES): Likewise.
3118 (MIN_LEADING_BYTE): Likewise.
3119 (CHARSETP): Likewise.
3120 (CHARSET_BY_LEADING_BYTE): Likewise.
3121 (XCHARSET_LEADING_BYTE): Likewise.
3122 (XCHARSET_GRAPHIC): Likewise.
3123 (XCHARSET_COLUMNS): Likewise.
3124 (XCHARSET_DIMENSION): Likewise.
3125 (BREAKUP_CHAR): Likewise.
3127 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3129 * character.h: Add document about interface for characters.
3131 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3132 (MAKE_CHAR): Delete comment about
3133 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3134 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3135 (BREAKUP_CHAR): Modify name of arguments.
3136 (CHAR_CHARSET): Modify name of argument.
3138 * buffer.h: Delete document about Emchar accessors.
3140 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3142 * character.h (CHAR_INTP): Moved from buffer.h
3143 (CHAR_OR_CHAR_INTP): Likewise.
3144 (XCHAR_OR_CHAR_INT): Likewise.
3145 (CHECK_CHAR_COERCE_INT): Likewise.
3147 * buffer.h (CHAR_INTP): Moved to character.h
3148 (CHAR_OR_CHAR_INTP): Likewise.
3149 (XCHAR_OR_CHAR_INT): Likewise.
3150 (CHECK_CHAR_COERCE_INT): Likewise.
3152 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3155 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3156 - Include char-1byte.h, char-lb.h or char-ucs.h.
3158 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3160 * buffer.h: Include character unconditionally.
3161 (valid_char_p): Moved to char-*.h.
3162 (non_ascii_valid_char_p): Moved to char-lb.h.
3164 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3166 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3168 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3169 in UTF-2000 because it is not ported yet and not to use
3170 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3171 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3172 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3174 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3175 (CHAR_ASCII_P): Moved from character.h.
3177 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3178 (CHAR_ASCII_P): Likewise.
3179 (CHAR_FIELD1_MASK): Deleted.
3180 (CHAR_FIELD2_MASK): Deleted.
3181 (CHAR_FIELD3_MASK): Deleted.
3182 (MAX_CHAR_BASIC_LATIN): New macro.
3183 (CHAR_FIELD1): Deleted.
3184 (CHAR_FIELD2_INTERNAL): Deleted.
3185 (CHAR_FIELD3_INTERNAL): Deleted.
3186 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3187 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3188 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3189 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3190 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3191 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3192 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3193 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3194 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3195 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3196 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3197 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3198 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3199 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3200 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3201 (MIN_CHAR_COMPOSITION): Deleted.
3202 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3203 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3205 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3207 * buffer.h: Include mb-utf-8.h in UTF-2000.
3209 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3211 * mb-utf-8.h: New file.
3213 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3215 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3218 * mule-charset.h, buffer.h (Charset_ID): New type.
3220 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3222 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3223 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3224 instead of `MULE_CHAR_PRIVATE_OFFSET',
3225 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3226 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3227 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3229 * character.h (Vcharset_japanese_jisx0212): New variable
3232 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3234 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3235 (charset_by_attributes): Delete array about direction.
3236 (latin_a_char_to_charset): New variable in UTF-2000.
3237 (latin_a_char_to_byte1): New variable in UTF-2000.
3238 (latin_a_char_to_byte2): New variable in UTF-2000.
3239 (Qucs_bmp): New variable.
3240 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3242 (next_allocated_2_byte_leading_byte): Likewise.
3243 (non_ascii_set_charptr_emchar): Likewise.
3244 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3245 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3246 `charset_by_attributes'.
3247 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3248 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3249 and `CHARSET_BY_LEADING_BYTE'.
3250 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3251 `utf-2000-version' to `vars_of_mule_charset'.
3252 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3253 define `leading-code-private-11' in UTF-2000; move setting of
3254 `utf-2000-version' from `syms_of_mule_charset'.
3255 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3258 * character.h (Charset_ID): New type.
3259 (LEADING_BYTE_UCS_BMP): New macro.
3260 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3261 (CHARSET_ID_OFFSET_94): New macro.
3262 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3263 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3264 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3266 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3267 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3268 (CHARSET_ID_OFFSET_96): New macro.
3269 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3270 CHARSET_ID_OFFSET_96 and final-byte.
3271 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3272 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3273 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3274 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3275 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3276 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3277 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3278 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3279 (LEADING_BYTE_THAI_TIS620): Likewise.
3280 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3281 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3282 (CHARSET_ID_OFFSET_94x94): New macro.
3283 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3284 CHARSET_ID_OFFSET_94x94 and final-byte.
3285 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3286 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3287 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3288 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3289 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3290 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3291 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3292 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3293 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3294 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3295 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3296 (CHARSET_TYPE_128X128): New macro.
3297 (CHARSET_TYPE_256X256): New macro.
3298 (XCHARSET_PRIVATE_P): Delete unconditionally.
3299 (charset_by_attributes): Delete array about direction.
3300 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3301 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3302 (MIN_CHAR_94): New macro.
3303 (MAX_CHAR_94): New macro.
3304 (MIN_CHAR_96): New macro.
3305 (MAX_CHAR_96): New macro.
3306 (MIN_CHAR_94x94): New macro.
3307 (MAX_CHAR_94x94): New macro.
3308 (MIN_CHAR_96x96): New macro.
3309 (MAX_CHAR_96x96): New macro.
3310 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3311 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3312 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3314 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3315 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3316 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3317 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3318 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3319 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3320 `XCHARSET_LEADING_BYTE' to make code-point.
3321 (latin_a_char_to_charset): New variable.
3322 (latin_a_char_to_byte1): New variable.
3323 (latin_a_char_to_byte2): New variable.
3324 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3325 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3326 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3328 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3329 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3330 (find_charsets_in_emchar_string): Likewise.
3331 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3333 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3335 (decode_coding_iso2022): Likewise.
3337 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3340 * redisplay.c (redisplay_text_width_emchar_string): Use
3341 `Charset_ID' instead of `unsigned char'.
3342 (redisplay_frame_text_width_string): Likewise.
3344 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3347 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3348 instead of `unsigned char'.
3349 (face_cachel_charset_font_metric_info): Likewise.
3351 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3352 (get_non_ascii_char_table_value): Likewise.
3353 (get_char_table): Likewise.
3354 (put_char_table): Likewise.
3355 (map_over_other_charset): Likewise.
3356 (map_char_table): Likewise.
3358 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3359 instead of `unsigned char'.
3361 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3363 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3364 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3366 * mule-charset.c (leading_code_private_11): Don't define in
3369 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3370 in UTF-2000 because it is not ported yet and not to use
3371 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3373 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3375 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3377 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3379 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3382 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3383 of unsigned char to store leading-byte.
3385 * chartab.c (get_non_ascii_char_table_value): Don't use
3386 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3388 * file-coding.c (encode_coding_big5): Delete bogus implementation
3391 * character.h (LEADING_BYTE_*): Delete definition for
3393 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3394 (LEADING_BYTE_PREFIX_P): Deleted.
3395 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3396 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3397 (BUFBYTE_LEADING_BYTE_P): Deleted.
3398 (CHARSET_PRIVATE_P): Deleted unconditionally.
3399 (rep_bytes_by_first_byte): Deleted unconditionally.
3400 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3401 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3402 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3403 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3404 (CHAR_FIELD2): Deleted.
3405 (CHAR_FIELD3): Deleted.
3406 (MAKE_CHAR): Delete definition for non-UTF-2000.
3407 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3408 (breakup_char_1): New implementation.
3409 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3410 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3412 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3414 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3417 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3419 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3420 (CHARSET_PRIVATE_P): Likewise.
3421 (XCHARSET_PRIVATE_P): Likewise.
3422 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3424 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3426 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3428 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3430 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3431 (NUM_LEADING_BYTES): Changed from 128 to 256.
3432 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3433 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3435 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3437 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3439 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3440 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3441 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3442 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3443 (Qchinese_cns11643_3): New variable in UTF2000.
3444 (Qchinese_cns11643_4): New variable in UTF2000.
3445 (Qchinese_cns11643_5): New variable in UTF2000.
3446 (Qchinese_cns11643_6): New variable in UTF2000.
3447 (Qchinese_cns11643_7): New variable in UTF2000.
3448 (syms_of_mule_charset): Define `chinese-cns11643-3',
3449 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3450 and `chinese-cns11643-7' in UTF2000.
3451 (vars_of_mule_charset): Initialize
3452 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3454 (complex_vars_of_mule_charset): Setup charset
3455 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3456 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3458 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3460 * mule-charset.c: Move setting for `leading-code-private-11' from
3461 `syms_of_mule_charset' to `vars_of_mule_charset'.
3463 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3465 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3466 and `NUM_LEADING_BYTES' in assert.
3468 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3470 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3472 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3473 `NUM_LEADING_BYTES' instead of 128.
3475 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3477 * mule-charset.h (charset_by_leading_byte): Use
3478 `NUM_LEADING_BYTES' instead of 128.
3479 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3481 * mule-charset.c (charset_by_leading_byte): Use
3482 `NUM_LEADING_BYTES' instead of 128.
3483 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3485 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3488 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3490 * mule-charset.c (syms_of_mule_charset): Update to
3493 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3495 * file-coding.c (encode_coding_sjis): New implementation for
3496 UTF2000. (decode_coding_sjis): Ditto.
3498 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3500 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3501 Don't define in UTF2000.
3503 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3506 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3507 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3510 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3512 * config.h.in (CHAR_IS_UCS4): New macro.
3514 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3515 conventional MULE representation.
3516 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3518 * mule-charset.h: Reverted to original.
3520 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3521 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3522 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3524 * character.h: New file.
3526 * file-coding.c (Fmake_coding_system): Set 1 to
3527 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3529 (encode_coding_no_conversion): New implementation for UTF2000.
3531 * file-coding.h (struct Lisp_Coding_System): Add new member
3534 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
3536 * file-coding.c (decode_coding_iso2022): Code-point arguments of
3537 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3538 (encode_coding_iso2022): New implementation for UTF2000.
3540 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3542 * mule-canna.c (c2mu): New implementation for UTF2000.
3545 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3547 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3549 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3551 * file-coding.c (reset_encoding_stream): Set 0 to
3552 `str->iso2022.current_char_boundary' in UTF2000.
3553 (encode_utf8): Don't define in UTF2000.
3554 (encode_coding_utf8): New implementation for UTF-8 representation
3556 (complex_vars_of_file_coding): Define coding-system `utf-8'.
3558 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3560 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3562 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3564 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3566 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3568 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3569 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3570 as UTF-8 in UTF2000.
3571 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3572 (non_ascii_valid_char_p): Don't define in UTF2000.
3573 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3574 (Lstream_get_emchar_1): Likewise.
3575 (utf-2000-version): New variable in UTF2000.
3577 * lread.c (read_escape): Add new reader `u'.
3579 * insdel.c (three_to_one_table): Don't define in UTF2000.
3580 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3581 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3583 (bytind_to_bufpos_func): Likewise.
3584 (buffer_mule_signal_inserted_region): Likewise.
3585 (vars_of_insdel): Don't initialize `three_to_one_table'.
3586 (init_buffer_text): Use `buf->text->mule_size' instead of
3587 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3590 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3591 UTF-8 representation in UTF2000.
3592 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3593 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3594 (decode_coding_iso2022): Don't define local variable `lb' in
3595 UTF2000; don't use LEADING_BYTE in UTF2000; use
3596 `DECODE_ADD_UCS_CHAR' in UTF2000.
3597 (convert_to_external_format): Decode as UTF-8 in UTF2000.
3599 * config.h.in (UTF2000): New macro.
3601 * buffer.h (struct buffer_text): Add new member `mule_size' and
3602 don't add `mule_shifter' and `mule_three_p' in UTF2000.
3603 (valid_char_p): Return always 1 in UTF2000.
3604 (MAX_EMCHAR_LEN): 6 in UTF2000.
3605 (three_to_one_table): Don't define in UTF2000.
3606 (real_bufpos_to_bytind): Modify for UTF-8 representation in
3608 (real_bytind_to_bufpos): Likewise.
3610 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3612 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3614 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3615 representation change.
3616 (Vutf_2000_version): New variable.
3617 (leading_code_private_11): New variable.
3618 (syms_of_mule_charset): Add new variables `utf-2000-version' and
3619 `leading-code-private-11'.
3621 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3622 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3623 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3624 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3625 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3626 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3627 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3628 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3629 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3630 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3631 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3632 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3633 (MIN_CHAR_GREEK): New macro.
3634 (MAX_CHAR_GREEK): New macro.
3635 (MIN_CHAR_CYRILLIC): New macro.
3636 (MAX_CHAR_CYRILLIC): New macro.
3637 (MIN_CHAR_HEBREW): New macro.
3638 (MAX_CHAR_HEBREW): New macro.
3639 (MIN_CHAR_THAI): New macro.
3640 (MAX_CHAR_THAI): New macro.
3641 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3642 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3643 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3644 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3645 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3646 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3647 (CHAR_FIELD2): New inline function.
3648 (CHAR_FIELD3): New inline function.
3649 (MULE_CHAR_PRIVATE_OFFSET): New macro.
3650 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3651 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3652 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3653 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3654 (MIN_CHAR_COMPOSITION): Likewise.
3655 (CHAR_LEADING_BYTE): Modified for character representation change.
3656 (MAKE_CHAR): Likewise.
3658 * lisp.h (Vcharset_latin_iso8859_1): New variable.
3659 (Vcharset_greek_iso8859_7): Likewise.
3660 (Vcharset_cyrillic_iso8859_5): Likewise.
3661 (Vcharset_hebrew_iso8859_8): Likewise.
3662 (Vcharset_thai_tis620): Likewise.
3663 (Vcharset_katakana_jisx0201): Likewise.
3665 2001-02-08 Martin Buchholz <martin@xemacs.org>
3667 * XEmacs 21.2.44 "Thalia" is released.
3669 2001-02-06 Martin Buchholz <martin@xemacs.org>
3671 Fixes crashes in kill-emacs on some systems.
3672 * process-unix.c (unix_kill_child_process):
3673 It's OK for kill() to fail with ESRCH.
3675 2001-02-07 Martin Buchholz <martin@xemacs.org>
3677 Contortions to make .gdbinit tricks work on most systems.
3678 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3679 * alloc.c (dbg_valmask): Make non-const.
3680 * alloc.c (dbg_typemask): Make non-const.
3681 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3682 * alloc.c (dbg_valbits): Make non-const.
3683 * alloc.c (dbg_gctypebits): Make non-const.
3684 * .gdbinit (decode_object): Make it work with AIX cc.
3686 2001-02-06 Martin Buchholz <martin@xemacs.org>
3688 * elhash.c (make_general_lisp_hash_table):
3689 Use simpler and more efficient calloc to clear entries.
3691 2001-02-07 Martin Buchholz <martin@xemacs.org>
3693 * window.c (window_scroll): Work around an AIX C compiler bug.
3694 Fixes 'scroll-up' does nothing problem with xlC.
3696 2001-02-05 Martin Buchholz <martin@xemacs.org>
3698 * .gdbinit: Remove obsolete comment.
3700 2001-01-31 Mike Alexander <mta@arbortext.com>
3702 * select.c (Fown_selection_internal): Set owned_p for device
3705 2001-02-01 Martin Buchholz <martin@xemacs.org>
3708 "not" cannot be used as a macro name as it is an operator in C++
3709 * config.h.in: Stop #defining `not'.
3710 * chartab.c (check_category_char): not ==> not_p
3711 * chartab.h: Likewise.
3712 * regex.c (re_match_2_internal): Likewise.
3714 2001-02-02 Martin Buchholz <martin@xemacs.org>
3716 * lisp-disunion.h: Fix up comments.
3718 2001-01-31 Martin Buchholz <martin@xemacs.org>
3720 * keymap.c (define_key_check_and_coerce_keysym):
3722 Support mouse-6 and mouse-7 bindings in the obvious way.
3724 2001-02-01 Martin Buchholz <martin@xemacs.org>
3726 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
3728 2001-01-30 Martin Buchholz <martin@xemacs.org>
3730 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
3731 Previous patch missed DEFVAR_INT_MAGIC.
3732 Make sure future DEFVAR_foo use correct types.
3733 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
3734 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
3735 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
3736 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
3737 * (DEFVAR_INT): Likewise.
3738 * redisplay.c (vertical_clip): Should be of type Fixnum.
3739 * redisplay.c (horizontal_clip): Likewise.
3740 * lisp.h (dump_add_opaque_int): New.
3741 (dump_add_opaque_fixnum): New.
3743 2001-01-29 Andy Piper <andy@xemacs.org>
3745 * glyphs-widget.c (check_valid_int_or_function): allow symbols
3746 since they can be eval'ed
3748 2001-01-29 Martin Buchholz <martin@xemacs.org>
3750 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
3751 Oops, XEmacs redefines `class'. Use `typename' instead.
3753 2001-01-28 Martin Buchholz <martin@xemacs.org>
3755 * dumper.c: Fix C++ compile errors.
3757 2001-01-29 Martin Buchholz <martin@xemacs.org>
3759 * tparam.c: Use correct prototypes.
3761 2001-01-28 Martin Buchholz <martin@xemacs.org>
3763 * sysproc.h: #include util.h for NetBSD's openpty.
3765 2001-01-27 Martin Buchholz <martin@xemacs.org>
3767 More 64-bit correctness.
3768 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
3769 Use a typedef `fixnum' for the type used for DEFVAR_INT.
3771 This finally finishes the 64-bit SGI port.
3772 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
3773 * symbols.c: Fix up comments and type casts.
3774 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
3775 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
3776 * symeval.h (Fixnum): New type.
3777 * symeval.h (symbol_value_type): Fix up comment.
3793 * mule-canna.c: A million DEFVAR_INTs here...
3794 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
3807 s/int/Fixnum/g in DEFVAR_INT declarations.
3809 2001-01-26 Martin Buchholz <martin@xemacs.org>
3811 Port pdump to SGI alignment-sensitive environment.
3812 Lisp Object sizeof methods now return aligned sizes. Rely on that.
3813 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
3815 Define and use aligned reading and writing macros.
3816 Use buffered stdio instead of posix i/o for faster dumping.
3817 Eliminate kludgy 256 byte space for header.
3818 Read and write from dump file using structs for alignment safety.
3819 * dumper.c (pdump_align_stream): New.
3820 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
3821 * dumper.c (PDUMP_READ_ALIGNED): New.
3822 * dumper.c (PDUMP_WRITE_ALIGNED): New.
3823 * dumper.c (pdump_static_Lisp_Object): New struct.
3824 * dumper.c (pdump_static_pointer): New struct.
3825 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
3826 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
3827 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
3828 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
3830 * dumper.c (pdump_backtrace):
3831 * dumper.c (pdump_get_indirect_count):
3832 * dumper.c (pdump_register_object):
3833 * dumper.c (pdump_register_struct):
3834 * dumper.c (pdump_reloc_one):
3835 * dumper.c (pdump_scan_by_alignment):
3836 * dumper.c (pdump_dump_from_root_struct_ptrs):
3837 * dumper.c (pdump_dump_opaques):
3838 * dumper.c (pdump_dump_rtables):
3839 * dumper.c (pdump_dump_from_root_objects):
3841 * dumper.c (pdump_load_finish):
3842 Use aligned reading and writing.
3844 * dumper.c (pdump_free): Make static.
3845 * dumper.c (pdump_hFile): Likewise.
3846 * dumper.c (pdump_hMap): Likewise.
3848 2001-01-26 Martin Buchholz <martin@xemacs.org>
3850 * XEmacs 21.2.43 "Terspichore" is released.
3852 2001-01-25 Martin Buchholz <martin@xemacs.org>
3854 Type fiddling for window_config.saved_windows_count
3855 * window.c (struct window_config):
3856 Make saved_windows_count member unsigned.
3857 * window.c (sizeof_window_config_for_n_windows):
3858 Make parameter unsigned.
3859 * window.c (mark_window_config):
3860 * window.c (window_config_equal):
3861 * window.c (free_window_configuration):
3862 * window.c (Fset_window_configuration):
3863 * window.c (count_windows):
3864 * window.c (Fcurrent_window_configuration):
3865 * window.c (reinit_vars_of_window):
3866 Update all callers and users.
3868 2001-01-25 Martin Buchholz <martin@xemacs.org>
3870 Alignment correctness for flexible arrays.
3871 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
3872 Make alignment-correct. Add interesting comments.
3873 * alloc.c (size_vector):
3874 * alloc.c (make_vector_internal):
3875 * alloc.c (make_bit_vector_internal):
3876 * alloc.c (sweep_bit_vectors_1):
3877 * fns.c (size_bit_vector):
3878 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
3879 * window.c (sizeof_window_config_for_n_windows):
3880 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
3882 2001-01-24 Martin Buchholz <martin@xemacs.org>
3884 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
3886 2001-01-23 Andy Piper <andy@xemacs.org>
3888 * select.c (Fown_selection_internal): pass owned_p
3890 * select-msw.c (mswindows_own_selection): New Signature.
3892 * console.h (struct console_methods): add owned_p to
3895 * select-x.c (x_own_selection): pass owned_p
3896 (hack_motif_clipboard_selection): use owned_p
3897 (vars_of_select_x): new variable -
3898 x_selection_strict_motif_ownership.
3900 2001-01-23 Martin Buchholz <martin@xemacs.org>
3902 * specifier.h (specifier_data_offset): Remove pointless parens.
3903 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
3905 2001-01-24 Martin Buchholz <martin@xemacs.org>
3907 Make Lisp_Object sizeof methods be alignment-correct.
3908 pdump must restore objects to the same alignment as the C compiler
3909 assumes. It really matters on SGIs.
3910 * lstream.c (aligned_sizeof_lstream): New.
3911 (sizeof_lstream): Use aligned_sizeof_lstream.
3912 (Lstream_new): Likewise.
3913 * opaque.c (aligned_sizeof_opaque): New.
3914 (sizeof_opaque): Use aligned_sizeof_opaque.
3915 (make_opaque): Likewise.
3916 * specifier.c (aligned_sizeof_specifier): New.
3917 (sizeof_specifier): Use aligned_sizeof_specifier.
3918 (make_specifier_internal): Likewise.
3920 2001-01-23 Martin Buchholz <martin@xemacs.org>
3922 * lstream.h (struct lstream): Use max_align_t for trailing data.
3923 * specifier.h (struct Lisp_Specifier): Likewise.
3925 2001-01-22 Martin Buchholz <martin@xemacs.org>
3927 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
3928 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
3929 (CCL_SUSPEND): Likewise.
3930 (CCL_INVALID_CMD): Likewise.
3931 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
3932 (ccl_driver): Likewise.
3933 (CCL_WRITE_CHAR): Macro hygiene.
3934 (CCL_WRITE_STRING): Macro hygiene.
3936 2001-01-22 Martin Buchholz <martin@xemacs.org>
3938 Port "portable" dumper to SunOS 4 and HP-UX.
3939 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
3940 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
3941 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
3943 2001-01-22 Martin Buchholz <martin@xemacs.org>
3945 * lisp.h (ALIGNOF): A better definition for C++.
3947 2001-01-20 Martin Buchholz <martin@xemacs.org>
3950 Fix printf warnings: int format, long int arg.
3951 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
3952 (PUSH_FAILURE_POINT): Use correct printf formats.
3953 (POP_FAILURE_POINT): Use correct printf formats.
3954 Use do {...} while (0)
3956 2001-01-20 Martin Buchholz <martin@xemacs.org>
3958 * XEmacs 21.2.42 "Poseidon" is released.
3960 2001-01-20 Martin Buchholz <martin@xemacs.org>
3962 * console-x.h: typo fix du jour. Remove #if 0'ed code.
3964 2001-01-19 Martin Buchholz <martin@xemacs.org>
3966 De-kludgify FIXED_TYPE free list frobbing.
3967 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3968 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3969 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3970 * alloc.c (Lisp_Free): New pseudo lisp object definition.
3971 * alloc.c (LRECORD_FREE_P): New.
3972 * alloc.c (MARK_LRECORD_AS_FREE): New.
3973 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3974 * alloc.c (STRUCT_FREE_P): Deleted.
3975 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3976 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3977 * alloc.c (STRING_CHARS_FREE_P): New.
3978 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3979 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3980 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3981 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3982 * alloc.c (resize_string): Use new definitions.
3983 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
3984 * alloc.c (verify_string_chars_integrity): Use new definitions.
3985 * alloc.c (compact_string_chars): Use new definitions.
3986 * alloc.c: Update monster comments.
3987 * lrecord.h (lrecord_type): Add some new lrecord types for
3990 2001-01-18 Martin Buchholz <martin@xemacs.org>
3992 Improve alignment hackery.
3993 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
3994 (max_align_t): Moved from opaque.h - general purpose.
3995 (ALIGN_PTR): Use size_t, not long.
3996 * opaque.h (max_align_t): Move to lisp.h.
3998 2001-01-18 Norbert Koch <nk@LF.net>
4000 * gui.h: Fix and add prototypes to fix build problems.
4002 2001-01-18 Martin Buchholz <martin@xemacs.org>
4004 temacs is going away, so `dump-temacs' is now a bad name.
4005 * .dbxrc (dump-temacs): Rename to `dmp'.
4006 * .gdbinit (dump-temacs): Rename to `dmp'.
4008 2001-01-17 Andy Piper <andy@xemacs.org>
4010 * glyphs.c (print_image_instance): comment to make martin happy.
4012 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4015 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4017 (mswindows_tab_control_redisplay): warning suppression.
4019 * glyphs-widget.c (widget_update): re-write to cope with updated
4021 (widget_instantiate): use new gui_item functions.
4022 (tab_control_update): deleted.
4023 (progress_gauge_update): deleted.
4024 (image_instantiator_progress_guage): take out update reference.
4025 (image_instantiator_tree_view): ditto.
4026 (image_instantiator_tab_control): ditto.
4028 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4030 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4031 return whether anything was changed.
4032 (update_gui_item_keywords): as it sounds.
4034 * gui.h: declare widget_gui_parse_item_keywords.
4036 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4037 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4039 2001-01-17 Martin Buchholz <martin@xemacs.org>
4041 * XEmacs 21.2.41 "Polyhymnia" is released.
4043 2001-01-16 Didier Verna <didier@xemacs.org>
4045 * glyphs.c (image_instantiate): don't use fallbacks when
4046 instantiating a face's background pixmap by inheritance.
4048 2001-01-14 Mike Sperber <mike@xemacs.org>
4050 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4051 Conditionalize accordingly.
4053 2001-01-16 Martin Buchholz <martin@xemacs.org>
4055 * dumper.c (pdump_file_get): Fix a compiler warning.
4057 2001-01-15 Martin Buchholz <martin@xemacs.org>
4059 Make Purify happy when pdumping.
4060 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4061 iniitalizing all bits of new lisp object memory.
4062 * symbols.c (Fmake_local_variable): Likewise.
4063 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4064 * symbols.c (Fdefvaralias): Likewise.
4065 * mule-charset.c (vars_of_mule_charset): Likewise.
4067 2001-01-15 Martin Buchholz <martin@xemacs.org>
4068 Add the `-nd' flag when running pre-dump operations under the debugger.
4069 * .dbxrc (run-temacs): Add `-nd'.
4070 * .dbxrc (update-elc): Likewise.
4071 * .dbxrc (dump-temacs): Likewise.
4072 * .gdbinit (run-temacs): Likewise.
4073 * .gdbinit (check-temacs): Likewise.
4074 * .gdbinit (update-elc): Likewise.
4075 * .gdbinit (dump-temacs): Likewise.
4077 2001-01-14 Martin Buchholz <martin@xemacs.org>
4079 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4080 export OBJECT_MODE=64
4081 configure --pdump --use-union-type=no
4082 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4083 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4085 * miscplay.c (sndcnv8U_2mono):
4086 Avoid two uses of `++' in the same expression.
4087 Suppresses a GCC warning.
4089 2001-01-13 Martin Buchholz <martin@xemacs.org>
4091 Make sure future compilers don't miscompile alloc.c.
4093 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4094 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4096 2001-01-12 Martin Buchholz <martin@xemacs.org>
4098 * dumper.c: A little post-pdump-rename comment fixup.
4100 2001-01-09 Jerry James <james@eecs.ku.edu>
4102 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4104 2001-01-13 Martin Buchholz <martin@xemacs.org>
4106 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4110 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4113 replace_symbol pdump_wire_lists pdump_weak_object_chains
4114 replace_symbol pdump_wire_list dump_add_weak_object_chain
4116 replace_symbol pdump_wires pdump_root_objects
4117 replace_symbol pdump_wire dump_add_root_object
4119 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4120 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4122 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4123 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4124 replace_symbol dumpstructinfo pdump_root_struct_ptr
4125 replace_symbol dumpstruct dump_add_root_struct_ptr
4127 replace_symbol dumpopaque dump_add_opaque
4128 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4129 replace_symbol dumpopaqueinfos pdump_opaques
4130 replace_symbol dumpopaqueinfo pdump_opaque
4132 replace_symbol nb_structdump nb_root_struct_ptrs
4133 replace_symbol nb_opaquedump nb_opaques
4135 replace_symbol align_table pdump_align_table
4136 replace_symbol dump_header pdump_header
4138 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4139 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4142 2001-01-12 Martin Buchholz <martin@xemacs.org>
4144 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4145 optimizing bytecount_to_charcount().
4147 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4150 (HAVE_DLFCN_H): Removed.
4151 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4153 2001-01-06 Martin Buchholz <martin@xemacs.org>
4155 Portable dumper maintainability improvements.
4156 * alloc.c (staticpro):
4157 * alloc.c (staticpro_nodump):
4158 * alloc.c (garbage_collect_1):
4159 * alloc.c (reinit_alloc_once_early):
4160 * alloc.c (init_alloc_once_early):
4161 * alloc.c: Move dumper functions to alloc.c.
4162 * dumper.c (pdump_backtrace):
4163 * dumper.c (pdump_dump_structs):
4164 * dumper.c (pdump_dump_opaques):
4165 * dumper.c (pdump_dump_rtables):
4166 * dumper.c (pdump_dump_wired):
4168 * dumper.c (pdump_load_check):
4169 * dumper.c (pdump_load_finish):
4170 * dumper.c (pdump_file_unmap):
4171 * dumper.c (pdump_file_get):
4172 * dumper.c (pdump_resource_free):
4173 * dumper.c (pdump_resource_get):
4174 * dumper.c (pdump_file_free):
4175 * dumper.c (pdump_file_try):
4176 * dumper.c (pdump_load):
4177 Remove fixed size limits on staticpro(), staticpro_nodump(),
4178 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4179 Remove custom code for dumping lrecord_implementations_table - use
4181 Remove (most of the) custom code for dumping staticpros - dump it
4182 like any other dynarr.
4184 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4185 * dumper.c: Moved functions from alloc.c.
4186 * alloc.c (dumpstruct): Moved to dumper.c.
4187 * alloc.c (dumpopaque): Likewise.
4188 * alloc.c (pdump_wire): Likewise.
4189 * alloc.c (pdump_wire_list): Likewise.
4191 * lisp.h (Dynarr_sizeof): New.
4192 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4193 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4194 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4196 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4197 * lisp.h (dumpopaque): ditto.
4198 * lisp.h (pdump_wire): ditto.
4199 * lisp.h (pdump_wire_list): ditto.
4201 2001-01-09 Martin Buchholz <martin@xemacs.org>
4203 * make-src-depend (PrintPatternDeps):
4204 Use `sort' to make output independent of perl version.
4206 2001-01-08 Martin Buchholz <martin@xemacs.org>
4209 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4210 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4212 2001-01-03 Didier Verna <didier@xemacs.org>
4214 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4215 that `focus_frame' is alive before thinking of calling
4216 `redisplay_redraw_cursor' on it.
4218 2001-01-08 Martin Buchholz <martin@xemacs.org>
4220 * XEmacs 21.2.40 is released.
4222 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4224 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4226 2001-01-06 Martin Buchholz <martin@xemacs.org>
4228 * alloc.c (dbg_valmask): Make const.
4229 * alloc.c (dbg_typemask): Make const.
4230 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4231 * alloc.c (dbg_valbits): Make const.
4232 * alloc.c (dbg_gctypebits): Make const.
4234 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4236 * redisplay-x.c (x_bevel_area):
4237 redisplay.h (struct rune):
4238 Typo fixes in comments.
4240 2001-01-05 Andy Piper <andy@xemacs.org>
4242 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4245 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4247 2001-01-05 Martin Buchholz <martin@xemacs.org>
4249 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4251 * mule-ccl.c (stack_idx_of_map_multiple):
4252 Non const global data must not be initialized!
4253 Found by MIYASHITA Hisashi.
4255 2001-01-02 Andy Piper <andy@xemacs.org>
4257 * frame.c (change_frame_size): make sure frame size is always
4260 * glyphs.c (image_instance_layout): minor code reuse.
4262 * window.c (Fcurrent_window_configuration): revert previous
4265 2001-01-02 Martin Buchholz <martin@xemacs.org>
4268 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4270 2000-12-31 Andy Piper <andy@xemacs.org>
4272 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4273 when widget gets unmapped.
4275 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4276 function. Make sure widgets losing focus don't just drop it.
4277 (handle_focus_event_1): record the widget with focus.
4279 2000-12-31 Andy Piper <andy@xemacs.org>
4281 * window.c (allocate_window): use
4282 make_image_instance_cache_hash_table.
4283 (make_dummy_parent): ditto.
4284 (Fset_window_configuration): ditto.
4286 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4288 * glyphs.c (process_image_string_instantiator): use
4290 (get_image_instantiator_governing_domain): ditto.
4291 (normalize_image_instantiator): ditto.
4292 (instantiate_image_instantiator): ditto.
4293 (make_image_instance_1): ditto.
4294 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4295 (instantiator_eq_equal): new function for use with instance hash
4297 (instantiator_eq_hash): ditto.
4298 (make_image_instance_cache_hash_table): create a suitable hash
4299 table for storing image instances.
4301 * elhash.h (hash_table_weakness): new internal weakness type
4302 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4303 declare new functions.
4305 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4306 another weakness type for glyphs.
4307 (make_standard_lisp_hash_table): new function split out from
4308 make_general_lisp_hash_table.
4309 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4310 (hash_table_instantiate): ditto.
4311 (Fmake_hash_table): ditto.
4313 2000-12-31 Martin Buchholz <martin@xemacs.org>
4315 * XEmacs 21.2.39 is released.
4317 2000-12-29 Andy Piper <andy@xemacs.org>
4319 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4321 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4322 the frame has changed so that we pick up geometry changes such as
4325 2000-12-28 Andy Piper <andy@xemacs.org>
4327 * lastfile.c (my_ebss): make a char array so we can pad the
4328 bss. Fixes cygwin unexec.
4330 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4332 2000-12-26 Andy Piper <andy@xemacs.org>
4334 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4335 comments and try and be more precise about a non-/SIGIO world.
4336 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4339 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4340 we don't normalize to zero width or height.
4342 2000-12-24 Andy Piper <andy@xemacs.org>
4344 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4346 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4348 * s/sco5.h: SCO 5 has pty support.
4350 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4352 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4353 input-method-xlib.c contains whole contents of input-method-xfs.c,
4354 so we can use input-method-xlib.c's code for USE_XFONTSET
4356 * input-method-xfs.c: removed.
4358 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4360 * file-coding.h (enum coding_category_type): reorder enumerators to
4361 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4362 (now one greater than largest real coding_category_type enumerator).
4363 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4364 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4365 Fcoding_category_list, Fset_coding_priority_list,
4366 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4367 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4369 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4371 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4372 * redisplay-output.c (redisplay_output_window): Clear top of window
4373 when face is changed.
4374 * redisplay-x.c (x_redraw_exposed_window): Call
4375 redisplay_clear_top_of_window.
4376 * redisplay.h: Publish redisplay_clear_top_of_window.
4378 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4380 * buffer.c (Fkill_buffer): Map over all devices.
4381 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4382 (list_windows): New function.
4383 (list_all_windows): Ditto.
4384 (Freplace_buffer_in_windows): Use them.
4386 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4388 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4389 (Fopen_database): Use `db_create' instead of `db_open'.
4390 (syms_of_database): Initialize Qqueue.
4392 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4394 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4395 buffer_local_face_property.
4396 * buffer.h (struct buffer): New member buffer_local_face_property.
4397 * window.c (Fset_window_buffer): Mark window's face as changed
4398 when buffer has buffer local face.
4399 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4400 * objects.c (color_after_change): Set buffer_local_face_property
4401 when locale of face specifier is buffer.
4402 * objects.c (font_after_change): Ditto.
4403 * objects.c (face_boolean_after_change): Ditto.
4404 * glyphs.c (image_after_change): Ditto.
4406 2000-12-09 Dan Holmsand <dan@eyebee.com>
4408 * nt.c (mswindows_fstat): Report file permissions, volume serial
4409 number, etc. Code adapted from FSF Emacs 20.7.
4411 2000-12-09 Dan Holmsand <dan@eyebee.com>
4413 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4414 of stat when we don't have symbolic links, to make sure
4415 mswindows_stat is called on mswindows.
4417 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4419 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4421 2000-12-12 Martin Buchholz <martin@xemacs.org>
4423 * doprnt.c (emacs_doprnt_1): More printing fixes.
4424 Make printing of numbers compatible with libc and FSF Emacs.
4425 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4426 Use the system printf to do most of the hard work of formatting,
4427 instead of doprnt_1().
4428 Calculate memory to allocate for format string.
4429 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4430 (doprnt_1): Cleaner code and documentation.
4432 2000-12-01 Jerry James <james@eecs.ukans.edu>
4434 * Makefile.in.in: Use the loop variable to install headers.
4436 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4438 * window.c (Fsplit_window): Don't invalidate face cache.
4440 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4442 * minibuf.c (Fall_completions): Undo the previous change
4443 which removed checking elements start with space.
4445 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4447 * mule-canna.c: Didier suppression.
4449 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4451 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4452 (warning suppression). Add English comment translations.
4454 2000-12-05 Martin Buchholz <martin@xemacs.org>
4456 * unexelfsgi.c (unexec): Better test for mmap failure.
4458 2000-12-05 Martin Buchholz <martin@xemacs.org>
4460 * XEmacs 21.2.38 is released.
4462 2000-12-05 Martin Buchholz <martin@xemacs.org>
4464 * redisplay.c (bar-cursor): Make a user variable.
4466 * symsinit.h: Add init_postgresql_from_environment.
4468 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4470 * regex.c: Convert to clean C.
4472 2000-12-05 Dan Holmsand <dan@eyebee.com>
4475 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4477 (sys_readlink): renamed to system_readlink to avoid conflict with
4478 the other sys_readlink.
4480 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4482 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4484 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4486 * postgresql.c (init_postgresql_from_environment): new function.
4487 (vars_of_postgresql): Move code initializing Lisp variables out and
4488 into init_postgresql_from_environment.
4489 emacs.c (main_1): Call init_postgresql_from_environment if and only
4490 if running a dumped XEmacs.
4492 2000-08-31 Dan Holmsand <dan@eyebee.com>
4494 * buffer.c: Make find-file-compare-truenames default to true on
4497 * realpath.c (win32_abs_start):
4499 (win32_readlink): New functions.
4500 (xrealpath): Return really real filenames on windows.
4502 * fileio.c (Ffile_truename): Make file-truename work on windows.
4504 2000-11-29 Didier Verna <didier@xemacs.org>
4506 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4507 * faces.c (update_face_cachel_data): use it.
4508 * faces.c (add_face_cachel): use it. Complete background pixmap
4509 frobbing in face cache if `update_face_cachel_data' has not done so.
4511 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
4513 * search.c (string_match_1): Don't set last_thing_searched
4516 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
4518 * buffer.c: Include casetab.h
4519 (common_init_complex_vars_of_buffer): Use new case-table object.
4520 * buffer.h: Include casetab.h
4521 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4522 (DOWNCASE_TABLE_OF): Ditto.
4523 * bufslots.h: Remove char-tables and add case-table.
4524 * casetab.c: Include casetab.h
4525 (CASE_TABLE_P): Removed.
4526 (mark_case_table): New function.
4527 (allocate_case_table): New function.
4528 (Fcase_table_p): Use new case-table.
4529 (case_table_char): New function.
4530 (Fget_case_table): Ditto.
4531 (Fput_case_table): Ditto.
4532 (Fput_case_table_pair): Ditto.
4533 (Fcopy_case_table): Ditto.
4534 (Fcurrent_case_table): Return case-table.
4535 (Fstandard_case_table): Return case-table.
4536 (Fset_case_table): Fix doc-string.
4537 (set_case_table): Use case-table
4538 (syms_of_casetab): DEFSUBR new functions.
4539 (complex_vars_of_casetab): Set up standard case-table.
4540 * casetab.h: New file.
4541 * editfns.c: Include casetab.h
4542 (Fcompare_buffer_substrings): Use case-table.
4543 * inline.c: Include casetab.h
4544 * lisp.h: Remove bogus extern.
4545 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4546 * search.c: Include casetab.h
4547 (TRANSLATE_ASCII): Removed.
4548 (TRANSLATE): Unconditionally translate character.
4549 (looking_at_1): Use case-table.
4550 (string_match_1): Ditto.
4551 (fast_string_match): Ditto.
4552 (search_command): Ditto.
4553 (search_buffer): Separate boyer_moore. Check whether
4554 boyer_moore is possible.
4555 (simple_search): New function.
4556 (boyer_moore): Separated from search_buffer. Translate char.
4558 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
4560 * regex.c (RE_TR_ASCII): Removed.
4561 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4562 (PATFETCH): Call PATFETCH_RAW.
4563 (PATFETCH_RAW): Fetch Emchar.
4564 (PATUNFETCH): Decrement charptr.
4565 (GET_BUFFER_SPACE): Rename b to buf_end.
4567 (BUF_PUSH_2): Ditto.
4568 (BUF_PUSH_3): Ditto.
4569 (EXTEND_BUFFER): Ditto.
4570 (SET_LIST_BIT): Ditto.
4571 (regex_compile): Ditto. Translate non ASCII char.
4572 (compile_range): Ditto.
4573 (re_search_2): Ditto.
4574 (re_match_2_internal): Compare Emchar.
4575 (bcmp_translate): Ditto.
4577 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
4579 * lisp.h (basic char/int typedefs): comment improvement.
4581 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
4583 * emacs.c (main_1): unconditional pdump unstomping; don't save and
4584 unstomp inhibit_site_lisp. Improve comments.
4586 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
4588 * mule-charset.c (Fcharset_property): improve type checking, comments.
4590 2000-11-28 Andy Piper <andy@xemacs.org>
4592 * redisplay-output.c (redisplay_output_subwindow): make sure we do
4593 clipped display for windows in the gutter also.
4594 (redisplay_display_boxes_in_window_p): change semantics of return
4595 codes to be more intuitive.
4597 * gutter.h: declare display_boxes_in_gutter_p.
4599 * gutter.c (display_boxes_in_gutter_p): new function for
4602 2000-11-22 Andy Piper <andy@xemacs.org>
4604 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4607 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
4609 * callproc.c (Fold_call_process_internal):
4610 * gpm.c (Freceive_gpm_event):
4611 (tty_get_foreign_selection): Might be just warning supression.
4612 * fileio.c (Fwrite_region_internal):
4613 (Fset_visited_file_modtime):
4614 * keymap.c (event_matches_key_specifier_p):
4615 Initialize GCPROed variable.
4617 * menubar-x.c (command_builder_find_menu_accelerator):
4618 Initialize before use.
4620 2000-11-23 Andy Piper <andy@xemacs.org>
4622 * unexcw.c (unexec): make the resulting executable executable.
4624 2000-11-21 Martin Buchholz <martin@xemacs.org>
4626 * doc.c (get_doc_string):
4627 Use size_t, not int, for result of XSTRING_LENGTH.
4629 * cmds.c (Fdelete_char):
4630 * cmds.c (Fpoint_at_eol):
4631 * cmds.c (Fself_insert_command):
4632 Use EMACS_INT, not int, for result of XINT.
4633 Someday, someone will want to insert more than 2**31 identical characters.
4635 * cmds.c (Fdelete_char):
4636 * cmds.c (Fdelete_backward_char):
4637 * syntax.c (Fforward_word):
4638 * syntax.c (Fforward_comment):
4639 Make COUNT argument optional, for consistency with forward-char et al.
4641 2000-11-22 Martin Buchholz <martin@xemacs.org>
4644 * print.c (long_to_string):
4645 Return a useful value: the pointer at end of data written.
4648 Use `static const char * const' for constant strings.
4649 (union printf_arg): Delete `i', `ui' members.
4652 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4653 Do all printf-ing via the `l' specifier.
4654 Use EMACS_INT instead of int.
4657 2000-11-20 Didier Verna <didier@xemacs.org>
4659 * faces.c (update_face_cachel_data): don't frob the background
4660 pixmap when the window is being created. The face is needed but
4663 2000-11-20 Andy Piper <andy@xemacs.org>
4665 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4666 messing with a debug environment.
4668 2000-11-20 Martin Buchholz <martin@xemacs.org>
4670 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4672 2000-11-20 Martin Buchholz <martin@xemacs.org>
4674 * casetab.c (Fcase_table_p): Fix compile error and crash.
4676 2000-11-18 Philip Aston <philipa@mail.com>
4678 * s/cygwin32.h: Cygwin has SVR4-like pty support.
4680 2000-11-18 Martin Buchholz <martin@xemacs.org>
4682 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
4683 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4685 2000-11-17 Martin Buchholz <martin@xemacs.org>
4687 * config.h.in: Define HAVE_ELF_H if elf.h exists.
4688 * unexelf.c: Use HAVE_ELF_H.
4689 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4690 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4691 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4692 Greg Harrington <greg_harrington@hotmail.com> provided a machine
4694 So this is an unexelfsgi.c from a different line of development.
4696 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4698 * regex.c (RE_TR_ASCII): New function.
4699 (RE_TRANSLATE): Call it.
4701 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4703 * buffer.h (TRT_TABLE_OF): Remove assert.
4704 (IN_TRT_TABLE_DOMAIN): Removed.
4706 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
4708 * free-hook.c (log_gcpro):
4709 (show_gcprohist): Add support for GCPRO5.
4711 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
4713 * emacs.c (main_1): Improve -sd error message when --pdump=no.
4715 2000-11-16 Olivier Galibert <galibert@xemacs.org>
4717 * symeval.h: Declare flush_all_buffer_local_cache.
4719 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4720 (flush_buffer_local_cache): Added.
4721 (flush_all_buffer_local_cache): Added.
4723 * lrecord.h: Remove unused XD_LO_RESET_NIL.
4725 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4726 (pdump_dump_data): Ditto.
4727 (pdump_reloc_one): Ditto.
4728 (pdump): Remove unused pdump_qnil. Flush buffer local caches
4732 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4734 * buffer.c: Remove if 0'ed entry.
4735 * buffer.h: Rewrite TRT to use char-table.
4736 * bufslots.h: Remove mirror tables.
4737 * casetab.c: Remove mirror tables.
4738 (CASE_TABLE_P): New macro.
4739 (Fcase_table_p): Element of a case table is string or char-table.
4740 (make_mirror_trt_table): Removed.
4741 (set_case_table): Setup char-table from strings for backward
4743 * dired.c (Fdirectory_files):
4744 * dired-msw.c: (mswindows_get_files):
4745 * lisp.h: Change prototype of re_pattern_buffer.
4746 * regex.c: (RE_TRANSLATE): New macro.
4747 (TRANSLATE_P): Ditto.
4748 Change translate to type RE_TRANSLATE_TYPE.
4749 * regex.h: Define RE_TRANSLATE_TYPE
4750 * search.c (TRANSLATE): New macro.
4751 (TRANSLATE_ASCII): New macro.
4752 Translate table is changed to Lisp_Object.
4753 (signal_failure): Inhibit return.
4755 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4762 Do UNGCPRO before return.
4764 2000-11-14 Martin Buchholz <martin@xemacs.org>
4766 * XEmacs 21.2.37 is released.
4768 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4770 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4771 Add comments about discarded return value.
4773 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4776 * event-stream.c: Fix comments. Remove some #if 0'ed part.
4778 2000-10-27 Andy Piper <andy@xemacs.org>
4780 * gutter.c (Fset_default_gutter_position): default left and right
4782 (calculate_gutter_size): calculate resonable heuristic for left
4783 and right gutter sizes.
4784 (specifier_vars_of_gutter): change left and right gutter sizes to
4786 (calculate_gutter_size_from_display_lines): new function.
4787 (output_gutter): check for resizing on left and right gutters.
4788 (clear_gutter): don't special case top and left gutters.
4789 (specifier_vars_of_gutter): use new signature for
4790 set_specifier_caching.
4792 * glyphs-x.c (x_redisplay_widget): spelling fix.
4793 * glyphs.c (specifier_vars_of_glyphs):
4794 * menubar.c (specifier_vars_of_menubar):
4795 * redisplay.c (specifier_vars_of_redisplay):
4796 * toolbar.c (specifier_vars_of_toolbar):
4797 * window.c (specifier_vars_of_window):
4798 * scrollbar.c (specifier_vars_of_scrollbar):
4799 (complex_vars_of_scrollbar): use new signature for
4800 set_specifier_caching.
4802 * specifier.c (set_specifier_caching): include recompute flag.
4803 (recompute_one_cached_specifier_in_window): always recompute if
4805 (recompute_one_cached_specifier_in_frame): ditto.
4807 * specifier.h (struct specifier_caching): add recompute flag.
4809 2000-10-24 Andy Piper <andy@xemacs.org>
4811 * unexcw.c (copy_executable_and_dump_data_section): add new
4812 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4815 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4817 * console-x.h (x_device): New member modifier_release_time.
4818 * event-Xt.c (x_handle_sticky_modifiers):
4819 Bound interval modifier keys are sticky.
4820 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4821 * events.h: extern it.
4823 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4825 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4827 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4829 * event-stream.c (execute_command_event): Preserve current_events
4830 and the like when event is misc-user-event.
4831 Inhibit quit during the call to maybe_echo_keys.
4833 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
4835 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4836 symlink when buffer is killed.
4837 (inhibit_clash_detection): New variable.
4839 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
4841 * console.c (Fset_input_method): Trigger redisplay on tty.
4843 2000-11-07 Martin Buchholz <martin@xemacs.org>
4845 * process.c (Fprocess_status): Revert to previous behavior:
4846 (process-status "nosuchprocess") ==> nil
4848 2000-11-06 Martin Buchholz <martin@xemacs.org>
4850 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4851 Work around another GCC 2.95.2 optimizer bug.
4853 2000-11-02 Martin Buchholz <martin@xemacs.org>
4855 * process.c (Fget_process): Use LIST_LOOP_2.
4856 (kill_buffer_processes): Use LIST_LOOP_2.
4858 * minibuf.c (Fall_completions):
4859 Delete old non-functional code for FSF fourth argument.
4861 * frame.c (frame_matches_frame_spec):
4862 Renamed from `frame_matches_frametype'. Update all callers.
4863 (device_matches_device_spec):
4864 Renamed from 'device_matches_console_spec'. Update all callers.
4866 * doc.c (Fsubstitute_command_keys):
4867 Remove buffer overflow crash. Small code cleanups.
4869 * casetab.c (check_case_table): Simpler code.
4871 * window.c (Freplace_buffer_in_windows):
4872 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4873 (and similar implementation) as Fdelete_windows_on.
4876 * alloc.c (Fmake_list):
4877 * alloc.c (make_vector):
4878 * alloc.c (Fmake_vector):
4879 * alloc.c (make_bit_vector):
4880 * alloc.c (Fmake_bit_vector):
4881 * alloc.c (Fbit_vector):
4882 * alloc.c (Fmake_string):
4883 * alloc.c (Fpurecopy):
4884 * alloc.c (Fmemory_limit):
4886 * buffer.c (Fget_buffer):
4887 * buffer.c (Fkill_buffer):
4888 * buffer.c (complex_vars_of_buffer):
4889 * bytecode.c (Fcompiled_function_stack_depth):
4890 * callint.c (Fprefix_numeric_value):
4892 * event-stream.c (Fread_key_sequence):
4894 * casetab.c (Fcase_table_p):
4895 * casetab.c (check_case_table):
4896 * casetab.c (Fset_case_table):
4897 * casetab.c (Fset_standard_case_table):
4899 * chartab.c (Fchar_table_type):
4900 * chartab.c (Freset_char_table):
4901 * chartab.c (Fget_char_table):
4902 * chartab.c (Fget_range_char_table):
4903 * chartab.c (Fput_char_table):
4904 * chartab.c (Fmap_char_table):
4905 * chartab.c (Fcategory_table_p):
4906 * chartab.c (Fcheck_category_at):
4907 * chartab.c (Fchar_in_category_p):
4908 * chartab.c (Fcategory_table):
4909 * chartab.c (Fcopy_category_table):
4910 * chartab.c (Fset_category_table):
4911 * chartab.c (Fcategory_designator_p):
4912 * chartab.c (Fcategory_table_value_p):
4913 * cmds.c (Fdelete_char):
4914 * cmds.c (Fdelete_backward_char):
4915 * cmds.c (Fself_insert_command):
4916 * cmds.c (Fself_insert_internal):
4917 * console.c (Fvalid_console_type_p):
4918 * console.c (Fcdfw_console):
4919 * console.c (Fconsole_type):
4920 * console.c (Fconsole_name):
4921 * console.c (Fconsole_device_list):
4922 * console.c (Fconsole_on_window_system_p):
4926 * data.c (Fsubr_interactive):
4927 * data.c (Fchar_to_int):
4928 * data.c (Fint_to_char):
4931 * data.c (Fnumber_to_string):
4932 * data.c (Fstring_to_number):
4934 * database.c (mark_database):
4935 * database.c (finalize_database):
4936 * database.c (Fdatabase_live_p):
4937 * database.c (Fdatabasep):
4938 * device-x.c (Fx_get_resource):
4939 * device.c (Fdfw_device):
4941 * dired.c (Ffile_name_completion):
4942 * dired.c (Ffile_name_all_completions):
4943 * dired.c (Fuser_name_completion):
4944 * dired.c (Fuser_name_completion_1):
4945 * dired.c (Fuser_name_all_completions):
4946 * doc.c (Fdocumentation):
4947 * doc.c (Fdocumentation_property):
4948 * doc.c (Fsubstitute_command_keys):
4950 * editfns.c (Fchar_to_string):
4951 * editfns.c (Fstring_to_char):
4952 * editfns.c (Ftemp_directory):
4953 * editfns.c (Finsert_char):
4954 * editfns.c (Fbuffer_substring_no_properties):
4955 * editfns.c (Fnarrow_to_region):
4956 * editfns.c (Fchar_equal):
4957 * editfns.c (Fchar_Equal):
4958 * editfns.c (Ftranspose_regions):
4959 * emacs.c (Fdump_emacs):
4961 * eval.c (Fcommand_execute):
4962 * eval.c (Fautoload):
4963 * eval.c (Fbacktrace):
4964 * eval.c (Fbacktrace_frame):
4966 * events.c (Fcopy_event):
4967 * events.c (Fcharacter_to_event):
4968 * events.c (Fevent_button):
4969 * events.c (Fevent_process):
4971 * extents.c (Fnext_extent_change):
4972 * extents.c (Fextent_property):
4974 * faces.c (Fmake_face):
4976 * file-coding.c (Fencode_shift_jis_char):
4977 * file-coding.c (Fencode_big5_char):
4978 * fileio.c (Ffile_name_directory):
4979 * fileio.c (Ffile_name_nondirectory):
4980 * fileio.c (Ffile_name_as_directory):
4981 * fileio.c (Fdirectory_file_name):
4982 * fileio.c (Ffile_truename):
4983 * fileio.c (Fsubstitute_in_file_name):
4984 * fileio.c (Ffile_modes):
4985 * fileio.c (Fset_file_modes):
4986 * fileio.c (Fset_default_file_modes):
4987 * fileio.c (Fverify_visited_file_modtime):
4988 * floatfns.c (Facos):
4989 * floatfns.c (Fasin):
4990 * floatfns.c (Fatan):
4991 * floatfns.c (Fcos):
4992 * floatfns.c (Fsin):
4993 * floatfns.c (Ftan):
4994 * floatfns.c (Fbessel_j0):
4995 * floatfns.c (Fbessel_j1):
4996 * floatfns.c (Fbessel_jn):
4997 * floatfns.c (Fbessel_y0):
4998 * floatfns.c (Fbessel_y1):
4999 * floatfns.c (Fbessel_yn):
5000 * floatfns.c (Ferf):
5001 * floatfns.c (Ferfc):
5002 * floatfns.c (Flog_gamma):
5003 * floatfns.c (Fexp):
5004 * floatfns.c (Fexpt):
5005 * floatfns.c (Flog):
5006 * floatfns.c (Flog10):
5007 * floatfns.c (Fsqrt):
5008 * floatfns.c (Fcube_root):
5009 * floatfns.c (Facosh):
5010 * floatfns.c (Fasinh):
5011 * floatfns.c (Fatanh):
5012 * floatfns.c (Fcosh):
5013 * floatfns.c (Fsinh):
5014 * floatfns.c (Ftanh):
5015 * floatfns.c (Fabs):
5016 * floatfns.c (Ffloat):
5017 * floatfns.c (Flogb):
5018 * floatfns.c (Fceiling):
5019 * floatfns.c (Ffloor):
5020 * floatfns.c (Fround):
5021 * floatfns.c (Ftruncate):
5022 * floatfns.c (Ffceiling):
5023 * floatfns.c (Fffloor):
5024 * floatfns.c (Ffround):
5025 * floatfns.c (Fftruncate):
5026 * fns.c (Fstring_equal):
5027 * fns.c (Fstring_lessp):
5032 * fns.c (Fsubstring):
5034 * fns.c (Fold_assoc):
5035 * fns.c (assoc_no_quit):
5037 * fns.c (Fold_assq):
5038 * fns.c (assq_no_quit):
5040 * fns.c (Fold_rassoc):
5042 * fns.c (Fold_rassq):
5043 * fns.c (rassq_no_quit):
5044 * fns.c (Fremassoc):
5045 * fns.c (remassoc_no_quit):
5047 * fns.c (remassq_no_quit):
5048 * fns.c (Fremrassoc):
5049 * fns.c (Fremrassq):
5050 * fns.c (remrassq_no_quit):
5052 * fns.c (Fplist_get):
5053 * fns.c (Fplist_put):
5054 * fns.c (Fplist_remprop):
5055 * fns.c (Fplist_member):
5056 * fns.c (Flax_plist_get):
5057 * fns.c (Flax_plist_put):
5058 * fns.c (Flax_plist_remprop):
5059 * fns.c (Flax_plist_member):
5061 * fns.c (Fold_equal):
5063 * fns.c (Fbase64_encode_region):
5064 * fns.c (Fbase64_encode_string):
5065 * fns.c (Fbase64_decode_region):
5067 * frame.c (frame_matches_frame_spec):
5068 * frame.c (device_matches_device_spec):
5069 * frame.c (next_frame):
5070 * frame.c (previous_frame):
5071 * frame.c (Fnext_frame):
5072 * frame.c (Fprevious_frame):
5073 * frame.c (Fframe_property):
5074 * frame.c (Fset_frame_height):
5075 * frame.c (Fset_frame_size):
5079 * glyphs.c (decode_error_behavior_flag):
5080 * glyphs.c (Fmake_image_instance):
5081 * indent.c (Findent_to):
5082 * intl.c (Fignore_defer_gettext):
5083 * keymap.c (Fkeymapp):
5084 * keymap.c (Flookup_key):
5086 * lread.c (Fload_internal):
5087 * lread.c (Feval_buffer):
5088 * lread.c (Feval_region):
5089 * macros.c (Fexecute_kbd_macro):
5090 * marker.c (set_marker_internal):
5091 * marker.c (Fset_marker):
5092 * marker.c (set_marker_restricted):
5093 * marker.c (Fcopy_marker):
5094 * marker.c (noseeum_copy_marker):
5096 * menubar.c (Fpopup_menu):
5098 * mule-charset.c (Fcharset_name):
5099 * mule-charset.c (Fchar_charset):
5100 * mule-charset.c (Fchar_octet):
5101 * mule-charset.c (Fsplit_char):
5102 * mule-wnnfns.c (Fwnn_open):
5103 * mule-wnnfns.c (Fwnn_dict_comment):
5104 * mule-wnnfns.c (Fwnn_quit_henkan):
5105 * mule-wnnfns.c (Fwnn_word_toroku):
5106 * mule-wnnfns.c (Fwnn_word_sakujo):
5107 * mule-wnnfns.c (Fwnn_word_use):
5108 * mule-wnnfns.c (Fwnn_hindo_set):
5110 * objects.c (Fmake_color_instance):
5111 * objects.c (Fmake_font_instance):
5112 * print.c (Fwrite_char):
5114 * process.c (mark_process):
5115 * process.c (print_process):
5116 * process.c (get_process_from_usid):
5117 * process.c (Fprocessp):
5118 * process.c (Fprocess_live_p):
5119 * process.c (Fget_process):
5120 * process.c (Fget_buffer_process):
5121 * process.c (get_process):
5122 * process.c (Fprocess_id):
5123 * process.c (Fprocess_name):
5124 * process.c (Fprocess_command):
5125 * process.c (init_process_io_handles):
5126 * process.c (start_process_unwind):
5127 * process.c (Fstart_process_internal):
5128 * process.c (Fopen_multicast_group_internal):
5129 * process.c (Fset_process_window_size):
5130 * process.c (read_process_output):
5131 * process.c (send_process):
5132 * process.c (Fprocess_tty_name):
5133 * process.c (Fset_process_buffer):
5134 * process.c (Fprocess_buffer):
5135 * process.c (Fprocess_mark):
5136 * process.c (set_process_filter):
5137 * process.c (Fset_process_filter):
5138 * process.c (Fprocess_filter):
5139 * process.c (Fprocess_send_region):
5140 * process.c (Fprocess_send_string):
5141 * process.c (exec_sentinel):
5142 * process.c (Fset_process_sentinel):
5143 * process.c (Fprocess_sentinel):
5144 * process.c (status_notify):
5145 * process.c (Fprocess_status):
5146 * process.c (Fprocess_exit_status):
5147 * process.c (process_send_signal):
5148 * process.c (Fprocess_send_eof):
5149 * process.c (deactivate_process):
5150 * process.c (remove_process):
5151 * process.c (Fdelete_process):
5152 * process.c (kill_buffer_processes):
5153 * process.c (Fprocess_kill_without_query):
5154 * process.c (Fprocess_kill_without_query_p):
5156 * rangetab.c (Fget_range_table):
5157 * rangetab.c (Fput_range_table):
5158 * rangetab.c (Fremove_range_table):
5159 * rangetab.c (Fclear_range_table):
5161 * search.c (Fskip_chars_forward):
5162 * search.c (Fskip_chars_backward):
5163 * search.c (Fskip_syntax_forward):
5164 * search.c (Fskip_syntax_backward):
5165 * search.c (search_command):
5166 * search.c (Freplace_match):
5167 * search.c (Fregexp_quote):
5168 * select.c (Fown_selection_internal):
5169 * select.c (Fselection_owner_p):
5170 * select.c (Fselection_exists_p):
5171 * select.c (Fget_selection_internal):
5174 * symbols.c (Fintern):
5175 * symbols.c (Fintern_soft):
5176 * symbols.c (Funintern):
5177 * symbols.c (Fapropos_internal):
5178 * symbols.c (Fset_default):
5180 * syntax.c (Fsyntax_table_p):
5181 * syntax.c (Fcopy_syntax_table):
5182 * syntax.c (Fset_syntax_table):
5183 * syntax.c (Fchar_syntax):
5184 * syntax.c (syntax_match):
5185 * syntax.c (Fmatching_paren):
5186 * syntax.c (Fforward_word):
5187 * syntax.c (scan_lists):
5188 * syntax.c (Fscan_lists):
5189 * syntax.c (Fscan_sexps):
5190 * syntax.c (Fparse_partial_sexp):
5191 * toolbar.c (Fcheck_toolbar_button_syntax):
5194 * window.c (Fwindowp):
5195 * window.c (Fwindow_live_p):
5196 * window.c (Fwindow_point):
5197 * window.c (Fdelete_window):
5198 * window.c (Fnext_window):
5199 * window.c (Fprevious_window):
5200 * window.c (Fother_window):
5201 * window.c (window_loop):
5202 * window.c (Fget_lru_window):
5203 * window.c (Fsplit_window):
5204 * window.c (Fenlarge_window):
5205 * window.c (Fenlarge_window_pixels):
5206 * window.c (Fshrink_window):
5207 * window.c (Fshrink_window_pixels):
5208 * window.c (change_window_height):
5209 * window.c (Fwindow_configuration_p):
5210 * window.c (Fcurrent_window_configuration):
5212 * casefiddle.c (casify_object):
5213 * casefiddle.c (Fupcase):
5214 * casefiddle.c (Fdowncase):
5215 * casefiddle.c (Fcapitalize):
5216 * casefiddle.c (Fupcase_initials):
5217 * casefiddle.c (casify_region_internal):
5218 * casefiddle.c (casify_region):
5219 * casefiddle.c (Fupcase_region):
5220 * casefiddle.c (Fdowncase_region):
5221 * casefiddle.c (Fcapitalize_region):
5222 * casefiddle.c (Fupcase_initials_region):
5223 * casefiddle.c (Fupcase_word):
5224 * casefiddle.c (Fdowncase_word):
5225 * casefiddle.c (Fcapitalize_word):
5226 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5227 Replace 0 with '\0' when working with bytes.
5228 Replace initial "(" with "\(" in docstrings.
5230 2000-11-01 Martin Buchholz <martin@xemacs.org>
5232 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5234 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5236 2000-10-31 Martin Buchholz <martin@xemacs.org>
5238 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5240 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5242 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5245 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5247 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5248 (inhibit_auto_save_session): New variable.
5249 (vars_of_fileio): Declare and initialize them.
5250 * fileio.c (Fdo_auto_save): Don't create session file if
5251 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5253 2000-10-31 Martin Buchholz <martin@xemacs.org>
5255 * sgiplay.c (play_internal): C++ compilability.
5256 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5257 * callproc.c (Fold_call_process_internal):
5258 Remove unused vars `env', `first'.
5259 * scrollbar.c (update_scrollbar_instance):
5260 #### unused var `current_window'.
5261 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5262 etc. within #ifdef NOT_YET.
5263 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5264 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5265 * specifier.c (specifier_instance):
5266 #### unused var `tag'.
5267 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5269 2000-10-27 Martin Buchholz <martin@xemacs.org>
5272 * fns.c (list_sort):
5273 * fns.c (Ffillarray):
5274 * fns.c (bytecode_nconc2):
5277 * fns.c (Fmapconcat):
5278 Be pedantically 64-bit correct. For the time when someone will
5279 want to have a list with length > 2**32.
5281 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5282 Work around MIPSpro compiler bug.
5284 * process-unix.c (unix_kill_child_process): Add snarky comment.
5285 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5287 * config.h.in: Oops, _getpt ==> _getpty
5289 2000-10-26 Martin Buchholz <martin@xemacs.org>
5293 Use void*, not char*, as return type of alloca().
5295 * alloc.c (free_marker): Side effect inside assert expression!
5297 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5299 * mule-charset.c (Fset_charset_ccl_program): To check
5300 if the given ccl program is valid, use setup_ccl_program()
5301 instead of CHECK_VECTOR().
5302 (Fmake_charset): Likewise.
5304 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5306 * faces.c (get_extent_fragment_face_cache_index):
5307 Fix cachel.merged_faces memory leak.
5309 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5311 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5312 Reset MSB of octets obtained by DECODE_SJIS
5313 because of the incompatibility with Emacs.
5314 (ccl_driver)<CCL_ENCODE_SJIS>:
5315 Set MSB of octets before passing them to
5316 ENCODE_SJIS because of the incompatibility
5319 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5321 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5322 (DECLARE_LRECORD): Undo the last change.
5323 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5325 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5327 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5328 the implementation to lrecord_implementations_table.
5330 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5332 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5333 initial value of `lrecord_type_##c_name' and
5334 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5335 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5336 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5337 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5338 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5340 2000-10-17 Martin Buchholz <martin@xemacs.org>
5342 * miscplay.c (sndcnv8S_2mono):
5343 (sndcnv2monounsigned):
5344 (sndcnvULaw_2linear):
5346 Remove implementation-defined behavior.
5348 2000-10-12 Martin Buchholz <martin@xemacs.org>
5350 * input-method-xlib.c: Warning suppression.
5352 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5354 * mule-ccl.c: Sync up with Emacs 21.0.90.
5355 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5357 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5359 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5360 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5361 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5362 leading char belongs to official 2-dimensional charset.
5363 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5364 write the given character as is. Otherwise,
5365 if it is a multibyte char, convert it by
5366 non_ascii_set_charptr_emchar, then write it.
5367 (CCL_WRITE_STRING): Likewise.
5368 (ccl_get_compiled_code): New function.
5369 (setup_ccl_program): When ccl_prog is invalid,
5371 (Fregister_code_conversion_map): New function.
5372 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5374 * mule-ccl.h: Sync up with Emacs 21.0.90.
5375 (Fregister_ccl_program): export it.
5377 * redisplay-msw.c (separate_textual_runs):
5378 If ccl program is not valid, don't do ccl conversion.
5380 * redisplay-x.c (separate_textual_runs): Ditto.
5382 * file-coding.c (Fmake_coding_system):
5383 When type is ccl and value is vector, register it
5384 with a proper symbol. And checks whether the
5385 given ccl program is valid.
5386 (mule_decode): When calling ccl_driver, if src indicates
5387 NULL pointer, set an empty string instead.
5388 (mule_encode): Likewise.
5390 2000-10-11 Martin Buchholz <martin@xemacs.org>
5392 The following large batch of changes gets us back to a state of
5393 C++ compilability. Extbyte is now a char, which means that
5394 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5396 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5398 * sound.c (Fplay_sound): Type correctness.
5400 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5401 (x_get_window_property): Type correctness.
5402 (receive_incremental_selection): unsigned char ==> Extbyte
5403 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5404 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5405 (Fx_store_cutbuffer_internal): Type correctness.
5407 * process-unix.c (try_to_initialize_subtty): Type correctness.
5409 * objects-x.c (x_print_color_instance): Type correctness.
5410 (x_print_font_instance): Type correctness.
5411 (x_list_fonts): SExtbyte ==> Extbyte.
5412 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5413 (x_find_charset_font): SExtbyte ==> Extbyte.
5414 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5415 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5416 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5419 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5420 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5421 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5422 (BYTE_C0_P): Use bit ops for char-signedness safety.
5423 (BYTE_C1_P): Use bit ops for char-signedness safety.
5424 (CHARSET_BY_LEADING_BYTE):
5425 (CHARSET_BY_ATTRIBUTES):
5426 Always use inline function.
5427 Use type_checking_assert.
5430 * mule-charset.c (non_ascii_charptr_copy_char):
5431 Modify to work with both ASCII and non-ASCII characters.
5432 Improve docs and variable names.
5433 Replace over-clever fall-through switch with a simple loop.
5434 (Lstream_get_emchar_1):
5435 Replace over-clever fall-through switch with a simple loop.
5437 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5438 Warning suppression.
5440 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5441 the return value of Lstream_getc, which could be EOF as well.
5443 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5445 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5446 APIs can be used on Extbytes without casts. Risky!
5450 * input-method-xlib.c (XIM_init_device):
5451 Use Xlib.h instead of IntrinsicP.h.
5452 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5453 which will break in X11R7.
5454 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5455 to call XRegisterIMInstantiateCallback with correct types.
5457 * gui-x.c (button_item_to_widget_value): Type correctness.
5459 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5461 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5462 (xbm_instantiate_1): Type correctness.
5463 (BUILD_GLYPH_INST): Type correctness.
5465 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5468 (decode_coding_sjis):
5469 (decode_coding_big5):
5470 (decode_coding_ucs4):
5471 (decode_coding_utf8):
5472 (decode_coding_iso2022):
5473 (decode_coding_no_conversion):
5474 Make all decoding functions take an Extbyte * arg.
5475 (encode_coding_sjis):
5476 (encode_coding_big5):
5477 (encode_coding_ucs4):
5478 (encode_coding_utf8):
5479 (encode_coding_iso2022):
5480 (encode_coding_no_conversion):
5481 Make all encoding functions take a Bufbyte * arg.
5482 Use size_t instead of unsigned int for memory sizes.
5483 Only cast to unsigned char whenever dereferencing Extbyte *.
5485 * doc.c (unparesseuxify_doc_string): Type correctness.
5487 * console-x.c (split_up_display_spec):
5488 Rewrite without using details of internal string representation.
5489 (x_semi_canonicalize_device_connection): Type correctness.
5492 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5493 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5494 (HAVE_XFREE386): Removed.
5496 * buffer.h (DEC_CHARPTR): `const' correctness.
5497 (bufbyte_strcmp): New.
5498 (bufbyte_memcmp): New.
5500 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5502 * buffer.h (XCHAR_OR_CHAR_INT):
5503 Always use inline function.
5504 Remove redundant type checking assert() - XINT will abort quite nicely.
5506 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5508 * search.c (Freplace_match): Set newtext to an empty string.
5510 2000-10-10 Martin Buchholz <martin@xemacs.org>
5512 * s/decosf1-3.h: Remove #include of stropts.h
5513 * s/ptx.h: Remove #include of stropts.h
5514 * s/usg5-4.h: Remove #include of stropts.h
5517 Use stropts.h, not sys/stropts.h.
5518 Use strtio.h, not sys/strtio.h.
5520 2000-10-04 Martin Buchholz <martin@xemacs.org>
5522 * XEmacs 21.2.36 is released.
5524 2000-09-21 Andy Piper <andy@xemacs.org>
5526 * glyphs-x.c (x_redisplay_widget): make sure non-structural
5527 changes still involve copying the widget tree.
5528 (update_widget_face): make sure a change is register in the widget
5529 tree. Call update_tab_widget_face appropriately.
5530 (update_tab_widget_face): ditto.
5531 (x_tab_control_redisplay): make sure non-structural changes still
5532 involve copying the widget tree.
5534 2000-08-31 Daiki Ueno <ueno@unixuser.org>
5536 * lread.c (locate_file): Check the path element is non-nil.
5538 2000-10-02 Martin Buchholz <martin@xemacs.org>
5540 * lisp.h: Warning suppression for SCO compilers.
5542 * redisplay-tty.c (reset_tty_modes): Fix crash.
5543 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5545 2000-09-27 Martin Buchholz <martin@xemacs.org>
5547 Big signal/process handling overhaul. Bugs fixed:
5548 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5549 M-x comint-kill-subjob should work for both values nil and t of
5550 process-connection-type. It was broken on most platforms.
5551 Testing on Irix and Cygwin still needed. Other plaforms tested.
5552 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
5553 * process-unix.c: Signal/Process handling overhaul.
5554 (pty_name): make 64 bytes, as `expect' does, for paranoia.
5555 (allocate_pty): Use all available modern methods of allocating
5556 ptys, falling back to old style BSD allocation as a last resort.
5557 Use allegedly more secure Unix98 pty allocation by default.
5558 (allocate_pty_the_old_fashioned_way): New. the last resort.
5559 (unix_create_process): Push ptem, ldterm, ttcompat where
5560 available. Autoconfiscate.
5561 (try_to_initialize_subtty): New.
5562 (unix_kill_child_process): Proper signal handling for ptys on most
5563 platforms, using special knowledge of AIX, BSD, etc...
5564 (unix_create_process): Always disconnect_controlling_terminal() for
5565 subprocesses, whether using ptys or not.
5566 * process.h: Remove old getpt-dependent PTY code.
5567 * process.c (Fprocess_send_signal): New, obvious generic function.
5568 (decode_signal): New.
5569 (Finterrupt_process):
5573 (Fcontinue_process):
5574 (Fsignal_process): Use decode_signal.
5575 (process_send_signal):
5576 Many docstring corrections.
5577 Allow any signal to be sent to a process object.
5578 * config.h.in: Add symbols for big signal/process overhaul.
5579 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5580 * sysproc.h: Include process-related headers, where available:
5581 sys/stropts.h sys/strtio.h pty.h libutil.h
5589 Remove old S&M pty stuff.
5590 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5591 * systty.h: Simplify cpp hackery, improve comments.
5592 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5594 * editfns.c (Fformat_time_string):
5595 Be a little more paranoid with the return value of ctime.
5597 * fileio.c (check_executable):
5599 Use symbolic constants X_OK, W_OK.
5601 * console-x.c (split_up_display_spec): Fix a warning.
5603 2000-10-02 Martin Buchholz <martin@xemacs.org>
5605 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5606 * ntproc.c (sys_spawnve): make_string ==> build_string
5607 Small clarity improvements.
5609 2000-09-30 Martin Buchholz <martin@xemacs.org>
5611 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5613 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5615 * config.h.in (HAVE_STRCASECMP): Remove.
5617 2000-09-29 Martin Buchholz <martin@xemacs.org>
5619 * redisplay-output.c (redisplay_output_pixmap):
5620 Cleaner and possibly more 64-bit correct code.
5622 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5624 * dumper.c (pdump_load_finish): move restoration of
5625 `noninteractive1' to emacs.c (main_1).
5626 * emacs.c (main_1): protect LISP-visible command-line flags
5629 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
5631 * Makefile.in.in (versionclean): Use EXE_TARGET and
5632 DUMP_TARGET instead of literal program names.
5634 2000-09-20 Martin Buchholz <martin@xemacs.org>
5636 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5638 2000-09-19 Martin Buchholz <martin@xemacs.org>
5640 * *: Spelling mega-patch
5642 2000-09-19 Martin Buchholz <martin@xemacs.org>
5644 * fns.c (bad_bad_turtle):
5645 Delete "Eek!" comment, since we fixed the bug to which it refers.
5647 2000-09-16 Martin Buchholz <martin@xemacs.org>
5649 * alloca.c: Replace REGISTER with register.
5651 2000-09-16 Daiki Ueno <ueno@unixuser.org>
5653 * file-coding.c (ucs_to_char): Use countof.
5655 2000-09-16 Martin Buchholz <martin@xemacs.org>
5657 * file-coding.c: (ucs_to_char):
5658 (complex_vars_of_file_coding):
5659 Use countof instead of sizeof.
5660 Use CHECK_NATNUM instead of CHECK_INT.
5662 * sysdep.c (strcasecmp): Remove.
5663 * device-x.c (ascii_strcasecmp): New.
5664 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5665 Avoid using non-standard non-portable strcasecmp.
5667 2000-09-16 Martin Buchholz <martin@xemacs.org>
5669 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5670 * font-lock.c: remove reference to emacsfns.h.
5671 * search.c: small doc improvement.
5672 * event-Xt.c: correct file names in comments.
5673 * console-x.h Correct file names in comments.
5674 * frame.c: Correct file names in comments.
5675 * event-stream.c: remove Energize from comments.
5677 2000-09-15 Martin Buchholz <martin@xemacs.org>
5679 * symeval.h (DEFERROR_STANDARD):
5682 (DEFSYMBOL_NO_DUMP):
5683 (DEFSYMBOL_MULTIWORD_PREDICATE):
5684 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5686 The construct &##name is not sensible C.
5687 Fixes compilation errors with Unixware native compiler.
5689 2000-09-14 Martin Buchholz <martin@xemacs.org>
5691 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5692 (next_frame_internal): Removed. We now just have next_frame.
5694 Write a simpler and cleaner one-pass algorithm.
5695 Remove called_from_delete_device arg and #ifdefed-out code.
5697 Renamed from prev_frame. Update callers.
5698 Cleaned up to have an analogous implementation to next_frame.
5699 (other_visible_frames_internal): Remove the
5700 called_from_delete_device bogus arg, and hence, remove this
5701 function. Just use other_visible_frames().
5703 * window.c (Fnext_window):
5705 Since next_frame() is guaranteed to return a frame, remove check
5706 for nil inserted in previous patch.
5709 Make code look more like Fnext_window.
5711 Respect the `console' arg when iterating through windows.
5712 Fixes bug: (get-buffer-window buffer t device) not respecting
5714 This function needs more work, as others have pointed out.
5716 * frame.h: Rename prev_frame to previous_frame.
5717 device_matches_console_spec no longer takes a `frame' arg.
5722 Use EMACS_BLOCK_SIGNAL instead of sigblock.
5723 From "Golubev I. N." <gin@mo.msk.ru>.
5725 * make-src-depend: Fix typo.
5727 2000-09-13 Martin Buchholz <martin@xemacs.org>
5729 * window.c (Fnext_window):
5730 next_frame() might return nil, not a frame.
5732 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5734 * frame.c (next_frame_internal):
5735 We've passed a frame if we've passed its device.
5737 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5738 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5740 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
5742 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5743 Allow option to suppress accelerators in menu/dialog items.
5744 (populate_or_checksum_helper): Pass dialog title through above.
5746 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
5748 * event-msw.c (mswindows_key_to_emacs_keysym):
5749 Add "pause" key, fix "menu" key.
5751 2000-09-09 Martin Buchholz <martin@xemacs.org>
5753 * eval.c (reinit_vars_of_eval):
5754 Increase max_lisp_eval_depth to 1000,
5755 required for thai-xtis.el to byte-compile under some circumstances.
5757 2000-09-04 Martin Buchholz <martin@xemacs.org>
5759 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5762 2000-09-01 Martin Buchholz <martin@xemacs.org>
5764 * make-src-depend: Make the generated Makefiles smaller.
5766 * s/hpux.h (SETUP_SLAVE_PTY):
5767 Provide a %d in the format string for the errno argument.
5769 * editfns.c (Ftemp_directory):
5771 Avoid buffer overrun on very long file name.
5773 * input-method-xlib.c (XIM_init_device):
5774 6th parameter of XRegisterIMInstantiateCallback has different
5775 pointer types on different OSes, so simply cast to (void *).
5777 * unexhp9k800.c: Warning fixes. Fiddly changes.
5779 * sysdll.c (dll_open):
5780 shl_load will hang hard if passed a NULL filename.
5781 Simply return NULL for compatibility with dlopen.
5782 * sysdll.c: Conform to XEmacs coding standards.
5784 * sysdep.c (get_pty_max_bytes):
5785 Support pty input lines longer than 512 bytes on HP-UX 10.20.
5787 2000-08-31 Martin Buchholz <martin@xemacs.org>
5789 * tooltalk.c: Add #include <syssignal.h>
5791 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
5793 * s/hpux.h: Don't use undefined function sigunblock().
5795 2000-08-31 Martin Buchholz <martin@xemacs.org>
5797 * config.h.in: Add HAVE_BALLOON_HELP.
5798 * emacs.c: Use HAVE_BALLOON_HELP.
5799 * Makefile.in.in (x_objs):
5800 Make Balloon Help conditional on finding shape.h.
5802 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
5804 * syntax.c (regex_emacs_buffer_p): New variable.
5805 * syntax.h (regex_emacs_buffer_p): extern.
5806 * search.c (looking_at_1):
5808 (fast_string_match):
5809 (search_buffer): Set regex_emacs_buffer_p.
5810 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5811 when before_dot, at_dot, after_dot.
5813 2000-08-23 Andy Piper <andy@xemacs.org>
5815 * gui-x.c (popup_selection_callback): Only set action_occurred
5816 when we really have an image instance.
5817 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5819 2000-08-23 Andy Piper <andy@xemacs.org>
5821 * gui-msw.c (mswindows_handle_gui_wm_command): set
5823 * gui-x.c (popup_selection_callback): ditto.
5825 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5826 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5827 (struct Lisp_Image_Instance): add action_occurred flag.
5829 * glyphs.c (redisplay_subwindow): use action_occurred flag.
5830 (image_instance_changed): ditto.
5831 (reset_frame_subwindow_instance_cache): only unmap windows - do
5832 not remove them from the cache also.
5834 * glyphs-widget.c (tab_control_update): better debug.
5835 (progress_gauge_update): ditto.
5836 (layout_update): ditto.
5837 (layout_instantiate): ditto.
5838 (tab_control_order_only_changed): cope with null pending items.
5840 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5841 debug. Force selection of an item when an action occurred. Cope
5842 with null pending_items.
5843 (mswindows_progress_gauge_redisplay): better debug.
5844 * glyphs-x.c (x_tab_control_redisplay): ditto.
5846 * redisplay.c (redisplay_frame): reset the frame cache if the
5849 * window.c (Fset_window_configuration): potentially re-enable
5851 (window_unmap_subwindows): need to finalize instances here since
5852 it is only used in mark_window_as_deleted.
5854 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
5856 * nas.c (SndOpenDataForReading):
5857 nas.c (WaveOpenDataForReading):
5858 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5859 Somehow escaped from the 2000-08-14 patch.
5861 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5863 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5864 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5866 2000-08-21 Andy Piper <andy@xemacs.org>
5868 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5869 window if it is not already displayed.
5871 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5872 it is not already displayed.
5874 * window.c (Fset_window_configuration): don't reset the frame
5877 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5878 instances from the frame cache if we are actually finalizing them.
5879 (reset_frame_subwindow_instance_cache): reset frame cache only
5880 after unmapping everything.
5881 (map_subwindow): set displayed flag after mapping.
5883 2000-08-21 Martin Buchholz <martin@xemacs.org>
5885 * data.c (indirect_function):
5886 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5888 * eval.c (function_argcount):
5889 Use original function when signaling errors.
5891 2000-08-18 Andy Piper <andy@xemacs.org>
5893 * frame.c (delete_frame_internal): use new
5894 free_frame_subwindow_instances name.
5896 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5897 (add_tab_item): make return type correct.
5898 (mswindows_tab_control_instantiate): assert index of tab.
5899 (mswindows_tab_control_redisplay): Re-code to use
5900 gui_item_equal_sans_selected and gui_item_list_find_selected.
5902 * glyphs-widget.c (tab_control_update): Correct comment.
5904 * window.c (window_unmap_subwindows): use new
5905 unmap_subwindow_instance_cache_mapper.
5906 (window_unmap_subwindows_cache_mapper): deleted.
5907 (Fset_window_configuration): comparisons should now be with
5908 EQ. Preserve the subwindow instance cache across configuration
5910 (allocate_window): ditto.
5911 (make_dummy_parent): ditto.
5913 * glyphs.c (free_frame_subwindow_instances): rename from
5914 free_frame_subwindow_instance_cache. finalize all instances rather
5915 than just those in the display cache.
5916 (finalize_all_subwindow_instances): walk windows unmapping and
5917 finalizing subwindows.
5918 (unmap_subwindow_instance_cache_mapper): moved from
5919 window.c. Allow finalization as well as unmapping.
5921 * gui.c (gui_item_list_find_selected): new function.
5923 * gui.h (gui_item_list_find_selected): declare.
5925 * glyphs-x.c (x_tab_control_redisplay): pick tab
5926 explicitly. Re-code to use gui_item_equal_sans_selected and
5927 gui_item_list_find_selected.
5929 * glyphs-x.h: add lwlib-utils.h
5931 * buffer.c (Frecord_buffer): undo previous change.
5933 2000-08-09 Vin Shelton <acs@xemacs.org>
5935 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5936 possible. Create temporary files more securely. The patch was
5937 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5938 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
5939 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5942 2000-08-07 Ben Wing <ben@xemacs.org>
5944 * getloadavg.c: remove duplicate (and windows-breaking)
5945 includes of fcntl.h and sys/file.h.
5947 * nt.c: remove duplicate getloadavg() definition.
5949 * sysdll.h (Qdll_filename_encoding): add missing stand-in
5952 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
5954 * eval.c (function_argcount): If function needs to be autoloaded
5955 actually use the loaded definition.
5958 2000-08-05 Ben Wing <ben@xemacs.org>
5960 * getloadavg.c: add prototype for getloadavg(). remove
5961 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5962 of the code). remove duplicate header includes.
5964 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5966 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5967 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5968 useful load average.
5970 * alloc.c (reinit_alloc_once_early): removed references to
5971 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5972 the lisp vars are the only things referencing the malloc_sbrk_*
5973 vars, and they were already if 0'd out. these vars only exist
5974 in the older malloc.c, which is basically unused, and they're
5975 only for informational purposes.
5977 * m\*.h: removed useless VIRT_ADDR_VARIES.
5979 * m\powerpc.h: removed stray NO_ARG_ARRAY.
5981 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
5983 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5984 color if the image is a mono pixmap.
5986 2000-07-30 Ben Wing <ben@xemacs.org>
5988 * Makefile.in.in (release):
5991 * buffer.c (directory_is_current_directory):
5992 * dired-msw.c (mswindows_get_files):
5994 * dired.c (Fdirectory_files):
5995 * dired.c (file_name_completion_stat):
5996 * dired.c (Ffile_attributes):
5997 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5998 preprocessor tricks, to avoid problems on some machines
6001 * callproc.c (egetenv): GC docs.
6004 * console-msw.h (struct mswindows_dialog_id):
6005 * lrecord.h (lrecord_type):
6006 New object for use with MSW dialogs.
6008 * console.h (struct console_methods):
6009 New enable/disable frame methods, for proper modal dialogs.
6011 * device-msw.c (msprinter_default_printer): Fix to follow
6012 proper Mule conventions.
6015 * device-msw.c (signal_open_printer_error):
6016 * device-msw.c (msprinter_init_device):
6017 * device-msw.c (ensure_not_printing):
6018 * device-msw.c (plist_get_margin):
6019 * device-msw.c (Fmsprinter_select_settings):
6020 * device-msw.c (finalize_devmode):
6021 * device-msw.c (Fmsprinter_settings_despecialize):
6022 * device-msw.c (signal_enum_priner_error):
6023 * extents.c (decode_extent):
6024 * extents.c (decode_map_extents_flags):
6025 * extents.c (decode_extent_at_flag):
6026 * extents.c (Fextent_at):
6027 * extents.c (Fextents_at):
6028 * extents.c (symbol_to_glyph_layout):
6029 [[[[2]]]] Use structured errors.
6032 * dialog-msw.c (mswindows_is_dialog_msg):
6033 * dialog-msw.c (mark_mswindows_dialog_id):
6034 * dialog-msw.c (dialog_proc):
6035 * dialog-msw.c (handle_question_dialog_box):
6036 * dialog-msw.c (syms_of_dialog_mswindows):
6037 Define new object to clean up marking; use it as a dialog identifier.
6038 Call new delete-dialog-box-hook.
6040 * dialog-x.c (dbox_selection_callback):
6041 * dialog-x.c (dbox_descriptor_to_widget_value):
6042 * dialog-x.c (x_make_dialog_box_internal):
6043 Call new delete-dialog-box-hook.
6047 * dialog.c (syms_of_dialog):
6048 * dialog.c (vars_of_dialog):
6049 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6052 * eval.c (signal_call_debugger):
6053 when noninteractive, output stack traces on the console instead
6054 of in a (never-seen) buffer.
6056 * eval.c (signal_type_error):
6057 * eval.c (invalid_argument_2):
6059 new funs for use w/structured errors.
6062 * event-Xt.c (x_to_emacs_keysym):
6063 * event-Xt.c (describe_event):
6064 * event-Xt.c (emacs_Xt_event_handler):
6065 * event-Xt.c (vars_of_event_Xt):
6067 * event-msw.c (mswindows_wnd_proc):
6068 * event-msw.c (vars_of_event_mswindows):
6069 rename {x,mswindows}-debug-events to debug-{}-events for
6070 consistency with other debug-foo variables.
6073 document next-event more clearly.
6075 * fileio.c (Ffile_name_directory):
6076 * fileio.c (Ffile_name_nondirectory):
6077 * fileio.c (Funhandled_file_name_directory):
6078 * fileio.c (file_name_as_directory):
6079 * fileio.c (Ffile_name_as_directory):
6080 * fileio.c (directory_file_name):
6081 * fileio.c (Fdirectory_file_name):
6082 * fileio.c (Fmake_temp_name):
6083 * fileio.c (Ffile_truename):
6084 * fileio.c (Fsubstitute_in_file_name):
6085 * fileio.c (expand_and_dir_to_file):
6086 * fileio.c (barf_or_query_if_file_exists):
6087 * fileio.c (check_executable):
6088 * fileio.c (Ffile_exists_p):
6089 * fileio.c (Ffile_writable_p):
6090 * fileio.c (Ffile_directory_p):
6091 * fileio.c (Ffile_regular_p):
6092 * fileio.c (Ffile_modes):
6093 * fileio.c (Ffile_newer_than_file_p):
6094 * fileio.c (Fverify_visited_file_modtime):
6095 * fileio.c (Fset_visited_file_modtime):
6096 * fileio.c (auto_save_1):
6101 * frame-msw.c (mswindows_init_frame_1):
6102 * frame-msw.c (mswindows_enable_frame):
6103 * frame-msw.c (error_frame_unsizable):
6104 * frame-msw.c (msprinter_init_frame_1):
6105 * frame-msw.c (msprinter_init_frame_3):
6106 * frame-msw.c (console_type_create_frame_mswindows):
6108 implement new enable/disable frame methods.
6111 * frame-x.c (x_enable_frame):
6112 * frame-x.c (console_type_create_frame_x):
6113 implement new enable/disable frame methods.
6116 * frame.c (Fdisable_frame):
6117 * frame.c (syms_of_frame):
6118 * frame.h (struct frame):
6119 implement new enable/disable frame methods/functions.
6124 * glyphs-msw.c (mswindows_widget_instantiate):
6125 comment that initial-focus should be implemented.
6128 * glyphs-widget.c (check_valid_instantiator):
6129 * glyphs-widget.c (check_valid_orientation):
6130 * glyphs-widget.c (check_valid_tab_orientation):
6131 * glyphs-widget.c (check_valid_justification):
6132 * glyphs-widget.c (check_valid_border):
6133 * glyphs-widget.c (check_valid_callback):
6134 * glyphs-widget.c (check_valid_int_or_function):
6135 * glyphs-widget.c (check_valid_string_or_vector):
6136 * glyphs-widget.c (check_valid_item_list_1):
6137 * glyphs-widget.c (widget_validate):
6138 * glyphs-widget.c (combo_box_validate):
6139 * glyphs-widget.c (widget_instantiate):
6140 * glyphs-widget.c (syms_of_glyphs_widget):
6141 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6142 * glyphs-widget.c (image_instantiator_combo_box):
6143 * glyphs-widget.c (image_instantiator_scrollbar):
6144 * glyphs-widget.c (image_instantiator_tab_control):
6145 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6147 support (unimplemented) keyword initial-focus.
6148 reindent long macros.
6150 * glyphs-x.c (x_redisplay_widget):
6151 * glyphs-x.c (x_button_instantiate):
6152 * glyphs-x.c (x_button_redisplay):
6153 * glyphs-x.c (x_progress_gauge_instantiate):
6154 * glyphs-x.c (x_edit_field_instantiate):
6155 * glyphs-x.c (x_combo_box_instantiate):
6156 * glyphs-x.c (x_tab_control_instantiate):
6157 * glyphs-x.c (x_label_instantiate):
6159 * gui-x.c (button_item_to_widget_value):
6160 * gui-x.c (gui_items_to_widget_values_1):
6161 * gui-x.c (gui_item_children_to_widget_values):
6162 * gui-x.c (gui_items_to_widget_values):
6164 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6165 add new flag to gui-parsing routines to indicate whether
6166 accelerator specs should be supported.
6168 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6170 * glyphs.h (struct Lisp_Image_Instance):
6171 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6172 add initial-focus flag.
6175 * gui.c (syms_of_gui):
6176 * gui.c (vars_of_gui):
6177 clean up menu-no-selection-hook.
6180 support delete-dialog-box-hook.
6182 * lread.c (Fload_internal):
6183 * lread.c (locate_file_in_directory_mapper):
6187 * lrecord.h (struct toolbar_button):
6188 * lrecord.h (syms_of_toolbar):
6189 document how to create a new object.
6191 * menubar-msw.c (mswindows_char_is_accelerator):
6192 may be called on frames w/o menus.
6194 * menubar.c (vars_of_menubar):
6195 clean up :filter docs.
6202 * process-nt.c (validate_signal_number):
6203 * process-nt.c (signal_cannot_launch):
6204 * process-nt.c (nt_create_process):
6205 * process-nt.c (nt_send_process):
6206 * process-nt.c (nt_kill_child_process):
6207 * process-nt.c (nt_open_network_stream):
6208 * process-nt.c (syms_of_process_nt):
6210 delete quote-handling. call new lisp code that does it better.
6212 * process-unix.c (connect_to_file_descriptor):
6213 * process-unix.c (allocate_pty):
6214 * process-unix.c (unix_send_process):
6215 * process-unix.c (unix_kill_child_process):
6216 * process-unix.c (unix_open_network_stream):
6217 * process-unix.c (unix_open_multicast_group):
6221 * process.c (Fstart_process_internal):
6222 (2). need to canonicalize process path even if absolute.
6224 * select-msw.c (symbol_to_ms_cf):
6225 * select-msw.c (ms_cf_to_symbol):
6226 * select-msw.c (cf_is_autofreed):
6227 * select-msw.c (mswindows_destroy_selection):
6229 * select.c (syms_of_select):
6231 support dibv5, fix bugs. (from Mike Alexander)
6233 * select.c (Fget_selection_internal):
6234 * select.c (select_convert_out):
6237 * sysdep.c (xemacs_stat):
6242 but keep original stat() here because we provide encapsulation
6246 * sysfile.h (fstat):
6247 remove stat garbage.
6251 don't include tchar.h. it's inappropriate because it makes
6252 compile-time distinctions when we want runtime distinctions.
6253 (we provide our own tchar replacements)
6256 use default object printer for toolbar-button.
6259 make sure we don't encapsulate.
6261 * window.c (vars_of_window):
6262 emphasize that temp-buffer-show-hook is obsolete.
6264 2000-08-05 Martin Buchholz <martin@xemacs.org>
6266 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6267 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6269 * events.c (Fevent_timestamp_lessp):
6270 Not 64-bit clean. Use EMACS_INT, not int.
6272 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6274 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6275 unsigned int and changed the last enum to
6276 lrecord_type_last_built_in_type.
6277 (lrecord_implementations_table): changed prototype to know how
6278 long the array is supposed to be.
6279 (lrecord_type_count): new unsigned int to keep track of the
6280 current number of lisp lrecord types.
6281 (DEFINE_EXTERNAL_LRECORD):
6282 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6283 dynamic-modules to declare new lisp types. They are the same
6284 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6285 int for each new type, and increment lrecord_type_count by 1.
6287 * alloc.c (lrecord_implementations_table): Changed to reference
6288 lrecord_type_last_built_in_type for the size of the array.
6289 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6291 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6293 * glyphs.h (check_valid_item_list): Renamed from
6294 check_valid_item_list_1.
6296 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6298 * select.c (Qselect_coerce): New.
6299 * select.c (Vselection_coercion_alist): New.
6300 * select.c (syms_of_select): Declare.
6301 * select.c (get-selection-internal): Use it.
6302 Use the new select-coerce functionality.
6304 * select.c (select_coerce): New.
6305 * select.h (select_coerce): Declare.
6306 New function to coerce one type of data into another.
6308 2000-08-03 Martin Buchholz <martin@xemacs.org>
6310 * callproc.c (Fcall_process_internal):
6311 (Fcall_process_internal):
6312 * process-unix.c (unix_create_process):
6313 Save and restore the value of errno, so that error messages are accurate.
6315 2000-08-01 Martin Buchholz <martin@xemacs.org>
6317 * elhash.c (print_hash_table):
6318 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6319 Prettify docstrings and indentation.
6321 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6323 * window.c (Fwindow_pixel_edges): Subtract frame border and
6326 2000-07-31 Andy Piper <andy@xemacs.org>
6328 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6329 will acknowledge the change.
6331 * glyphs.h: declare tab_control_order_only_changed.
6333 * glyphs-x.c (x_tab_control_redisplay): use
6334 tab_control_order_only_changed.
6336 * glyphs-widget.c (tab_control_order_only_changed): new function.
6338 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6339 tab_control_order_only_changed.
6341 * gui.c (gui_item_equal_sans_selected): new function.
6342 (gui_item_equal): use it.
6344 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6345 :properties in favor of :items..
6347 * glyphs-widget.c (check_valid_item_list): rename from
6348 check_valid_item_list_1.
6349 (check_valid_item_list_1): renamed.
6350 (combo_box_validate): deprecate :properties in favor of :items.
6351 (widget_instantiate): ditto.
6352 (tab_control_update): ditto.
6353 (image_instantiator_combo_box): ditto.
6354 (image_instantiator_tree_view): ditto.
6355 (image_instantiator_tab_control): ditto.
6356 (layout_post_instantiate): remove dead code.
6358 * print.c (debug_print_no_newline): only write to debugger if in
6361 * elhash.c (Fmake_hash_table): update doc string.
6363 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6364 messages whilst in GC. This at least stops XEmacs crashing but has
6365 the potential for wierd behaviour.
6367 2000-07-31 Martin Buchholz <martin@xemacs.org>
6370 Make existence of s&m files optional.
6372 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6373 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6374 * s/gnu.h: Remove HAVE_GETLOADAVG.
6375 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6376 * s/sol2.h: Remove HAVE_GETLOADAVG.
6377 * lisp.h: Remove getloadavg() declaration.
6379 Include <sys/loadavg.h> if available.
6380 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6381 * config.h.in: Group together getloadavg()-related macros.
6382 Use only configure-time tests to detect getloadavg().
6384 2000-07-30 Martin Buchholz <martin@xemacs.org>
6386 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6388 2000-07-25 Andy Piper <andy@xemacs.org>
6390 * syswindows.h: add tchar.h for native builds.
6392 * frame.c (syms_of_frame): remove set-glyph-image.
6394 * general-slots.h: add Qset_glyph_image.
6396 * glyphs-widget.c (layout_update): add domain arg to
6398 (syms_of_glyphs_widget): remove set-glyph-image.
6400 2000-07-23 Ben Wing <ben@xemacs.org>
6402 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6405 2000-07-22 Andy Piper <andy@xemacs.org>
6407 * symsinit.h: add syms_of_win32().
6409 * gui-msw.c (syms_of_gui_mswindows): remove
6410 Fmswindows_shell_execute.
6411 (Fmswindows_shell_execute): moved to win32.c.
6413 * emacs.c (main_1): add syms_of_win32 ().
6415 * win32.c (init_potentially_nonexistent_functions): rewrite in
6416 compiler-friendly terms.
6417 (Fmswindows_shell_execute): move here from gui-msw.c.
6418 (syms_of_win32): new.
6420 * device-msw.c (Fmswindows_printer_list): clean up args to
6422 Don't include tchar under cygwin or mingw.
6423 (msprinter_default_printer): make cygwin-friendly.
6425 2000-07-21 Andy Piper <andy@xemacs.org>
6427 * glyphs-widget.c (image_instantiator_tree_view): use tab
6428 control's update function.
6429 (layout_property): new function. Retrieve items.
6431 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6432 function. Re-populate the tree view from the pending items.
6434 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6435 is designated the parent if the domain is an image instance. This
6436 is needed so that dirtiness can be cascade up the hierarchy and
6437 thus for layout children to be redisplayed correctly.
6438 (allocate_image_instance): rename glyph -> parent.
6440 * redisplay.h: change redisplay_output_layout signature.
6442 * redisplay-msw.c (mswindows_output_display_block): use domain
6445 * redisplay-x.c (x_output_display_block): use domain arg.
6447 2000-07-10 Andy Piper <andy@xemacs.org>
6449 * window.c (Fset_window_configuration): add comment.
6451 * redisplay-output.c (compare_runes):
6452 (redisplay_output_subwindow): redisplay rather than update subwindow.
6453 (redisplay_output_layout): ditto.
6455 * redisplay-msw.c (mswindows_frame_output_end):
6456 (mswindows_frame_output_end): make defer window pos optional.
6458 * lisp.h: add Flast.
6460 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6461 normalize method. Change update method to be for changed
6462 instantiators. Add redisplay method. Change signature of layout
6464 (struct Lisp_Image_Instance): add instantiator.
6465 (IMAGE_INSTANCE_INSTANTIATOR): new.
6466 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6467 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6468 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6471 (find_instantiator_differences): new function.
6472 (Fset_instantiator_property): new convenience function.
6473 (check_image_instance_structure): strictly check for vector
6475 (normalize_image_instantiator): make non-static.
6476 (instantiate_image_instantiator): pass on dest_mask and use new
6477 signatures for image_instance_layout and friends.
6478 (mark_image_instance): mark the instantiator. Mark the subwindow
6479 face not the widget face.
6480 (image_instance_equal): add instantiator.
6481 (image_instance_hash): ditto.
6482 (allocate_image_instance): ditto.
6483 (Fset_image_instance_property): removed.
6484 (Fimage_instance_file_name): ditto.
6485 (Fcolorize_image_instance): ditto.
6486 (image_instance_layout): add offsets to be set.
6487 (update_image_instance): new function. update an image instance
6488 from its changed instantiator.
6489 (inherit_normalize): add dest_mask.
6490 (xbm_normalize): ditto.
6491 (xface_normalize): ditto.
6492 (xpm_normalize): ditto.
6493 (text_update): set_property -> update.
6494 (image_instantiate): use the glyph identity as a hash key, not the
6496 (glyph_width): use new image_instance_layout signature.
6497 (glyph_ascent): ditto.
6498 (glyph_descent): ditto.
6499 (glyph_height): ditto.
6500 (glyph_query_geometry): ressurrect.
6501 (glyph_layout): ditto.
6502 (redisplay_subwindow): update -> redisplay.
6503 (syms_of_glyphs): add Fset_instantiator_property.
6504 (image_instantiator_format_create): set_property -> update.
6507 (autodetect_normalize): add dest_maks to signature.
6508 (x_redisplay_subwindow): update -> redisplay.
6509 (x_redisplay_widget): ditto.
6510 (x_button_redisplay): ditto.
6511 (x_progress_gauge_redisplay): ditto.
6512 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6514 (console_type_create_glyphs_x): update -> redisplay.
6515 (image_instantiator_format_create_glyphs_x): ditto.
6518 (check_valid_instantiator): disallow glyphs in the instantiator,
6519 they must now be vectors.
6520 (check_valid_instantiator_list): ditto.
6521 (glyph_instantiator_to_glyph): use internal symbol rather than
6523 (widget_update): renamed from widget_set_property. Call cascaded
6525 (redisplay_widget): renamed from update_widget.
6526 (widget_layout): image_instance_layout now takes position as well
6528 (widget_normalize): ditto.
6529 (widget_instantiate): ditto.
6530 (tab_control_query_geometry) ditto.:
6531 (tab_control_update): renamed from tab_control_set_property.
6532 (progress_gauge_update): set_property -> update.
6533 (layout_normalize): rewrite so that child instantiators are
6535 (layout_update): new function. Create glyphs from the normalized
6536 children and cope with any other layout keywords. We do not
6537 instantiate children here that will be take care of by
6538 redisplay_output_layout.
6539 (layout_instantiate): call layout_update and not much else.
6540 (layout_post_instantiate): not sure whether this is needed
6542 (layout_query_geometry): query glyph geometry rather than
6543 image_instance geometry.
6544 (layout_layout): set offsets from pass in parameters. Use glyph
6545 geometry and layout functions rather than image instance ones.
6546 (native_layout_layout): ditto.
6547 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6548 (image_instantiator_widget): set_property -> update.
6549 (image_instantiator_buttons): ditto.
6550 (image_instantiator_progress_guage): ditto.
6551 (image_instantiator_tab_control): ditto.
6552 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6553 (image_instantiator_layout): add update method.
6555 * glyphs-msw.c (bmp_normalize):
6556 (mswindows_resource_normalize): add dest_mask so that it can be
6557 proprogated by layout_normalize.
6558 (begin_defer_window_pos): make optional because it may not be the
6559 right thing to do and it introduces differences with X.
6560 (mswindows_unmap_subwindow): ditto.
6561 (mswindows_map_subwindow): ditto.
6562 (mswindows_redisplay_subwindow): renamed from
6563 mswindows_update_subwindow.
6564 (mswindows_redisplay_widget): ditto.
6565 (mswindows_button_redisplay): renamed from
6566 mswindows_button_update. Update is now what the instantiation
6567 function does for a changed instantiator.
6568 (mswindows_progress_gauge_instantiate): set the progress value
6569 here if appropriate.
6570 (mswindows_tab_control_redisplay): cope with re-ordering of the
6571 members of the tab widget by simply selecting the new top
6572 widget. This makes things appear ok if you click on a tab.
6573 (mswindows_combo_box_instantiate): image_instance_layout now takes
6574 position as well as size.
6575 (mswindows_progress_gauge_redisplay): renamed from
6576 mswindows_progress_gauge_update.
6577 (console_type_create_glyphs_mswindows): fix update -> redisplay.
6578 (image_instantiator_format_create_glyphs_mswindows): ditto.
6580 * glyphs-eimage.c (jpeg_normalize):
6583 (tiff_normalize): add dest_mask so that it can be proprogated by
6588 (hash_table_weakness_validate):
6589 (decode_hash_table_weakness):
6590 (Fhash_table_weakness):
6592 (syms_of_elhash): use Ben's naming scheme for hashtable types..
6594 * console.h (struct console_methods): move update_* to
6597 2000-07-20 Ben Wing <ben@xemacs.org>
6599 * *.[ch] (XSETOBJ): remove unused middle argument.
6600 lisp-disunion.h: correct wrap_object() to one argument.
6602 2000-07-15 Ben Wing <ben@xemacs.org>
6605 * s/cygwin32.h (CYGWIN_CONV_PATH):
6606 Add missing logb prototype for v1.1.
6607 Use post-b20 names and alias to pre-b20 names when pre-b20.
6609 * s/windowsnt.h: [5].
6611 2000-07-15 Ben Wing <ben@xemacs.org>
6613 * Makefile.in.in (x_objs):
6614 * Makefile.in.in (sheap_objs):
6615 * Makefile.in.in (objs):
6616 added win32.o, cosmetic cleanups.
6618 * alloc.c (Fmake_byte_code):
6619 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6620 etc. macros which declare their own args now.
6622 * alloc.c (syms_of_alloc):
6623 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6626 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6628 * buffer.c (Fget_file_buffer):
6629 Fixed GCPRO problem.
6631 * buffer.c (get_truename_buffer):
6632 Fixed comment about GC checking.
6634 * buffer.c (syms_of_buffer):
6635 Undeclared those dedicated frame funs.
6639 Define convenience macros for internal/external conversions.
6640 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6641 and Qenvironment_variable_encoding for cleaner code.
6644 Remove dedicated-frame; in lisp.
6646 * bytecode.c (funcall_compiled_function):
6649 * bytecode.c (syms_of_bytecode):
6653 * console-msw.c (mswindows_show_console): Rewrote.
6655 * console-msw.c (Fmswindows_debugging_output): New.
6656 Sends to OutputDebugString (special MSWin debugger interface).
6658 * console-msw.c (Fmswindows_message_box):
6659 Fixed stupid bugs so it works when called from kill-emacs.
6661 * console-msw.c (syms_of_console_mswindows):
6662 Declare Fmswindows_debugging_output.
6665 New MSWin prototypes.
6667 * console-msw.h (struct mswindows_frame):
6668 New entry last-click-mods for improved button-modifier support.
6670 * console-msw.h (FRAME_MSWINDOWS_POPUP):
6671 New struct entry `popup' with corresponding accessor.
6674 * console-x.c (split_up_display_spec):
6675 * console-x.c (get_display_arg_connection):
6676 * console-x.c (x_semi_canonicalize_console_connection):
6677 * console-x.c (x_canonicalize_device_connection):
6678 [[[6]]]: Change char to more specific type.
6679 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6681 * console-x.c (x_semi_canonicalize_console_connection):
6682 * console-x.c (x_canonicalize_device_connection):
6683 [[[9]]]: Fix up error signalling to use new structured error system.
6686 [[[4]]]: Define codesys aliases:
6687 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6688 Qx_color_name_encoding, Qx_display_name_encoding.
6690 * console.h (struct console_methods):
6691 New method make_dialog_box_internal supersedes older
6692 popup_dialog_box method.
6695 Define many new errors, part of new structured errors.
6697 * data.c (init_errors_once_early):
6698 * data.c (syms_of_data):
6701 * device-msw.c (mswindows_init_device):
6702 [[[5]]]: Cleanup to support NT 3.51.
6704 * device-msw.c (decode_devmode): Cleanup.
6706 * device-msw.c (mswindows_handle_print_setup_dialog_box):
6707 * device-msw.c (mswindows_handle_print_dialog_box):
6708 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6709 * device-msw.c (syms_of_device_mswindows):
6710 Delete the dialog box primitives recently introduced by Kirill and
6711 instead interface to general dialog box interface.
6714 * device-x.c (compute_x_app_name):
6715 * device-x.c (x_init_device):
6716 * device-x.c (Fx_valid_keysym_name_p):
6717 * device-x.c (Fx_set_font_path):
6721 * device.h (wrap_device): New.
6722 First of its kind; meant to replace XSETDEVICE.
6724 * dialog-msw.c: Many file-dialog symbols.
6726 * dialog-msw.c (mswindows_register_popup_frame): New.
6727 * dialog-msw.c (mswindows_is_dialog_msg): New.
6728 For supporting kbd traversal in dialog boxes.
6730 * dialog-msw.c (dialog_proc):
6731 Support hitting ESC in dialogs.
6733 * dialog-msw.c (struct):
6734 Common dialog box errors.
6736 * dialog-msw.c (handle_file_dialog_box): New.
6737 Add file dialog code.
6739 * dialog-msw.c (handle_question_dialog_box):
6740 Redo existing code to support new question dialog syntax.
6742 * dialog-msw.c (console_type_create_dialog_mswindows):
6743 We support new dialog console method.
6745 * dialog-msw.c (syms_of_dialog_mswindows):
6746 * dialog-msw.c (vars_of_dialog_mswindows):
6747 New file dialog symbols, vars.
6750 * dialog-x.c (maybe_run_dbox_text_callback):
6751 * dialog-x.c (dbox_descriptor_to_widget_value):
6752 * dialog-x.c (x_make_dialog_box_internal):
6753 * dialog-x.c (console_type_create_dialog_x):
6754 Mule-ize entire file.
6755 Redo to support question dialog syntax.
6759 * dialog.c (Fmake_dialog_box_internal):
6760 * dialog.c (syms_of_dialog):
6761 Kill old popup-dialog-box, replace with new primitive.
6762 Just call device method or signal error.
6764 * eldap.c (Fldap_open):
6765 * eldap.c (Fldap_search_basic):
6766 * eldap.c (Fldap_add):
6767 * eldap.c (Fldap_modify):
6772 * emacs.c (make_arg_list_1):
6773 * emacs.c (make_arg_list):
6774 Mule-ize call to dll_init().
6778 * emacs.c (make_argc_argv):
6779 * emacs.c (free_argc_argv):
6780 * emacs.c (init_cmdargs):
6782 * emacs.c (Fkill_emacs):
6783 * emacs.c (Fdump_emacs):
6784 Update comments about what can be used in syms_* etc.
6785 Call init_win32() when necessary.
6786 Fix up MS Win dialog box in kill-buffer to actually work right.
6797 * eval.c (condition_case_3):
6799 * eval.c (function_argcount):
6800 * eval.c (funcall_lambda):
6803 * eval.c (type_error): New.
6804 * eval.c (maybe_type_error): New.
6805 * eval.c (continuable_type_error): New.
6806 * eval.c (maybe_continuable_type_error): New.
6807 * eval.c (type_error_with_frob): New.
6808 * eval.c (maybe_type_error_with_frob): New.
6809 * eval.c (continuable_type_error_with_frob): New.
6810 * eval.c (maybe_continuable_type_error_with_frob): New.
6811 New functions for use with structured errors.
6814 * event-Xt.c (x_event_to_emacs_event):
6815 Buttons are now modifiers too.
6817 * event-Xt.c (emacs_Xt_current_event_timestamp):
6818 Implement new event method.
6819 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6822 * event-msw.c (ntpipe_shove_writer): [5].
6823 * event-msw.c (mswindows_enqueue_mouse_button_event):
6824 * event-msw.c (mswindows_drain_windows_queue):
6825 * event-msw.c (mswindows_wnd_proc): [7].
6826 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6827 * event-msw.c (mswindows_modifier_state):
6828 Throughout: support new button modifiers.
6830 * event-msw.c (emacs_mswindows_current_event_timestamp):
6831 Implement new event method.
6832 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6835 * event-stream.c (event_stream_current_event_timestamp): New.
6836 * event-stream.c (maybe_kbd_translate): New functionality.
6837 * event-stream.c (vars_of_event_stream):
6838 Document new kbd-translate-table functionality.
6840 * event-stream.c (Fcurrent_event_timestamp): New.
6841 New primitive for use in fabricated events.
6842 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6844 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6847 * events.c (Fmake_event):
6848 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6852 * events.c (format_event_object): fix gcc warnings.
6854 * events.c (Fevent_timestamp): Document new primitives.
6856 * events.c (TIMESTAMP_HALFSPACE): New.
6858 * events.c (Fevent_timestamp_lessp): New. New primitive for
6859 comparing timestamps correctly (half-space algorithm).
6861 * events.c (Fevent_modifier_bits): Doc fix.
6863 * events.c (Fevent_modifiers): Major doc addition.
6864 * events.c (event_x_y_pixel_internal): Typo fix.
6865 * events.c (syms_of_events): Declare new primitives.
6868 Update long comment for button modifiers, timestamps.
6870 * events.h (struct event_stream):
6871 New current_event_timestamp method.
6874 * extents.c (extent_in_region_p):
6875 * extents.c (decode_extent):
6876 * extents.c (Fset_extent_parent):
6877 * extents.c (decode_map_extents_flags):
6881 * extents.c (struct extent_at_arg):
6882 * extents.c (decode_extent_at_flag):
6883 * extents.c (extent_at_mapper):
6884 * extents.c (extent_at_bytind):
6885 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6886 * extents.c (Fextents_at): New primitive. [9].
6887 * extents.c (symbol_to_glyph_layout): [9].
6888 Support new primitive `extents-at'.
6891 * extents.c (get_text_property_bytind):
6892 extent_at_bytind has another arg.
6895 * extents.c (syms_of_extents): New primitive.
6897 * file-coding.c (Fmake_coding_system): [1].
6898 * file-coding.c (subsidiary_coding_system): fix gcc warning
6899 * file-coding.c (syms_of_file_coding): [2].
6901 * fileio.c (Fexpand_file_name):
6902 * fileio.c (Fsysnetunam):
6903 * fileio.c (Ffile_exists_p):
6904 * fileio.c (Ffile_executable_p):
6905 * fileio.c (Fverify_visited_file_modtime):
6908 * fileio.c (syms_of_fileio): [2].
6910 * filelock.c (lock_file_1):
6911 * filelock.c (current_lock_owner):
6912 * filelock.c (lock_if_free):
6913 * filelock.c (lock_file):
6914 * filelock.c (unlock_file):
6917 * fns.c (concat): Fix gcc warning.
6920 * fns.c (Fold_member):
6922 * fns.c (Fold_memq):
6923 * fns.c (memq_no_quit):
6925 * fns.c (Fold_assoc):
6927 * fns.c (Fold_assq):
6928 * fns.c (assq_no_quit):
6930 * fns.c (Fold_rassoc):
6932 * fns.c (Fold_rassq):
6933 * fns.c (rassq_no_quit):
6935 * fns.c (Fold_delete):
6937 * fns.c (Fold_delq):
6938 * fns.c (delq_no_quit):
6939 * fns.c (Fremassoc):
6941 * fns.c (remassq_no_quit):
6942 * fns.c (Fremrassoc):
6943 * fns.c (Fremrassq):
6944 * fns.c (remrassq_no_quit):
6949 * frame-msw.c (mswindows_init_frame_1):
6950 * frame-msw.c (mswindows_delete_frame):
6951 Register popups with dialog code so keyboard traversing works.
6953 * frame-tty.c (tty_raise_frame_no_select): [1].
6956 * frame-x.c (x_set_frame_text_value):
6957 * frame-x.c (x_set_frame_properties):
6958 * frame-x.c (x_create_widgets):
6962 * frame.c (Fmouse_pixel_position): Minor doc fixes.
6964 * frame.h (wrap_frame): New.
6965 Macro like wrap_device.
6968 * general.c (SYMBOL):
6969 * general.c (syms_of_general):
6970 Major reorg. This is now just a wrapper and symbols themselves
6971 are listed in general-slots.h.
6973 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6974 * glyphs-msw.c (mswindows_resource_instantiate): [5].
6976 * glyphs-msw.c (mswindows_native_layout_instantiate):
6977 Add DS_CONTROL so keyboard traversal will work.
6980 * glyphs-widget.c (syms_of_glyphs_widget):
6981 Move some symbols to general-slots.h.
6984 * glyphs-x.c (xbm_instantiate_1):
6985 * glyphs-x.c (x_xbm_instantiate):
6986 * glyphs-x.c (x_xface_instantiate):
6987 * glyphs-x.c (autodetect_instantiate):
6988 * glyphs-x.c (cursor_font_instantiate):
6989 * glyphs-x.c (x_update_widget):
6990 * glyphs-x.c (x_widget_instantiate):
6991 * glyphs.c (bitmap_to_lisp_data):
6992 * glyphs.c (pixmap_to_lisp_data):
6995 * glyphs.c (syms_of_glyphs):
6999 * gui-x.c (print_widget_value):
7000 * gui-x.c (menu_separator_style_and_to_external):
7001 * gui-x.c (add_accel_and_to_external):
7002 * gui-x.c (button_item_to_widget_value):
7003 * gui-x.c (gui_items_to_widget_values_1):
7004 * gui-x.c (gui_items_to_widget_values):
7005 * gui-x.c (syms_of_gui_x):
7006 * gui-x.c (vars_of_gui_x):
7007 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7011 Muleize, prototype changes matching gui-x.c.
7014 * gui.c (separator_string_p):
7015 * gui.c (gui_item_add_keyval_pair):
7016 * gui.c (make_gui_item_from_keywords_internal):
7017 * gui.c (signal_too_long_error):
7018 * gui.c (parse_gui_item_tree_item):
7019 * gui.c (syms_of_gui):
7020 * gui.c (vars_of_gui):
7022 menu-no-selection-hook moved here (used by MSWin).
7023 Move some symbols to general-slots.h.
7027 * insdel.c (get_buffer_pos_char):
7028 * insdel.c (get_buffer_range_char):
7031 * keymap.c (keymap_lookup_directly):
7032 * keymap.c (keymap_store):
7033 * keymap.c (ensure_meta_prefix_char_keymapp):
7034 * keymap.c (describe_map):
7036 Support new button modifiers.
7038 * lisp-disunion.h (wrap_object):
7039 * lisp-disunion.h (XSETOBJ):
7040 Rename make_obj to wrap_object.
7043 * lisp-union.h (make_int):
7044 * lisp-union.h (make_char):
7045 Support wrap_object.
7048 * lisp.h (LIST_LOOP):
7049 * lisp.h (EXTERNAL_LIST_LOOP):
7050 * lisp.h (LIST_LOOP_2):
7051 * lisp.h (EXTERNAL_LIST_LOOP_1):
7052 * lisp.h (EXTERNAL_LIST_LOOP_2):
7053 * lisp.h (EXTERNAL_LIST_LOOP_3):
7054 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7055 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7056 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7057 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7058 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7059 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7060 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7061 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7062 * lisp.h (struct Lisp_Symbol):
7063 * lisp.h (maybe_continuable_error_with_frob):
7064 Fix up section comments.
7065 Add new types for char to indicate usage.
7066 Delete symbols auto-generated from general-slots.h.
7067 Add prototypes for structured error functions.
7068 Add long comments describing looping macros and change interface
7069 so that lvalues are automatically declared.
7070 Add NO_DECLARE macro in case callers want to declare lvalues
7073 * lread.c (read_syntax_error):
7074 * lread.c (continuable_read_syntax_error):
7075 * lread.c (read_structure):
7076 * lread.c (sequence_reader):
7077 * lread.c (read_list_conser):
7078 * lread.c (read_compiled_function):
7079 Rename syntax_error and continuable_syntax_error to avoid clash
7080 with same-named structured error functions.
7082 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7083 * menubar-msw.c (populate_menu_add_item):
7084 * menubar-msw.c (populate_or_checksum_helper):
7089 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7090 Mule-ize whole file.
7092 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7094 * mule-charset.c (Fmake_charset):
7095 * mule-wnnfns.c (Fwnn_set_param):
7098 * ntproc.c (create_child):
7099 * ntproc.c (Fwin32_set_current_locale):
7100 Add comments portending doom.
7103 * objects-msw.c (old_font_enum_callback_2):
7104 * objects-msw.c (font_enum_callback_1):
7105 * objects-msw.c (mswindows_enumerate_fonts):
7109 * objects-x.c (allocate_nearest_color):
7110 * objects-x.c (x_parse_nearest_color):
7111 * objects-x.c (x_initialize_color_instance):
7112 * objects-x.c (x_print_color_instance):
7113 * objects-x.c (x_finalize_color_instance):
7114 * objects-x.c (x_valid_color_name_p):
7115 * objects-x.c (x_initialize_font_instance):
7116 * objects-x.c (x_print_font_instance):
7117 * objects-x.c (valid_x_font_name_p):
7118 * objects-x.c (truename_via_FONT_prop):
7119 * objects-x.c (truename_via_random_props):
7120 * objects-x.c (truename_via_XListFonts):
7121 * objects-x.c (x_font_truename):
7122 * objects-x.c (x_font_instance_truename):
7123 * objects-x.c (x_font_instance_properties):
7124 * objects-x.c (x_list_fonts):
7125 * objects-x.c (x_find_charset_font):
7126 Mule-ize entire file.
7133 * print.c (std_handle_out_external):
7134 * print.c (debug_print_no_newline):
7135 * print.c (syms_of_print):
7136 Output to all debugger kinds in debug-print.
7137 Fix console-output code under MSWin to actually work.
7139 * process-nt.c (send_signal):
7140 * process-nt.c (nt_create_process):
7141 Use newer Unicode macros.
7143 * process-unix.c (unix_create_process):
7144 * process-unix.c (unix_canonicalize_host_name):
7145 * process-unix.c (unix_open_network_stream):
7151 * search.c (syms_of_search):
7154 * select-msw.c (mswindows_destroy_selection):
7157 * select-x.c (symbol_to_x_atom):
7160 * select.c (syms_of_select):
7163 * sound.c (Fplay_sound_file):
7167 * specifier.c (decode_specifier_type):
7168 * specifier.c (Fvalid_specifier_locale_type_p):
7169 * specifier.c (check_valid_locale_or_locale_type):
7170 * specifier.c (decode_locale):
7171 * specifier.c (decode_locale_type):
7172 * specifier.c (decode_locale_list):
7173 * specifier.c (check_valid_domain):
7174 * specifier.c (decode_specifier_tag_set):
7175 * specifier.c (Fcanonicalize_tag_set):
7176 * specifier.c (Fdefine_specifier_tag):
7177 * specifier.c (Fspecifier_tag_predicate):
7178 * specifier.c (check_valid_inst_list):
7179 * specifier.c (check_valid_spec_list):
7180 * specifier.c (decode_how_to_add_specification):
7181 * specifier.c (check_modifiable_specifier):
7182 * specifier.c (specifier_add_spec):
7183 * specifier.c (boolean_validate):
7184 * specifier.c (display_table_validate):
7187 * specifier.c (syms_of_specifier):
7188 Move some symbols to general-slots.h.
7192 * symbols.c (Fmapatoms):
7193 * symbols.c (Fapropos_internal):
7196 * symbols.c (set_default_buffer_slot_variable):
7197 * symbols.c (set_default_console_slot_variable):
7200 * symbols.c (defsymbol_massage_name_1):
7201 * symbols.c (defkeyword_massage_name):
7202 * symbols.c (deferror_1):
7203 * symbols.c (deferror):
7204 * symbols.c (deferror_massage_name_and_message):
7206 * symeval.h (DEFSYMBOL):
7207 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7209 * symbols.c (syms_of_symbols):
7213 * symsinit.h (init_win32): New.
7214 Also new is syms_of_dialog_mswindows.
7217 Add new Unicode macros, missing Cygwin wide-char functions,
7218 convenience conversion macros for Qmswindows_tstr, macros for
7219 encapsulating required MSWin <-> Cygwin filename conversions,
7220 prototype for dynamically-extracted (not in NT 3.51) functions.
7225 * tooltalk.c (Fadd_tooltalk_message_arg):
7226 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7227 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7230 * tooltalk.c (syms_of_tooltalk):
7234 * unexnt.c (unexec):
7235 Fix up headers, declaration of unexec() to be more standard.
7237 2000-07-20 Martin Buchholz <martin@xemacs.org>
7239 * offix.h: Revert change to guard macros - they're used in offix.c!
7241 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7243 * lisp.h: Defsubred Fdelete.
7245 * console-msw.h: (msprinter_default_printer): Added.
7247 * console-msw.c (msprinter_canonicalize_console_connection):
7248 (msprinter_canonicalize_device_connection): Added.
7250 * device-msw.c (msprinter_default_printer):
7251 (Fmswingows_get_default_printer):
7252 (signal_enum_priner_error):
7253 (Fmswingows_printer_list): Added.
7255 2000-07-19 Martin Buchholz <martin@xemacs.org>
7257 * XEmacs 21.2.35 is released.
7259 2000-07-19 Martin Buchholz <martin@xemacs.org>
7261 * select-x.c (x_handle_selection_request):
7262 Text selected in xemacs and pasted into xterm failed to appear.
7263 Spelling fixes and cosmetic changes.
7265 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7267 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7268 XEmacs frame (fix for doubling chars in dialog boxes).
7270 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7272 * select.c (select_convert_in, select_convert_out):
7273 Don't call intern() every time.
7275 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7276 * select.c (vars_of_select): Initialise them.
7278 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7280 * select.c (selection-coercible-types): New.
7282 * select.c (own-selection-internal):
7283 * select.c (get-selection-internal):
7284 MULE bug fix - these should default to COMPOUND_TEXT and not
7285 STRING for MULE. I think.
7287 * select.c (select_convert_out): Use selection-coercible-types
7288 to find types that we can attempt to perform coercions on.
7290 2000-07-18 Martin Buchholz <martin@xemacs.org>
7294 Add coding: cookie to identify encoding.
7296 * mule-canna.c (CANNA_mode_keys): make static.
7297 Use proper prototypes, even for functions of no arguments.
7298 Remove external prototype for Fding().
7300 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7302 * select.c (syms_of_select): Add missing DEFSUBR.
7304 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7306 * select.c (get_selection_internal, own_selection_internal):
7307 Make the type default to STRING, rather than placing a nil type
7308 into Vselection_alist.
7310 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7312 * gpmevent.c (tty_selection_exists_p):
7313 * gpmevent.c (tty_own_selection):
7314 Updated parameter lists.
7316 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7318 * select.h (selection-alist): Removed declaration.
7320 * select.h (get_local_selection):
7321 * select.c (get_local_selection):
7324 * select.h (convert_selection): Removed declaration.
7325 * select.c (convert_selection): Removed.
7326 This function belongs in Lisp.
7328 * select.h (select_convert_in): Declare.
7329 * select.h (select_convert_out): Declare.
7330 * select.c (select_convert_in): New.
7331 * select.c (select_convert_out): New.
7332 New conversion functions for other files to call.
7334 * select.h (select_notify_buffer_kill): Declare.
7335 * select.c (select_notify_buffer_kill): New.
7336 New functions that get called from kill-buffer.
7338 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7339 X-specific lisp code.
7341 * select.h: Declare some of the lisp-visible functions for
7344 * select.c (clean_local_selection_data): Removed. This was
7345 a disgusting function, and previously should have been in
7346 select-x.c in any case. The functionality is now provided
7347 in select-convert-from-integer (select.el).
7349 * select.c (available-selection-types): Fixed stupidity where
7350 INTEGER and ATOM got added twice. Also add STRING when we see an
7353 * select.c (get-selection-internal): Removed symbol stripping. No
7354 longer causes conversion when data comes from the internal cache.
7356 * select.c (syms_of_select): Added new functions.
7358 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7359 error checking - previously this called abort!
7361 * select-x.c (x_own_selection): Changed comment.
7363 * select-x.c (x_handle_selection_request): Use select_convert_out.
7364 Don't mess with selection-alist; it's an internal variable of select.c.
7366 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7368 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7369 rather than messing with selection-alist.
7371 * select-msw.c (mswindows_get_foreign_selection):
7372 Use TO_INTERNAL_FORMAT rather than hacking.
7374 2000-07-14 Martin Buchholz <martin@xemacs.org>
7376 * process-unix.c (unix_open_multicast_group):
7377 (unix_open_multicast_group): Remove useless casts.
7379 2000-07-13 Martin Buchholz <martin@xemacs.org>
7381 * sound.c (Fplay_sound): Fix `unused variable' warning.
7383 * emacs.c (main): Use correct type for _environ on SCO5.
7385 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7387 * console.h (own_selection_method):
7388 * console.h (selection_exists_p_method):
7389 * console.h (available_selection_types_method): New.
7390 * console.h (register_selection_data_type_method): New.
7391 * console.h (selection_data_type_name): New.
7393 * console-msw.h (mswindows_destroy_selection): Declare it. New
7394 function & alist to track GlobalAlloc()'d handles that need
7395 releasing when the clipboard data gets replaced or emptied.
7397 * event-msw.c (mswindows_wnd_proc): Call it.
7399 * lisp.h, general.c (Qappend): New symbol representing a
7402 * select.c (own-selection-internal):
7403 * select.c (selection-exists-p):
7404 * select.c (available-selection-types): New.
7405 * select.c (register-selection-data-type): New.
7406 * select.c (selection-data-type-name): New. New functions to deal
7407 with device-specific selection data formats.
7408 * select.c (selection-converter-out-alist): Renamed.
7409 * select.c (selection-converter-in-alist): New.
7410 * select.c (selection-appender-alist): New. Added new alists.
7411 * select.c (syms_of_select, vars_of_select): Added new symbols &
7413 * select.c (get_local_selection): Split.
7414 * select.c: Removed spurious type checking - selections may now be
7415 of any type, not just strings.
7416 * select.c (own-selection-internal):
7418 * select.h, select.c (convert_selection): New. Created
7419 convert_selection() function based on get_local_selection().
7420 * select.h, select.c (QCF_*): New symbols representing mswindows
7422 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7423 symbols representing `how-to-add' modes.
7425 * select-msw.c (x_sym_p): New.
7426 * select-msw.c (symbol_to_ms_cf): New.
7427 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7428 symbols & clipboard formats. Can also handle string names.
7429 * select-msw.c (mswindows_own_selection):
7430 * select-msw.c (mswindows_selection_exists_p):
7431 Added `data-type' parameter. Use it.
7432 * select-msw.c (mswindows_available_selection_types): New.
7433 * select-msw.c (mswindows_register_selection_data_type): New.
7434 * select-msw.c (mswindows_selection_data_type_name): New.
7435 * select-msw.c (mswindows_own_selection):
7436 * select-msw.c (mswindows_get_foreign_selection):
7437 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7438 * select-msw.c (console_create_select_mswindows): Added new methods.
7439 * select-msw.c (mswindows_destroy_selection): New.
7440 * select-msw.c (Vhandle_alist): New list.
7441 * select-msw.c (mswindows_own_selection):
7443 * select-x.c (x_own_selection):
7444 * select-x.c (x_selection_exists_p):
7445 * select-x.c: Added some comments about maybe using new
7447 * select-x.c (x_own_selection):
7449 * specifier.c: Remove definition of Qappend (now in general.c)
7450 * specifier.c (syms_of_specifier): Remove Qappend.
7452 2000-07-12 Martin Buchholz <martin@xemacs.org>
7454 * config.h.in: Add socklen_t.
7456 * s/decosf4-0.h: No special compiler flags needed or desired.
7457 In particular, undefine _BSD for DEC OSF 4.0.
7459 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7461 * redisplay-msw.c (msprinter_frame_output_end): Added.
7462 (console_type_create_redisplay_mswindows): Referred the above.
7464 * frame.c (setup_frame_without_minibuffer): Do not create a
7465 default minibuffer frame on a printer device.
7467 * frame-msw.c (apply_dc_geometry): Added.
7468 (msprinter_start_page):
7469 (msprinter_init_frame_3):
7470 (msprinter_eject_page): Use it.
7472 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7473 and removed residual duplex and orientation properties.
7475 2000-07-11 Martin Buchholz <martin@xemacs.org>
7477 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7479 * unexalpha.c: Remove system prototypes from C sources!
7481 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7483 * eval.c: Remove references to M-x edit-options in DEFUNs for
7484 `defvar' and `defconst'.
7486 2000-07-09 Martin Buchholz <martin@xemacs.org>
7488 * config.h.in: Remove SMART_INCLUDE hackery.
7491 * config.h.in: Don't use SMART_INCLUDE.
7493 * postgresql.h: Include libpq-fe.h here. Fix typo.
7494 * inline.c: Simply #include "postgresql.h"
7496 - Don't use SMART_INCLUDE
7497 - Use simply "const".
7498 - Use standard doc string conventions.
7499 - Use correct type for result of PQstatus.
7501 2000-07-09 Martin Buchholz <martin@xemacs.org>
7503 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7505 C++ compilation changes.
7506 * config.h.in (EXTERN_C): Define.
7507 * config.h.in (not): This is also a C++ keyword.
7508 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7509 * cm.c: Use EXTERN_C.
7510 * redisplay-tty.c: Use EXTERN_C.
7511 * sysdep.c: Use EXTERN_C. Remove Gould support.
7513 2000-07-09 Martin Buchholz <martin@xemacs.org>
7515 * general.c: Remove duplicate definition for Qfunction.
7517 2000-07-08 Ben Wing <ben@xemacs.org>
7519 * device-msw.c (msprinter_init_device):
7520 * device-msw.c (sync_printer_with_devmode):
7521 * device-msw.c (handle_devmode_changes):
7522 * device-msw.c (print_dialog_worker):
7523 * device-msw.c (Fmsprinter_apply_settings):
7524 * device-msw.c (hash_devmode):
7525 * device-msw.c (Fmsprinter_settings_despecialize):
7526 use Qmswindows_tstr, not Qctext.
7528 * vm-limit.c (check_memory_limits):
7529 avoid infinite loop printing warning messages.
7531 2000-07-05 Craig Lanning <lanning@scra.org>
7533 * Makefile.in.in: Add support for including the Windows resources
7534 when building with the cygwin and mingw targets.
7536 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7537 not set or not correct.
7538 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7539 (init_initial_directory): Don't try to use $PWD on the
7540 WIN32_NATIVE target.
7543 [[Add -mwindows to eliminate console window.]] not required --ben
7544 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7545 (MAIL_USE_POP): removed; now handled by configure.
7547 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7548 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7549 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7550 (MAIL_USE_POP): removed; now handled by configure.
7551 (ENCAPSULATE_STAT): from Dan Holmsand, added.
7552 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7553 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7555 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7556 up from <winsock.h> via systime.h.
7557 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7558 (getpagesize): from Dan Holmsand, added.
7559 Added #endif which was left dangling by Ben's mega patch; added
7560 comment to help prevent this in the future.
7562 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7564 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7566 * console-msw.h (struct mswindows_device): Removed unnecessary
7567 cached device geometry values.
7568 Added update_tick and an accessor macro.
7569 (Lisp_Devmode): Added lrecord declaration.
7570 (struct msprinter_device): Contain devmode as a Lisp object.
7571 Added mswindows_get_selected_frame_hwnd();
7573 * console.h (struct console_methods): Indentation nitpicking.
7575 * device-msw.c (mswindows_init_device): Do not initialize geometry
7576 cache. Initialize update tick.
7577 (mswindows_device_system_metrics): Ask the device for its geometry.
7578 (global_free_2_maybe):
7579 (devmode_to_hglobal):
7580 (handle_printer_changes):
7581 (ensure_not_printing):
7582 (print_dialog_worker):
7583 (Fmsprinter_print_setup_dialog):
7584 (Fmsprinter_print_dialog):
7587 (Fmsprinter_page_setup_dialog): Added functions.
7588 (sync_printer_with_devmode):
7589 (handle_devmode_changes):
7590 (Fmsprinter_get_settings):
7591 (Fmsprinter_select_settings):
7592 (Fmsprinter_apply_settings):
7594 (Fmsprinter_settings_copy):
7595 (Fmsprinter_settings_despecialize):
7599 (hash_devmode): Added functions
7600 (syms_of_device_mswindows): Init devmode lrecord class.
7602 * device.h: Added an exfun for find-device.
7604 * event-msw.c (mswindows_wnd_proc): Do not update the cached
7605 geometry; although, recreate the device compatible DC.
7607 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7608 (msprinter_init_frame_3):
7609 (msprinter_frame_property):
7610 (msprinter_internal_frame_property_p):
7611 (msprinter_frame_properties):
7612 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7613 print job properties (will move to device settings).
7615 * lisp.h: Added symbols.
7617 * general.c (syms_of_general): Declared them.
7619 * hash.c (string_hash): Added.
7621 * lrecord.h (lrecord_type): Added devmode lrecord type.
7623 2000-07-02 Mike Sperber <mike@xemacs.org>
7625 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7628 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
7630 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7633 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
7635 * data.c (Fstring_to_number): Don't recognize floating point if
7638 2000-06-22 Martin Buchholz <martin@xemacs.org>
7640 * glyphs-widget.c (tab_control_query_geometry):
7641 (widget_query_geometry):
7642 (button_query_geometry):
7643 * glyphs.c (text_query_geometry):
7644 Enforce type correctness.
7646 2000-06-18 Martin Buchholz <martin@xemacs.org>
7648 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7649 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7651 2000-06-17 Martin Buchholz <martin@xemacs.org>
7653 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7654 conflicts with gcc's fixincluded version of FOO.h.
7656 * glyphs.h (image_instance_geometry): Remove trailing `,'
7658 2000-06-08 Mike Alexander <mta@arbortext.com>
7660 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7661 (shove_thread): Don't write the same output twice
7662 (make_ntpipe_output_stream): Increase priority of shove thread
7663 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7665 (ntpipe_shove_closer): Don't delete the pipe until we're done with
7668 2000-06-12 Ben Wing <ben@xemacs.org>
7670 * s\mingw32.h (sigset):
7671 * s\windowsnt.h (sigset):
7672 rename msw_ to mswindows_ for consistency with general convention.
7674 2000-06-12 Ben Wing <ben@xemacs.org>
7677 * console-msw.c (mswindows_get_console_hwnd):
7678 * console-msw.c (mswindows_ensure_console_allocated):
7679 * console-msw.c (mswindows_hide_console):
7680 * console-msw.c (mswindows_show_console):
7681 * console-msw.c (mswindows_ensure_console_buffered):
7682 * console-msw.c (mswindows_output_console_string):
7683 * console-msw.c (mswindows_windows9x_p):
7685 * device-msw.c (mswindows_get_workspace_coords):
7686 * device-msw.c (mswindows_device_system_metrics):
7687 * dialog-msw.c (mswindows_popup_dialog_box):
7688 * event-msw.c (mswindows_wnd_proc):
7689 * frame-msw.c (mswindows_size_frame_internal):
7690 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7691 * menubar-msw.c (displayable_menu_item):
7692 * menubar-msw.c (mswindows_char_is_accelerator):
7694 * nt.c (mswindows_sigset):
7695 * nt.c (mswindows_sigrelse):
7696 * nt.c (mswindows_sigpause):
7697 * nt.c (mswindows_raise):
7698 * nt.c (timer_proc):
7700 * ntproc.c (find_child_console):
7701 * ntproc.c (sys_kill):
7703 * print.c (std_handle_out_external):
7704 * process-nt.c (find_child_console):
7705 * process-nt.c (send_signal_the_95_way):
7706 * process-nt.c (ensure_console_window_exists):
7707 * process-nt.c (nt_create_process):
7709 rename msw_ to mswindows_ for consistency with general convention.
7713 include nt.h, not syswindows.h.
7715 * nt.c (mswindows_fstat):
7716 * nt.c (mswindows_stat):
7717 prefix mswindows_ instead of attempting to directly override the
7718 library functions. fix declarations.
7721 include syswindows.h. move some sysdep.h stuff here.
7724 include syswindows.h, not <windows.h>.
7732 * sysdep.c (sys_fstat):
7733 * sysdep.c (sys_stat):
7734 call mswindows versions when appropriate.
7737 move mswin decls to nt.h.
7740 add long comment describing appropriate use of the various windows
7743 2000-06-11 Ben Wing <ben@xemacs.org>
7745 * device-x.c: Correct doc string for sixth arg of x-get-resource.
7747 2000-06-10 Ben Wing <ben@xemacs.org>
7749 * Makefile.in.in (release):
7750 Correction to make sure xemacs.exe always dumped when correct.
7754 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7756 * buffer.c (set_buffer_internal):
7757 [[[[2]]]]: Remove HAVE_FEP code.
7759 * buffer.c (init_initial_directory):
7763 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7767 * callproc.c (call_process_cleanup):
7768 * callproc.c (Fold_call_process_internal):
7769 * callproc.c (child_setup):
7770 * callproc.c (getenv_internal):
7771 * callproc.c (init_callproc):
7772 * callproc.c (vars_of_callproc):
7773 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7774 __CYGWIN32__ -> CYGWIN.
7775 DOS_NT -> WIN32_NATIVE.
7776 Remove MSDOS support/references, converting to WIN32_NATIVE
7778 __MINGW32__ -> MINGW.
7779 Fix windows.h includes.
7780 Remove bogus HAVE_NTGUI.
7786 mswindows_message_outputted added for use in allowing startup
7787 errors on the console to be seen.
7789 * console-msw.c (msw_ensure_console_allocated):
7790 * console-msw.c (msw_output_console_string):
7791 * console-msw.c (DHEADER):
7792 * console-msw.c (DOPAQUE_DATA):
7793 * console-msw.c (DEVENT):
7794 * console-msw.c (DCONS):
7795 * console-msw.c (DCONSCDR):
7796 * console-msw.c (DSTRING):
7797 * console-msw.c (DVECTOR):
7798 * console-msw.c (DSYMBOL):
7799 * console-msw.c (DSYMNAME):
7802 * console-stream.c (stream_init_console):
7803 Fix text/binary problems.
7806 * device-msw.c (mswindows_finish_init_device):
7807 * device-msw.c (mswindows_delete_device):
7810 * device.c (handle_asynch_device_change):
7814 * dgif_lib.c (DGifOpenFileName):
7815 * dgif_lib.c (DGifOpenFileHandle):
7816 * dgif_lib.c (DGifGetLine):
7817 * dgif_lib.c (DGifGetPixel):
7818 Added config.h/lisp.h, fix up includes.
7825 * dired.c (file_name_completion):
7826 * dired.c (Ffile_attributes):
7827 * dired.c (syms_of_dired):
7831 * dumper.c (pdump_file_unmap):
7832 * dumper.c (pdump_load):
7836 * editfns.c (Ftemp_directory):
7837 * editfns.c (user_login_name):
7838 * editfns.c (Fuser_real_login_name):
7839 * editfns.c (get_home_directory):
7842 * elhash.c (finish_marking_weak_hash_tables):
7843 [[[[5]]]]: Fix GCC warnings.
7846 * emacs.c (mswindows_handle_hardware_exceptions):
7847 * emacs.c (make_arg_list_1):
7849 * emacs.c (Fkill_emacs):
7850 * emacs.c (Fdump_emacs):
7852 Fix problems with nested crashes, add long comment.
7854 * event-Xt.c (init_event_Xt_late):
7858 * event-msw.c (mswindows_dde_callback):
7859 * event-msw.c (mswindows_handle_sticky_modifiers):
7860 * event-msw.c (mswindows_wnd_proc):
7864 * events.c (character_to_event):
7868 * fileio.c (Ffile_name_directory):
7869 * fileio.c (Ffile_name_nondirectory):
7870 * fileio.c (directory_file_name):
7871 * fileio.c (Fexpand_file_name):
7872 * fileio.c (Fsubstitute_in_file_name):
7873 * fileio.c (Ffile_name_absolute_p):
7874 * fileio.c (check_executable):
7875 * fileio.c (Ffile_readable_p):
7876 * fileio.c (Ffile_accessible_directory_p):
7877 * fileio.c (Ffile_modes):
7878 * fileio.c (Funix_sync):
7879 * fileio.c (vars_of_fileio):
7882 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7884 Expand getdefdir defn.
7885 Fix bogus rename() comment.
7887 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
7888 to use standard XEmacs include files, e.g. sysfile.h, rather
7889 than system-specific includes.
7895 * frame.c (vars_of_frame):
7899 * getloadavg.c (getloadavg):
7901 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
7902 (We don't use it elsewhere in the code; just add a comment.)
7909 * glyphs-msw.c (mswindows_resource_instantiate):
7912 * glyphs-x.c (x_native_layout_instantiate):
7915 * gui-msw.c (Fmswindows_shell_execute):
7924 * lread.c (locate_file_in_directory_mapper):
7931 * mem-limits.h (get_lim_data):
7943 * nt.c (rva_to_section):
7944 * nt.c (mswindows_executable_type):
7946 Fix closedir() defn.
7949 [[[[8]]]]: *_OK defs moved to sysfile.h.
7958 * print.c (std_handle_out_external):
7962 * process-nt.c (nt_create_process):
7964 try to fix process quoting somewhat.
7966 * process-unix.c (unix_create_process):
7970 * process.c (vars_of_process):
7977 * realpath.c (xrealpath):
7980 * redisplay-tty.c (init_tty_for_redisplay):
7990 * sheap.c (more_static_core):
7991 * sheap.c (report_sheap_usage):
7995 * signal.c (alarm_signal):
8002 * strftime.c (zone_name):
8005 * symsinit.h (init_sunpro):
8009 commctrl.h not in Cygwin b20.1.
8013 * sysdep.c (sys_subshell):
8014 * sysdep.c (init_baud_rate):
8015 * sysdep.c (emacs_get_tty):
8016 * sysdep.c (emacs_set_tty):
8017 * sysdep.c (tty_init_sys_modes_on_device):
8018 * sysdep.c (init_system_name):
8019 * sysdep.c (sys_open):
8020 * sysdep.c (interruptible_open):
8021 * sysdep.c (sys_fopen):
8022 * sysdep.c (sys_mkdir):
8023 * sysdep.c (sys_rename):
8024 * sysdep.c (get_process_times_1):
8031 * sysdir.h (DIRENTRY_NONEMPTY):
8034 * sysdll.c (dll_init):
8040 added text/binary defs.
8046 * sysproc.h (EDESTADDRREQ):
8047 * sysproc.h (poll_fds_for_input):
8064 Always define WIN32_LEAN_AND_MEAN.
8066 * unexcw.c (unexec):
8070 * unexec.c (copy_text_and_data):
8071 * unexec.c (adjust_lnnoptrs):
8075 * unexnt.c (_start):
8078 2000-06-07 Ben Wing <ben@xemacs.org>
8080 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8081 was used only as a model. We've long since extracted any useful
8082 logic or code out of this. (I just did an exhaustive search.)
8084 * s\msdos.h: Removed.
8086 * s\windows95.h: Removed.
8088 2000-06-10 Ben Wing <ben@xemacs.org>
8092 Don't use extern with fun defs.
8096 Remove nt\inc include.
8097 Remove getdisk, getdefdir. (The former is unused, the latter
8098 expanded in fileio.h.)
8101 * s\windowsnt.h (WIN32_NATIVE):
8102 * s\windowsnt.h (HAVE_STRCASECMP):
8104 Add long comment about preprocessor changes.
8105 Remove getdisk, getdefdir. (The former is unused, the latter
8106 expanded in fileio.h.)
8108 2000-06-10 Ben Wing <ben@xemacs.org>
8117 Remove bogus/unused NO_SOCK_SIGIO.
8119 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8121 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8124 2000-06-04 Mike Sperber <mike@xemacs.org>
8126 * casetab.c (set_case_table): For `set-standard-case-table',
8127 actually deposit the new case tables where the rest of XEmacs can
8130 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8132 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8134 2000-06-05 Ben Wing <ben@xemacs.org>
8136 * callproc.c (child_setup): Don't do close_load_descs() under
8137 MS Windows. Put in a comment explaining why.
8139 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8141 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8142 Toolkit shell" which breaks `kill-compilation' on Windows NT
8143 native, retaining STDERR handling improvements.
8145 2000-06-01 Andreas Jaeger <aj@suse.de>
8147 * s/s390.h: Support for S390, based on a patch by Martin
8148 Schwidefsky <schwidefsky@de.ibm.com>.
8150 2000-05-30 Andy Piper <andy@xemacs.org>
8152 * window.c (allocate_window):
8153 (make_dummy_parent):
8154 (Fset_window_configuration): use new hashtable type.
8156 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8157 (struct image_instantiator_methods):
8158 (struct Lisp_Image_Instance): make instance geometry signed.
8160 * glyphs.c (instantiate_image_instantiator):
8161 (image_instance_query_geometry):
8162 (image_instance_layout):
8163 (image_instance_layout):
8164 (query_string_geometry):
8165 (text_query_geometry):
8166 (image_instantiate):
8167 (image_instantiate):
8168 (cache_subwindow_instance_in_frame_maybe):
8169 (subwindow_query_geometry): make instance geometry signed.
8171 * glyphs-widget.c (widget_query_geometry):
8173 (button_query_geometry):
8174 (tree_view_query_geometry):
8175 (tab_control_query_geometry):
8176 (layout_query_geometry):
8178 (native_layout_layout): make instance geometry signed.
8180 2000-05-29 Olivier Galibert <galibert@pobox.com>
8182 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8185 * general.c (syms_of_general): Add Qfull_assoc symbol.
8187 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8189 (decode_weak_list_type): Decode full-assoc type.
8190 (encode_weak_list_type): Encode full-assoc type.
8191 (Fmake_weak_list): Update doc string.
8193 2000-05-30 Andy Piper <andy@xemacs.org>
8195 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8197 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8198 (decode_hash_table_weakness): ditto.
8199 (Fhash_table_weakness): ditto.
8200 (Fhash_table_type): ditto.
8201 (finish_marking_weak_hash_tables): ditto.
8202 (hash_table_weakness_validate): ditto.
8203 (syms_of_elhash): ditto.
8205 2000-05-28 Martin Buchholz <martin@xemacs.org>
8207 * XEmacs 21.2.34 is released.
8209 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8211 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8213 (updating_line_start_cache): Gone.
8214 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8215 generic code to force a minimum of 1 line laid out in the
8218 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8220 * glyphs.c (instantiate_image_instantiator): Check for initialized
8221 height & width no longer special cases IMAGE_NOTHING.
8222 (nothing_instantiate): Set height and width of instance.
8224 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8226 * unexelf.c (unexec): Search for ".data" section.
8227 Initialize new_data2_offset from old_data_index.
8228 Remove redundant check for ElfW.
8230 2000-05-23 Andy Piper <andy@xemacs.org>
8232 * glyphs.c (get_image_instantiator_governing_domain): allow more
8233 specific domains as the governing domain rather than expecting an
8234 exact match. This fixes problems with layouts.
8236 2000-05-22 Andy Piper <andy@xemacs.org>
8238 * redisplay-output.c (compare_runes): check for non-images
8240 * glyphs.c (set_glyph_dirty_p): ditto.
8241 (update_glyph_cachel_data): ditto.
8243 * glyphs-widget.c (layout_post_instantiate): ditto.
8244 (layout_post_instantiate): ditto.
8246 * event-msw.c (mswindows_wnd_proc): warning removal.
8248 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8250 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8252 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8254 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8256 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8257 (mswindows_executable_type): mingw32 now has enough headers for
8260 2000-05-20 Andy Piper <andy@xemacs.org>
8262 * console-msw.c (mswindows_output_last_error): ; -> ,
8264 2000-05-12 Andy Piper <andy@xemacs.org>
8266 * console-msw.c (FROB): compare ints with ints.
8268 2000-05-11 Andy Piper <andy@xemacs.org>
8270 * glyphs-x.c (x_finalize_image_instance): make minimal build
8273 2000-05-20 Ben Wing <ben@xemacs.org>
8276 * event-Xt.c (vars_of_event_Xt):
8277 move modifier-keys-are-sticky to event-stream.c.
8280 * event-msw.c (mswindows_enqueue_mouse_button_event):
8281 * event-msw.c (key_needs_default_processing_p):
8282 * event-msw.c (XEMSW_LCONTROL):
8283 * event-msw.c (mswindows_handle_sticky_modifiers):
8284 * event-msw.c (FROB):
8285 * event-msw.c (clear_sticky_modifiers):
8286 * event-msw.c (output_modifier_keyboard_state):
8287 * event-msw.c (output_alt_keyboard_state):
8288 * event-msw.c (mswindows_wnd_proc):
8289 * event-msw.c (mswindows_modifier_state):
8290 * event-msw.c (emacs_mswindows_handle_magic_event):
8291 implement sticky modifiers.
8294 * event-stream.c (vars_of_event_stream):
8295 move modifier-keys-are-sticky here.
8301 implement map-range-table.
8304 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8306 * redisplay-tty.c (reset_tty_modes):
8307 (tty_redisplay_shutdown): Adjust argument type to
8308 tty_frame_output_end.
8310 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8312 * eval.c (Fbacktrace): Don't output a line with only right
8315 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8317 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8318 (Fpq_reset_poll): Ditto.
8320 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8322 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8324 2000-05-16 Ben Wing <ben@xemacs.org>
8327 * buffer.c (dfc_convert_to/from_internal_format):
8328 * buffer.c (reinit_vars_of_buffer):
8329 Fix conversion functions to allow reentrancy.
8332 * console-msw.c (mswindows_output_last_error):
8333 New fun, generally useful -- output a human-readable
8334 version of GetLastError() on the console.
8337 * console-msw.h (struct mswindows_frame):
8338 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8340 * console-stream.c (stream_output_begin):
8341 * console-stream.c (stream_output_end):
8342 * console-stream.c (stream_output_vertical_divider):
8343 * console-stream.c (stream_clear_region):
8344 * console-stream.c (stream_flash):
8345 * console-stream.c (console_type_create_stream):
8346 Delete blank stream methods, not needed.
8348 * console.h (struct console_methods):
8349 Split begin/end methods into window and frame.
8352 * event-msw.c (mswindows_handle_paint):
8353 * event-msw.c (output_alt_keyboard_state):
8354 * event-msw.c (mswindows_wnd_proc):
8355 * event-msw.c (vars_of_event_mswindows):
8356 Comment about problems with ignored-expose.
8357 Define mswindows-debug-events; not really implemented.
8359 * frame-msw.c (mswindows_init_frame_1):
8363 * glyphs-msw.c (begin_defer_window_pos):
8364 * glyphs-msw.c (mswindows_unmap_subwindow):
8365 * glyphs-msw.c (mswindows_map_subwindow):
8366 * glyphs-msw.c (mswindows_resize_subwindow):
8367 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8369 * glyphs.c (make_image_instance_1):
8372 * gutter.c (Fredisplay_gutter_area):
8373 Use new begin/end methods.
8375 * lisp.h (Dynarr_new2):
8379 * redisplay-msw.c (mswindows_frame_output_begin):
8380 * redisplay-msw.c (mswindows_frame_output_end):
8381 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8382 New begin/end methods -- handle DeferWindowPos.
8384 * redisplay-output.c (redisplay_move_cursor):
8385 * redisplay-output.c (redraw_cursor_in_window):
8386 * redisplay-output.c (redisplay_update_line):
8387 * redisplay-output.c (redisplay_output_window):
8388 New begin/end methods.
8391 * redisplay-tty.c (tty_frame_output_begin):
8392 * redisplay-tty.c (tty_frame_output_end):
8393 * redisplay-tty.c (console_type_create_redisplay_tty):
8394 New begin/end methods.
8397 * redisplay-x.c (x_window_output_begin):
8398 * redisplay-x.c (x_window_output_end):
8399 * redisplay-x.c (console_type_create_redisplay_x):
8400 New begin/end methods.
8402 * redisplay.c (redisplay_frame):
8403 * redisplay.c (Fredisplay_echo_area):
8404 New begin/end methods.
8405 use MAYBE_DEVMETH for clear_frame; it may not exist.
8407 * window.h (WINDOW_XFRAME):
8408 WINDOW_XFOO macros -- get locale and decode struct pointer.
8411 2000-05-12 Ben Wing <ben@xemacs.org>
8414 * emacs.c (ensure_no_quitting_from_now_on):
8415 * emacs.c (fatal_error_signal):
8416 * emacs.c (mswindows_handle_hardware_exceptions):
8418 * emacs.c (Fkill_emacs):
8419 * emacs.c (shut_down_emacs):
8420 * emacs.c (assert_failed):
8421 various improvements in fatal error handling.
8424 move preparing_for_armageddon to emacs.c.
8427 declare fatal_error_in_progress.
8430 * print.c (std_handle_out_external):
8431 * print.c (std_handle_out_va):
8432 * print.c (stderr_out):
8433 * print.c (stdout_out):
8434 use console under mswin when no standard output.
8435 don't do code conversion during fatal error.
8437 * scrollbar.c (Fscrollbar_page_up):
8438 * scrollbar.c (Fscrollbar_page_down):
8439 fix missing else. reindent.
8441 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8445 * glyphs.h (GLYPH_CACHEL_DESCENT):
8446 (GLYPH_CACHEL_DESCENT):
8447 (GLYPH_CACHEL_DESCENT):
8448 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8449 used in case these are inline functions.
8450 Use more absurd values to error check.
8452 include window.h for error check functions.
8454 2000-05-11 Ben Wing <ben@xemacs.org>
8456 * cmdloop.c (Freally_early_error_handler):
8457 Display message box under windows; otherwise, message will disappear
8458 before it can be viewed.
8461 * console-msw.c (Fmswindows_message_box):
8462 * console-msw.c (FROB):
8463 * console-msw.c (syms_of_console_mswindows):
8464 Define new fun `mswindows-message-box'.
8465 #### I will merge this into `popup-dialog-box'; just give me
8469 * general.c (syms_of_general):
8470 Some new symbols used in `mswindows-message-box'.
8473 * glyphs.c (Fset_image_instance_property):
8474 put warning in this fun.
8477 * glyphs.h (GLYPH_CACHEL_WIDTH):
8478 * glyphs.h (GLYPH_CACHEL_ASCENT):
8479 * glyphs.h (GLYPH_CACHEL):
8480 * glyphs.h (GLYPH_CACHEL_GLYPH):
8481 define error-checking versions to try to catch a bug i've seen --
8482 redisplay gets in an infinite loop because the glyph width of the
8483 continuation glyph is 65535.
8486 Extern message-box stuff.
8488 * window.c (allocate_window):
8489 * window.c (make_dummy_parent):
8490 * window.c (Fset_window_configuration):
8491 Use EQUAL not EQ for subwindow caches to make them work a bit
8492 better. (Something is still very broken.)
8495 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8497 * glyphs.c (image_instantiate): Suppress gcc warnings.
8498 (Fmake_image_instance): Fix doc string.
8499 * specifier.c (Fmake_specifier): Ditto.
8501 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
8503 * paths.h.in (PATH_LOCK): Removed.
8504 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8505 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8507 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8509 * fns.c (Ffeaturep): Update e-mail address in doc-string.
8510 Document (featurep '(and xemacs 21.02)).
8512 2000-05-09 Ben Wing <ben@xemacs.org>
8514 * buffer.c (complex_vars_of_buffer):
8515 update modeline-format doc.
8518 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8521 timeline of all released versions of Emacs, for use in creating
8522 authorship comments and in synching up.
8524 * glyphs-widget.c (image_instantiator_buttons):
8525 * glyphs-widget.c (image_instantiator_edit_fields):
8526 * glyphs-widget.c (image_instantiator_combo_box):
8527 * glyphs-widget.c (image_instantiator_scrollbar):
8528 * glyphs-widget.c (image_instantiator_progress_guage):
8529 * glyphs-widget.c (image_instantiator_tree_view):
8530 * glyphs-widget.c (image_instantiator_tab_control):
8531 * glyphs-widget.c (image_instantiator_labels):
8532 * glyphs-widget.c (image_instantiator_layout):
8533 * glyphs-widget.c (image_instantiator_native_layout):
8534 rename decode_domain method to governing_domain.
8537 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8538 * glyphs.c (add_entry_to_device_ii_format_list):
8539 make sure we don't put an entry more than once into the list.
8540 * glyphs.c (check_instance_cache_mapper):
8541 *************************************************************
8542 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8544 *************************************************************
8545 * glyphs.c (get_image_instantiator_governing_domain):
8546 clean up, expand on new concept of governing domain.
8547 * glyphs.c (instantiate_image_instantiator):
8548 * glyphs.c (allocate_image_instance):
8549 use governing_domain instead of cache_domain in naming.
8550 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8551 * glyphs.c (make_image_instance_1):
8552 * glyphs.c (Fmake_image_instance):
8553 allow for any domain (not just device), and process the
8554 governing domain correctly. very big doc fix.
8555 * glyphs.c (Fimage_instance_domain):
8556 new primitive, to retrieve the governing domain of an image instance.
8557 * glyphs.c (image_instantiate):
8558 use new governing_domain stuff. this fixes a crash you could get
8559 by instantiating certain widget glyphs in frame locales. (should
8560 signal an error instead of crashing.)
8561 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8562 * glyphs.c (Fglyphp): clean up doc.
8563 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8564 * glyphs.c (syms_of_glyphs):
8565 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8566 * glyphs.c (image_instantiator_format_create): add some comments about
8568 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8569 for current-display-table. (Apparently Hrjove implemented in 1998 a
8570 design I wrote up in 1996, but didn't update the doc string.)
8572 * glyphs.h: clean up a doc string.
8573 * glyphs.h (governing_domain):
8574 * glyphs.h (struct image_instantiator_methods):
8575 changes for governing_domain stuff.
8578 * gutter.c (Fgutter_specifier_p):
8579 * gutter.c (Fgutter_size_specifier_p):
8580 * gutter.c (Fgutter_visible_specifier_p):
8582 * objects.c (Fcolor_specifier_p):
8583 * objects.c (Ffont_specifier_p):
8584 * objects.c (Fface_boolean_specifier_p):
8585 doc strings moved to make-*-specifier.
8587 * redisplay.c (add_disp_table_entry_runes_1):
8588 * redisplay.c (generate_fstring_runes):
8589 * redisplay.c (screen):
8590 add random comments and doc strings.
8593 * specifier.c (Fmake_specifier):
8594 major overhaul of this doc string.
8596 * specifier.c (Fvalid_specifier_domain_p):
8597 comment about the bogosity of image instances being domains.
8598 * specifier.c (decode_domain):
8599 now non-static, used in glyphs.c.
8600 * specifier.c (specifier_instance):
8601 comment about the bogosity of image instances being domains.
8602 * specifier.c (Fgeneric_specifier_p):
8603 move doc string to make-generic-specifier.
8604 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8608 * specifier.h (DOMAIN_FRAME):
8609 * specifier.h (DOMAIN_LIVE_P):
8610 * specifier.h (DOMAIN_XDEVICE):
8612 add comments about problems with these macros.
8613 prototype for decode_domain.
8616 * toolbar.c (Ftoolbar_specifier_p):
8617 move doc string to `make-toolbar-specifier'.
8619 * window.c (window_unmap_subwindows_cache_mapper):
8620 *************************************************************
8621 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8623 *************************************************************
8625 2000-05-09 Andy Piper <andy@xemacs.org>
8627 * glyphs.h: declare reset_frame_subwindow_instance_cache.
8629 * window.c (Fset_window_configuration): reset the frame subwindow
8630 cache and re-initialize the window subwindow caches.
8632 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8634 2000-05-09 Ben Wing <ben@xemacs.org>
8636 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8639 2000-04-26 Mike Woolley <mike@bulsara.com>
8641 * ntheap.c: Changed recreate_heap to limit the amount reserved
8642 for the heap to that which is actually available. Also now
8643 displays a message box (with some dignostics) in the event that
8644 it still can't start.
8646 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
8648 * callproc.c (Fold_call_process_internal): GCPRO path
8650 2000-05-08 Jan Vroonhof <jan@xemacs.org>
8652 Patch by Bill Perry.
8654 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8655 back data instead of #ifdef.
8656 (Fscrollbar_page_down): ditto.
8658 2000-05-07 Ben Wing <ben@xemacs.org>
8661 Kludge for defining Qmswindows_tstr.
8664 * nt.c (open_input_file):
8665 * nt.c (open_output_file):
8666 * nt.c (rva_to_section):
8667 * nt.c (mswindows_executable_type):
8668 Move all memory-mapped-file routines here (some were in unexnt.c,
8669 which is bad because they are used by process-nt.c, and unexnt
8670 won't be around when portable dumping). Synched the above routines
8674 Removed ifdef'd out bogus code.
8675 Fixed some prototypes.
8678 * nt.h (OFFSET_TO_RVA):
8679 * nt.h (RVA_TO_OFFSET):
8680 * nt.h (RVA_TO_PTR):
8681 Moved the memory-mapped-file structures, macros and prototypes
8682 here, to parallel nt.c. ntheap.h should really be removed
8683 entirely, and it's a non-portable-dumper specific file.
8685 * ntheap.h (round_to_next):
8686 Moved the memory-mapped-file structures, macros and prototypes
8689 * ntproc.c (compare_env):
8690 Moved rva_to_section and mswindows_executable_type to nt.c.
8691 Moved compare_env to process-nt.c.
8692 ntproc.c will die, one day.
8694 * ntproc.c (sys_spawnve):
8695 Account for win32_ -> mswindows_.
8698 * process-nt.c (struct nt_process_data):
8699 * process-nt.c (ensure_console_window_exists):
8700 * process-nt.c (compare_env):
8701 * process-nt.c (nt_create_process):
8702 * process-nt.c (nt_kill_process_by_pid):
8703 * process-nt.c (syms_of_process_nt):
8704 * process-nt.c (vars_of_process_nt):
8705 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8706 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8707 changes). Eliminate our old `nt-quote-process-args' mechanism.
8708 Synch up nt_create_process with FSF 20.6 sys_spawnve.
8709 Move compare_env here from ntproc.c.
8711 * process.c (Fprocess_send_region):
8712 Takes an optional fourth argument, BUFFER, which should fix some
8713 problems with call-process.
8716 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8719 Move ICC_BAR_CLASSES to syscommctrl.h.
8720 Add preliminary macros for MSWindows/Mule. More to come.
8723 * unexnt.c (unexec):
8724 open_output_file moved to nt.c.
8727 2000-05-05 Andy Piper <andy@xemacs.org>
8729 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8730 instance from the frame cache also since GC may catch up too late
8731 to make frame deletion sane.
8733 2000-05-04 Andy Piper <andy@xemacs.org>
8735 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8736 (x_finalize_image_instance): ungcpro on deletion.
8738 * glyphs.c (image_instantiator_format_create): give pointers a
8739 query geometry method so that the geometry is at least set.
8741 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8742 initialize layouts if using widgets.
8744 2000-05-03 Andy Piper <andy@xemacs.org>
8746 * nt.c: remove bogus reference to sysmmsystem.h
8748 * gui-x.c (popup_selection_callback): fix no selection abort.
8750 2000-05-02 Andy Piper <andy@xemacs.org>
8752 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8753 (mswindows_widget_instantiate): ditto.
8755 * glyphs-widget.c (initialize_widget_image_instance): initialize
8757 (widget_instantiate): cope with children and items in the same
8760 * glyphs.c (mark_image_instance): cope with children as a first
8762 (image_instance_equal): ditto.
8763 (image_instance_hash): ditto.
8764 (image_instance_changed): ditto.
8766 2000-04-30 Andy Piper <andy@xemacs.org>
8768 * glyphs.c (subwindow_query_geometry): new function. Return some
8770 (subwindow_instantiate): don't assign dimensions if none have been
8772 (image_instantiator_format_create): add subwindow_query_geometry.
8773 (print_image_instance): cope with layouts as widgets.
8775 2000-04-29 Andy Piper <andy@xemacs.org>
8777 * frame.c (delete_frame_internal): call
8778 free_frame_subwindow_instance_cache so that all subwindows are
8779 finalized before their parent.
8780 (mark_frame): remove subwindow_cachels.
8781 (Fmake_frame): remove subwindow_cachel manipulation.
8782 (allocate_frame_core): subwindow_instance_cache is a weak list.
8783 (delete_frame_internal): set subwindow_instance_cache to nil.
8785 * glyphs-msw.c (mswindows_finalize_image_instance): make double
8787 (mswindows_finalize_image_instance): use the device
8788 not the domain as the domain may have died already.
8790 * glyphs-x.c (x_finalize_image_instance): ditto.
8791 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8794 * redisplay-output.c (redisplay_unmap_subwindows): update for
8795 subwindow instance cache as a weak list.
8796 (redisplay_unmap_subwindows_maybe): ditto.
8797 (redisplay_unmap_subwindows_except_us): ditto.
8799 * glyphs.c (unmap_subwindow): error checking will check the domain
8800 so don't deal with it here. Don't use cachels anymore.
8801 (map_subwindow): ditto.
8802 (update_subwindow_cachel_data): remove old accessor names.
8803 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8804 (Fresize_subwindow): don't update cachel.
8805 (mark_subwindow_cachels):
8806 (update_subwindow_cachel_data):
8807 (add_subwindow_cachel):
8808 (get_subwindow_cachel_index):
8809 (update_subwindow_cachel):
8810 (reset_subwindow_cachels):
8811 (mark_subwindow_cachels_as_not_updated): deleted.
8812 (cache_subwindow_instance_in_frame_maybe): new function. Add a
8813 subwindow instance to the frame cache.
8814 (find_matching_subwindow): update for subwindow instance cache as
8816 (update_widget_instances): ditto.
8817 (image_instance_type_to_mask):inlined.
8818 (free_frame_subwindow_instance_cache): new function. finalize all
8819 subwindows that are instantiated.
8821 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8822 of cachel information.
8823 (IMAGE_INSTANCE_DISPLAY_X):
8824 (IMAGE_INSTANCE_DISPLAY_Y):
8825 (IMAGE_INSTANCE_DISPLAY_WIDTH):
8826 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8827 (XIMAGE_INSTANCE_DISPLAY_X):
8828 (XIMAGE_INSTANCE_DISPLAY_Y):
8829 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8830 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8831 remove subwindow_cachel structure and function references.
8832 (image_instance_type_to_mask): inline from glyphs.c
8834 * redisplay.c (redisplay_frame): remove subwindow_cachel
8837 * frame.h (struct frame): remove subwindow_cachels.
8838 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8840 * frameslots.h: add subwindow_instance_cache.
8842 * window.c (replace_window): check subwindow cache of replacement.
8843 (window_unmap_subwindows_cache_mapper):
8844 (window_unmap_subwindows): new functions. Unmap all subwindows
8845 cached on this window.
8846 (mark_window_as_deleted): unmap all subwindows.
8848 2000-04-27 Andy Piper <andy@xemacs.org>
8850 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8852 * glyphs-widget.c (widget_layout): return something.
8853 (layout_layout): return something. Fail if not initialized.
8854 (layout_query_geometry): ditto.
8855 (image_instantiator_native_layout): new function. Initialized the
8857 (widget_instantiate): don't do layout stuff here.
8859 * glyphs.c (instantiate_image_instantiator): reorded calling or
8860 instantiate and post_instantiate with layout in between.
8861 (image_instance_layout): be more selective about deciding whether
8862 the layout has been done or not.
8864 * glyphs.h (struct image_instantiator_methods): return a value
8867 2000-04-26 Andy Piper <andy@xemacs.org>
8869 * glyphs.c (allocate_image_instance): make initial width and
8870 height unspecified. Set initialized to 0.
8872 * syscommctrl.h new file. Encapsulates commctrl.h.
8874 * syswindows.h new file. Encapsulates windows.h.
8876 * ntplay.c: use new syswindows.h and syscommctrl.h header.
8878 * console-msw.h: ditto.
8880 * redisplay-tty.c (tty_output_display_block): remove layout references.
8882 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8883 window handle rather than just the frame.
8885 * glyphs.c (mark_image_instance): remove layout references.
8886 (print_image_instance): ditto.
8887 (image_instance_equal): ditto.
8888 (image_instance_hash): ditto.
8889 (decode_image_instance_type): ditto.
8890 (encode_image_instance_type): ditto.
8891 (image_instantiate): ditto.
8892 (allocate_glyph): ditto.
8893 (Fimage_instance_height): ditto.
8894 (Fimage_instance_width): ditto.
8895 (update_subwindow): ditto.
8897 * redisplay-x.c (x_output_display_block): recode for layouts as
8900 * redisplay-output.c (redisplay_output_layout): recode for layouts
8902 (compare_runes): remove layout references.
8904 * redisplay-msw.c (mswindows_output_display_block): recode for
8907 * glyphs-widget.c (image_instantiator_layout): remove
8908 layout_possible_dest_types.
8909 (layout_possible_dest_types): deleted.
8911 * glyphs.h (image_instance_type): remove layout references.
8912 (struct Lisp_Image_Instance): ditto. Add initialized flag.
8913 (IMAGE_INSTANCE_INITIALIZED): new accessor.
8914 (XIMAGE_INSTANCE_INITIALIZED): ditto.
8916 2000-04-25 Andy Piper <andy@xemacs.org>
8918 * glyphs-widget.c (image_instantiator_buttons):
8919 (image_instantiator_edit_fields):
8920 (image_instantiator_combo_box):
8921 (image_instantiator_scrollbar):
8922 (image_instantiator_progress_guage):
8923 (image_instantiator_tree_view):
8924 (image_instantiator_tab_control):
8925 (image_instantiator_labels):
8926 (image_instantiator_layout): call default post_instantiate method.
8927 (widget_post_instantiate): new function. Simply lays out the
8930 * glyphs.h (struct image_instantiator_methods): add
8931 post_instantiate method.
8933 * glyphs.c (instantiate_image_instantiator): add post_instantiate
8936 2000-04-23 Andy Piper <andy@xemacs.org>
8938 * glyphs.h (struct image_instantiator_methods): add
8939 decode_domain_method.
8940 (struct Lisp_Image_Instance): remove subwindow frame - it can be
8941 derived from the domain.
8942 (IMAGE_INSTANCE_FRAME): new accessor.
8943 (XIMAGE_INSTANCE_FRAME): ditto.
8945 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8946 instead of _SUBWINDOW_FRAME.
8947 (finalize_image_instance): ditto.
8948 (Fimage_instance_foreground): ditto.
8949 (Fimage_instance_background): ditto.
8950 (image_instantiate): ditto.
8951 (update_subwindow_cachel): ditto.
8952 (update_subwindow): ditto.
8953 (unmap_subwindow): ditto.
8954 (map_subwindow): ditto
8955 (subwindow_instantiate): ditto.
8956 * glyphs-msw.c (mswindows_update_widget): ditto.
8957 (mswindows_progress_gauge_instantiate): ditto.
8958 (mswindows_tab_control_update): ditto.
8959 * glyphs-x.c (x_update_widget): ditto.
8960 (x_widget_instantiate): ditto.
8961 (x_tab_control_instantiate): ditto.
8962 (x_tab_control_update): ditto.
8963 * event-msw.c (mswindows_wnd_proc): ditto
8965 * glyphs-widget.c (image_instantiator_layout): use
8966 subwindow_decode_domain.
8967 (image_instantiator_buttons): ditto.
8968 (image_instantiator_edit_fields): ditto.
8969 (image_instantiator_combo_box): ditto.
8970 (image_instantiator_scrollbar): ditto.
8971 (image_instantiator_progress_guage): ditto.
8972 (image_instantiator_tree_view): ditto.
8973 (image_instantiator_tab_control): ditto.
8974 (image_instantiator_labels): ditto.
8975 (image_instantiator_layout): ditto.
8977 * glyphs.c: add instance error checking to many functions.
8978 (instantiate_image_instantiator): decode device from cache_domain.
8979 (image_instantiate): partially rewrite by using
8980 decode_image_instantiator_domain to determine what domain the
8981 instance needs to be cached in.
8982 (decode_image_instantiator_domain): new function. Determine what
8983 domain the image needs to be cached in.
8984 (check_window_subwindow_cache): new error checking function.
8985 (check_instance_cache_mapper): ditto.
8986 (check_image_instance_structure): ditto.
8987 (subwindow_decode_domain): new function. Encodes a window as a
8988 subwindow's cache domain.
8989 (image_instantiator_format_create): use it for text and
8992 2000-04-21 Andy Piper <andy@xemacs.org>
8994 * glyphs.c (image_instance_device): new function.
8995 (image_instance_frame): new function.
8996 (image_instance_window): new function.
8997 (image_instance_live_p): new function.
8999 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9002 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9003 (IMAGE_INSTANCE_DOMAIN): new accessor.
9004 (XIMAGE_INSTANCE_DOMAIN): ditto.
9006 * glyphs-x.c (x_finalize_image_instance): device->domain.
9008 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9009 (mswindows_finalize_image_instance): ditto.
9011 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9012 (gif_instantiate): ditto.
9013 (png_instantiate): ditto.
9014 (tiff_instantiate): ditto.
9016 * glyphs.c (instantiate_image_instantiator): use domain rather
9018 (mark_image_instance): device -> domain.
9019 (print_image_instance): ditto.
9020 (finalize_image_instance): ditto.
9021 (image_instance_equal): ditto.
9022 (allocate_image_instance): ditto.
9023 (Fcolorize_image_instance): ditto.
9024 (query_string_geometry): ditto.
9025 (image_instantiate): ditto
9026 (query_string_font): ditto.
9027 (image_instantiate): ditto.
9028 (update_subwindow): ditto.
9029 (unmap_subwindow): ditto.
9030 (map_subwindow): ditto.
9031 (subwindow_instantiate): ditto.
9033 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9034 (DOMAIN_FRAME): ditto.
9035 (DOMAIN_WINDOW): ditto.
9036 (DOMAIN_LIVE_P): ditto.
9037 (XDOMAIN_DEVICE): ditto.
9038 (XDOMAIN_FRAME): ditto.
9039 (XDOMAIN_WINDOW): ditto.
9041 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9042 a valid specifier domain.
9044 2000-04-19 Andy Piper <andy@xemacs.org>
9046 * glyphs-widget.c (syms_of_glyphs_widget): remove
9047 widget-callback-current-channel.
9048 (vars_of_glyphs_widget): ditto.
9051 * gui.c (get_gui_callback): revert to previous behaviour.
9053 2000-04-18 Andy Piper <andy@xemacs.org>
9055 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9056 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9057 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9059 * glyphs.c (image_instance_equal): add margin_width.
9060 (image_instance_hash): ditto.
9062 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9063 (layout_query_geometry): ditto.
9064 (layout_layout): ditto.
9065 (syms_of_glyphs_widget): add margin-width.
9066 (image_instantiator_layout): allow margin-width.
9068 * glyphs.c (update_widget_instances): make a normal function.
9069 (syms_of_glyphs): remove Qupdate_widget_instances.
9072 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9073 so that we don't corrupt ideas about the last event or
9074 command. Remove widget-callback-current-channel fiddling.
9075 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9077 2000-05-01 Martin Buchholz <martin@xemacs.org>
9079 * XEmacs 21.2.33 is released.
9081 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9083 * make-src-depend: Allow dots in header file name.
9085 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9087 * mule-charset.h (struct charset_lookup): Add
9088 next_allocated_1_byte_leading_byte and
9089 next_allocated_2_byte_leading_byte.
9090 * mule-charset.c: Move above two variables so that those values
9093 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9095 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9096 when string length is zero.
9097 (find_charsets_in_emchar_string): Ditto.
9099 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9101 * lisp.h: extern Qdialog and Qmenubar.
9103 * gui-x.c: added events.h.
9104 also fixed typo which made the file uncompilable.
9106 * general.c: Added Qmenubar and Qdialog
9108 2000-04-28 Ben Wing <ben@xemacs.org>
9110 * frame-msw.c (mswindows_init_frame_1):
9111 * frame-msw.c (mswindows_mark_frame):
9112 * event-msw.c (mswindows_enqueue_dispatch_event):
9114 * console-msw.h (struct mswindows_frame):
9115 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9116 there are now three hash tables for callbacks.
9117 mswindows_enqueue_dispatch_event is no longer static.
9119 * dialog-x.c (maybe_run_dbox_text_callback):
9120 * dialog-x.c (dbox_descriptor_to_widget_value):
9121 switch to new cons3 form for callbacks.
9123 * glyphs-msw.c (mswindows_register_gui_item):
9124 * glyphs-msw.c (mswindows_widget_instantiate):
9125 * glyphs-msw.c (add_tree_item):
9126 * glyphs-msw.c (add_tab_item):
9127 new image instance parameter, so it can be passed to callback-ex.
9128 respect :callback-ex as well as :callback.
9130 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9133 * glyphs.c (print_image_instance):
9134 prettify, e.g. now prints widget type.
9137 certain funs have new image instance parameter.
9140 * gui.c (get_gui_callback):
9141 * gui.c (gui_item_add_keyval_pair):
9142 * gui.c (gui_item_init):
9143 * gui.c (gui_add_item_keywords_to_plist):
9144 * gui.c (mark_gui_item):
9145 * gui.c (gui_item_hash):
9146 * gui.c (gui_item_equal):
9147 * gui.c (copy_gui_item):
9148 * gui.c (syms_of_gui):
9149 recognize callback-ex in a number of places.
9150 also, fix the annoying "can't get out of yes-no dialog" bug.
9153 * gui.h (struct Lisp_Gui_Item):
9154 recognize callback-ex in a number of places.
9156 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9157 new parameter in button_item_to_widget_value.
9159 * glyphs-x.c (x_update_widget):
9160 * glyphs-x.c (x_button_instantiate):
9161 * glyphs-x.c (x_button_update):
9162 * glyphs-x.c (x_progress_gauge_instantiate):
9163 * glyphs-x.c (x_edit_field_instantiate):
9164 * glyphs-x.c (x_combo_box_instantiate):
9165 * glyphs-x.c (x_tab_control_instantiate):
9166 * glyphs-x.c (x_label_instantiate):
9167 new image instance parameter in various places.
9170 * event-Xt.c (enqueue_Xt_dispatch_event):
9171 this fun gets exported.
9174 * gui-msw.c (mswindows_handle_gui_wm_command):
9175 handle both :callback and :callback-ex, and generate our own
9176 event because it's one of the callback-ex arguments.
9179 * gui-x.c (popup_selection_callback):
9180 handle both :callback and :callback-ex, and generate our own
9181 event because it's one of the callback-ex arguments.
9182 * gui-x.c (button_item_to_widget_value):
9183 * gui-x.c (gui_items_to_widget_values_1):
9184 * gui-x.c (gui_item_children_to_widget_values):
9185 * gui-x.c (gui_items_to_widget_values):
9186 new image instance parameter in various places.
9188 * fns.c (Freplace_list):
9189 fix small typo in doc string.
9192 declare enqueue_Xt_dispatch_event.
9194 2000-04-28 Ben Wing <ben@xemacs.org>
9197 * buffer.c (Frecord_buffer):
9198 * buffer.c (syms_of_buffer):
9199 delete record-buffer-hook.
9202 * fns.c (Freplace_list):
9203 * fns.c (syms_of_fns):
9204 new primitive replace-list.
9207 slot for old buffer-alist.
9213 * redisplay.c (redisplay_frame):
9214 * redisplay.c (syms_of_redisplay):
9215 * redisplay.c (vars_of_redisplay):
9216 new hook buffer-list-changed-hook.
9219 2000-04-27 Ben Wing <ben@xemacs.org>
9221 * extents.h: extern in_modeline_generation.
9223 * redisplay.c (generate_formatted_string_db): set
9224 in_modeline_generation.
9226 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9227 flags if in modeline generation. otherwise frame-modified-tick
9228 is ticked far too often.
9229 Declare in_modeline_generation.
9231 2000-04-26 Ben Wing <ben@xemacs.org>
9233 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9235 (vars_of_emacs): add quick-build as an error-checking option.
9236 A bit kludgy, but there doesn't seem much point in creating
9237 a real var for this.
9239 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9241 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9243 * redisplay.h (struct display_line): Add a new variable,
9246 * redisplay.c (create_text_block): Set dl->line_continuation if
9248 (create_string_text_block): Ditto.
9249 (regenerate_window_incrementally): Use line_continuation instead
9250 of searching continuation glyph.
9251 (add_margin_runes): Call add_glyph_rune.
9252 (add_glyph_rune): Handle margin glyph.
9254 2000-04-20 Martin Buchholz <martin@xemacs.org>
9256 * filelock.c (fill_in_lock_file_name):
9258 Check for IS_ANY_SEP instead of '/'.
9260 Avoid generating gratuitous garbage. Call user_login_name() directly.
9261 Never check errno without first seeing that system call failed.
9262 (unlock_file): Add GCPRO.
9263 (Flock_buffer): Fix docstring.
9264 (Ffile_locked_p): Fix docstring. Add GCPRO.
9266 2000-04-19 Martin Buchholz <martin@xemacs.org>
9268 * sysdep.c (get_pty_max_bytes):
9269 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9270 strings longer than 252 bytes.
9272 * md5.c: Unconditionally include ANSI header <limits.h>
9274 * glyphs-x.c (convert_EImage_to_XImage):
9275 * lisp-union.h (union Lisp_Object):
9276 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9278 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9280 * filelock.c (current_lock_owner): Remove unused variable o, p.
9282 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9284 * callint.c: Remove multiply defined symbol Qlet
9285 (syms_of_callint): ditto.
9287 2000-04-14 Andy Piper <andy@xemacs.org>
9289 * general.c (syms_of_general): add last-command, this-command, let
9292 * lisp.h: declare various symbols.
9294 * glyphs.h: declare Qwidget_callback_current_channel;
9296 * glyphs-widget.c (syms_of_glyphs_widget): add
9297 Qgui_callback_current_channel.
9298 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9300 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9301 widget-callback-current-channel when invoking the interactive
9302 arg. Also bind last-command and next-command when invoking the
9304 * gui-x.c (popup_selection_callback): ditto.
9306 * gui.c (get_gui_callback): massage args so that we are always
9307 calling eval. This allows us to add our own variable bindings
9310 * glyphs-x.c (x_button_instantiate): use
9311 gui_items_to_widget_values since this is GC safe.
9312 (x_progress_gauge_instantiate): ditto.
9313 (x_edit_field_instantiate): ditto.
9314 (x_label_instantiate): ditto.
9316 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9317 (emacs_Xt_event_widget_focus_out): new function
9318 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9320 (emacs_Xt_event_add_widget_actions): new function. add focus
9321 functions as actions.
9322 (init_event_Xt_late): use it.
9324 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9326 * event-stream.c (Fdispatch_event): Doc fix.
9328 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9330 * postgresql.c: Remove all references to PQsetenv*.
9332 * postgresql.h: Remove references to PGsetenvHandler object.
9333 * lrecord.h (lrecord_type): Ditto.
9335 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9337 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9338 real_heigh and real_width members, and accessor macros for these.
9340 * glyphs-msw.c (init_image_instance_geometry): New function.
9341 (init_image_instance_from_dibitmap): Use it.
9342 (mswindows_resource_instantiate): Use it.
9343 (init_image_instance_from_xbm_inline): Use it.
9344 (mswindows_initialize_image_instance_mask): Use real bitmap
9346 (mswindows_create_resized_bitmap): Ditto.
9347 (mswindows_create_resized_mask): Ditto.
9349 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9350 and bitmap to their surface size.
9352 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9354 * process-unix.c (unix_send_process): Guard against process MIA
9355 after Faccept_process_output.
9357 2000-04-11 Ben Wing <ben@xemacs.org>
9359 * eval.c (unbind_to_hairy): fix brokenness introduced by
9360 nanosecond speed improvements.
9362 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9364 * sunplay.c (init_device): To play sounds correctly, the device
9365 apparently needs to be initialized at least once by XEmacs. Make
9368 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9370 * redisplay.c (add_margin_runes): Add text image glyph
9373 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9375 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9376 gcc is newer than 2.5.
9378 2000-04-06 Colin Rafferty <colin@xemacs.org>
9380 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9382 * fns.c (size_bit_vector):
9383 * alloc.c (size_vector):
9384 (make_vector_internal):
9385 (make_bit_vector_internal):
9386 (sweep_bit_vectors_1):
9387 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9389 2000-04-06 Andy Piper <andy@xemacs.org>
9391 * gmalloc.c (malloc): undo previous change.
9396 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9398 * line-number.c (buffer_line_number): Revert to former version.
9400 2000-04-06 Andy Piper <andy@xemacs.org>
9402 * gmalloc.c (malloc): add error checking.
9407 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9408 button_item_to_widget_value arg.
9410 * glyphs-x.c (x_button_instantiate): add extra
9411 button_item_to_widget_value arg.
9412 (x_progress_gauge_instantiate): ditto.
9413 (x_edit_field_instantiate): ditto.
9414 (x_label_instantiate): ditto.
9416 * gui-x.c (gui_items_to_widget_values_1): add extra
9417 button_item_to_widget_value arg.
9418 (button_item_to_widget_value): add extra menu_item_p arg.
9420 * gui-x.h: change signature of button_item_to_widget_value.
9422 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9423 button_item_to_widget_value arg.
9425 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9427 * buffer.h (struct buffer): auto_save_modified should be long.
9429 2000-04-05 Andy Piper <andy@xemacs.org>
9431 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9433 (button_query_geometry): give a little more room so that athena
9436 2000-04-05 Andy Piper <andy@xemacs.org>
9438 * faces.c (complex_vars_of_faces): The widget face should inherit
9439 the font of the gui-element face.
9441 2000-04-04 Andy Piper <andy@xemacs.org>
9443 * glyphs-x.c (x_button_update): new function. unconditionally
9444 update a button's state when the instance is dirty.
9445 (image_instantiator_format_create_glyphs_x): add x_button_update.
9446 (x_widget_instantiate): remove old resize cruft.
9448 2000-04-02 Andy Piper <andy@xemacs.org>
9450 * frame.c (change_frame_size_1): The introduction of gutters means
9451 that we need to allow 0 as a potential frame dimension.
9453 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9455 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9456 image glyph if allow_cursor.
9457 (add_hscroll_rune): Don't allow cursor to border glyph.
9458 (create_text_block): Ditto.
9460 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9462 (redisplay_output_layout): Call ensure_face_cachel_complete for
9466 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9468 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9470 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9473 * redisplay-tty.c (tty_output_display_block): Delete the routine
9474 for text image glyph
9475 * redisplay-x.c (x_output_display_block): ditto
9476 * redisplay-msw.c (mswindows_output_display_block): ditto
9478 2000-02-02 Mike Alexander <mta@arbortext.com>
9480 Note: Some of these were committed by accident as part of other
9483 * regex.c (regex_compile): Avoid compiler warnings.
9485 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9487 * nt.h: Declare term_ntproc correctly.
9489 * nt.c: Remove incorrect declaration of get_home_directory which
9490 is declared correctly in lisp.h.
9492 * keymap.c (get_keyelt): Avoid compiler warnings.
9493 (raw_lookup_key_mapper): Avoid compiler warnings.
9495 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9497 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9499 * filemode.c (mode_string): Avoid compiler warnings.
9501 * file-coding.c (Fcoding_system_aliasee): Add return statement to
9504 * events-mod.h: Undef some things that winuser.h defines differently.
9506 * data.c (Faset): Avoid compiler warnings.
9508 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9510 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9512 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9513 Fall through to simple beep on error.
9514 Replace "extern" by real header file.
9516 * linuxplay.c: Use nativesound.h
9517 (play_sound_data): Return error code. Be less verbose on error.
9519 * sunplay.c: Use nativesound.h
9520 (play_sound_data): Return error code. Be less verbose on error.
9522 * ntplay.c: Use nativesound.h
9523 (play_sound_data): Return fake error code
9525 * sgiplay.c: Use nativesound.h
9526 (play_sound_data): Return error code
9528 * hpplay.c: Use nativesound.h, partially implement
9529 new error code. Break compilation until finished.
9530 (play_sound_data): error code.
9532 * nativesound.h (play_sound_file):
9533 (play_sound_data): Prototype in new header.
9535 2000-03-31 Andy Piper <andy@xemacs.org>
9537 * glyphs-widget.c: (button_query_geometry): new function. Adjust
9538 for toggle and radio buttons.
9539 (image_instantiator_buttons): use it.
9541 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9543 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9544 (x_update_horizontal_scrollbar_callback): Return if no mirror was
9545 found. Scrollbar event probably belonged to some old config.
9547 2000-03-31 Andy Piper <andy@xemacs.org>
9549 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9551 (initialize_widget_image_instance): default layout to
9552 LAYOUT_HORIZONTAL rather than 0.
9553 (widget_instantiate): reverse the item list at the end rather than
9555 (layout_layout): re-code for the border text at the front of the
9556 item list rather than at the end.
9557 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9558 provided by the user.
9559 (widget_query_geometry): comment.
9561 2000-03-30 Andy Piper <andy@xemacs.org>
9563 * glyphs-widget.c (image_instantiator_layout): allow standard
9564 widget keywords in layouts.
9566 * gutter.c (output_gutter): cope with nil gutter contents.
9568 * frame.c (Fset_frame_properties): add gutter docs.
9570 2000-03-29 Andy Piper <andy@xemacs.org>
9572 * toolbar-msw.c (TBSTYLE_FLAT): add.
9573 (mswindows_output_toolbar): minor fiddling.
9575 2000-03-29 Andy Piper <andy@xemacs.org>
9577 * gutter.c (output_gutter): force gutter size recalculation if
9578 what we are trying to display won't fit.
9579 (update_gutter_geometry): new function. A per-gutter version of
9580 update_frame_gutter_geometry.
9581 (update_frame_gutter_geometry): use it.
9582 (redraw_exposed_gutter): add extra debugging output.
9584 2000-03-28 Mike Alexander <mta@arbortext.com>
9586 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9587 (pdump_file_unmap): Implement it on Windows
9588 (pdump_file_get): Save alocated handles for pdump_file_unmap
9590 2000-03-28 Andy Piper <andy@xemacs.org>
9592 * gui.c (get_gui_callback): treat Quit specially.
9594 2000-03-27 Andy Piper <andy@xemacs.org>
9596 * glyphs.c (image_instantiate): be careful to check in the same
9599 2000-03-27 Didier Verna <didier@xemacs.org>
9601 * config.h.in: define the proper SMART_INCLUDE macro.
9602 handle renaming of `foo_h_path' to `foo_h_file'.
9604 * database.c: ditto.
9608 * linuxplay.c: ditto.
9610 * terminfo.c: ditto.
9612 * tooltalk.h: ditto.
9614 2000-03-27 Andy Piper <andy@xemacs.org>
9616 * glyphs-msw.c (mswindows_update_widget): make sure the widget
9617 gets updated whenever the face might have changed.
9619 2000-03-26 Mike Alexander <mta@arbortext.com>
9621 * dumper.c (pdump_resource_free): Fix the comment.
9623 2000-03-21 Olivier Galibert <galibert@pobox.com>
9625 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9627 2000-03-22 Mike Alexander <mta@arbortext.com>
9629 * dumper.c: Include Windows headers on Windows
9630 (pdump_resource_free): Add a body to the function
9631 (pdump_load): exe_name -> exe_path and add some comments.
9633 2000-03-25 Mike Alexander <mta@arbortext.com>
9635 * gui.c (copy_gui_item_tree): Return a value in all cases
9637 2000-03-21 Didier Verna <didier@xemacs.org>
9639 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9641 (SMART_INCLUDE): new macro.
9642 (POSTGRES_INCLUDE): new macro to include postgresql headers from
9643 the proper location.
9645 * postgresql.c: use it.
9649 2000-03-24 Andy Piper <andy@xemacs.org>
9651 * gutter.c (redraw_exposed_gutters): must be "in display" when we
9654 2000-03-24 Andy Piper <andy@xemacs.org>
9656 * redisplay-output.c (compare_runes): use image_instance_changed
9657 to detect changes. Do not depend on glyphs_changed, only depend on
9659 (redisplay_output_layout): add debug messages.
9660 (compare_runes): ditto.
9662 * glyphs.h: declare new functions.
9663 (struct Lisp_Image_Instance): remove percent and associated
9666 * gui.h: declare new copying functions.
9668 * gui.c (copy_gui_item_tree): new function.
9669 (copy_gui_item): new function.
9670 (gui_item_id_hash): revert to standard hash.
9671 (gui_item_hash): ditto.
9672 (gui_item_hash_internal): deleted.
9673 (mark_gui_item): mark value.
9674 (gui_item_add_keyval_pair): add value.
9675 (gui_item_init): ditto.
9676 (gui_add_item_keywords_to_plist): ditto.
9677 (gui_item_equal): ditto.
9678 (syms_of_gui): add Q_value.
9680 * glyphs-x.c (x_progress_gauge_update): use pending items and
9681 value for setting the state.
9682 (x_update_widget): don't set items from pending here.
9684 * glyphs-widget.c (update_widget): update items here.
9685 (progress_gauge_set_property): use items for storing value. Put
9686 new value in pending items.
9688 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9689 items for new value. Convert percent -> value.
9690 (mswindows_tab_control_update): don't update items here.
9692 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9693 (update_subwindow): ditto.
9694 (image_instance_changed): new function. Compare hash values and
9695 past and present widget items.
9696 (image_instantiate): We more careful about where we instantiate
9698 (image_instantiate): add error checking.
9700 * gutter.c (syms_of_gutter): use -hook.
9702 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
9704 * console-tty.c (Fset_console_tty_input_coding_system): Use
9706 (Fset_console_tty_output_coding_system): Use Qterminal.
9707 (tty_init_console): Use Qkeyboard and Qterminal.
9709 2000-03-21 Ben Wing <ben@xemacs.org>
9711 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9712 From Mike Alexander <mta@arbortext.com>.
9714 2000-03-21 Ben Wing <ben@xemacs.org>
9716 * event-msw.c (mswindows_need_event): Horrible kludge to fix
9717 process brokenness. Proper implementation to come.
9719 Rename call-process-internal to old-call-process-internal.
9720 New impl. in process.el.
9722 2000-03-21 Martin Buchholz <martin@xemacs.org>
9724 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9726 2000-03-20 Andy Piper <andy@xemacs.org>
9728 * glyphs.c (full_list_hash): make hashes of the same elements in
9729 different orders return different values.
9731 2000-03-20 Martin Buchholz <martin@xemacs.org>
9733 * XEmacs 21.2.32 is released.
9735 2000-03-20 Martin Buchholz <martin@xemacs.org>
9737 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9738 (DFC_MALLOC_USE_CONVERTED_DATA):
9739 Add aliasing-safe casts to allow use with char* or unsigned char*
9742 * eldap.c (Fldap_open):
9743 (Fldap_search_basic):
9746 Make C++-compilable.
9747 Make sure GCPRO'ed variables are initialized.
9748 Use temp variables to avoid repeated calls to Flength.
9750 2000-03-16 Martin Buchholz <martin@xemacs.org>
9753 Make sure PATH_MAX is always defined.
9754 Include limits.h for PATH_MAX.
9755 Deprecate use of MAXPATHLEN.
9757 2000-03-10 Martin Buchholz <martin@xemacs.org>
9759 * emacs.c: Add reinit_vars_of_fileio.
9760 * symsinit.h: Add reinit_vars_of_fileio.
9761 * fileio.c (reinit_vars_of_fileio): New.
9762 * fileio.c (Fmake_temp_name):
9763 Initialize temp_name random number from microseconds to make
9764 collisions even less likely. Initialize always at process startup
9765 time. (make-temp-name) used to return the same file name twice in
9767 Random stylistic fiddling.
9770 2000-03-20 Andy Piper <andy@xemacs.org>
9772 * glyphs.c (image_instantiate): allow text glyphs to be
9773 instantiated in the minibuffer window.
9775 2000-03-19 Andy Piper <andy@xemacs.org>
9777 * glyphs.c (image_instance_hash): be careful about which items we
9780 * glyphs-widget.c (tab_control_set_property): record into pending
9781 items rather than the actual items.
9783 * glyphs-x.c (x_update_widget): use pending items to update with.
9785 * glyphs-msw.c (mswindows_tab_control_update): use pending items
9788 * glyphs.c (mark_image_instance): mark pending items.
9790 * window.c (Fset_window_configuration): record the buffer.
9791 (Fselect_window): totally revert previous change which breaks many
9794 2000-03-18 Andy Piper <andy@xemacs.org>
9796 * glyphs-msw.c (mswindows_tab_control_update): force selected
9799 * glyphs.c (image_instantiate): don't allow the minibuffer as a
9800 window domain cache, otherwise we get inconsistencies at
9801 startup. There is something fishy at startup which can lead to the
9802 minibuffer being the selected window when the gutter content is
9805 * gui.c (parse_gui_item_tree_list): add probably unnecessary
9807 (parse_gui_item_tree_children): ditto.
9808 (parse_gui_item_tree_item): ditto.
9810 * glyphs.c (Fupdate_widget_instances): return something.
9812 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
9814 * window.c (Fselect_window): Undo 2000-03-17 change.
9816 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
9818 * postgresql.c (Fpq_setenv): Remove this turkey when linking
9819 against v7.0 libraries. Insta-coredump city until the postgres
9822 2000-03-17 Andy Piper <andy@xemacs.org>
9824 * faces.c (complex_vars_of_faces): don't give the widget face an
9825 inherited background pixmap.
9827 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9830 * event-stream.c (Fdispatch_non_command_events): return something.
9832 * gutter.c (output_gutter): use widget face.
9833 (clear_gutter): ditto.
9835 * NEWS: adjust again.
9837 * window.c (Fselect_window): make sure this runs to completion to
9838 avoid oddities with Fset_window_configuration.
9839 (Fcurrent_window_configuration): in general do not save the
9840 minibuffer as the selected window.
9842 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9844 2000-03-16 Olivier Galibert <galibert@pobox.com>
9846 * emacs.c (Frunning_temacs_p): Revert previous patch.
9847 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9849 2000-03-16 Andy Piper <andy@xemacs.org>
9851 * glyphs-x.c (x_tab_control_update): if no widget values then
9854 * NEWS: update for new features.
9856 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9857 synthetic event to the native system.
9858 (reinit_vars_of_event_Xt): set force_event_pending to
9859 emacs_Xt_force_event_pending.
9861 * events.h (struct event_stream): add force_event_pending.
9863 * specifier.c (recompute_one_cached_specifier_in_window): add
9866 * redisplay.c (redisplay_frame): don't call
9867 update_frame_subwindows. Reset subwindow cachels when
9868 subwindows_changed, removing this was an optimization too far.
9870 * redisplay-output.c (compare_runes): reorganize so that we catch
9871 glyph changes when we want them. Set optimize_output when this
9873 (redisplay_output_layout): remove frame_really_changed, use
9874 optimize_output instead.
9876 * redisplay-msw.c (mswindows_output_display_block): reset
9877 optimize_output after outputting a glyph.
9878 * redisplay-x.c (x_output_display_block): ditto.
9879 * redisplay-tty.c (tty_output_display_block): ditto.
9881 * gutter.c: (specifier_vars_of_gutter): use new spec changed
9883 (gutter_specs_changed): do specific gutter positions.
9884 (top_gutter_specs_changed): new function. Only update the
9885 specified gutter specs.
9886 (bottom_gutter_specs_changed): ditto.
9887 (left_gutter_specs_changed): ditto.
9888 (right_gutter_specs_changed): ditto.
9890 * gui.c (gui_item_hash_internal): new function, does a real hash.
9891 (gui_item_id_hash): use it.
9892 (gui_item_hash): hash the eval'ed gui_item.
9894 * gui-x.c (popup_selection_callback): send an eval event to call
9895 Fupdate_widget_instances.
9897 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9898 to call Fupdate_widget_instances.
9900 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9901 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9903 * glyphs.c: (update_frame_subwindows): deleted.
9904 (Fupdate_widget_instances): new function for updating the dirty
9905 state of widgets that might have changed.
9906 (syms_of_glyphs): add Qupdate_widget_instances.
9907 (full_list_hash): hash a list completely.
9908 (image_instance_hash): use it for items and properties.
9910 * frame-msw.c (mswindows_size_frame_internal): remove unused
9913 * faces.h (struct face_cachel): fix comment.
9915 * event-stream.c (Fdispatch_non_command_events): new
9916 function. Process non-command events, forcing an event cycle
9918 (syms_of_event_stream): declare.
9919 (event_stream_force_event_pending): new function. Force an event
9920 on the native event queue so that an event cycle will occur next
9924 (struct ntpipe_shove_stream):
9925 (mswindows_enqueue_dispatch_event):
9926 (mswindows_dequeue_dispatch_event):
9927 (mswindows_cancel_dispatch_event):
9928 (mswindows_pump_outstanding_events):
9929 (mswindows_drain_windows_queue):
9930 (mswindows_handle_paint):
9931 (mswindows_wnd_proc):
9932 (mswindows_key_to_emacs_keysym):
9933 (get_process_input_waitable):
9934 (emacs_mswindows_delete_stream_pair): re-indent file.
9935 (mswindows_need_event): do not process further fds if the windows
9936 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9937 fixes the 100% cpu problem.
9938 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9940 2000-03-15 Olivier Galibert <galibert@pobox.com>
9946 * emacs.c: Moved dump file searching to dumper.c.
9947 (Frunning_temacs_p): Fixed.
9949 * alloc.c: Moved everything pdump-related to dumper.c. Removed
9950 last_lrecord_type_index_assigned.
9952 2000-02-20 Olivier Galibert <galibert@pobox.com>
9954 * symsinit.h: Added reinit parameter to init_console_stream
9957 * lisp.h: Added file parameter to pdump_load declaration.
9959 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9960 support. Added dump file searching.
9962 * config.h.in: Added EMACS_PROGNAME.
9964 * console-stream.c (init_console_stream): Fix reinitialisation
9965 when running from temacs.
9967 * alloc.c (pdump): Add id support.
9968 (pdump_load): Add file parameter and signature/id support.
9970 * Makefile.in.in: Add full pdump support.
9972 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
9974 * postgresql.c: Update documentation to reflect latest code
9976 (print_result): Show tuple counts in printed representation when
9978 (Fpq_put_nbytes): MULE-ize.
9979 (Fpq_get_line_async): Ditto.
9981 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
9983 * postgresql.c (Fpq_lo_import): Fix return value.
9984 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9986 2000-03-13 Ben Wing <ben@xemacs.org>
9988 * alloc.c (pdump_load):
9989 Fix compile warning under mswin.
9991 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
9993 * postgresql.c: Mule-ization, bug fixes.
9994 Use PG_CODING to encapsulate coding system name changes.
9995 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9996 (pg-coding-system): Create.
9998 (Fpq_conn_defaults): Mule-ize.
9999 (Fpq_connectdb): Mule-ize & bug fix.
10000 (Fpq_connect_start): Mule-ize.
10001 (Fpq_set_client_encoding): Mule-ize.
10002 (Fpq_finish): Document `DEAD' connection status.
10003 (Fpq_clear): Ditto.
10004 (Fpq_pgconn): Mule-ize.
10005 (Fpq_exec): Mule-ize & bug fix.
10006 (Fpq_send_query): Ditto.
10007 (Fpq_get_result): Ditto.
10008 (Fpq_res_status): Mule-ize.
10009 (Fpq_result_error_message): Mule-ize.
10010 (Fpq_ntuples): fix comments.
10011 (Fpq_fname): Mule-ize.
10012 (Fpq_fnumber): Mule-ize.
10013 (Fpq_ftype): fix comments.
10014 (Fpq_get_value): Mule-ize.
10015 (Fpq_cmd_status): Ditto.
10016 (Fpq_cmd_tuples): Ditto.
10017 (Fpq_oid_value): Ditto.
10018 (Fpq_notifies): Ditto.
10019 (Fpq_lo_import): Ditto.
10020 (Fpq_lo_export): Ditto.
10021 (Fpq_get_line): Ditto.
10022 (Fpq_put_line): Mule-ize and bug fix.
10023 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10025 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10027 * postgresql.c (vars_of_postgresql): Mule-ize.
10028 (Fpq_conn_defaults): Ditto.
10030 2000-03-12 Ben Wing <ben@xemacs.org>
10032 * alloc.c (Fmake_byte_code):
10033 * alloc.c (debug_string_purity_print):
10034 * alloc.c (pdump_backtrace):
10035 * alloc.c (pdump_get_indirect_count):
10036 * alloc.c (pdump_register_sub):
10037 * alloc.c (pdump_register_object):
10038 * alloc.c (pdump_register_struct):
10039 * alloc.c (pdump_dump_data):
10040 * alloc.c (pdump_reloc_one):
10044 * console-msw.c (GetConsoleHwnd):
10045 * console-msw.c (msw_hide_console):
10046 * console-msw.c (msw_show_console):
10047 * console-msw.c (msw_ensure_console_buffered):
10048 * console-msw.c (msw_output_console_string):
10049 * console-msw.c (console_type_create_mswindows):
10051 a) Added functions to manipulate the console window for use with
10054 b) Added support for writing text to the console, which is now
10055 used under Windows when xemacs is not being run non-interactively,
10056 to write text that would otherwise be destined for stdout because
10057 under these circumstances, text written to stdout tends to
10058 disappear and not be seen.
10062 * event-Xt.c (x_event_to_emacs_event):
10063 * event-Xt.c (describe_event_window):
10064 * events-mod.h (XEMACS_MOD_CONTROL):
10066 * events.c (Fmake_event):
10067 * events.c (character_to_event):
10068 * events.c (event_to_character):
10069 * events.c (format_event_object):
10070 * events.c (Fevent_modifiers):
10072 * events.h (struct key_data):
10073 * events.h (struct button_data):
10074 * events.h (struct misc_user_data):
10075 * frame-x.c (Fcde_start_drag_internal):
10076 * frame-x.c (Foffix_start_drag_internal):
10077 * gpmevent.c (Freceive_gpm_event):
10079 * keymap.c (bucky_sym_to_bucky_bit):
10080 * keymap.c (control_meta_superify):
10081 * keymap.c (make_key_description):
10082 * keymap.c (keymap_lookup_directly):
10083 * keymap.c (create_bucky_submap):
10084 * keymap.c (keymap_store):
10085 * keymap.c (define_key_check_and_coerce_keysym):
10086 * keymap.c (define_key_parser):
10087 * keymap.c (define_key_alternate_name):
10088 * keymap.c (Fdefine_key):
10089 * keymap.c (raw_lookup_key_mapper):
10090 * keymap.c (struct map_keymap_unsorted_closure):
10091 * keymap.c (map_keymap_unsorted_mapper):
10092 * keymap.c (map_keymap_sort_predicate):
10093 * keymap.c (map_keymap_sorted):
10094 * keymap.c (accessible_keymaps_mapper_1):
10095 * keymap.c (where_is_recursive_mapper):
10096 * keymap.c (describe_map_mapper):
10097 * keymap.c (describe_map_sort_predicate):
10098 * keymap.c (describe_map):
10099 * keymap.c (complex_vars_of_keymap):
10100 And a number of other files, the key modifier preprocessor
10101 constants that xemacs uses have names that conflict with constants
10102 defined under MS Windows for other purposes, so they were renamed
10103 to begin with the prefix XEMACS_. The variables that hold such
10104 modifiers were changed to consistently be of type int to fix
10105 various compile warnings.
10107 * console.c (complex_vars_of_console):
10110 * device-msw.c (mswindows_finish_init_device):
10111 * device-msw.c (msw_get_workspace_coords):
10112 * device-msw.c (mswindows_device_system_metrics):
10113 and various other files, added support for a new
10114 device property called offset-workspace which returns the position
10115 of the upper left corner of the workspace area and goes along with
10116 the existing size-workspace property.
10119 * dialog-msw.c (push_bufbyte_string_as_unicode):
10120 * dialog-msw.c (mswindows_popup_dialog_box):
10121 Added support for XEmacs-style accelerator specifications in
10122 button text. Note: I didn't add support for this under X Windows,
10123 and somebody needs to do this.
10126 * dialog.c (Fpopup_dialog_box):
10127 Documented the support for accelerators that was just mentioned.
10129 editfns.c (get_home_directory): Changed behavior under Windows
10130 when HOME not defined; former behavior was irretrievably broken.
10133 * emacs.c (main_1):
10135 * minibuf.c (clear_echo_area_internal):
10136 * minibuf.c (echo_area_append):
10138 * print.c (std_handle_out_external):
10139 * print.c (std_handle_out_va):
10141 * print.c (write_string_to_stdio_stream):
10142 * print.c (output_string):
10143 * print.c (debug_print):
10144 * print.c (debug_backtrace):
10145 * print.c (debug_short_backtrace):
10146 Cleaned up the code that prints text to stdout so that this can be
10147 changed to output into a console window instead under MS Windows,
10148 as described above.
10151 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10152 * eval.c (internal_catch):
10153 * eval.c (unwind_to_catch):
10154 * eval.c (throw_or_bomb_out):
10155 * eval.c (condition_case_1):
10156 * eval.c (signal_1):
10157 * eval.c (check_error_state_sanity):
10158 * eval.c (call_with_suspended_errors_1):
10159 * eval.c (call_with_suspended_errors):
10160 * eval.c (reinit_vars_of_eval):
10161 Added code to catch throw loops and check for a pesky bug that may
10165 * event-msw.c (key_needs_default_processing_p):
10166 * event-msw.c (mswindows_wnd_proc):
10167 * event-msw.c (mswindows_modifier_state):
10168 * event-msw.c (emacs_mswindows_quit_p):
10169 * event-msw.c (vars_of_event_mswindows):
10170 a) Added support for using the alt key to select menu items as is
10171 standard under MS Windows. This is controlled using the variable
10172 menu-accelerator-enabled, just like under X Windows. There is an
10173 option on the options menu to turn this support on. I really
10174 think that it should be on by default under Windows, but I'm not
10175 going to make this change yet.
10177 b) Added support for dynamic display size changes under Windows.
10180 * event-stream.c (maybe_echo_keys):
10181 * event-stream.c (Fnext_event):
10182 * event-stream.c (command_builder_find_leaf):
10183 * event-stream.c (lookup_command_event):
10184 * event-stream.c (execute_command_event):
10185 * event-stream.c (pre_command_hook):
10186 * event-stream.c (post_command_hook):
10187 * event-stream.c (syms_of_event_stream):
10188 * event-stream.c (vars_of_event_stream):
10189 * event-stream.c (complex_vars_of_event_stream):
10190 * events.h (struct command_builder):
10192 a) Tried to clean up a little bit the horribly written x-specific
10193 accelerator code that crept into this file. I moved this code
10194 into menubar-x.c where it belongs. I also needed to move the
10195 command builder structure into the file events.h because it is
10196 accessed directly by this accelerator code. What I didn't do, but
10197 which should be done at some point, is to properly abstract this
10198 code using device methods instead of the kludgy way that it
10199 currently hooks into the event code.
10201 b) Added the lisp variables this-command-properties and
10202 last-command- properties, which should be used to synchronize two
10203 adjacent commands in preference to playing games with the variable
10204 this-command, which is typically what happens.
10206 c) Added some slightly nasty code to hook into the lisp support
10207 for shifted- motion-key selection. This is actually necessary for
10208 somewhat complicated reasons, which are described in
10209 simple.el. (NB: I think the proper thing would be to have the code
10210 that calls the pre and post command hooks also call out to generic
10211 lisp functions in simple.el, where all built-in stuff could be
10212 added. I will think about this more.)
10214 * event-unixoid.c (poll_fds_for_input):
10215 * lread.c (readchar):
10216 * redisplay-tty.c (tty_clear_frame):
10217 * redisplay-x.c (x_get_gc):
10218 * signal.c (interrupt_signal):
10219 And a whole bunch of other files: fixed up places that printed
10220 directly to stderr to instead call the function stderr_out so that
10221 the changes I made under Windows work correctly.
10223 * filemode.c (mode_string):
10227 * frame-msw.c (mswindows_size_frame_internal):
10228 Fixed the computation of frame size and position to keep the frame
10229 within the workspace area, rather than within the physical
10230 dimensions of the screen, so that the frame doesn't overlap window
10231 manager decorations, such as the start menu and toolbar, typically
10232 at the bottom of the screen.
10234 * frame.c (vars_of_frame):
10235 Changed the default frame title format under MS Windows to consist
10236 of buffername-XEmacs, which is standard under MS Windows. I think
10237 it might be a good idea to change this everywhere because I think
10238 it is superior to the current frame title format, but this is the
10239 kind of change that is likely to cause some people to get annoyed,
10240 so I'm not making it.
10242 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10244 * gui-msw.c (mswindows_handle_gui_wm_command):
10245 Fixed compile warnings.
10248 * gui-x.c (strdup_and_add_accel):
10249 * gui-x.c (button_item_to_widget_value):
10251 Added code to automatically put an accelerator onto the beginning
10252 of menu items that don't have one as is now the standard, and is
10253 described more later. Also fixed things so that the menu item
10254 name can be an evaluated expression, again a new standard.
10257 * gui.c (gui_item_add_keyval_pair):
10258 * gui.c (make_gui_item_from_keywords_internal):
10259 * gui.c (gui_add_item_keywords_to_plist):
10260 * gui.c (gui_item_accelerator):
10261 * gui.c (gui_name_accelerator):
10262 * gui.c (gui_item_included_p):
10263 * gui.c (gui_item_display_flush_left):
10264 * gui.c (gui_item_display_flush_right):
10265 * gui.c (parse_gui_item_tree_item):
10266 * gui.c (parse_gui_item_tree_children):
10267 * gui.c (parse_gui_item_tree_list):
10268 Mule-ized. Cleanup. GCPRO addition.
10270 * line-number.c (buffer_line_number):
10272 * lisp.h (EMACS_INT_MAX):
10273 Added the manifest constant EMACS_INT_MIN corresponding to the
10274 existing constant EMACS_INT_MAX. This is partially to fix compile
10275 warnings under Windows, and partly for cleanliness.
10278 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10279 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10280 * menubar-msw.c (displayable_menu_item):
10281 * menubar-msw.c (populate_menu_add_item):
10282 * menubar-msw.c (populate_or_checksum_helper):
10283 * menubar-msw.c (populate_menu):
10284 * menubar-msw.c (update_frame_menubar_maybe):
10285 * menubar-msw.c (prune_menubar):
10286 * menubar-msw.c (msw_char_is_accelerator):
10287 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10288 * menubar-msw.c (mswindows_handle_wm_command):
10289 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10290 * menubar-msw.c (mswindows_handle_wm_initmenu):
10291 * menubar-msw.c (mswindows_update_frame_menubars):
10292 * menubar-msw.c (mswindows_free_frame_menubars):
10293 * menubar-msw.c (mswindows_popup_menu):
10294 Fixed a bug in handling accelerators where an extra character
10295 would be displayed in the menu item. Also generalized the
10296 function displayable_menu_item because it is now used by the
10297 dialog box code as well. And finally, added code in the functions
10298 that create the menubar to extract a list of accelerators for the
10299 top level menubar, which is used in the event code to determine
10300 whether a particular alt-key combination should be used to invoke
10301 a menu item, or should be passed through to access the standard
10302 XEmacs keymap binding for this key combination.
10304 Much needed GCPROing.
10307 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10308 * menubar-x.c (menu_item_descriptor_to_widget_value):
10309 * menubar-x.c (restore_in_menu_callback):
10310 * menubar-x.c (x_popup_menu):
10311 * menubar-x.c (menu_move_up):
10312 * menubar-x.c (menu_move_down):
10313 * menubar-x.c (menu_move_left):
10314 * menubar-x.c (menu_move_right):
10315 * menubar-x.c (menu_select_item):
10316 * menubar-x.c (command_builder_operate_menu_accelerator):
10317 * menubar-x.c (menu_accelerator_junk_on_error):
10318 * menubar-x.c (command_builder_find_menu_accelerator):
10319 * menubar-x.c (Faccelerate_menu):
10321 Moved a whole bunch of code here that was previously in
10322 event-stream.c as described above. There is also code connected
10323 to the new standard of adding an accelerator to the beginning of
10324 menu items that don't have one as described above and below.
10327 * menubar.c (menu_parse_submenu_keywords):
10328 * menubar.c (Fmenu_find_real_submenu):
10329 * menubar.c (Fnormalize_menu_item_name):
10330 * menubar.c (syms_of_menubar):
10331 * menubar.c (vars_of_menubar):
10332 * menubar.c (complex_vars_of_menubar):
10334 a) Cleaned up a bunch of documentation and improved it.
10336 b) XEmacs now automatically adds an accelerator onto the beginning
10337 of any menu items that don't have one. I did this because there
10338 will inevitably be some menu items on the main menubar that don't
10339 have accelerators on them because the package that adds that
10340 particular menu item hasn't yet been fixed up to have accelerators
10341 in them and it looked rather strange to have some items with and
10342 some items without accelerators, especially since even in items
10343 without accelerators, you can, at least under windows, still
10344 access the item through an accelerator corresponding to the first
10345 character in the item's name. If people don't like this behavior,
10346 I can add a variable to turn it off optionally, but I'm not sure
10347 this is a good idea because we really do need to have accelerators
10348 on all of the menu items, and if a package doesn't like the
10349 accelerators being put on the first character, then it should put
10350 the accelerators where they belong.
10352 c) I made a behavior change, which is that the descriptor that
10353 specifies the text of the menu item, which formerly was just a
10354 string, can now also be an evaluated expression. This makes this
10355 descriptor parallel with all of the others, which could also be
10356 evaluated expressions. This also obviates the need for the
10357 keyword :label, which was previously listed in the documentation
10358 as unimplemented, and which was for the same purpose.
10363 * ntproc.c (new_child):
10364 * ntproc.c (sys_spawnve):
10365 * ntproc.c (find_child_console):
10366 * ntproc.c (sys_kill):
10367 Fixed compile warnings. By the way, this file should really go
10368 away entirely, and this will happen as soon as Kirill makes his
10369 final round of process cleanups, which affect the function
10373 * process-nt.c (struct nt_process_data):
10374 * process-nt.c (find_process_from_pid):
10375 * process-nt.c (send_signal_the_nt_way):
10376 * process-nt.c (enable_child_signals):
10377 * process-nt.c (find_child_console):
10378 * process-nt.c (send_signal_the_95_way):
10379 * process-nt.c (nt_finalize_process_data):
10380 * process-nt.c (ensure_console_window_exists):
10381 * process-nt.c (nt_create_process):
10382 * process-nt.c (nt_kill_child_process):
10383 * process-nt.c (nt_kill_process_by_pid):
10384 * process-nt.c (nt_open_network_stream):
10385 * process-nt.c (vars_of_process_nt):
10386 Copied over code from Emacs 20.5 to correctly send signals to sub-
10387 processes under Windows 95. Also added code to automatically
10388 create and hide console window when a sub-process is created under
10389 Windows 95, which obviates the need for the separate runemacs.exe
10390 executable, and finally implemented some variables that were
10391 implemented in Emacs 20.5, but previously not in XEmacs. These
10392 include mswindows- start-process-share-console and
10393 mswindows-start-process-inherit-error-mode. (Both of these only
10394 apply to Windows 95.)
10396 * regex.c (regex_compile): Fixed a compile warning.
10399 * select-msw.c (mswindows_own_selection):
10400 * select-msw.c (mswindows_get_foreign_selection):
10401 * select-msw.c (mswindows_disown_selection):
10402 * select-msw.c (console_type_create_select_mswindows):
10403 * select-msw.c (syms_of_select_mswindows):
10404 Cleaned up the file and implemented the device method
10405 selection_exists_p, which had accidentally been left out. Also
10406 removed four lisp functions that were remnants from before the
10407 time when the selection code was properly device abstracted.
10408 These functions are no longer needed because there are generic
10409 equivalents, and because they were added recently and don't exist
10410 in FSF Emacs, I don't think there's any problem with just deleting
10414 * sysdep.c (sys_subshell):
10415 Fixed a compile warning, although in this case there's probably
10416 something wrong with this code, and it ought to be looked into
10417 more thoroughly by somebody who understands it.
10420 * window.c (Fwindow_text_area_height):
10421 * window.c (Fwindow_width):
10422 * window.c (Fwindow_full_width):
10423 * window.c (Fwindow_pixel_width):
10424 * window.c (debug_print_window):
10425 * window.c (syms_of_window):
10426 Added functions window-text-area-height and window-full-width,
10427 which are functions for returning various width and height
10428 characteristics of a window. (One of these functions is necessary
10429 for making the file dialog box work correctly, and the other one
10430 was added for completeness.) Also added a table to the
10431 documentation for window-height which describes the entire scheme
10432 for accessing width and height characteristics of a window.
10434 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10436 * nt.c (fstat): Added a comment for another problem with
10437 non-encapsulated [f]stat(), reported by Adrian Aichner
10438 <aichner@ecf.teradyne.com>.
10440 2000-03-11 Andy Piper <andy@xemacs.org>
10442 * window.c (make_dummy_parent): initialize subwindow instance
10444 (Fset_window_configuration): zero extent_modiff.
10446 2000-03-10 Andy Piper <andy@xemacs.org>
10448 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10449 more changes can be triggered.
10450 (Fredisplay_frame): ditto.
10451 (Fredraw_device): ditto.
10452 (Fredisplay_device): ditto.
10453 (redisplay_frame): make non-static.
10454 (redisplay_frame): call update_frame_gutter_geometry outside of
10457 * gutter.h: declare update_frame_gutter_geometry.
10459 * redisplay.h: declare redisplay_frame.
10461 * gutter.c (update_frame_gutter_geometry): move geometry changes
10462 in update_frame_gutters here. Geometry changes can only occur
10463 outside of redisplay.
10464 (update_frame_gutters): remove geometry change code.
10465 (Fredisplay_gutter_area): make sure that we are in display when we
10466 update and that we have flushed any size changes.
10468 2000-03-11 Andy Piper <andy@xemacs.org>
10470 * alloc.c (pdump_dump_data): remove i & count shadows.
10472 2000-02-27 Mike Alexander <mta@arbortext.com>
10474 * sysdep.h: Declare pdump_read_file
10476 * sysdep.c (pdump_read_file): New function
10478 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10481 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10483 * lrecord.h: add `lrecord_type_pgsetenv'.
10485 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10487 * symsinit.h: declare (vars|syms)_of* functions.
10488 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10490 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
10492 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10494 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10497 * emacs.c (main_1): Call postgres initialization code.
10499 * postgresql.h: New file. PostgreSQL RDBMS support.
10500 * postgresql.c: New file.
10502 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10504 * redisplay-output.c (redisplay_output_display_block): Disable
10507 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10509 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10510 (Fcanna_henkan_next): Ditto.
10511 (Fcanna_bunsetu_henkou): Ditto.
10512 (Fcanna_henkan_kakutei): Ditto.
10513 (Fcanna_henkan_end): Ditto.
10514 (Fcanna_henkan_quit): Ditto.
10515 (Fcanna_henkan_next): Set retun value correctly.
10516 (c2mu): Use unsigned char instead of signed char.
10518 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10520 * emacs.c (main_1): Always call syms_of_gui.
10521 * inline.c: include gui.h
10523 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10525 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10526 converted to Lisp_Object.
10527 (Qtop_bottom): New variable.
10528 (syms_of_redisplay): Initialize it.
10529 * redisplay.h (Vvisible_bell): Ditto.
10530 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10531 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10532 only flash top and bottom.
10534 2000-03-08 Andy Piper <andy@xemacs.org>
10536 * buffer.c (Frename_buffer): record new buffer name the right way.
10538 2000-03-08 Andy Piper <andy@xemacs.org>
10540 * glyphs.c (update_subwindow): increase hash depth so that widget
10541 items get picked up properly.
10543 * redisplay-output.c (compare_runes): increase hash depth so that
10544 widget items get picked up properly.
10546 2000-03-08 Andy Piper <andy@xemacs.org>
10548 * gutter.c (output_gutter): add some debug.
10550 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10551 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10552 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10554 * redisplay-output.c (compare_runes): use display_hash to
10555 determine if glyphs really are not the same.
10557 * glyphs.c (update_subwindow): check display_hash to see if
10558 anything really needs to be updated. If not then do
10559 nothing. Record the display_hash after updating.
10560 (image_instance_equal): compare the image_instance face also.
10562 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
10564 * redisplay.h: Fix comment style.
10566 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
10568 * consle-msw.h (struct mswindows_frame):
10569 Added new member paint_pending to indicate whether a WM_PAINT
10570 magic event has been queued for this frame.
10572 * event-msw.c (mswindows_drain_windows_queue):
10573 Don't queue a WM_PAINT magic event if one is already queued.
10574 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10576 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10578 2000-03-07 Didier Verna <didier@xemacs.org>
10580 * dired.c: #include `regex.h' after `sysfile.h'.
10582 2000-03-06 Martin Buchholz <martin@xemacs.org>
10584 * sound.c (init_nas_sound): Fix compiler warning.
10586 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10588 (MARK_STRUCT_AS_FREE):
10589 (MARK_STRUCT_AS_NOT_FREE):
10590 Make `gcc -fstrict-aliasing' work properly.
10592 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
10594 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10595 (mswindows_delete_device): Call CoUnnitialize().
10597 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10599 2000-02-25 <CraigL@DyCon.com>
10601 * process-nt.c: MinGW now has <shellapi.h>, but still needs
10604 * sysdep.c: This extern declaration for environ prevents MinGW
10605 from finding the variable in CRTDLL.DLL.
10607 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10609 (SHGFI_EXETYPE): ..
10610 (WM_MOUSEWHEEL): ..
10611 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10613 (MMRESULT): Removed, now defined in cygwin's windows headers.
10615 (uid_t,gid_t,pid_t,ssize_t): ..
10616 (_timeb): Removed, MinGW defines both _timeb and timeb.
10617 (HAVE_H_ERRNO): Added.
10618 (HAVE_TZNAME): Added, configure is not detecting this.
10620 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
10622 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10623 * syntax.c (syntax_match): Use it.
10625 * cmds.c: Import auto-fill-chars from FSF Emacs.
10626 (Vauto_fill_chars): New variables.
10627 (internal_self_insert): Check Vauto_fill_chars.
10629 Declare auto-fill-chars as a Lisp variable and initialize it.
10631 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10633 * fileio.c (Fmake_symbolic_link):
10635 Run handlers even if local machine doesn't have symlinks.
10637 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10639 * event-msw.c (mswindows_drain_windows_queue):
10640 Don't generate paint magic events for non-XEmacs frames.
10642 2000-03-05 Andy Piper <andy@xemacs.org>
10644 * redisplay.c (redisplay_frame): generate_displayable_area and
10645 friends assumes that we are not in GC, we therefore have to make
10646 sure that this doesn't happen.
10648 * gutter.c (calculate_gutter_size): generate_displayable_area
10649 assumes that we are not in GC, we therefore have to make sure that
10650 this doesn't happen.
10652 2000-03-05 Martin Buchholz <martin@xemacs.org>
10654 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10656 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10658 * redisplay.c (regenerate_window): Make sure we set a sane value
10659 for end_pos even if we jump out of the loop.
10660 (regenerate_window): Answer Ben's question :-).
10661 (start_end_of_last_line): Add may_error argument.
10662 (start_of_last_line):
10663 (end_of_last_line): Pass may_error = 0.
10664 (end_of_last_line_may_error): New function.
10665 (pixel_to_glyph_translation): Use it, so we don't crash in
10668 2000-03-04 Andy Piper <andy@xemacs.org>
10670 * window.h (struct window): add gutter_extent_modiff.
10672 * window.c (allocate_window): zero out gutter_extent_modiff.
10674 * redisplay.h: declare sync_display_line_structs.
10676 * redisplay.c (add_glyph_rune): add a better comment.
10678 * redisplay-output.c (sync_display_line_structs): made non-static.
10679 (compare_runes): remove unneccesary glyph cachel access.
10681 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10683 * gutter.c (output_gutter): don't output the gutter if extent
10684 changes only involve extents in buffers. use 4 sets of display
10686 (gutter_extent_signal_changed_region_maybe): new function. Mark
10687 extents in gutters as changed.
10688 (update_frame_gutters): use 4 sets of display lines.
10689 (reset_gutter_display_lines): ditto.
10690 (free_frame_gutters): ditto.
10691 (redraw_exposed_gutter): force output of gutters.
10693 * frame.h (struct frame): add 4 sets of gutter display lines.
10695 * extents.c: (extent_changed_for_redisplay): signal changes to
10696 extents in strings in the gutter as well as extents in buffers.
10698 2000-03-02 Andy Piper <andy@xemacs.org>
10700 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10702 * frame.c (Fmake_frame): make sure the gutters get initialized
10703 after the frame is visible.
10704 (set_frame_selected_window): re-arrange compilation macros a
10706 (change_frame_size_1): mark gutters changed.
10708 * device.c (Fset_device_class): mark gutters changed.
10710 2000-03-01 Andy Piper <andy@xemacs.org>
10712 * window.c (window_top_frame_gutter_height): deleted.
10713 (window_bottom_frame_gutter_height): ditto.
10714 (window_left_frame_gutter_height): ditto.
10715 (window_right_frame_gutter_height): ditto.
10716 (window_top_gutter_height): don't use them.
10717 (window_bottom_gutter_height): ditto.
10718 (window_left_gutter_width): ditto.
10719 (window_right_gutter_width): ditto.
10720 (Fsplit_window): ditto.
10721 (Fwindow_pixel_edges): don't use border dimensions here.
10723 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10724 (update_scrollbar_instance): ditto.
10726 * redisplay.c (generate_modeline): don't take gutters into account.
10727 (generate_modeline): ditto.
10728 (redisplay_frame): small gutter display optimization.
10730 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10732 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10733 gutters into account.
10735 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10736 for window position and type.
10738 * gutter.c (get_gutter_coords): fix for frame gutters.
10739 (update_frame_gutters): update frame geometry if the gutters have
10741 (init_frame_gutters): record current gutter geometries.
10743 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10745 (mswindows_widget_instantiate): ditto.
10747 * frame.h (struct frame): add current_gutter_bounds.
10749 * frame.c (change_frame_size_1): position window and minibuffer
10750 appropriately taking into account the frame gutters.
10752 * frame-x.c: (x_initialize_frame_size): take into account the
10755 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10757 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
10759 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10761 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10763 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10765 * file-coding.c (reset_decoding_stream): Clear previous
10766 detection state when autodetect.
10768 2000-02-29 Didier Verna <didier@xemacs.org>
10770 * extents.c (set_extent_glyph_1): don't require extents to be
10773 2000-02-27 Andy Piper <andy@xemacs.org>
10775 * gutter.c (Fset_default_gutter_position): don't default left and
10776 right gutter visibility to t.
10777 (Fset_default_gutter_position): run
10778 default-gutter-position-changed-hook.
10779 (syms_of_gutter): add default-gutter-position-changed-hook.
10781 2000-02-26 Andy Piper <andy@xemacs.org>
10783 * specifier.c (Fmake_specifier): add gutter references.
10785 * gutter.h (RAW_WINDOW_GUTTER): new macro.
10787 * lisp.h: declare Fvalid_plist_p.
10789 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10791 (default_gutter_visible_p_changed_in_window): invalidate gutter as
10792 well as its visibility so that it gets reconstructed.
10793 (construct_window_gutter_spec): new function. Construct a string
10794 to be displayed in the gutter from a plist of strings. Take care
10795 to only use elements that are declared as visible.
10796 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10798 (gutter_validate): allow plists of strings in the specifier.
10799 (gutter_specs_changed): construct the real_gutter from the gutter
10800 specs using construct_window_gutter_spec.
10801 (gutter_visible_validate): gutter-visible is a new specifier type.
10802 (Fgutter_visible_specifier_p): new function for the new specifier.
10803 (syms_of_gutter): declare gutter-visible and
10804 Fgutter_visible_specifier_p.
10805 (specifier_type_create_gutter): intitalize new gutter-visible
10807 (reinit_specifier_type_create_gutter): ditto.
10808 (specifier_vars_of_gutter): use new specifier type for gutter
10810 (init_frame_gutters): construct real_gutter correctly.
10811 (Fgutter_specifier_p): beef up documentation.
10812 (Fgutter_size_specifier_p): ditto.
10814 * winslots.h: add real_gutter slots.
10816 2000-02-25 Andy Piper <andy@xemacs.org>
10818 * device-msw.c: Be kind to older cygwin versions. From Raymond
10819 Toy <toy@rtp.ericsson.se>.
10821 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10822 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10824 2000-02-25 Martin Buchholz <martin@xemacs.org>
10826 * elhash.c (MARK_OBJ): Practice macro hygiene.
10828 2000-02-24 Martin Buchholz <martin@xemacs.org>
10830 * miscplay.c: s/__inline__/inline/g;
10831 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10832 (get_device_compdc): INLINE ==> static inline
10833 * *.[ch]: Change INLINE to INLINE_HEADER globally.
10834 find -name '*.h' | \
10835 xargs global-replace \
10836 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10838 2000-02-25 Andy Piper <andy@xemacs.org>
10840 * window.c (window_top_frame_gutter_height): new function.
10841 (window_top_window_gutter_height): ditto.
10842 (window_top_gutter_height): use them.
10843 (window_bottom_frame_gutter_height): new function.
10844 (window_bottom_window_gutter_height): ditto.
10845 (window_bottom_gutter_height): use them.
10846 (window_left_window_gutter_width): new function.
10847 (window_left_frame_gutter_width): ditto.
10848 (window_left_gutter_width): use them.
10849 (window_right_window_gutter_width): new function.
10850 (window_right_frame_gutter_width): ditto.
10851 (window_right_gutter_width): use them.
10852 (window_pixel_height): new function. calulate window pixel height
10853 with frame gutter involvement.
10854 (Fsplit_window): calculate new sizes taking frame gutters into
10856 (window_char_height_to_pixel_height): don't include frame gutters.
10857 (window_char_height): use window_pixel_height.
10858 (window_pixheight): rename from window_pixel_height.
10859 (change_window_height): use it.
10860 (window_pixel_height_to_char_height): don't include frame gutters.
10861 (window_char_width_to_pixel_width): ditto.
10863 2000-02-25 Andy Piper <andy@xemacs.org>
10865 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10868 2000-02-24 Martin Buchholz <martin@xemacs.org>
10870 * alloc.c (staticpro):
10871 (staticpro_nodump):
10876 (compact_string_chars):
10877 (pdump_dump_wired):
10878 Convert: if (foo) abort(); ==> assert (! foo);
10880 * eldap.c (Fldap_search_basic):
10884 Fix compiler warnings, and possible crashes if (random) return
10885 value were to be used.
10887 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10889 * device-msw.c: Workaround ResetDC failure.
10891 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10892 applying a devmode.
10894 * redisplay-msw.c (get_frame_dc): Added start_page_p.
10895 (mswindows_text_width): Do not start printer page.
10897 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10899 * glyphs-msw.c: Added image methods to msprinter console and
10900 msprinter-specific image instantiation.
10902 2000-02-20 Mike Alexander <mta@arbortext.com>
10904 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10905 to avoid crashes when selection-sets-clipboard is on
10906 (mswindows_own_selection): ditto
10908 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10911 * redisplay-msw.c (get_frame_dc):
10912 (get_frame_compdc):
10914 * device-msw.c (mswindows_init_device):
10915 (mswindows_delete_device):
10916 (msprinter_init_device):
10917 (msprinter_delete_device):
10918 * frame-msw.c (mswindows_init_frame_1):
10919 (mswindows_delete_frame):
10920 (msprinter_init_frame_3):
10921 (msprinter_delete_frame): Move compatible DC to device object from
10922 frame object, for both mswindows and msprinter. Only one at a time
10923 is needed, it is a real waste to have one per frame!
10925 2000-02-23 Andy Piper <andy@xemacs.org>
10927 * glyphs.c: add dynamic width and height elements.
10928 (image_instance_equal): ditto.
10930 * glyphs-widget.c (widget_query_geometry): calculate width and
10931 height dynamically if required.
10932 (initialize_widget_image_instance): initialize dynamic dimensions.
10933 (widget_instantiate): pick-up dynamic dimensions.
10935 * glyphs.h (struct Lisp_Image_Instance): add width and height for
10936 dynamic determination. Add appropriate macros.
10938 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10940 (WINDOW_GUTTER_SIZE): ditto.
10941 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10943 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10945 (get_frame_dc): ditto.
10947 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10950 2000-02-23 Martin Buchholz <martin@xemacs.org>
10952 * XEmacs 21.2.31 is released.
10954 2000-02-22 Ben Wing <ben@xemacs.org>
10956 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10958 2000-02-22 Andy Piper <andy@xemacs.org>
10960 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10962 2000-02-21 Mike Sperber <mike@xemacs.org>
10966 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10969 2000-02-21 Mike Sperber <mike@xemacs.org>
10971 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10973 2000-02-21 Martin Buchholz <martin@xemacs.org>
10975 * XEmacs 21.2.30 is released.
10977 2000-02-20 Martin Buchholz <martin@xemacs.org>
10979 Performance hacking.
10981 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10982 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10983 * emacs.c (main_1):
10985 * console.c (DEFVAR_CONSOLE_LOCAL_1):
10986 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10987 * symeval.h (DEFVAR_SYMVAL_FWD):
10988 * symbols.c (guts_of_unbound_marker):
10989 Make all c_readonly objects also lisp_readonly and marked for life.
10990 * lrecord.h (struct lrecord_implementation):
10991 Document flags better.
10992 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10993 * lrecord.h (DECLARE_LRECORD):
10994 * lrecord.h (XSETRECORD):
10995 * lrecord.h (RECORDP):
10996 * lrecord.h (RECORD_TYPEP):
10997 * lrecord.h (RECORD_MARKER): New.
10998 * lrecord.h (error_check_*):
10999 * lrecord.h (CONCHECK_NONRECORD):
11000 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11001 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11002 * lrecord.h (set_lheader_implementation):
11003 * lrecord.h (enum lrecord_type): New.
11004 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11005 * alloc.c (disksave_object_finalization_1):
11006 * alloc.c (mark_object):
11007 * alloc.c (lrecord_type_index):
11008 * alloc.c (tick_lcrecord_stats):
11009 * alloc.c (Fgarbage_collect):
11010 * alloc.c (init_alloc_once_early):
11011 * alloc.c (pdump_load):
11012 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11013 * alloc.c (lrecord_type_index): Delete.
11014 Make lisp object type indexes be constant.
11015 Makes (byte-compile) 5% faster.
11016 Put all marker functions into their own array.
11017 Makes (garbage-collect) 5% faster.
11018 Optimize SYMBOL_VALUE_MAGIC_P.
11019 Makes (byte-compile) 2-3% faster.
11020 * config.h.in (gc_checking_assert): New.
11021 * alloc.c: Use gc_checking_assert().
11022 * .dbxrc: Make compatible with new object type implementation.
11023 * .gdbinit: Make compatible with new object type implementation.
11024 * alloc.c: Delete all symbols defined only for debugging, such as
11025 Lisp_Type_Vector and lrecord_charset.
11027 2000-02-21 Andy Piper <andy@xemacs.org>
11029 * gui-msw.c (Fmswindows_shell_execute): fix file location
11032 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11033 unshowing so that set_window_buffer doesn't undo
11034 kill_buffer_hook's hard work.
11036 * glyphs-widget.c (tab_control_query_geometry): don't count the
11037 first item when calculating geometry.
11039 * glyphs.c (map_subwindow): remove redundant code.
11040 (update_frame_subwindows): be more circumspect about when to
11043 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11044 when items haven't changed. Update faces if faces have changed as
11045 well as just the widget face.
11046 (x_tab_control_update): Update faces if faces have changed as well
11047 as just the widget face.
11049 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11051 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11053 (build_syscolor_string): Use mswindows_color_to_string to try to
11055 (mswindows_device_system_metrics): Reverse the foreground and
11056 background colors so that they match the documentation.
11058 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11059 they match the default Windows palette.
11060 (mswindows_color_to_string): New function.
11062 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11064 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11066 2000-02-18 Olivier Galibert <galibert@pobox.com>
11068 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11069 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11071 * symbols.c (init_symbols_once_early): Removed obsolete
11072 DATA_SEG_BITS related kludge.
11073 (defvar_magic): Ditto.
11075 * malloc.c: Removed obsolete DATA_SEG_BITS
11077 * mem-limits.h: Ditto.
11079 * Makefile.in.in: Removed obsolete HAVE_SHM
11082 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11084 * device-msw.c (mswindows_delete_device): Free DDE string
11087 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11089 * keymap.c (get_keyelt):
11090 * unexnt.c (unexec):
11091 * vm-limit.c (memory_warnings):
11092 * ntheap.c (recreate_heap):
11093 * ntheap.h (UNINIT_PTR):
11094 * select-msw.c (Fmswindows_get_clipboard):
11095 (Fmswindows_set_clipboard):
11096 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11098 * menubar-msw.c (displayable_menu_item):
11100 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11101 * sysdep.c (sys_subshell):
11102 * process-nt.c (nt_create_process):
11103 * nt.c (normalize_filename):
11104 (dostounix_filename):
11105 (unixtodos_filename):
11106 * ntproc.c (win32_executable_type):
11107 * ntplay.c (play_sound_data_1):
11109 * editfns.c (get_home_directory):
11110 * event-msw.c (struct winsock_stream):
11111 (mswindows_dde_callback):
11112 * device-msw.c (msprinter_init_device):
11113 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11115 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11116 mswindows_clear_toolbar were swapped!
11118 * objects-msw.c:(colormap_t):
11120 * emacs.c (struct standard_args): Fixed const jumble.
11122 * glyphs-widget.c (update_widget): Fixed comparison notation.
11124 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11126 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11127 __declspec(noreturn) syntax.
11129 2000-02-19 Martin Buchholz <martin@xemacs.org>
11131 * eldap.c (Fldap_open):
11132 (Fldap_search_basic):
11135 Use new coding system conversion macros.
11137 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11139 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11141 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11143 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11144 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11146 * eldap.c (Qadd, Qreplace): New constant symbols
11147 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11148 interruptions by XEmacs signals
11149 Remove unnecessary calls to slow_down_interrupts and
11150 speed_up_interrupts
11151 (Fldap_search_basic): Renamed from Fldap_search_internal
11152 Added new optional parameter VERBOSE that triggers the
11153 display of progress messages
11154 Remove unnecessary calls to slow_down_interrupts and
11155 speed_up_interrupts
11156 LDAP result code analysis rewritten
11157 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11158 (syms_of_eldap): Define the new symbols and functions
11161 2000-02-17 Martin Buchholz <martin@xemacs.org>
11163 * realpath.c: Determine PATH_MAX maximally portably.
11165 * insdel.c (bytecount_to_charcount): Optimize.
11166 The function used to be optimized for entirely ASCII sequences.
11167 Now it is optimized for successive characters from the same
11168 charset. This also wins big for _mostly_ ASCII sequences.
11170 * fileio.c (Ffile_truename): convert return from realpath() using
11171 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11172 - Rewrite GCPROing slightly.
11174 * sysdep.c (sys_open): Do filename conversion, like all other
11175 sys_* functions. Fixes bug:
11176 (let ((file-name-coding-system 'iso-8859-2))
11177 (write-region x y latin2-name))
11178 ==> writes filename using internal encoding.
11180 2000-02-18 Martin Buchholz <martin@xemacs.org>
11182 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11183 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11184 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11185 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11186 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11187 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11188 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11189 (CONST_IF_NOT_DEBUG): Delete.
11190 * alloc.c (this_one_is_unmarkable): Delete.
11191 (mark_object): Don't check for this_one_is_unmarkable. Use the
11192 c_readonly flag instead.
11193 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11195 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11197 * event-msw.c (mswindows_drain_windows_queue):
11198 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11199 away redundant repaint events.
11201 2000-02-17 Andy Piper <andy@xemacs.org>
11203 * redisplay.h: declare mark_redisplay_structs.
11205 * redisplay.c (redisplay_window):
11206 (redisplay_frame): don't check subwindows_state_changed.
11207 (mark_redisplay): mark gutters here.
11209 * glyphs.c: (instantiate_image_instantiator): always layout if we
11210 haven't done so already.
11211 (allocate_image_instance): don't mark as dirty.
11212 (update_subwindow): bind inhibit_quit.
11214 * gutter.c (mark_gutters): new function.
11216 * glyphs-x.c (x_update_widget): Always resize to get round a
11219 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11220 breaking absolutely everything.
11222 * gutter.h: declare mark_gutters.
11224 2000-02-16 Martin Buchholz <martin@xemacs.org>
11226 * XEmacs 21.2.29 is released.
11228 2000-02-15 Olivier Galibert <galibert@pobox.com>
11230 * fns.c (size_bit_vector): Fix computation of the size.
11232 2000-02-15 Martin Buchholz <martin@xemacs.org>
11234 * *.[ch]: Change CONST to const globally.
11235 find -name '*.[ch]' | \
11236 xargs global-replace \
11237 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11238 - Remove vestigial references to CONST_IS_LOSING
11240 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11242 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11243 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11244 events instead of dispatching them directly.
11245 (mswindows_handle_paint): New function to do repainting.
11246 (mswindows_wnd_proc):
11247 (emacs_mswindows_handle_magic_event): Call above function.
11249 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11251 * objects-msw.c (mswindows_create_font_variant): Return the new
11253 (initialize_font_instance): Get font metrics from the underlined
11254 variant of the font to cope with the case where the underlined
11255 font has a bigger descent.
11257 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11259 * gui.c (gui_item_accelerator): Return the first underlined
11260 character in item name.
11262 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11264 * lisp.h: Added Qprinter.
11266 * general.c (syms_of_general): Initialized it.
11268 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11270 (get_frame_compdc): Made inline.
11272 * console.h (struct console_methods): Added eject_page method.
11274 * frame.h: Added FRAME_DISPLAY_P and friends.
11275 Aligned backslahes in many macros in more readable fashion.
11276 Added page_number to struct frame, and an accessor macro
11279 * defice.h: Added DEVICE_DISPLAY_P and friends.
11281 * device.c (Fdevice_printer_p): Used these.
11283 * frame.c (allocate_frame_core): Initialize page number.
11284 (Fprint_job_page_number):
11285 (Fprint_job_eject_page): Implemented.
11287 * frame-msw.c (msprinter_eject_page): Added method.
11288 (msprinter_start_page): Added.
11290 * window.c (Fwindow_truncated_p): Fixed docstring.
11291 (Fwindow_last_line_visible_height): Implemented.
11293 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11295 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11297 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11299 * syntax.c (scan_words): Always advance at least one character.
11301 2000-02-13 Andy Piper <andy@xemacs.org>
11303 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11304 to make sure the glyph is in the cachels.
11306 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11307 global image instance flag.
11308 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11309 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11311 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11312 (Fset_image_instance_property): mark layout as changed.
11313 (invalidate_glyph_geometry_maybe): mark layout as changed.
11314 (glyph_width): use new NEEDS_LAYOUT macro.
11315 (glyph_ascent): ditto.
11316 (glyph_descent): ditto.
11317 (glyph_height): ditto.
11318 (image_instance_layout): mark layout as clean after laying out.
11319 (update_subwindow): don't mark layout as clean here.
11321 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11322 should no longer be needed.
11324 * glyphs-x.c (x_update_widget): sanitize asserts.
11325 (x_finalize_image_instance): sanitize assignment to widgets.
11327 * glyphs-widget.c (widget_instantiate): don't need to clear the
11330 2000-02-13 Martin Buchholz <martin@xemacs.org>
11332 * sysdep.c (getcwd): Use standard prototype.
11333 * sysdep.h (getcwd): Use standard prototype.
11335 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11336 (sequence, start, end).
11337 Remove redundant type checking.
11338 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11339 view of `caller-protects') to avoid a crash where the real fix was
11342 2000-02-12 Martin Buchholz <martin@xemacs.org>
11344 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11346 * s/sol2.h: Remove feature macro initialization.
11348 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11349 (vector_hash): New. Code from internal_hash.
11351 Fix up allocation subsystem comments.
11353 * config.h.in: Add __EXTENSIONS__ for Solaris.
11355 * systime.h (EMACS_GETTIMEOFDAY): New.
11356 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11357 Remove Solaris-specific code.
11358 Use void* for the (ignored) second arg for gettimeofday().
11360 * elhash.c (hash_table_hash): Implement it, finally.
11361 * elhash.c: Use hashcode_t.
11363 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11364 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11366 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11367 * fns.c (size_bit_vector):
11368 * alloc.c (size_vector):
11369 (make_vector_internal):
11370 (make_bit_vector_internal):
11371 (sweep_bit_vectors_1):
11372 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11374 2000-02-10 Martin Buchholz <martin@xemacs.org>
11376 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11377 Include strings.h to avoid warnings for bzero and strcasecmp.
11379 2000-02-10 Olivier Galibert <galibert@pobox.com>
11381 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11382 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11384 * fns.c (size_bit_vector): New. Declare bit vectors as a
11387 2000-02-10 Olivier Galibert <galibert@pobox.com>
11389 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11390 use a value field instead.
11391 (symbol_value_forward_forward): Use value field.
11392 (DEFVAR_SYMVAL_FWD): Use value field.
11393 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11394 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11395 (DEFVAR_CONST_INT): Ditto.
11396 (DEFVAR_BOOL): Ditto.
11397 (DEFVAR_CONST_BOOL): Ditto.
11398 (DEFVAR_INT_MAGIC): Ditto.
11399 (DEFVAR_BOOL_MAGIC): Ditto.
11401 * symbols.c (guts_of_unbound_marker): Use value field.
11402 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11403 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11405 * lisp.h: Declare dumpopaque and noninteractive1.
11407 * alloc.c (dumpopaque): Added.
11408 (pdump_dump_opaquevec): Added.
11409 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11410 (pdump_load): Reload opaque data. Sync noninteractive1 with
11413 2000-02-10 Andy Piper <andy@xemacs.org>
11415 * glyphs.c (image_instance_layout): if the size changes, mark it
11418 * redisplay-output.c (redisplay_output_layout): Update the
11420 (redisplay_output_subwindow): ditto.
11422 * glyphs.c (update_subwindow): make sure we reset flags for
11423 layouts as well as everything else.
11425 * glyphs-widget.c (layout_layout): don't need to set the instances
11428 2000-02-09 Martin Buchholz <martin@xemacs.org>
11430 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11431 not HAVE_DLOPEN, which is a lower-level thing.
11433 * .cvsignore: Ignore gmon.out
11435 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11437 * .cvsignore: Ignore portable dumper xemacs.dmp file
11439 2000-02-09 Andy Piper <andy@xemacs.org>
11441 * redisplay-output.c (redisplay_output_layout): be more clever
11442 about when we output based on the changed flags.
11444 * glyphs.h (struct image_instantiator_methods): add update_method.
11445 (struct Lisp_Image_Instance): add changed flags. Declare new
11446 macros for manipulating them.
11448 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11449 (image_instance_parent_glyph): find an image_instance's parent
11450 glyph or image_instance.
11451 (image_instance_layout): mark the size as changed.
11452 (set_image_instance_dirty_p): new function. mark an image
11453 instance, plus all of its parents, as dirty.
11454 (Fset_image_instance_property): use it.
11455 (Fglyph_animated_timeout_handler): use it.
11456 (update_subwindow): call update_widget and device methods for
11457 update_subwindow. Mark all changed flags as clean.
11458 (Fresize_subwindow): mark size as changed.
11460 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11462 (x_update_subwindow): only resize subwindows here.
11463 (x_update_widget): new function. Update all changed properties of
11465 (x_resize_subwindow): deleted.
11466 (x_widget_set_property): deleted.
11467 (x_progress_gauge_set_property): deleted.
11468 (x_progress_gauge_update): new function. Implement recorded
11470 (x_tab_control_update): ditto.
11471 (x_tab_control_set_property): deleted.
11472 (console_type_create_glyphs_x): declare new functions.
11473 (image_instantiator_format_create_glyphs_x): ditto.
11475 * glyphs-widget.c (widget_set_property): mark text changed.
11476 (update_widget): new function. Update properties of a widget.
11477 (widget_instantiate): for layouts make sure we set their
11478 children's parent correctly.
11479 (tab_control_set_property): new function. Record changes that will
11480 take place under redisplay's control.
11481 (progress_gauge_set_property): ditto.
11482 (image_instantiator_progress_guage): declare new functions.
11483 (image_instantiator_tab_control): ditto.
11485 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11487 (mswindows_update_widget): new function. Update all properties on
11488 a widget that have changed.
11489 (mswindows_button_update): new function. Update a button's set
11491 (mswindows_tab_control_update): new function. Update the items in
11493 (mswindows_tab_control_set_property): deleted.
11494 (mswindows_progress_gauge_update): new function. Update the
11495 progress gauge's progress.
11496 (mswindows_widget_set_property): deleted. This is all done
11497 asynchronously now.
11498 (mswindows_progress_gauge_set_property): ditto.
11499 (console_type_create_glyphs_mswindows): declare new methods.
11500 (image_instantiator_format_create_glyphs_mswindows): ditto.
11502 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11503 (msprinter_set_frame_properties): ditto.
11505 * console.h (struct console_methods): Add update_widget_method.
11507 2000-02-09 Andy Piper <andy@xemacs.org>
11509 * gui-msw.c (Fmswindows_shell_execute): Make
11510 mswindows-shell-execute industrial strength.
11512 2000-02-08 Martin Buchholz <martin@xemacs.org>
11514 * lrecord.h: Make macro argument `props' match member function `plist'.
11517 * fns.c (Fremprop):
11518 * fns.c (Fobject_plist):
11521 Object property list frobbing cleanup.
11522 - Allow any lisp object (compared with `eq'), not just symbols, as
11523 keys in object plists.
11524 - Move symbol plist frobbing into symbols.c, where it belongs.
11525 - Move string plist frobbing into alloc.c, where it belongs.
11526 - Everything's an lrecord now, so no need to test for symbolp, etc.
11527 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11529 * extents.c: Reorder code to remove declarations.
11531 * frame.h (store_in_alist): Remove useless declaration.
11533 2000-02-07 Martin Buchholz <martin@xemacs.org>
11535 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11536 * config.h.in: Add HAVE_XCONVERTCASE.
11538 2000-02-07 Andy Piper <andy@xemacs.org>
11540 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11541 it breaks many things.
11543 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11545 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11546 actually can start a common comment type.
11547 * src/syntax.h (SYNTAX_END_P): ditto for end.
11549 2000-02-07 Martin Buchholz <martin@xemacs.org>
11551 * XEmacs 21.2.28 is released.
11553 2000-02-06 Martin Buchholz <martin@xemacs.org>
11555 * event-Xt.c (x_keysym_to_character): New.
11556 (maybe_define_x_key_as_self_inserting_character): New.
11557 (x_has_keysym): New.
11558 Auto-define all keys on the keyboard as self-insert-key.
11560 2000-02-02 Martin Buchholz <martin@xemacs.org>
11562 * menubar.c (vars_of_menubar): A small code simplification.
11564 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11567 * ExternalClient.c:
11568 * EmacsShell-sub.c:
11571 Use consistent style for specifying X resources.
11573 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11574 This makes (dontusethis-set-symbol-value-handler) actually usable.
11576 * lrecord.h (lrecord_decription_type):
11577 * alloc.c (pdump_register_sub):
11580 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11581 Comply with XEmacs coding style.
11582 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11583 args, and XD_LISP_OBJECT_ARRAY with 3 args.
11585 * keymap.c (Faccessible_keymaps):
11586 Make (accessible-keymaps map "\C-h") do the Right Thing.
11587 Make (accessible-keymaps map []) do the Right Thing.
11588 Make (accessible-keymaps map "") do the Right Thing.
11589 (check_keymap_definition_loop): New function.
11590 (keymap_store_internal): Keep luser from shooting self in foot,
11591 via (define-key ctl-x-4-map "p" global-map).
11592 Remove fullness slot from struct Lisp_Keymap, since hash tables
11594 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11596 2000-01-30 Martin Buchholz <martin@xemacs.org>
11598 * redisplay.c (init_redisplay): Fix small memory leak.
11600 * elhash.c (pdump_reorganize_hash_table):
11601 Rename from reorganize_hash_table. Change prototype.
11602 Reuse the original memory for hentries. Save 100k.
11603 * alloc.c (PDUMP_READ): new macro.
11604 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11605 * alloc.c: No need to #ifndef before #undef.
11607 * print.c: Allow debug_print() to print readably by modifying
11608 debug_print_readably. Use consistent variable names.
11610 * .dbxrc: Try to get things to work even if stopped in a function
11611 without source available by explicitly specifying source files.
11612 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11614 * unexnt.c (_start): Removed bogus code which caused loading heap
11615 from differrent executable file.
11616 Removed bogus assignment to _fmode, which caused inconsistencies.
11618 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11620 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11621 Have spawnve encapsulation regard DONT_ENCAPSULATE.
11622 Do not preliminary `#define signal sigset'.
11624 * systime.h: Do not prototype environ on windows nt and cygwin,
11625 this conflicts with system header.
11627 * syssignal.h: Use correct define for WINDOWSNT
11629 * sysdep.h: Do not prototype environ on windows nt, this conflicts
11630 with system header.
11632 * sysdep.c (near start of file): Fixed commentary and rearranged
11633 ifdefs in readable order.
11634 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11637 (end_of_data): Do not compile in if using PDUMP.
11639 * symsinit.h: Prototyped vars_of_nt().
11641 * ntproc.c (windows9x_p): Added, instead of os_subtype.
11642 (find_child_console): Use it.
11643 (sys_kill): Use it.
11645 * ntheap.h: Do not extern os_subtype.
11647 * ntheap.c (cache_system_info): Do not cache unneeded:
11648 nt_major_version, nt_minor_version and os_subtype.
11649 (recreate_heap): Do not compile in when PDUMPing.
11651 * nt.c (geteuid and friends): Use the new varibale
11652 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11653 (init_user_info): Removed the above mentioned hackery.
11654 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11655 stat has been fixed in the C runtime.
11656 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11658 * file-coding.c (struct file_coding_dump): Do not define
11659 ucs_to_mule_table in the struct if not MULE.
11660 (struct struct lrecord_description fcd_description_1): Do not dump
11663 * emacs.c (main_1): Call vars_of_nt().
11664 (right before Fdump_emacs_data): Don't need lastfile if using both
11665 portabe dumper and system malloc.
11667 * alloc.c (Fmemory_limit): Conditionalized out.
11668 (pdump): Use OPEN_BINARY for the portable dump file.
11669 (pdump_load): Ditto.
11671 2000-02-02 Mike Alexander <mta@arbortext.com>
11673 * nt.c (convert_time): Set tm_isdst before calling mktime and
11674 avoid calling it at all if the compiler supports 64 bit integers.
11675 Also initialize utc_base_ft before using it.
11677 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11679 * frame.c (change_frame_size_1): Take f->internal_border_width
11680 into consideration when calculating the width of the frame.
11682 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11684 * window.c (frame_min_height):
11685 (frame_size_valid_p):
11686 (frame_pixsize_valid_p): Added.
11687 (check_frame_size): Generalized.
11689 * window.h: Prototyped the above.
11692 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11693 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11694 Deleted Vwin32_* and Vbinary_process_* unused variables.
11696 * device-msw.c (msprinter_init_device): Do not get printer font
11697 list; Added DEVMODE functions.
11699 * frame-msw.c: Added lots of printer code.
11701 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11704 * console-msw.h: Added more msprinter device private slots.
11706 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11708 * event-msw.c (key_needs_default_processing_p): Added.
11709 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11711 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11713 * glyphs.c (image_instance_layout): Mark image instance as clean
11715 (glyph_dirty_p): Removed redundant function.
11716 (invalidate_glyph_geometry_maybe): Added.
11717 (update_glyph_cachel_data): Call it.
11719 * glyphs.h: Prototyped it.
11721 * redisplay.c (add_glyph_rune): Call it.
11722 (redisplay_window): Reset glyphs cachels when frame faces have
11723 changed, thus forcing recomputation of built-in border glyphs.
11725 2000-01-30 Martin Buchholz <martin@xemacs.org>
11727 * Makefile.in.in: Make portable dumper and purify play well together.
11728 Add imperfect, but better than nothing, support for pdump.
11729 Remove xemacs.dmp when temacs is re-generated.
11730 Don't ignore errors when dumping xemacs.
11732 * symbols.c (maybe_call_magic_handler): Remove one magic number.
11734 2000-01-28 Andy Piper <andy@xemacs.org>
11736 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11737 (setup_normal_frame): ditto.
11738 (setup_frame_without_minibuffer): ditto.
11739 (setup_minibuffer_frame): ditto.
11740 (delete_frame_internal): ditto.
11741 (Fmake_frame_invisible): ditto.
11742 (Ficonify_frame): ditto.
11744 * window.h: change Fset_window_buffer signature.
11746 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11747 (Fset_window_buffer): allow recording of buffer if the window is
11748 the selected window.
11749 (window_loop): Use new Fset_window signature.
11751 2000-01-23 Daniel Pittman <daniel@danann.net>
11753 * config.h.in: Added template for `HAVE_ATHENA_3D'
11755 2000-01-29 Andy Piper <andy@xemacs.org>
11757 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11759 * gutter.c (output_gutter): Don't output if the window isn't live.
11761 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11763 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11764 of 01/12/00: Moved SetFocus back here where it belongs.
11766 2000-01-23 Andy Piper <andy@xemacs.org>
11768 * s/cygwin32.h: declare printer things.
11770 2000-01-26 Andy Piper <andy@xemacs.org>
11772 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11775 2000-01-24 Andy Piper <andy@xemacs.org>
11777 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11778 (mswindows_button_instantiate): Make sure glyph is a pixmap.
11780 * glyphs-widget.c (widget_instantiate): Avoid shadows.
11782 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11784 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11786 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11787 (mswindows_output_display_block): Avoid local shadows.
11789 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11790 (mswindows_enqueue_mouse_button_event): ditto.
11791 (mswindows_handle_gui_wm_command): remove declaration.
11793 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11796 * console-msw.h: Avoid shadows.
11797 (mswindows_get_toolbar_button_text):
11798 (emacs_mswindows_create_stream_pair):
11799 (emacs_mswindows_delete_stream_pair):
11800 (mswindows_handle_toolbar_wm_command): declare.
11802 * device-msw.c (build_syscolor_string): Avoid shadows.
11804 2000-01-23 Andy Piper <andy@xemacs.org>
11806 * glyphs-widget.c (widget_instantiate): reverse the items for
11807 layouts so that children are in the expected order.
11809 2000-01-28 Martin Buchholz <martin@xemacs.org>
11811 * ralloc.c: safe_bcopy ==> memmove
11812 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11813 * s/msdos.h: Remove BCOPY macros.
11814 * insdel.c (gap_right): Remove BCOPY conditional code.
11815 * insdel.c (gap_left): Remove BCOPY conditional code.
11816 XEmacs demands a working ANSI C compiler - hence memmove.
11818 * regex.c (regex_compile): Remove accidental use of trigraphs.
11820 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11822 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11825 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11827 * event-msw.c (mswindows_drain_windows_queue): Added the
11829 (mswindows_need_event): Commented the call to
11830 mswindows_drain_windows_queue().
11831 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11834 * console-msw.h: Moved a few function prototypes here from
11837 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11838 parameter from unsigned short to unsigned long.
11839 (Fmswindows_shell_execute): Added return value.
11841 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11843 * sysdep.c (init_system_name):
11844 process-unix.c (unix_canonicalized_host_name):
11845 Don't call freeaddrinfo() if getaddrinfo() fails.
11847 * process-unix.c (unix_open_unix_network_stream):
11848 Moved the code to get a port # into address loop.
11850 2000-01-27 Martin Buchholz <martin@xemacs.org>
11852 * buffer.c (reinit_vars_of_buffer):
11853 The right place to initialize conversion_in_dynarr and
11854 conversion_out_dynarr.
11856 * alloc.c (pdump): Use the real open() till sys_open() is functional.
11858 * process-unix.c (unix_canonicalize_host_name): Muleize.
11859 (unix_open_network_stream): Muleize.
11861 * buffer.h: Fix up prototypes for ralloc.c functions.
11863 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11864 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11865 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11866 instead of gethostbyname()
11867 * process-unix.c: In unix_canonicalize_host_name() and
11868 unix_open_network_stream(), add code to use getaddrinfo()
11869 instead of gethostbyname().
11871 2000-01-27 Daniel Pittman <daniel@danann.net>
11873 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11874 libs when built with flat Athena.
11876 2000-01-27 Martin Buchholz <martin@xemacs.org>
11878 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11879 Use coding standards for function prototypes.
11881 2000-01-25 Martin Buchholz <martin@xemacs.org>
11883 * dialog-msw.c (push_lisp_string_as_unicode):
11884 * doc.c (unparesseuxify_doc_string):
11885 * dired.c (Fuser_name_completion_1):
11886 * dired.c (Fuser_name_all_completions):
11887 * dired.c (free_user_cache):
11888 * dired.c (user_name_completion):
11889 * console-x.c (get_display_arg_connection):
11890 * minibuf.c (clear_echo_area_internal):
11891 * minibuf.c (echo_area_append):
11892 * eldap.c (Fldap_open):
11893 * eldap.c (Fldap_search_internal):
11894 * frame-x.c (x_set_frame_text_value):
11895 * frame-x.c (x_set_frame_properties):
11896 * frame-x.c (x_create_widgets):
11897 * redisplay-tty.c (term_get_fkeys_1):
11898 * objects-x.c (x_parse_nearest_color):
11899 * objects-x.c (x_valid_color_name_p):
11900 * objects-x.c (x_initialize_font_instance):
11901 * objects-x.c (x_list_fonts):
11902 * objects-x.c (x_find_charset_font):
11903 * tooltalk.c (Fadd_tooltalk_message_arg):
11904 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11905 * tooltalk.c (Fadd_tooltalk_pattern_arg):
11906 * process-unix.c (unix_create_process):
11907 * ntproc.c (sys_spawnve):
11908 * sound.c (Fplay_sound_file):
11909 * sound.c (Fplay_sound):
11910 * buffer.c (init_initial_directory):
11911 * buffer.c (init_buffer):
11912 * editfns.c (init_editfns):
11913 * editfns.c (Ftemp_directory):
11914 * editfns.c (Fuser_full_name):
11915 * editfns.c (uncache_home_directory):
11916 * editfns.c (get_home_directory):
11917 * editfns.c (Fuser_home_directory):
11918 * editfns.c (Fformat_time_string):
11919 * editfns.c (Fcurrent_time_string):
11920 * gui-x.c (button_item_to_widget_value):
11921 * database.c (Fopen_database):
11922 * event-Xt.c (x_to_emacs_keysym):
11923 * event-Xt.c (x_event_to_emacs_event):
11924 * event-Xt.c (describe_event_window):
11925 * event-msw.c (mswindows_wnd_proc):
11926 * glyphs-eimage.c (jpeg_instantiate):
11927 * glyphs-eimage.c (gif_instantiate):
11928 * glyphs-eimage.c (png_instantiate):
11929 * glyphs-eimage.c (tiff_instantiate):
11930 * glyphs-x.c (xbm_instantiate_1):
11931 * glyphs-x.c (x_xbm_instantiate):
11932 * glyphs-x.c (x_xface_instantiate):
11933 * glyphs-x.c (autodetect_instantiate):
11934 * glyphs-x.c (cursor_font_instantiate):
11935 * glyphs-x.c (x_widget_instantiate):
11936 * glyphs-x.c (x_widget_set_property):
11937 * glyphs-x.c (x_widget_property):
11938 * glyphs-x.c (BUILD_GLYPH_INST):
11939 * print.c (write_string_to_stdio_stream):
11940 * print.c (output_string):
11941 * print.c (Falternate_debugging_output):
11942 * print.c (Fexternal_debugging_output):
11943 * glyphs-msw.c (extract_xpm_color_names):
11944 * glyphs-msw.c (mswindows_xpm_instantiate):
11945 * glyphs-msw.c (bmp_instantiate):
11946 * glyphs-msw.c (resource_name_to_resource):
11947 * glyphs-msw.c (mswindows_resource_instantiate):
11948 * glyphs-msw.c (xbm_instantiate_1):
11949 * glyphs-msw.c (mswindows_xbm_instantiate):
11950 * glyphs-msw.c (mswindows_xface_instantiate):
11951 * glyphs-msw.c (mswindows_widget_instantiate):
11952 * glyphs-msw.c (add_tree_item):
11953 * glyphs-msw.c (add_tab_item):
11954 * glyphs-msw.c (mswindows_combo_box_instantiate):
11955 * glyphs-msw.c (mswindows_widget_property):
11956 * glyphs-msw.c (mswindows_combo_box_property):
11957 * glyphs-msw.c (mswindows_widget_set_property):
11958 * console.c (stuff_buffered_input):
11959 * objects-msw.c (mswindows_initialize_color_instance):
11960 * objects-msw.c (mswindows_valid_color_name_p):
11961 * objects-msw.c (mswindows_list_fonts):
11962 * objects-msw.c (mswindows_font_instance_truename):
11963 * bytecode.c (optimize_compiled_function):
11964 * select-x.c (symbol_to_x_atom):
11965 * select-x.c (x_atom_to_symbol):
11966 * select-x.c (hack_motif_clipboard_selection):
11967 * select-x.c (selection_data_to_lisp_data):
11968 * select-x.c (lisp_data_to_selection_data):
11969 * select-x.c (Fx_get_cutbuffer_internal):
11970 * select-x.c (Fx_store_cutbuffer_internal):
11971 * buffer.h (TO_EXTERNAL_FORMAT): New function.
11972 * buffer.h (TO_INTERNAL_FORMAT): New function.
11973 * emacs.c (make_arg_list_1):
11974 * emacs.c (make_argc_argv):
11975 * emacs.c (main_1):
11976 * emacs.c (Fdump_emacs):
11977 * emacs.c (split_string_by_emchar_1):
11982 * device-x.c (x_init_device):
11983 * device-x.c (Fx_valid_keysym_name_p):
11984 * device-x.c (Fx_get_font_path):
11985 * device-x.c (Fx_set_font_path):
11986 * glyphs.c (bitmap_to_lisp_data):
11987 * glyphs.c (pixmap_to_lisp_data):
11988 * alloc.c (make_ext_string): Use coding system arguments. Update
11990 * alloc.c (build_string):
11991 * callproc.c (child_setup):
11992 * callproc.c (init_callproc):
11993 * fileio.c (lisp_strerror):
11994 * fileio.c (directory_file_name):
11995 * fileio.c (Fexpand_file_name):
11996 * fileio.c (Ffile_truename):
11997 * fileio.c (Fsysnetunam):
11998 * fileio.c (Fdo_auto_save):
11999 * sysdep.c (sys_readdir):
12000 * tests.c: New file. Allow adding C tests.
12001 Replace GET_* macros with a more comprehensible and flexible
12002 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12004 Any coding system can be used to do format conversion.
12005 Eliminate enum external_data_format.
12006 Eliminate convert_to_external_format.
12007 Eliminate convert_to_internal_format.
12008 Make sure file-name, keyboard, terminal, and ctext are always
12009 defined as coding systems or aliases. Make
12010 file-name-coding-system, terminal-coding-system, and
12011 keyboard-coding-system magical variables that are equivalent to
12012 defining the corresponding coding system aliases.
12014 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12015 * file-coding.c (Fcoding_system_alias_p): New function.
12016 * file-coding.c (Fcoding_system_aliasee): New function.
12017 * file-coding.c (append_suffix_to_symbol): New function.
12018 * file-coding.c (dangling_coding_system_alias_p): New function.
12019 * file-coding.c (Ffind_coding_system):
12020 * file-coding.c (Fcopy_coding_system):
12021 * file-coding.c (encode_coding_no_conversion):
12022 * file-coding.c (syms_of_file_coding):
12023 * file-coding.c (vars_of_file_coding):
12024 Rewrite coding system alias code.
12025 Allow nested aliases, like symbolic links.
12026 Allow redefinition of coding system aliases.
12027 Prevent existence of dangling coding system aliases.
12029 * dired.c (Fuser_name_completion_1):
12030 * dired.c (Fuser_name_all_completions):
12031 A crash would happen if user did QUIT in the middle of building
12032 user_name_cache. Remove redundant code in mainline and unwind_protect.
12035 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12037 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12038 an unsigned char *. Update all callers.
12040 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12042 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12044 2000-01-25 Martin Buchholz <martin@xemacs.org>
12046 * elhash.c (hentry_description): Use more portable definition.
12047 (resize_hash_table): Initialize new hentries using
12048 xnew_array_and_zero, thereby simplifying the code.
12050 * mule-charset.c (make_charset): Make sure entire object is
12051 initialized, to avoid Purify warnings.
12053 * alloc.c (resize_string): Fix unlikely crash with big strings.
12055 2000-01-24 Martin Buchholz <martin@xemacs.org>
12057 * realpath.c (xrealpath):
12058 Don't call getwd().
12060 2000-01-25 Martin Buchholz <martin@xemacs.org>
12062 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12064 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12066 * unexelfsgi.c (unexec): Change the way we decide which segment
12067 should be extended.
12069 Assumption that .bss section should be outside the PT_LOADable
12070 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12071 it's present) is inside the 'data' segment. This would fail the
12072 test which was used to find a segment to grow and cover new
12073 heap. Instead of this assumption, I created another one - on IRIX
12074 the segment to grow should start below .bss and it's address
12075 should extent above the end of .bss. Once this segment is
12076 identified, it's grown to accommodate the new heap and new
12077 zero-length .bss section is added at the end of .data2.
12079 2000-01-25 Martin Buchholz <martin@xemacs.org>
12081 * eval.c (Feval): Wrong number of arguments should use original
12082 function, not the indirect_function version of it.
12084 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12086 * glyphs-x.c (x_button_instantiate): Don't add image if
12087 it is not a pixmap.
12088 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12091 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12093 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12095 (DEFVAR_INT_MAGIC): Ditto.
12096 (DEFVAR_BOOL_MAGIC): Ditto.
12097 * glyphs.h: Reindent backslash.
12099 2000-01-24 Martin Buchholz <martin@xemacs.org>
12101 * glyphs-widget.c (layout_query_geometry):
12102 (layout_layout): Use correct types for gheight, gwidth.
12104 2000-01-24 Martin Buchholz <martin@xemacs.org>
12106 * EmacsManager.c (QueryGeometry): Purified.
12108 2000-01-23 Martin Buchholz <martin@xemacs.org>
12110 * alloc.c (make_float): Make sure entire object is initialized, to
12111 avoid Purify warnings.
12112 (pdump_register_sub): Remove useless assignment.
12113 (pdump): Use xmalloc, not malloc.
12114 (pdump_load): Use xmalloc, not malloc.
12116 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12123 * sysdep.c: Removed redundant #include <windows.h>
12125 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12127 * frame.c (delete_frame_internal): Do not delete device when its
12128 implementation so declares.
12129 (delete_frame_internal): Set device selected frame to nil when
12130 last frame goes away.
12132 * device-msw.c (msprinter_device_system_metrics): Implemented.
12133 (mswindows_device_system_metrics): Added 'device-dpi property.
12135 * device.c: (Fdevice_printer_p): Added.
12136 Added 'offset-workspace device metric.
12138 * console.h (device_metrics): Declared DM_offset_workspace.
12140 2000-01-23 Martin Buchholz <martin@xemacs.org>
12142 * fileio.c (Ffile_truename): Remove pointless and confusing
12143 initialization of elen.
12145 * glyphs-widget.c: Compiler warning fixes.
12147 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12149 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12150 instead of a Lisp_Object as argument to make it consistent with
12151 the other LIVE_P macros.
12152 (CHECK_LIVE_PROCESS): New macro.
12154 * process.c: Declare Qprocess_live_p.
12155 (Fprocess_live_p): New function.
12156 (create_process): Use PROCESS_LIVE_P.
12157 (read_process_output): Ditto.
12158 (set_process_filter): Ditto.
12159 (Fdelete_process): Ditto.
12160 (kill_buffer_processes): Ditto
12161 (process_send_signal): Use CHECK_LIVE_PROCESS.
12162 (Fprocess_input_coding_system): Check whether process is still
12163 alive (fix PR#1061).
12164 (Fprocess_output_coding_system): Ditto.
12165 (Fprocess_coding_system): Ditto.
12166 (Fset_process_input_coding_system): Ditto.
12167 (Fset_process_output_coding_system): Ditto.
12169 2000-01-23 Andy Piper <andy@xemacs.org>
12171 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12174 * glyphs.c (mark_image_instance): take into account changed
12175 image_instance format.
12176 (image_instance_equal): ditto.
12177 (image_instance_hash): ditto.
12179 * glyphs-widget.c (widget_instantiate): Incorporate layout
12180 instantiation here. Delay layout of the layout until later.
12181 (layout_instantiate): deleted.
12182 (layout_query_geometry): new function. get the geometry of a
12184 (layout_layout): layout a layout dynamically.
12185 (image_instantiator_widget): New function - splitting up
12186 image_instantiator_format_create_glyphs_widget for netwinder
12188 (image_instantiator_buttons):
12189 (image_instantiator_edit_fields):
12190 (image_instantiator_combo_box):
12191 (image_instantiator_scrollbar):
12192 (image_instantiator_progress_guage):
12193 (image_instantiator_tree_view):
12194 (image_instantiator_tab_control):
12195 (image_instantiator_labels):
12196 (image_instantiator_layout): ditto.
12197 (image_instantiator_format_create_glyphs_widget): Call preceding
12200 2000-01-22 Martin Buchholz <martin@xemacs.org>
12202 * process.c (Fset_process_coding_system):
12203 * device-x.c (Fx_keysym_hash_table):
12206 * lstream.c (Lstream_write): Return documented value, not 0.
12208 * fileio.c (directory_file_name):
12209 (Fsubstitute_in_file_name):
12210 (Fsubstitute_insert_file_contents_internal):
12211 (Fwrite_region_internal):
12216 Remove vestigial APOLLO-conditional code.
12218 2000-01-21 Martin Buchholz <martin@xemacs.org>
12220 * getpagesize.h: Add guard macros.
12221 * libsst.h: Add guard macros.
12222 * libst.h: Add guard macros.
12223 * line-number.h: Add guard macros.
12224 * ndir.h: Add guard macros.
12225 * sysfloat.h: Add guard macros.
12226 * sysfile.h: Add guard macros.
12227 * sysproc.h: Add guard macros.
12228 * syswait.h: Add guard macros.
12229 * xintrinsic.h: Add guard macros.
12230 * xintrinsicp.h: Add guard macros.
12231 * xmmanager.h: Add guard macros.
12232 * xmmanagerp.h: Add guard macros.
12233 * xmprimitive.h: Add guard macros.
12234 * xmu.h: Add guard macros.
12235 * gpmevent.h: Add copyright statement. Add guard macros.
12236 * miscplay.h: Add guard macros.
12237 * *.h: Use consistent C-standards-approved guard macro names.
12239 * opaque.c (make_opaque): Switch parameter order.
12240 * opaque.h (make_opaque): Switch parameter order.
12241 Update all callers.
12242 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12244 * config.h.in (type_checking_assert): Added.
12245 (bufpos_checking_assert): Added.
12247 2000-01-21 Martin Buchholz <martin@xemacs.org>
12249 * alloc.c: Harmless pdump changes.
12251 - spell alignment correctly.
12252 * sysdep.c: Use countof()
12254 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12256 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12257 initially_selected_for_input() console method, default to 0.
12258 (semi_canonicalize_console_connection): Try to delegate to
12259 canonicalize_console_connection if no such console method.
12260 (canonicalize_console_connection): Vice versa.
12261 (print_console): Do not print nil connection.
12263 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12264 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12265 (XDEVIMPF_FRAMELESS_OK): Added.
12266 (CONSOLE_INHERITS_METHOD): Added.
12268 * console-msw.c (mswindows_canonicalize_console_connection):
12270 (mswindows_canonicalize_device_connection): Added.
12272 * console-msw.h (struct msprinter_device): Added this struct and
12274 (mswindows_device): Made fontlist a lisp object.
12276 * device.c (semi_canonicalize_device_connection): Try to delegate
12277 to canonicalize_device_connection if no such console method.
12278 (canonicalize_device_connection): Vice versa.
12279 (print_device): Do not print nil connection.
12281 * device-msw.c (mswindows_init_device): Call InitCommonControls
12283 (mswindows_delete_device): Removed fontlist deallocation.
12284 (mswindows_mark_device): Added.
12286 * events.c (event_equal): Added abort() at unreached code.
12287 (event_hash): Ditto.
12289 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12290 fallback tags of Windows devices.
12292 * general.c (syms_of_general): Initialized Qmsprinter.
12294 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12295 of fallback tags of Windows devices.
12297 * lisp.h: Declared Qmsprinter.
12299 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12301 (mswindows_list_fonts): Ditto.
12302 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12303 that it can be used by both mswindows and msprinter devices.
12304 (initialize_font_instance): Added.
12305 (mswindows_initialize_font_instance): Use it.
12306 (msprinter_initialize_font_instance): Added.
12308 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12309 and implementation flags check.
12310 (redisplay_without_hooks): Changed the call to the above.
12311 (Fredraw_device): Ditto.
12312 (Fredisplay_device): Ditto.
12314 * redisplay-msw.c (get_frame_dc): Implemented.
12315 (get_frame_compdc): Implemented.
12316 (many functions): Use the two functions above to get device
12317 contexts, ether for a window or a printer.
12319 2000-01-21 Olivier Galibert <galibert@pobox.com>
12321 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12322 initialization here.
12323 (init_symbols_once_early): Call it.
12324 * emacs.c (main_1): Call it.
12325 * symsinit.h: Declare it.
12327 2000-01-19 Olivier Galibert <galibert@pobox.com>
12329 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12331 (pdump_backtrace): Ditto.
12332 (pdump_register_object): Ditto. Cleanup use of the pointers.
12333 (pdump_get_entry): Abort if trying to register a null pointer.
12334 (pdump_dump_data): Cleanup types when relocating.
12335 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12336 (pdump_dump_rtables): Remove bad casts.
12337 (pdump_load): Cleanup relocation w.r.t union type. Use a
12338 Lisp_Object instead of a EMACS_INT for the hashtable
12341 2000-01-20 Martin Buchholz <martin@xemacs.org>
12343 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12345 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12347 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12349 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12351 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12353 * faces.h (FACE_STRIKETHRU_P): Added.
12355 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12358 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12359 (mswindows_set_dc_font): New function, aware of font variants,
12360 separated from mswindows_update_dc.
12362 * objects-msw.h (struct mswindows_font_instance_data): Added
12365 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12366 cached fonts and the data structure.
12367 (mswindows_initialize_font_instance): Added creation of font data
12369 (mswindows_print_font_instance): Print at least something.
12370 (mswindows_create_font_variant): Implemented.
12371 (mswindows_get_hfont): Implemented.
12373 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12375 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12376 prototyping problem with msvc.
12378 * emacs.c (main_1): added syms_of_gui_mswindows() call
12380 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12381 syms_of_gui_mswindows() function
12383 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12385 2000-01-18 Martin Buchholz <martin@xemacs.org>
12387 * XEmacs 21.2.27 is released.
12389 2000-01-18 Martin Buchholz <martin@xemacs.org>
12391 * glyphs-eimage.c (struct tiff_error_struct):
12393 (tiff_warning_func):
12394 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12399 * unexec.c: Remove vestigial Lucid C code.
12403 * libsst.c: Ansify.
12404 Remove declarations of errno and strerror().
12406 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12408 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12410 2000-01-16 Martin Buchholz <martin@xemacs.org>
12412 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12415 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12420 Change enum eol_type to eol_type_t.
12422 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12424 * gui.c (get_gui_callback): Check cons before accessing car.
12426 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12428 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12429 (XSETSPECIFIER_TYPE): Ditto.
12431 2000-01-17 Didier Verna <didier@xemacs.org>
12433 * redisplay.c (generate_fstring_runes): compute string size in
12434 characters, not bytes.
12436 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12438 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12440 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12442 * print.c (print_error_message): Call print_prepare().
12444 2000-01-14 Martin Buchholz <martin@xemacs.org>
12446 * .dbxrc: Renamed from dbxrc.
12448 * events.c (event_to_character):
12449 Use `assert (foo)' instead of `if (!foo) abort()'
12451 * .gdbinit (xtype): Add documentation.
12452 * .gdbinit (check-temacs): New function.
12453 * .gdbinit (check-xemacs): New function.
12454 * dbxrc (check-xemacs): New function.
12455 * dbxrc (check-xemacs): New function.
12457 2000-01-14 Andy Piper <andy@xemacs.org>
12459 * glyphs-widget.c (widget_query_geometry): Make sure that we
12460 calculate default dimensions correctly.
12462 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12464 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12466 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12467 pdump_wire'd variable.
12469 * emacs.c: (main_1): Conditionalized calls to
12470 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12472 2000-01-13 Martin Buchholz <martin@xemacs.org>
12474 * window.c (Fset_window_configuration):
12475 * sysdep.c (_start):
12476 * input-method-motif.c (res):
12477 * event-Xt.c (Xt_process_to_emacs_event):
12478 Simple compiler warning fixes.
12480 * bytecode.c (funcall_compiled_function): Use the original
12481 function symbol on the backtrace list in preference to the
12482 compiled_function object in error messages.
12484 2000-01-13 Andy Piper <andy@xemacs.org>
12486 * glyphs-x.c (update_widget_face): Make sure we update the widget
12487 background as well as foreground.
12489 2000-01-13 Andy Piper <andy@xemacs.org>
12491 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12492 fields to subwindow.
12493 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12494 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12495 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12496 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12498 * glyphs-widget.c (check_valid_tab_orientation): new function.
12499 (initialize_widget_image_instance): zero orientation and
12501 (widget_instantiate): pick up orientation.
12502 (tab_control_query_geometry): return appropriate values for
12505 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12506 appropriate creation flags for left, right and bottom tabs.
12508 * s/cygwin32.h: add tab definitions.
12510 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12512 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12513 frame upon hiding a subwindow.
12514 (mswindows_button_instantiate): Changed the push button style to
12516 (mswindows_button_instantiate): Removed button BS_NOTIFY
12518 (mswindows_button_instantiate): Removed redundant check for
12519 a disabled gui item.
12520 (mswindows_button_instantiate): Made use of WS_TABSTOP
12521 consistent: "operable" controls (edit, button, tree, scroll) have
12522 this style, "display-only" ones (static, progress gauge) do
12523 not. This style is currently ignored by XEmacs though. Also,
12524 removed the WS_EX_CONTROLPARENT style - it is not for children,
12525 it is for their parents!
12526 (mswindows_edit_field_instantiate): Ditto.
12527 (mswindows_progress_gauge_instantiate): Ditto.
12528 (mswindows_tree_view_instantiate): Ditto.
12529 (mswindows_tab_control_instantiate): Ditto.
12530 (mswindows_scrollbar_instantiate): Ditto.
12531 (mswindows_combo_box_instantiate): Ditto.
12532 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12533 style to the "clip" window.
12534 (mswindows_button_instantiate): Removed compilation warning by
12535 equally typing terms of the ?: operator.
12537 2000-01-12 Didier Verna <didier@xemacs.org>
12539 * redisplay.c (generate_fstring_runes): new parameter holding the
12540 last modeline-format extent.
12541 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12542 extent, fill the glyph block with it.
12543 (generate_fstring_runes): handle these parameters.
12544 (generate_formatted_string_db): ditto.
12546 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12547 glyphs'extents in the modeline.
12549 1999-01-11 Mike Woolley <mike@bulsara.com>
12551 * ntheap.c: Reduced the reserved heap space from 1Gb down to
12552 256Mb, as a workaround for the non-starting problem many people
12555 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12557 * console-tty.c (Fset_console_tty_output_coding_system):
12558 Force redrawing tty frame.
12560 2000-01-10 Didier Verna <didier@xemacs.org>
12562 * redisplay.c (generate_fstring_runes): fix size computation bug.
12564 2000-01-09 William M. Perry <wmperry@aventail.com>
12566 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12568 2000-01-09 Andy Piper <andy@xemacs.org>
12570 * glyphs-msw.c: index -> i to avoid shadows.
12571 (xbm_create_bitmap_from_data): make static.
12572 (check_valid_string_or_int): deleted.
12573 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12575 * glyphs-x.c (x_update_subwindow): remove unused args.
12577 * glyphs.c (glyph_image_instance): return the thing. Don't set the
12578 back pointer - this is done in allocate_image_instance.
12579 (query_string_font): return Qnil to make the compiler happy.
12580 (unmap_subwindow): set to ~0 to make the compiler happy.
12581 (glyph_query_geometry): comment out until used.
12582 (glyph_layout): ditto.
12584 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12586 * insdel.c (signal_after_change): Remove extraneous unbind_to().