1 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * text-coding.c (char_encode_big5): Prefer charset-g1 than
6 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
8 * chartab.c (uint8_byte_table_description): New constant.
9 (uint8-byte-table): Use `uint8_byte_table_description'.
10 (uint16_byte_table_description): New constant.
11 (uint16-byte-table): Use `uint16_byte_table_description'.
13 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
15 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
16 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
18 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
20 * mule-charset.c (Vcharset_ucs_ks): New variable.
21 (Qucs_ks): New variable.
22 (syms_of_mule_charset): Add new symbol `ucs-ks'.
23 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
25 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
27 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
29 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
30 (Fdecode_char): Likewise.
32 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
34 (Fdefine_char): Modify for Fdecode_char.
35 (Ffind_char): Likewise.
37 * mule-charset.c (Fdecode_char): Add new optional argument
39 (Fdecode_builtin_char): Modify for `Fdecode_char'.
41 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
43 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
44 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
45 (allocate_coding_system): Initialize initial-charsets of
46 CODESYS_BIG5 in XEmacs UTF-2000.
47 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
48 CODESYS_BIG5 in XEmacs UTF-2000.
49 (decode_coding_big5): Use initial-charset-g0 and -g1 of
50 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
52 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
54 (Qideograph_hanziku_{1 .. 12}): Likewise.
55 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
57 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
58 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
59 `ideograph-hanziku-{1 .. 12}'.
61 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
62 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
63 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
64 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
65 (DECODE_DEFINED_CHAR): New inline function.
66 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
68 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
70 * mule-charset.c (Vcharset_china3_jef): Renamed from
71 `Vcharset_japanese_jef_china3'.
72 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
73 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
74 `{MIN|MAX}_CHAR_JEF_CHINA3'..
75 (syms_of_mule_charset): Rename `china3-jef' from
76 `japanese-jef-china3'.
77 (complex_vars_of_mule_charset): Likewise; rename
78 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
80 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
81 `LEADING_BYTE_JEF_CHINA3'.
82 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
83 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
85 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
87 * mule-charset.c (encode_builtin_char_1): Comment out special code
88 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
90 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
91 (MAX_CHAR_MOJIKYO_0): Comment out.
92 (MIN_CHAR_CBETA): Changed to 0x00E20000.
93 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
94 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
95 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
97 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
99 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
100 (Qideograph_cbeta): New variable.
101 (encode_builtin_char_1): Comment out special code for
102 coded-charset `mojikyo' and `japanese-jef-china3'.
103 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
104 (complex_vars_of_mule_charset): Add new coded-charset
107 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
108 (MIN_CHAR_CBETA): New macro.
109 (MAX_CHAR_CBETA): New macro.
111 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
113 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
114 (LEADING_BYTE_JEF_CHINA3): New macro.
115 (MIN_CHAR_JEF_CHINA3): New macro.
116 (MAX_CHAR_JEF_CHINA3): Likewise.
117 (DECODE_CHAR): Fixed.
119 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
121 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
122 (Qjapanese_jef_china3): New variable.
123 (encode_builtin_char_1): Support `japanese-jef-china3'.
124 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
125 (complex_vars_of_mule_charset): Add new coded-charset
126 `japanese-jef-china3'.
128 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
130 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
131 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
132 94^4, 96^3, 96^4, 128^n and 256^n set.
133 (put_char_table): Use `XCHARSET_CELL_RANGE'.
134 (map_char_table): Likewise.
136 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
138 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
141 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
143 * chartab.h (get_char_id_table): New inline function.
145 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
148 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
150 * chartab.h (decode_char_table_range): New prototype in XEmacs
152 (put_char_id_table): New inline function in XEmacs UTF-2000.
154 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
156 (decode_char_table_range): Delete static declaration in XEmacs
159 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
161 * chartab.c (put_char_id_table): Use `put_char_table'.
163 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
165 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
166 (map_over_uint16_byte_table): Likewise.
167 (map_over_byte_table): Likewise.
168 (map_char_table): Modify for `map_over_uint8_byte_table',
169 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
172 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
174 * chartab.c (struct map_char_table_for_charset_arg): New
176 (map_char_table_for_charset_fun): New function.
177 (map_char_table): Use `map_char_table' for encoding_table of
180 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
182 * chartab.c (map_char_table): Check a character is found in
183 range->charset instead of non default value is defined in
184 char-table when range is CHARTAB_RANGE_ROW.
186 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
188 * chartab.c (map_char_id_table): Deleted.
189 (Fmap_char_attribute): Use `map_char_table' instead of
192 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
194 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
196 (update_syntax_table): Deleted in XEmacs UTF-2000.
198 * syntax.c (find_defun_start): Use `syntax_table' instead of
199 `mirror_syntax_table' in XEmacs UTF-2000.
200 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
202 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
204 (Fmatching_paren): Likewise.
205 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
207 (find_start_of_comment): Likewise.
208 (find_end_of_comment): Likewise.
209 (Fforward_comment): Likewise.
210 (scan_lists): Likewise.
211 (char_quoted): Likewise.
212 (Fbackward_prefix_chars): Likewise.
213 (scan_sexps_forward): Likewise.
214 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
215 (update_syntax_table): Likewise.
217 * search.c (skip_chars): Use `syntax_table' instead of
218 `mirror_syntax_table' in XEmacs UTF-2000.
220 (Freplace_match): Likewise.
222 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
223 `mirror_syntax_table' in XEmacs UTF-2000.
224 (WORDCHAR_P_UNSAFE): Likewise.
225 (re_match_2_internal): Likewise.
227 * font-lock.c (find_context): Use `buf->syntax_table' instead of
228 `buf->mirror_syntax_table' in XEmacs UTF-2000.
230 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
231 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
233 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
236 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
238 (print_char_table): Print `default_value' in XEmacs UTF-2000.
239 (char_table_description): Delete `mirror_table' in XEmacs
241 (fill_char_table): Don't call `update_syntax_table' in XEmacs
243 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
244 (Fcopy_char_table): Likewise.
245 (put_char_table): Don't call `update_syntax_table' in XEmacs
248 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
249 `buf->mirror_syntax_table' in XEmacs UTF-2000.
250 (casify_region_internal): Likewise.
252 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
254 * buffer.c (common_init_complex_vars_of_buffer): Don't use
255 `mirror_syntax_table' in XEmacs UTF-2000.
257 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
258 `buf->mirror_syntax_table' in XEmacs UTF-2000.
259 (Fexpand_abbrev): Likewise.
261 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
263 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
265 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
267 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
268 (map_over_uint16_byte_table): Likewise.
269 (map_over_byte_table): Likewise.
270 (get_char_id_table): Refer `cit->default_value'.
271 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
272 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
273 of character-id ranges.
274 (mark_char_table): Mark `ct->default_value'.
275 (char_table_description): Add `default_value'.
276 (fill_char_table): Use `default_value'.
277 (decode_char_table_range): Decode `nil' as
278 `CHARTAB_RANGE_DEFAULT'.
279 (get_char_id_table): Refer `cit->default_value'.
280 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
281 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
282 temporary hack; check value of char-table is bound or not.
283 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
285 * chartab.h (struct Lisp_Char_Table): Add new member
286 `default_value' in XEmacs UTF-2000.
287 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
288 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
291 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
293 * chartab.h (Lisp_Char_ID_Table): Deleted.
295 * chartab.c (char_table_description): Fix typo.
296 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
297 `Lisp_Char_ID_Table'.
299 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
301 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
304 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
307 * chartab.h (XCHAR_ID_TABLE): Deleted.
308 (XSETCHAR_ID_TABLE): Deleted.
309 (CHAR_ID_TABLE_P): Deleted.
311 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
313 (Fget_composite_char): Likewise.
314 (put_char_table): Likewise.
315 (add_char_attribute_alist_mapper): Fixed.
316 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
318 (Fget_char_attribute): Likewise.
319 (Fget_char_attribute): Likewise.
320 (Fmap_char_attribute): Likewise.
322 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
324 (encode_char_1): Likewise.
326 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
328 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
331 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
332 instead of `XCHAR_ID_TABLE'.
333 (remove_char_ccs): Likewise.
335 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
337 (Fget_composite_char): Likewise.
338 (Fchar_variants): Likewise.
339 (put_char_table): Likewise.
340 (add_char_attribute_alist_mapper): Likewise.
341 (Fchar_attribute_alist): Likewise.
342 (Fget_char_attribute): Likewise.
343 (Fput_char_attribute): Likewise.
344 (Fmap_char_attribute): Likewise.
345 (Fmap_char_attribute): Likewise.
347 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
349 (encode_char_1): Likewise.
351 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
353 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
354 `Lisp_Char_ID_Table'.
355 (mark_char_id_table): Deleted.
356 (print_char_id_table): Likewise.
357 (char_id_table_equal): Likewise.
358 (char_id_table_hash): Likewise.
359 (char_id_table_description): Likewise.
360 (char_id_table): Likewise.
361 (make_char_id_table): Use `Fmake_char_table' and
363 (get_char_id_table): Use `Lisp_Char_Table' instead of
364 `Lisp_Char_ID_Table'.
365 (put_char_id_table): Likewise.
366 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
368 (Fremove_char_attribute): Likewise.
369 (syms_of_chartab): Don't define type `char-id-table'.
371 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
372 (char_id_table): Likewise.
373 (GC_CHAR_ID_TABLE_P): Likewise.
374 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
375 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
376 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
377 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
378 (get_char_id_table): Use `Lisp_Char_Table' instead of
379 `Lisp_Char_ID_Table'.
380 (put_char_id_table_0): Likewise.
381 (put_char_id_table): Likewise.
383 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
385 * chartab.h: Lisp_Byte_Table related codes are moved from
388 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
390 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
392 * chartab.h: Don't include "chartab.h".
393 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
394 (Lisp_Char_ID_Table): Likewise.
395 (char_id_table): Likewise.
396 (XCHAR_ID_TABLE): Likewise.
397 (XSETCHAR_ID_TABLE): Likewise.
398 (CHAR_ID_TABLE_P): Likewise.
399 (GC_CHAR_ID_TABLE_P): Likewise.
400 (get_char_id_table): Likewise.
402 * char-ucs.h: Include "chartab.h".
403 (struct Lisp_Char_ID_Table): Moved to chartab.h.
404 (Lisp_Char_ID_Table): Likewise.
405 (char_id_table): Likewise.
406 (XCHAR_ID_TABLE): Likewise.
407 (XSETCHAR_ID_TABLE): Likewise.
408 (CHAR_ID_TABLE_P): Likewise.
409 (GC_CHAR_ID_TABLE_P): Likewise.
410 (get_char_id_table): Likewise.
412 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
414 * chartab.c (copy_uint8_byte_table): New function.
415 (copy_uint16_byte_table): New function.
416 (copy_byte_table): New function.
417 (map_over_uint8_byte_table): Modify to avoid huge numbers of
419 (map_over_uint16_byte_table): Likewise.
420 (map_over_byte_table): Likewise.
421 (get_byte_table): Move prototype to chartab.h.
422 (put_byte_table): Likewise.
423 (put_char_id_table_0): Moved to chartab.h.
424 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
425 (char_table_entry_equal): Likewise.
426 (char_table_entry_hash): Likewise.
427 (char_table_entry_description): Likewise.
428 (char_table_entry): Likewise.
429 (make_char_table_entry): Likewise.
430 (copy_char_table_entry): Likewise.
431 (get_non_ascii_char_table_value): Likewise.
432 (map_over_charset_ascii): Likewise.
433 (map_over_charset_control_1): Likewise.
434 (map_over_charset_row): Likewise.
435 (map_over_other_charset): Likewise.
436 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
437 (print_char_table): Likewise.
438 (char_table_equal): Likewise.
439 (char_table_hash): Likewise.
440 (char_table_description): Likewise.
441 (fill_char_table): Likewise.
442 (Fcopy_char_table): Likewise.
443 (get_char_table): Likewise.
444 (Fget_range_char_table): Likewise.
445 (put_char_table): Likewise.
446 (map_char_table): Likewise.
447 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
450 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
452 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
453 `Vauto_fill_chars' in XEmacs UTF-2000.
455 * chartab.h (get_byte_table): New prototype [moved from
457 (put_byte_table): Likewise [moved from chartab.c].
458 (put_char_id_table_0): New inline function [moved from chartab.c].
459 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
460 (Lisp_Char_Table_Entry): Likewise.
461 (char_table_entry): Likewise.
462 (XCHAR_TABLE_ENTRY): Likewise.
463 (XSETCHAR_TABLE_ENTRY): Likewise.
464 (CHAR_TABLE_ENTRYP): Likewise.
465 (CHECK_CHAR_TABLE_ENTRY): Likewise.
466 (NUM_ASCII_CHARS): Likewise.
467 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
468 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
470 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
472 * chartab.c (get_char_id_table): Change interface.
473 (put_char_id_table_0): New function.
474 (put_char_id_table): Change interface; new implementation.
475 (Fget_composite_char): Modify for interface change of
477 (Fchar_variants): Likewise.
478 (add_char_attribute_alist_mapper): Likewise.
479 (Fchar_attribute_alist): Likewise.
480 (Fget_char_attribute): Likewise.
481 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
482 as same as character as the first argument like `put-char-table';
483 modify for interface change of `put_char_id_table'.
484 (Fremove_char_attribute): Modify for interface change of
487 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
489 * text-coding.c: Sync up with XEmacs 21.2.41.
490 (COMPOSE_ADD_CHAR): Modify for interface change of
493 * mule-charset.c (put_char_ccs_code_point): Modify for interface
494 change of `put_char_id_table'.
495 (remove_char_ccs): Likewise.
497 * chartab.h (put_char_id_table): Change interface.
499 * char-ucs.h (get_char_id_table): Change interface.
500 (charset_code_point): Modify for interface change of
502 (encode_char_1): Likewise.
504 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
506 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
508 (map_over_uint16_byte_table): Likewise.
509 (map_over_byte_table): Likewise.
510 (map_char_id_table): Add new argument `range' like
512 (Fmap_char_attribute): Add new argument `range' like
515 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
517 * chartab.c (map_over_uint8_byte_table): Change interface of
518 mapping function to use struct chartab_range instead of Emchar.
519 (map_over_uint16_byte_table): Likewise.
520 (map_over_byte_table): Likewise.
521 (map_char_id_table): Likewise.
522 (struct slow_map_char_id_table_arg): Deleted.
523 (slow_map_char_id_table_fun): Deleted.
524 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
525 function `slow_map_char_table_fun' instead of struct
526 `slow_map_char_id_table_arg' and function
527 `slow_map_char_id_table_fun'.
529 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
531 * mule-charset.c: Move char-it-table related codes to chartab.c.
532 (Vutf_2000_version): Moved to chartab.c.
533 (Fdefine_char): Likewise.
534 (Ffind_char): Likewise.
535 (syms_of_mule_charset): Move types `uint8-byte-table',
536 `uint16-byte-table', `byte-table' and `char-id-table' to
537 chartab.c; move functions `char_attribute_list,
538 `find_char_attribute_table, `char_attribute_alist,
539 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
540 `map_char_attribute, `define_char, `find_char, `char_variants and
541 `get_composite_char to chartab.c; move symbols `=>ucs',
542 `->decomposition', `compat', `isolated', `initial', `medial',
543 `final', `vertical', `noBreak', `fraction', `super', `sub',
544 `circle', `square', `wide', `narrow', `small' and `font' to
546 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
547 setting codes for `Vcharacter_composition_table' and
548 `Vcharacter_variant_table' to chartab.c.
549 (complex_vars_of_mule_charset): Move setting code for
550 `Vchar_attribute_hash_table' to chartab.c.
552 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
553 (make_char_id_table): New prototype.
554 (put_char_id_table): Likewise.
555 (Fget_char_attribute): Likewise.
557 * chartab.c: Move char-id-table related code from mule-charset.c.
558 (Vutf_2000_version): Moved from mule-charset.c.
560 * char-ucs.h (Qucs): New external variable.
561 (put_char_ccs_code_point): New prototype.
562 (remove_char_ccs): Likewise.
564 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
566 * mule-charset.c (Vcharset_ucs_jis): New variable.
567 (Qucs_jis): Likewise.
568 (syms_of_mule_charset): Add new symbol `ucs-jis'.
569 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
571 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
573 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
575 * mule-charset.c (map_over_uint8_byte_table): New function.
576 (map_over_uint16_byte_table): Likewise.
577 (map_over_byte_table): Likewise.
578 (map_char_id_table): Likewise.
579 (slow_map_char_id_table_fun): Likewise.
580 (Fmap_char_attribute): Likewise.
581 (syms_of_mule_charset): Add new function `map-char-attribute'.
583 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
585 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
586 (syms_of_mule_charset): Add new function `find-char'.
588 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
590 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
592 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
593 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
595 (complex_vars_of_mule_charset): Add new coded-charset
596 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
599 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
601 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
603 * mule-charset.c (encode_builtin_char_1): Purge codes about
604 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
605 {MIN|MAX}_CHAR_HEBREW.
606 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
607 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
609 * char-ucs.h (MIN_CHAR_GREEK): Purged.
610 (MAX_CHAR_GREEK): Purged.
611 (MIN_CHAR_CYRILLIC): Purged.
612 (MAX_CHAR_CYRILLIC): Purged.
613 (MIN_CHAR_HEBREW): Commented out.
614 (MAX_CHAR_HEBREW): Likewise.
616 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
618 * mule-charset.c (Qto_ucs): New variable.
619 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
620 (Fdefine_char): Likewise.
621 (syms_of_mule_charset): Add new symbol `=>ucs'.
623 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
625 * mule-charset.c (Fdecode_char): Fixed.
627 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
629 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
630 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
633 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
635 * mule-charset.c (Vcharset_ucs_big5): New variable.
636 (Qucs_big5): Likewise.
637 (syms_of_mule_charset): Add new symbol `ucs-big5'.
638 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
640 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
642 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
644 * mule-charset.c (decode_builtin_char): Check Big5 code range
645 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
647 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
649 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
650 (Qchinese_gb12345): Likewise.
651 (Fdecode_builtin_char): Fixed.
652 (syms_of_mule_charset): Add `chinese-gb12345'.
653 (complex_vars_of_mule_charset): Add coded-charset
656 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
657 (LEADING_BYTE_CHINESE_GB12345): New macro.
659 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
661 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
662 and `latin-viscii-upper' for `latin-viscii'.
664 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
666 * mule-charset.c (Fdecode_builtin_char): Comment out
667 regularization code for ISO-IR GR representation.
669 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
671 * mule-charset.c (decode_builtin_char): New function; renamed from
672 `make_builtin_char'; return -1 instead of signal.
673 (Fdecode_builtin_char): Use `decode_builtin_char'.
675 * char-ucs.h (decode_builtin_char): New prototype; renamed from
677 (DECODE_CHAR): Use `decode_builtin_char' instead of
678 `make_builtin_char'; use mapping table of `chinese-big5' for
679 `chinese-big5-{1,2}'.
681 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
683 * text-coding.c (char_encode_big5): New function.
684 (char_finish_big5): Likewise.
685 (reset_encoding_stream): Use `char_encode_big5' and
686 `char_finish_big5' for CODESYS_BIG5.
687 (mule_encode): Don't use `encode_coding_big5'.
688 (encode_coding_big5): Deleted.
690 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
692 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
693 0x81- in XEmacs UTF-2000.
694 (detect_coding_big5): Likewise.
696 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
698 * mule-charset.c (Fdefine_char): Don't use a CCS property to
699 generate character-id if the CCS property does not have
700 corresponding predefined character.
701 (make_builtin_char): Return -1 if corresponding predefined
702 character is not found.
703 (Fdecode_char): Return nil if corresponding character is not
705 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
706 don't map to builtin ucs space.
708 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
710 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
711 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
713 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
715 * mule-charset.c (Vcharset_ideograph_gt): New variable.
716 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
717 (Qideograph_gt): Likewise.
718 (Qideograph_gt_pj_{1..11}): Likewise.
719 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
720 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
721 `ideograph-gt-pj-11'.
722 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
723 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
724 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
726 * char-ucs.h (LEADING_BYTE_GT): New macro.
727 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
728 (MIN_CHAR_GT): Likewise.
729 (MAX_CHAR_GT): Likewise.
731 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
733 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
734 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
736 * doprnt.c (unsigned_int_converters): Add `c'.
737 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
739 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
740 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
742 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
743 (MAX_CHAR_MOJIKYO_0): New macro.
744 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
746 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
748 * mule-charset.c (Fdefine_char): Delete cemented out code.
749 (encode_builtin_char_1): Modify for new allocation of builtin
752 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
754 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
756 * mule-charset.c (Vcharset_ucs_cns): New variable.
757 (Qucs_cns): New variable.
758 (syms_of_mule_charset): Add new symbol `ucs-cns'.
759 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
761 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
763 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
765 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
767 * search.c (search_buffer): Make `charset_base_code' as
768 character-id >> 6 to eliminate the corresponding last byte in
769 UTF-8 representation [I'm not sure it is right thing].
770 (boyer_moore): Likewise.
772 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
774 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
775 representation in MULE.
777 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
779 * text-coding.c (Fmake_coding_system): Use
780 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
781 `EXTERNAL_PROPERTY_LIST_LOOP'.
783 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
785 * text-coding.c (decode_output_utf8_partial_char): New function.
786 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
788 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
790 * text-coding.c (decode_coding_utf8): Output original byte
791 sequence if it is broken; change order of conditions.
793 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
796 * mb-multibyte.h (BYTE_ASCII_P):
797 Use bit ops for char-signedness safety.
798 (BYTE_C0_P): Use bit ops for char-signedness safety.
799 (BYTE_C1_P): Use bit ops for char-signedness safety.
801 * character.h: (XCHAR_OR_CHAR_INT):
802 Always use inline function.
803 Remove redundant type checking assert() - XINT will abort quite
806 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
808 * text-coding.c: (Fencode_shift_jis_char):
810 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
811 Replace 0 with '\0' when working with bytes.
812 Replace initial "(" with "\(" in docstrings.
814 (Fmake_coding_system):
815 When type is ccl and value is vector, register it with a proper
816 symbol. And checks whether the given ccl program is valid.
817 (mule_decode): When calling ccl_driver, if src indicates
818 NULL pointer, set an empty string instead.
819 (mule_encode): Likewise.
822 (detect_coding_sjis):
823 (decode_coding_sjis):
824 (detect_coding_big5):
825 (decode_coding_big5):
826 (detect_coding_ucs4):
827 (decode_coding_ucs4):
828 (detect_coding_utf8):
829 (decode_coding_utf8):
830 (detect_coding_iso2022):
831 (decode_coding_iso2022):
832 (decode_coding_no_conversion):
834 Make all detecting and decoding functions take an Extbyte * arg.
835 (text_encode_generic):
836 (encode_coding_big5):
837 (encode_coding_no_conversion):
839 Make all encoding functions take a Bufbyte * arg.
840 Use size_t instead of unsigned int for memory sizes.
841 Only cast to unsigned char whenever dereferencing Extbyte *.
843 (struct lrecord_description fcd_description_1): Use countof.
844 (complex_vars_of_file_coding):
845 Use countof instead of sizeof.
846 Use CHECK_NATNUM instead of CHECK_INT.
848 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
850 * mule-charset.c (Fget_char_attribute): Add new optional argument
852 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
853 (remove_char_ccs): Likewise.
855 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
857 * text-coding.c (char_encode_shift_jis): New implementation in
859 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
862 * mule-charset.c (Vcharset_chinese_big5): New variable in
864 (Qchinese_big5): New variable in UTF-2000.
865 (BIG5_SAME_ROW): New macro in UTF-2000.
866 (make_builtin_char): Use builtin characters of
867 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
868 characters of `Vcharset_chinese_big5'.
869 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
870 (complex_vars_of_mule_charset): Add new coded-charset
871 `chinese-big5' in UTF-2000.
873 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
874 (Vcharset_chinese_big5): New external variable declaration.
875 (Vcharset_japanese_jisx0208_1990): Likewise.
877 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
879 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
881 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
883 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
885 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
886 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
887 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
890 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
892 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
894 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
896 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
899 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
901 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
902 for `CHARSET_BY_ATTRIBUTES'.
903 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
904 `CHARSET_BY_ATTRIBUTES'.
906 * text-coding.c (struct decoding_stream): Rename member `CH' to
908 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
909 (decode_coding_sjis): Likewise.
910 (decode_coding_big5): Likewise.
911 (decode_coding_ucs4): Likewise.
912 (decode_coding_utf8): Likewise.
913 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
914 `CHARSET_BY_ATTRIBUTES'.
915 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
916 `str->counter'; decode 3, 4 bytes sets.
917 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
919 (decode_coding_no_conversion): Use `str->cpos' instead of
922 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
923 (Qmojikyo_2022_1): New variable.
924 (make_charset): Don't use `CHARSET_TYPE_*'.
925 (range_charset_code_point): Support coded-charset
927 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
928 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
929 `CHARSET_BY_ATTRIBUTES'.
930 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
931 `CHARSET_BY_ATTRIBUTES'.
932 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
933 (complex_vars_of_mule_charset): Add new coded-charset
936 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
937 interface; changed to inline function.
939 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
940 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
941 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
942 (CHARSET_TYPE_94): Deleted.
943 (CHARSET_TYPE_94X94): Deleted.
944 (CHARSET_TYPE_96): Deleted.
945 (CHARSET_TYPE_96X96): Deleted.
946 (CHARSET_TYPE_128): Deleted.
947 (CHARSET_TYPE_128X128): Deleted.
948 (CHARSET_TYPE_256): Deleted.
949 (CHARSET_TYPE_256X256): Deleted.
950 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
952 (DECODE_MOJIKYO_2022): New inline function.
953 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
954 `Vcharset_mojikyo_2022_1'.
956 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
958 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
960 (put_byte_table): Likewise.
961 (char_id_table_equal): Use `get_byte_table' [new implementation].
963 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
965 * mule-charset.c: Include <limits.h> in UTF-2000.
966 (BT_UINT8_MIN): New macro in UTF-2000.
967 (BT_UINT8_MAX): New macro in UTF-2000.
968 (BT_UINT8_t): New macro in UTF-2000.
969 (BT_UINT8_nil): New macro in UTF-2000.
970 (BT_UINT8_unbound): New macro in UTF-2000.
971 (INT_UINT8_P): New inline function in UTF-2000.
972 (UINT8_VALUE_P): New inline function in UTF-2000.
973 (UINT8_ENCODE): New inline function in UTF-2000.
974 (UINT8_DECODE): New inline function in UTF-2000.
975 (mark_uint8_byte_table): New function in UTF-2000.
976 (print_uint8_byte_table): New function in UTF-2000.
977 (uint8_byte_table_equal): New function in UTF-2000.
978 (uint8_byte_table_hash): New function in UTF-2000.
979 (make_uint8_byte_table): New function in UTF-2000.
980 (uint8_byte_table_same_value_p): New function in UTF-2000.
981 (BT_UINT16_MIN): New macro in UTF-2000.
982 (BT_UINT16_MAX): New macro in UTF-2000.
983 (BT_UINT16_t): New macro in UTF-2000.
984 (BT_UINT16_nil): New macro in UTF-2000.
985 (BT_UINT16_unbound): New macro in UTF-2000.
986 (INT_UINT16_P): New inline function in UTF-2000.
987 (UINT16_VALUE_P): New inline function in UTF-2000.
988 (UINT16_ENCODE): New inline function in UTF-2000.
989 (UINT16_DECODE): New inline function in UTF-2000.
990 (UINT8_TO_UINT16): New inline function in UTF-2000.
991 (mark_uint16_byte_table): New function in UTF-2000.
992 (print_uint16_byte_table): New function in UTF-2000.
993 (uint16_byte_table_equal): New function in UTF-2000.
994 (uint16_byte_table_hash): New function in UTF-2000.
995 (make_uint16_byte_table): New function in UTF-2000.
996 (uint16_byte_table_same_value_p): New function in UTF-2000.
997 (print_byte_table): New function in UTF-2000.
998 (byte-table): Use `print_byte_table' as printer.
999 (make_byte_table): Delete second argument `older'.
1000 (byte_table_same_value_p): New function in UTF-2000.
1001 (copy_byte_table): Deleted.
1002 (get_byte_table): New function in UTF-2000.
1003 (put_byte_table): New function in UTF-2000.
1004 (print_char_id_table): New function in UTF-2000.
1005 (char-id-table): Use `print_char_id_table' as printer.
1006 (make_char_id_table): Delete second argument `older'.
1007 (get_char_id_table): Use `get_byte_table [new implementation].
1008 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1010 (Ffind_char_attribute_table): New function in UTF-2000.
1011 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1012 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1013 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1014 (syms_of_mule_charset): Add new function
1015 `find-char-attribute-table' in UTF-2000.
1017 * lrecord.h (enum lrecord_type): Add
1018 `lrecord_type_uint16_byte_table' and
1019 `lrecord_type_uint8_byte_table'.
1021 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1022 (Lisp_Uint8_Byte_Table): New type.
1023 (XUINT8_BYTE_TABLE): New macro.
1024 (XSETUINT8_BYTE_TABLE): New macro.
1025 (UINT8_BYTE_TABLE_P): New macro.
1026 (GC_UINT8_BYTE_TABLE_P): New macro.
1027 (struct Lisp_Uint16_Byte_Table): New structure.
1028 (Lisp_Uint16_Byte_Table): New type.
1029 (XUINT16_BYTE_TABLE): New macro.
1030 (XSETUINT16_BYTE_TABLE): New macro.
1031 (UINT16_BYTE_TABLE_P): New macro.
1032 (GC_UINT16_BYTE_TABLE_P): New macro.
1034 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1036 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1037 (Vcharacter_ideographic_strokes_table): Deleted.
1038 (Vcharacter_total_strokes_table): Deleted.
1039 (Vcharacter_morohashi_daikanwa_table): Deleted.
1040 (Vcharacter_decomposition_table): Deleted.
1041 (Qname): Deleted because it is duplicated.
1042 (Qideographic_radical): Deleted.
1043 (Qideographic_strokes): Deleted.
1044 (Qtotal_strokes): Deleted.
1045 (Qmorohashi_daikanwa): Deleted.
1046 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1047 `ideographic-radical', `ideographic-strokes', `total-strokes',
1048 `morohashi-daikanwa' and `->decomposition'.
1049 (Fget_char_attribute): Likewise.
1050 (Fput_char_attribute): Likewise; use `make-vector' instead of
1051 `make_older_vector' for `->decomposition' value.
1052 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1053 `ideograph-daikanwa'.
1054 (syms_of_mule_charset): Delete builtin symbols `name',
1055 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1056 `morohashi-daikanwa'.
1057 (vars_of_mule_charset): Don't setup
1058 `Vcharacter_ideographic_radical_table',
1059 `Vcharacter_ideographic_strokes_table',
1060 `Vcharacter_total_strokes_table',
1061 `Vcharacter_morohashi_daikanwa_table' and
1062 `Vcharacter_decomposition_table'.
1064 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1066 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1067 `make_older_vector', `make_vector_newer_1' and
1068 `make_vector_newer'.
1070 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1071 `make_older_vector' and `make_vector_newer'.
1073 * config.h.in (HAVE_GGC): New macro.
1075 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1077 * mule-charset.c (struct char_attribute_list_closure): New
1078 structure in UTF-2000.
1079 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1080 (Fchar_attribute_list): Likewise.
1081 (Fset_charset_mapping_table): Use `make_vector_newer'.
1082 (Fdecode_builtin_char): New function in UTF-2000.
1083 (syms_of_mule_charset): Add new function `char-attribute-list' and
1084 `decode-builtin-char' in UTF-2000.
1086 * lisp.h (make_vector_newer): New prototype.
1088 * alloc.c (make_vector_newer_1): New function.
1089 (make_vector_newer): New function.
1091 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1093 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1096 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1099 (Vcharacter_attribute_table): Deleted.
1100 (Vcharacter_name_table): Deleted.
1101 (put_char_attribute): Deleted.
1102 (remove_char_attribute): Deleted.
1103 (struct char_attribute_alist_closure): New structure.
1104 (add_char_attribute_alist_mapper): New function.
1105 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1106 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1107 (Fget_char_attribute): Likewise.
1108 (Fput_char_attribute): Likewise.
1109 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1110 of `remove_char_attribute'.
1111 (Fdefine_char): Return character.
1112 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1113 and `Vcharacter_name_table'.
1114 (complex_vars_of_mule_charset): Likewise
1115 `Vchar_attribute_hash_table'.
1117 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1119 * character.h (CHARC_CHARSET): New macro.
1120 (CHARC_CHARSET_ID): New macro.
1121 (CHARC_CODE_POINT): New macro.
1122 (CHARC_COLUMNS): New macro.
1123 (CHARC_TO_CHAR): New inline function.
1124 (CHARC_EQ): New inline function.
1125 (CHARC_ASCII_EQ): New inline function.
1126 (CHARC_IS_SPACE): New inline function.
1127 (ASCII_TO_CHARC): New inline function.
1129 * char-ucs.h (encode_char_2): Deleted.
1130 (ENCODE_CHAR): Use `encode_char_1' again.
1131 (breakup_char_1): Likewise.
1132 (CHAR_TO_CHARC): New inline function.
1134 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1136 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1139 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1140 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1141 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1142 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1144 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1146 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1148 (x_output_display_block): Use `CHARC_CHARSET' and
1151 * redisplay-tty.c (tty_output_display_block): Use
1153 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1155 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1157 * insdel.c (find_charsets_in_charc_string): Use
1159 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1160 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1161 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1162 (convert_charc_string_into_malloced_string): Likewise.
1164 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1166 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1167 instead of <Emchar_dynarr *> for buf; use
1168 `convert_bufbyte_string_into_charc_dynarr' instead of
1169 `convert_bufbyte_string_into_emchar_dynarr'; use
1170 `find_charsets_in_charc_string' instead of
1171 `find_charsets_in_emchar_string'.
1174 - Include "character.h".
1175 (struct rune): New member `cglyph'; delete member `chr'.
1177 * redisplay.c (redisplay_text_width_charc_string): New function;
1178 delete `redisplay_text_width_emchar_string'.
1179 (rtw_charc_dynarr): New variable; renamed from
1180 `rtw_emchar_dynarr'.
1181 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1182 `rtw_emchar_dynarr'; use
1183 `convert_bufbyte_string_into_charc_dynarr' instead of
1184 `convert_bufbyte_string_into_emchar_dynarr'; use
1185 `redisplay_text_width_charc_string' instead of
1186 `redisplay_text_width_emchar_string'.
1187 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1188 instead of `rtw_emchar_dynarr'; use
1189 `convert_bufbyte_string_into_charc_dynarr' instead of
1190 `convert_bufbyte_string_into_emchar_dynarr'.
1191 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1192 `redisplay_text_width_charc_string' instead of
1193 `redisplay_text_width_emchar_string'.
1194 (create_text_block): Modify for <struct rune> change.
1195 (generate_formatted_string_db): Likewise.
1196 (create_string_text_block): Likewise.
1197 (pixel_to_glyph_translation): Likewise.
1199 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1200 instead of <const Emchar *>.
1201 (x_text_width): Likewise.
1202 (x_output_display_block): Use <Charc_dynarr *> instead
1203 <Emchar_dynarr *>; modify for <structure rune> change.
1204 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1207 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1208 <const Emchar *>; use `charc_string_displayed_columns' instead of
1209 `emchar_string_displayed_columns'.
1210 (tty_output_display_block): Use <Charc_dynarr *> instead of
1211 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1212 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1213 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1214 `tty_output_emchar_dynarr_dynarr'.
1215 (tty_output_charc_dynarr): New function; delete
1216 `tty_output_charc_dynarr'.
1218 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1219 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1220 <Emchar_dynarr *> for buf; use
1221 `convert_bufbyte_string_into_charc_dynarr' instead of
1222 `convert_bufbyte_string_into_emchar_dynarr'.
1224 * frame.c (title_string_charc_dynarr): New variable; renamed from
1225 `title_string_emchar_dynarr'.
1226 (generate_title_string): Use `title_string_charc_dynarr' instead
1227 of `title_string_emchar_dynarr'; use
1228 `convert_charc_string_into_malloced_string' instead of
1229 `convert_emchar_string_into_malloced_string'.
1230 (init_frame): Use `title_string_charc_dynarr' instead of
1231 `title_string_emchar_dynarr'.
1234 - Include "character.h".
1235 (struct console_methods): Use <const Charc *> instead of <const
1236 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1237 <Emchar_dynarr *> in output_string_method.
1239 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1242 * console-stream.c (stream_text_width): Use <const Charc *>
1243 instead of <const Emchar *>.
1245 * character.h (Charc_dynarr): New type.
1247 * char-ucs.h (structure Charc): New structure; define new type
1250 * char-lb.h (DECODE_CHAR): New inline function.
1251 (encode_char_1): New inline function.
1252 (ENCODE_CHAR): New macro.
1253 (structure Charc): New structure; define new type `Charc'.
1255 * char-1byte.h (Vcharset_control_1): New macro.
1256 (Vcharset_latin_iso8859_1): New macro.
1257 (DECODE_CHAR): New inline function.
1258 (encode_char_1): New inline function.
1259 (ENCODE_CHAR): New macro.
1260 (structure Charc): New structure; define new type `Charc'.
1262 * insdel.c (find_charsets_in_charc_string): New function; delete
1263 `find_charsets_in_emchar_string'.
1264 (charc_string_displayed_columns): New function; delete
1265 `emchar_string_displayed_columns'.
1266 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1267 `convert_bufbyte_string_into_emchar_dynarr'.
1268 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1269 `convert_charc_string_into_bufbyte_dynarr'.
1270 (convert_charc_string_into_malloced_string): New function; delete
1271 `convert_charc_string_into_malloced_string'.
1273 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1274 `find_charsets_in_emchar_string'.
1275 (charc_string_displayed_columns): New prototype; delete
1276 `emchar_string_displayed_columns'.
1277 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1278 `convert_charc_string_into_bufbyte_dynarr'.
1279 (convert_charc_string_into_malloced_string): New prototype; delete
1280 `convert_charc_string_into_malloced_string'.
1282 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1284 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1286 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1288 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1290 * char-ucs.h: Use <short> for <Charset_ID>.
1292 * mule-charset.h, char-1byte.h: Use <unsigned char> for
1295 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1300 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1302 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1304 (Qmorohashi_daikanwa): New variable.
1305 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1306 for `morohashi-daikanwa' attribute.
1307 (Fget_char_attribute): Likewise.
1308 (Fput_char_attribute): Likewise.
1309 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1310 has the same value of `ideograph-daikanwa'.
1311 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1312 (vars_of_mule_charset): Setup
1313 `Vcharacter_morohashi_daikanwa_table'.
1315 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1317 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1319 (add_charset_to_list_mapper): Add `key' instead of
1320 `XCHARSET_NAME (value)' to return aliases.
1322 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1324 * mule-charset.c (Vcharacter_ideographic_radical_table): New
1326 (Vcharacter_ideographic_strokes_table): New variable.
1327 (Qideographic_radical): New variable.
1328 (Qideographic_strokes): New variable.
1329 (Fchar_attribute_alist): Use
1330 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1331 attribute; use `Vcharacter_ideographic_strokes_table' for
1332 `ideographic-strokes' attribute.
1333 (Fget_char_attribute): Likewise.
1334 (Fput_char_attribute): Likewise.
1335 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1336 `ideographic-strokes'.
1337 (vars_of_mule_charset): Setup
1338 `Vcharacter_ideographic_radical_table' and
1339 `Vcharacter_ideographic_strokes_table'.
1341 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1343 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1344 (Qtotal_strokes): New variable.
1345 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1346 `total-strokes' attribute.
1347 (Fget_char_attribute): Likewise.
1348 (Fput_char_attribute): Likewise.
1349 (syms_of_mule_charset): Add new symbol `total-strokes'.
1350 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1352 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1354 * mule-charset.c (Vcharacter_decomposition_table): New variable.
1355 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1357 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1358 `->decomposition' attribute.
1359 (Fput_char_attribute): Likewise.
1360 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1362 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364 * mule-charset.c (decoding_table_check_elements): New function.
1365 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1367 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369 * mule-charset.c (Fset_charset_mapping_table): Use
1370 `put_char_ccs_code_point'.
1372 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374 * mule-charset.c (decoding_table_put_char): New inline function.
1375 (put_char_ccs_code_point): Use `decoding_table_put_char'.
1377 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1380 (XCHARSET_BYTE_SIZE): New macro.
1381 (decoding_table_remove_char): New inline function.
1382 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1383 `decoding_table_remove_char'.
1384 (remove_char_ccs): Use `decoding_table_remove_char'.
1385 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1387 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1389 * mule-charset.c (Vcharacter_name_table): New variable.
1390 (Qname): New variable.
1391 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1393 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1394 `Vcharacter_name_table' for `name' attribute.
1395 (Fremove_char_attribute): Use function `remove_char_ccs'.
1396 (put_char_ccs_code_point): New function.
1397 (remove_char_ccs): New function.
1398 (syms_of_mule_charset): Add new symbol `name'.
1399 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1401 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403 * mule-charset.c (make_byte_table): Add new argument `older'.
1404 (make_char_id_table): Likewise.
1405 (copy_char_id_table): Comment out because it is not used.
1406 (put_char_id_table): Modify for `make_byte_table'.
1407 (Fput_char_attribute): Make encoding_table as older object;
1408 inherit older bit of `Vcharacter_composition_table'.
1409 (mark_charset): Don't mark `cs->encoding_table'.
1410 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1411 normal object; make `Vcharacter_composition_table' as an older
1412 object; delete staticpro for `Vcharacter_composition_table'; make
1413 `Vcharacter_variant_table' as a normal object.
1415 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1416 (mark_object): Don't check older object in UTF-2000.
1418 * lrecord.h (struct lrecord_header): Add new member `older' in
1420 (set_lheader_implementation): Setup `SLI_header->older' in
1422 (set_lheader_older_implementation): New macro in UTF-2000.
1423 (OLDER_RECORD_P): New macro in UTF-2000.
1424 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1425 (alloc_older_lcrecord): New prototype in UTF-2000.
1426 (alloc_older_lcrecord_type): New macro in UTF-2000.
1428 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1430 * mule-charset.c (byte_table_description): Use
1431 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1432 (char_id_table_description): Delete bogus `, 1'.
1433 (Fget_char_attribute): Refer encoding_table of each coded-charset
1434 to get value of coded-charset attribute of a character.
1435 (Fput_char_attribute): Use `make_older_vector' instead of
1436 `make_vector'; use encoding_table of each coded-charset to store
1437 value of coded-charset attribute of a character.
1438 (Fremove_char_attribute): Use encoding_table of each coded-charset
1439 to store value of coded-charset attribute of a character.
1440 (mark_charset): Mark `cs->encoding_table'; don't mark
1441 `cs->decoding_table'.
1442 (charset_description): Add description of new member
1444 (make_charset): Initialize `encoding_table'.
1446 * char-ucs.h (struct Lisp_Charset): Add new member
1448 (CHARSET_ENCODING_TABLE): New macro.
1449 (XCHARSET_ENCODING_TABLE): New macro.
1450 (charset_code_point): New implementation.
1451 (encode_char_1): Likewise.
1453 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1454 (disksave_object_finalization_1): Call finalizers of
1455 `all_older_lcrecords' in UTF-2000.
1456 (make_older_vector): New function in UTF-2000.
1457 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1460 * lisp.h (make_older_vector): New prototype in UTF-2000.
1462 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1464 * lrecord.h (enum lrecord_type): Rename
1465 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1467 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1468 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1469 `get_char_code_table'.
1471 * mule-charset.c (mark_char_id_table): Renamed from
1472 `mark_char_code_table'.
1473 (char_id_table_equal): Renamed from `char_code_table_equal'.
1474 (char_id_table_hash): Renamed from `char_code_table_hash'.
1475 (make_char_id_table): Renamed from `make_char_code_table'.
1476 (copy_char_id_table): Renamed from `copy_char_code_table'.
1477 (get_char_id_table): Renamed from `get_char_code_table'.
1478 (put_char_id_table): Renamed from `put_char_code_table'.
1479 (to_char_id): Renamed from `to_char_code'.
1481 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1482 `Lisp_Char_Code_Table'.
1483 (char_id_table): Renamed from `char_code_table'.
1484 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1485 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1486 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1487 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1488 (get_char_id_table): Renamed from `get_char_code_table'.
1490 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1492 * lrecord.h (enum lrecord_type): Rename
1493 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1495 * mule-charset.c (mark_byte_table): Renamed from
1496 `mark_char_byte_table'.
1497 (byte_table_equal): Renamed from `char_byte_table_equal'.
1498 (byte_table_hash): Renamed from `byte_table_hash'.
1499 (make_byte_table): Renamed from `make_byte_table'.
1500 (copy_byte_table): Renamed from `copy_char_byte_table'.
1502 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1503 `Lisp_Char_Byte_Table'.
1504 (byte_table): Renamed from `char_byte_table'.
1505 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1506 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1507 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1508 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1510 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1512 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1513 (dfc_convert_to_internal_format): Likewise.
1515 * text-coding.c (Fcoding_system_canonical_name_p): New function.
1516 * text-coding.c (Fcoding_system_alias_p): New function.
1517 * text-coding.c (Fcoding_system_aliasee): New function.
1518 * text-coding.c (append_suffix_to_symbol): New function.
1519 * text-coding.c (dangling_coding_system_alias_p): New function.
1520 * text-coding.c (Ffind_coding_system):
1521 * text-coding.c (Fcopy_coding_system):
1522 * text-coding.c (encode_coding_no_conversion):
1523 * text-coding.c (syms_of_file_coding):
1524 * text-coding.c (vars_of_file_coding):
1525 Rewrite coding system alias code.
1526 Allow nested aliases, like symbolic links.
1527 Allow redefinition of coding system aliases.
1528 Prevent existence of dangling coding system aliases.
1529 Eliminate convert_to_external_format.
1530 Eliminate convert_to_internal_format.
1532 * text-coding.c: Change enum eol_type to eol_type_t.
1534 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1536 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1537 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1539 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1540 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1542 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1545 `ideograph-daikanwa'.
1547 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1548 (Vcharset_ucs_bmp): Likewise.
1549 (Vcharset_mojikyo): Add new extern variable definition.
1550 (Vcharset_latin_iso8859_2): Deleted because it is not used.
1551 (Vcharset_latin_iso8859_3): Likewise.
1552 (Vcharset_latin_iso8859_4): Likewise.
1553 (Vcharset_latin_iso8859_9): Likewise.
1554 (Vcharset_latin_viscii_lower): Likewise.
1555 (Vcharset_latin_viscii_upper): Likewise.
1556 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1557 `mojikyo' code-point is used to decode.
1558 (encode_char_2): New function [to convert `mojikyo' code-point to
1559 Mojikyo font encoding].
1560 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1561 (breakup_char_1): Likewise.
1562 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1564 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1566 * text-coding.c (Fmake_coding_system): Add document about
1567 `disable-composition' property.
1569 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571 * text-coding.c (Qdisable_composition): New variable; delete
1573 (Fmake_coding_system): Add new property `disable-composite';
1574 delete property `composite'.
1575 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1576 instead of `!CODING_SYSTEM_COMPOSITE'.
1577 (syms_of_file_coding): Add new symbol `disable-composition';
1578 delete symbol `composite'.
1580 * file-coding.h (struct Lisp_Coding_System): Add
1581 `disable_composition'; delete `enable_composition'.
1582 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1583 `CODING_SYSTEM_COMPOSITE'.
1584 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1585 `XCODING_SYSTEM_COMPOSITE'.
1587 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1592 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1594 * text-coding.c (Qcomposite): New variable.
1595 (Fmake_coding_system): Add new property `composite'.
1596 (struct decoding_stream): Add `combined_char_count',
1597 `combined_chars' and `combining_table' in UTF-2000.
1598 (COMPOSE_FLUSH_CHARS): New macro.
1599 (COMPOSE_ADD_CHAR): New macro.
1600 (reset_decoding_stream): Reset `str->combined_char_count' and
1601 `str->combining_table' in UTF-2000.
1602 (decode_coding_iso2022): Modify for character-decomposition.
1603 (syms_of_file_coding): Add new symbol `composite'.
1605 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1607 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1608 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1609 of `Vcharacter_composition_table' if `->decomposition' property
1611 (Qlatin_tcvn5712): New variable.
1612 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1613 (complex_vars_of_mule_charset): Add new coded-charset
1616 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1618 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1620 * file-coding.h (struct Lisp_Coding_System): Add
1621 `enable_composition'.
1622 (CODING_SYSTEM_COMPOSITE): New macro.
1623 (XCODING_SYSTEM_COMPOSITE): New macro.
1625 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
1627 * mule-canna.c (c2mu): Fix problem with UTF-2000.
1629 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
1631 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1632 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1634 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
1636 * mule-charset.c (Vcharset_mojikyo): New variable.
1637 (Fdefine_char): Don't use coded-charset which does not have
1638 non-builtin character range to allocate character-id.
1639 (Qmojikyo): New variable.
1640 (syms_of_mule_charset): Add new symbol `mojikyo'.
1641 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1643 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1644 (LEADING_BYTE_MOJIKYO): New macro.
1645 (MIN_CHAR_MOJIKYO): New macro.
1646 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1647 (MAX_CHAR_MOJIKYO): New macro.
1649 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
1651 * mule-charset.c (remove_char_attribute): Fixed.
1653 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
1655 * mule-charset.c (remove_char_attribute): New function.
1656 (Fremove_char_attribute): New function.
1657 (encode_builtin_char_1): Comment out builtin-support for
1658 greek-iso8859-7 and cyrillic-iso8859-5.
1659 (Fdecode_char): Check `code' is an integer.
1660 (syms_of_mule_charset): Add `remove-char-attribute'.
1661 (MIN_CHAR_GREEK): Deleted.
1662 (MAX_CHAR_GREEK): Likewise.
1663 (MIN_CHAR_CYRILLIC): Likewise.
1664 (MAX_CHAR_CYRILLIC): Likewise.
1665 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1666 MAX_CHAR_GREEK for `greek-iso8859-7'.
1668 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1669 (MAX_CHAR_GREEK): Likewise.
1670 (MIN_CHAR_CYRILLIC): Likewise.
1671 (MAX_CHAR_CYRILLIC): Likewise.
1673 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
1675 * mule-charset.c (Fdefine_char): Fix problem when new code-point
1676 format is used without `ucs' property.
1677 (Fdecode_char): Fix problem with GR representation.
1678 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1679 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1681 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1683 * mule-charset.c (make_builtin_char): New function.
1684 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1685 (Fset_charset_mapping_table): Modify for new representation of
1687 (Fdecode_char): New function.
1688 (syms_of_mule_charset): Add new builtin function `decode-char' in
1691 * char-ucs.h (make_builtin_char): New prototype.
1692 (DECODE_CHAR): New inline function.
1693 (MAKE_CHAR): Use `DECODE_CHAR'.
1695 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
1697 * text-coding.c (parse_charset_conversion_specs): Use
1698 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1700 (iso2022_designate): Likewise.
1702 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1703 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1705 * mule-charset.c (Vcharset_ucs): New variable.
1706 (print_charset): Change design; use `CHARSET_CHARS' and
1707 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1708 (make_charset): Change signature to specify `chars' and
1709 `dimension' instead of `type'.
1710 (range_charset_code_point): Modify for 256^n-set.
1711 (encode_builtin_char_1): Encode as `ucs' in default.
1712 (Fmake_charset): Modify for `make_charset'.
1713 (Fmake_reverse_direction_charset): Likewise.
1714 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1716 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1719 * char-ucs.h (Vcharset_ucs): New variable.
1720 (LEADING_BYTE_UCS): New macro.
1721 (struct Lisp_Charset): Delete `type'; change type of `dimension'
1722 and `chars' to `unsigned short' from `unsigned int'.
1723 (CHARSET_TYPE): Deleted.
1724 (XCHARSET_TYPE): Deleted.
1726 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
1728 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1730 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1731 (ENCODE_CHAR): New macro.
1733 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1735 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1736 to 0.14 (Kawachi-Katakami).
1738 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1740 * text-coding.c (char_encode_shift_jis): Modify for
1741 `charset_code_point'.
1742 (char_encode_iso2022): Likewise.
1744 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1745 (integer) instead of list of <Lisp_Object>s (integers) as the
1746 format of code-point of a coded-charset.
1747 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1748 (encode_builtin_char_1): New function; delete
1749 `split_builtin_char'.
1750 (charset_code_point): Return <int> instead of <Lisp_Object>.
1751 (Fsplit_char): Don't use `SPLIT_CHAR'.
1753 * char-ucs.h (encode_builtin_char_1): New prototype; delete
1754 prototype for `split_builtin_char'.
1755 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1756 (charset_code_point): Likewise.
1757 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1758 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1760 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
1762 * mule-charset.c (complex_vars_of_mule_charset): Don't define
1763 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1765 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1767 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1769 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1770 (MAX_CHAR_OBS_94x94): Deleted.
1772 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1774 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1776 * char-ucs.h (MAX_CHAR_BMP): New macro.
1778 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1780 * text-coding.c: Sync with r21-2-24.
1782 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
1784 * file-coding.c: Modify for UTF-2000.
1786 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1788 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1791 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
1793 * mule-charset.c (split_builtin_char): Delete builtin support for
1794 `katakana-jisx0201'.
1795 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1796 BMP area in builtin representation.
1798 * char-ucs.h (MAKE_CHAR): Delete builtin support for
1799 `Vcharset_katakana_jisx0201'.
1801 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
1803 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1804 (Qisolated): New variable.
1805 (Qinitial): New variable.
1806 (Qmedial): New variable.
1807 (Qfinal): New variable.
1808 (Qvertical): New variable.
1809 (Qsmall): New variable.
1810 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1811 `Qvertical' and `Qsmall'.
1812 (Qmojikyo_pj_[1 .. 21]): New variable.
1813 (syms_of_mule_charset): Add new symbols `isolated', `initial',
1814 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1815 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1818 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
1820 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1821 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1822 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1824 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1826 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1827 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1829 (Qjapanese_jisx0208_1990): New variable.
1830 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1831 (complex_vars_of_mule_charset): Add new coded-charset
1832 `japanese-jisx0208-1990'.
1834 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1835 (MIN_CHAR_JIS_X0208_1990): New macro.
1836 (MAX_CHAR_JIS_X0208_1990): New macro.
1838 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
1840 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1841 coded-charset is not found.
1843 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
1845 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1846 (Fdefine_char): Use `Fmake_char'.
1848 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1850 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1851 (Vcharset_hiragana_jisx0208): Deleted.
1852 (Vcharset_katakana_jisx0208): Deleted.
1853 (Qideograph_daikanwa): New variable.
1854 (Qhiragana_jisx0208): Deleted.
1855 (Qkatakana_jisx0208): Deleted.
1856 (split_builtin_char): Split `ideograph-daikanwa'.
1857 (Fsplit_char): New implementation for UTF-2000.
1858 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1859 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1860 (complex_vars_of_mule_charset): Add new coded-charset
1861 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1862 `katakana-jisx0208'.
1864 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1865 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1866 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1867 (MIN_CHAR_DAIKANWA): New macro.
1868 (MAX_CHAR_DAIKANWA): New macro.
1870 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1872 * data.c (Fstring_to_number): Don't recognize floating point if
1875 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1877 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1879 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1881 * mule-charset.c (Qsquare): New variable.
1882 (to_char_code): Add `Qsquare'.
1883 (syms_of_mule_charset): Add new symbol `square'.
1885 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1887 * mule-charset.c (Qcircle): New variable.
1888 (to_char_code): Add `Qcircle'.
1889 (syms_of_mule_charset): Add new symbol `circle'.
1891 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1893 * mule-charset.c (Qfont): New variable.
1894 (to_char_code): Add `Qfont'.
1895 (syms_of_mule_charset): Add new symbol `font'.
1897 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1899 * mule-charset.c (Qsub): New variable.
1900 (to_char_code): Add `Qsub'.
1901 (syms_of_mule_charset): Add new symbol `sub'.
1903 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1905 * mule-charset.c (Fput_char_attribute): Convert each element of
1906 VALUE to GL position if ATTRIBUTE is a GR-set,
1908 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1910 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1911 coded-charset is a GR-set.
1913 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1915 * mule-charset.c (Fput_char_attribute): Check each element of
1916 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1918 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1920 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1922 (Qethiopic_ucs): New variable in UTF-2000.
1923 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1924 (complex_vars_of_mule_charset): Add new coded-charset
1925 `ethiopic-ucs' in UTF-2000.
1927 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1928 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1930 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1932 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1934 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
1936 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1939 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1941 * mule-charset.c (Vcharacter_variant_table): New variable.
1942 (Q_ucs): New variable.
1943 (Fchar_variants): New function.
1944 (Fput_char_attribute): Register `->ucs' value to
1945 `Vcharacter_variant_table'.
1946 (syms_of_mule_charset): Add new function `char-variants' and new
1948 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1950 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1952 * mule-charset.c (get_char_code_table): Allow negative character
1954 (put_char_code_table): Likewise.
1955 (Vcharacter_composition_table): New variable.
1956 (Q_decomposition): New variable.
1957 (Qwide): New variable.
1958 (Qnarrow): New variable.
1959 (Qcompat): New variable.
1960 (QnoBreak): New variable.
1961 (Qsuper): New variable.
1962 (Qfraction): New variable.
1963 (to_char_code): New function.
1964 (Fget_composite_char): New function.
1965 (Fput_char_attribute): Register `->decomposition' value to
1966 `Vcharacter_composition_table'.
1967 (syms_of_mule_charset): Add new function `get-composite-char', new
1968 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1969 `super' and `fraction'.
1970 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1972 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1974 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1975 character; copy the return value.
1977 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1979 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1981 * mule-charset.c (range_charset_code_point): Must use make_int.
1982 (split_builtin_char): New function.
1984 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1986 * mule-charset.c (char_byte_table): Change name from
1987 "char-code-table" to "char-byte-table".
1988 (mark_char_code_table): New function.
1989 (char_code_table_equal): New function.
1990 (char_code_table_hash): New function.
1991 (char_code_table_description): New constant.
1992 (char_code_table): New type.
1993 (make_char_code_table): New function.
1994 (copy_char_code_table): New function.
1995 (get_char_code_table): Modify for `char_code_table' type.
1996 (put_char_code_table): Likewise.
1997 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2000 * char-ucs.h (char_code_table): New type.
2001 (XCHAR_CODE_TABLE): New macro.
2002 (XSETCHAR_CODE_TABLE): New macro.
2003 (CHAR_CODE_TABLE_P): New macro.
2004 (GC_CHAR_CODE_TABLE_P): New macro.
2005 (struct Lisp_Char_Code_Table): New structure.
2007 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2009 * mule-charset.c (Fmake_charset): Setup byte_offset for
2012 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2014 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2017 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2019 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2022 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2024 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2025 charset, it is regarded as a charset.
2026 (put_char_attribute): New function in UTF-2000.
2027 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2028 charset, mapping-table of the charset is modified.
2029 (Fdefine_char): New function in UTF-2000.
2030 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2031 `Fput_char_attribute'.
2032 (syms_of_mule_charset): Add new function `define-char' and new
2033 symbol `ucs' in UTF-2000.
2034 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2036 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2038 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2039 non-UTF-2000 configuration.
2041 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2043 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2044 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2046 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2048 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2049 (Fset_charset_mapping_table): Likewise.
2051 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2052 (CHARSET_ENCODING_TABLE): Delete.
2053 (XCHARSET_ENCODING_TABLE): Delete.
2054 (charset_code_point): New interface.
2056 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2058 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2059 instead of `charset_get_byte1' and `charset_get_byte2'.
2061 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2062 (charset_get_byte2): Deleted.
2064 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2066 * char-ucs.h (SPLIT_CHAR): New inline function.
2067 (breakup_char_1): Use `SPLIT_CHAR'.
2069 * mule-charset.c (range_charset_code_point): New function.
2070 (charset_code_point): New function.
2072 * char-ucs.h (range_charset_code_point): New interface.
2073 (breakup_char_1): Use `range_charset_code_point'.
2075 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2077 * mule-charset.c (Fmake_charset): Delete unused local variable
2080 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2081 (breakup_char_1): Find a charset and code-point in
2082 `Vcharacter_attribute_table'.
2084 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2086 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2089 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2091 * mule-charset.c (Vcharacter_attribute_table): New variable.
2092 (Fchar_attribute_alist): New function.
2093 (Fget_char_attribute): New function.
2094 (Fput_char_attribute): New function.
2095 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2097 (syms_of_mule_charset): Add new function `char-attribute-alist',
2098 `get-char-attribute' and `put-char-attribute'.
2099 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2101 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2103 * mule-charset.c (Fmake_charset): Just use
2104 `get_unallocated_leading_byte'.
2106 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2107 sets; don't use final-byte based number for private sets.
2109 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2111 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2114 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2116 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2119 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2121 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2122 of `CHAR_LEADING_BYTE' in UTF-2000.
2124 * insdel.c (find_charsets_in_bufbyte_string): Use
2125 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2126 (find_charsets_in_emchar_string): Likewise.
2128 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2129 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2131 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2132 (CHAR_CHARSET_ID): New macro.
2134 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2136 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2137 charset-id - MIN_LEADING_BYTE.
2138 (put_char_table): Likewise.
2140 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2142 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2143 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2144 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2145 (CHARSET_ID_OFFSET): New macro.
2146 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2147 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2148 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2149 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2151 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2153 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2154 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2155 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2156 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2157 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2159 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2161 * mule-charset.c (next_allocated_leading_byte): New variable in
2163 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2164 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2165 (get_unallocated_leading_byte): Simply use
2166 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2167 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2170 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2171 (MAX_LEADING_BYTE_PRIVATE): New macro.
2172 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2173 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2175 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2177 * mule-charset.c (Fmake_charset): Allocate final-byte based
2178 charset-id for 94-set, 96-set and 94x94-set.
2180 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2182 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2184 (Fmake_charset): Likewise.
2185 (complex_vars_of_mule_charset): Modify the font registry of
2186 `ucs-bmp' not to match `Ethiopic-Unicode'.
2188 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2190 * mule-charset.c (complex_vars_of_mule_charset): Add font
2191 registory of `ucs-bmp'.
2193 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2195 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2196 coded-charsets in `default-coded-charset-priority-list' when
2197 breaking up a character.
2199 * mule-charset.c (Vcharset_latin_viscii): New variable.
2200 (Qlatin_viscii): New variable.
2201 (make_charset): Don't use `decoding_table'.
2202 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2204 (Fset_charset_mapping_table): New implementation.
2205 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2206 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2207 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2208 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2209 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2210 charset `latin_viscii'.
2212 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2213 (CHARSET_TYPE_94X94): Change to 1 from 2.
2214 (CHARSET_TYPE_96): Change to 2 from 1.
2215 (CHARSET_TYPE_128): New macro.
2216 (CHARSET_TYPE_128X128): Change to 5 from 4.
2217 (CHARSET_TYPE_256): New macro.
2218 (CHARSET_TYPE_256X256): Change to 7 from 5.
2219 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2221 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2223 * text-coding.c (char_encode_shift_jis): Refer
2224 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2225 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2227 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2228 (char_byte_table_equal): New function in UTF-2000.
2229 (char_byte_table_hash): New function in UTF-2000.
2230 (char_byte_table_description): New constant in UTF-2000.
2231 (char_byte_table): New type in UTF-2000.
2232 (make_char_byte_table): New function in UTF-2000.
2233 (copy_char_byte_table): New function in UTF-2000.
2234 (make_char_code_table): New macro in UTF-2000.
2235 (get_char_code_table): New function in UTF-2000.
2236 (put_char_code_table): New function in UTF-2000.
2237 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2238 (charset_description): Add setting in UTF-2000.
2239 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2240 `CHARSET_TO_BYTE1_TABLE(cs)'.
2241 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2242 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2243 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2244 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2245 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2246 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2247 `CHARSET_TO_BYTE2_TABLE(cs)'.
2249 * char-ucs.h (char_byte_table): New type.
2250 (XCHAR_BYTE_TABLE): New macro.
2251 (XSETCHAR_BYTE_TABLE): New macro.
2252 (CHAR_BYTE_TABLE_P): New macro.
2253 (GC_CHAR_BYTE_TABLE_P): New macro.
2254 (struct Lisp_Char_Byte_Table): New structure.
2255 (get_char_code_table): New interface.
2256 (Emchar_to_byte_table): Deleted.
2257 (get_byte_from_character_table): Deleted.
2258 (struct Lisp_Charset): Add `encoding_table'; delete
2259 `to_byte1_table' and `to_byte2_table'.
2260 (CHARSET_ENCODING_TABLE): New macro.
2261 (CHARSET_TO_BYTE1_TABLE): Deleted.
2262 (CHARSET_TO_BYTE2_TABLE): Deleted.
2263 (XCHARSET_ENCODING_TABLE): New macro.
2264 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2265 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2267 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2269 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2270 `vietnamese-viscii-*'.
2272 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2274 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2275 (Qvietnamese_viscii_upper): New variable.
2276 (Fdefine_charset_alias): New function.
2277 (syms_of_mule_charset): Add new function `define-charset-alias'.
2278 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2279 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2282 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2284 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2285 (MAX_CHAR_OBS_94x94): New macro.
2286 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2289 * mule-charset.c (put_byte_from_character_table): Change unit size
2291 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2293 (Fmake_reverse_direction_charset): Modify dummy argument of
2294 `make_charset' for non-UTF-2000 environment.
2296 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2298 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2300 * mule-charset.c (destroy_byte_from_character_table): New macro.
2301 (latin_jisx0201_to_ucs): Deleted.
2302 (latin_iso8859_2_to_ucs): Deleted.
2303 (latin_iso8859_3_to_ucs): Deleted.
2304 (latin_iso8859_4_to_ucs): Deleted.
2305 (latin_iso8859_9_to_ucs): Deleted.
2306 (latin_viscii_lower_to_ucs): Deleted.
2307 (latin_viscii_upper_to_ucs): Deleted.
2308 (mark_charset): Mark `cs->decoding_table'.
2309 (Fcharset_mapping_table): Fix DOC-string.
2310 (Fset_charset_mapping_table): New function.
2311 (syms_of_mule_charset): Add nwe function
2312 `set-charset-mapping-table'.
2313 (complex_vars_of_mule_charset): Don't setup and use
2316 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
2318 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2321 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
2323 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2324 (Vcharset_katakana_jisx0208): New variable.
2325 (Qhiragana_jisx0208): New variable.
2326 (Qkatakana_jisx0208): New variable.
2327 (make_charset): Add new argument `byte_offset'.
2328 (charset_get_byte1): Modify for new coded-charset definition; use
2329 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2330 `XCHARSET_BYTE_OFFSET'.
2331 (Fmake_charset): Modify for `make_charset'.
2332 (Fmake_reverse_direction_charset): Likewise.
2333 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2334 `katakana-jisx0208'.
2335 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2336 `.' in font registry of charset `katakana-jisx0201',
2337 `latin-jisx0201', `vietnamese-viscii-lower' and
2338 `vietnamese-viscii-upper'; modify DOC-string of charset
2339 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2340 registry of charset `japanese-jisx0208' not to use font for JIS
2341 X0208:1990; add new charset `hiragana-jisx0208' and
2342 `katakana-jisx0208'.
2344 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2345 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2346 (struct Lisp_Charset): Add `byte_offset'.
2347 (CHARSET_BYTE_OFFSET): New macro.
2348 (XCHARSET_UCS_MIN): New macro.
2349 (XCHARSET_UCS_MAX): New macro.
2350 (XCHARSET_CODE_OFFSET): New macro.
2351 (XCHARSET_BYTE_OFFSET): New macro.
2352 (MIN_CHAR_HIRAGANA): New macro.
2353 (MAX_CHAR_HIRAGANA): New macro.
2354 (MIN_CHAR_KATAKANA): New macro.
2355 (MAX_CHAR_KATAKANA): New macro.
2356 (MAKE_CHAR): Modify for new coded-charset definition; use
2357 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2358 `XCHARSET_BYTE_OFFSET'.
2360 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2362 * mule-charset.c (CHAR96): Deleted.
2363 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2365 (latin_iso8859_2_to_ucs): Likewise.
2366 (latin_iso8859_3_to_ucs): Likewise.
2367 (latin_iso8859_4_to_ucs): Likewise.
2368 (latin_iso8859_9_to_ucs): Likewise.
2369 (latin_viscii_lower_to_ucs): Likewise.
2370 (latin_viscii_upper_to_ucs): Likewise.
2371 (latin_tcvn5712_to_ucs): Commented out.
2372 (make_charset): Change type of argument `decoding_table' from
2373 <Emchar*> to <Lisp_Object> [vector of characters].
2374 (Fmake_charset): Modify for `make_charset'.
2375 (Fmake_reverse_direction_charset): Likewise.
2376 (Fcharset_mapping_table): New function in UTF-2000.
2377 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2379 (complex_vars_of_mule_charset): Modify for type change of
2380 `*_to_ucs'; modify for `make_charset'.
2382 * char-ucs.h (struct Lisp_Charset): Change type of
2383 `decoding_table' from <Emchar*> to <Lisp_Object>.
2384 (MAKE_CHAR): Modify for new specification of `decoding_table'.
2386 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2388 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2389 error with non-UTF-2000-Mule.
2391 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
2393 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2395 (Vcharset_chinese_cns11643_4): Likewise.
2396 (Vcharset_chinese_cns11643_5): Likewise.
2397 (Vcharset_chinese_cns11643_6): Likewise.
2398 (Vcharset_chinese_cns11643_7): Likewise.
2399 (Qchinese_cns11643_3): Likewise.
2400 (Qchinese_cns11643_4): Likewise.
2401 (Qchinese_cns11643_5): Likewise.
2402 (Qchinese_cns11643_6): Likewise.
2403 (Qchinese_cns11643_7): Likewise.
2404 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2405 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2406 and `chinese-cns11643-7' to lisp/mule/chinese.el.
2407 (complex_vars_of_mule_charset): Likewise.
2409 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2411 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2413 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2414 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2416 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2418 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2420 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2421 (breakup_char_1): Likewise.
2423 * text-coding.c (char_encode_iso2022): Keep designated charsets if
2424 one of them includes the specified character.
2426 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2428 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2430 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2432 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2434 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2436 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2437 definition for non-UTF-2000 Mule.
2438 (latin_iso8859_3_to_ucs): Likewise.
2439 (latin_iso8859_4_to_ucs): Likewise.
2440 (latin_iso8859_9_to_ucs): Likewise.
2441 (latin_jisx0201_to_ucs): Likewise.
2442 (MIN_CHAR_THAI): Likewise.
2443 (MAX_CHAR_THAI): Likewise.
2444 (MIN_CHAR_GREEK): Likewise.
2445 (MAX_CHAR_GREEK): Likewise.
2446 (MIN_CHAR_HEBREW): Likewise.
2447 (MAX_CHAR_HEBREW): Likewise.
2448 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2449 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2450 (MIN_CHAR_CYRILLIC): Likewise.
2451 (MAX_CHAR_CYRILLIC): Likewise.
2453 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2455 * char-ucs.h (breakup_char_1): Use
2456 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2457 thai-tis620 and katakana-jisx0201 area.
2459 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2461 * char-ucs.h (breakup_char_1): Use
2462 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2465 * text-coding.c (reset_encoding_stream): Fixed.
2466 (char_encode_ucs4): Delete `& 255'.
2468 * char-ucs.h (breakup_char_1): Use
2469 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2471 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2473 * file-coding.c (Fmake_coding_system): Don't set up
2474 `codesys->fixed.size'.
2475 (encode_coding_no_conversion): Don't refer
2476 `str->codesys->fixed.size'.
2478 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2480 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2481 (latin_a_char_to_byte1): Deleted.
2482 (latin_a_char_to_byte2): Deleted.
2484 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2486 * mule-charset.c (make_charset): Add new argument `ucs_min',
2487 `ucs_max' and `code_offset'.
2488 (charset_get_byte1): New implementation [delete specific charset
2489 depended implementations].
2490 (Fmake_charset): Modify for `make_charset'.
2491 (Fmake_reverse_direction_charset): Likewise.
2492 (complex_vars_of_mule_charset): Likewise.
2494 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2496 (CHARSET_UCS_MIN): New macro.
2497 (CHARSET_UCS_MAX): New macro.
2498 (CHARSET_CODE_OFFSET): New macro.
2499 (MAKE_CHAR): Delete charset depended definitions [except
2502 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2504 * char-ucs.h (breakup_char_1): Use
2505 `Vdefault_coded_charset_priority_list' for C0-Controls,
2506 Basic-Latin, C1-Controls and Latin-1-Supplement area.
2508 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2510 * char-ucs.h (charset_get_byte1): New function.
2511 (XCHARSET_GET_BYTE1): Deleted.
2512 (charset_get_byte2): New function.
2513 (XCHARSET_GET_BYTE2): Deleted.
2514 (Vdefault_coded_charset_priority_list): New external variable.
2515 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2516 `Vdefault_preferred_coded_charset_list'.
2518 * mule-charset.c (charset_get_byte1): New function.
2519 (charset_get_byte2): New function.
2520 (Vdefault_coded_charset_priority_list): New variable.
2521 (vars_of_mule_charset): Add new variable
2522 `default-coded-charset-priority-list'.
2524 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2526 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2527 (XCHARSET_GET_BYTE2): New inline function.
2528 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2529 `XCHARSET_GET_BYTE2'.
2531 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2533 * mule-charset.c (make_charset): Initialize
2534 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2535 NULL if table is not defined.
2537 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2539 * text-coding.c (char_encode_shift_jis): Use
2540 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2541 `ucs_to_latin_jisx0201'.
2543 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2544 (ucs_to_latin_iso8859_2): Deleted.
2545 (ucs_to_latin_iso8859_3): Deleted.
2546 (ucs_to_latin_iso8859_4): Deleted.
2547 (ucs_to_latin_iso8859_9): Deleted.
2548 (ucs_to_latin_viscii_lower): Deleted.
2549 (ucs_to_latin_viscii_upper): Deleted.
2550 (ucs_to_latin_tcvn5712): Deleted.
2551 (make_charset): Add new argument `decoding_table'; set up
2552 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2553 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2554 `decoding_table' is defined in UTF-2000.
2555 (Fmake_charset): Modify for `make_charset'.
2556 (Fmake_reverse_direction_charset): Likewise.
2557 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2558 and `GENERATE_96_SET'.
2560 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2561 (ucs_to_latin_jisx0201): Deleted.
2562 (latin_iso8859_2_to_ucs): Deleted.
2563 (ucs_to_latin_iso8859_2): Deleted.
2564 (latin_iso8859_3_to_ucs): Deleted.
2565 (ucs_to_latin_iso8859_3): Deleted.
2566 (latin_iso8859_4_to_ucs): Deleted.
2567 (ucs_to_latin_iso8859_4): Deleted.
2568 (latin_iso8859_9_to_ucs): Deleted.
2569 (ucs_to_latin_iso8859_9): Deleted.
2570 (latin_viscii_lower_to_ucs): Deleted.
2571 (ucs_to_latin_viscii_lower): Deleted.
2572 (latin_viscii_upper_to_ucs): Deleted.
2573 (ucs_to_latin_viscii_upper): Deleted.
2574 (struct Lisp_Charset): Renamed `encoding_table' to
2575 `to_byte1_table'; add `to_byte2_table'.
2576 (CHARSET_DECODING_TABLE): New macro.
2577 (CHARSET_TO_BYTE1_TABLE): New macro.
2578 (CHARSET_TO_BYTE2_TABLE): New macro.
2579 (XCHARSET_DECODING_TABLE): New macro.
2580 (XCHARSET_TO_BYTE1_TABLE): New macro.
2581 (XCHARSET_TO_BYTE2_TABLE): New macro.
2582 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2584 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2585 don't use `ucs_to_*' tables.
2587 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2589 * text-coding.c (Fmake_coding_system): Don't set up
2590 `codesys->fixed.size'.
2591 (encode_coding_no_conversion): Use `if' instead of `switch'.
2593 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2595 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2597 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2598 (Fmake_charset): Modify for `make_charset'.
2599 (Fmake_reverse_direction_charset): Likewise.
2600 (complex_vars_of_mule_charset): Likewise.
2602 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2604 * text-coding.c (char_encode_shift_jis): Use table
2605 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2607 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2609 * text-coding.c (text_encode_generic): Use `if' instead of
2611 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2614 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2616 * text-coding.c (encode_coding_sjis): Deleted.
2617 (char_encode_shift_jis): New function.
2618 (char_finish_shift_jis): New function.
2619 (reset_encoding_stream): Set up `encode_char' and `finish' for
2620 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2621 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2622 (char_encode_utf8): Treat `eol_type'.
2624 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2626 * file-coding.c (decode_coding_iso2022): Use
2627 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2629 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2631 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2634 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2636 * char-lb.h (CHAR_COLUMNS): New macro.
2638 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2640 * text-coding.c (char_encode_ucs4): New function.
2641 (char_finish_ucs4): New function.
2642 (encode_coding_ucs4): Deleted.
2643 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2644 (text_encode_generic): Delete local variable `charset' and `half'.
2645 (ucs_to_mule_table): Deleted.
2646 (mule_to_ucs_table): Deleted.
2647 (Fset_ucs_char): Deleted.
2648 (ucs_to_char): Deleted.
2649 (Fucs_char): Deleted.
2650 (Fset_char_ucs): Deleted.
2651 (Fchar_ucs): Deleted.
2652 (decode_ucs4): Deleted.
2653 (mule_char_to_ucs4): Deleted.
2654 (encode_ucs4): Deleted.
2655 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2656 (decode_coding_utf8): Likewise.
2657 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2658 (char_encode_iso2022): Fixed.
2659 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2660 `Fset_char_ucs' and `Fchar_ucs'.
2661 (complex_vars_of_file_coding): Don't initialize
2662 `ucs_to_mule_table'.
2664 * objects-tty.c (tty_initialize_font_instance): Don't use
2667 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2670 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2671 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2673 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2674 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2675 (emchar_string_displayed_columns): Likewise.
2677 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2678 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2679 (string_column_at_point): Likewise.
2680 (Fmove_to_column): Likewise.
2682 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2683 `encoding_table' and `decoding_table'.
2684 (CHARSET_REP_BYTES): Deleted.
2685 (XCHARSET_REP_BYTES): Deleted.
2686 (XCHARSET_COLUMNS): Deleted.
2687 (CHAR_COLUMNS): New macro.
2688 (lookup_composite_char): Deleted unconditionally.
2689 (composite_char_string): Likewise.
2691 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2693 * char-ucs.h (Emchar_to_byte_table): New type.
2694 (get_byte_from_character_table): New function interface.
2695 (Vcharset_latin_jisx0201): New variable.
2696 (latin_jisx0201_to_ucs): New variable.
2697 (ucs_to_latin_jisx0201): New variable.
2698 (Vcharset_latin_iso8859_2): New variable.
2699 (latin_iso8859_2_to_ucs): New variable.
2700 (ucs_to_latin_iso8859_2): New variable.
2701 (Vcharset_latin_iso8859_3): New variable.
2702 (latin_iso8859_3_to_ucs): New variable.
2703 (ucs_to_latin_iso8859_3): New variable.
2704 (Vcharset_latin_iso8859_4): New variable.
2705 (latin_iso8859_4_to_ucs): New variable.
2706 (ucs_to_latin_iso8859_4): New variable.
2707 (Vcharset_latin_iso8859_9): New variable.
2708 (latin_iso8859_9_to_ucs): New variable.
2709 (ucs_to_latin_iso8859_9): New variable.
2710 (Vcharset_latin_viscii_lower): New variable.
2711 (latin_viscii_lower_to_ucs): New variable.
2712 (ucs_to_latin_viscii_lower): New variable.
2713 (Vcharset_latin_viscii_upper): New variable.
2714 (latin_viscii_upper_to_ucs): New variable.
2715 (ucs_to_latin_viscii_upper): New variable.
2716 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2717 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2718 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2719 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2720 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2721 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2722 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2723 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2724 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2725 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2727 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2728 (Vcharset_latin_viscii_upper): New variable.
2729 (make_byte_from_character_table): New function.
2730 (put_byte_from_character_table): New function.
2731 (get_byte_from_character_table): New function.
2732 (CHAR96): New macro.
2733 (ucs_to_latin_jisx0201): New variable.
2734 (latin_jisx0201_to_ucs): New variable.
2735 (ucs_to_latin_iso8859_2): New variable.
2736 (latin_iso8859_2_to_ucs): New variable.
2737 (ucs_to_latin_iso8859_3): New variable.
2738 (latin_iso8859_3_to_ucs): New variable.
2739 (ucs_to_latin_iso8859_4): New variable.
2740 (latin_iso8859_4_to_ucs): New variable.
2741 (ucs_to_latin_iso8859_9): New variable.
2742 (latin_iso8859_9_to_ucs): New variable.
2743 (ucs_to_latin_viscii_lower): New variable.
2744 (latin_viscii_lower_to_ucs): New variable.
2745 (ucs_to_latin_viscii_upper): New variable.
2746 (latin_viscii_upper_to_ucs): New variable.
2747 (ucs_to_latin_tcvn5712): New variable.
2748 (latin_tcvn5712_to_ucs): New variable.
2749 (Qlatin_viscii_lower): New variable.
2750 (Qlatin_viscii_upper): New variable.
2751 (syms_of_mule_charset): Set up new symbol
2752 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2753 (complex_vars_of_mule_charset): Set up new charset
2754 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2755 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2756 `ucs_to_<CHARSET>' tables.
2758 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2760 * text-coding.c: New file.
2762 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2764 * mule-charset.c (Fmake_char): Fix problem of 256-set.
2766 * char-ucs.h (Vcharset_ucs_bmp): New variable.
2767 (MAKE_CHAR): Modify for `ucs-bmp'.
2768 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2769 non-MULE characters of BMP.
2771 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
2773 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2776 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
2779 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2780 - Include character.h for `CHAR_ASCII_P'.
2782 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2784 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2785 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2787 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2788 (BYTE_C0_P): Likewise.
2789 (BYTE_C1_P): Likewise.
2790 (Lstream_get_emchar_1): Likewise.
2791 (Lstream_fput_emchar): Likewise.
2792 (Lstream_funget_emchar): Likewise.
2793 (copy_internal_to_external): Likewise.
2794 (copy_external_to_internal): Likewise.
2796 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2797 (BYTE_C0_P): Likewise.
2798 (BYTE_C1_P): Likewise.
2799 (Lstream_get_emchar_1): Likewise.
2800 (Lstream_fput_emchar): Likewise.
2801 (Lstream_funget_emchar): Likewise.
2802 (copy_internal_to_external): Likewise.
2803 (copy_external_to_internal): Likewise.
2805 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2806 (REP_BYTES_BY_FIRST_BYTE): Likewise.
2808 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2809 (BYTE_ASCII_P): Moved to mb-1byte.h.
2811 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
2813 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2815 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2816 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2817 (VALID_CHARPTR_P): Moved to mb-*byte.h.
2818 (VALIDATE_CHARPTR_BACKWARD): Likewise.
2819 (VALIDATE_CHARPTR_FORWARD): Likewise.
2820 (simple_charptr_emchar): Moved to mb-multibyte.h.
2821 (simple_set_charptr_emchar): Likewise.
2822 (simple_charptr_copy_char): Likewise.
2823 (non_ascii_charptr_emchar): Likewise.
2824 (non_ascii_set_charptr_emchar): Likewise.
2825 (non_ascii_charptr_copy_char): Likewise.
2826 (charptr_emchar): Moved to mb-*byte.h.
2827 (set_charptr_emchar): Likewise.
2828 (charptr_copy_char): Likewise.
2830 * mb-1byte.h, mb-multibyte.h: New files.
2832 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2834 * mb-utf-8.h (MULTIBYTE): New macro.
2835 (MAX_EMCHAR_LEN): Moved from buffer.h.
2836 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2838 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2840 * mb-lb.h, multibyte.h: New files.
2842 * char-1byte.h (Charset_ID): Moved from buffer.h.
2843 (MIN_LEADING_BYTE): Likewise.
2844 (LEADING_BYTE_ASCII): Likewise.
2845 (NUM_LEADING_BYTES): Likewise.
2846 (CHARSETP): Likewise.
2847 (CHARSET_BY_LEADING_BYTE): Likewise.
2848 (XCHARSET_LEADING_BYTE): Likewise.
2849 (XCHARSET_GRAPHIC): Likewise.
2850 (XCHARSET_COLUMNS): Likewise.
2851 (XCHARSET_DIMENSION): Likewise.
2852 (CHAR_CHARSET): Likewise.
2853 (CHAR_LEADING_BYTE): Likewise.
2854 (BREAKUP_CHAR): Likewise.
2855 (Vcharset_ascii): Likewise.
2857 * buffer.h: Include multibyte.h unconditionally.
2858 (VALID_CHARPTR_P): Moved to multibyte.h.
2859 (ASSERT_VALID_CHARPTR): Likewise.
2860 (REAL_INC_CHARPTR): Likewise.
2861 (REAL_INC_CHARBYTIND): Likewise.
2862 (REAL_DEC_CHARPTR): Likewise.
2863 (INC_CHARPTR): Likewise.
2864 (INC_CHARBYTIND): Likewise.
2865 (DEC_CHARPTR): Likewise.
2866 (VALIDATE_CHARPTR_BACKWARD): Likewise.
2867 (VALIDATE_CHARPTR_FORWARD): Likewise.
2868 (charptr_n_addr): Likewise.
2869 (MAX_EMCHAR_LEN): Moved to mb-*.h.
2870 (simple_charptr_emchar): Moved to multibyte.h.
2871 (simple_set_charptr_emchar): Likewise.
2872 (simple_charptr_copy_char): Likewise.
2873 (non_ascii_charptr_emchar): Likewise.
2874 (non_ascii_set_charptr_emchar): Likewise.
2875 (non_ascii_charptr_copy_char): Likewise.
2876 (charptr_emchar): Likewise.
2877 (set_charptr_emchar): Likewise.
2878 (charptr_copy_char): Likewise.
2879 (charptr_emchar_n): Likewise.
2880 (Charset_ID): Moved to char-1byte.h.
2881 (Vcharset_ascii): Likewise.
2882 (CHAR_CHARSET): Likewise.
2883 (CHAR_LEADING_BYTE): Likewise.
2884 (LEADING_BYTE_ASCII): Likewise.
2885 (NUM_LEADING_BYTES): Likewise.
2886 (MIN_LEADING_BYTE): Likewise.
2887 (CHARSETP): Likewise.
2888 (CHARSET_BY_LEADING_BYTE): Likewise.
2889 (XCHARSET_LEADING_BYTE): Likewise.
2890 (XCHARSET_GRAPHIC): Likewise.
2891 (XCHARSET_COLUMNS): Likewise.
2892 (XCHARSET_DIMENSION): Likewise.
2893 (BREAKUP_CHAR): Likewise.
2895 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2897 * character.h: Add document about interface for characters.
2899 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2900 (MAKE_CHAR): Delete comment about
2901 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2902 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2903 (BREAKUP_CHAR): Modify name of arguments.
2904 (CHAR_CHARSET): Modify name of argument.
2906 * buffer.h: Delete document about Emchar accessors.
2908 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2910 * character.h (CHAR_INTP): Moved from buffer.h
2911 (CHAR_OR_CHAR_INTP): Likewise.
2912 (XCHAR_OR_CHAR_INT): Likewise.
2913 (CHECK_CHAR_COERCE_INT): Likewise.
2915 * buffer.h (CHAR_INTP): Moved to character.h
2916 (CHAR_OR_CHAR_INTP): Likewise.
2917 (XCHAR_OR_CHAR_INT): Likewise.
2918 (CHECK_CHAR_COERCE_INT): Likewise.
2920 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2923 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2924 - Include char-1byte.h, char-lb.h or char-ucs.h.
2926 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2928 * buffer.h: Include character unconditionally.
2929 (valid_char_p): Moved to char-*.h.
2930 (non_ascii_valid_char_p): Moved to char-lb.h.
2932 * char-1byte.h, char-lb.h, char-ucs.h: New files.
2934 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2936 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2937 in UTF-2000 because it is not ported yet and not to use
2938 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2939 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2940 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2942 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2943 (CHAR_ASCII_P): Moved from character.h.
2945 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2946 (CHAR_ASCII_P): Likewise.
2947 (CHAR_FIELD1_MASK): Deleted.
2948 (CHAR_FIELD2_MASK): Deleted.
2949 (CHAR_FIELD3_MASK): Deleted.
2950 (MAX_CHAR_BASIC_LATIN): New macro.
2951 (CHAR_FIELD1): Deleted.
2952 (CHAR_FIELD2_INTERNAL): Deleted.
2953 (CHAR_FIELD3_INTERNAL): Deleted.
2954 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2955 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2956 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2957 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2958 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2959 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2960 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2961 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2962 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2963 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2964 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2965 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2966 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2967 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2968 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2969 (MIN_CHAR_COMPOSITION): Deleted.
2970 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2971 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2973 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
2975 * buffer.h: Include mb-utf-8.h in UTF-2000.
2977 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2979 * mb-utf-8.h: New file.
2981 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
2983 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2986 * mule-charset.h, buffer.h (Charset_ID): New type.
2988 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
2990 * mule-canna.c (c2mu): Use `MAKE_CHAR',
2991 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2992 instead of `MULE_CHAR_PRIVATE_OFFSET',
2993 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2994 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2995 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2997 * character.h (Vcharset_japanese_jisx0212): New variable
3000 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3002 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3003 (charset_by_attributes): Delete array about direction.
3004 (latin_a_char_to_charset): New variable in UTF-2000.
3005 (latin_a_char_to_byte1): New variable in UTF-2000.
3006 (latin_a_char_to_byte2): New variable in UTF-2000.
3007 (Qucs_bmp): New variable.
3008 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3010 (next_allocated_2_byte_leading_byte): Likewise.
3011 (non_ascii_set_charptr_emchar): Likewise.
3012 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3013 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3014 `charset_by_attributes'.
3015 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3016 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3017 and `CHARSET_BY_LEADING_BYTE'.
3018 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3019 `utf-2000-version' to `vars_of_mule_charset'.
3020 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3021 define `leading-code-private-11' in UTF-2000; move setting of
3022 `utf-2000-version' from `syms_of_mule_charset'.
3023 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3026 * character.h (Charset_ID): New type.
3027 (LEADING_BYTE_UCS_BMP): New macro.
3028 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3029 (CHARSET_ID_OFFSET_94): New macro.
3030 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3031 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3032 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3034 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3035 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3036 (CHARSET_ID_OFFSET_96): New macro.
3037 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3038 CHARSET_ID_OFFSET_96 and final-byte.
3039 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3040 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3041 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3042 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3043 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3044 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3045 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3046 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3047 (LEADING_BYTE_THAI_TIS620): Likewise.
3048 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3049 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3050 (CHARSET_ID_OFFSET_94x94): New macro.
3051 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3052 CHARSET_ID_OFFSET_94x94 and final-byte.
3053 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3054 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3055 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3056 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3057 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3058 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3059 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3060 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3061 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3062 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3063 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3064 (CHARSET_TYPE_128X128): New macro.
3065 (CHARSET_TYPE_256X256): New macro.
3066 (XCHARSET_PRIVATE_P): Delete unconditionally.
3067 (charset_by_attributes): Delete array about direction.
3068 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3069 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3070 (MIN_CHAR_94): New macro.
3071 (MAX_CHAR_94): New macro.
3072 (MIN_CHAR_96): New macro.
3073 (MAX_CHAR_96): New macro.
3074 (MIN_CHAR_94x94): New macro.
3075 (MAX_CHAR_94x94): New macro.
3076 (MIN_CHAR_96x96): New macro.
3077 (MAX_CHAR_96x96): New macro.
3078 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3079 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3080 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3082 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3083 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3084 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3085 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3086 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3087 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3088 `XCHARSET_LEADING_BYTE' to make code-point.
3089 (latin_a_char_to_charset): New variable.
3090 (latin_a_char_to_byte1): New variable.
3091 (latin_a_char_to_byte2): New variable.
3092 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3093 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3094 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3096 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3097 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3098 (find_charsets_in_emchar_string): Likewise.
3099 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3101 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3103 (decode_coding_iso2022): Likewise.
3105 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3108 * redisplay.c (redisplay_text_width_emchar_string): Use
3109 `Charset_ID' instead of `unsigned char'.
3110 (redisplay_frame_text_width_string): Likewise.
3112 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3115 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3116 instead of `unsigned char'.
3117 (face_cachel_charset_font_metric_info): Likewise.
3119 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3120 (get_non_ascii_char_table_value): Likewise.
3121 (get_char_table): Likewise.
3122 (put_char_table): Likewise.
3123 (map_over_other_charset): Likewise.
3124 (map_char_table): Likewise.
3126 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3127 instead of `unsigned char'.
3129 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3131 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3132 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3134 * mule-charset.c (leading_code_private_11): Don't define in
3137 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3138 in UTF-2000 because it is not ported yet and not to use
3139 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3141 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3143 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3145 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3147 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3150 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3151 of unsigned char to store leading-byte.
3153 * chartab.c (get_non_ascii_char_table_value): Don't use
3154 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3156 * file-coding.c (encode_coding_big5): Delete bogus implementation
3159 * character.h (LEADING_BYTE_*): Delete definition for
3161 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3162 (LEADING_BYTE_PREFIX_P): Deleted.
3163 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3164 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3165 (BUFBYTE_LEADING_BYTE_P): Deleted.
3166 (CHARSET_PRIVATE_P): Deleted unconditionally.
3167 (rep_bytes_by_first_byte): Deleted unconditionally.
3168 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3169 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3170 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3171 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3172 (CHAR_FIELD2): Deleted.
3173 (CHAR_FIELD3): Deleted.
3174 (MAKE_CHAR): Delete definition for non-UTF-2000.
3175 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3176 (breakup_char_1): New implementation.
3177 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3178 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3180 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3182 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3185 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3187 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3188 (CHARSET_PRIVATE_P): Likewise.
3189 (XCHARSET_PRIVATE_P): Likewise.
3190 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3192 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3194 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3196 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3198 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3199 (NUM_LEADING_BYTES): Changed from 128 to 256.
3200 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3201 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3203 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3205 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3207 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3208 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3209 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3210 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3211 (Qchinese_cns11643_3): New variable in UTF2000.
3212 (Qchinese_cns11643_4): New variable in UTF2000.
3213 (Qchinese_cns11643_5): New variable in UTF2000.
3214 (Qchinese_cns11643_6): New variable in UTF2000.
3215 (Qchinese_cns11643_7): New variable in UTF2000.
3216 (syms_of_mule_charset): Define `chinese-cns11643-3',
3217 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3218 and `chinese-cns11643-7' in UTF2000.
3219 (vars_of_mule_charset): Initialize
3220 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3222 (complex_vars_of_mule_charset): Setup charset
3223 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3224 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3226 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3228 * mule-charset.c: Move setting for `leading-code-private-11' from
3229 `syms_of_mule_charset' to `vars_of_mule_charset'.
3231 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3233 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3234 and `NUM_LEADING_BYTES' in assert.
3236 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3238 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3240 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3241 `NUM_LEADING_BYTES' instead of 128.
3243 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3245 * mule-charset.h (charset_by_leading_byte): Use
3246 `NUM_LEADING_BYTES' instead of 128.
3247 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3249 * mule-charset.c (charset_by_leading_byte): Use
3250 `NUM_LEADING_BYTES' instead of 128.
3251 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3253 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3256 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3258 * mule-charset.c (syms_of_mule_charset): Update to
3261 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3263 * file-coding.c (encode_coding_sjis): New implementation for
3264 UTF2000. (decode_coding_sjis): Ditto.
3266 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3268 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3269 Don't define in UTF2000.
3271 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3274 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3275 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3278 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3280 * config.h.in (CHAR_IS_UCS4): New macro.
3282 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3283 conventional MULE representation.
3284 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3286 * mule-charset.h: Reverted to original.
3288 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3289 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3290 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3292 * character.h: New file.
3294 * file-coding.c (Fmake_coding_system): Set 1 to
3295 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3297 (encode_coding_no_conversion): New implementation for UTF2000.
3299 * file-coding.h (struct Lisp_Coding_System): Add new member
3302 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
3304 * file-coding.c (decode_coding_iso2022): Code-point arguments of
3305 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3306 (encode_coding_iso2022): New implementation for UTF2000.
3308 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3310 * mule-canna.c (c2mu): New implementation for UTF2000.
3313 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3315 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3317 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3319 * file-coding.c (reset_encoding_stream): Set 0 to
3320 `str->iso2022.current_char_boundary' in UTF2000.
3321 (encode_utf8): Don't define in UTF2000.
3322 (encode_coding_utf8): New implementation for UTF-8 representation
3324 (complex_vars_of_file_coding): Define coding-system `utf-8'.
3326 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3328 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3330 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3332 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3334 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3336 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3337 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3338 as UTF-8 in UTF2000.
3339 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3340 (non_ascii_valid_char_p): Don't define in UTF2000.
3341 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3342 (Lstream_get_emchar_1): Likewise.
3343 (utf-2000-version): New variable in UTF2000.
3345 * lread.c (read_escape): Add new reader `u'.
3347 * insdel.c (three_to_one_table): Don't define in UTF2000.
3348 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3349 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3351 (bytind_to_bufpos_func): Likewise.
3352 (buffer_mule_signal_inserted_region): Likewise.
3353 (vars_of_insdel): Don't initialize `three_to_one_table'.
3354 (init_buffer_text): Use `buf->text->mule_size' instead of
3355 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3358 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3359 UTF-8 representation in UTF2000.
3360 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3361 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3362 (decode_coding_iso2022): Don't define local variable `lb' in
3363 UTF2000; don't use LEADING_BYTE in UTF2000; use
3364 `DECODE_ADD_UCS_CHAR' in UTF2000.
3365 (convert_to_external_format): Decode as UTF-8 in UTF2000.
3367 * config.h.in (UTF2000): New macro.
3369 * buffer.h (struct buffer_text): Add new member `mule_size' and
3370 don't add `mule_shifter' and `mule_three_p' in UTF2000.
3371 (valid_char_p): Return always 1 in UTF2000.
3372 (MAX_EMCHAR_LEN): 6 in UTF2000.
3373 (three_to_one_table): Don't define in UTF2000.
3374 (real_bufpos_to_bytind): Modify for UTF-8 representation in
3376 (real_bytind_to_bufpos): Likewise.
3378 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3380 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3382 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3383 representation change.
3384 (Vutf_2000_version): New variable.
3385 (leading_code_private_11): New variable.
3386 (syms_of_mule_charset): Add new variables `utf-2000-version' and
3387 `leading-code-private-11'.
3389 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3390 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3391 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3392 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3393 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3394 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3395 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3396 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3397 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3398 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3399 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3400 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3401 (MIN_CHAR_GREEK): New macro.
3402 (MAX_CHAR_GREEK): New macro.
3403 (MIN_CHAR_CYRILLIC): New macro.
3404 (MAX_CHAR_CYRILLIC): New macro.
3405 (MIN_CHAR_HEBREW): New macro.
3406 (MAX_CHAR_HEBREW): New macro.
3407 (MIN_CHAR_THAI): New macro.
3408 (MAX_CHAR_THAI): New macro.
3409 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3410 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3411 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3412 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3413 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3414 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3415 (CHAR_FIELD2): New inline function.
3416 (CHAR_FIELD3): New inline function.
3417 (MULE_CHAR_PRIVATE_OFFSET): New macro.
3418 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3419 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3420 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3421 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3422 (MIN_CHAR_COMPOSITION): Likewise.
3423 (CHAR_LEADING_BYTE): Modified for character representation change.
3424 (MAKE_CHAR): Likewise.
3426 * lisp.h (Vcharset_latin_iso8859_1): New variable.
3427 (Vcharset_greek_iso8859_7): Likewise.
3428 (Vcharset_cyrillic_iso8859_5): Likewise.
3429 (Vcharset_hebrew_iso8859_8): Likewise.
3430 (Vcharset_thai_tis620): Likewise.
3431 (Vcharset_katakana_jisx0201): Likewise.
3433 2001-01-20 Martin Buchholz <martin@xemacs.org>
3435 * XEmacs 21.2.42 "Poseidon" is released.
3437 2001-01-20 Martin Buchholz <martin@xemacs.org>
3439 * console-x.h: typo fix du jour. Remove #if 0'ed code.
3441 2001-01-19 Martin Buchholz <martin@xemacs.org>
3443 De-kludgify FIXED_TYPE free list frobbing.
3444 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3445 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3446 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3447 * alloc.c (Lisp_Free): New pseudo lisp object definition.
3448 * alloc.c (LRECORD_FREE_P): New.
3449 * alloc.c (MARK_LRECORD_AS_FREE): New.
3450 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3451 * alloc.c (STRUCT_FREE_P): Deleted.
3452 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3453 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3454 * alloc.c (STRING_CHARS_FREE_P): New.
3455 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3456 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3457 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3458 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3459 * alloc.c (resize_string): Use new definitions.
3460 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
3461 * alloc.c (verify_string_chars_integrity): Use new definitions.
3462 * alloc.c (compact_string_chars): Use new definitions.
3463 * alloc.c: Update monster comments.
3464 * lrecord.h (lrecord_type): Add some new lrecord types for
3467 2001-01-18 Martin Buchholz <martin@xemacs.org>
3469 Improve alignment hackery.
3470 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
3471 (max_align_t): Moved from opaque.h - general purpose.
3472 (ALIGN_PTR): Use size_t, not long.
3473 * opaque.h (max_align_t): Move to lisp.h.
3475 2001-01-18 Norbert Koch <nk@LF.net>
3477 * gui.h: Fix and add prototypes to fix build problems.
3479 2001-01-18 Martin Buchholz <martin@xemacs.org>
3481 temacs is going away, so `dump-temacs' is now a bad name.
3482 * .dbxrc (dump-temacs): Rename to `dmp'.
3483 * .gdbinit (dump-temacs): Rename to `dmp'.
3485 2001-01-17 Andy Piper <andy@xemacs.org>
3487 * glyphs.c (print_image_instance): comment to make martin happy.
3489 * glyphs-x.c (x_redisplay_widget): update faces after a frame
3492 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
3494 (mswindows_tab_control_redisplay): warning suppression.
3496 * glyphs-widget.c (widget_update): re-write to cope with updated
3498 (widget_instantiate): use new gui_item functions.
3499 (tab_control_update): deleted.
3500 (progress_gauge_update): deleted.
3501 (image_instantiator_progress_guage): take out update reference.
3502 (image_instantiator_tree_view): ditto.
3503 (image_instantiator_tab_control): ditto.
3505 * gui.c (widget_gui_parse_item_keywords): new function. Do things
3507 (gui_item_add_keyval_pair): re-write to cope with descriptors and
3508 return whether anything was changed.
3509 (update_gui_item_keywords): as it sounds.
3511 * gui.h: declare widget_gui_parse_item_keywords.
3513 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
3514 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
3516 2001-01-17 Martin Buchholz <martin@xemacs.org>
3518 * XEmacs 21.2.41 "Polyhymnia" is released.
3520 2001-01-16 Didier Verna <didier@xemacs.org>
3522 * glyphs.c (image_instantiate): don't use fallbacks when
3523 instantiating a face's background pixmap by inheritance.
3525 2001-01-14 Mike Sperber <mike@xemacs.org>
3527 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3528 Conditionalize accordingly.
3530 2001-01-16 Martin Buchholz <martin@xemacs.org>
3532 * dumper.c (pdump_file_get): Fix a compiler warning.
3534 2001-01-15 Martin Buchholz <martin@xemacs.org>
3536 Make Purify happy when pdumping.
3537 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3538 iniitalizing all bits of new lisp object memory.
3539 * symbols.c (Fmake_local_variable): Likewise.
3540 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3541 * symbols.c (Fdefvaralias): Likewise.
3542 * mule-charset.c (vars_of_mule_charset): Likewise.
3544 2001-01-15 Martin Buchholz <martin@xemacs.org>
3545 Add the `-nd' flag when running pre-dump operations under the debugger.
3546 * .dbxrc (run-temacs): Add `-nd'.
3547 * .dbxrc (update-elc): Likewise.
3548 * .dbxrc (dump-temacs): Likewise.
3549 * .gdbinit (run-temacs): Likewise.
3550 * .gdbinit (check-temacs): Likewise.
3551 * .gdbinit (update-elc): Likewise.
3552 * .gdbinit (dump-temacs): Likewise.
3554 2001-01-14 Martin Buchholz <martin@xemacs.org>
3556 Allow building 64-bit executables on AIX with GNU malloc, e.g.
3557 export OBJECT_MODE=64
3558 configure --pdump --use-union-type=no
3559 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3560 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3562 * miscplay.c (sndcnv8U_2mono):
3563 Avoid two uses of `++' in the same expression.
3564 Suppresses a GCC warning.
3566 2001-01-13 Martin Buchholz <martin@xemacs.org>
3568 Make sure future compilers don't miscompile alloc.c.
3570 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3571 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3573 2001-01-12 Martin Buchholz <martin@xemacs.org>
3575 * dumper.c: A little post-pdump-rename comment fixup.
3577 2001-01-09 Jerry James <james@eecs.ku.edu>
3579 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3581 2001-01-13 Martin Buchholz <martin@xemacs.org>
3583 * *.[ch]: Globally rename symbols using the following `pdump-rename'
3587 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3590 replace_symbol pdump_wire_lists pdump_weak_object_chains
3591 replace_symbol pdump_wire_list dump_add_weak_object_chain
3593 replace_symbol pdump_wires pdump_root_objects
3594 replace_symbol pdump_wire dump_add_root_object
3596 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3597 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3599 replace_symbol dumpstructinfos pdump_root_struct_ptrs
3600 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3601 replace_symbol dumpstructinfo pdump_root_struct_ptr
3602 replace_symbol dumpstruct dump_add_root_struct_ptr
3604 replace_symbol dumpopaque dump_add_opaque
3605 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3606 replace_symbol dumpopaqueinfos pdump_opaques
3607 replace_symbol dumpopaqueinfo pdump_opaque
3609 replace_symbol nb_structdump nb_root_struct_ptrs
3610 replace_symbol nb_opaquedump nb_opaques
3612 replace_symbol align_table pdump_align_table
3613 replace_symbol dump_header pdump_header
3615 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3616 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3619 2001-01-12 Martin Buchholz <martin@xemacs.org>
3621 * s/aix4.h: Keep the C for AIX compiler from overaggressively
3622 optimizing bytecount_to_charcount().
3624 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
3627 (HAVE_DLFCN_H): Removed.
3628 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3630 2001-01-06 Martin Buchholz <martin@xemacs.org>
3632 Portable dumper maintainability improvements.
3633 * alloc.c (staticpro):
3634 * alloc.c (staticpro_nodump):
3635 * alloc.c (garbage_collect_1):
3636 * alloc.c (reinit_alloc_once_early):
3637 * alloc.c (init_alloc_once_early):
3638 * alloc.c: Move dumper functions to alloc.c.
3639 * dumper.c (pdump_backtrace):
3640 * dumper.c (pdump_dump_structs):
3641 * dumper.c (pdump_dump_opaques):
3642 * dumper.c (pdump_dump_rtables):
3643 * dumper.c (pdump_dump_wired):
3645 * dumper.c (pdump_load_check):
3646 * dumper.c (pdump_load_finish):
3647 * dumper.c (pdump_file_unmap):
3648 * dumper.c (pdump_file_get):
3649 * dumper.c (pdump_resource_free):
3650 * dumper.c (pdump_resource_get):
3651 * dumper.c (pdump_file_free):
3652 * dumper.c (pdump_file_try):
3653 * dumper.c (pdump_load):
3654 Remove fixed size limits on staticpro(), staticpro_nodump(),
3655 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3656 Remove custom code for dumping lrecord_implementations_table - use
3658 Remove (most of the) custom code for dumping staticpros - dump it
3659 like any other dynarr.
3661 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
3662 * dumper.c: Moved functions from alloc.c.
3663 * alloc.c (dumpstruct): Moved to dumper.c.
3664 * alloc.c (dumpopaque): Likewise.
3665 * alloc.c (pdump_wire): Likewise.
3666 * alloc.c (pdump_wire_list): Likewise.
3668 * lisp.h (Dynarr_sizeof): New.
3669 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
3670 * lisp.h (Dynarr_end): New. Very slightly C++oid.
3671 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
3673 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3674 * lisp.h (dumpopaque): ditto.
3675 * lisp.h (pdump_wire): ditto.
3676 * lisp.h (pdump_wire_list): ditto.
3678 2001-01-09 Martin Buchholz <martin@xemacs.org>
3680 * make-src-depend (PrintPatternDeps):
3681 Use `sort' to make output independent of perl version.
3683 2001-01-08 Martin Buchholz <martin@xemacs.org>
3686 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3687 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3689 2001-01-03 Didier Verna <didier@xemacs.org>
3691 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3692 that `focus_frame' is alive before thinking of calling
3693 `redisplay_redraw_cursor' on it.
3695 2001-01-08 Martin Buchholz <martin@xemacs.org>
3697 * XEmacs 21.2.40 is released.
3699 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
3701 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3703 2001-01-06 Martin Buchholz <martin@xemacs.org>
3705 * alloc.c (dbg_valmask): Make const.
3706 * alloc.c (dbg_typemask): Make const.
3707 * alloc.c (dbg_USE_UNION_TYPE): Make const.
3708 * alloc.c (dbg_valbits): Make const.
3709 * alloc.c (dbg_gctypebits): Make const.
3711 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
3713 * redisplay-x.c (x_bevel_area):
3714 redisplay.h (struct rune):
3715 Typo fixes in comments.
3717 2001-01-05 Andy Piper <andy@xemacs.org>
3719 * glyphs-x.c (x_redisplay_widget): use size changed for offset
3722 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3724 2001-01-05 Martin Buchholz <martin@xemacs.org>
3726 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3728 * mule-ccl.c (stack_idx_of_map_multiple):
3729 Non const global data must not be initialized!
3730 Found by MIYASHITA Hisashi.
3732 2001-01-02 Andy Piper <andy@xemacs.org>
3734 * frame.c (change_frame_size): make sure frame size is always
3737 * glyphs.c (image_instance_layout): minor code reuse.
3739 * window.c (Fcurrent_window_configuration): revert previous
3742 2001-01-02 Martin Buchholz <martin@xemacs.org>
3745 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3747 2000-12-31 Andy Piper <andy@xemacs.org>
3749 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3750 when widget gets unmapped.
3752 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3753 function. Make sure widgets losing focus don't just drop it.
3754 (handle_focus_event_1): record the widget with focus.
3756 2000-12-31 Andy Piper <andy@xemacs.org>
3758 * window.c (allocate_window): use
3759 make_image_instance_cache_hash_table.
3760 (make_dummy_parent): ditto.
3761 (Fset_window_configuration): ditto.
3763 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
3765 * glyphs.c (process_image_string_instantiator): use
3767 (get_image_instantiator_governing_domain): ditto.
3768 (normalize_image_instantiator): ditto.
3769 (instantiate_image_instantiator): ditto.
3770 (make_image_instance_1): ditto.
3771 (image_instantiate): ditto. Key on glyph *and* instantiator type.
3772 (instantiator_eq_equal): new function for use with instance hash
3774 (instantiator_eq_hash): ditto.
3775 (make_image_instance_cache_hash_table): create a suitable hash
3776 table for storing image instances.
3778 * elhash.h (hash_table_weakness): new internal weakness type
3779 HASH_TABLE_KEY_CAR_VALUE_WEAK.
3780 declare new functions.
3782 * elhash.c (finish_marking_weak_hash_tables): introduce yet
3783 another weakness type for glyphs.
3784 (make_standard_lisp_hash_table): new function split out from
3785 make_general_lisp_hash_table.
3786 (make_lisp_hash_table): call make_standard_lisp_hash_table.
3787 (hash_table_instantiate): ditto.
3788 (Fmake_hash_table): ditto.
3790 2000-12-31 Martin Buchholz <martin@xemacs.org>
3792 * XEmacs 21.2.39 is released.
3794 2000-12-29 Andy Piper <andy@xemacs.org>
3796 * menubar.c (menubar_visible_p_changed): signal the frame changed.
3798 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3799 the frame has changed so that we pick up geometry changes such as
3802 2000-12-28 Andy Piper <andy@xemacs.org>
3804 * lastfile.c (my_ebss): make a char array so we can pad the
3805 bss. Fixes cygwin unexec.
3807 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3809 2000-12-26 Andy Piper <andy@xemacs.org>
3811 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3812 comments and try and be more precise about a non-/SIGIO world.
3813 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3816 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3817 we don't normalize to zero width or height.
3819 2000-12-24 Andy Piper <andy@xemacs.org>
3821 * Makefile.in.in (ldflags): add -mwindows when appropriate.
3823 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
3825 * s/sco5.h: SCO 5 has pty support.
3827 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
3829 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3830 input-method-xlib.c contains whole contents of input-method-xfs.c,
3831 so we can use input-method-xlib.c's code for USE_XFONTSET
3833 * input-method-xfs.c: removed.
3835 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
3837 * file-coding.h (enum coding_category_type): reorder enumerators to
3838 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
3839 (now one greater than largest real coding_category_type enumerator).
3840 * file-coding.c (coding_category_symbol, coding_category_by_priority,
3841 coding_category_system, fcd_descriptihon_1, decode_coding_category,
3842 Fcoding_category_list, Fset_coding_priority_list,
3843 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3844 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3846 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
3848 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3849 * redisplay-output.c (redisplay_output_window): Clear top of window
3850 when face is changed.
3851 * redisplay-x.c (x_redraw_exposed_window): Call
3852 redisplay_clear_top_of_window.
3853 * redisplay.h: Publish redisplay_clear_top_of_window.
3855 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
3857 * buffer.c (Fkill_buffer): Map over all devices.
3858 * window.c (window_loop): Remove UNSHOW_BUFFER code.
3859 (list_windows): New function.
3860 (list_all_windows): Ditto.
3861 (Freplace_buffer_in_windows): Use them.
3863 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3865 * database.c (berkdb_subtype): Recognize new subtype `queue'.
3866 (Fopen_database): Use `db_create' instead of `db_open'.
3867 (syms_of_database): Initialize Qqueue.
3869 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
3871 * buffer.c (common_init_complex_vars_of_buffer): Initialize
3872 buffer_local_face_property.
3873 * buffer.h (struct buffer): New member buffer_local_face_property.
3874 * window.c (Fset_window_buffer): Mark window's face as changed
3875 when buffer has buffer local face.
3876 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3877 * objects.c (color_after_change): Set buffer_local_face_property
3878 when locale of face specifier is buffer.
3879 * objects.c (font_after_change): Ditto.
3880 * objects.c (face_boolean_after_change): Ditto.
3881 * glyphs.c (image_after_change): Ditto.
3883 2000-12-09 Dan Holmsand <dan@eyebee.com>
3885 * nt.c (mswindows_fstat): Report file permissions, volume serial
3886 number, etc. Code adapted from FSF Emacs 20.7.
3888 2000-12-09 Dan Holmsand <dan@eyebee.com>
3890 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3891 of stat when we don't have symbolic links, to make sure
3892 mswindows_stat is called on mswindows.
3894 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
3896 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3898 2000-12-12 Martin Buchholz <martin@xemacs.org>
3900 * doprnt.c (emacs_doprnt_1): More printing fixes.
3901 Make printing of numbers compatible with libc and FSF Emacs.
3902 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3903 Use the system printf to do most of the hard work of formatting,
3904 instead of doprnt_1().
3905 Calculate memory to allocate for format string.
3906 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3907 (doprnt_1): Cleaner code and documentation.
3909 2000-12-01 Jerry James <james@eecs.ukans.edu>
3911 * Makefile.in.in: Use the loop variable to install headers.
3913 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
3915 * window.c (Fsplit_window): Don't invalidate face cache.
3917 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
3919 * minibuf.c (Fall_completions): Undo the previous change
3920 which removed checking elements start with space.
3922 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
3924 * mule-canna.c: Didier suppression.
3926 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
3928 * mule-canna.c: rename static unsigned char buf[] to key_buffer
3929 (warning suppression). Add English comment translations.
3931 2000-12-05 Martin Buchholz <martin@xemacs.org>
3933 * unexelfsgi.c (unexec): Better test for mmap failure.
3935 2000-12-05 Martin Buchholz <martin@xemacs.org>
3937 * XEmacs 21.2.38 is released.
3939 2000-12-05 Martin Buchholz <martin@xemacs.org>
3941 * redisplay.c (bar-cursor): Make a user variable.
3943 * symsinit.h: Add init_postgresql_from_environment.
3945 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
3947 * regex.c: Convert to clean C.
3949 2000-12-05 Dan Holmsand <dan@eyebee.com>
3952 Don't #include sysfile.h. Revert to duplicating PATH_MAX
3954 (sys_readlink): renamed to system_readlink to avoid conflict with
3955 the other sys_readlink.
3957 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
3959 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3961 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
3963 * postgresql.c (init_postgresql_from_environment): new function.
3964 (vars_of_postgresql): Move code initializing Lisp variables out and
3965 into init_postgresql_from_environment.
3966 emacs.c (main_1): Call init_postgresql_from_environment if and only
3967 if running a dumped XEmacs.
3969 2000-08-31 Dan Holmsand <dan@eyebee.com>
3971 * buffer.c: Make find-file-compare-truenames default to true on
3974 * realpath.c (win32_abs_start):
3976 (win32_readlink): New functions.
3977 (xrealpath): Return really real filenames on windows.
3979 * fileio.c (Ffile_truename): Make file-truename work on windows.
3981 2000-11-29 Didier Verna <didier@xemacs.org>
3983 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3984 * faces.c (update_face_cachel_data): use it.
3985 * faces.c (add_face_cachel): use it. Complete background pixmap
3986 frobbing in face cache if `update_face_cachel_data' has not done so.
3988 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
3990 * search.c (string_match_1): Don't set last_thing_searched
3993 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
3995 * buffer.c: Include casetab.h
3996 (common_init_complex_vars_of_buffer): Use new case-table object.
3997 * buffer.h: Include casetab.h
3998 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3999 (DOWNCASE_TABLE_OF): Ditto.
4000 * bufslots.h: Remove char-tables and add case-table.
4001 * casetab.c: Include casetab.h
4002 (CASE_TABLE_P): Removed.
4003 (mark_case_table): New function.
4004 (allocate_case_table): New function.
4005 (Fcase_table_p): Use new case-table.
4006 (case_table_char): New function.
4007 (Fget_case_table): Ditto.
4008 (Fput_case_table): Ditto.
4009 (Fput_case_table_pair): Ditto.
4010 (Fcopy_case_table): Ditto.
4011 (Fcurrent_case_table): Return case-table.
4012 (Fstandard_case_table): Return case-table.
4013 (Fset_case_table): Fix doc-string.
4014 (set_case_table): Use case-table
4015 (syms_of_casetab): DEFSUBR new functions.
4016 (complex_vars_of_casetab): Set up standard case-table.
4017 * casetab.h: New file.
4018 * editfns.c: Include casetab.h
4019 (Fcompare_buffer_substrings): Use case-table.
4020 * inline.c: Include casetab.h
4021 * lisp.h: Remove bogus extern.
4022 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4023 * search.c: Include casetab.h
4024 (TRANSLATE_ASCII): Removed.
4025 (TRANSLATE): Unconditionally translate character.
4026 (looking_at_1): Use case-table.
4027 (string_match_1): Ditto.
4028 (fast_string_match): Ditto.
4029 (search_command): Ditto.
4030 (search_buffer): Separate boyer_moore. Check whether
4031 boyer_moore is poosible.
4032 (simple_search): New function.
4033 (boyer_moore): Separated from search_buffer. Translate char.
4035 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
4037 * regex.c (RE_TR_ASCII): Removed.
4038 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4039 (PATFETCH): Call PATFETCH_RAW.
4040 (PATFETCH_RAW): Fetch Emchar.
4041 (PATUNFETCH): Decrement charptr.
4042 (GET_BUFFER_SPACE): Rename b to buf_end.
4044 (BUF_PUSH_2): Ditto.
4045 (BUF_PUSH_3): Ditto.
4046 (EXTEND_BUFFER): Ditto.
4047 (SET_LIST_BIT): Ditto.
4048 (regex_compile): Ditto. Translate non ASCII char.
4049 (compile_range): Ditto.
4050 (re_search_2): Ditto.
4051 (re_match_2_internal): Compare Emchar.
4052 (bcmp_translate): Ditto.
4054 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
4056 * lisp.h (basic char/int typedefs): comment improvement.
4058 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
4060 * emacs.c (main_1): unconditional pdump unstomping; don't save and
4061 unstomp inhibit_site_lisp. Improve comments.
4063 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
4065 * mule-charset.c (Fcharset_property): improve type checking, comments.
4067 2000-11-28 Andy Piper <andy@xemacs.org>
4069 * redisplay-output.c (redisplay_output_subwindow): make sure we do
4070 clipped display for windows in the gutter also.
4071 (redisplay_display_boxes_in_window_p): change semantics of return
4072 codes to be more intuitive.
4074 * gutter.h: declare display_boxes_in_gutter_p.
4076 * gutter.c (display_boxes_in_gutter_p): new function for
4079 2000-11-22 Andy Piper <andy@xemacs.org>
4081 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4084 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
4086 * callproc.c (Fold_call_process_internal):
4087 * gpm.c (Freceive_gpm_event):
4088 (tty_get_foreign_selection): Might be just warning supression.
4089 * fileio.c (Fwrite_region_internal):
4090 (Fset_visited_file_modtime):
4091 * keymap.c (event_matches_key_specifier_p):
4092 Initialize GCPROed variable.
4094 * menubar-x.c (command_builder_find_menu_accelerator):
4095 Initialize before use.
4097 2000-11-23 Andy Piper <andy@xemacs.org>
4099 * unexcw.c (unexec): make the resulting executable executable.
4101 2000-11-21 Martin Buchholz <martin@xemacs.org>
4103 * doc.c (get_doc_string):
4104 Use size_t, not int, for result of XSTRING_LENGTH.
4106 * cmds.c (Fdelete_char):
4107 * cmds.c (Fpoint_at_eol):
4108 * cmds.c (Fself_insert_command):
4109 Use EMACS_INT, not int, for result of XINT.
4110 Someday, someone will want to insert more than 2**31 identical characters.
4112 * cmds.c (Fdelete_char):
4113 * cmds.c (Fdelete_backward_char):
4114 * syntax.c (Fforward_word):
4115 * syntax.c (Fforward_comment):
4116 Make COUNT argument optional, for consistency with forward-char et al.
4118 2000-11-22 Martin Buchholz <martin@xemacs.org>
4121 * print.c (long_to_string):
4122 Return a useful value: the pointer at end of data written.
4125 Use `static const char * const' for constant strings.
4126 (union printf_arg): Delete `i', `ui' members.
4129 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4130 Do all printf-ing via the `l' specifier.
4131 Use EMACS_INT instead of int.
4134 2000-11-20 Didier Verna <didier@xemacs.org>
4136 * faces.c (update_face_cachel_data): don't frob the background
4137 pixmap when the window is being created. The face is needed but
4140 2000-11-20 Andy Piper <andy@xemacs.org>
4142 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4143 messing with a debug environment.
4145 2000-11-20 Martin Buchholz <martin@xemacs.org>
4147 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4149 2000-11-20 Martin Buchholz <martin@xemacs.org>
4151 * casetab.c (Fcase_table_p): Fix compile error and crash.
4153 2000-11-18 Philip Aston <philipa@mail.com>
4155 * s/cygwin32.h: Cygwin has SVR4-like pty support.
4157 2000-11-18 Martin Buchholz <martin@xemacs.org>
4159 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
4160 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4162 2000-11-17 Martin Buchholz <martin@xemacs.org>
4164 * config.h.in: Define HAVE_ELF_H if elf.h exists.
4165 * unexelf.c: Use HAVE_ELF_H.
4166 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4167 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4168 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4169 Greg Harrington <greg_harrington@hotmail.com> provided a machine
4171 So this is an unexelfsgi.c from a different line of development.
4173 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4175 * regex.c (RE_TR_ASCII): New function.
4176 (RE_TRANSLATE): Call it.
4178 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4180 * buffer.h (TRT_TABLE_OF): Remove assert.
4181 (IN_TRT_TABLE_DOMAIN): Removed.
4183 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
4185 * free-hook.c (log_gcpro):
4186 (show_gcprohist): Add support for GCPRO5.
4188 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
4190 * emacs.c (main_1): Improve -sd error message when --pdump=no.
4192 2000-11-16 Olivier Galibert <galibert@xemacs.org>
4194 * symeval.h: Declare flush_all_buffer_local_cache.
4196 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4197 (flush_buffer_local_cache): Added.
4198 (flush_all_buffer_local_cache): Added.
4200 * lrecord.h: Remove unused XD_LO_RESET_NIL.
4202 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4203 (pdump_dump_data): Ditto.
4204 (pdump_reloc_one): Ditto.
4205 (pdump): Remove unused pdump_qnil. Flush buffer local caches
4209 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4211 * buffer.c: Remove if 0'ed entry.
4212 * buffer.h: Rewrite TRT to use char-table.
4213 * bufslots.h: Remove mirror tables.
4214 * casetab.c: Remove mirror tables.
4215 (CASE_TABLE_P): New macro.
4216 (Fcase_table_p): Element of a case table is string or char-table.
4217 (make_mirror_trt_table): Removed.
4218 (set_case_table): Setup char-table from strings for backward
4220 * dired.c (Fdirectory_files):
4221 * dired-msw.c: (mswindows_get_files):
4222 * lisp.h: Change prototype of re_pattern_buffer.
4223 * regex.c: (RE_TRANSLATE): New macro.
4224 (TRANSLATE_P): Ditto.
4225 Change translate to type RE_TRANSLATE_TYPE.
4226 * regex.h: Define RE_TRANSLATE_TYPE
4227 * search.c (TRANSLATE): New macro.
4228 (TRANSLATE_ASCII): New macro.
4229 Translate table is changed to Lisp_Object.
4230 (signal_failure): Inhibit return.
4232 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4239 Do UNGCPRO before return.
4241 2000-11-14 Martin Buchholz <martin@xemacs.org>
4243 * XEmacs 21.2.37 is released.
4245 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4247 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4248 Add comments about discarded return value.
4250 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4253 * event-stream.c: Fix comments. Remove some #if 0'ed part.
4255 2000-10-27 Andy Piper <andy@xemacs.org>
4257 * gutter.c (Fset_default_gutter_position): default left and right
4259 (calculate_gutter_size): calculate resonable heuristic for left
4260 and right gutter sizes.
4261 (specifier_vars_of_gutter): change left and right gutter sizes to
4263 (calculate_gutter_size_from_display_lines): new function.
4264 (output_gutter): check for resizing on left and right gutters.
4265 (clear_gutter): don't special case top and left gutters.
4266 (specifier_vars_of_gutter): use new signature for
4267 set_specifier_caching.
4269 * glyphs-x.c (x_redisplay_widget): spelling fix.
4270 * glyphs.c (specifier_vars_of_glyphs):
4271 * menubar.c (specifier_vars_of_menubar):
4272 * redisplay.c (specifier_vars_of_redisplay):
4273 * toolbar.c (specifier_vars_of_toolbar):
4274 * window.c (specifier_vars_of_window):
4275 * scrollbar.c (specifier_vars_of_scrollbar):
4276 (complex_vars_of_scrollbar): use new signature for
4277 set_specifier_caching.
4279 * specifier.c (set_specifier_caching): include recompute flag.
4280 (recompute_one_cached_specifier_in_window): always recompute if
4282 (recompute_one_cached_specifier_in_frame): ditto.
4284 * specifier.h (struct specifier_caching): add recompute flag.
4286 2000-10-24 Andy Piper <andy@xemacs.org>
4288 * unexcw.c (copy_executable_and_dump_data_section): add new
4289 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4292 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4294 * console-x.h (x_device): New member modifier_release_time.
4295 * event-Xt.c (x_handle_sticky_modifiers):
4296 Bound interval modifier keys are sticky.
4297 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4298 * events.h: extern it.
4300 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4302 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4304 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4306 * event-stream.c (execute_command_event): Preserve current_events
4307 and the like when event is misc-user-event.
4308 Inhibit quit during the call to maybe_echo_keys.
4310 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
4312 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4313 symlink when buffer is killed.
4314 (inhibit_clash_detection): New variable.
4316 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
4318 * console.c (Fset_input_method): Trigger redisplay on tty.
4320 2000-11-07 Martin Buchholz <martin@xemacs.org>
4322 * process.c (Fprocess_status): Revert to previous behavior:
4323 (process-status "nosuchprocess") ==> nil
4325 2000-11-06 Martin Buchholz <martin@xemacs.org>
4327 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4328 Work around another GCC 2.95.2 optimizer bug.
4330 2000-11-02 Martin Buchholz <martin@xemacs.org>
4332 * process.c (Fget_process): Use LIST_LOOP_2.
4333 (kill_buffer_processes): Use LIST_LOOP_2.
4335 * minibuf.c (Fall_completions):
4336 Delete old non-functional code for FSF fourth argument.
4338 * frame.c (frame_matches_frame_spec):
4339 Renamed from `frame_matches_frametype'. Update all callers.
4340 (device_matches_device_spec):
4341 Renamed from 'device_matches_console_spec'. Update all callers.
4343 * doc.c (Fsubstitute_command_keys):
4344 Remove buffer overflow crash. Small code cleanups.
4346 * casetab.c (check_case_table): Simpler code.
4348 * window.c (Freplace_buffer_in_windows):
4349 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4350 (and similar implementation) as Fdelete_windows_on.
4353 * alloc.c (Fmake_list):
4354 * alloc.c (make_vector):
4355 * alloc.c (Fmake_vector):
4356 * alloc.c (make_bit_vector):
4357 * alloc.c (Fmake_bit_vector):
4358 * alloc.c (Fbit_vector):
4359 * alloc.c (Fmake_string):
4360 * alloc.c (Fpurecopy):
4361 * alloc.c (Fmemory_limit):
4363 * buffer.c (Fget_buffer):
4364 * buffer.c (Fkill_buffer):
4365 * buffer.c (complex_vars_of_buffer):
4366 * bytecode.c (Fcompiled_function_stack_depth):
4367 * callint.c (Fprefix_numeric_value):
4369 * event-stream.c (Fread_key_sequence):
4371 * casetab.c (Fcase_table_p):
4372 * casetab.c (check_case_table):
4373 * casetab.c (Fset_case_table):
4374 * casetab.c (Fset_standard_case_table):
4376 * chartab.c (Fchar_table_type):
4377 * chartab.c (Freset_char_table):
4378 * chartab.c (Fget_char_table):
4379 * chartab.c (Fget_range_char_table):
4380 * chartab.c (Fput_char_table):
4381 * chartab.c (Fmap_char_table):
4382 * chartab.c (Fcategory_table_p):
4383 * chartab.c (Fcheck_category_at):
4384 * chartab.c (Fchar_in_category_p):
4385 * chartab.c (Fcategory_table):
4386 * chartab.c (Fcopy_category_table):
4387 * chartab.c (Fset_category_table):
4388 * chartab.c (Fcategory_designator_p):
4389 * chartab.c (Fcategory_table_value_p):
4390 * cmds.c (Fdelete_char):
4391 * cmds.c (Fdelete_backward_char):
4392 * cmds.c (Fself_insert_command):
4393 * cmds.c (Fself_insert_internal):
4394 * console.c (Fvalid_console_type_p):
4395 * console.c (Fcdfw_console):
4396 * console.c (Fconsole_type):
4397 * console.c (Fconsole_name):
4398 * console.c (Fconsole_device_list):
4399 * console.c (Fconsole_on_window_system_p):
4403 * data.c (Fsubr_interactive):
4404 * data.c (Fchar_to_int):
4405 * data.c (Fint_to_char):
4408 * data.c (Fnumber_to_string):
4409 * data.c (Fstring_to_number):
4411 * database.c (mark_database):
4412 * database.c (finalize_database):
4413 * database.c (Fdatabase_live_p):
4414 * database.c (Fdatabasep):
4415 * device-x.c (Fx_get_resource):
4416 * device.c (Fdfw_device):
4418 * dired.c (Ffile_name_completion):
4419 * dired.c (Ffile_name_all_completions):
4420 * dired.c (Fuser_name_completion):
4421 * dired.c (Fuser_name_completion_1):
4422 * dired.c (Fuser_name_all_completions):
4423 * doc.c (Fdocumentation):
4424 * doc.c (Fdocumentation_property):
4425 * doc.c (Fsubstitute_command_keys):
4427 * editfns.c (Fchar_to_string):
4428 * editfns.c (Fstring_to_char):
4429 * editfns.c (Ftemp_directory):
4430 * editfns.c (Finsert_char):
4431 * editfns.c (Fbuffer_substring_no_properties):
4432 * editfns.c (Fnarrow_to_region):
4433 * editfns.c (Fchar_equal):
4434 * editfns.c (Fchar_Equal):
4435 * editfns.c (Ftranspose_regions):
4436 * emacs.c (Fdump_emacs):
4438 * eval.c (Fcommand_execute):
4439 * eval.c (Fautoload):
4440 * eval.c (Fbacktrace):
4441 * eval.c (Fbacktrace_frame):
4443 * events.c (Fcopy_event):
4444 * events.c (Fcharacter_to_event):
4445 * events.c (Fevent_button):
4446 * events.c (Fevent_process):
4448 * extents.c (Fnext_extent_change):
4449 * extents.c (Fextent_property):
4451 * faces.c (Fmake_face):
4453 * file-coding.c (Fencode_shift_jis_char):
4454 * file-coding.c (Fencode_big5_char):
4455 * fileio.c (Ffile_name_directory):
4456 * fileio.c (Ffile_name_nondirectory):
4457 * fileio.c (Ffile_name_as_directory):
4458 * fileio.c (Fdirectory_file_name):
4459 * fileio.c (Ffile_truename):
4460 * fileio.c (Fsubstitute_in_file_name):
4461 * fileio.c (Ffile_modes):
4462 * fileio.c (Fset_file_modes):
4463 * fileio.c (Fset_default_file_modes):
4464 * fileio.c (Fverify_visited_file_modtime):
4465 * floatfns.c (Facos):
4466 * floatfns.c (Fasin):
4467 * floatfns.c (Fatan):
4468 * floatfns.c (Fcos):
4469 * floatfns.c (Fsin):
4470 * floatfns.c (Ftan):
4471 * floatfns.c (Fbessel_j0):
4472 * floatfns.c (Fbessel_j1):
4473 * floatfns.c (Fbessel_jn):
4474 * floatfns.c (Fbessel_y0):
4475 * floatfns.c (Fbessel_y1):
4476 * floatfns.c (Fbessel_yn):
4477 * floatfns.c (Ferf):
4478 * floatfns.c (Ferfc):
4479 * floatfns.c (Flog_gamma):
4480 * floatfns.c (Fexp):
4481 * floatfns.c (Fexpt):
4482 * floatfns.c (Flog):
4483 * floatfns.c (Flog10):
4484 * floatfns.c (Fsqrt):
4485 * floatfns.c (Fcube_root):
4486 * floatfns.c (Facosh):
4487 * floatfns.c (Fasinh):
4488 * floatfns.c (Fatanh):
4489 * floatfns.c (Fcosh):
4490 * floatfns.c (Fsinh):
4491 * floatfns.c (Ftanh):
4492 * floatfns.c (Fabs):
4493 * floatfns.c (Ffloat):
4494 * floatfns.c (Flogb):
4495 * floatfns.c (Fceiling):
4496 * floatfns.c (Ffloor):
4497 * floatfns.c (Fround):
4498 * floatfns.c (Ftruncate):
4499 * floatfns.c (Ffceiling):
4500 * floatfns.c (Fffloor):
4501 * floatfns.c (Ffround):
4502 * floatfns.c (Fftruncate):
4503 * fns.c (Fstring_equal):
4504 * fns.c (Fstring_lessp):
4509 * fns.c (Fsubstring):
4511 * fns.c (Fold_assoc):
4512 * fns.c (assoc_no_quit):
4514 * fns.c (Fold_assq):
4515 * fns.c (assq_no_quit):
4517 * fns.c (Fold_rassoc):
4519 * fns.c (Fold_rassq):
4520 * fns.c (rassq_no_quit):
4521 * fns.c (Fremassoc):
4522 * fns.c (remassoc_no_quit):
4524 * fns.c (remassq_no_quit):
4525 * fns.c (Fremrassoc):
4526 * fns.c (Fremrassq):
4527 * fns.c (remrassq_no_quit):
4529 * fns.c (Fplist_get):
4530 * fns.c (Fplist_put):
4531 * fns.c (Fplist_remprop):
4532 * fns.c (Fplist_member):
4533 * fns.c (Flax_plist_get):
4534 * fns.c (Flax_plist_put):
4535 * fns.c (Flax_plist_remprop):
4536 * fns.c (Flax_plist_member):
4538 * fns.c (Fold_equal):
4540 * fns.c (Fbase64_encode_region):
4541 * fns.c (Fbase64_encode_string):
4542 * fns.c (Fbase64_decode_region):
4544 * frame.c (frame_matches_frame_spec):
4545 * frame.c (device_matches_device_spec):
4546 * frame.c (next_frame):
4547 * frame.c (previous_frame):
4548 * frame.c (Fnext_frame):
4549 * frame.c (Fprevious_frame):
4550 * frame.c (Fframe_property):
4551 * frame.c (Fset_frame_height):
4552 * frame.c (Fset_frame_size):
4556 * glyphs.c (decode_error_behavior_flag):
4557 * glyphs.c (Fmake_image_instance):
4558 * indent.c (Findent_to):
4559 * intl.c (Fignore_defer_gettext):
4560 * keymap.c (Fkeymapp):
4561 * keymap.c (Flookup_key):
4563 * lread.c (Fload_internal):
4564 * lread.c (Feval_buffer):
4565 * lread.c (Feval_region):
4566 * macros.c (Fexecute_kbd_macro):
4567 * marker.c (set_marker_internal):
4568 * marker.c (Fset_marker):
4569 * marker.c (set_marker_restricted):
4570 * marker.c (Fcopy_marker):
4571 * marker.c (noseeum_copy_marker):
4573 * menubar.c (Fpopup_menu):
4575 * mule-charset.c (Fcharset_name):
4576 * mule-charset.c (Fchar_charset):
4577 * mule-charset.c (Fchar_octet):
4578 * mule-charset.c (Fsplit_char):
4579 * mule-wnnfns.c (Fwnn_open):
4580 * mule-wnnfns.c (Fwnn_dict_comment):
4581 * mule-wnnfns.c (Fwnn_quit_henkan):
4582 * mule-wnnfns.c (Fwnn_word_toroku):
4583 * mule-wnnfns.c (Fwnn_word_sakujo):
4584 * mule-wnnfns.c (Fwnn_word_use):
4585 * mule-wnnfns.c (Fwnn_hindo_set):
4587 * objects.c (Fmake_color_instance):
4588 * objects.c (Fmake_font_instance):
4589 * print.c (Fwrite_char):
4591 * process.c (mark_process):
4592 * process.c (print_process):
4593 * process.c (get_process_from_usid):
4594 * process.c (Fprocessp):
4595 * process.c (Fprocess_live_p):
4596 * process.c (Fget_process):
4597 * process.c (Fget_buffer_process):
4598 * process.c (get_process):
4599 * process.c (Fprocess_id):
4600 * process.c (Fprocess_name):
4601 * process.c (Fprocess_command):
4602 * process.c (init_process_io_handles):
4603 * process.c (start_process_unwind):
4604 * process.c (Fstart_process_internal):
4605 * process.c (Fopen_multicast_group_internal):
4606 * process.c (Fset_process_window_size):
4607 * process.c (read_process_output):
4608 * process.c (send_process):
4609 * process.c (Fprocess_tty_name):
4610 * process.c (Fset_process_buffer):
4611 * process.c (Fprocess_buffer):
4612 * process.c (Fprocess_mark):
4613 * process.c (set_process_filter):
4614 * process.c (Fset_process_filter):
4615 * process.c (Fprocess_filter):
4616 * process.c (Fprocess_send_region):
4617 * process.c (Fprocess_send_string):
4618 * process.c (exec_sentinel):
4619 * process.c (Fset_process_sentinel):
4620 * process.c (Fprocess_sentinel):
4621 * process.c (status_notify):
4622 * process.c (Fprocess_status):
4623 * process.c (Fprocess_exit_status):
4624 * process.c (process_send_signal):
4625 * process.c (Fprocess_send_eof):
4626 * process.c (deactivate_process):
4627 * process.c (remove_process):
4628 * process.c (Fdelete_process):
4629 * process.c (kill_buffer_processes):
4630 * process.c (Fprocess_kill_without_query):
4631 * process.c (Fprocess_kill_without_query_p):
4633 * rangetab.c (Fget_range_table):
4634 * rangetab.c (Fput_range_table):
4635 * rangetab.c (Fremove_range_table):
4636 * rangetab.c (Fclear_range_table):
4638 * search.c (Fskip_chars_forward):
4639 * search.c (Fskip_chars_backward):
4640 * search.c (Fskip_syntax_forward):
4641 * search.c (Fskip_syntax_backward):
4642 * search.c (search_command):
4643 * search.c (Freplace_match):
4644 * search.c (Fregexp_quote):
4645 * select.c (Fown_selection_internal):
4646 * select.c (Fselection_owner_p):
4647 * select.c (Fselection_exists_p):
4648 * select.c (Fget_selection_internal):
4651 * symbols.c (Fintern):
4652 * symbols.c (Fintern_soft):
4653 * symbols.c (Funintern):
4654 * symbols.c (Fapropos_internal):
4655 * symbols.c (Fset_default):
4657 * syntax.c (Fsyntax_table_p):
4658 * syntax.c (Fcopy_syntax_table):
4659 * syntax.c (Fset_syntax_table):
4660 * syntax.c (Fchar_syntax):
4661 * syntax.c (syntax_match):
4662 * syntax.c (Fmatching_paren):
4663 * syntax.c (Fforward_word):
4664 * syntax.c (scan_lists):
4665 * syntax.c (Fscan_lists):
4666 * syntax.c (Fscan_sexps):
4667 * syntax.c (Fparse_partial_sexp):
4668 * toolbar.c (Fcheck_toolbar_button_syntax):
4671 * window.c (Fwindowp):
4672 * window.c (Fwindow_live_p):
4673 * window.c (Fwindow_point):
4674 * window.c (Fdelete_window):
4675 * window.c (Fnext_window):
4676 * window.c (Fprevious_window):
4677 * window.c (Fother_window):
4678 * window.c (window_loop):
4679 * window.c (Fget_lru_window):
4680 * window.c (Fsplit_window):
4681 * window.c (Fenlarge_window):
4682 * window.c (Fenlarge_window_pixels):
4683 * window.c (Fshrink_window):
4684 * window.c (Fshrink_window_pixels):
4685 * window.c (change_window_height):
4686 * window.c (Fwindow_configuration_p):
4687 * window.c (Fcurrent_window_configuration):
4689 * casefiddle.c (casify_object):
4690 * casefiddle.c (Fupcase):
4691 * casefiddle.c (Fdowncase):
4692 * casefiddle.c (Fcapitalize):
4693 * casefiddle.c (Fupcase_initials):
4694 * casefiddle.c (casify_region_internal):
4695 * casefiddle.c (casify_region):
4696 * casefiddle.c (Fupcase_region):
4697 * casefiddle.c (Fdowncase_region):
4698 * casefiddle.c (Fcapitalize_region):
4699 * casefiddle.c (Fupcase_initials_region):
4700 * casefiddle.c (Fupcase_word):
4701 * casefiddle.c (Fdowncase_word):
4702 * casefiddle.c (Fcapitalize_word):
4703 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
4704 Replace 0 with '\0' when working with bytes.
4705 Replace initial "(" with "\(" in docstrings.
4707 2000-11-01 Martin Buchholz <martin@xemacs.org>
4709 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4711 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4713 2000-10-31 Martin Buchholz <martin@xemacs.org>
4715 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
4717 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
4719 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4722 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
4724 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4725 (inhibit_auto_save_session): New variable.
4726 (vars_of_fileio): Declare and initialize them.
4727 * fileio.c (Fdo_auto_save): Don't create session file if
4728 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4730 2000-10-31 Martin Buchholz <martin@xemacs.org>
4732 * sgiplay.c (play_internal): C++ compilability.
4733 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4734 * callproc.c (Fold_call_process_internal):
4735 Remove unused vars `env', `first'.
4736 * scrollbar.c (update_scrollbar_instance):
4737 #### unused var `current_window'.
4738 * redisplay-tty.c: Put currently unused vars insert_mode_on,
4739 etc. within #ifdef NOT_YET.
4740 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4741 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4742 * specifier.c (specifier_instance):
4743 #### unused var `tag'.
4744 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4746 2000-10-27 Martin Buchholz <martin@xemacs.org>
4749 * fns.c (list_sort):
4750 * fns.c (Ffillarray):
4751 * fns.c (bytecode_nconc2):
4754 * fns.c (Fmapconcat):
4755 Be pedantically 64-bit correct. For the time when someone will
4756 want to have a list with length > 2**32.
4758 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4759 Work around MIPSpro compiler bug.
4761 * process-unix.c (unix_kill_child_process): Add snarky comment.
4762 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
4764 * config.h.in: Oops, _getpt ==> _getpty
4766 2000-10-26 Martin Buchholz <martin@xemacs.org>
4770 Use void*, not char*, as return type of alloca().
4772 * alloc.c (free_marker): Side effect inside assert expression!
4774 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
4776 * mule-charset.c (Fset_charset_ccl_program): To check
4777 if the given ccl program is valid, use setup_ccl_program()
4778 instead of CHECK_VECTOR().
4779 (Fmake_charset): Likewise.
4781 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
4783 * faces.c (get_extent_fragment_face_cache_index):
4784 Fix cachel.merged_faces memory leak.
4786 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
4788 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4789 Reset MSB of octets obtained by DECODE_SJIS
4790 because of the incompatibility with Emacs.
4791 (ccl_driver)<CCL_ENCODE_SJIS>:
4792 Set MSB of octets before passing them to
4793 ENCODE_SJIS because of the incompatibility
4796 2000-10-18 Daiki Ueno <ueno@unixuser.org>
4798 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4799 (DECLARE_LRECORD): Undo the last change.
4800 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4802 2000-10-17 Daiki Ueno <ueno@unixuser.org>
4804 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4805 the implementation to lrecord_implementations_table.
4807 2000-10-14 Daiki Ueno <ueno@unixuser.org>
4809 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4810 initial value of `lrecord_type_##c_name' and
4811 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4812 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4813 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4814 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4815 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4817 2000-10-17 Martin Buchholz <martin@xemacs.org>
4819 * miscplay.c (sndcnv8S_2mono):
4820 (sndcnv2monounsigned):
4821 (sndcnvULaw_2linear):
4823 Remove implementation-defined behavior.
4825 2000-10-12 Martin Buchholz <martin@xemacs.org>
4827 * input-method-xlib.c: Warning suppression.
4829 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
4831 * mule-ccl.c: Sync up with Emacs 21.0.90.
4832 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4834 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4836 (ccl_driver[WriteMultibyteChar2]): Bug fix.
4837 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4838 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4839 leading char belongs to official 2-dimensional charset.
4840 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4841 write the given character as is. Otherwise,
4842 if it is a multibyte char, convert it by
4843 non_ascii_set_charptr_emchar, then write it.
4844 (CCL_WRITE_STRING): Likewise.
4845 (ccl_get_compiled_code): New function.
4846 (setup_ccl_program): When ccl_prog is invalid,
4848 (Fregister_code_conversion_map): New function.
4849 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4851 * mule-ccl.h: Sync up with Emacs 21.0.90.
4852 (Fregister_ccl_program): export it.
4854 * redisplay-msw.c (separate_textual_runs):
4855 If ccl program is not valid, don't do ccl conversion.
4857 * redisplay-x.c (separate_textual_runs): Ditto.
4859 * file-coding.c (Fmake_coding_system):
4860 When type is ccl and value is vector, register it
4861 with a proper symbol. And checks whether the
4862 given ccl program is valid.
4863 (mule_decode): When calling ccl_driver, if src indicates
4864 NULL pointer, set an empty string instead.
4865 (mule_encode): Likewise.
4867 2000-10-11 Martin Buchholz <martin@xemacs.org>
4869 The following large batch of changes gets us back to a state of
4870 C++ compilability. Extbyte is now a char, which means that
4871 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4873 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4875 * sound.c (Fplay_sound): Type correctness.
4877 * select-x.c (hack_motif_clipboard_selection): Type correctness.
4878 (x_get_window_property): Type correctness.
4879 (receive_incremental_selection): unsigned char ==> Extbyte
4880 (selection_data_to_lisp_data): unsigned char ==> Extbyte
4881 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4882 (Fx_store_cutbuffer_internal): Type correctness.
4884 * process-unix.c (try_to_initialize_subtty): Type correctness.
4886 * objects-x.c (x_print_color_instance): Type correctness.
4887 (x_print_font_instance): Type correctness.
4888 (x_list_fonts): SExtbyte ==> Extbyte.
4889 (valid_x_font_name_p): SExtbyte ==> Extbyte.
4890 (x_find_charset_font): SExtbyte ==> Extbyte.
4891 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
4892 (truename_via_XListFonts): SExtbyte ==> Extbyte.
4893 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4896 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4897 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4898 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4899 (BYTE_C0_P): Use bit ops for char-signedness safety.
4900 (BYTE_C1_P): Use bit ops for char-signedness safety.
4901 (CHARSET_BY_LEADING_BYTE):
4902 (CHARSET_BY_ATTRIBUTES):
4903 Always use inline function.
4904 Use type_checking_assert.
4907 * mule-charset.c (non_ascii_charptr_copy_char):
4908 Modify to work with both ASCII and non-ASCII characters.
4909 Improve docs and variable names.
4910 Replace over-clever fall-through switch with a simple loop.
4911 (Lstream_get_emchar_1):
4912 Replace over-clever fall-through switch with a simple loop.
4914 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4915 Warning suppression.
4917 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4918 the return value of Lstream_getc, which could be EOF as well.
4920 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4922 * lisp.h: Make Extbyte a char, not unsigned char, so that external
4923 APIs can be used on Extbytes without casts. Risky!
4927 * input-method-xlib.c (XIM_init_device):
4928 Use Xlib.h instead of IntrinsicP.h.
4929 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4930 which will break in X11R7.
4931 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4932 to call XRegisterIMInstantiateCallback with correct types.
4934 * gui-x.c (button_item_to_widget_value): Type correctness.
4936 * glyphs.c (bitmap_to_lisp_data): Type correctness.
4938 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4939 (xbm_instantiate_1): Type correctness.
4940 (BUILD_GLYPH_INST): Type correctness.
4942 * fileio.c (Fsubstitute_in_file_name): Type correctness.
4945 (decode_coding_sjis):
4946 (decode_coding_big5):
4947 (decode_coding_ucs4):
4948 (decode_coding_utf8):
4949 (decode_coding_iso2022):
4950 (decode_coding_no_conversion):
4951 Make all decoding functions take an Extbyte * arg.
4952 (encode_coding_sjis):
4953 (encode_coding_big5):
4954 (encode_coding_ucs4):
4955 (encode_coding_utf8):
4956 (encode_coding_iso2022):
4957 (encode_coding_no_conversion):
4958 Make all encoding functions take a Bufbyte * arg.
4959 Use size_t instead of unsigned int for memory sizes.
4960 Only cast to unsigned char whenever dereferencing Extbyte *.
4962 * doc.c (unparesseuxify_doc_string): Type correctness.
4964 * console-x.c (split_up_display_spec):
4965 Rewrite without using details of internal string representation.
4966 (x_semi_canonicalize_device_connection): Type correctness.
4969 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4970 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4971 (HAVE_XFREE386): Removed.
4973 * buffer.h (DEC_CHARPTR): `const' correctness.
4974 (bufbyte_strcmp): New.
4975 (bufbyte_memcmp): New.
4977 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4979 * buffer.h (XCHAR_OR_CHAR_INT):
4980 Always use inline function.
4981 Remove redundant type checking assert() - XINT will abort quite nicely.
4983 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
4985 * search.c (Freplace_match): Set newtext to an empty string.
4987 2000-10-10 Martin Buchholz <martin@xemacs.org>
4989 * s/decosf1-3.h: Remove #include of stropts.h
4990 * s/ptx.h: Remove #include of stropts.h
4991 * s/usg5-4.h: Remove #include of stropts.h
4994 Use stropts.h, not sys/stropts.h.
4995 Use strtio.h, not sys/strtio.h.
4997 2000-10-04 Martin Buchholz <martin@xemacs.org>
4999 * XEmacs 21.2.36 is released.
5001 2000-09-21 Andy Piper <andy@xemacs.org>
5003 * glyphs-x.c (x_redisplay_widget): make sure non-structural
5004 changes still involve copying the widget tree.
5005 (update_widget_face): make sure a change is register in the widget
5006 tree. Call update_tab_widget_face appropriately.
5007 (update_tab_widget_face): ditto.
5008 (x_tab_control_redisplay): make sure non-structural changes still
5009 involve copying the widget tree.
5011 2000-08-31 Daiki Ueno <ueno@unixuser.org>
5013 * lread.c (locate_file): Check the path element is non-nil.
5015 2000-10-02 Martin Buchholz <martin@xemacs.org>
5017 * lisp.h: Warning suppression for SCO compilers.
5019 * redisplay-tty.c (reset_tty_modes): Fix crash.
5020 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5022 2000-09-27 Martin Buchholz <martin@xemacs.org>
5024 Big signal/process handling overhaul. Bugs fixed:
5025 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5026 M-x comint-kill-subjob should work for both values nil and t of
5027 process-connection-type. It was broken on most platforms.
5028 Testing on Irix and Cygwin still needed. Other plaforms tested.
5029 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
5030 * process-unix.c: Signal/Process handling overhaul.
5031 (pty_name): make 64 bytes, as `expect' does, for paranoia.
5032 (allocate_pty): Use all available modern methods of allocating
5033 ptys, falling back to old style BSD allocation as a last resort.
5034 Use allegedly more secure Unix98 pty allocation by default.
5035 (allocate_pty_the_old_fashioned_way): New. the last resort.
5036 (unix_create_process): Push ptem, ldterm, ttcompat where
5037 available. Autoconfiscate.
5038 (try_to_initialize_subtty): New.
5039 (unix_kill_child_process): Proper signal handling for ptys on most
5040 platforms, using special knowledge of AIX, BSD, etc...
5041 (unix_create_process): Always disconnect_controlling_terminal() for
5042 subprocesses, whether using ptys or not.
5043 * process.h: Remove old getpt-dependent PTY code.
5044 * process.c (Fprocess_send_signal): New, obvious generic function.
5045 (decode_signal): New.
5046 (Finterrupt_process):
5050 (Fcontinue_process):
5051 (Fsignal_process): Use decode_signal.
5052 (process_send_signal):
5053 Many docstring corrections.
5054 Allow any signal to be sent to a process object.
5055 * config.h.in: Add symbols for big signal/process overhaul.
5056 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5057 * sysproc.h: Include process-related headers, where available:
5058 sys/stropts.h sys/strtio.h pty.h libutil.h
5066 Remove old S&M pty stuff.
5067 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5068 * systty.h: Simplify cpp hackery, improve comments.
5069 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5071 * editfns.c (Fformat_time_string):
5072 Be a little more paranoid with the return value of ctime.
5074 * fileio.c (check_executable):
5076 Use symbolic constants X_OK, W_OK.
5078 * console-x.c (split_up_display_spec): Fix a warning.
5080 2000-10-02 Martin Buchholz <martin@xemacs.org>
5082 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5083 * ntproc.c (sys_spawnve): make_string ==> build_string
5084 Small clarity improvements.
5086 2000-09-30 Martin Buchholz <martin@xemacs.org>
5088 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5090 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5092 * config.h.in (HAVE_STRCASECMP): Remove.
5094 2000-09-29 Martin Buchholz <martin@xemacs.org>
5096 * redisplay-output.c (redisplay_output_pixmap):
5097 Cleaner and possibly more 64-bit correct code.
5099 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5101 * dumper.c (pdump_load_finish): move restoration of
5102 `noninteractive1' to emacs.c (main_1).
5103 * emacs.c (main_1): protect LISP-visible command-line flags
5106 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
5108 * Makefile.in.in (versionclean): Use EXE_TARGET and
5109 DUMP_TARGET instead of literal program names.
5111 2000-09-20 Martin Buchholz <martin@xemacs.org>
5113 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5115 2000-09-19 Martin Buchholz <martin@xemacs.org>
5117 * *: Spelling mega-patch
5119 2000-09-19 Martin Buchholz <martin@xemacs.org>
5121 * fns.c (bad_bad_turtle):
5122 Delete "Eek!" comment, since we fixed the bug to which it refers.
5124 2000-09-16 Martin Buchholz <martin@xemacs.org>
5126 * alloca.c: Replace REGISTER with register.
5128 2000-09-16 Daiki Ueno <ueno@unixuser.org>
5130 * file-coding.c (ucs_to_char): Use countof.
5132 2000-09-16 Martin Buchholz <martin@xemacs.org>
5134 * file-coding.c: (ucs_to_char):
5135 (complex_vars_of_file_coding):
5136 Use countof instead of sizeof.
5137 Use CHECK_NATNUM instead of CHECK_INT.
5139 * sysdep.c (strcasecmp): Remove.
5140 * device-x.c (ascii_strcasecmp): New.
5141 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5142 Avoid using non-standard non-portable strcasecmp.
5144 2000-09-16 Martin Buchholz <martin@xemacs.org>
5146 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5147 * font-lock.c: remove reference to emacsfns.h.
5148 * search.c: small doc improvement.
5149 * event-Xt.c: correct file names in comments.
5150 * console-x.h Correct file names in comments.
5151 * frame.c: Correct file names in comments.
5152 * event-stream.c: remove Energize from comments.
5154 2000-09-15 Martin Buchholz <martin@xemacs.org>
5156 * symeval.h (DEFERROR_STANDARD):
5159 (DEFSYMBOL_NO_DUMP):
5160 (DEFSYMBOL_MULTIWORD_PREDICATE):
5161 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5163 The construct &##name is not sensible C.
5164 Fixes compilation errors with Unixware native compiler.
5166 2000-09-14 Martin Buchholz <martin@xemacs.org>
5168 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5169 (next_frame_internal): Removed. We now just have next_frame.
5171 Write a simpler and cleaner one-pass algorithm.
5172 Remove called_from_delete_device arg and #ifdefed-out code.
5174 Renamed from prev_frame. Update callers.
5175 Cleaned up to have an analogous implementation to next_frame.
5176 (other_visible_frames_internal): Remove the
5177 called_from_delete_device bogus arg, and hence, remove this
5178 function. Just use other_visible_frames().
5180 * window.c (Fnext_window):
5182 Since next_frame() is guaranteed to return a frame, remove check
5183 for nil inserted in previous patch.
5186 Make code look more like Fnext_window.
5188 Respect the `console' arg when iterating through windows.
5189 Fixes bug: (get-buffer-window buffer t device) not respecting
5191 This function needs more work, as others have pointed out.
5193 * frame.h: Rename prev_frame to previous_frame.
5194 device_matches_console_spec no longer takes a `frame' arg.
5199 Use EMACS_BLOCK_SIGNAL instead of sigblock.
5200 From "Golubev I. N." <gin@mo.msk.ru>.
5202 * make-src-depend: Fix typo.
5204 2000-09-13 Martin Buchholz <martin@xemacs.org>
5206 * window.c (Fnext_window):
5207 next_frame() might return nil, not a frame.
5209 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5211 * frame.c (next_frame_internal):
5212 We've passed a frame if we've passed its device.
5214 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5215 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5217 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
5219 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5220 Allow option to suppress accelerators in menu/dialog items.
5221 (populate_or_checksum_helper): Pass dialog title through above.
5223 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
5225 * event-msw.c (mswindows_key_to_emacs_keysym):
5226 Add "pause" key, fix "menu" key.
5228 2000-09-09 Martin Buchholz <martin@xemacs.org>
5230 * eval.c (reinit_vars_of_eval):
5231 Increase max_lisp_eval_depth to 1000,
5232 required for thai-xtis.el to byte-compile under some circumstances.
5234 2000-09-04 Martin Buchholz <martin@xemacs.org>
5236 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5239 2000-09-01 Martin Buchholz <martin@xemacs.org>
5241 * make-src-depend: Make the generated Makefiles smaller.
5243 * s/hpux.h (SETUP_SLAVE_PTY):
5244 Provide a %d in the format string for the errno argument.
5246 * editfns.c (Ftemp_directory):
5248 Avoid buffer overrun on very long file name.
5250 * input-method-xlib.c (XIM_init_device):
5251 6th parameter of XRegisterIMInstantiateCallback has different
5252 pointer types on different OSes, so simply cast to (void *).
5254 * unexhp9k800.c: Warning fixes. Fiddly changes.
5256 * sysdll.c (dll_open):
5257 shl_load will hang hard if passed a NULL filename.
5258 Simply return NULL for compatibility with dlopen.
5259 * sysdll.c: Conform to XEmacs coding standards.
5261 * sysdep.c (get_pty_max_bytes):
5262 Support pty input lines longer than 512 bytes on HP-UX 10.20.
5264 2000-08-31 Martin Buchholz <martin@xemacs.org>
5266 * tooltalk.c: Add #include <syssignal.h>
5268 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
5270 * s/hpux.h: Don't use undefined function sigunblock().
5272 2000-08-31 Martin Buchholz <martin@xemacs.org>
5274 * config.h.in: Add HAVE_BALLOON_HELP.
5275 * emacs.c: Use HAVE_BALLOON_HELP.
5276 * Makefile.in.in (x_objs):
5277 Make Balloon Help conditional on finding shape.h.
5279 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
5281 * syntax.c (regex_emacs_buffer_p): New variable.
5282 * syntax.h (regex_emacs_buffer_p): extern.
5283 * search.c (looking_at_1):
5285 (fast_string_match):
5286 (search_buffer): Set regex_emacs_buffer_p.
5287 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5288 when before_dot, at_dot, after_dot.
5290 2000-08-23 Andy Piper <andy@xemacs.org>
5292 * gui-x.c (popup_selection_callback): Only set action_occurred
5293 when we really have an image instance.
5294 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5296 2000-08-23 Andy Piper <andy@xemacs.org>
5298 * gui-msw.c (mswindows_handle_gui_wm_command): set
5300 * gui-x.c (popup_selection_callback): ditto.
5302 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5303 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5304 (struct Lisp_Image_Instance): add action_occurred flag.
5306 * glyphs.c (redisplay_subwindow): use action_occurred flag.
5307 (image_instance_changed): ditto.
5308 (reset_frame_subwindow_instance_cache): only unmap windows - do
5309 not remove them from the cache also.
5311 * glyphs-widget.c (tab_control_update): better debug.
5312 (progress_gauge_update): ditto.
5313 (layout_update): ditto.
5314 (layout_instantiate): ditto.
5315 (tab_control_order_only_changed): cope with null pending items.
5317 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5318 debug. Force selection of an item when an action occurred. Cope
5319 with null pending_items.
5320 (mswindows_progress_gauge_redisplay): better debug.
5321 * glyphs-x.c (x_tab_control_redisplay): ditto.
5323 * redisplay.c (redisplay_frame): reset the frame cache if the
5326 * window.c (Fset_window_configuration): potentially re-enable
5328 (window_unmap_subwindows): need to finalize instances here since
5329 it is only used in mark_window_as_deleted.
5331 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
5333 * nas.c (SndOpenDataForReading):
5334 nas.c (WaveOpenDataForReading):
5335 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5336 Somehow escaped from the 2000-08-14 patch.
5338 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
5340 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5341 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5343 2000-08-21 Andy Piper <andy@xemacs.org>
5345 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5346 window if it is not already displayed.
5348 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5349 it is not already displayed.
5351 * window.c (Fset_window_configuration): don't reset the frame
5354 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5355 instances from the frame cache if we are actually finalizing them.
5356 (reset_frame_subwindow_instance_cache): reset frame cache only
5357 after unmapping everything.
5358 (map_subwindow): set displayed flag after mapping.
5360 2000-08-21 Martin Buchholz <martin@xemacs.org>
5362 * data.c (indirect_function):
5363 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5365 * eval.c (function_argcount):
5366 Use original function when signaling errors.
5368 2000-08-18 Andy Piper <andy@xemacs.org>
5370 * frame.c (delete_frame_internal): use new
5371 free_frame_subwindow_instances name.
5373 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5374 (add_tab_item): make return type correct.
5375 (mswindows_tab_control_instantiate): assert index of tab.
5376 (mswindows_tab_control_redisplay): Re-code to use
5377 gui_item_equal_sans_selected and gui_item_list_find_selected.
5379 * glyphs-widget.c (tab_control_update): Correct comment.
5381 * window.c (window_unmap_subwindows): use new
5382 unmap_subwindow_instance_cache_mapper.
5383 (window_unmap_subwindows_cache_mapper): deleted.
5384 (Fset_window_configuration): comparisons should now be with
5385 EQ. Preserve the subwindow instance cache across configuration
5387 (allocate_window): ditto.
5388 (make_dummy_parent): ditto.
5390 * glyphs.c (free_frame_subwindow_instances): rename from
5391 free_frame_subwindow_instance_cache. finalize all instances rather
5392 than just those in the display cache.
5393 (finalize_all_subwindow_instances): walk windows unmapping and
5394 finalizing subwindows.
5395 (unmap_subwindow_instance_cache_mapper): moved from
5396 window.c. Allow finalization as well as unmapping.
5398 * gui.c (gui_item_list_find_selected): new function.
5400 * gui.h (gui_item_list_find_selected): declare.
5402 * glyphs-x.c (x_tab_control_redisplay): pick tab
5403 explicitly. Re-code to use gui_item_equal_sans_selected and
5404 gui_item_list_find_selected.
5406 * glyphs-x.h: add lwlib-utils.h
5408 * buffer.c (Frecord_buffer): undo previous change.
5410 2000-08-09 Vin Shelton <acs@xemacs.org>
5412 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5413 possible. Create temporary files more securely. The patch was
5414 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5415 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
5416 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5419 2000-08-07 Ben Wing <ben@xemacs.org>
5421 * getloadavg.c: remove duplicate (and windows-breaking)
5422 includes of fcntl.h and sys/file.h.
5424 * nt.c: remove duplicate getloadavg() definition.
5426 * sysdll.h (Qdll_filename_encoding): add missing stand-in
5429 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
5431 * eval.c (function_argcount): If function needs to be autoloaded
5432 actually use the loaded definition.
5435 2000-08-05 Ben Wing <ben@xemacs.org>
5437 * getloadavg.c: add prototype for getloadavg(). remove
5438 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5439 of the code). remove duplicate header includes.
5441 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5443 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5444 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5445 useful load average.
5447 * alloc.c (reinit_alloc_once_early): removed references to
5448 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5449 the lisp vars are the only things referencing the malloc_sbrk_*
5450 vars, and they were already if 0'd out. these vars only exist
5451 in the older malloc.c, which is basically unused, and they're
5452 only for informational purposes.
5454 * m\*.h: removed useless VIRT_ADDR_VARIES.
5456 * m\powerpc.h: removed stray NO_ARG_ARRAY.
5458 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
5460 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5461 color if the image is a mono pixmap.
5463 2000-07-30 Ben Wing <ben@xemacs.org>
5465 * Makefile.in.in (release):
5468 * buffer.c (directory_is_current_directory):
5469 * dired-msw.c (mswindows_get_files):
5471 * dired.c (Fdirectory_files):
5472 * dired.c (file_name_completion_stat):
5473 * dired.c (Ffile_attributes):
5474 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5475 preprocessor tricks, to avoid problems on some machines
5478 * callproc.c (egetenv): GC docs.
5481 * console-msw.h (struct mswindows_dialog_id):
5482 * lrecord.h (lrecord_type):
5483 New object for use with MSW dialogs.
5485 * console.h (struct console_methods):
5486 New enable/disable frame methods, for proper modal dialogs.
5488 * device-msw.c (msprinter_default_printer): Fix to follow
5489 proper Mule conventions.
5492 * device-msw.c (signal_open_printer_error):
5493 * device-msw.c (msprinter_init_device):
5494 * device-msw.c (ensure_not_printing):
5495 * device-msw.c (plist_get_margin):
5496 * device-msw.c (Fmsprinter_select_settings):
5497 * device-msw.c (finalize_devmode):
5498 * device-msw.c (Fmsprinter_settings_despecialize):
5499 * device-msw.c (signal_enum_priner_error):
5500 * extents.c (decode_extent):
5501 * extents.c (decode_map_extents_flags):
5502 * extents.c (decode_extent_at_flag):
5503 * extents.c (Fextent_at):
5504 * extents.c (Fextents_at):
5505 * extents.c (symbol_to_glyph_layout):
5506 [[[[2]]]] Use structured errors.
5509 * dialog-msw.c (mswindows_is_dialog_msg):
5510 * dialog-msw.c (mark_mswindows_dialog_id):
5511 * dialog-msw.c (dialog_proc):
5512 * dialog-msw.c (handle_question_dialog_box):
5513 * dialog-msw.c (syms_of_dialog_mswindows):
5514 Define new object to clean up marking; use it as a dialog identifier.
5515 Call new delete-dialog-box-hook.
5517 * dialog-x.c (dbox_selection_callback):
5518 * dialog-x.c (dbox_descriptor_to_widget_value):
5519 * dialog-x.c (x_make_dialog_box_internal):
5520 Call new delete-dialog-box-hook.
5524 * dialog.c (syms_of_dialog):
5525 * dialog.c (vars_of_dialog):
5526 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5529 * eval.c (signal_call_debugger):
5530 when noninteractive, output stack traces on the console instead
5531 of in a (never-seen) buffer.
5533 * eval.c (signal_type_error):
5534 * eval.c (invalid_argument_2):
5536 new funs for use w/structured errors.
5539 * event-Xt.c (x_to_emacs_keysym):
5540 * event-Xt.c (describe_event):
5541 * event-Xt.c (emacs_Xt_event_handler):
5542 * event-Xt.c (vars_of_event_Xt):
5544 * event-msw.c (mswindows_wnd_proc):
5545 * event-msw.c (vars_of_event_mswindows):
5546 rename {x,mswindows}-debug-events to debug-{}-events for
5547 consistency with other debug-foo variables.
5550 document next-event more clearly.
5552 * fileio.c (Ffile_name_directory):
5553 * fileio.c (Ffile_name_nondirectory):
5554 * fileio.c (Funhandled_file_name_directory):
5555 * fileio.c (file_name_as_directory):
5556 * fileio.c (Ffile_name_as_directory):
5557 * fileio.c (directory_file_name):
5558 * fileio.c (Fdirectory_file_name):
5559 * fileio.c (Fmake_temp_name):
5560 * fileio.c (Ffile_truename):
5561 * fileio.c (Fsubstitute_in_file_name):
5562 * fileio.c (expand_and_dir_to_file):
5563 * fileio.c (barf_or_query_if_file_exists):
5564 * fileio.c (check_executable):
5565 * fileio.c (Ffile_exists_p):
5566 * fileio.c (Ffile_writable_p):
5567 * fileio.c (Ffile_directory_p):
5568 * fileio.c (Ffile_regular_p):
5569 * fileio.c (Ffile_modes):
5570 * fileio.c (Ffile_newer_than_file_p):
5571 * fileio.c (Fverify_visited_file_modtime):
5572 * fileio.c (Fset_visited_file_modtime):
5573 * fileio.c (auto_save_1):
5578 * frame-msw.c (mswindows_init_frame_1):
5579 * frame-msw.c (mswindows_enable_frame):
5580 * frame-msw.c (error_frame_unsizable):
5581 * frame-msw.c (msprinter_init_frame_1):
5582 * frame-msw.c (msprinter_init_frame_3):
5583 * frame-msw.c (console_type_create_frame_mswindows):
5585 implement new enable/disable frame methods.
5588 * frame-x.c (x_enable_frame):
5589 * frame-x.c (console_type_create_frame_x):
5590 implement new enable/disable frame methods.
5593 * frame.c (Fdisable_frame):
5594 * frame.c (syms_of_frame):
5595 * frame.h (struct frame):
5596 implement new enable/disable frame methods/functions.
5601 * glyphs-msw.c (mswindows_widget_instantiate):
5602 comment that initial-focus should be implemented.
5605 * glyphs-widget.c (check_valid_instantiator):
5606 * glyphs-widget.c (check_valid_orientation):
5607 * glyphs-widget.c (check_valid_tab_orientation):
5608 * glyphs-widget.c (check_valid_justification):
5609 * glyphs-widget.c (check_valid_border):
5610 * glyphs-widget.c (check_valid_callback):
5611 * glyphs-widget.c (check_valid_int_or_function):
5612 * glyphs-widget.c (check_valid_string_or_vector):
5613 * glyphs-widget.c (check_valid_item_list_1):
5614 * glyphs-widget.c (widget_validate):
5615 * glyphs-widget.c (combo_box_validate):
5616 * glyphs-widget.c (widget_instantiate):
5617 * glyphs-widget.c (syms_of_glyphs_widget):
5618 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5619 * glyphs-widget.c (image_instantiator_combo_box):
5620 * glyphs-widget.c (image_instantiator_scrollbar):
5621 * glyphs-widget.c (image_instantiator_tab_control):
5622 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5624 support (unimplemented) keyword initial-focus.
5625 reindent long macros.
5627 * glyphs-x.c (x_redisplay_widget):
5628 * glyphs-x.c (x_button_instantiate):
5629 * glyphs-x.c (x_button_redisplay):
5630 * glyphs-x.c (x_progress_gauge_instantiate):
5631 * glyphs-x.c (x_edit_field_instantiate):
5632 * glyphs-x.c (x_combo_box_instantiate):
5633 * glyphs-x.c (x_tab_control_instantiate):
5634 * glyphs-x.c (x_label_instantiate):
5636 * gui-x.c (button_item_to_widget_value):
5637 * gui-x.c (gui_items_to_widget_values_1):
5638 * gui-x.c (gui_item_children_to_widget_values):
5639 * gui-x.c (gui_items_to_widget_values):
5641 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5642 add new flag to gui-parsing routines to indicate whether
5643 accelerator specs should be supported.
5645 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5647 * glyphs.h (struct Lisp_Image_Instance):
5648 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5649 add initial-focus flag.
5652 * gui.c (syms_of_gui):
5653 * gui.c (vars_of_gui):
5654 clean up menu-no-selection-hook.
5657 support delete-dialog-box-hook.
5659 * lread.c (Fload_internal):
5660 * lread.c (locate_file_in_directory_mapper):
5664 * lrecord.h (struct toolbar_button):
5665 * lrecord.h (syms_of_toolbar):
5666 document how to create a new object.
5668 * menubar-msw.c (mswindows_char_is_accelerator):
5669 may be called on frames w/o menus.
5671 * menubar.c (vars_of_menubar):
5672 clean up :filter docs.
5679 * process-nt.c (validate_signal_number):
5680 * process-nt.c (signal_cannot_launch):
5681 * process-nt.c (nt_create_process):
5682 * process-nt.c (nt_send_process):
5683 * process-nt.c (nt_kill_child_process):
5684 * process-nt.c (nt_open_network_stream):
5685 * process-nt.c (syms_of_process_nt):
5687 delete quote-handling. call new lisp code that does it better.
5689 * process-unix.c (connect_to_file_descriptor):
5690 * process-unix.c (allocate_pty):
5691 * process-unix.c (unix_send_process):
5692 * process-unix.c (unix_kill_child_process):
5693 * process-unix.c (unix_open_network_stream):
5694 * process-unix.c (unix_open_multicast_group):
5698 * process.c (Fstart_process_internal):
5699 (2). need to canonicalize process path even if absolute.
5701 * select-msw.c (symbol_to_ms_cf):
5702 * select-msw.c (ms_cf_to_symbol):
5703 * select-msw.c (cf_is_autofreed):
5704 * select-msw.c (mswindows_destroy_selection):
5706 * select.c (syms_of_select):
5708 support dibv5, fix bugs. (from Mike Alexander)
5710 * select.c (Fget_selection_internal):
5711 * select.c (select_convert_out):
5714 * sysdep.c (xemacs_stat):
5719 but keep original stat() here because we provide encapsulation
5723 * sysfile.h (fstat):
5724 remove stat garbage.
5728 don't include tchar.h. it's inappropriate because it makes
5729 compile-time distinctions when we want runtime distinctions.
5730 (we provide our own tchar replacements)
5733 use default object printer for toolbar-button.
5736 make sure we don't encapsulate.
5738 * window.c (vars_of_window):
5739 emphasize that temp-buffer-show-hook is obsolete.
5741 2000-08-05 Martin Buchholz <martin@xemacs.org>
5743 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5744 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5746 * events.c (Fevent_timestamp_lessp):
5747 Not 64-bit clean. Use EMACS_INT, not int.
5749 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
5751 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5752 unsigned int and changed the last enum to
5753 lrecord_type_last_built_in_type.
5754 (lrecord_implementations_table): changed prototype to know how
5755 long the array is supposed to be.
5756 (lrecord_type_count): new unsigned int to keep track of the
5757 current number of lisp lrecord types.
5758 (DEFINE_EXTERNAL_LRECORD):
5759 (DECLARE_EXTERNAL_LRECORD): Added these two for external
5760 dynamic-modules to declare new lisp types. They are the same
5761 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5762 int for each new type, and increment lrecord_type_count by 1.
5764 * alloc.c (lrecord_implementations_table): Changed to reference
5765 lrecord_type_last_built_in_type for the size of the array.
5766 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5768 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5770 * glyphs.h (check_valid_item_list): Renamed from
5771 check_valid_item_list_1.
5773 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5775 * select.c (Qselect_coerce): New.
5776 * select.c (Vselection_coercion_alist): New.
5777 * select.c (syms_of_select): Declare.
5778 * select.c (get-selection-internal): Use it.
5779 Use the new select-coerce functionality.
5781 * select.c (select_coerce): New.
5782 * select.h (select_coerce): Declare.
5783 New function to coerce one type of data into another.
5785 2000-08-03 Martin Buchholz <martin@xemacs.org>
5787 * callproc.c (Fcall_process_internal):
5788 (Fcall_process_internal):
5789 * process-unix.c (unix_create_process):
5790 Save and restore the value of errno, so that error messages are accurate.
5792 2000-08-01 Martin Buchholz <martin@xemacs.org>
5794 * elhash.c (print_hash_table):
5795 Fix printing of hash tables to also use `key-and-value' instead of `t'.
5796 Prettify docstrings and indentation.
5798 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5800 * window.c (Fwindow_pixel_edges): Subtract frame border and
5803 2000-07-31 Andy Piper <andy@xemacs.org>
5805 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5806 will acknowledge the change.
5808 * glyphs.h: declare tab_control_order_only_changed.
5810 * glyphs-x.c (x_tab_control_redisplay): use
5811 tab_control_order_only_changed.
5813 * glyphs-widget.c (tab_control_order_only_changed): new function.
5815 * glyphs-msw.c (mswindows_tab_control_redisplay): use
5816 tab_control_order_only_changed.
5818 * gui.c (gui_item_equal_sans_selected): new function.
5819 (gui_item_equal): use it.
5821 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5822 :properties in favor of :items..
5824 * glyphs-widget.c (check_valid_item_list): rename from
5825 check_valid_item_list_1.
5826 (check_valid_item_list_1): renamed.
5827 (combo_box_validate): deprecate :properties in favor of :items.
5828 (widget_instantiate): ditto.
5829 (tab_control_update): ditto.
5830 (image_instantiator_combo_box): ditto.
5831 (image_instantiator_tree_view): ditto.
5832 (image_instantiator_tab_control): ditto.
5833 (layout_post_instantiate): remove dead code.
5835 * print.c (debug_print_no_newline): only write to debugger if in
5838 * elhash.c (Fmake_hash_table): update doc string.
5840 * event-msw.c (mswindows_wnd_proc): don't allow processing of
5841 messages whilst in GC. This at least stops XEmacs crashing but has
5842 the potential for wierd behaviour.
5844 2000-07-31 Martin Buchholz <martin@xemacs.org>
5847 Make existence of s&m files optional.
5849 * s/bsd386.h: Remove HAVE_GETLOADAVG.
5850 * s/freebsd.h: Remove HAVE_GETLOADAVG.
5851 * s/gnu.h: Remove HAVE_GETLOADAVG.
5852 * s/netbsd.h: Remove HAVE_GETLOADAVG.
5853 * s/sol2.h: Remove HAVE_GETLOADAVG.
5854 * lisp.h: Remove getloadavg() declaration.
5856 Include <sys/loadavg.h> if available.
5857 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5858 * config.h.in: Group together getloadavg()-related macros.
5859 Use only configure-time tests to detect getloadavg().
5861 2000-07-30 Martin Buchholz <martin@xemacs.org>
5863 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5865 2000-07-25 Andy Piper <andy@xemacs.org>
5867 * syswindows.h: add tchar.h for native builds.
5869 * frame.c (syms_of_frame): remove set-glyph-image.
5871 * general-slots.h: add Qset_glyph_image.
5873 * glyphs-widget.c (layout_update): add domain arg to
5875 (syms_of_glyphs_widget): remove set-glyph-image.
5877 2000-07-23 Ben Wing <ben@xemacs.org>
5879 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5882 2000-07-22 Andy Piper <andy@xemacs.org>
5884 * symsinit.h: add syms_of_win32().
5886 * gui-msw.c (syms_of_gui_mswindows): remove
5887 Fmswindows_shell_execute.
5888 (Fmswindows_shell_execute): moved to win32.c.
5890 * emacs.c (main_1): add syms_of_win32 ().
5892 * win32.c (init_potentially_nonexistent_functions): rewrite in
5893 compiler-friendly terms.
5894 (Fmswindows_shell_execute): move here from gui-msw.c.
5895 (syms_of_win32): new.
5897 * device-msw.c (Fmswindows_printer_list): clean up args to
5899 Don't include tchar under cygwin or mingw.
5900 (msprinter_default_printer): make cygwin-friendly.
5902 2000-07-21 Andy Piper <andy@xemacs.org>
5904 * glyphs-widget.c (image_instantiator_tree_view): use tab
5905 control's update function.
5906 (layout_property): new function. Retrieve items.
5908 * glyphs-msw.c (mswindows_tree_view_redisplay): new
5909 function. Re-populate the tree view from the pending items.
5911 * glyphs.c (instantiate_image_instantiator): Make sure the domain
5912 is designated the parent if the domain is an image instance. This
5913 is needed so that dirtiness can be cascade up the hierarchy and
5914 thus for layout children to be redisplayed correctly.
5915 (allocate_image_instance): rename glyph -> parent.
5917 * redisplay.h: change redisplay_output_layout signature.
5919 * redisplay-msw.c (mswindows_output_display_block): use domain
5922 * redisplay-x.c (x_output_display_block): use domain arg.
5924 2000-07-10 Andy Piper <andy@xemacs.org>
5926 * window.c (Fset_window_configuration): add comment.
5928 * redisplay-output.c (compare_runes):
5929 (redisplay_output_subwindow): redisplay rather than update subwindow.
5930 (redisplay_output_layout): ditto.
5932 * redisplay-msw.c (mswindows_frame_output_end):
5933 (mswindows_frame_output_end): make defer window pos optional.
5935 * lisp.h: add Flast.
5937 * glyphs.h (struct image_instantiator_methods): add dest_mask top
5938 normalize method. Change update method to be for changed
5939 instantiators. Add redisplay method. Change signature of layout
5941 (struct Lisp_Image_Instance): add instantiator.
5942 (IMAGE_INSTANCE_INSTANTIATOR): new.
5943 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5944 (XIMAGE_INSTANCE_INSTANTIATOR): new.
5945 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5948 (find_instantiator_differences): new function.
5949 (Fset_instantiator_property): new convenience function.
5950 (check_image_instance_structure): strictly check for vector
5952 (normalize_image_instantiator): make non-static.
5953 (instantiate_image_instantiator): pass on dest_mask and use new
5954 signatures for image_instance_layout and friends.
5955 (mark_image_instance): mark the instantiator. Mark the subwindow
5956 face not the widget face.
5957 (image_instance_equal): add instantiator.
5958 (image_instance_hash): ditto.
5959 (allocate_image_instance): ditto.
5960 (Fset_image_instance_property): removed.
5961 (Fimage_instance_file_name): ditto.
5962 (Fcolorize_image_instance): ditto.
5963 (image_instance_layout): add offsets to be set.
5964 (update_image_instance): new function. update an image instance
5965 from its changed instantiator.
5966 (inherit_normalize): add dest_mask.
5967 (xbm_normalize): ditto.
5968 (xface_normalize): ditto.
5969 (xpm_normalize): ditto.
5970 (text_update): set_property -> update.
5971 (image_instantiate): use the glyph identity as a hash key, not the
5973 (glyph_width): use new image_instance_layout signature.
5974 (glyph_ascent): ditto.
5975 (glyph_descent): ditto.
5976 (glyph_height): ditto.
5977 (glyph_query_geometry): ressurrect.
5978 (glyph_layout): ditto.
5979 (redisplay_subwindow): update -> redisplay.
5980 (syms_of_glyphs): add Fset_instantiator_property.
5981 (image_instantiator_format_create): set_property -> update.
5984 (autodetect_normalize): add dest_maks to signature.
5985 (x_redisplay_subwindow): update -> redisplay.
5986 (x_redisplay_widget): ditto.
5987 (x_button_redisplay): ditto.
5988 (x_progress_gauge_redisplay): ditto.
5989 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5991 (console_type_create_glyphs_x): update -> redisplay.
5992 (image_instantiator_format_create_glyphs_x): ditto.
5995 (check_valid_instantiator): disallow glyphs in the instantiator,
5996 they must now be vectors.
5997 (check_valid_instantiator_list): ditto.
5998 (glyph_instantiator_to_glyph): use internal symbol rather than
6000 (widget_update): renamed from widget_set_property. Call cascaded
6002 (redisplay_widget): renamed from update_widget.
6003 (widget_layout): image_instance_layout now takes position as well
6005 (widget_normalize): ditto.
6006 (widget_instantiate): ditto.
6007 (tab_control_query_geometry) ditto.:
6008 (tab_control_update): renamed from tab_control_set_property.
6009 (progress_gauge_update): set_property -> update.
6010 (layout_normalize): rewrite so that child instantiators are
6012 (layout_update): new function. Create glyphs from the normalized
6013 children and cope with any other layout keywords. We do not
6014 instantiate children here that will be take care of by
6015 redisplay_output_layout.
6016 (layout_instantiate): call layout_update and not much else.
6017 (layout_post_instantiate): not sure whether this is needed
6019 (layout_query_geometry): query glyph geometry rather than
6020 image_instance geometry.
6021 (layout_layout): set offsets from pass in parameters. Use glyph
6022 geometry and layout functions rather than image instance ones.
6023 (native_layout_layout): ditto.
6024 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6025 (image_instantiator_widget): set_property -> update.
6026 (image_instantiator_buttons): ditto.
6027 (image_instantiator_progress_guage): ditto.
6028 (image_instantiator_tab_control): ditto.
6029 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6030 (image_instantiator_layout): add update method.
6032 * glyphs-msw.c (bmp_normalize):
6033 (mswindows_resource_normalize): add dest_mask so that it can be
6034 proprogated by layout_normalize.
6035 (begin_defer_window_pos): make optional because it may not be the
6036 right thing to do and it introduces differences with X.
6037 (mswindows_unmap_subwindow): ditto.
6038 (mswindows_map_subwindow): ditto.
6039 (mswindows_redisplay_subwindow): renamed from
6040 mswindows_update_subwindow.
6041 (mswindows_redisplay_widget): ditto.
6042 (mswindows_button_redisplay): renamed from
6043 mswindows_button_update. Update is now what the instantiation
6044 function does for a changed instantiator.
6045 (mswindows_progress_gauge_instantiate): set the progress value
6046 here if appropriate.
6047 (mswindows_tab_control_redisplay): cope with re-ordering of the
6048 members of the tab widget by simply selecting the new top
6049 widget. This makes things appear ok if you click on a tab.
6050 (mswindows_combo_box_instantiate): image_instance_layout now takes
6051 position as well as size.
6052 (mswindows_progress_gauge_redisplay): renamed from
6053 mswindows_progress_gauge_update.
6054 (console_type_create_glyphs_mswindows): fix update -> redisplay.
6055 (image_instantiator_format_create_glyphs_mswindows): ditto.
6057 * glyphs-eimage.c (jpeg_normalize):
6060 (tiff_normalize): add dest_mask so that it can be proprogated by
6065 (hash_table_weakness_validate):
6066 (decode_hash_table_weakness):
6067 (Fhash_table_weakness):
6069 (syms_of_elhash): use Ben's naming scheme for hashtable types..
6071 * console.h (struct console_methods): move update_* to
6074 2000-07-20 Ben Wing <ben@xemacs.org>
6076 * *.[ch] (XSETOBJ): remove unused middle argument.
6077 lisp-disunion.h: correct wrap_object() to one argument.
6079 2000-07-15 Ben Wing <ben@xemacs.org>
6082 * s/cygwin32.h (CYGWIN_CONV_PATH):
6083 Add missing logb prototype for v1.1.
6084 Use post-b20 names and alias to pre-b20 names when pre-b20.
6086 * s/windowsnt.h: [5].
6088 2000-07-15 Ben Wing <ben@xemacs.org>
6090 * Makefile.in.in (x_objs):
6091 * Makefile.in.in (sheap_objs):
6092 * Makefile.in.in (objs):
6093 added win32.o, cosmetic cleanups.
6095 * alloc.c (Fmake_byte_code):
6096 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6097 etc. macros which declare their own args now.
6099 * alloc.c (syms_of_alloc):
6100 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6103 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6105 * buffer.c (Fget_file_buffer):
6106 Fixed GCPRO problem.
6108 * buffer.c (get_truename_buffer):
6109 Fixed comment about GC checking.
6111 * buffer.c (syms_of_buffer):
6112 Undeclared those dedicated frame funs.
6116 Define convenience macros for internal/external conversions.
6117 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6118 and Qenvironment_variable_encoding for cleaner code.
6121 Remove dedicated-frame; in lisp.
6123 * bytecode.c (funcall_compiled_function):
6126 * bytecode.c (syms_of_bytecode):
6130 * console-msw.c (mswindows_show_console): Rewrote.
6132 * console-msw.c (Fmswindows_debugging_output): New.
6133 Sends to OutputDebugString (special MSWin debugger interface).
6135 * console-msw.c (Fmswindows_message_box):
6136 Fixed stupid bugs so it works when called from kill-emacs.
6138 * console-msw.c (syms_of_console_mswindows):
6139 Declare Fmswindows_debugging_output.
6142 New MSWin prototypes.
6144 * console-msw.h (struct mswindows_frame):
6145 New entry last-click-mods for improved button-modifier support.
6147 * console-msw.h (FRAME_MSWINDOWS_POPUP):
6148 New struct entry `popup' with corresponding accessor.
6151 * console-x.c (split_up_display_spec):
6152 * console-x.c (get_display_arg_connection):
6153 * console-x.c (x_semi_canonicalize_console_connection):
6154 * console-x.c (x_canonicalize_device_connection):
6155 [[[6]]]: Change char to more specific type.
6156 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6158 * console-x.c (x_semi_canonicalize_console_connection):
6159 * console-x.c (x_canonicalize_device_connection):
6160 [[[9]]]: Fix up error signalling to use new structured error system.
6163 [[[4]]]: Define codesys aliases:
6164 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6165 Qx_color_name_encoding, Qx_display_name_encoding.
6167 * console.h (struct console_methods):
6168 New method make_dialog_box_internal supersedes older
6169 popup_dialog_box method.
6172 Define many new errors, part of new structured errors.
6174 * data.c (init_errors_once_early):
6175 * data.c (syms_of_data):
6178 * device-msw.c (mswindows_init_device):
6179 [[[5]]]: Cleanup to support NT 3.51.
6181 * device-msw.c (decode_devmode): Cleanup.
6183 * device-msw.c (mswindows_handle_print_setup_dialog_box):
6184 * device-msw.c (mswindows_handle_print_dialog_box):
6185 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6186 * device-msw.c (syms_of_device_mswindows):
6187 Delete the dialog box primitives recently introduced by Kirill and
6188 instead interface to general dialog box interface.
6191 * device-x.c (compute_x_app_name):
6192 * device-x.c (x_init_device):
6193 * device-x.c (Fx_valid_keysym_name_p):
6194 * device-x.c (Fx_set_font_path):
6198 * device.h (wrap_device): New.
6199 First of its kind; meant to replace XSETDEVICE.
6201 * dialog-msw.c: Many file-dialog symbols.
6203 * dialog-msw.c (mswindows_register_popup_frame): New.
6204 * dialog-msw.c (mswindows_is_dialog_msg): New.
6205 For supporting kbd traversal in dialog boxes.
6207 * dialog-msw.c (dialog_proc):
6208 Support hitting ESC in dialogs.
6210 * dialog-msw.c (struct):
6211 Common dialog box errors.
6213 * dialog-msw.c (handle_file_dialog_box): New.
6214 Add file dialog code.
6216 * dialog-msw.c (handle_question_dialog_box):
6217 Redo existing code to support new question dialog syntax.
6219 * dialog-msw.c (console_type_create_dialog_mswindows):
6220 We support new dialog console method.
6222 * dialog-msw.c (syms_of_dialog_mswindows):
6223 * dialog-msw.c (vars_of_dialog_mswindows):
6224 New file dialog symbols, vars.
6227 * dialog-x.c (maybe_run_dbox_text_callback):
6228 * dialog-x.c (dbox_descriptor_to_widget_value):
6229 * dialog-x.c (x_make_dialog_box_internal):
6230 * dialog-x.c (console_type_create_dialog_x):
6231 Mule-ize entire file.
6232 Redo to support question dialog syntax.
6236 * dialog.c (Fmake_dialog_box_internal):
6237 * dialog.c (syms_of_dialog):
6238 Kill old popup-dialog-box, replace with new primitive.
6239 Just call device method or signal error.
6241 * eldap.c (Fldap_open):
6242 * eldap.c (Fldap_search_basic):
6243 * eldap.c (Fldap_add):
6244 * eldap.c (Fldap_modify):
6249 * emacs.c (make_arg_list_1):
6250 * emacs.c (make_arg_list):
6251 Mule-ize call to dll_init().
6255 * emacs.c (make_argc_argv):
6256 * emacs.c (free_argc_argv):
6257 * emacs.c (init_cmdargs):
6259 * emacs.c (Fkill_emacs):
6260 * emacs.c (Fdump_emacs):
6261 Update comments about what can be used in syms_* etc.
6262 Call init_win32() when necessary.
6263 Fix up MS Win dialog box in kill-buffer to actually work right.
6274 * eval.c (condition_case_3):
6276 * eval.c (function_argcount):
6277 * eval.c (funcall_lambda):
6280 * eval.c (type_error): New.
6281 * eval.c (maybe_type_error): New.
6282 * eval.c (continuable_type_error): New.
6283 * eval.c (maybe_continuable_type_error): New.
6284 * eval.c (type_error_with_frob): New.
6285 * eval.c (maybe_type_error_with_frob): New.
6286 * eval.c (continuable_type_error_with_frob): New.
6287 * eval.c (maybe_continuable_type_error_with_frob): New.
6288 New functions for use with structured errors.
6291 * event-Xt.c (x_event_to_emacs_event):
6292 Buttons are now modifiers too.
6294 * event-Xt.c (emacs_Xt_current_event_timestamp):
6295 Implement new event method.
6296 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6299 * event-msw.c (ntpipe_shove_writer): [5].
6300 * event-msw.c (mswindows_enqueue_mouse_button_event):
6301 * event-msw.c (mswindows_drain_windows_queue):
6302 * event-msw.c (mswindows_wnd_proc): [7].
6303 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6304 * event-msw.c (mswindows_modifier_state):
6305 Throughout: support new button modifiers.
6307 * event-msw.c (emacs_mswindows_current_event_timestamp):
6308 Implement new event method.
6309 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6312 * event-stream.c (event_stream_current_event_timestamp): New.
6313 * event-stream.c (maybe_kbd_translate): New functionality.
6314 * event-stream.c (vars_of_event_stream):
6315 Document new kbd-translate-table functionality.
6317 * event-stream.c (Fcurrent_event_timestamp): New.
6318 New primitive for use in fabricated events.
6319 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6321 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6324 * events.c (Fmake_event):
6325 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6329 * events.c (format_event_object): fix gcc warnings.
6331 * events.c (Fevent_timestamp): Document new primitives.
6333 * events.c (TIMESTAMP_HALFSPACE): New.
6335 * events.c (Fevent_timestamp_lessp): New. New primitive for
6336 comparing timestamps correctly (half-space algorithm).
6338 * events.c (Fevent_modifier_bits): Doc fix.
6340 * events.c (Fevent_modifiers): Major doc addition.
6341 * events.c (event_x_y_pixel_internal): Typo fix.
6342 * events.c (syms_of_events): Declare new primitives.
6345 Update long comment for button modifiers, timestamps.
6347 * events.h (struct event_stream):
6348 New current_event_timestamp method.
6351 * extents.c (extent_in_region_p):
6352 * extents.c (decode_extent):
6353 * extents.c (Fset_extent_parent):
6354 * extents.c (decode_map_extents_flags):
6358 * extents.c (struct extent_at_arg):
6359 * extents.c (decode_extent_at_flag):
6360 * extents.c (extent_at_mapper):
6361 * extents.c (extent_at_bytind):
6362 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6363 * extents.c (Fextents_at): New primitive. [9].
6364 * extents.c (symbol_to_glyph_layout): [9].
6365 Support new primitive `extents-at'.
6368 * extents.c (get_text_property_bytind):
6369 extent_at_bytind has another arg.
6372 * extents.c (syms_of_extents): New primitive.
6374 * file-coding.c (Fmake_coding_system): [1].
6375 * file-coding.c (subsidiary_coding_system): fix gcc warning
6376 * file-coding.c (syms_of_file_coding): [2].
6378 * fileio.c (Fexpand_file_name):
6379 * fileio.c (Fsysnetunam):
6380 * fileio.c (Ffile_exists_p):
6381 * fileio.c (Ffile_executable_p):
6382 * fileio.c (Fverify_visited_file_modtime):
6385 * fileio.c (syms_of_fileio): [2].
6387 * filelock.c (lock_file_1):
6388 * filelock.c (current_lock_owner):
6389 * filelock.c (lock_if_free):
6390 * filelock.c (lock_file):
6391 * filelock.c (unlock_file):
6394 * fns.c (concat): Fix gcc warning.
6397 * fns.c (Fold_member):
6399 * fns.c (Fold_memq):
6400 * fns.c (memq_no_quit):
6402 * fns.c (Fold_assoc):
6404 * fns.c (Fold_assq):
6405 * fns.c (assq_no_quit):
6407 * fns.c (Fold_rassoc):
6409 * fns.c (Fold_rassq):
6410 * fns.c (rassq_no_quit):
6412 * fns.c (Fold_delete):
6414 * fns.c (Fold_delq):
6415 * fns.c (delq_no_quit):
6416 * fns.c (Fremassoc):
6418 * fns.c (remassq_no_quit):
6419 * fns.c (Fremrassoc):
6420 * fns.c (Fremrassq):
6421 * fns.c (remrassq_no_quit):
6426 * frame-msw.c (mswindows_init_frame_1):
6427 * frame-msw.c (mswindows_delete_frame):
6428 Register popups with dialog code so keyboard traversing works.
6430 * frame-tty.c (tty_raise_frame_no_select): [1].
6433 * frame-x.c (x_set_frame_text_value):
6434 * frame-x.c (x_set_frame_properties):
6435 * frame-x.c (x_create_widgets):
6439 * frame.c (Fmouse_pixel_position): Minor doc fixes.
6441 * frame.h (wrap_frame): New.
6442 Macro like wrap_device.
6445 * general.c (SYMBOL):
6446 * general.c (syms_of_general):
6447 Major reorg. This is now just a wrapper and symbols themselves
6448 are listed in general-slots.h.
6450 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6451 * glyphs-msw.c (mswindows_resource_instantiate): [5].
6453 * glyphs-msw.c (mswindows_native_layout_instantiate):
6454 Add DS_CONTROL so keyboard traversal will work.
6457 * glyphs-widget.c (syms_of_glyphs_widget):
6458 Move some symbols to general-slots.h.
6461 * glyphs-x.c (xbm_instantiate_1):
6462 * glyphs-x.c (x_xbm_instantiate):
6463 * glyphs-x.c (x_xface_instantiate):
6464 * glyphs-x.c (autodetect_instantiate):
6465 * glyphs-x.c (cursor_font_instantiate):
6466 * glyphs-x.c (x_update_widget):
6467 * glyphs-x.c (x_widget_instantiate):
6468 * glyphs.c (bitmap_to_lisp_data):
6469 * glyphs.c (pixmap_to_lisp_data):
6472 * glyphs.c (syms_of_glyphs):
6476 * gui-x.c (print_widget_value):
6477 * gui-x.c (menu_separator_style_and_to_external):
6478 * gui-x.c (add_accel_and_to_external):
6479 * gui-x.c (button_item_to_widget_value):
6480 * gui-x.c (gui_items_to_widget_values_1):
6481 * gui-x.c (gui_items_to_widget_values):
6482 * gui-x.c (syms_of_gui_x):
6483 * gui-x.c (vars_of_gui_x):
6484 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
6488 Muleize, prototype changes matching gui-x.c.
6491 * gui.c (separator_string_p):
6492 * gui.c (gui_item_add_keyval_pair):
6493 * gui.c (make_gui_item_from_keywords_internal):
6494 * gui.c (signal_too_long_error):
6495 * gui.c (parse_gui_item_tree_item):
6496 * gui.c (syms_of_gui):
6497 * gui.c (vars_of_gui):
6499 menu-no-selection-hook moved here (used by MSWin).
6500 Move some symbols to general-slots.h.
6504 * insdel.c (get_buffer_pos_char):
6505 * insdel.c (get_buffer_range_char):
6508 * keymap.c (keymap_lookup_directly):
6509 * keymap.c (keymap_store):
6510 * keymap.c (ensure_meta_prefix_char_keymapp):
6511 * keymap.c (describe_map):
6513 Support new button modifiers.
6515 * lisp-disunion.h (wrap_object):
6516 * lisp-disunion.h (XSETOBJ):
6517 Rename make_obj to wrap_object.
6520 * lisp-union.h (make_int):
6521 * lisp-union.h (make_char):
6522 Support wrap_object.
6525 * lisp.h (LIST_LOOP):
6526 * lisp.h (EXTERNAL_LIST_LOOP):
6527 * lisp.h (LIST_LOOP_2):
6528 * lisp.h (EXTERNAL_LIST_LOOP_1):
6529 * lisp.h (EXTERNAL_LIST_LOOP_2):
6530 * lisp.h (EXTERNAL_LIST_LOOP_3):
6531 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6532 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6533 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6534 * lisp.h (EXTERNAL_ALIST_LOOP_5):
6535 * lisp.h (EXTERNAL_ALIST_LOOP_6):
6536 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6537 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6538 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6539 * lisp.h (struct Lisp_Symbol):
6540 * lisp.h (maybe_continuable_error_with_frob):
6541 Fix up section comments.
6542 Add new types for char to indicate usage.
6543 Delete symbols auto-generated from general-slots.h.
6544 Add prototypes for structured error functions.
6545 Add long comments describing looping macros and change interface
6546 so that lvalues are automatically declared.
6547 Add NO_DECLARE macro in case callers want to declare lvalues
6550 * lread.c (read_syntax_error):
6551 * lread.c (continuable_read_syntax_error):
6552 * lread.c (read_structure):
6553 * lread.c (sequence_reader):
6554 * lread.c (read_list_conser):
6555 * lread.c (read_compiled_function):
6556 Rename syntax_error and continuable_syntax_error to avoid clash
6557 with same-named structured error functions.
6559 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6560 * menubar-msw.c (populate_menu_add_item):
6561 * menubar-msw.c (populate_or_checksum_helper):
6566 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6567 Mule-ize whole file.
6569 * menubar.c (Fnormalize_menu_item_name): Add optimization.
6571 * mule-charset.c (Fmake_charset):
6572 * mule-wnnfns.c (Fwnn_set_param):
6575 * ntproc.c (create_child):
6576 * ntproc.c (Fwin32_set_current_locale):
6577 Add comments portending doom.
6580 * objects-msw.c (old_font_enum_callback_2):
6581 * objects-msw.c (font_enum_callback_1):
6582 * objects-msw.c (mswindows_enumerate_fonts):
6586 * objects-x.c (allocate_nearest_color):
6587 * objects-x.c (x_parse_nearest_color):
6588 * objects-x.c (x_initialize_color_instance):
6589 * objects-x.c (x_print_color_instance):
6590 * objects-x.c (x_finalize_color_instance):
6591 * objects-x.c (x_valid_color_name_p):
6592 * objects-x.c (x_initialize_font_instance):
6593 * objects-x.c (x_print_font_instance):
6594 * objects-x.c (valid_x_font_name_p):
6595 * objects-x.c (truename_via_FONT_prop):
6596 * objects-x.c (truename_via_random_props):
6597 * objects-x.c (truename_via_XListFonts):
6598 * objects-x.c (x_font_truename):
6599 * objects-x.c (x_font_instance_truename):
6600 * objects-x.c (x_font_instance_properties):
6601 * objects-x.c (x_list_fonts):
6602 * objects-x.c (x_find_charset_font):
6603 Mule-ize entire file.
6610 * print.c (std_handle_out_external):
6611 * print.c (debug_print_no_newline):
6612 * print.c (syms_of_print):
6613 Output to all debugger kinds in debug-print.
6614 Fix console-output code under MSWin to actually work.
6616 * process-nt.c (send_signal):
6617 * process-nt.c (nt_create_process):
6618 Use newer Unicode macros.
6620 * process-unix.c (unix_create_process):
6621 * process-unix.c (unix_canonicalize_host_name):
6622 * process-unix.c (unix_open_network_stream):
6628 * search.c (syms_of_search):
6631 * select-msw.c (mswindows_destroy_selection):
6634 * select-x.c (symbol_to_x_atom):
6637 * select.c (syms_of_select):
6640 * sound.c (Fplay_sound_file):
6644 * specifier.c (decode_specifier_type):
6645 * specifier.c (Fvalid_specifier_locale_type_p):
6646 * specifier.c (check_valid_locale_or_locale_type):
6647 * specifier.c (decode_locale):
6648 * specifier.c (decode_locale_type):
6649 * specifier.c (decode_locale_list):
6650 * specifier.c (check_valid_domain):
6651 * specifier.c (decode_specifier_tag_set):
6652 * specifier.c (Fcanonicalize_tag_set):
6653 * specifier.c (Fdefine_specifier_tag):
6654 * specifier.c (Fspecifier_tag_predicate):
6655 * specifier.c (check_valid_inst_list):
6656 * specifier.c (check_valid_spec_list):
6657 * specifier.c (decode_how_to_add_specification):
6658 * specifier.c (check_modifiable_specifier):
6659 * specifier.c (specifier_add_spec):
6660 * specifier.c (boolean_validate):
6661 * specifier.c (display_table_validate):
6664 * specifier.c (syms_of_specifier):
6665 Move some symbols to general-slots.h.
6669 * symbols.c (Fmapatoms):
6670 * symbols.c (Fapropos_internal):
6673 * symbols.c (set_default_buffer_slot_variable):
6674 * symbols.c (set_default_console_slot_variable):
6677 * symbols.c (defsymbol_massage_name_1):
6678 * symbols.c (defkeyword_massage_name):
6679 * symbols.c (deferror_1):
6680 * symbols.c (deferror):
6681 * symbols.c (deferror_massage_name_and_message):
6683 * symeval.h (DEFSYMBOL):
6684 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6686 * symbols.c (syms_of_symbols):
6690 * symsinit.h (init_win32): New.
6691 Also new is syms_of_dialog_mswindows.
6694 Add new Unicode macros, missing Cygwin wide-char functions,
6695 convenience conversion macros for Qmswindows_tstr, macros for
6696 encapsulating required MSWin <-> Cygwin filename conversions,
6697 prototype for dynamically-extracted (not in NT 3.51) functions.
6702 * tooltalk.c (Fadd_tooltalk_message_arg):
6703 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6704 * tooltalk.c (Fadd_tooltalk_pattern_arg):
6707 * tooltalk.c (syms_of_tooltalk):
6711 * unexnt.c (unexec):
6712 Fix up headers, declaration of unexec() to be more standard.
6714 2000-07-20 Martin Buchholz <martin@xemacs.org>
6716 * offix.h: Revert change to guard macros - they're used in offix.c!
6718 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6720 * lisp.h: Defsubred Fdelete.
6722 * console-msw.h: (msprinter_default_printer): Added.
6724 * console-msw.c (msprinter_canonicalize_console_connection):
6725 (msprinter_canonicalize_device_connection): Added.
6727 * device-msw.c (msprinter_default_printer):
6728 (Fmswingows_get_default_printer):
6729 (signal_enum_priner_error):
6730 (Fmswingows_printer_list): Added.
6732 2000-07-19 Martin Buchholz <martin@xemacs.org>
6734 * XEmacs 21.2.35 is released.
6736 2000-07-19 Martin Buchholz <martin@xemacs.org>
6738 * select-x.c (x_handle_selection_request):
6739 Text selected in xemacs and pasted into xterm failed to appear.
6740 Spelling fixes and cosmetic changes.
6742 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6744 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6745 XEmacs frame (fix for doubling chars in dialog boxes).
6747 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6749 * select.c (select_convert_in, select_convert_out):
6750 Don't call intern() every time.
6752 * select.c (Qselect_convert_in, Qselect_convert_out): New.
6753 * select.c (vars_of_select): Initialise them.
6755 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6757 * select.c (selection-coercible-types): New.
6759 * select.c (own-selection-internal):
6760 * select.c (get-selection-internal):
6761 MULE bug fix - these should default to COMPOUND_TEXT and not
6762 STRING for MULE. I think.
6764 * select.c (select_convert_out): Use selection-coercible-types
6765 to find types that we can attempt to perform coercions on.
6767 2000-07-18 Martin Buchholz <martin@xemacs.org>
6771 Add coding: cookie to identify encoding.
6773 * mule-canna.c (CANNA_mode_keys): make static.
6774 Use proper prototypes, even for functions of no arguments.
6775 Remove external prototype for Fding().
6777 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6779 * select.c (syms_of_select): Add missing DEFSUBR.
6781 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6783 * select.c (get_selection_internal, own_selection_internal):
6784 Make the type default to STRING, rather than placing a nil type
6785 into Vselection_alist.
6787 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6789 * gpmevent.c (tty_selection_exists_p):
6790 * gpmevent.c (tty_own_selection):
6791 Updated parameter lists.
6793 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6795 * select.h (selection-alist): Removed declaration.
6797 * select.h (get_local_selection):
6798 * select.c (get_local_selection):
6801 * select.h (convert_selection): Removed declaration.
6802 * select.c (convert_selection): Removed.
6803 This function belongs in Lisp.
6805 * select.h (select_convert_in): Declare.
6806 * select.h (select_convert_out): Declare.
6807 * select.c (select_convert_in): New.
6808 * select.c (select_convert_out): New.
6809 New conversion functions for other files to call.
6811 * select.h (select_notify_buffer_kill): Declare.
6812 * select.c (select_notify_buffer_kill): New.
6813 New functions that get called from kill-buffer.
6815 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6816 X-specific lisp code.
6818 * select.h: Declare some of the lisp-visible functions for
6821 * select.c (clean_local_selection_data): Removed. This was
6822 a disgusting function, and previously should have been in
6823 select-x.c in any case. The functionality is now provided
6824 in select-convert-from-integer (select.el).
6826 * select.c (available-selection-types): Fixed stupidity where
6827 INTEGER and ATOM got added twice. Also add STRING when we see an
6830 * select.c (get-selection-internal): Removed symbol stripping. No
6831 longer causes conversion when data comes from the internal cache.
6833 * select.c (syms_of_select): Added new functions.
6835 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6836 error checking - previously this called abort!
6838 * select-x.c (x_own_selection): Changed comment.
6840 * select-x.c (x_handle_selection_request): Use select_convert_out.
6841 Don't mess with selection-alist; it's an internal variable of select.c.
6843 * select-x.c (x_get_foreign_selection): Use select_convert_in.
6845 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6846 rather than messing with selection-alist.
6848 * select-msw.c (mswindows_get_foreign_selection):
6849 Use TO_INTERNAL_FORMAT rather than hacking.
6851 2000-07-14 Martin Buchholz <martin@xemacs.org>
6853 * process-unix.c (unix_open_multicast_group):
6854 (unix_open_multicast_group): Remove useless casts.
6856 2000-07-13 Martin Buchholz <martin@xemacs.org>
6858 * sound.c (Fplay_sound): Fix `unused variable' warning.
6860 * emacs.c (main): Use correct type for _environ on SCO5.
6862 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6864 * console.h (own_selection_method):
6865 * console.h (selection_exists_p_method):
6866 * console.h (available_selection_types_method): New.
6867 * console.h (register_selection_data_type_method): New.
6868 * console.h (selection_data_type_name): New.
6870 * console-msw.h (mswindows_destroy_selection): Declare it. New
6871 function & alist to track GlobalAlloc()'d handles that need
6872 releasing when the clipboard data gets replaced or emptied.
6874 * event-msw.c (mswindows_wnd_proc): Call it.
6876 * lisp.h, general.c (Qappend): New symbol representing a
6879 * select.c (own-selection-internal):
6880 * select.c (selection-exists-p):
6881 * select.c (available-selection-types): New.
6882 * select.c (register-selection-data-type): New.
6883 * select.c (selection-data-type-name): New. New functions to deal
6884 with device-specific selection data formats.
6885 * select.c (selection-converter-out-alist): Renamed.
6886 * select.c (selection-converter-in-alist): New.
6887 * select.c (selection-appender-alist): New. Added new alists.
6888 * select.c (syms_of_select, vars_of_select): Added new symbols &
6890 * select.c (get_local_selection): Split.
6891 * select.c: Removed spurious type checking - selections may now be
6892 of any type, not just strings.
6893 * select.c (own-selection-internal):
6895 * select.h, select.c (convert_selection): New. Created
6896 convert_selection() function based on get_local_selection().
6897 * select.h, select.c (QCF_*): New symbols representing mswindows
6899 * select.h, select.c (Qreplace_all, Qreplace_existing): New
6900 symbols representing `how-to-add' modes.
6902 * select-msw.c (x_sym_p): New.
6903 * select-msw.c (symbol_to_ms_cf): New.
6904 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6905 symbols & clipboard formats. Can also handle string names.
6906 * select-msw.c (mswindows_own_selection):
6907 * select-msw.c (mswindows_selection_exists_p):
6908 Added `data-type' parameter. Use it.
6909 * select-msw.c (mswindows_available_selection_types): New.
6910 * select-msw.c (mswindows_register_selection_data_type): New.
6911 * select-msw.c (mswindows_selection_data_type_name): New.
6912 * select-msw.c (mswindows_own_selection):
6913 * select-msw.c (mswindows_get_foreign_selection):
6914 * select-msw.c (mswindows_selection_exists_p): Rewrote.
6915 * select-msw.c (console_create_select_mswindows): Added new methods.
6916 * select-msw.c (mswindows_destroy_selection): New.
6917 * select-msw.c (Vhandle_alist): New list.
6918 * select-msw.c (mswindows_own_selection):
6920 * select-x.c (x_own_selection):
6921 * select-x.c (x_selection_exists_p):
6922 * select-x.c: Added some comments about maybe using new
6924 * select-x.c (x_own_selection):
6926 * specifier.c: Remove definition of Qappend (now in general.c)
6927 * specifier.c (syms_of_specifier): Remove Qappend.
6929 2000-07-12 Martin Buchholz <martin@xemacs.org>
6931 * config.h.in: Add socklen_t.
6933 * s/decosf4-0.h: No special compiler flags needed or desired.
6934 In particular, undefine _BSD for DEC OSF 4.0.
6936 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6938 * redisplay-msw.c (msprinter_frame_output_end): Added.
6939 (console_type_create_redisplay_mswindows): Referred the above.
6941 * frame.c (setup_frame_without_minibuffer): Do not create a
6942 default minibuffer frame on a printer device.
6944 * frame-msw.c (apply_dc_geometry): Added.
6945 (msprinter_start_page):
6946 (msprinter_init_frame_3):
6947 (msprinter_eject_page): Use it.
6949 * console-msw.h (struct msprinter_frame): Added pix_left and top,
6950 and removed residual duplex and orientation properties.
6952 2000-07-11 Martin Buchholz <martin@xemacs.org>
6954 * eval.c (function_argcount): Work around a DEC CC compiler bug.
6956 * unexalpha.c: Remove system prototypes from C sources!
6958 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
6960 * eval.c: Remove references to M-x edit-options in DEFUNs for
6961 `defvar' and `defconst'.
6963 2000-07-09 Martin Buchholz <martin@xemacs.org>
6965 * config.h.in: Remove SMART_INCLUDE hackery.
6968 * config.h.in: Don't use SMART_INCLUDE.
6970 * postgresql.h: Include libpq-fe.h here. Fix typo.
6971 * inline.c: Simply #include "postgresql.h"
6973 - Don't use SMART_INCLUDE
6974 - Use simply "const".
6975 - Use standard doc string conventions.
6976 - Use correct type for result of PQstatus.
6978 2000-07-09 Martin Buchholz <martin@xemacs.org>
6980 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6982 C++ compilation changes.
6983 * config.h.in (EXTERN_C): Define.
6984 * config.h.in (not): This is also a C++ keyword.
6985 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6986 * cm.c: Use EXTERN_C.
6987 * redisplay-tty.c: Use EXTERN_C.
6988 * sysdep.c: Use EXTERN_C. Remove Gould support.
6990 2000-07-09 Martin Buchholz <martin@xemacs.org>
6992 * general.c: Remove duplicate definition for Qfunction.
6994 2000-07-08 Ben Wing <ben@xemacs.org>
6996 * device-msw.c (msprinter_init_device):
6997 * device-msw.c (sync_printer_with_devmode):
6998 * device-msw.c (handle_devmode_changes):
6999 * device-msw.c (print_dialog_worker):
7000 * device-msw.c (Fmsprinter_apply_settings):
7001 * device-msw.c (hash_devmode):
7002 * device-msw.c (Fmsprinter_settings_despecialize):
7003 use Qmswindows_tstr, not Qctext.
7005 * vm-limit.c (check_memory_limits):
7006 avoid infinite loop printing warning messages.
7008 2000-07-05 Craig Lanning <lanning@scra.org>
7010 * Makefile.in.in: Add support for including the Windows resources
7011 when building with the cygwin and mingw targets.
7013 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7014 not set or not correct.
7015 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7016 (init_initial_directory): Don't try to use $PWD on the
7017 WIN32_NATIVE target.
7020 [[Add -mwindows to eliminate console window.]] not required --ben
7021 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7022 (MAIL_USE_POP): removed; now handled by configure.
7024 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7025 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7026 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7027 (MAIL_USE_POP): removed; now handled by configure.
7028 (ENCAPSULATE_STAT): from Dan Holmsand, added.
7029 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7030 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7032 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7033 up from <winsock.h> via systime.h.
7034 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7035 (getpagesize): from Dan Holmsand, added.
7036 Added #endif which was left dangling by Ben's mega patch; added
7037 comment to help prevent this in the future.
7039 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7041 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7043 * console-msw.h (struct mswindows_device): Removed unnecessary
7044 cached device geometry values.
7045 Added update_tick and an accessor macro.
7046 (Lisp_Devmode): Added lrecord declaration.
7047 (struct msprinter_device): Contain devmode as a Lisp object.
7048 Added mswindows_get_selected_frame_hwnd();
7050 * console.h (struct console_methods): Indentation nitpicking.
7052 * device-msw.c (mswindows_init_device): Do not initialize geometry
7053 cache. Initialize update tick.
7054 (mswindows_device_system_metrics): Ask the device for its geometry.
7055 (global_free_2_maybe):
7056 (devmode_to_hglobal):
7057 (handle_printer_changes):
7058 (ensure_not_printing):
7059 (print_dialog_worker):
7060 (Fmsprinter_print_setup_dialog):
7061 (Fmsprinter_print_dialog):
7064 (Fmsprinter_page_setup_dialog): Added functions.
7065 (sync_printer_with_devmode):
7066 (handle_devmode_changes):
7067 (Fmsprinter_get_settings):
7068 (Fmsprinter_select_settings):
7069 (Fmsprinter_apply_settings):
7071 (Fmsprinter_settings_copy):
7072 (Fmsprinter_settings_despecialize):
7076 (hash_devmode): Added functions
7077 (syms_of_device_mswindows): Init devmode lrecord class.
7079 * device.h: Added an exfun for find-device.
7081 * event-msw.c (mswindows_wnd_proc): Do not update the cached
7082 geometry; although, recreate the device compatible DC.
7084 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7085 (msprinter_init_frame_3):
7086 (msprinter_frame_property):
7087 (msprinter_internal_frame_property_p):
7088 (msprinter_frame_properties):
7089 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7090 print job properties (will move to device settings).
7092 * lisp.h: Added symbols.
7094 * general.c (syms_of_general): Declared them.
7096 * hash.c (string_hash): Added.
7098 * lrecord.h (lrecord_type): Added devmode lrecord type.
7100 2000-07-02 Mike Sperber <mike@xemacs.org>
7102 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7105 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
7107 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7110 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
7112 * data.c (Fstring_to_number): Don't recognize floating point if
7115 2000-06-22 Martin Buchholz <martin@xemacs.org>
7117 * glyphs-widget.c (tab_control_query_geometry):
7118 (widget_query_geometry):
7119 (button_query_geometry):
7120 * glyphs.c (text_query_geometry):
7121 Enforce type correctness.
7123 2000-06-18 Martin Buchholz <martin@xemacs.org>
7125 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7126 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7128 2000-06-17 Martin Buchholz <martin@xemacs.org>
7130 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7131 conflicts with gcc's fixincluded version of FOO.h.
7133 * glyphs.h (image_instance_geometry): Remove trailing `,'
7135 2000-06-08 Mike Alexander <mta@arbortext.com>
7137 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7138 (shove_thread): Don't write the same output twice
7139 (make_ntpipe_output_stream): Increase priority of shove thread
7140 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7142 (ntpipe_shove_closer): Don't delete the pipe until we're done with
7145 2000-06-12 Ben Wing <ben@xemacs.org>
7147 * s\mingw32.h (sigset):
7148 * s\windowsnt.h (sigset):
7149 rename msw_ to mswindows_ for consistency with general convention.
7151 2000-06-12 Ben Wing <ben@xemacs.org>
7154 * console-msw.c (mswindows_get_console_hwnd):
7155 * console-msw.c (mswindows_ensure_console_allocated):
7156 * console-msw.c (mswindows_hide_console):
7157 * console-msw.c (mswindows_show_console):
7158 * console-msw.c (mswindows_ensure_console_buffered):
7159 * console-msw.c (mswindows_output_console_string):
7160 * console-msw.c (mswindows_windows9x_p):
7162 * device-msw.c (mswindows_get_workspace_coords):
7163 * device-msw.c (mswindows_device_system_metrics):
7164 * dialog-msw.c (mswindows_popup_dialog_box):
7165 * event-msw.c (mswindows_wnd_proc):
7166 * frame-msw.c (mswindows_size_frame_internal):
7167 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7168 * menubar-msw.c (displayable_menu_item):
7169 * menubar-msw.c (mswindows_char_is_accelerator):
7171 * nt.c (mswindows_sigset):
7172 * nt.c (mswindows_sigrelse):
7173 * nt.c (mswindows_sigpause):
7174 * nt.c (mswindows_raise):
7175 * nt.c (timer_proc):
7177 * ntproc.c (find_child_console):
7178 * ntproc.c (sys_kill):
7180 * print.c (std_handle_out_external):
7181 * process-nt.c (find_child_console):
7182 * process-nt.c (send_signal_the_95_way):
7183 * process-nt.c (ensure_console_window_exists):
7184 * process-nt.c (nt_create_process):
7186 rename msw_ to mswindows_ for consistency with general convention.
7190 include nt.h, not syswindows.h.
7192 * nt.c (mswindows_fstat):
7193 * nt.c (mswindows_stat):
7194 prefix mswindows_ instead of attempting to directly override the
7195 library functions. fix declarations.
7198 include syswindows.h. move some sysdep.h stuff here.
7201 include syswindows.h, not <windows.h>.
7209 * sysdep.c (sys_fstat):
7210 * sysdep.c (sys_stat):
7211 call mswindows versions when appropriate.
7214 move mswin decls to nt.h.
7217 add long comment describing appropriate use of the various windows
7220 2000-06-11 Ben Wing <ben@xemacs.org>
7222 * device-x.c: Correct doc string for sixth arg of x-get-resource.
7224 2000-06-10 Ben Wing <ben@xemacs.org>
7226 * Makefile.in.in (release):
7227 Correction to make sure xemacs.exe always dumped when correct.
7231 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7233 * buffer.c (set_buffer_internal):
7234 [[[[2]]]]: Remove HAVE_FEP code.
7236 * buffer.c (init_initial_directory):
7240 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7244 * callproc.c (call_process_cleanup):
7245 * callproc.c (Fold_call_process_internal):
7246 * callproc.c (child_setup):
7247 * callproc.c (getenv_internal):
7248 * callproc.c (init_callproc):
7249 * callproc.c (vars_of_callproc):
7250 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7251 __CYGWIN32__ -> CYGWIN.
7252 DOS_NT -> WIN32_NATIVE.
7253 Remove MSDOS support/references, converting to WIN32_NATIVE
7255 __MINGW32__ -> MINGW.
7256 Fix windows.h includes.
7257 Remove bogus HAVE_NTGUI.
7263 mswindows_message_outputted added for use in allowing startup
7264 errors on the console to be seen.
7266 * console-msw.c (msw_ensure_console_allocated):
7267 * console-msw.c (msw_output_console_string):
7268 * console-msw.c (DHEADER):
7269 * console-msw.c (DOPAQUE_DATA):
7270 * console-msw.c (DEVENT):
7271 * console-msw.c (DCONS):
7272 * console-msw.c (DCONSCDR):
7273 * console-msw.c (DSTRING):
7274 * console-msw.c (DVECTOR):
7275 * console-msw.c (DSYMBOL):
7276 * console-msw.c (DSYMNAME):
7279 * console-stream.c (stream_init_console):
7280 Fix text/binary problems.
7283 * device-msw.c (mswindows_finish_init_device):
7284 * device-msw.c (mswindows_delete_device):
7287 * device.c (handle_asynch_device_change):
7291 * dgif_lib.c (DGifOpenFileName):
7292 * dgif_lib.c (DGifOpenFileHandle):
7293 * dgif_lib.c (DGifGetLine):
7294 * dgif_lib.c (DGifGetPixel):
7295 Added config.h/lisp.h, fix up includes.
7302 * dired.c (file_name_completion):
7303 * dired.c (Ffile_attributes):
7304 * dired.c (syms_of_dired):
7308 * dumper.c (pdump_file_unmap):
7309 * dumper.c (pdump_load):
7313 * editfns.c (Ftemp_directory):
7314 * editfns.c (user_login_name):
7315 * editfns.c (Fuser_real_login_name):
7316 * editfns.c (get_home_directory):
7319 * elhash.c (finish_marking_weak_hash_tables):
7320 [[[[5]]]]: Fix GCC warnings.
7323 * emacs.c (mswindows_handle_hardware_exceptions):
7324 * emacs.c (make_arg_list_1):
7326 * emacs.c (Fkill_emacs):
7327 * emacs.c (Fdump_emacs):
7329 Fix problems with nested crashes, add long comment.
7331 * event-Xt.c (init_event_Xt_late):
7335 * event-msw.c (mswindows_dde_callback):
7336 * event-msw.c (mswindows_handle_sticky_modifiers):
7337 * event-msw.c (mswindows_wnd_proc):
7341 * events.c (character_to_event):
7345 * fileio.c (Ffile_name_directory):
7346 * fileio.c (Ffile_name_nondirectory):
7347 * fileio.c (directory_file_name):
7348 * fileio.c (Fexpand_file_name):
7349 * fileio.c (Fsubstitute_in_file_name):
7350 * fileio.c (Ffile_name_absolute_p):
7351 * fileio.c (check_executable):
7352 * fileio.c (Ffile_readable_p):
7353 * fileio.c (Ffile_accessible_directory_p):
7354 * fileio.c (Ffile_modes):
7355 * fileio.c (Funix_sync):
7356 * fileio.c (vars_of_fileio):
7359 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7361 Expand getdefdir defn.
7362 Fix bogus rename() comment.
7364 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
7365 to use standard XEmacs include files, e.g. sysfile.h, rather
7366 than system-specific includes.
7372 * frame.c (vars_of_frame):
7376 * getloadavg.c (getloadavg):
7378 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
7379 (We don't use it elsewhere in the code; just add a comment.)
7386 * glyphs-msw.c (mswindows_resource_instantiate):
7389 * glyphs-x.c (x_native_layout_instantiate):
7392 * gui-msw.c (Fmswindows_shell_execute):
7401 * lread.c (locate_file_in_directory_mapper):
7408 * mem-limits.h (get_lim_data):
7420 * nt.c (rva_to_section):
7421 * nt.c (mswindows_executable_type):
7423 Fix closedir() defn.
7426 [[[[8]]]]: *_OK defs moved to sysfile.h.
7435 * print.c (std_handle_out_external):
7439 * process-nt.c (nt_create_process):
7441 try to fix process quoting somewhat.
7443 * process-unix.c (unix_create_process):
7447 * process.c (vars_of_process):
7454 * realpath.c (xrealpath):
7457 * redisplay-tty.c (init_tty_for_redisplay):
7467 * sheap.c (more_static_core):
7468 * sheap.c (report_sheap_usage):
7472 * signal.c (alarm_signal):
7479 * strftime.c (zone_name):
7482 * symsinit.h (init_sunpro):
7486 commctrl.h not in Cygwin b20.1.
7490 * sysdep.c (sys_subshell):
7491 * sysdep.c (init_baud_rate):
7492 * sysdep.c (emacs_get_tty):
7493 * sysdep.c (emacs_set_tty):
7494 * sysdep.c (tty_init_sys_modes_on_device):
7495 * sysdep.c (init_system_name):
7496 * sysdep.c (sys_open):
7497 * sysdep.c (interruptible_open):
7498 * sysdep.c (sys_fopen):
7499 * sysdep.c (sys_mkdir):
7500 * sysdep.c (sys_rename):
7501 * sysdep.c (get_process_times_1):
7508 * sysdir.h (DIRENTRY_NONEMPTY):
7511 * sysdll.c (dll_init):
7517 added text/binary defs.
7523 * sysproc.h (EDESTADDRREQ):
7524 * sysproc.h (poll_fds_for_input):
7541 Always define WIN32_LEAN_AND_MEAN.
7543 * unexcw.c (unexec):
7547 * unexec.c (copy_text_and_data):
7548 * unexec.c (adjust_lnnoptrs):
7552 * unexnt.c (_start):
7555 2000-06-07 Ben Wing <ben@xemacs.org>
7557 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
7558 was used only as a model. We've long since extracted any useful
7559 logic or code out of this. (I just did an exhaustive search.)
7561 * s\msdos.h: Removed.
7563 * s\windows95.h: Removed.
7565 2000-06-10 Ben Wing <ben@xemacs.org>
7569 Don't use extern with fun defs.
7573 Remove nt\inc include.
7574 Remove getdisk, getdefdir. (The former is unused, the latter
7575 expanded in fileio.h.)
7578 * s\windowsnt.h (WIN32_NATIVE):
7579 * s\windowsnt.h (HAVE_STRCASECMP):
7581 Add long comment about preprocessor changes.
7582 Remove getdisk, getdefdir. (The former is unused, the latter
7583 expanded in fileio.h.)
7585 2000-06-10 Ben Wing <ben@xemacs.org>
7594 Remove bogus/unused NO_SOCK_SIGIO.
7596 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
7598 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7601 2000-06-04 Mike Sperber <mike@xemacs.org>
7603 * casetab.c (set_case_table): For `set-standard-case-table',
7604 actually deposit the new case tables where the rest of XEmacs can
7607 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
7609 * data.c (Faset): Don't cast XCHAR() to unsigned char.
7611 2000-06-05 Ben Wing <ben@xemacs.org>
7613 * callproc.c (child_setup): Don't do close_load_descs() under
7614 MS Windows. Put in a comment explaining why.
7616 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
7618 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7619 Toolkit shell" which breaks `kill-compilation' on Windows NT
7620 native, retaining STDERR handling improvements.
7622 2000-06-01 Andreas Jaeger <aj@suse.de>
7624 * s/s390.h: Support for S390, based on a patch by Martin
7625 Schwidefsky <schwidefsky@de.ibm.com>.
7627 2000-05-30 Andy Piper <andy@xemacs.org>
7629 * window.c (allocate_window):
7630 (make_dummy_parent):
7631 (Fset_window_configuration): use new hashtable type.
7633 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7634 (struct image_instantiator_methods):
7635 (struct Lisp_Image_Instance): make instance geometry signed.
7637 * glyphs.c (instantiate_image_instantiator):
7638 (image_instance_query_geometry):
7639 (image_instance_layout):
7640 (image_instance_layout):
7641 (query_string_geometry):
7642 (text_query_geometry):
7643 (image_instantiate):
7644 (image_instantiate):
7645 (cache_subwindow_instance_in_frame_maybe):
7646 (subwindow_query_geometry): make instance geometry signed.
7648 * glyphs-widget.c (widget_query_geometry):
7650 (button_query_geometry):
7651 (tree_view_query_geometry):
7652 (tab_control_query_geometry):
7653 (layout_query_geometry):
7655 (native_layout_layout): make instance geometry signed.
7657 2000-05-29 Olivier Galibert <galibert@pobox.com>
7659 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7662 * general.c (syms_of_general): Add Qfull_assoc symbol.
7664 * data.c (finish_marking_weak_lists): Mark full-assoc lists
7666 (decode_weak_list_type): Decode full-assoc type.
7667 (encode_weak_list_type): Encode full-assoc type.
7668 (Fmake_weak_list): Update doc string.
7670 2000-05-30 Andy Piper <andy@xemacs.org>
7672 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7674 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7675 (decode_hash_table_weakness): ditto.
7676 (Fhash_table_weakness): ditto.
7677 (Fhash_table_type): ditto.
7678 (finish_marking_weak_hash_tables): ditto.
7679 (hash_table_weakness_validate): ditto.
7680 (syms_of_elhash): ditto.
7682 2000-05-28 Martin Buchholz <martin@xemacs.org>
7684 * XEmacs 21.2.34 is released.
7686 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
7688 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7690 (updating_line_start_cache): Gone.
7691 (regenerate_window): Replace resetting of VERTICAL_CLIP by
7692 generic code to force a minimum of 1 line laid out in the
7695 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
7697 * glyphs.c (instantiate_image_instantiator): Check for initialized
7698 height & width no longer special cases IMAGE_NOTHING.
7699 (nothing_instantiate): Set height and width of instance.
7701 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
7703 * unexelf.c (unexec): Search for ".data" section.
7704 Initialize new_data2_offset from old_data_index.
7705 Remove redundant check for ElfW.
7707 2000-05-23 Andy Piper <andy@xemacs.org>
7709 * glyphs.c (get_image_instantiator_governing_domain): allow more
7710 specific domains as the governing domain rather than expecting an
7711 exact match. This fixes problems with layouts.
7713 2000-05-22 Andy Piper <andy@xemacs.org>
7715 * redisplay-output.c (compare_runes): check for non-images
7717 * glyphs.c (set_glyph_dirty_p): ditto.
7718 (update_glyph_cachel_data): ditto.
7720 * glyphs-widget.c (layout_post_instantiate): ditto.
7721 (layout_post_instantiate): ditto.
7723 * event-msw.c (mswindows_wnd_proc): warning removal.
7725 2000-05-12 Craig Lanning <CraigL@DyCon.com>
7727 * s\mingw32.h: Added #undef for CLASH_DETECTION.
7729 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7731 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7733 * nt.c (rva_to_section): mingw32 needs rva_to_section.
7734 (mswindows_executable_type): mingw32 now has enough headers for
7737 2000-05-20 Andy Piper <andy@xemacs.org>
7739 * console-msw.c (mswindows_output_last_error): ; -> ,
7741 2000-05-12 Andy Piper <andy@xemacs.org>
7743 * console-msw.c (FROB): compare ints with ints.
7745 2000-05-11 Andy Piper <andy@xemacs.org>
7747 * glyphs-x.c (x_finalize_image_instance): make minimal build
7750 2000-05-20 Ben Wing <ben@xemacs.org>
7753 * event-Xt.c (vars_of_event_Xt):
7754 move modifier-keys-are-sticky to event-stream.c.
7757 * event-msw.c (mswindows_enqueue_mouse_button_event):
7758 * event-msw.c (key_needs_default_processing_p):
7759 * event-msw.c (XEMSW_LCONTROL):
7760 * event-msw.c (mswindows_handle_sticky_modifiers):
7761 * event-msw.c (FROB):
7762 * event-msw.c (clear_sticky_modifiers):
7763 * event-msw.c (output_modifier_keyboard_state):
7764 * event-msw.c (output_alt_keyboard_state):
7765 * event-msw.c (mswindows_wnd_proc):
7766 * event-msw.c (mswindows_modifier_state):
7767 * event-msw.c (emacs_mswindows_handle_magic_event):
7768 implement sticky modifiers.
7771 * event-stream.c (vars_of_event_stream):
7772 move modifier-keys-are-sticky here.
7778 implement map-range-table.
7781 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
7783 * redisplay-tty.c (reset_tty_modes):
7784 (tty_redisplay_shutdown): Adjust argument type to
7785 tty_frame_output_end.
7787 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
7789 * eval.c (Fbacktrace): Don't output a line with only right
7792 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
7794 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7795 (Fpq_reset_poll): Ditto.
7797 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
7799 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7801 2000-05-16 Ben Wing <ben@xemacs.org>
7804 * buffer.c (dfc_convert_to/from_internal_format):
7805 * buffer.c (reinit_vars_of_buffer):
7806 Fix conversion functions to allow reentrancy.
7809 * console-msw.c (mswindows_output_last_error):
7810 New fun, generally useful -- output a human-readable
7811 version of GetLastError() on the console.
7814 * console-msw.h (struct mswindows_frame):
7815 Changes for DeferWindowPos. Declare mswindows_output_last_error().
7817 * console-stream.c (stream_output_begin):
7818 * console-stream.c (stream_output_end):
7819 * console-stream.c (stream_output_vertical_divider):
7820 * console-stream.c (stream_clear_region):
7821 * console-stream.c (stream_flash):
7822 * console-stream.c (console_type_create_stream):
7823 Delete blank stream methods, not needed.
7825 * console.h (struct console_methods):
7826 Split begin/end methods into window and frame.
7829 * event-msw.c (mswindows_handle_paint):
7830 * event-msw.c (output_alt_keyboard_state):
7831 * event-msw.c (mswindows_wnd_proc):
7832 * event-msw.c (vars_of_event_mswindows):
7833 Comment about problems with ignored-expose.
7834 Define mswindows-debug-events; not really implemented.
7836 * frame-msw.c (mswindows_init_frame_1):
7840 * glyphs-msw.c (begin_defer_window_pos):
7841 * glyphs-msw.c (mswindows_unmap_subwindow):
7842 * glyphs-msw.c (mswindows_map_subwindow):
7843 * glyphs-msw.c (mswindows_resize_subwindow):
7844 Use DeferWindowPos to reduce flashing when mapping/unmapping.
7846 * glyphs.c (make_image_instance_1):
7849 * gutter.c (Fredisplay_gutter_area):
7850 Use new begin/end methods.
7852 * lisp.h (Dynarr_new2):
7856 * redisplay-msw.c (mswindows_frame_output_begin):
7857 * redisplay-msw.c (mswindows_frame_output_end):
7858 * redisplay-msw.c (console_type_create_redisplay_mswindows):
7859 New begin/end methods -- handle DeferWindowPos.
7861 * redisplay-output.c (redisplay_move_cursor):
7862 * redisplay-output.c (redraw_cursor_in_window):
7863 * redisplay-output.c (redisplay_update_line):
7864 * redisplay-output.c (redisplay_output_window):
7865 New begin/end methods.
7868 * redisplay-tty.c (tty_frame_output_begin):
7869 * redisplay-tty.c (tty_frame_output_end):
7870 * redisplay-tty.c (console_type_create_redisplay_tty):
7871 New begin/end methods.
7874 * redisplay-x.c (x_window_output_begin):
7875 * redisplay-x.c (x_window_output_end):
7876 * redisplay-x.c (console_type_create_redisplay_x):
7877 New begin/end methods.
7879 * redisplay.c (redisplay_frame):
7880 * redisplay.c (Fredisplay_echo_area):
7881 New begin/end methods.
7882 use MAYBE_DEVMETH for clear_frame; it may not exist.
7884 * window.h (WINDOW_XFRAME):
7885 WINDOW_XFOO macros -- get locale and decode struct pointer.
7888 2000-05-12 Ben Wing <ben@xemacs.org>
7891 * emacs.c (ensure_no_quitting_from_now_on):
7892 * emacs.c (fatal_error_signal):
7893 * emacs.c (mswindows_handle_hardware_exceptions):
7895 * emacs.c (Fkill_emacs):
7896 * emacs.c (shut_down_emacs):
7897 * emacs.c (assert_failed):
7898 various improvements in fatal error handling.
7901 move preparing_for_armageddon to emacs.c.
7904 declare fatal_error_in_progress.
7907 * print.c (std_handle_out_external):
7908 * print.c (std_handle_out_va):
7909 * print.c (stderr_out):
7910 * print.c (stdout_out):
7911 use console under mswin when no standard output.
7912 don't do code conversion during fatal error.
7914 * scrollbar.c (Fscrollbar_page_up):
7915 * scrollbar.c (Fscrollbar_page_down):
7916 fix missing else. reindent.
7918 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
7922 * glyphs.h (GLYPH_CACHEL_DESCENT):
7923 (GLYPH_CACHEL_DESCENT):
7924 (GLYPH_CACHEL_DESCENT):
7925 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7926 used in case these are inline functions.
7927 Use more absurd values to error check.
7929 include window.h for error check functions.
7931 2000-05-11 Ben Wing <ben@xemacs.org>
7933 * cmdloop.c (Freally_early_error_handler):
7934 Display message box under windows; otherwise, message will disappear
7935 before it can be viewed.
7938 * console-msw.c (Fmswindows_message_box):
7939 * console-msw.c (FROB):
7940 * console-msw.c (syms_of_console_mswindows):
7941 Define new fun `mswindows-message-box'.
7942 #### I will merge this into `popup-dialog-box'; just give me
7946 * general.c (syms_of_general):
7947 Some new symbols used in `mswindows-message-box'.
7950 * glyphs.c (Fset_image_instance_property):
7951 put warning in this fun.
7954 * glyphs.h (GLYPH_CACHEL_WIDTH):
7955 * glyphs.h (GLYPH_CACHEL_ASCENT):
7956 * glyphs.h (GLYPH_CACHEL):
7957 * glyphs.h (GLYPH_CACHEL_GLYPH):
7958 define error-checking versions to try to catch a bug i've seen --
7959 redisplay gets in an infinite loop because the glyph width of the
7960 continuation glyph is 65535.
7963 Extern message-box stuff.
7965 * window.c (allocate_window):
7966 * window.c (make_dummy_parent):
7967 * window.c (Fset_window_configuration):
7968 Use EQUAL not EQ for subwindow caches to make them work a bit
7969 better. (Something is still very broken.)
7972 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
7974 * glyphs.c (image_instantiate): Suppress gcc warnings.
7975 (Fmake_image_instance): Fix doc string.
7976 * specifier.c (Fmake_specifier): Ditto.
7978 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
7980 * paths.h.in (PATH_LOCK): Removed.
7981 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7982 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7984 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
7986 * fns.c (Ffeaturep): Update e-mail address in doc-string.
7987 Document (featurep '(and xemacs 21.02)).
7989 2000-05-09 Ben Wing <ben@xemacs.org>
7991 * buffer.c (complex_vars_of_buffer):
7992 update modeline-format doc.
7995 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7998 timeline of all released versions of Emacs, for use in creating
7999 authorship comments and in synching up.
8001 * glyphs-widget.c (image_instantiator_buttons):
8002 * glyphs-widget.c (image_instantiator_edit_fields):
8003 * glyphs-widget.c (image_instantiator_combo_box):
8004 * glyphs-widget.c (image_instantiator_scrollbar):
8005 * glyphs-widget.c (image_instantiator_progress_guage):
8006 * glyphs-widget.c (image_instantiator_tree_view):
8007 * glyphs-widget.c (image_instantiator_tab_control):
8008 * glyphs-widget.c (image_instantiator_labels):
8009 * glyphs-widget.c (image_instantiator_layout):
8010 * glyphs-widget.c (image_instantiator_native_layout):
8011 rename decode_domain method to governing_domain.
8014 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8015 * glyphs.c (add_entry_to_device_ii_format_list):
8016 make sure we don't put an entry more than once into the list.
8017 * glyphs.c (check_instance_cache_mapper):
8018 *************************************************************
8019 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8021 *************************************************************
8022 * glyphs.c (get_image_instantiator_governing_domain):
8023 clean up, expand on new concept of governing domain.
8024 * glyphs.c (instantiate_image_instantiator):
8025 * glyphs.c (allocate_image_instance):
8026 use governing_domain instead of cache_domain in naming.
8027 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8028 * glyphs.c (make_image_instance_1):
8029 * glyphs.c (Fmake_image_instance):
8030 allow for any domain (not just device), and process the
8031 governing domain correctly. very big doc fix.
8032 * glyphs.c (Fimage_instance_domain):
8033 new primitive, to retrieve the governing domain of an image instance.
8034 * glyphs.c (image_instantiate):
8035 use new governing_domain stuff. this fixes a crash you could get
8036 by instantiating certain widget glyphs in frame locales. (should
8037 signal an error instead of crashing.)
8038 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8039 * glyphs.c (Fglyphp): clean up doc.
8040 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8041 * glyphs.c (syms_of_glyphs):
8042 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8043 * glyphs.c (image_instantiator_format_create): add some comments about
8045 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8046 for current-display-table. (Apparently Hrjove implemented in 1998 a
8047 design I wrote up in 1996, but didn't update the doc string.)
8049 * glyphs.h: clean up a doc string.
8050 * glyphs.h (governing_domain):
8051 * glyphs.h (struct image_instantiator_methods):
8052 changes for governing_domain stuff.
8055 * gutter.c (Fgutter_specifier_p):
8056 * gutter.c (Fgutter_size_specifier_p):
8057 * gutter.c (Fgutter_visible_specifier_p):
8059 * objects.c (Fcolor_specifier_p):
8060 * objects.c (Ffont_specifier_p):
8061 * objects.c (Fface_boolean_specifier_p):
8062 doc strings moved to make-*-specifier.
8064 * redisplay.c (add_disp_table_entry_runes_1):
8065 * redisplay.c (generate_fstring_runes):
8066 * redisplay.c (screen):
8067 add random comments and doc strings.
8070 * specifier.c (Fmake_specifier):
8071 major overhaul of this doc string.
8073 * specifier.c (Fvalid_specifier_domain_p):
8074 comment about the bogosity of image instances being domains.
8075 * specifier.c (decode_domain):
8076 now non-static, used in glyphs.c.
8077 * specifier.c (specifier_instance):
8078 comment about the bogosity of image instances being domains.
8079 * specifier.c (Fgeneric_specifier_p):
8080 move doc string to make-generic-specifier.
8081 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8085 * specifier.h (DOMAIN_FRAME):
8086 * specifier.h (DOMAIN_LIVE_P):
8087 * specifier.h (DOMAIN_XDEVICE):
8089 add comments about problems with these macros.
8090 prototype for decode_domain.
8093 * toolbar.c (Ftoolbar_specifier_p):
8094 move doc string to `make-toolbar-specifier'.
8096 * window.c (window_unmap_subwindows_cache_mapper):
8097 *************************************************************
8098 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8100 *************************************************************
8102 2000-05-09 Andy Piper <andy@xemacs.org>
8104 * glyphs.h: declare reset_frame_subwindow_instance_cache.
8106 * window.c (Fset_window_configuration): reset the frame subwindow
8107 cache and re-initialize the window subwindow caches.
8109 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8111 2000-05-09 Ben Wing <ben@xemacs.org>
8113 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8116 2000-04-26 Mike Woolley <mike@bulsara.com>
8118 * ntheap.c: Changed recreate_heap to limit the amount reserved
8119 for the heap to that which is actually available. Also now
8120 displays a message box (with some dignostics) in the event that
8121 it still can't start.
8123 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
8125 * callproc.c (Fold_call_process_internal): GCPRO path
8127 2000-05-08 Jan Vroonhof <jan@xemacs.org>
8129 Patch by Bill Perry.
8131 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8132 back data instead of #ifdef.
8133 (Fscrollbar_page_down): ditto.
8135 2000-05-07 Ben Wing <ben@xemacs.org>
8138 Kludge for defining Qmswindows_tstr.
8141 * nt.c (open_input_file):
8142 * nt.c (open_output_file):
8143 * nt.c (rva_to_section):
8144 * nt.c (mswindows_executable_type):
8145 Move all memory-mapped-file routines here (some were in unexnt.c,
8146 which is bad because they are used by process-nt.c, and unexnt
8147 won't be around when portable dumping). Synched the above routines
8151 Removed ifdef'd out bogus code.
8152 Fixed some prototypes.
8155 * nt.h (OFFSET_TO_RVA):
8156 * nt.h (RVA_TO_OFFSET):
8157 * nt.h (RVA_TO_PTR):
8158 Moved the memory-mapped-file structures, macros and prototypes
8159 here, to parallel nt.c. ntheap.h should really be removed
8160 entirely, and it's a non-portable-dumper specific file.
8162 * ntheap.h (round_to_next):
8163 Moved the memory-mapped-file structures, macros and prototypes
8166 * ntproc.c (compare_env):
8167 Moved rva_to_section and mswindows_executable_type to nt.c.
8168 Moved compare_env to process-nt.c.
8169 ntproc.c will die, one day.
8171 * ntproc.c (sys_spawnve):
8172 Account for win32_ -> mswindows_.
8175 * process-nt.c (struct nt_process_data):
8176 * process-nt.c (ensure_console_window_exists):
8177 * process-nt.c (compare_env):
8178 * process-nt.c (nt_create_process):
8179 * process-nt.c (nt_kill_process_by_pid):
8180 * process-nt.c (syms_of_process_nt):
8181 * process-nt.c (vars_of_process_nt):
8182 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8183 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8184 changes). Eliminate our old `nt-quote-process-args' mechanism.
8185 Synch up nt_create_process with FSF 20.6 sys_spawnve.
8186 Move compare_env here from ntproc.c.
8188 * process.c (Fprocess_send_region):
8189 Takes an optional fourth argument, BUFFER, which should fix some
8190 problems with call-process.
8193 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8196 Move ICC_BAR_CLASSES to syscommctrl.h.
8197 Add preliminary macros for MSWindows/Mule. More to come.
8200 * unexnt.c (unexec):
8201 open_output_file moved to nt.c.
8204 2000-05-05 Andy Piper <andy@xemacs.org>
8206 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8207 instance from the frame cache also since GC may catch up too late
8208 to make frame deletion sane.
8210 2000-05-04 Andy Piper <andy@xemacs.org>
8212 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8213 (x_finalize_image_instance): ungcpro on deletion.
8215 * glyphs.c (image_instantiator_format_create): give pointers a
8216 query geometry method so that the geometry is at least set.
8218 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8219 initialize layouts if using widgets.
8221 2000-05-03 Andy Piper <andy@xemacs.org>
8223 * nt.c: remove bogus reference to sysmmsystem.h
8225 * gui-x.c (popup_selection_callback): fix no selection abort.
8227 2000-05-02 Andy Piper <andy@xemacs.org>
8229 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8230 (mswindows_widget_instantiate): ditto.
8232 * glyphs-widget.c (initialize_widget_image_instance): initialize
8234 (widget_instantiate): cope with children and items in the same
8237 * glyphs.c (mark_image_instance): cope with children as a first
8239 (image_instance_equal): ditto.
8240 (image_instance_hash): ditto.
8241 (image_instance_changed): ditto.
8243 2000-04-30 Andy Piper <andy@xemacs.org>
8245 * glyphs.c (subwindow_query_geometry): new function. Return some
8247 (subwindow_instantiate): don't assign dimensions if none have been
8249 (image_instantiator_format_create): add subwindow_query_geometry.
8250 (print_image_instance): cope with layouts as widgets.
8252 2000-04-29 Andy Piper <andy@xemacs.org>
8254 * frame.c (delete_frame_internal): call
8255 free_frame_subwindow_instance_cache so that all subwindows are
8256 finalized before their parent.
8257 (mark_frame): remove subwindow_cachels.
8258 (Fmake_frame): remove subwindow_cachel manipulation.
8259 (allocate_frame_core): subwindow_instance_cache is a weak list.
8260 (delete_frame_internal): set subwindow_instance_cache to nil.
8262 * glyphs-msw.c (mswindows_finalize_image_instance): make double
8264 (mswindows_finalize_image_instance): use the device
8265 not the domain as the domain may have died already.
8267 * glyphs-x.c (x_finalize_image_instance): ditto.
8268 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8271 * redisplay-output.c (redisplay_unmap_subwindows): update for
8272 subwindow instance cache as a weak list.
8273 (redisplay_unmap_subwindows_maybe): ditto.
8274 (redisplay_unmap_subwindows_except_us): ditto.
8276 * glyphs.c (unmap_subwindow): error checking will check the domain
8277 so don't deal with it here. Don't use cachels anymore.
8278 (map_subwindow): ditto.
8279 (update_subwindow_cachel_data): remove old accessor names.
8280 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8281 (Fresize_subwindow): don't update cachel.
8282 (mark_subwindow_cachels):
8283 (update_subwindow_cachel_data):
8284 (add_subwindow_cachel):
8285 (get_subwindow_cachel_index):
8286 (update_subwindow_cachel):
8287 (reset_subwindow_cachels):
8288 (mark_subwindow_cachels_as_not_updated): deleted.
8289 (cache_subwindow_instance_in_frame_maybe): new function. Add a
8290 subwindow instance to the frame cache.
8291 (find_matching_subwindow): update for subwindow instance cache as
8293 (update_widget_instances): ditto.
8294 (image_instance_type_to_mask):inlined.
8295 (free_frame_subwindow_instance_cache): new function. finalize all
8296 subwindows that are instantiated.
8298 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8299 of cachel information.
8300 (IMAGE_INSTANCE_DISPLAY_X):
8301 (IMAGE_INSTANCE_DISPLAY_Y):
8302 (IMAGE_INSTANCE_DISPLAY_WIDTH):
8303 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8304 (XIMAGE_INSTANCE_DISPLAY_X):
8305 (XIMAGE_INSTANCE_DISPLAY_Y):
8306 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8307 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8308 remove subwindow_cachel structure and function references.
8309 (image_instance_type_to_mask): inline from glyphs.c
8311 * redisplay.c (redisplay_frame): remove subwindow_cachel
8314 * frame.h (struct frame): remove subwindow_cachels.
8315 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8317 * frameslots.h: add subwindow_instance_cache.
8319 * window.c (replace_window): check subwindow cache of replacement.
8320 (window_unmap_subwindows_cache_mapper):
8321 (window_unmap_subwindows): new functions. Unmap all subwindows
8322 cached on this window.
8323 (mark_window_as_deleted): unmap all subwindows.
8325 2000-04-27 Andy Piper <andy@xemacs.org>
8327 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8329 * glyphs-widget.c (widget_layout): return something.
8330 (layout_layout): return something. Fail if not initialized.
8331 (layout_query_geometry): ditto.
8332 (image_instantiator_native_layout): new function. Initialized the
8334 (widget_instantiate): don't do layout stuff here.
8336 * glyphs.c (instantiate_image_instantiator): reorded calling or
8337 instantiate and post_instantiate with layout in between.
8338 (image_instance_layout): be more selective about deciding whether
8339 the layout has been done or not.
8341 * glyphs.h (struct image_instantiator_methods): return a value
8344 2000-04-26 Andy Piper <andy@xemacs.org>
8346 * glyphs.c (allocate_image_instance): make initial width and
8347 height unspecified. Set initialized to 0.
8349 * syscommctrl.h new file. Encapsulates commctrl.h.
8351 * syswindows.h new file. Encapsulates windows.h.
8353 * ntplay.c: use new syswindows.h and syscommctrl.h header.
8355 * console-msw.h: ditto.
8357 * redisplay-tty.c (tty_output_display_block): remove layout references.
8359 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8360 window handle rather than just the frame.
8362 * glyphs.c (mark_image_instance): remove layout references.
8363 (print_image_instance): ditto.
8364 (image_instance_equal): ditto.
8365 (image_instance_hash): ditto.
8366 (decode_image_instance_type): ditto.
8367 (encode_image_instance_type): ditto.
8368 (image_instantiate): ditto.
8369 (allocate_glyph): ditto.
8370 (Fimage_instance_height): ditto.
8371 (Fimage_instance_width): ditto.
8372 (update_subwindow): ditto.
8374 * redisplay-x.c (x_output_display_block): recode for layouts as
8377 * redisplay-output.c (redisplay_output_layout): recode for layouts
8379 (compare_runes): remove layout references.
8381 * redisplay-msw.c (mswindows_output_display_block): recode for
8384 * glyphs-widget.c (image_instantiator_layout): remove
8385 layout_possible_dest_types.
8386 (layout_possible_dest_types): deleted.
8388 * glyphs.h (image_instance_type): remove layout references.
8389 (struct Lisp_Image_Instance): ditto. Add initialized flag.
8390 (IMAGE_INSTANCE_INITIALIZED): new accessor.
8391 (XIMAGE_INSTANCE_INITIALIZED): ditto.
8393 2000-04-25 Andy Piper <andy@xemacs.org>
8395 * glyphs-widget.c (image_instantiator_buttons):
8396 (image_instantiator_edit_fields):
8397 (image_instantiator_combo_box):
8398 (image_instantiator_scrollbar):
8399 (image_instantiator_progress_guage):
8400 (image_instantiator_tree_view):
8401 (image_instantiator_tab_control):
8402 (image_instantiator_labels):
8403 (image_instantiator_layout): call default post_instantiate method.
8404 (widget_post_instantiate): new function. Simply lays out the
8407 * glyphs.h (struct image_instantiator_methods): add
8408 post_instantiate method.
8410 * glyphs.c (instantiate_image_instantiator): add post_instantiate
8413 2000-04-23 Andy Piper <andy@xemacs.org>
8415 * glyphs.h (struct image_instantiator_methods): add
8416 decode_domain_method.
8417 (struct Lisp_Image_Instance): remove subwindow frame - it can be
8418 derived from the domain.
8419 (IMAGE_INSTANCE_FRAME): new accessor.
8420 (XIMAGE_INSTANCE_FRAME): ditto.
8422 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8423 instead of _SUBWINDOW_FRAME.
8424 (finalize_image_instance): ditto.
8425 (Fimage_instance_foreground): ditto.
8426 (Fimage_instance_background): ditto.
8427 (image_instantiate): ditto.
8428 (update_subwindow_cachel): ditto.
8429 (update_subwindow): ditto.
8430 (unmap_subwindow): ditto.
8431 (map_subwindow): ditto
8432 (subwindow_instantiate): ditto.
8433 * glyphs-msw.c (mswindows_update_widget): ditto.
8434 (mswindows_progress_gauge_instantiate): ditto.
8435 (mswindows_tab_control_update): ditto.
8436 * glyphs-x.c (x_update_widget): ditto.
8437 (x_widget_instantiate): ditto.
8438 (x_tab_control_instantiate): ditto.
8439 (x_tab_control_update): ditto.
8440 * event-msw.c (mswindows_wnd_proc): ditto
8442 * glyphs-widget.c (image_instantiator_layout): use
8443 subwindow_decode_domain.
8444 (image_instantiator_buttons): ditto.
8445 (image_instantiator_edit_fields): ditto.
8446 (image_instantiator_combo_box): ditto.
8447 (image_instantiator_scrollbar): ditto.
8448 (image_instantiator_progress_guage): ditto.
8449 (image_instantiator_tree_view): ditto.
8450 (image_instantiator_tab_control): ditto.
8451 (image_instantiator_labels): ditto.
8452 (image_instantiator_layout): ditto.
8454 * glyphs.c: add instance error checking to many functions.
8455 (instantiate_image_instantiator): decode device from cache_domain.
8456 (image_instantiate): partially rewrite by using
8457 decode_image_instantiator_domain to determine what domain the
8458 instance needs to be cached in.
8459 (decode_image_instantiator_domain): new function. Determine what
8460 domain the image needs to be cached in.
8461 (check_window_subwindow_cache): new error checking function.
8462 (check_instance_cache_mapper): ditto.
8463 (check_image_instance_structure): ditto.
8464 (subwindow_decode_domain): new function. Encodes a window as a
8465 subwindow's cache domain.
8466 (image_instantiator_format_create): use it for text and
8469 2000-04-21 Andy Piper <andy@xemacs.org>
8471 * glyphs.c (image_instance_device): new function.
8472 (image_instance_frame): new function.
8473 (image_instance_window): new function.
8474 (image_instance_live_p): new function.
8476 * window.c (mark_window_as_deleted): reset the subwindow_instance_
8479 * glyphs.h (struct Lisp_Image_Instance): device->domain.
8480 (IMAGE_INSTANCE_DOMAIN): new accessor.
8481 (XIMAGE_INSTANCE_DOMAIN): ditto.
8483 * glyphs-x.c (x_finalize_image_instance): device->domain.
8485 * glyphs-msw.c (init_image_instance_geometry): device->domain.
8486 (mswindows_finalize_image_instance): ditto.
8488 * glyphs-eimage.c (jpeg_instantiate): device->domain.
8489 (gif_instantiate): ditto.
8490 (png_instantiate): ditto.
8491 (tiff_instantiate): ditto.
8493 * glyphs.c (instantiate_image_instantiator): use domain rather
8495 (mark_image_instance): device -> domain.
8496 (print_image_instance): ditto.
8497 (finalize_image_instance): ditto.
8498 (image_instance_equal): ditto.
8499 (allocate_image_instance): ditto.
8500 (Fcolorize_image_instance): ditto.
8501 (query_string_geometry): ditto.
8502 (image_instantiate): ditto
8503 (query_string_font): ditto.
8504 (image_instantiate): ditto.
8505 (update_subwindow): ditto.
8506 (unmap_subwindow): ditto.
8507 (map_subwindow): ditto.
8508 (subwindow_instantiate): ditto.
8510 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8511 (DOMAIN_FRAME): ditto.
8512 (DOMAIN_WINDOW): ditto.
8513 (DOMAIN_LIVE_P): ditto.
8514 (XDOMAIN_DEVICE): ditto.
8515 (XDOMAIN_FRAME): ditto.
8516 (XDOMAIN_WINDOW): ditto.
8518 * specifier.c (Fvalid_specifier_domain_p): add image instances as
8519 a valid specifier domain.
8521 2000-04-19 Andy Piper <andy@xemacs.org>
8523 * glyphs-widget.c (syms_of_glyphs_widget): remove
8524 widget-callback-current-channel.
8525 (vars_of_glyphs_widget): ditto.
8528 * gui.c (get_gui_callback): revert to previous behaviour.
8530 2000-04-18 Andy Piper <andy@xemacs.org>
8532 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8533 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8534 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8536 * glyphs.c (image_instance_equal): add margin_width.
8537 (image_instance_hash): ditto.
8539 * glyphs-widget.c (widget_instantiate): deal with margin-width.
8540 (layout_query_geometry): ditto.
8541 (layout_layout): ditto.
8542 (syms_of_glyphs_widget): add margin-width.
8543 (image_instantiator_layout): allow margin-width.
8545 * glyphs.c (update_widget_instances): make a normal function.
8546 (syms_of_glyphs): remove Qupdate_widget_instances.
8549 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8550 so that we don't corrupt ideas about the last event or
8551 command. Remove widget-callback-current-channel fiddling.
8552 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8554 2000-05-01 Martin Buchholz <martin@xemacs.org>
8556 * XEmacs 21.2.33 is released.
8558 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
8560 * make-src-depend: Allow dots in header file name.
8562 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
8564 * mule-charset.h (struct charset_lookup): Add
8565 next_allocated_1_byte_leading_byte and
8566 next_allocated_2_byte_leading_byte.
8567 * mule-charset.c: Move above two variables so that those values
8570 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
8572 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8573 when string length is zero.
8574 (find_charsets_in_emchar_string): Ditto.
8576 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
8578 * lisp.h: extern Qdialog and Qmenubar.
8580 * gui-x.c: added events.h.
8581 also fixed typo which made the file uncompilable.
8583 * general.c: Added Qmenubar and Qdialog
8585 2000-04-28 Ben Wing <ben@xemacs.org>
8587 * frame-msw.c (mswindows_init_frame_1):
8588 * frame-msw.c (mswindows_mark_frame):
8589 * event-msw.c (mswindows_enqueue_dispatch_event):
8591 * console-msw.h (struct mswindows_frame):
8592 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8593 there are now three hash tables for callbacks.
8594 mswindows_enqueue_dispatch_event is no longer static.
8596 * dialog-x.c (maybe_run_dbox_text_callback):
8597 * dialog-x.c (dbox_descriptor_to_widget_value):
8598 switch to new cons3 form for callbacks.
8600 * glyphs-msw.c (mswindows_register_gui_item):
8601 * glyphs-msw.c (mswindows_widget_instantiate):
8602 * glyphs-msw.c (add_tree_item):
8603 * glyphs-msw.c (add_tab_item):
8604 new image instance parameter, so it can be passed to callback-ex.
8605 respect :callback-ex as well as :callback.
8607 * glyphs-widget.c (VALID_GUI_KEYWORDS):
8610 * glyphs.c (print_image_instance):
8611 prettify, e.g. now prints widget type.
8614 certain funs have new image instance parameter.
8617 * gui.c (get_gui_callback):
8618 * gui.c (gui_item_add_keyval_pair):
8619 * gui.c (gui_item_init):
8620 * gui.c (gui_add_item_keywords_to_plist):
8621 * gui.c (mark_gui_item):
8622 * gui.c (gui_item_hash):
8623 * gui.c (gui_item_equal):
8624 * gui.c (copy_gui_item):
8625 * gui.c (syms_of_gui):
8626 recognize callback-ex in a number of places.
8627 also, fix the annoying "can't get out of yes-no dialog" bug.
8630 * gui.h (struct Lisp_Gui_Item):
8631 recognize callback-ex in a number of places.
8633 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8634 new parameter in button_item_to_widget_value.
8636 * glyphs-x.c (x_update_widget):
8637 * glyphs-x.c (x_button_instantiate):
8638 * glyphs-x.c (x_button_update):
8639 * glyphs-x.c (x_progress_gauge_instantiate):
8640 * glyphs-x.c (x_edit_field_instantiate):
8641 * glyphs-x.c (x_combo_box_instantiate):
8642 * glyphs-x.c (x_tab_control_instantiate):
8643 * glyphs-x.c (x_label_instantiate):
8644 new image instance parameter in various places.
8647 * event-Xt.c (enqueue_Xt_dispatch_event):
8648 this fun gets exported.
8651 * gui-msw.c (mswindows_handle_gui_wm_command):
8652 handle both :callback and :callback-ex, and generate our own
8653 event because it's one of the callback-ex arguments.
8656 * gui-x.c (popup_selection_callback):
8657 handle both :callback and :callback-ex, and generate our own
8658 event because it's one of the callback-ex arguments.
8659 * gui-x.c (button_item_to_widget_value):
8660 * gui-x.c (gui_items_to_widget_values_1):
8661 * gui-x.c (gui_item_children_to_widget_values):
8662 * gui-x.c (gui_items_to_widget_values):
8663 new image instance parameter in various places.
8665 * fns.c (Freplace_list):
8666 fix small typo in doc string.
8669 declare enqueue_Xt_dispatch_event.
8671 2000-04-28 Ben Wing <ben@xemacs.org>
8674 * buffer.c (Frecord_buffer):
8675 * buffer.c (syms_of_buffer):
8676 delete record-buffer-hook.
8679 * fns.c (Freplace_list):
8680 * fns.c (syms_of_fns):
8681 new primitive replace-list.
8684 slot for old buffer-alist.
8690 * redisplay.c (redisplay_frame):
8691 * redisplay.c (syms_of_redisplay):
8692 * redisplay.c (vars_of_redisplay):
8693 new hook buffer-list-changed-hook.
8696 2000-04-27 Ben Wing <ben@xemacs.org>
8698 * extents.h: extern in_modeline_generation.
8700 * redisplay.c (generate_formatted_string_db): set
8701 in_modeline_generation.
8703 * extents.c (extent_changed_for_redisplay): don't mark redisplay
8704 flags if in modeline generation. otherwise frame-modified-tick
8705 is ticked far too often.
8706 Declare in_modeline_generation.
8708 2000-04-26 Ben Wing <ben@xemacs.org>
8710 * emacs.c (vars_of_emacs): document quick-build "error-checking"
8712 (vars_of_emacs): add quick-build as an error-checking option.
8713 A bit kludgy, but there doesn't seem much point in creating
8714 a real var for this.
8716 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8718 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
8720 * redisplay.h (struct display_line): Add a new variable,
8723 * redisplay.c (create_text_block): Set dl->line_continuation if
8725 (create_string_text_block): Ditto.
8726 (regenerate_window_incrementally): Use line_continuation instead
8727 of searching continuation glyph.
8728 (add_margin_runes): Call add_glyph_rune.
8729 (add_glyph_rune): Handle margin glyph.
8731 2000-04-20 Martin Buchholz <martin@xemacs.org>
8733 * filelock.c (fill_in_lock_file_name):
8735 Check for IS_ANY_SEP instead of '/'.
8737 Avoid generating gratuitous garbage. Call user_login_name() directly.
8738 Never check errno without first seeing that system call failed.
8739 (unlock_file): Add GCPRO.
8740 (Flock_buffer): Fix docstring.
8741 (Ffile_locked_p): Fix docstring. Add GCPRO.
8743 2000-04-19 Martin Buchholz <martin@xemacs.org>
8745 * sysdep.c (get_pty_max_bytes):
8746 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8747 strings longer than 252 bytes.
8749 * md5.c: Unconditionally include ANSI header <limits.h>
8751 * glyphs-x.c (convert_EImage_to_XImage):
8752 * lisp-union.h (union Lisp_Object):
8753 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8755 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
8757 * filelock.c (current_lock_owner): Remove unused variable o, p.
8759 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
8761 * callint.c: Remove multiply defined symbol Qlet
8762 (syms_of_callint): ditto.
8764 2000-04-14 Andy Piper <andy@xemacs.org>
8766 * general.c (syms_of_general): add last-command, this-command, let
8769 * lisp.h: declare various symbols.
8771 * glyphs.h: declare Qwidget_callback_current_channel;
8773 * glyphs-widget.c (syms_of_glyphs_widget): add
8774 Qgui_callback_current_channel.
8775 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8777 * gui-msw.c (mswindows_handle_gui_wm_command): bind
8778 widget-callback-current-channel when invoking the interactive
8779 arg. Also bind last-command and next-command when invoking the
8781 * gui-x.c (popup_selection_callback): ditto.
8783 * gui.c (get_gui_callback): massage args so that we are always
8784 calling eval. This allows us to add our own variable bindings
8787 * glyphs-x.c (x_button_instantiate): use
8788 gui_items_to_widget_values since this is GC safe.
8789 (x_progress_gauge_instantiate): ditto.
8790 (x_edit_field_instantiate): ditto.
8791 (x_label_instantiate): ditto.
8793 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8794 (emacs_Xt_event_widget_focus_out): new function
8795 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8797 (emacs_Xt_event_add_widget_actions): new function. add focus
8798 functions as actions.
8799 (init_event_Xt_late): use it.
8801 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
8803 * event-stream.c (Fdispatch_event): Doc fix.
8805 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
8807 * postgresql.c: Remove all references to PQsetenv*.
8809 * postgresql.h: Remove references to PGsetenvHandler object.
8810 * lrecord.h (lrecord_type): Ditto.
8812 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8814 * glyphs-msw.h (struct mswindows_image_instance_data): Added
8815 real_heigh and real_width members, and accessor macros for these.
8817 * glyphs-msw.c (init_image_instance_geometry): New function.
8818 (init_image_instance_from_dibitmap): Use it.
8819 (mswindows_resource_instantiate): Use it.
8820 (init_image_instance_from_xbm_inline): Use it.
8821 (mswindows_initialize_image_instance_mask): Use real bitmap
8823 (mswindows_create_resized_bitmap): Ditto.
8824 (mswindows_create_resized_mask): Ditto.
8826 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8827 and bitmap to their surface size.
8829 2000-04-11 Jan Vroonhof <jan@xemacs.org>
8831 * process-unix.c (unix_send_process): Guard against process MIA
8832 after Faccept_process_output.
8834 2000-04-11 Ben Wing <ben@xemacs.org>
8836 * eval.c (unbind_to_hairy): fix brokenness introduced by
8837 nanosecond speed improvements.
8839 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
8841 * sunplay.c (init_device): To play sounds correctly, the device
8842 apparently needs to be initialized at least once by XEmacs. Make
8845 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
8847 * redisplay.c (add_margin_runes): Add text image glyph
8850 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8852 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8853 gcc is newer than 2.5.
8855 2000-04-06 Colin Rafferty <colin@xemacs.org>
8857 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8859 * fns.c (size_bit_vector):
8860 * alloc.c (size_vector):
8861 (make_vector_internal):
8862 (make_bit_vector_internal):
8863 (sweep_bit_vectors_1):
8864 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8866 2000-04-06 Andy Piper <andy@xemacs.org>
8868 * gmalloc.c (malloc): undo previous change.
8873 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
8875 * line-number.c (buffer_line_number): Revert to former version.
8877 2000-04-06 Andy Piper <andy@xemacs.org>
8879 * gmalloc.c (malloc): add error checking.
8884 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8885 button_item_to_widget_value arg.
8887 * glyphs-x.c (x_button_instantiate): add extra
8888 button_item_to_widget_value arg.
8889 (x_progress_gauge_instantiate): ditto.
8890 (x_edit_field_instantiate): ditto.
8891 (x_label_instantiate): ditto.
8893 * gui-x.c (gui_items_to_widget_values_1): add extra
8894 button_item_to_widget_value arg.
8895 (button_item_to_widget_value): add extra menu_item_p arg.
8897 * gui-x.h: change signature of button_item_to_widget_value.
8899 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8900 button_item_to_widget_value arg.
8902 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
8904 * buffer.h (struct buffer): auto_save_modified should be long.
8906 2000-04-05 Andy Piper <andy@xemacs.org>
8908 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8910 (button_query_geometry): give a little more room so that athena
8913 2000-04-05 Andy Piper <andy@xemacs.org>
8915 * faces.c (complex_vars_of_faces): The widget face should inherit
8916 the font of the gui-element face.
8918 2000-04-04 Andy Piper <andy@xemacs.org>
8920 * glyphs-x.c (x_button_update): new function. unconditionally
8921 update a button's state when the instance is dirty.
8922 (image_instantiator_format_create_glyphs_x): add x_button_update.
8923 (x_widget_instantiate): remove old resize cruft.
8925 2000-04-02 Andy Piper <andy@xemacs.org>
8927 * frame.c (change_frame_size_1): The introduction of gutters means
8928 that we need to allow 0 as a potential frame dimension.
8930 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
8932 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8933 image glyph if allow_cursor.
8934 (add_hscroll_rune): Don't allow cursor to border glyph.
8935 (create_text_block): Ditto.
8937 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8939 (redisplay_output_layout): Call ensure_face_cachel_complete for
8943 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
8945 * redisplay.c (add_glyph_rune): Adding text image as text runes.
8947 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8950 * redisplay-tty.c (tty_output_display_block): Delete the routine
8951 for text image glyph
8952 * redisplay-x.c (x_output_display_block): ditto
8953 * redisplay-msw.c (mswindows_output_display_block): ditto
8955 2000-02-02 Mike Alexander <mta@arbortext.com>
8957 Note: Some of these were committed by accident as part of other
8960 * regex.c (regex_compile): Avoid compiler warnings.
8962 * ntproc.c (sys_spawnve): Avoid compiler warnings.
8964 * nt.h: Declare term_ntproc correctly.
8966 * nt.c: Remove incorrect declaration of get_home_directory which
8967 is declared correctly in lisp.h.
8969 * keymap.c (get_keyelt): Avoid compiler warnings.
8970 (raw_lookup_key_mapper): Avoid compiler warnings.
8972 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8974 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8976 * filemode.c (mode_string): Avoid compiler warnings.
8978 * file-coding.c (Fcoding_system_aliasee): Add return statement to
8981 * events-mod.h: Undef some things that winuser.h defines differently.
8983 * data.c (Faset): Avoid compiler warnings.
8985 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8987 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
8989 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8990 Fall through to simple beep on error.
8991 Replace "extern" by real header file.
8993 * linuxplay.c: Use nativesound.h
8994 (play_sound_data): Return error code. Be less verbose on error.
8996 * sunplay.c: Use nativesound.h
8997 (play_sound_data): Return error code. Be less verbose on error.
8999 * ntplay.c: Use nativesound.h
9000 (play_sound_data): Return fake error code
9002 * sgiplay.c: Use nativesound.h
9003 (play_sound_data): Return error code
9005 * hpplay.c: Use nativesound.h, partially implement
9006 new error code. Break compilation until finished.
9007 (play_sound_data): error code.
9009 * nativesound.h (play_sound_file):
9010 (play_sound_data): Prototype in new header.
9012 2000-03-31 Andy Piper <andy@xemacs.org>
9014 * glyphs-widget.c: (button_query_geometry): new function. Adjust
9015 for toggle and radio buttons.
9016 (image_instantiator_buttons): use it.
9018 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9020 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9021 (x_update_horizontal_scrollbar_callback): Return if no mirror was
9022 found. Scrollbar event probably belonged to some old config.
9024 2000-03-31 Andy Piper <andy@xemacs.org>
9026 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9028 (initialize_widget_image_instance): default layout to
9029 LAYOUT_HORIZONTAL rather than 0.
9030 (widget_instantiate): reverse the item list at the end rather than
9032 (layout_layout): re-code for the border text at the front of the
9033 item list rather than at the end.
9034 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9035 provided by the user.
9036 (widget_query_geometry): comment.
9038 2000-03-30 Andy Piper <andy@xemacs.org>
9040 * glyphs-widget.c (image_instantiator_layout): allow standard
9041 widget keywords in layouts.
9043 * gutter.c (output_gutter): cope with nil gutter contents.
9045 * frame.c (Fset_frame_properties): add gutter docs.
9047 2000-03-29 Andy Piper <andy@xemacs.org>
9049 * toolbar-msw.c (TBSTYLE_FLAT): add.
9050 (mswindows_output_toolbar): minor fiddling.
9052 2000-03-29 Andy Piper <andy@xemacs.org>
9054 * gutter.c (output_gutter): force gutter size recalculation if
9055 what we are trying to display won't fit.
9056 (update_gutter_geometry): new function. A per-gutter version of
9057 update_frame_gutter_geometry.
9058 (update_frame_gutter_geometry): use it.
9059 (redraw_exposed_gutter): add extra debugging output.
9061 2000-03-28 Mike Alexander <mta@arbortext.com>
9063 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9064 (pdump_file_unmap): Implement it on Windows
9065 (pdump_file_get): Save alocated handles for pdump_file_unmap
9067 2000-03-28 Andy Piper <andy@xemacs.org>
9069 * gui.c (get_gui_callback): treat Quit specially.
9071 2000-03-27 Andy Piper <andy@xemacs.org>
9073 * glyphs.c (image_instantiate): be careful to check in the same
9076 2000-03-27 Didier Verna <didier@xemacs.org>
9078 * config.h.in: define the proper SMART_INCLUDE macro.
9079 handle renaming of `foo_h_path' to `foo_h_file'.
9081 * database.c: ditto.
9085 * linuxplay.c: ditto.
9087 * terminfo.c: ditto.
9089 * tooltalk.h: ditto.
9091 2000-03-27 Andy Piper <andy@xemacs.org>
9093 * glyphs-msw.c (mswindows_update_widget): make sure the widget
9094 gets updated whenever the face might have changed.
9096 2000-03-26 Mike Alexander <mta@arbortext.com>
9098 * dumper.c (pdump_resource_free): Fix the comment.
9100 2000-03-21 Olivier Galibert <galibert@pobox.com>
9102 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9104 2000-03-22 Mike Alexander <mta@arbortext.com>
9106 * dumper.c: Include Windows headers on Windows
9107 (pdump_resource_free): Add a body to the function
9108 (pdump_load): exe_name -> exe_path and add some comments.
9110 2000-03-25 Mike Alexander <mta@arbortext.com>
9112 * gui.c (copy_gui_item_tree): Return a value in all cases
9114 2000-03-21 Didier Verna <didier@xemacs.org>
9116 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9118 (SMART_INCLUDE): new macro.
9119 (POSTGRES_INCLUDE): new macro to include postgresql headers from
9120 the proper location.
9122 * postgresql.c: use it.
9126 2000-03-24 Andy Piper <andy@xemacs.org>
9128 * gutter.c (redraw_exposed_gutters): must be "in display" when we
9131 2000-03-24 Andy Piper <andy@xemacs.org>
9133 * redisplay-output.c (compare_runes): use image_instance_changed
9134 to detect changes. Do not depend on glyphs_changed, only depend on
9136 (redisplay_output_layout): add debug messages.
9137 (compare_runes): ditto.
9139 * glyphs.h: declare new functions.
9140 (struct Lisp_Image_Instance): remove percent and associated
9143 * gui.h: declare new copying functions.
9145 * gui.c (copy_gui_item_tree): new function.
9146 (copy_gui_item): new function.
9147 (gui_item_id_hash): revert to standard hash.
9148 (gui_item_hash): ditto.
9149 (gui_item_hash_internal): deleted.
9150 (mark_gui_item): mark value.
9151 (gui_item_add_keyval_pair): add value.
9152 (gui_item_init): ditto.
9153 (gui_add_item_keywords_to_plist): ditto.
9154 (gui_item_equal): ditto.
9155 (syms_of_gui): add Q_value.
9157 * glyphs-x.c (x_progress_gauge_update): use pending items and
9158 value for setting the state.
9159 (x_update_widget): don't set items from pending here.
9161 * glyphs-widget.c (update_widget): update items here.
9162 (progress_gauge_set_property): use items for storing value. Put
9163 new value in pending items.
9165 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9166 items for new value. Convert percent -> value.
9167 (mswindows_tab_control_update): don't update items here.
9169 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9170 (update_subwindow): ditto.
9171 (image_instance_changed): new function. Compare hash values and
9172 past and present widget items.
9173 (image_instantiate): We more careful about where we instantiate
9175 (image_instantiate): add error checking.
9177 * gutter.c (syms_of_gutter): use -hook.
9179 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
9181 * console-tty.c (Fset_console_tty_input_coding_system): Use
9183 (Fset_console_tty_output_coding_system): Use Qterminal.
9184 (tty_init_console): Use Qkeyboard and Qterminal.
9186 2000-03-21 Ben Wing <ben@xemacs.org>
9188 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9189 From Mike Alexander <mta@arbortext.com>.
9191 2000-03-21 Ben Wing <ben@xemacs.org>
9193 * event-msw.c (mswindows_need_event): Horrible kludge to fix
9194 process brokenness. Proper implementation to come.
9196 Rename call-process-internal to old-call-process-internal.
9197 New impl. in process.el.
9199 2000-03-21 Martin Buchholz <martin@xemacs.org>
9201 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9203 2000-03-20 Andy Piper <andy@xemacs.org>
9205 * glyphs.c (full_list_hash): make hashes of the same elements in
9206 different orders return different values.
9208 2000-03-20 Martin Buchholz <martin@xemacs.org>
9210 * XEmacs 21.2.32 is released.
9212 2000-03-20 Martin Buchholz <martin@xemacs.org>
9214 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9215 (DFC_MALLOC_USE_CONVERTED_DATA):
9216 Add aliasing-safe casts to allow use with char* or unsigned char*
9219 * eldap.c (Fldap_open):
9220 (Fldap_search_basic):
9223 Make C++-compilable.
9224 Make sure GCPRO'ed variables are initialized.
9225 Use temp variables to avoid repeated calls to Flength.
9227 2000-03-16 Martin Buchholz <martin@xemacs.org>
9230 Make sure PATH_MAX is always defined.
9231 Include limits.h for PATH_MAX.
9232 Deprecate use of MAXPATHLEN.
9234 2000-03-10 Martin Buchholz <martin@xemacs.org>
9236 * emacs.c: Add reinit_vars_of_fileio.
9237 * symsinit.h: Add reinit_vars_of_fileio.
9238 * fileio.c (reinit_vars_of_fileio): New.
9239 * fileio.c (Fmake_temp_name):
9240 Initialize temp_name random number from microseconds to make
9241 collisions even less likely. Initialize always at process startup
9242 time. (make-temp-name) used to return the same file name twice in
9244 Random stylistic fiddling.
9247 2000-03-20 Andy Piper <andy@xemacs.org>
9249 * glyphs.c (image_instantiate): allow text glyphs to be
9250 instantiated in the minibuffer window.
9252 2000-03-19 Andy Piper <andy@xemacs.org>
9254 * glyphs.c (image_instance_hash): be careful about which items we
9257 * glyphs-widget.c (tab_control_set_property): record into pending
9258 items rather than the actual items.
9260 * glyphs-x.c (x_update_widget): use pending items to update with.
9262 * glyphs-msw.c (mswindows_tab_control_update): use pending items
9265 * glyphs.c (mark_image_instance): mark pending items.
9267 * window.c (Fset_window_configuration): record the buffer.
9268 (Fselect_window): totally revert previous change which breaks many
9271 2000-03-18 Andy Piper <andy@xemacs.org>
9273 * glyphs-msw.c (mswindows_tab_control_update): force selected
9276 * glyphs.c (image_instantiate): don't allow the minibuffer as a
9277 window domain cache, otherwise we get inconsistencies at
9278 startup. There is something fishy at startup which can lead to the
9279 minibuffer being the selected window when the gutter content is
9282 * gui.c (parse_gui_item_tree_list): add probably unnecessary
9284 (parse_gui_item_tree_children): ditto.
9285 (parse_gui_item_tree_item): ditto.
9287 * glyphs.c (Fupdate_widget_instances): return something.
9289 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
9291 * window.c (Fselect_window): Undo 2000-03-17 change.
9293 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
9295 * postgresql.c (Fpq_setenv): Remove this turkey when linking
9296 against v7.0 libraries. Insta-coredump city until the postgres
9299 2000-03-17 Andy Piper <andy@xemacs.org>
9301 * faces.c (complex_vars_of_faces): don't give the widget face an
9302 inherited background pixmap.
9304 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9307 * event-stream.c (Fdispatch_non_command_events): return something.
9309 * gutter.c (output_gutter): use widget face.
9310 (clear_gutter): ditto.
9312 * NEWS: adjust again.
9314 * window.c (Fselect_window): make sure this runs to completion to
9315 avoid oddities with Fset_window_configuration.
9316 (Fcurrent_window_configuration): in general do not save the
9317 minibuffer as the selected window.
9319 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9321 2000-03-16 Olivier Galibert <galibert@pobox.com>
9323 * emacs.c (Frunning_temacs_p): Revert previous patch.
9324 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9326 2000-03-16 Andy Piper <andy@xemacs.org>
9328 * glyphs-x.c (x_tab_control_update): if no widget values then
9331 * NEWS: update for new features.
9333 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9334 synthetic event to the native system.
9335 (reinit_vars_of_event_Xt): set force_event_pending to
9336 emacs_Xt_force_event_pending.
9338 * events.h (struct event_stream): add force_event_pending.
9340 * specifier.c (recompute_one_cached_specifier_in_window): add
9343 * redisplay.c (redisplay_frame): don't call
9344 update_frame_subwindows. Reset subwindow cachels when
9345 subwindows_changed, removing this was an optimization too far.
9347 * redisplay-output.c (compare_runes): reorganize so that we catch
9348 glyph changes when we want them. Set optimize_output when this
9350 (redisplay_output_layout): remove frame_really_changed, use
9351 optimize_output instead.
9353 * redisplay-msw.c (mswindows_output_display_block): reset
9354 optimize_output after outputting a glyph.
9355 * redisplay-x.c (x_output_display_block): ditto.
9356 * redisplay-tty.c (tty_output_display_block): ditto.
9358 * gutter.c: (specifier_vars_of_gutter): use new spec changed
9360 (gutter_specs_changed): do specific gutter positions.
9361 (top_gutter_specs_changed): new function. Only update the
9362 specified gutter specs.
9363 (bottom_gutter_specs_changed): ditto.
9364 (left_gutter_specs_changed): ditto.
9365 (right_gutter_specs_changed): ditto.
9367 * gui.c (gui_item_hash_internal): new function, does a real hash.
9368 (gui_item_id_hash): use it.
9369 (gui_item_hash): hash the eval'ed gui_item.
9371 * gui-x.c (popup_selection_callback): send an eval event to call
9372 Fupdate_widget_instances.
9374 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9375 to call Fupdate_widget_instances.
9377 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9378 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9380 * glyphs.c: (update_frame_subwindows): deleted.
9381 (Fupdate_widget_instances): new function for updating the dirty
9382 state of widgets that might have changed.
9383 (syms_of_glyphs): add Qupdate_widget_instances.
9384 (full_list_hash): hash a list completely.
9385 (image_instance_hash): use it for items and properties.
9387 * frame-msw.c (mswindows_size_frame_internal): remove unused
9390 * faces.h (struct face_cachel): fix comment.
9392 * event-stream.c (Fdispatch_non_command_events): new
9393 function. Process non-command events, forcing an event cycle
9395 (syms_of_event_stream): declare.
9396 (event_stream_force_event_pending): new function. Force an event
9397 on the native event queue so that an event cycle will occur next
9401 (struct ntpipe_shove_stream):
9402 (mswindows_enqueue_dispatch_event):
9403 (mswindows_dequeue_dispatch_event):
9404 (mswindows_cancel_dispatch_event):
9405 (mswindows_pump_outstanding_events):
9406 (mswindows_drain_windows_queue):
9407 (mswindows_handle_paint):
9408 (mswindows_wnd_proc):
9409 (mswindows_key_to_emacs_keysym):
9410 (get_process_input_waitable):
9411 (emacs_mswindows_delete_stream_pair): re-indent file.
9412 (mswindows_need_event): do not process further fds if the windows
9413 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9414 fixes the 100% cpu problem.
9415 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9417 2000-03-15 Olivier Galibert <galibert@pobox.com>
9423 * emacs.c: Moved dump file searching to dumper.c.
9424 (Frunning_temacs_p): Fixed.
9426 * alloc.c: Moved everything pdump-related to dumper.c. Removed
9427 last_lrecord_type_index_assigned.
9429 2000-02-20 Olivier Galibert <galibert@pobox.com>
9431 * symsinit.h: Added reinit parameter to init_console_stream
9434 * lisp.h: Added file parameter to pdump_load declaration.
9436 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9437 support. Added dump file searching.
9439 * config.h.in: Added EMACS_PROGNAME.
9441 * console-stream.c (init_console_stream): Fix reinitialisation
9442 when running from temacs.
9444 * alloc.c (pdump): Add id support.
9445 (pdump_load): Add file parameter and signature/id support.
9447 * Makefile.in.in: Add full pdump support.
9449 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
9451 * postgresql.c: Update documentation to reflect latest code
9453 (print_result): Show tuple counts in printed representation when
9455 (Fpq_put_nbytes): MULE-ize.
9456 (Fpq_get_line_async): Ditto.
9458 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
9460 * postgresql.c (Fpq_lo_import): Fix return value.
9461 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9463 2000-03-13 Ben Wing <ben@xemacs.org>
9465 * alloc.c (pdump_load):
9466 Fix compile warning under mswin.
9468 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
9470 * postgresql.c: Mule-ization, bug fixes.
9471 Use PG_CODING to encapsulate coding system name changes.
9472 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9473 (pg-coding-system): Create.
9475 (Fpq_conn_defaults): Mule-ize.
9476 (Fpq_connectdb): Mule-ize & bug fix.
9477 (Fpq_connect_start): Mule-ize.
9478 (Fpq_set_client_encoding): Mule-ize.
9479 (Fpq_finish): Document `DEAD' connection status.
9481 (Fpq_pgconn): Mule-ize.
9482 (Fpq_exec): Mule-ize & bug fix.
9483 (Fpq_send_query): Ditto.
9484 (Fpq_get_result): Ditto.
9485 (Fpq_res_status): Mule-ize.
9486 (Fpq_result_error_message): Mule-ize.
9487 (Fpq_ntuples): fix comments.
9488 (Fpq_fname): Mule-ize.
9489 (Fpq_fnumber): Mule-ize.
9490 (Fpq_ftype): fix comments.
9491 (Fpq_get_value): Mule-ize.
9492 (Fpq_cmd_status): Ditto.
9493 (Fpq_cmd_tuples): Ditto.
9494 (Fpq_oid_value): Ditto.
9495 (Fpq_notifies): Ditto.
9496 (Fpq_lo_import): Ditto.
9497 (Fpq_lo_export): Ditto.
9498 (Fpq_get_line): Ditto.
9499 (Fpq_put_line): Mule-ize and bug fix.
9500 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9502 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
9504 * postgresql.c (vars_of_postgresql): Mule-ize.
9505 (Fpq_conn_defaults): Ditto.
9507 2000-03-12 Ben Wing <ben@xemacs.org>
9509 * alloc.c (Fmake_byte_code):
9510 * alloc.c (debug_string_purity_print):
9511 * alloc.c (pdump_backtrace):
9512 * alloc.c (pdump_get_indirect_count):
9513 * alloc.c (pdump_register_sub):
9514 * alloc.c (pdump_register_object):
9515 * alloc.c (pdump_register_struct):
9516 * alloc.c (pdump_dump_data):
9517 * alloc.c (pdump_reloc_one):
9521 * console-msw.c (GetConsoleHwnd):
9522 * console-msw.c (msw_hide_console):
9523 * console-msw.c (msw_show_console):
9524 * console-msw.c (msw_ensure_console_buffered):
9525 * console-msw.c (msw_output_console_string):
9526 * console-msw.c (console_type_create_mswindows):
9528 a) Added functions to manipulate the console window for use with
9531 b) Added support for writing text to the console, which is now
9532 used under Windows when xemacs is not being run non-interactively,
9533 to write text that would otherwise be destined for stdout because
9534 under these circumstances, text written to stdout tends to
9535 disappear and not be seen.
9539 * event-Xt.c (x_event_to_emacs_event):
9540 * event-Xt.c (describe_event_window):
9541 * events-mod.h (XEMACS_MOD_CONTROL):
9543 * events.c (Fmake_event):
9544 * events.c (character_to_event):
9545 * events.c (event_to_character):
9546 * events.c (format_event_object):
9547 * events.c (Fevent_modifiers):
9549 * events.h (struct key_data):
9550 * events.h (struct button_data):
9551 * events.h (struct misc_user_data):
9552 * frame-x.c (Fcde_start_drag_internal):
9553 * frame-x.c (Foffix_start_drag_internal):
9554 * gpmevent.c (Freceive_gpm_event):
9556 * keymap.c (bucky_sym_to_bucky_bit):
9557 * keymap.c (control_meta_superify):
9558 * keymap.c (make_key_description):
9559 * keymap.c (keymap_lookup_directly):
9560 * keymap.c (create_bucky_submap):
9561 * keymap.c (keymap_store):
9562 * keymap.c (define_key_check_and_coerce_keysym):
9563 * keymap.c (define_key_parser):
9564 * keymap.c (define_key_alternate_name):
9565 * keymap.c (Fdefine_key):
9566 * keymap.c (raw_lookup_key_mapper):
9567 * keymap.c (struct map_keymap_unsorted_closure):
9568 * keymap.c (map_keymap_unsorted_mapper):
9569 * keymap.c (map_keymap_sort_predicate):
9570 * keymap.c (map_keymap_sorted):
9571 * keymap.c (accessible_keymaps_mapper_1):
9572 * keymap.c (where_is_recursive_mapper):
9573 * keymap.c (describe_map_mapper):
9574 * keymap.c (describe_map_sort_predicate):
9575 * keymap.c (describe_map):
9576 * keymap.c (complex_vars_of_keymap):
9577 And a number of other files, the key modifier preprocessor
9578 constants that xemacs uses have names that conflict with constants
9579 defined under MS Windows for other purposes, so they were renamed
9580 to begin with the prefix XEMACS_. The variables that hold such
9581 modifiers were changed to consistently be of type int to fix
9582 various compile warnings.
9584 * console.c (complex_vars_of_console):
9587 * device-msw.c (mswindows_finish_init_device):
9588 * device-msw.c (msw_get_workspace_coords):
9589 * device-msw.c (mswindows_device_system_metrics):
9590 and various other files, added support for a new
9591 device property called offset-workspace which returns the position
9592 of the upper left corner of the workspace area and goes along with
9593 the existing size-workspace property.
9596 * dialog-msw.c (push_bufbyte_string_as_unicode):
9597 * dialog-msw.c (mswindows_popup_dialog_box):
9598 Added support for XEmacs-style accelerator specifications in
9599 button text. Note: I didn't add support for this under X Windows,
9600 and somebody needs to do this.
9603 * dialog.c (Fpopup_dialog_box):
9604 Documented the support for accelerators that was just mentioned.
9606 editfns.c (get_home_directory): Changed behavior under Windows
9607 when HOME not defined; former behavior was irretrievably broken.
9612 * minibuf.c (clear_echo_area_internal):
9613 * minibuf.c (echo_area_append):
9615 * print.c (std_handle_out_external):
9616 * print.c (std_handle_out_va):
9618 * print.c (write_string_to_stdio_stream):
9619 * print.c (output_string):
9620 * print.c (debug_print):
9621 * print.c (debug_backtrace):
9622 * print.c (debug_short_backtrace):
9623 Cleaned up the code that prints text to stdout so that this can be
9624 changed to output into a console window instead under MS Windows,
9628 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9629 * eval.c (internal_catch):
9630 * eval.c (unwind_to_catch):
9631 * eval.c (throw_or_bomb_out):
9632 * eval.c (condition_case_1):
9633 * eval.c (signal_1):
9634 * eval.c (check_error_state_sanity):
9635 * eval.c (call_with_suspended_errors_1):
9636 * eval.c (call_with_suspended_errors):
9637 * eval.c (reinit_vars_of_eval):
9638 Added code to catch throw loops and check for a pesky bug that may
9642 * event-msw.c (key_needs_default_processing_p):
9643 * event-msw.c (mswindows_wnd_proc):
9644 * event-msw.c (mswindows_modifier_state):
9645 * event-msw.c (emacs_mswindows_quit_p):
9646 * event-msw.c (vars_of_event_mswindows):
9647 a) Added support for using the alt key to select menu items as is
9648 standard under MS Windows. This is controlled using the variable
9649 menu-accelerator-enabled, just like under X Windows. There is an
9650 option on the options menu to turn this support on. I really
9651 think that it should be on by default under Windows, but I'm not
9652 going to make this change yet.
9654 b) Added support for dynamic display size changes under Windows.
9657 * event-stream.c (maybe_echo_keys):
9658 * event-stream.c (Fnext_event):
9659 * event-stream.c (command_builder_find_leaf):
9660 * event-stream.c (lookup_command_event):
9661 * event-stream.c (execute_command_event):
9662 * event-stream.c (pre_command_hook):
9663 * event-stream.c (post_command_hook):
9664 * event-stream.c (syms_of_event_stream):
9665 * event-stream.c (vars_of_event_stream):
9666 * event-stream.c (complex_vars_of_event_stream):
9667 * events.h (struct command_builder):
9669 a) Tried to clean up a little bit the horribly written x-specific
9670 accelerator code that crept into this file. I moved this code
9671 into menubar-x.c where it belongs. I also needed to move the
9672 command builder structure into the file events.h because it is
9673 accessed directly by this accelerator code. What I didn't do, but
9674 which should be done at some point, is to properly abstract this
9675 code using device methods instead of the kludgy way that it
9676 currently hooks into the event code.
9678 b) Added the lisp variables this-command-properties and
9679 last-command- properties, which should be used to synchronize two
9680 adjacent commands in preference to playing games with the variable
9681 this-command, which is typically what happens.
9683 c) Added some slightly nasty code to hook into the lisp support
9684 for shifted- motion-key selection. This is actually necessary for
9685 somewhat complicated reasons, which are described in
9686 simple.el. (NB: I think the proper thing would be to have the code
9687 that calls the pre and post command hooks also call out to generic
9688 lisp functions in simple.el, where all built-in stuff could be
9689 added. I will think about this more.)
9691 * event-unixoid.c (poll_fds_for_input):
9692 * lread.c (readchar):
9693 * redisplay-tty.c (tty_clear_frame):
9694 * redisplay-x.c (x_get_gc):
9695 * signal.c (interrupt_signal):
9696 And a whole bunch of other files: fixed up places that printed
9697 directly to stderr to instead call the function stderr_out so that
9698 the changes I made under Windows work correctly.
9700 * filemode.c (mode_string):
9704 * frame-msw.c (mswindows_size_frame_internal):
9705 Fixed the computation of frame size and position to keep the frame
9706 within the workspace area, rather than within the physical
9707 dimensions of the screen, so that the frame doesn't overlap window
9708 manager decorations, such as the start menu and toolbar, typically
9709 at the bottom of the screen.
9711 * frame.c (vars_of_frame):
9712 Changed the default frame title format under MS Windows to consist
9713 of buffername-XEmacs, which is standard under MS Windows. I think
9714 it might be a good idea to change this everywhere because I think
9715 it is superior to the current frame title format, but this is the
9716 kind of change that is likely to cause some people to get annoyed,
9717 so I'm not making it.
9719 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9721 * gui-msw.c (mswindows_handle_gui_wm_command):
9722 Fixed compile warnings.
9725 * gui-x.c (strdup_and_add_accel):
9726 * gui-x.c (button_item_to_widget_value):
9728 Added code to automatically put an accelerator onto the beginning
9729 of menu items that don't have one as is now the standard, and is
9730 described more later. Also fixed things so that the menu item
9731 name can be an evaluated expression, again a new standard.
9734 * gui.c (gui_item_add_keyval_pair):
9735 * gui.c (make_gui_item_from_keywords_internal):
9736 * gui.c (gui_add_item_keywords_to_plist):
9737 * gui.c (gui_item_accelerator):
9738 * gui.c (gui_name_accelerator):
9739 * gui.c (gui_item_included_p):
9740 * gui.c (gui_item_display_flush_left):
9741 * gui.c (gui_item_display_flush_right):
9742 * gui.c (parse_gui_item_tree_item):
9743 * gui.c (parse_gui_item_tree_children):
9744 * gui.c (parse_gui_item_tree_list):
9745 Mule-ized. Cleanup. GCPRO addition.
9747 * line-number.c (buffer_line_number):
9749 * lisp.h (EMACS_INT_MAX):
9750 Added the manifest constant EMACS_INT_MIN corresponding to the
9751 existing constant EMACS_INT_MAX. This is partially to fix compile
9752 warnings under Windows, and partly for cleanliness.
9755 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9756 * menubar-msw.c (msw_translate_menu_or_dialog_item):
9757 * menubar-msw.c (displayable_menu_item):
9758 * menubar-msw.c (populate_menu_add_item):
9759 * menubar-msw.c (populate_or_checksum_helper):
9760 * menubar-msw.c (populate_menu):
9761 * menubar-msw.c (update_frame_menubar_maybe):
9762 * menubar-msw.c (prune_menubar):
9763 * menubar-msw.c (msw_char_is_accelerator):
9764 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9765 * menubar-msw.c (mswindows_handle_wm_command):
9766 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9767 * menubar-msw.c (mswindows_handle_wm_initmenu):
9768 * menubar-msw.c (mswindows_update_frame_menubars):
9769 * menubar-msw.c (mswindows_free_frame_menubars):
9770 * menubar-msw.c (mswindows_popup_menu):
9771 Fixed a bug in handling accelerators where an extra character
9772 would be displayed in the menu item. Also generalized the
9773 function displayable_menu_item because it is now used by the
9774 dialog box code as well. And finally, added code in the functions
9775 that create the menubar to extract a list of accelerators for the
9776 top level menubar, which is used in the event code to determine
9777 whether a particular alt-key combination should be used to invoke
9778 a menu item, or should be passed through to access the standard
9779 XEmacs keymap binding for this key combination.
9781 Much needed GCPROing.
9784 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9785 * menubar-x.c (menu_item_descriptor_to_widget_value):
9786 * menubar-x.c (restore_in_menu_callback):
9787 * menubar-x.c (x_popup_menu):
9788 * menubar-x.c (menu_move_up):
9789 * menubar-x.c (menu_move_down):
9790 * menubar-x.c (menu_move_left):
9791 * menubar-x.c (menu_move_right):
9792 * menubar-x.c (menu_select_item):
9793 * menubar-x.c (command_builder_operate_menu_accelerator):
9794 * menubar-x.c (menu_accelerator_junk_on_error):
9795 * menubar-x.c (command_builder_find_menu_accelerator):
9796 * menubar-x.c (Faccelerate_menu):
9798 Moved a whole bunch of code here that was previously in
9799 event-stream.c as described above. There is also code connected
9800 to the new standard of adding an accelerator to the beginning of
9801 menu items that don't have one as described above and below.
9804 * menubar.c (menu_parse_submenu_keywords):
9805 * menubar.c (Fmenu_find_real_submenu):
9806 * menubar.c (Fnormalize_menu_item_name):
9807 * menubar.c (syms_of_menubar):
9808 * menubar.c (vars_of_menubar):
9809 * menubar.c (complex_vars_of_menubar):
9811 a) Cleaned up a bunch of documentation and improved it.
9813 b) XEmacs now automatically adds an accelerator onto the beginning
9814 of any menu items that don't have one. I did this because there
9815 will inevitably be some menu items on the main menubar that don't
9816 have accelerators on them because the package that adds that
9817 particular menu item hasn't yet been fixed up to have accelerators
9818 in them and it looked rather strange to have some items with and
9819 some items without accelerators, especially since even in items
9820 without accelerators, you can, at least under windows, still
9821 access the item through an accelerator corresponding to the first
9822 character in the item's name. If people don't like this behavior,
9823 I can add a variable to turn it off optionally, but I'm not sure
9824 this is a good idea because we really do need to have accelerators
9825 on all of the menu items, and if a package doesn't like the
9826 accelerators being put on the first character, then it should put
9827 the accelerators where they belong.
9829 c) I made a behavior change, which is that the descriptor that
9830 specifies the text of the menu item, which formerly was just a
9831 string, can now also be an evaluated expression. This makes this
9832 descriptor parallel with all of the others, which could also be
9833 evaluated expressions. This also obviates the need for the
9834 keyword :label, which was previously listed in the documentation
9835 as unimplemented, and which was for the same purpose.
9840 * ntproc.c (new_child):
9841 * ntproc.c (sys_spawnve):
9842 * ntproc.c (find_child_console):
9843 * ntproc.c (sys_kill):
9844 Fixed compile warnings. By the way, this file should really go
9845 away entirely, and this will happen as soon as Kirill makes his
9846 final round of process cleanups, which affect the function
9850 * process-nt.c (struct nt_process_data):
9851 * process-nt.c (find_process_from_pid):
9852 * process-nt.c (send_signal_the_nt_way):
9853 * process-nt.c (enable_child_signals):
9854 * process-nt.c (find_child_console):
9855 * process-nt.c (send_signal_the_95_way):
9856 * process-nt.c (nt_finalize_process_data):
9857 * process-nt.c (ensure_console_window_exists):
9858 * process-nt.c (nt_create_process):
9859 * process-nt.c (nt_kill_child_process):
9860 * process-nt.c (nt_kill_process_by_pid):
9861 * process-nt.c (nt_open_network_stream):
9862 * process-nt.c (vars_of_process_nt):
9863 Copied over code from Emacs 20.5 to correctly send signals to sub-
9864 processes under Windows 95. Also added code to automatically
9865 create and hide console window when a sub-process is created under
9866 Windows 95, which obviates the need for the separate runemacs.exe
9867 executable, and finally implemented some variables that were
9868 implemented in Emacs 20.5, but previously not in XEmacs. These
9869 include mswindows- start-process-share-console and
9870 mswindows-start-process-inherit-error-mode. (Both of these only
9871 apply to Windows 95.)
9873 * regex.c (regex_compile): Fixed a compile warning.
9876 * select-msw.c (mswindows_own_selection):
9877 * select-msw.c (mswindows_get_foreign_selection):
9878 * select-msw.c (mswindows_disown_selection):
9879 * select-msw.c (console_type_create_select_mswindows):
9880 * select-msw.c (syms_of_select_mswindows):
9881 Cleaned up the file and implemented the device method
9882 selection_exists_p, which had accidentally been left out. Also
9883 removed four lisp functions that were remnants from before the
9884 time when the selection code was properly device abstracted.
9885 These functions are no longer needed because there are generic
9886 equivalents, and because they were added recently and don't exist
9887 in FSF Emacs, I don't think there's any problem with just deleting
9891 * sysdep.c (sys_subshell):
9892 Fixed a compile warning, although in this case there's probably
9893 something wrong with this code, and it ought to be looked into
9894 more thoroughly by somebody who understands it.
9897 * window.c (Fwindow_text_area_height):
9898 * window.c (Fwindow_width):
9899 * window.c (Fwindow_full_width):
9900 * window.c (Fwindow_pixel_width):
9901 * window.c (debug_print_window):
9902 * window.c (syms_of_window):
9903 Added functions window-text-area-height and window-full-width,
9904 which are functions for returning various width and height
9905 characteristics of a window. (One of these functions is necessary
9906 for making the file dialog box work correctly, and the other one
9907 was added for completeness.) Also added a table to the
9908 documentation for window-height which describes the entire scheme
9909 for accessing width and height characteristics of a window.
9911 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9913 * nt.c (fstat): Added a comment for another problem with
9914 non-encapsulated [f]stat(), reported by Adrian Aichner
9915 <aichner@ecf.teradyne.com>.
9917 2000-03-11 Andy Piper <andy@xemacs.org>
9919 * window.c (make_dummy_parent): initialize subwindow instance
9921 (Fset_window_configuration): zero extent_modiff.
9923 2000-03-10 Andy Piper <andy@xemacs.org>
9925 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9926 more changes can be triggered.
9927 (Fredisplay_frame): ditto.
9928 (Fredraw_device): ditto.
9929 (Fredisplay_device): ditto.
9930 (redisplay_frame): make non-static.
9931 (redisplay_frame): call update_frame_gutter_geometry outside of
9934 * gutter.h: declare update_frame_gutter_geometry.
9936 * redisplay.h: declare redisplay_frame.
9938 * gutter.c (update_frame_gutter_geometry): move geometry changes
9939 in update_frame_gutters here. Geometry changes can only occur
9940 outside of redisplay.
9941 (update_frame_gutters): remove geometry change code.
9942 (Fredisplay_gutter_area): make sure that we are in display when we
9943 update and that we have flushed any size changes.
9945 2000-03-11 Andy Piper <andy@xemacs.org>
9947 * alloc.c (pdump_dump_data): remove i & count shadows.
9949 2000-02-27 Mike Alexander <mta@arbortext.com>
9951 * sysdep.h: Declare pdump_read_file
9953 * sysdep.c (pdump_read_file): New function
9955 * alloc.c (pdump_load): Call pdump_read_file to get the portable
9958 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
9960 * lrecord.h: add `lrecord_type_pgsetenv'.
9962 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
9964 * symsinit.h: declare (vars|syms)_of* functions.
9965 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9967 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
9969 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9971 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9974 * emacs.c (main_1): Call postgres initialization code.
9976 * postgresql.h: New file. PostgreSQL RDBMS support.
9977 * postgresql.c: New file.
9979 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
9981 * redisplay-output.c (redisplay_output_display_block): Disable
9984 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
9986 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9987 (Fcanna_henkan_next): Ditto.
9988 (Fcanna_bunsetu_henkou): Ditto.
9989 (Fcanna_henkan_kakutei): Ditto.
9990 (Fcanna_henkan_end): Ditto.
9991 (Fcanna_henkan_quit): Ditto.
9992 (Fcanna_henkan_next): Set retun value correctly.
9993 (c2mu): Use unsigned char instead of signed char.
9995 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
9997 * emacs.c (main_1): Always call syms_of_gui.
9998 * inline.c: include gui.h
10000 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10002 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10003 converted to Lisp_Object.
10004 (Qtop_bottom): New variable.
10005 (syms_of_redisplay): Initialize it.
10006 * redisplay.h (Vvisible_bell): Ditto.
10007 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10008 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10009 only flash top and bottom.
10011 2000-03-08 Andy Piper <andy@xemacs.org>
10013 * buffer.c (Frename_buffer): record new buffer name the right way.
10015 2000-03-08 Andy Piper <andy@xemacs.org>
10017 * glyphs.c (update_subwindow): increase hash depth so that widget
10018 items get picked up properly.
10020 * redisplay-output.c (compare_runes): increase hash depth so that
10021 widget items get picked up properly.
10023 2000-03-08 Andy Piper <andy@xemacs.org>
10025 * gutter.c (output_gutter): add some debug.
10027 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10028 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10029 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10031 * redisplay-output.c (compare_runes): use display_hash to
10032 determine if glyphs really are not the same.
10034 * glyphs.c (update_subwindow): check display_hash to see if
10035 anything really needs to be updated. If not then do
10036 nothing. Record the display_hash after updating.
10037 (image_instance_equal): compare the image_instance face also.
10039 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
10041 * redisplay.h: Fix comment style.
10043 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
10045 * consle-msw.h (struct mswindows_frame):
10046 Added new member paint_pending to indicate whether a WM_PAINT
10047 magic event has been queued for this frame.
10049 * event-msw.c (mswindows_drain_windows_queue):
10050 Don't queue a WM_PAINT magic event if one is already queued.
10051 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10053 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10055 2000-03-07 Didier Verna <didier@xemacs.org>
10057 * dired.c: #include `regex.h' after `sysfile.h'.
10059 2000-03-06 Martin Buchholz <martin@xemacs.org>
10061 * sound.c (init_nas_sound): Fix compiler warning.
10063 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10065 (MARK_STRUCT_AS_FREE):
10066 (MARK_STRUCT_AS_NOT_FREE):
10067 Make `gcc -fstrict-aliasing' work properly.
10069 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
10071 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10072 (mswindows_delete_device): Call CoUnnitialize().
10074 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10076 2000-02-25 <CraigL@DyCon.com>
10078 * process-nt.c: MinGW now has <shellapi.h>, but still needs
10081 * sysdep.c: This extern declaration for environ prevents MinGW
10082 from finding the variable in CRTDLL.DLL.
10084 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10086 (SHGFI_EXETYPE): ..
10087 (WM_MOUSEWHEEL): ..
10088 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10090 (MMRESULT): Removed, now defined in cygwin's windows headers.
10092 (uid_t,gid_t,pid_t,ssize_t): ..
10093 (_timeb): Removed, MinGW defines both _timeb and timeb.
10094 (HAVE_H_ERRNO): Added.
10095 (HAVE_TZNAME): Added, configure is not detecting this.
10097 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
10099 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10100 * syntax.c (syntax_match): Use it.
10102 * cmds.c: Import auto-fill-chars from FSF Emacs.
10103 (Vauto_fill_chars): New variables.
10104 (internal_self_insert): Check Vauto_fill_chars.
10106 Declare auto-fill-chars as a Lisp variable and initialize it.
10108 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10110 * fileio.c (Fmake_symbolic_link):
10112 Run handlers even if local machine doesn't have symlinks.
10114 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10116 * event-msw.c (mswindows_drain_windows_queue):
10117 Don't generate paint magic events for non-XEmacs frames.
10119 2000-03-05 Andy Piper <andy@xemacs.org>
10121 * redisplay.c (redisplay_frame): generate_displayable_area and
10122 friends assumes that we are not in GC, we therefore have to make
10123 sure that this doesn't happen.
10125 * gutter.c (calculate_gutter_size): generate_displayable_area
10126 assumes that we are not in GC, we therefore have to make sure that
10127 this doesn't happen.
10129 2000-03-05 Martin Buchholz <martin@xemacs.org>
10131 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10133 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10135 * redisplay.c (regenerate_window): Make sure we set a sane value
10136 for end_pos even if we jump out of the loop.
10137 (regenerate_window): Answer Ben's question :-).
10138 (start_end_of_last_line): Add may_error argument.
10139 (start_of_last_line):
10140 (end_of_last_line): Pass may_error = 0.
10141 (end_of_last_line_may_error): New function.
10142 (pixel_to_glyph_translation): Use it, so we don't crash in
10145 2000-03-04 Andy Piper <andy@xemacs.org>
10147 * window.h (struct window): add gutter_extent_modiff.
10149 * window.c (allocate_window): zero out gutter_extent_modiff.
10151 * redisplay.h: declare sync_display_line_structs.
10153 * redisplay.c (add_glyph_rune): add a better comment.
10155 * redisplay-output.c (sync_display_line_structs): made non-static.
10156 (compare_runes): remove unneccesary glyph cachel access.
10158 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10160 * gutter.c (output_gutter): don't output the gutter if extent
10161 changes only involve extents in buffers. use 4 sets of display
10163 (gutter_extent_signal_changed_region_maybe): new function. Mark
10164 extents in gutters as changed.
10165 (update_frame_gutters): use 4 sets of display lines.
10166 (reset_gutter_display_lines): ditto.
10167 (free_frame_gutters): ditto.
10168 (redraw_exposed_gutter): force output of gutters.
10170 * frame.h (struct frame): add 4 sets of gutter display lines.
10172 * extents.c: (extent_changed_for_redisplay): signal changes to
10173 extents in strings in the gutter as well as extents in buffers.
10175 2000-03-02 Andy Piper <andy@xemacs.org>
10177 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10179 * frame.c (Fmake_frame): make sure the gutters get initialized
10180 after the frame is visible.
10181 (set_frame_selected_window): re-arrange compilation macros a
10183 (change_frame_size_1): mark gutters changed.
10185 * device.c (Fset_device_class): mark gutters changed.
10187 2000-03-01 Andy Piper <andy@xemacs.org>
10189 * window.c (window_top_frame_gutter_height): deleted.
10190 (window_bottom_frame_gutter_height): ditto.
10191 (window_left_frame_gutter_height): ditto.
10192 (window_right_frame_gutter_height): ditto.
10193 (window_top_gutter_height): don't use them.
10194 (window_bottom_gutter_height): ditto.
10195 (window_left_gutter_width): ditto.
10196 (window_right_gutter_width): ditto.
10197 (Fsplit_window): ditto.
10198 (Fwindow_pixel_edges): don't use border dimensions here.
10200 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10201 (update_scrollbar_instance): ditto.
10203 * redisplay.c (generate_modeline): don't take gutters into account.
10204 (generate_modeline): ditto.
10205 (redisplay_frame): small gutter display optimization.
10207 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10209 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10210 gutters into account.
10212 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10213 for window position and type.
10215 * gutter.c (get_gutter_coords): fix for frame gutters.
10216 (update_frame_gutters): update frame geometry if the gutters have
10218 (init_frame_gutters): record current gutter geometries.
10220 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10222 (mswindows_widget_instantiate): ditto.
10224 * frame.h (struct frame): add current_gutter_bounds.
10226 * frame.c (change_frame_size_1): position window and minibuffer
10227 appropriately taking into account the frame gutters.
10229 * frame-x.c: (x_initialize_frame_size): take into account the
10232 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10234 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
10236 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10238 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10240 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10242 * file-coding.c (reset_decoding_stream): Clear previous
10243 detection state when autodetect.
10245 2000-02-29 Didier Verna <didier@xemacs.org>
10247 * extents.c (set_extent_glyph_1): don't require extents to be
10250 2000-02-27 Andy Piper <andy@xemacs.org>
10252 * gutter.c (Fset_default_gutter_position): don't default left and
10253 right gutter visibility to t.
10254 (Fset_default_gutter_position): run
10255 default-gutter-position-changed-hook.
10256 (syms_of_gutter): add default-gutter-position-changed-hook.
10258 2000-02-26 Andy Piper <andy@xemacs.org>
10260 * specifier.c (Fmake_specifier): add gutter references.
10262 * gutter.h (RAW_WINDOW_GUTTER): new macro.
10264 * lisp.h: declare Fvalid_plist_p.
10266 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10268 (default_gutter_visible_p_changed_in_window): invalidate gutter as
10269 well as its visibility so that it gets reconstructed.
10270 (construct_window_gutter_spec): new function. Construct a string
10271 to be displayed in the gutter from a plist of strings. Take care
10272 to only use elements that are declared as visible.
10273 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10275 (gutter_validate): allow plists of strings in the specifier.
10276 (gutter_specs_changed): construct the real_gutter from the gutter
10277 specs using construct_window_gutter_spec.
10278 (gutter_visible_validate): gutter-visible is a new specifier type.
10279 (Fgutter_visible_specifier_p): new function for the new specifier.
10280 (syms_of_gutter): declare gutter-visible and
10281 Fgutter_visible_specifier_p.
10282 (specifier_type_create_gutter): intitalize new gutter-visible
10284 (reinit_specifier_type_create_gutter): ditto.
10285 (specifier_vars_of_gutter): use new specifier type for gutter
10287 (init_frame_gutters): construct real_gutter correctly.
10288 (Fgutter_specifier_p): beef up documentation.
10289 (Fgutter_size_specifier_p): ditto.
10291 * winslots.h: add real_gutter slots.
10293 2000-02-25 Andy Piper <andy@xemacs.org>
10295 * device-msw.c: Be kind to older cygwin versions. From Raymond
10296 Toy <toy@rtp.ericsson.se>.
10298 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10299 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10301 2000-02-25 Martin Buchholz <martin@xemacs.org>
10303 * elhash.c (MARK_OBJ): Practice macro hygiene.
10305 2000-02-24 Martin Buchholz <martin@xemacs.org>
10307 * miscplay.c: s/__inline__/inline/g;
10308 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10309 (get_device_compdc): INLINE ==> static inline
10310 * *.[ch]: Change INLINE to INLINE_HEADER globally.
10311 find -name '*.h' | \
10312 xargs global-replace \
10313 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10315 2000-02-25 Andy Piper <andy@xemacs.org>
10317 * window.c (window_top_frame_gutter_height): new function.
10318 (window_top_window_gutter_height): ditto.
10319 (window_top_gutter_height): use them.
10320 (window_bottom_frame_gutter_height): new function.
10321 (window_bottom_window_gutter_height): ditto.
10322 (window_bottom_gutter_height): use them.
10323 (window_left_window_gutter_width): new function.
10324 (window_left_frame_gutter_width): ditto.
10325 (window_left_gutter_width): use them.
10326 (window_right_window_gutter_width): new function.
10327 (window_right_frame_gutter_width): ditto.
10328 (window_right_gutter_width): use them.
10329 (window_pixel_height): new function. calulate window pixel height
10330 with frame gutter involvement.
10331 (Fsplit_window): calculate new sizes taking frame gutters into
10333 (window_char_height_to_pixel_height): don't include frame gutters.
10334 (window_char_height): use window_pixel_height.
10335 (window_pixheight): rename from window_pixel_height.
10336 (change_window_height): use it.
10337 (window_pixel_height_to_char_height): don't include frame gutters.
10338 (window_char_width_to_pixel_width): ditto.
10340 2000-02-25 Andy Piper <andy@xemacs.org>
10342 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10345 2000-02-24 Martin Buchholz <martin@xemacs.org>
10347 * alloc.c (staticpro):
10348 (staticpro_nodump):
10353 (compact_string_chars):
10354 (pdump_dump_wired):
10355 Convert: if (foo) abort(); ==> assert (! foo);
10357 * eldap.c (Fldap_search_basic):
10361 Fix compiler warnings, and possible crashes if (random) return
10362 value were to be used.
10364 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10366 * device-msw.c: Workaround ResetDC failure.
10368 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10369 applying a devmode.
10371 * redisplay-msw.c (get_frame_dc): Added start_page_p.
10372 (mswindows_text_width): Do not start printer page.
10374 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10376 * glyphs-msw.c: Added image methods to msprinter console and
10377 msprinter-specific image instantiation.
10379 2000-02-20 Mike Alexander <mta@arbortext.com>
10381 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10382 to avoid crashes when selection-sets-clipboard is on
10383 (mswindows_own_selection): ditto
10385 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10388 * redisplay-msw.c (get_frame_dc):
10389 (get_frame_compdc):
10391 * device-msw.c (mswindows_init_device):
10392 (mswindows_delete_device):
10393 (msprinter_init_device):
10394 (msprinter_delete_device):
10395 * frame-msw.c (mswindows_init_frame_1):
10396 (mswindows_delete_frame):
10397 (msprinter_init_frame_3):
10398 (msprinter_delete_frame): Move compatible DC to device object from
10399 frame object, for both mswindows and msprinter. Only one at a time
10400 is needed, it is a real waste to have one per frame!
10402 2000-02-23 Andy Piper <andy@xemacs.org>
10404 * glyphs.c: add dynamic width and height elements.
10405 (image_instance_equal): ditto.
10407 * glyphs-widget.c (widget_query_geometry): calculate width and
10408 height dynamically if required.
10409 (initialize_widget_image_instance): initialize dynamic dimensions.
10410 (widget_instantiate): pick-up dynamic dimensions.
10412 * glyphs.h (struct Lisp_Image_Instance): add width and height for
10413 dynamic determination. Add appropriate macros.
10415 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10417 (WINDOW_GUTTER_SIZE): ditto.
10418 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10420 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10422 (get_frame_dc): ditto.
10424 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10427 2000-02-23 Martin Buchholz <martin@xemacs.org>
10429 * XEmacs 21.2.31 is released.
10431 2000-02-22 Ben Wing <ben@xemacs.org>
10433 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10435 2000-02-22 Andy Piper <andy@xemacs.org>
10437 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10439 2000-02-21 Mike Sperber <mike@xemacs.org>
10443 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10446 2000-02-21 Mike Sperber <mike@xemacs.org>
10448 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10450 2000-02-21 Martin Buchholz <martin@xemacs.org>
10452 * XEmacs 21.2.30 is released.
10454 2000-02-20 Martin Buchholz <martin@xemacs.org>
10456 Performance hacking.
10458 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10459 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10460 * emacs.c (main_1):
10462 * console.c (DEFVAR_CONSOLE_LOCAL_1):
10463 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10464 * symeval.h (DEFVAR_SYMVAL_FWD):
10465 * symbols.c (guts_of_unbound_marker):
10466 Make all c_readonly objects also lisp_readonly and marked for life.
10467 * lrecord.h (struct lrecord_implementation):
10468 Document flags better.
10469 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10470 * lrecord.h (DECLARE_LRECORD):
10471 * lrecord.h (XSETRECORD):
10472 * lrecord.h (RECORDP):
10473 * lrecord.h (RECORD_TYPEP):
10474 * lrecord.h (RECORD_MARKER): New.
10475 * lrecord.h (error_check_*):
10476 * lrecord.h (CONCHECK_NONRECORD):
10477 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10478 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10479 * lrecord.h (set_lheader_implementation):
10480 * lrecord.h (enum lrecord_type): New.
10481 * symeval.h (SYMBOL_VALUE_MAGIC_P):
10482 * alloc.c (disksave_object_finalization_1):
10483 * alloc.c (mark_object):
10484 * alloc.c (lrecord_type_index):
10485 * alloc.c (tick_lcrecord_stats):
10486 * alloc.c (Fgarbage_collect):
10487 * alloc.c (init_alloc_once_early):
10488 * alloc.c (pdump_load):
10489 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10490 * alloc.c (lrecord_type_index): Delete.
10491 Make lisp object type indexes be constant.
10492 Makes (byte-compile) 5% faster.
10493 Put all marker functions into their own array.
10494 Makes (garbage-collect) 5% faster.
10495 Optimize SYMBOL_VALUE_MAGIC_P.
10496 Makes (byte-compile) 2-3% faster.
10497 * config.h.in (gc_checking_assert): New.
10498 * alloc.c: Use gc_checking_assert().
10499 * .dbxrc: Make compatible with new object type implementation.
10500 * .gdbinit: Make compatible with new object type implementation.
10501 * alloc.c: Delete all symbols defined only for debugging, such as
10502 Lisp_Type_Vector and lrecord_charset.
10504 2000-02-21 Andy Piper <andy@xemacs.org>
10506 * gui-msw.c (Fmswindows_shell_execute): fix file location
10509 * buffer.c (Fkill_buffer): remove buffer from alist buffer
10510 unshowing so that set_window_buffer doesn't undo
10511 kill_buffer_hook's hard work.
10513 * glyphs-widget.c (tab_control_query_geometry): don't count the
10514 first item when calculating geometry.
10516 * glyphs.c (map_subwindow): remove redundant code.
10517 (update_frame_subwindows): be more circumspect about when to
10520 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10521 when items haven't changed. Update faces if faces have changed as
10522 well as just the widget face.
10523 (x_tab_control_update): Update faces if faces have changed as well
10524 as just the widget face.
10526 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
10528 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10530 (build_syscolor_string): Use mswindows_color_to_string to try to
10532 (mswindows_device_system_metrics): Reverse the foreground and
10533 background colors so that they match the documentation.
10535 * objects-msw.c: (mswindows_X_color_map): tweak some values so
10536 they match the default Windows palette.
10537 (mswindows_color_to_string): New function.
10539 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
10541 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10543 2000-02-18 Olivier Galibert <galibert@pobox.com>
10545 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10546 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10548 * symbols.c (init_symbols_once_early): Removed obsolete
10549 DATA_SEG_BITS related kludge.
10550 (defvar_magic): Ditto.
10552 * malloc.c: Removed obsolete DATA_SEG_BITS
10554 * mem-limits.h: Ditto.
10556 * Makefile.in.in: Removed obsolete HAVE_SHM
10559 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
10561 * device-msw.c (mswindows_delete_device): Free DDE string
10564 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10566 * keymap.c (get_keyelt):
10567 * unexnt.c (unexec):
10568 * vm-limit.c (memory_warnings):
10569 * ntheap.c (recreate_heap):
10570 * ntheap.h (UNINIT_PTR):
10571 * select-msw.c (Fmswindows_get_clipboard):
10572 (Fmswindows_set_clipboard):
10573 * objects-msw.h (MSWINDOWS_BAD_HFONT):
10575 * menubar-msw.c (displayable_menu_item):
10577 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10578 * sysdep.c (sys_subshell):
10579 * process-nt.c (nt_create_process):
10580 * nt.c (normalize_filename):
10581 (dostounix_filename):
10582 (unixtodos_filename):
10583 * ntproc.c (win32_executable_type):
10584 * ntplay.c (play_sound_data_1):
10586 * editfns.c (get_home_directory):
10587 * event-msw.c (struct winsock_stream):
10588 (mswindows_dde_callback):
10589 * device-msw.c (msprinter_init_device):
10590 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10592 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10593 mswindows_clear_toolbar were swapped!
10595 * objects-msw.c:(colormap_t):
10597 * emacs.c (struct standard_args): Fixed const jumble.
10599 * glyphs-widget.c (update_widget): Fixed comparison notation.
10601 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10603 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10604 __declspec(noreturn) syntax.
10606 2000-02-19 Martin Buchholz <martin@xemacs.org>
10608 * eldap.c (Fldap_open):
10609 (Fldap_search_basic):
10612 Use new coding system conversion macros.
10614 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10616 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10618 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
10620 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10621 (Fldap_add, Fldap_modify, Fldap_delete): New functions
10623 * eldap.c (Qadd, Qreplace): New constant symbols
10624 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10625 interruptions by XEmacs signals
10626 Remove unnecessary calls to slow_down_interrupts and
10627 speed_up_interrupts
10628 (Fldap_search_basic): Renamed from Fldap_search_internal
10629 Added new optional parameter VERBOSE that triggers the
10630 display of progress messages
10631 Remove unnecessary calls to slow_down_interrupts and
10632 speed_up_interrupts
10633 LDAP result code analysis rewritten
10634 (Fldap_add, Fldap_modify, Fldap_delete): New functions
10635 (syms_of_eldap): Define the new symbols and functions
10638 2000-02-17 Martin Buchholz <martin@xemacs.org>
10640 * realpath.c: Determine PATH_MAX maximally portably.
10642 * insdel.c (bytecount_to_charcount): Optimize.
10643 The function used to be optimized for entirely ASCII sequences.
10644 Now it is optimized for successive characters from the same
10645 charset. This also wins big for _mostly_ ASCII sequences.
10647 * fileio.c (Ffile_truename): convert return from realpath() using
10648 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
10649 - Rewrite GCPROing slightly.
10651 * sysdep.c (sys_open): Do filename conversion, like all other
10652 sys_* functions. Fixes bug:
10653 (let ((file-name-coding-system 'iso-8859-2))
10654 (write-region x y latin2-name))
10655 ==> writes filename using internal encoding.
10657 2000-02-18 Martin Buchholz <martin@xemacs.org>
10659 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10660 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10661 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10662 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10663 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10664 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10665 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10666 (CONST_IF_NOT_DEBUG): Delete.
10667 * alloc.c (this_one_is_unmarkable): Delete.
10668 (mark_object): Don't check for this_one_is_unmarkable. Use the
10669 c_readonly flag instead.
10670 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10672 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
10674 * event-msw.c (mswindows_drain_windows_queue):
10675 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10676 away redundant repaint events.
10678 2000-02-17 Andy Piper <andy@xemacs.org>
10680 * redisplay.h: declare mark_redisplay_structs.
10682 * redisplay.c (redisplay_window):
10683 (redisplay_frame): don't check subwindows_state_changed.
10684 (mark_redisplay): mark gutters here.
10686 * glyphs.c: (instantiate_image_instantiator): always layout if we
10687 haven't done so already.
10688 (allocate_image_instance): don't mark as dirty.
10689 (update_subwindow): bind inhibit_quit.
10691 * gutter.c (mark_gutters): new function.
10693 * glyphs-x.c (x_update_widget): Always resize to get round a
10696 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10697 breaking absolutely everything.
10699 * gutter.h: declare mark_gutters.
10701 2000-02-16 Martin Buchholz <martin@xemacs.org>
10703 * XEmacs 21.2.29 is released.
10705 2000-02-15 Olivier Galibert <galibert@pobox.com>
10707 * fns.c (size_bit_vector): Fix computation of the size.
10709 2000-02-15 Martin Buchholz <martin@xemacs.org>
10711 * *.[ch]: Change CONST to const globally.
10712 find -name '*.[ch]' | \
10713 xargs global-replace \
10714 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10715 - Remove vestigial references to CONST_IS_LOSING
10717 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
10719 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10720 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10721 events instead of dispatching them directly.
10722 (mswindows_handle_paint): New function to do repainting.
10723 (mswindows_wnd_proc):
10724 (emacs_mswindows_handle_magic_event): Call above function.
10726 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
10728 * objects-msw.c (mswindows_create_font_variant): Return the new
10730 (initialize_font_instance): Get font metrics from the underlined
10731 variant of the font to cope with the case where the underlined
10732 font has a bigger descent.
10734 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10736 * gui.c (gui_item_accelerator): Return the first underlined
10737 character in item name.
10739 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10741 * lisp.h: Added Qprinter.
10743 * general.c (syms_of_general): Initialized it.
10745 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10747 (get_frame_compdc): Made inline.
10749 * console.h (struct console_methods): Added eject_page method.
10751 * frame.h: Added FRAME_DISPLAY_P and friends.
10752 Aligned backslahes in many macros in more readable fashion.
10753 Added page_number to struct frame, and an accessor macro
10756 * defice.h: Added DEVICE_DISPLAY_P and friends.
10758 * device.c (Fdevice_printer_p): Used these.
10760 * frame.c (allocate_frame_core): Initialize page number.
10761 (Fprint_job_page_number):
10762 (Fprint_job_eject_page): Implemented.
10764 * frame-msw.c (msprinter_eject_page): Added method.
10765 (msprinter_start_page): Added.
10767 * window.c (Fwindow_truncated_p): Fixed docstring.
10768 (Fwindow_last_line_visible_height): Implemented.
10770 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10772 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10774 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10776 * syntax.c (scan_words): Always advance at least one character.
10778 2000-02-13 Andy Piper <andy@xemacs.org>
10780 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10781 to make sure the glyph is in the cachels.
10783 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10784 global image instance flag.
10785 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10786 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10788 * glyphs.c (allocate_image_instance): set dirty bits correctly.
10789 (Fset_image_instance_property): mark layout as changed.
10790 (invalidate_glyph_geometry_maybe): mark layout as changed.
10791 (glyph_width): use new NEEDS_LAYOUT macro.
10792 (glyph_ascent): ditto.
10793 (glyph_descent): ditto.
10794 (glyph_height): ditto.
10795 (image_instance_layout): mark layout as clean after laying out.
10796 (update_subwindow): don't mark layout as clean here.
10798 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10799 should no longer be needed.
10801 * glyphs-x.c (x_update_widget): sanitize asserts.
10802 (x_finalize_image_instance): sanitize assignment to widgets.
10804 * glyphs-widget.c (widget_instantiate): don't need to clear the
10807 2000-02-13 Martin Buchholz <martin@xemacs.org>
10809 * sysdep.c (getcwd): Use standard prototype.
10810 * sysdep.h (getcwd): Use standard prototype.
10812 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10813 (sequence, start, end).
10814 Remove redundant type checking.
10815 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10816 view of `caller-protects') to avoid a crash where the real fix was
10819 2000-02-12 Martin Buchholz <martin@xemacs.org>
10821 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10823 * s/sol2.h: Remove feature macro initialization.
10825 * alloc.c (alloc_lcrecord): Add more type checking assertions.
10826 (vector_hash): New. Code from internal_hash.
10828 Fix up allocation subsystem comments.
10830 * config.h.in: Add __EXTENSIONS__ for Solaris.
10832 * systime.h (EMACS_GETTIMEOFDAY): New.
10833 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10834 Remove Solaris-specific code.
10835 Use void* for the (ignored) second arg for gettimeofday().
10837 * elhash.c (hash_table_hash): Implement it, finally.
10838 * elhash.c: Use hashcode_t.
10840 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10841 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10843 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10844 * fns.c (size_bit_vector):
10845 * alloc.c (size_vector):
10846 (make_vector_internal):
10847 (make_bit_vector_internal):
10848 (sweep_bit_vectors_1):
10849 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10851 2000-02-10 Martin Buchholz <martin@xemacs.org>
10853 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10854 Include strings.h to avoid warnings for bzero and strcasecmp.
10856 2000-02-10 Olivier Galibert <galibert@pobox.com>
10858 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10859 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10861 * fns.c (size_bit_vector): New. Declare bit vectors as a
10864 2000-02-10 Olivier Galibert <galibert@pobox.com>
10866 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10867 use a value field instead.
10868 (symbol_value_forward_forward): Use value field.
10869 (DEFVAR_SYMVAL_FWD): Use value field.
10870 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
10871 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10872 (DEFVAR_CONST_INT): Ditto.
10873 (DEFVAR_BOOL): Ditto.
10874 (DEFVAR_CONST_BOOL): Ditto.
10875 (DEFVAR_INT_MAGIC): Ditto.
10876 (DEFVAR_BOOL_MAGIC): Ditto.
10878 * symbols.c (guts_of_unbound_marker): Use value field.
10879 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10880 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10882 * lisp.h: Declare dumpopaque and noninteractive1.
10884 * alloc.c (dumpopaque): Added.
10885 (pdump_dump_opaquevec): Added.
10886 (pdump): Call pdump_dump_opaquevec to dump opaque data.
10887 (pdump_load): Reload opaque data. Sync noninteractive1 with
10890 2000-02-10 Andy Piper <andy@xemacs.org>
10892 * glyphs.c (image_instance_layout): if the size changes, mark it
10895 * redisplay-output.c (redisplay_output_layout): Update the
10897 (redisplay_output_subwindow): ditto.
10899 * glyphs.c (update_subwindow): make sure we reset flags for
10900 layouts as well as everything else.
10902 * glyphs-widget.c (layout_layout): don't need to set the instances
10905 2000-02-09 Martin Buchholz <martin@xemacs.org>
10907 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
10908 not HAVE_DLOPEN, which is a lower-level thing.
10910 * .cvsignore: Ignore gmon.out
10912 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
10914 * .cvsignore: Ignore portable dumper xemacs.dmp file
10916 2000-02-09 Andy Piper <andy@xemacs.org>
10918 * redisplay-output.c (redisplay_output_layout): be more clever
10919 about when we output based on the changed flags.
10921 * glyphs.h (struct image_instantiator_methods): add update_method.
10922 (struct Lisp_Image_Instance): add changed flags. Declare new
10923 macros for manipulating them.
10925 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10926 (image_instance_parent_glyph): find an image_instance's parent
10927 glyph or image_instance.
10928 (image_instance_layout): mark the size as changed.
10929 (set_image_instance_dirty_p): new function. mark an image
10930 instance, plus all of its parents, as dirty.
10931 (Fset_image_instance_property): use it.
10932 (Fglyph_animated_timeout_handler): use it.
10933 (update_subwindow): call update_widget and device methods for
10934 update_subwindow. Mark all changed flags as clean.
10935 (Fresize_subwindow): mark size as changed.
10937 * glyphs-x.c (x_finalize_image_instance): try and detect gc
10939 (x_update_subwindow): only resize subwindows here.
10940 (x_update_widget): new function. Update all changed properties of
10942 (x_resize_subwindow): deleted.
10943 (x_widget_set_property): deleted.
10944 (x_progress_gauge_set_property): deleted.
10945 (x_progress_gauge_update): new function. Implement recorded
10947 (x_tab_control_update): ditto.
10948 (x_tab_control_set_property): deleted.
10949 (console_type_create_glyphs_x): declare new functions.
10950 (image_instantiator_format_create_glyphs_x): ditto.
10952 * glyphs-widget.c (widget_set_property): mark text changed.
10953 (update_widget): new function. Update properties of a widget.
10954 (widget_instantiate): for layouts make sure we set their
10955 children's parent correctly.
10956 (tab_control_set_property): new function. Record changes that will
10957 take place under redisplay's control.
10958 (progress_gauge_set_property): ditto.
10959 (image_instantiator_progress_guage): declare new functions.
10960 (image_instantiator_tab_control): ditto.
10962 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10964 (mswindows_update_widget): new function. Update all properties on
10965 a widget that have changed.
10966 (mswindows_button_update): new function. Update a button's set
10968 (mswindows_tab_control_update): new function. Update the items in
10970 (mswindows_tab_control_set_property): deleted.
10971 (mswindows_progress_gauge_update): new function. Update the
10972 progress gauge's progress.
10973 (mswindows_widget_set_property): deleted. This is all done
10974 asynchronously now.
10975 (mswindows_progress_gauge_set_property): ditto.
10976 (console_type_create_glyphs_mswindows): declare new methods.
10977 (image_instantiator_format_create_glyphs_mswindows): ditto.
10979 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10980 (msprinter_set_frame_properties): ditto.
10982 * console.h (struct console_methods): Add update_widget_method.
10984 2000-02-09 Andy Piper <andy@xemacs.org>
10986 * gui-msw.c (Fmswindows_shell_execute): Make
10987 mswindows-shell-execute industrial strength.
10989 2000-02-08 Martin Buchholz <martin@xemacs.org>
10991 * lrecord.h: Make macro argument `props' match member function `plist'.
10994 * fns.c (Fremprop):
10995 * fns.c (Fobject_plist):
10998 Object property list frobbing cleanup.
10999 - Allow any lisp object (compared with `eq'), not just symbols, as
11000 keys in object plists.
11001 - Move symbol plist frobbing into symbols.c, where it belongs.
11002 - Move string plist frobbing into alloc.c, where it belongs.
11003 - Everything's an lrecord now, so no need to test for symbolp, etc.
11004 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11006 * extents.c: Reorder code to remove declarations.
11008 * frame.h (store_in_alist): Remove useless declaration.
11010 2000-02-07 Martin Buchholz <martin@xemacs.org>
11012 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11013 * config.h.in: Add HAVE_XCONVERTCASE.
11015 2000-02-07 Andy Piper <andy@xemacs.org>
11017 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11018 it breaks many things.
11020 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11022 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11023 actually can start a common comment type.
11024 * src/syntax.h (SYNTAX_END_P): ditto for end.
11026 2000-02-07 Martin Buchholz <martin@xemacs.org>
11028 * XEmacs 21.2.28 is released.
11030 2000-02-06 Martin Buchholz <martin@xemacs.org>
11032 * event-Xt.c (x_keysym_to_character): New.
11033 (maybe_define_x_key_as_self_inserting_character): New.
11034 (x_has_keysym): New.
11035 Auto-define all keys on the keyboard as self-insert-key.
11037 2000-02-02 Martin Buchholz <martin@xemacs.org>
11039 * menubar.c (vars_of_menubar): A small code simplification.
11041 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11044 * ExternalClient.c:
11045 * EmacsShell-sub.c:
11048 Use consistent style for specifying X resources.
11050 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11051 This makes (dontusethis-set-symbol-value-handler) actually usable.
11053 * lrecord.h (lrecord_decription_type):
11054 * alloc.c (pdump_register_sub):
11057 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11058 Comply with XEmacs coding style.
11059 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11060 args, and XD_LISP_OBJECT_ARRAY with 3 args.
11062 * keymap.c (Faccessible_keymaps):
11063 Make (accessible-keymaps map "\C-h") do the Right Thing.
11064 Make (accessible-keymaps map []) do the Right Thing.
11065 Make (accessible-keymaps map "") do the Right Thing.
11066 (check_keymap_definition_loop): New function.
11067 (keymap_store_internal): Keep luser from shooting self in foot,
11068 via (define-key ctl-x-4-map "p" global-map).
11069 Remove fullness slot from struct Lisp_Keymap, since hash tables
11071 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11073 2000-01-30 Martin Buchholz <martin@xemacs.org>
11075 * redisplay.c (init_redisplay): Fix small memory leak.
11077 * elhash.c (pdump_reorganize_hash_table):
11078 Rename from reorganize_hash_table. Change prototype.
11079 Reuse the original memory for hentries. Save 100k.
11080 * alloc.c (PDUMP_READ): new macro.
11081 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11082 * alloc.c: No need to #ifndef before #undef.
11084 * print.c: Allow debug_print() to print readably by modifying
11085 debug_print_readably. Use consistent variable names.
11087 * .dbxrc: Try to get things to work even if stopped in a function
11088 without source available by explicitly specifying source files.
11089 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11091 * unexnt.c (_start): Removed bogus code which caused loading heap
11092 from differrent executable file.
11093 Removed bogus assignment to _fmode, which caused inconsistencies.
11095 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11097 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11098 Have spawnve encapsulation regard DONT_ENCAPSULATE.
11099 Do not preliminary `#define signal sigset'.
11101 * systime.h: Do not prototype environ on windows nt and cygwin,
11102 this conflicts with system header.
11104 * syssignal.h: Use correct define for WINDOWSNT
11106 * sysdep.h: Do not prototype environ on windows nt, this conflicts
11107 with system header.
11109 * sysdep.c (near start of file): Fixed commentary and rearranged
11110 ifdefs in readable order.
11111 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11114 (end_of_data): Do not compile in if using PDUMP.
11116 * symsinit.h: Prototyped vars_of_nt().
11118 * ntproc.c (windows9x_p): Added, instead of os_subtype.
11119 (find_child_console): Use it.
11120 (sys_kill): Use it.
11122 * ntheap.h: Do not extern os_subtype.
11124 * ntheap.c (cache_system_info): Do not cache unneeded:
11125 nt_major_version, nt_minor_version and os_subtype.
11126 (recreate_heap): Do not compile in when PDUMPing.
11128 * nt.c (geteuid and friends): Use the new varibale
11129 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11130 (init_user_info): Removed the above mentioned hackery.
11131 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11132 stat has been fixed in the C runtime.
11133 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11135 * file-coding.c (struct file_coding_dump): Do not define
11136 ucs_to_mule_table in the struct if not MULE.
11137 (struct struct lrecord_description fcd_description_1): Do not dump
11140 * emacs.c (main_1): Call vars_of_nt().
11141 (right before Fdump_emacs_data): Don't need lastfile if using both
11142 portabe dumper and system malloc.
11144 * alloc.c (Fmemory_limit): Conditionalized out.
11145 (pdump): Use OPEN_BINARY for the portable dump file.
11146 (pdump_load): Ditto.
11148 2000-02-02 Mike Alexander <mta@arbortext.com>
11150 * nt.c (convert_time): Set tm_isdst before calling mktime and
11151 avoid calling it at all if the compiler supports 64 bit integers.
11152 Also initialize utc_base_ft before using it.
11154 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11156 * frame.c (change_frame_size_1): Take f->internal_border_width
11157 into consideration when calculating the width of the frame.
11159 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11161 * window.c (frame_min_height):
11162 (frame_size_valid_p):
11163 (frame_pixsize_valid_p): Added.
11164 (check_frame_size): Generalized.
11166 * window.h: Prototyped the above.
11169 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11170 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11171 Deleted Vwin32_* and Vbinary_process_* unused variables.
11173 * device-msw.c (msprinter_init_device): Do not get printer font
11174 list; Added DEVMODE functions.
11176 * frame-msw.c: Added lots of printer code.
11178 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11181 * console-msw.h: Added more msprinter device private slots.
11183 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11185 * event-msw.c (key_needs_default_processing_p): Added.
11186 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11188 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11190 * glyphs.c (image_instance_layout): Mark image instance as clean
11192 (glyph_dirty_p): Removed redundant function.
11193 (invalidate_glyph_geometry_maybe): Added.
11194 (update_glyph_cachel_data): Call it.
11196 * glyphs.h: Prototyped it.
11198 * redisplay.c (add_glyph_rune): Call it.
11199 (redisplay_window): Reset glyphs cachels when frame faces have
11200 changed, thus forcing recomputation of built-in border glyphs.
11202 2000-01-30 Martin Buchholz <martin@xemacs.org>
11204 * Makefile.in.in: Make portable dumper and purify play well together.
11205 Add imperfect, but better than nothing, support for pdump.
11206 Remove xemacs.dmp when temacs is re-generated.
11207 Don't ignore errors when dumping xemacs.
11209 * symbols.c (maybe_call_magic_handler): Remove one magic number.
11211 2000-01-28 Andy Piper <andy@xemacs.org>
11213 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11214 (setup_normal_frame): ditto.
11215 (setup_frame_without_minibuffer): ditto.
11216 (setup_minibuffer_frame): ditto.
11217 (delete_frame_internal): ditto.
11218 (Fmake_frame_invisible): ditto.
11219 (Ficonify_frame): ditto.
11221 * window.h: change Fset_window_buffer signature.
11223 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11224 (Fset_window_buffer): allow recording of buffer if the window is
11225 the selected window.
11226 (window_loop): Use new Fset_window signature.
11228 2000-01-23 Daniel Pittman <daniel@danann.net>
11230 * config.h.in: Added template for `HAVE_ATHENA_3D'
11232 2000-01-29 Andy Piper <andy@xemacs.org>
11234 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11236 * gutter.c (output_gutter): Don't output if the window isn't live.
11238 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11240 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11241 of 01/12/00: Moved SetFocus back here where it belongs.
11243 2000-01-23 Andy Piper <andy@xemacs.org>
11245 * s/cygwin32.h: declare printer things.
11247 2000-01-26 Andy Piper <andy@xemacs.org>
11249 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11252 2000-01-24 Andy Piper <andy@xemacs.org>
11254 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11255 (mswindows_button_instantiate): Make sure glyph is a pixmap.
11257 * glyphs-widget.c (widget_instantiate): Avoid shadows.
11259 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11261 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11263 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11264 (mswindows_output_display_block): Avoid local shadows.
11266 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11267 (mswindows_enqueue_mouse_button_event): ditto.
11268 (mswindows_handle_gui_wm_command): remove declaration.
11270 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11273 * console-msw.h: Avoid shadows.
11274 (mswindows_get_toolbar_button_text):
11275 (emacs_mswindows_create_stream_pair):
11276 (emacs_mswindows_delete_stream_pair):
11277 (mswindows_handle_toolbar_wm_command): declare.
11279 * device-msw.c (build_syscolor_string): Avoid shadows.
11281 2000-01-23 Andy Piper <andy@xemacs.org>
11283 * glyphs-widget.c (widget_instantiate): reverse the items for
11284 layouts so that children are in the expected order.
11286 2000-01-28 Martin Buchholz <martin@xemacs.org>
11288 * ralloc.c: safe_bcopy ==> memmove
11289 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11290 * s/msdos.h: Remove BCOPY macros.
11291 * insdel.c (gap_right): Remove BCOPY conditional code.
11292 * insdel.c (gap_left): Remove BCOPY conditional code.
11293 XEmacs demands a working ANSI C compiler - hence memmove.
11295 * regex.c (regex_compile): Remove accidental use of trigraphs.
11297 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11299 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11302 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11304 * event-msw.c (mswindows_drain_windows_queue): Added the
11306 (mswindows_need_event): Commented the call to
11307 mswindows_drain_windows_queue().
11308 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11311 * console-msw.h: Moved a few function prototypes here from
11314 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11315 parameter from unsigned short to unsigned long.
11316 (Fmswindows_shell_execute): Added return value.
11318 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11320 * sysdep.c (init_system_name):
11321 process-unix.c (unix_canonicalized_host_name):
11322 Don't call freeaddrinfo() if getaddrinfo() fails.
11324 * process-unix.c (unix_open_unix_network_stream):
11325 Moved the code to get a port # into address loop.
11327 2000-01-27 Martin Buchholz <martin@xemacs.org>
11329 * buffer.c (reinit_vars_of_buffer):
11330 The right place to initialize conversion_in_dynarr and
11331 conversion_out_dynarr.
11333 * alloc.c (pdump): Use the real open() till sys_open() is functional.
11335 * process-unix.c (unix_canonicalize_host_name): Muleize.
11336 (unix_open_network_stream): Muleize.
11338 * buffer.h: Fix up prototypes for ralloc.c functions.
11340 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11341 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11342 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11343 instead of gethostbyname()
11344 * process-unix.c: In unix_canonicalize_host_name() and
11345 unix_open_network_stream(), add code to use getaddrinfo()
11346 instead of gethostbyname().
11348 2000-01-27 Daniel Pittman <daniel@danann.net>
11350 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11351 libs when built with flat Athena.
11353 2000-01-27 Martin Buchholz <martin@xemacs.org>
11355 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11356 Use coding standards for function prototypes.
11358 2000-01-25 Martin Buchholz <martin@xemacs.org>
11360 * dialog-msw.c (push_lisp_string_as_unicode):
11361 * doc.c (unparesseuxify_doc_string):
11362 * dired.c (Fuser_name_completion_1):
11363 * dired.c (Fuser_name_all_completions):
11364 * dired.c (free_user_cache):
11365 * dired.c (user_name_completion):
11366 * console-x.c (get_display_arg_connection):
11367 * minibuf.c (clear_echo_area_internal):
11368 * minibuf.c (echo_area_append):
11369 * eldap.c (Fldap_open):
11370 * eldap.c (Fldap_search_internal):
11371 * frame-x.c (x_set_frame_text_value):
11372 * frame-x.c (x_set_frame_properties):
11373 * frame-x.c (x_create_widgets):
11374 * redisplay-tty.c (term_get_fkeys_1):
11375 * objects-x.c (x_parse_nearest_color):
11376 * objects-x.c (x_valid_color_name_p):
11377 * objects-x.c (x_initialize_font_instance):
11378 * objects-x.c (x_list_fonts):
11379 * objects-x.c (x_find_charset_font):
11380 * tooltalk.c (Fadd_tooltalk_message_arg):
11381 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11382 * tooltalk.c (Fadd_tooltalk_pattern_arg):
11383 * process-unix.c (unix_create_process):
11384 * ntproc.c (sys_spawnve):
11385 * sound.c (Fplay_sound_file):
11386 * sound.c (Fplay_sound):
11387 * buffer.c (init_initial_directory):
11388 * buffer.c (init_buffer):
11389 * editfns.c (init_editfns):
11390 * editfns.c (Ftemp_directory):
11391 * editfns.c (Fuser_full_name):
11392 * editfns.c (uncache_home_directory):
11393 * editfns.c (get_home_directory):
11394 * editfns.c (Fuser_home_directory):
11395 * editfns.c (Fformat_time_string):
11396 * editfns.c (Fcurrent_time_string):
11397 * gui-x.c (button_item_to_widget_value):
11398 * database.c (Fopen_database):
11399 * event-Xt.c (x_to_emacs_keysym):
11400 * event-Xt.c (x_event_to_emacs_event):
11401 * event-Xt.c (describe_event_window):
11402 * event-msw.c (mswindows_wnd_proc):
11403 * glyphs-eimage.c (jpeg_instantiate):
11404 * glyphs-eimage.c (gif_instantiate):
11405 * glyphs-eimage.c (png_instantiate):
11406 * glyphs-eimage.c (tiff_instantiate):
11407 * glyphs-x.c (xbm_instantiate_1):
11408 * glyphs-x.c (x_xbm_instantiate):
11409 * glyphs-x.c (x_xface_instantiate):
11410 * glyphs-x.c (autodetect_instantiate):
11411 * glyphs-x.c (cursor_font_instantiate):
11412 * glyphs-x.c (x_widget_instantiate):
11413 * glyphs-x.c (x_widget_set_property):
11414 * glyphs-x.c (x_widget_property):
11415 * glyphs-x.c (BUILD_GLYPH_INST):
11416 * print.c (write_string_to_stdio_stream):
11417 * print.c (output_string):
11418 * print.c (Falternate_debugging_output):
11419 * print.c (Fexternal_debugging_output):
11420 * glyphs-msw.c (extract_xpm_color_names):
11421 * glyphs-msw.c (mswindows_xpm_instantiate):
11422 * glyphs-msw.c (bmp_instantiate):
11423 * glyphs-msw.c (resource_name_to_resource):
11424 * glyphs-msw.c (mswindows_resource_instantiate):
11425 * glyphs-msw.c (xbm_instantiate_1):
11426 * glyphs-msw.c (mswindows_xbm_instantiate):
11427 * glyphs-msw.c (mswindows_xface_instantiate):
11428 * glyphs-msw.c (mswindows_widget_instantiate):
11429 * glyphs-msw.c (add_tree_item):
11430 * glyphs-msw.c (add_tab_item):
11431 * glyphs-msw.c (mswindows_combo_box_instantiate):
11432 * glyphs-msw.c (mswindows_widget_property):
11433 * glyphs-msw.c (mswindows_combo_box_property):
11434 * glyphs-msw.c (mswindows_widget_set_property):
11435 * console.c (stuff_buffered_input):
11436 * objects-msw.c (mswindows_initialize_color_instance):
11437 * objects-msw.c (mswindows_valid_color_name_p):
11438 * objects-msw.c (mswindows_list_fonts):
11439 * objects-msw.c (mswindows_font_instance_truename):
11440 * bytecode.c (optimize_compiled_function):
11441 * select-x.c (symbol_to_x_atom):
11442 * select-x.c (x_atom_to_symbol):
11443 * select-x.c (hack_motif_clipboard_selection):
11444 * select-x.c (selection_data_to_lisp_data):
11445 * select-x.c (lisp_data_to_selection_data):
11446 * select-x.c (Fx_get_cutbuffer_internal):
11447 * select-x.c (Fx_store_cutbuffer_internal):
11448 * buffer.h (TO_EXTERNAL_FORMAT): New function.
11449 * buffer.h (TO_INTERNAL_FORMAT): New function.
11450 * emacs.c (make_arg_list_1):
11451 * emacs.c (make_argc_argv):
11452 * emacs.c (main_1):
11453 * emacs.c (Fdump_emacs):
11454 * emacs.c (split_string_by_emchar_1):
11459 * device-x.c (x_init_device):
11460 * device-x.c (Fx_valid_keysym_name_p):
11461 * device-x.c (Fx_get_font_path):
11462 * device-x.c (Fx_set_font_path):
11463 * glyphs.c (bitmap_to_lisp_data):
11464 * glyphs.c (pixmap_to_lisp_data):
11465 * alloc.c (make_ext_string): Use coding system arguments. Update
11467 * alloc.c (build_string):
11468 * callproc.c (child_setup):
11469 * callproc.c (init_callproc):
11470 * fileio.c (lisp_strerror):
11471 * fileio.c (directory_file_name):
11472 * fileio.c (Fexpand_file_name):
11473 * fileio.c (Ffile_truename):
11474 * fileio.c (Fsysnetunam):
11475 * fileio.c (Fdo_auto_save):
11476 * sysdep.c (sys_readdir):
11477 * tests.c: New file. Allow adding C tests.
11478 Replace GET_* macros with a more comprehensible and flexible
11479 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11481 Any coding system can be used to do format conversion.
11482 Eliminate enum external_data_format.
11483 Eliminate convert_to_external_format.
11484 Eliminate convert_to_internal_format.
11485 Make sure file-name, keyboard, terminal, and ctext are always
11486 defined as coding systems or aliases. Make
11487 file-name-coding-system, terminal-coding-system, and
11488 keyboard-coding-system magical variables that are equivalent to
11489 defining the corresponding coding system aliases.
11491 * file-coding.c (Fcoding_system_canonical_name_p): New function.
11492 * file-coding.c (Fcoding_system_alias_p): New function.
11493 * file-coding.c (Fcoding_system_aliasee): New function.
11494 * file-coding.c (append_suffix_to_symbol): New function.
11495 * file-coding.c (dangling_coding_system_alias_p): New function.
11496 * file-coding.c (Ffind_coding_system):
11497 * file-coding.c (Fcopy_coding_system):
11498 * file-coding.c (encode_coding_no_conversion):
11499 * file-coding.c (syms_of_file_coding):
11500 * file-coding.c (vars_of_file_coding):
11501 Rewrite coding system alias code.
11502 Allow nested aliases, like symbolic links.
11503 Allow redefinition of coding system aliases.
11504 Prevent existence of dangling coding system aliases.
11506 * dired.c (Fuser_name_completion_1):
11507 * dired.c (Fuser_name_all_completions):
11508 A crash would happen if user did QUIT in the middle of building
11509 user_name_cache. Remove redundant code in mainline and unwind_protect.
11512 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
11514 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11515 an unsigned char *. Update all callers.
11517 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11519 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11521 2000-01-25 Martin Buchholz <martin@xemacs.org>
11523 * elhash.c (hentry_description): Use more portable definition.
11524 (resize_hash_table): Initialize new hentries using
11525 xnew_array_and_zero, thereby simplifying the code.
11527 * mule-charset.c (make_charset): Make sure entire object is
11528 initialized, to avoid Purify warnings.
11530 * alloc.c (resize_string): Fix unlikely crash with big strings.
11532 2000-01-24 Martin Buchholz <martin@xemacs.org>
11534 * realpath.c (xrealpath):
11535 Don't call getwd().
11537 2000-01-25 Martin Buchholz <martin@xemacs.org>
11539 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11541 1999-12-28 Max Matveev <max@melbourne.sgi.com>
11543 * unexelfsgi.c (unexec): Change the way we decide which segment
11544 should be extended.
11546 Assumption that .bss section should be outside the PT_LOADable
11547 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11548 it's present) is inside the 'data' segment. This would fail the
11549 test which was used to find a segment to grow and cover new
11550 heap. Instead of this assumption, I created another one - on IRIX
11551 the segment to grow should start below .bss and it's address
11552 should extent above the end of .bss. Once this segment is
11553 identified, it's grown to accommodate the new heap and new
11554 zero-length .bss section is added at the end of .data2.
11556 2000-01-25 Martin Buchholz <martin@xemacs.org>
11558 * eval.c (Feval): Wrong number of arguments should use original
11559 function, not the indirect_function version of it.
11561 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
11563 * glyphs-x.c (x_button_instantiate): Don't add image if
11564 it is not a pixmap.
11565 (x_locate_pixmap_file): Call Fexpand_file_name when file name
11568 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
11570 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11572 (DEFVAR_INT_MAGIC): Ditto.
11573 (DEFVAR_BOOL_MAGIC): Ditto.
11574 * glyphs.h: Reindent backslash.
11576 2000-01-24 Martin Buchholz <martin@xemacs.org>
11578 * glyphs-widget.c (layout_query_geometry):
11579 (layout_layout): Use correct types for gheight, gwidth.
11581 2000-01-24 Martin Buchholz <martin@xemacs.org>
11583 * EmacsManager.c (QueryGeometry): Purified.
11585 2000-01-23 Martin Buchholz <martin@xemacs.org>
11587 * alloc.c (make_float): Make sure entire object is initialized, to
11588 avoid Purify warnings.
11589 (pdump_register_sub): Remove useless assignment.
11590 (pdump): Use xmalloc, not malloc.
11591 (pdump_load): Use xmalloc, not malloc.
11593 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11600 * sysdep.c: Removed redundant #include <windows.h>
11602 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11604 * frame.c (delete_frame_internal): Do not delete device when its
11605 implementation so declares.
11606 (delete_frame_internal): Set device selected frame to nil when
11607 last frame goes away.
11609 * device-msw.c (msprinter_device_system_metrics): Implemented.
11610 (mswindows_device_system_metrics): Added 'device-dpi property.
11612 * device.c: (Fdevice_printer_p): Added.
11613 Added 'offset-workspace device metric.
11615 * console.h (device_metrics): Declared DM_offset_workspace.
11617 2000-01-23 Martin Buchholz <martin@xemacs.org>
11619 * fileio.c (Ffile_truename): Remove pointless and confusing
11620 initialization of elen.
11622 * glyphs-widget.c: Compiler warning fixes.
11624 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
11626 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11627 instead of a Lisp_Object as argument to make it consistent with
11628 the other LIVE_P macros.
11629 (CHECK_LIVE_PROCESS): New macro.
11631 * process.c: Declare Qprocess_live_p.
11632 (Fprocess_live_p): New function.
11633 (create_process): Use PROCESS_LIVE_P.
11634 (read_process_output): Ditto.
11635 (set_process_filter): Ditto.
11636 (Fdelete_process): Ditto.
11637 (kill_buffer_processes): Ditto
11638 (process_send_signal): Use CHECK_LIVE_PROCESS.
11639 (Fprocess_input_coding_system): Check whether process is still
11640 alive (fix PR#1061).
11641 (Fprocess_output_coding_system): Ditto.
11642 (Fprocess_coding_system): Ditto.
11643 (Fset_process_input_coding_system): Ditto.
11644 (Fset_process_output_coding_system): Ditto.
11646 2000-01-23 Andy Piper <andy@xemacs.org>
11648 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11651 * glyphs.c (mark_image_instance): take into account changed
11652 image_instance format.
11653 (image_instance_equal): ditto.
11654 (image_instance_hash): ditto.
11656 * glyphs-widget.c (widget_instantiate): Incorporate layout
11657 instantiation here. Delay layout of the layout until later.
11658 (layout_instantiate): deleted.
11659 (layout_query_geometry): new function. get the geometry of a
11661 (layout_layout): layout a layout dynamically.
11662 (image_instantiator_widget): New function - splitting up
11663 image_instantiator_format_create_glyphs_widget for netwinder
11665 (image_instantiator_buttons):
11666 (image_instantiator_edit_fields):
11667 (image_instantiator_combo_box):
11668 (image_instantiator_scrollbar):
11669 (image_instantiator_progress_guage):
11670 (image_instantiator_tree_view):
11671 (image_instantiator_tab_control):
11672 (image_instantiator_labels):
11673 (image_instantiator_layout): ditto.
11674 (image_instantiator_format_create_glyphs_widget): Call preceding
11677 2000-01-22 Martin Buchholz <martin@xemacs.org>
11679 * process.c (Fset_process_coding_system):
11680 * device-x.c (Fx_keysym_hash_table):
11683 * lstream.c (Lstream_write): Return documented value, not 0.
11685 * fileio.c (directory_file_name):
11686 (Fsubstitute_in_file_name):
11687 (Fsubstitute_insert_file_contents_internal):
11688 (Fwrite_region_internal):
11693 Remove vestigial APOLLO-conditional code.
11695 2000-01-21 Martin Buchholz <martin@xemacs.org>
11697 * getpagesize.h: Add guard macros.
11698 * libsst.h: Add guard macros.
11699 * libst.h: Add guard macros.
11700 * line-number.h: Add guard macros.
11701 * ndir.h: Add guard macros.
11702 * sysfloat.h: Add guard macros.
11703 * sysfile.h: Add guard macros.
11704 * sysproc.h: Add guard macros.
11705 * syswait.h: Add guard macros.
11706 * xintrinsic.h: Add guard macros.
11707 * xintrinsicp.h: Add guard macros.
11708 * xmmanager.h: Add guard macros.
11709 * xmmanagerp.h: Add guard macros.
11710 * xmprimitive.h: Add guard macros.
11711 * xmu.h: Add guard macros.
11712 * gpmevent.h: Add copyright statement. Add guard macros.
11713 * miscplay.h: Add guard macros.
11714 * *.h: Use consistent C-standards-approved guard macro names.
11716 * opaque.c (make_opaque): Switch parameter order.
11717 * opaque.h (make_opaque): Switch parameter order.
11718 Update all callers.
11719 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11721 * config.h.in (type_checking_assert): Added.
11722 (bufpos_checking_assert): Added.
11724 2000-01-21 Martin Buchholz <martin@xemacs.org>
11726 * alloc.c: Harmless pdump changes.
11728 - spell alignment correctly.
11729 * sysdep.c: Use countof()
11731 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11733 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11734 initially_selected_for_input() console method, default to 0.
11735 (semi_canonicalize_console_connection): Try to delegate to
11736 canonicalize_console_connection if no such console method.
11737 (canonicalize_console_connection): Vice versa.
11738 (print_console): Do not print nil connection.
11740 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11741 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11742 (XDEVIMPF_FRAMELESS_OK): Added.
11743 (CONSOLE_INHERITS_METHOD): Added.
11745 * console-msw.c (mswindows_canonicalize_console_connection):
11747 (mswindows_canonicalize_device_connection): Added.
11749 * console-msw.h (struct msprinter_device): Added this struct and
11751 (mswindows_device): Made fontlist a lisp object.
11753 * device.c (semi_canonicalize_device_connection): Try to delegate
11754 to canonicalize_device_connection if no such console method.
11755 (canonicalize_device_connection): Vice versa.
11756 (print_device): Do not print nil connection.
11758 * device-msw.c (mswindows_init_device): Call InitCommonControls
11760 (mswindows_delete_device): Removed fontlist deallocation.
11761 (mswindows_mark_device): Added.
11763 * events.c (event_equal): Added abort() at unreached code.
11764 (event_hash): Ditto.
11766 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11767 fallback tags of Windows devices.
11769 * general.c (syms_of_general): Initialized Qmsprinter.
11771 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11772 of fallback tags of Windows devices.
11774 * lisp.h: Declared Qmsprinter.
11776 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11778 (mswindows_list_fonts): Ditto.
11779 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11780 that it can be used by both mswindows and msprinter devices.
11781 (initialize_font_instance): Added.
11782 (mswindows_initialize_font_instance): Use it.
11783 (msprinter_initialize_font_instance): Added.
11785 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11786 and implementation flags check.
11787 (redisplay_without_hooks): Changed the call to the above.
11788 (Fredraw_device): Ditto.
11789 (Fredisplay_device): Ditto.
11791 * redisplay-msw.c (get_frame_dc): Implemented.
11792 (get_frame_compdc): Implemented.
11793 (many functions): Use the two functions above to get device
11794 contexts, ether for a window or a printer.
11796 2000-01-21 Olivier Galibert <galibert@pobox.com>
11798 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11799 initialization here.
11800 (init_symbols_once_early): Call it.
11801 * emacs.c (main_1): Call it.
11802 * symsinit.h: Declare it.
11804 2000-01-19 Olivier Galibert <galibert@pobox.com>
11806 * alloc.c: Use a lrecord_header * in the backtrace instead of a
11808 (pdump_backtrace): Ditto.
11809 (pdump_register_object): Ditto. Cleanup use of the pointers.
11810 (pdump_get_entry): Abort if trying to register a null pointer.
11811 (pdump_dump_data): Cleanup types when relocating.
11812 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11813 (pdump_dump_rtables): Remove bad casts.
11814 (pdump_load): Cleanup relocation w.r.t union type. Use a
11815 Lisp_Object instead of a EMACS_INT for the hashtable
11818 2000-01-20 Martin Buchholz <martin@xemacs.org>
11820 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11822 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11824 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11826 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11828 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11830 * faces.h (FACE_STRIKETHRU_P): Added.
11832 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11835 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11836 (mswindows_set_dc_font): New function, aware of font variants,
11837 separated from mswindows_update_dc.
11839 * objects-msw.h (struct mswindows_font_instance_data): Added
11842 * objects-msw.c (mswindows_finalize_font_instance): Delete all
11843 cached fonts and the data structure.
11844 (mswindows_initialize_font_instance): Added creation of font data
11846 (mswindows_print_font_instance): Print at least something.
11847 (mswindows_create_font_variant): Implemented.
11848 (mswindows_get_hfont): Implemented.
11850 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
11852 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11853 prototyping problem with msvc.
11855 * emacs.c (main_1): added syms_of_gui_mswindows() call
11857 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11858 syms_of_gui_mswindows() function
11860 * symsinit.h: added the prototype for syms_of_gui_mswindows()
11862 2000-01-18 Martin Buchholz <martin@xemacs.org>
11864 * XEmacs 21.2.27 is released.
11866 2000-01-18 Martin Buchholz <martin@xemacs.org>
11868 * glyphs-eimage.c (struct tiff_error_struct):
11870 (tiff_warning_func):
11871 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11876 * unexec.c: Remove vestigial Lucid C code.
11880 * libsst.c: Ansify.
11881 Remove declarations of errno and strerror().
11883 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
11885 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11887 2000-01-16 Martin Buchholz <martin@xemacs.org>
11889 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11892 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11897 Change enum eol_type to eol_type_t.
11899 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11901 * gui.c (get_gui_callback): Check cons before accessing car.
11903 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11905 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11906 (XSETSPECIFIER_TYPE): Ditto.
11908 2000-01-17 Didier Verna <didier@xemacs.org>
11910 * redisplay.c (generate_fstring_runes): compute string size in
11911 characters, not bytes.
11913 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
11915 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11917 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
11919 * print.c (print_error_message): Call print_prepare().
11921 2000-01-14 Martin Buchholz <martin@xemacs.org>
11923 * .dbxrc: Renamed from dbxrc.
11925 * events.c (event_to_character):
11926 Use `assert (foo)' instead of `if (!foo) abort()'
11928 * .gdbinit (xtype): Add documentation.
11929 * .gdbinit (check-temacs): New function.
11930 * .gdbinit (check-xemacs): New function.
11931 * dbxrc (check-xemacs): New function.
11932 * dbxrc (check-xemacs): New function.
11934 2000-01-14 Andy Piper <andy@xemacs.org>
11936 * glyphs-widget.c (widget_query_geometry): Make sure that we
11937 calculate default dimensions correctly.
11939 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11941 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11943 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11944 pdump_wire'd variable.
11946 * emacs.c: (main_1): Conditionalized calls to
11947 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11949 2000-01-13 Martin Buchholz <martin@xemacs.org>
11951 * window.c (Fset_window_configuration):
11952 * sysdep.c (_start):
11953 * input-method-motif.c (res):
11954 * event-Xt.c (Xt_process_to_emacs_event):
11955 Simple compiler warning fixes.
11957 * bytecode.c (funcall_compiled_function): Use the original
11958 function symbol on the backtrace list in preference to the
11959 compiled_function object in error messages.
11961 2000-01-13 Andy Piper <andy@xemacs.org>
11963 * glyphs-x.c (update_widget_face): Make sure we update the widget
11964 background as well as foreground.
11966 2000-01-13 Andy Piper <andy@xemacs.org>
11968 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11969 fields to subwindow.
11970 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11971 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11972 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11973 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11975 * glyphs-widget.c (check_valid_tab_orientation): new function.
11976 (initialize_widget_image_instance): zero orientation and
11978 (widget_instantiate): pick up orientation.
11979 (tab_control_query_geometry): return appropriate values for
11982 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11983 appropriate creation flags for left, right and bottom tabs.
11985 * s/cygwin32.h: add tab definitions.
11987 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11989 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11990 frame upon hiding a subwindow.
11991 (mswindows_button_instantiate): Changed the push button style to
11993 (mswindows_button_instantiate): Removed button BS_NOTIFY
11995 (mswindows_button_instantiate): Removed redundant check for
11996 a disabled gui item.
11997 (mswindows_button_instantiate): Made use of WS_TABSTOP
11998 consistent: "operable" controls (edit, button, tree, scroll) have
11999 this style, "display-only" ones (static, progress gauge) do
12000 not. This style is currently ignored by XEmacs though. Also,
12001 removed the WS_EX_CONTROLPARENT style - it is not for children,
12002 it is for their parents!
12003 (mswindows_edit_field_instantiate): Ditto.
12004 (mswindows_progress_gauge_instantiate): Ditto.
12005 (mswindows_tree_view_instantiate): Ditto.
12006 (mswindows_tab_control_instantiate): Ditto.
12007 (mswindows_scrollbar_instantiate): Ditto.
12008 (mswindows_combo_box_instantiate): Ditto.
12009 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12010 style to the "clip" window.
12011 (mswindows_button_instantiate): Removed compilation warning by
12012 equally typing terms of the ?: operator.
12014 2000-01-12 Didier Verna <didier@xemacs.org>
12016 * redisplay.c (generate_fstring_runes): new parameter holding the
12017 last modeline-format extent.
12018 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12019 extent, fill the glyph block with it.
12020 (generate_fstring_runes): handle these parameters.
12021 (generate_formatted_string_db): ditto.
12023 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12024 glyphs'extents in the modeline.
12026 1999-01-11 Mike Woolley <mike@bulsara.com>
12028 * ntheap.c: Reduced the reserved heap space from 1Gb down to
12029 256Mb, as a workaround for the non-starting problem many people
12032 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12034 * console-tty.c (Fset_console_tty_output_coding_system):
12035 Force redrawing tty frame.
12037 2000-01-10 Didier Verna <didier@xemacs.org>
12039 * redisplay.c (generate_fstring_runes): fix size computation bug.
12041 2000-01-09 William M. Perry <wmperry@aventail.com>
12043 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12045 2000-01-09 Andy Piper <andy@xemacs.org>
12047 * glyphs-msw.c: index -> i to avoid shadows.
12048 (xbm_create_bitmap_from_data): make static.
12049 (check_valid_string_or_int): deleted.
12050 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12052 * glyphs-x.c (x_update_subwindow): remove unused args.
12054 * glyphs.c (glyph_image_instance): return the thing. Don't set the
12055 back pointer - this is done in allocate_image_instance.
12056 (query_string_font): return Qnil to make the compiler happy.
12057 (unmap_subwindow): set to ~0 to make the compiler happy.
12058 (glyph_query_geometry): comment out until used.
12059 (glyph_layout): ditto.
12061 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12063 * insdel.c (signal_after_change): Remove extraneous unbind_to().