1 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
5 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
7 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
9 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
10 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
11 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
14 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
16 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
18 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
20 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
23 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
25 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
26 for `CHARSET_BY_ATTRIBUTES'.
27 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
28 `CHARSET_BY_ATTRIBUTES'.
30 * text-coding.c (struct decoding_stream): Rename member `CH' to
32 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
33 (decode_coding_sjis): Likewise.
34 (decode_coding_big5): Likewise.
35 (decode_coding_ucs4): Likewise.
36 (decode_coding_utf8): Likewise.
37 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
38 `CHARSET_BY_ATTRIBUTES'.
39 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
40 `str->counter'; decode 3, 4 bytes sets.
41 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
43 (decode_coding_no_conversion): Use `str->cpos' instead of
46 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
47 (Qmojikyo_2022_1): New variable.
48 (make_charset): Don't use `CHARSET_TYPE_*'.
49 (range_charset_code_point): Support coded-charset
51 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
52 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
53 `CHARSET_BY_ATTRIBUTES'.
54 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
55 `CHARSET_BY_ATTRIBUTES'.
56 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
57 (complex_vars_of_mule_charset): Add new coded-charset
60 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
61 interface; changed to inline function.
63 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
64 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
65 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
66 (CHARSET_TYPE_94): Deleted.
67 (CHARSET_TYPE_94X94): Deleted.
68 (CHARSET_TYPE_96): Deleted.
69 (CHARSET_TYPE_96X96): Deleted.
70 (CHARSET_TYPE_128): Deleted.
71 (CHARSET_TYPE_128X128): Deleted.
72 (CHARSET_TYPE_256): Deleted.
73 (CHARSET_TYPE_256X256): Deleted.
74 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
76 (DECODE_MOJIKYO_2022): New inline function.
77 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
78 `Vcharset_mojikyo_2022_1'.
80 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
82 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
84 (put_byte_table): Likewise.
85 (char_id_table_equal): Use `get_byte_table' [new implementation].
87 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
89 * mule-charset.c: Include <limits.h> in UTF-2000.
90 (BT_UINT8_MIN): New macro in UTF-2000.
91 (BT_UINT8_MAX): New macro in UTF-2000.
92 (BT_UINT8_t): New macro in UTF-2000.
93 (BT_UINT8_nil): New macro in UTF-2000.
94 (BT_UINT8_unbound): New macro in UTF-2000.
95 (INT_UINT8_P): New inline function in UTF-2000.
96 (UINT8_VALUE_P): New inline function in UTF-2000.
97 (UINT8_ENCODE): New inline function in UTF-2000.
98 (UINT8_DECODE): New inline function in UTF-2000.
99 (mark_uint8_byte_table): New function in UTF-2000.
100 (print_uint8_byte_table): New function in UTF-2000.
101 (uint8_byte_table_equal): New function in UTF-2000.
102 (uint8_byte_table_hash): New function in UTF-2000.
103 (make_uint8_byte_table): New function in UTF-2000.
104 (uint8_byte_table_same_value_p): New function in UTF-2000.
105 (BT_UINT16_MIN): New macro in UTF-2000.
106 (BT_UINT16_MAX): New macro in UTF-2000.
107 (BT_UINT16_t): New macro in UTF-2000.
108 (BT_UINT16_nil): New macro in UTF-2000.
109 (BT_UINT16_unbound): New macro in UTF-2000.
110 (INT_UINT16_P): New inline function in UTF-2000.
111 (UINT16_VALUE_P): New inline function in UTF-2000.
112 (UINT16_ENCODE): New inline function in UTF-2000.
113 (UINT16_DECODE): New inline function in UTF-2000.
114 (UINT8_TO_UINT16): New inline function in UTF-2000.
115 (mark_uint16_byte_table): New function in UTF-2000.
116 (print_uint16_byte_table): New function in UTF-2000.
117 (uint16_byte_table_equal): New function in UTF-2000.
118 (uint16_byte_table_hash): New function in UTF-2000.
119 (make_uint16_byte_table): New function in UTF-2000.
120 (uint16_byte_table_same_value_p): New function in UTF-2000.
121 (print_byte_table): New function in UTF-2000.
122 (byte-table): Use `print_byte_table' as printer.
123 (make_byte_table): Delete second argument `older'.
124 (byte_table_same_value_p): New function in UTF-2000.
125 (copy_byte_table): Deleted.
126 (get_byte_table): New function in UTF-2000.
127 (put_byte_table): New function in UTF-2000.
128 (print_char_id_table): New function in UTF-2000.
129 (char-id-table): Use `print_char_id_table' as printer.
130 (make_char_id_table): Delete second argument `older'.
131 (get_char_id_table): Use `get_byte_table [new implementation].
132 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
134 (Ffind_char_attribute_table): New function in UTF-2000.
135 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
136 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
137 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
138 (syms_of_mule_charset): Add new function
139 `find-char-attribute-table' in UTF-2000.
141 * lrecord.h (enum lrecord_type): Add
142 `lrecord_type_uint16_byte_table' and
143 `lrecord_type_uint8_byte_table'.
145 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
146 (Lisp_Uint8_Byte_Table): New type.
147 (XUINT8_BYTE_TABLE): New macro.
148 (XSETUINT8_BYTE_TABLE): New macro.
149 (UINT8_BYTE_TABLE_P): New macro.
150 (GC_UINT8_BYTE_TABLE_P): New macro.
151 (struct Lisp_Uint16_Byte_Table): New structure.
152 (Lisp_Uint16_Byte_Table): New type.
153 (XUINT16_BYTE_TABLE): New macro.
154 (XSETUINT16_BYTE_TABLE): New macro.
155 (UINT16_BYTE_TABLE_P): New macro.
156 (GC_UINT16_BYTE_TABLE_P): New macro.
158 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
160 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
161 (Vcharacter_ideographic_strokes_table): Deleted.
162 (Vcharacter_total_strokes_table): Deleted.
163 (Vcharacter_morohashi_daikanwa_table): Deleted.
164 (Vcharacter_decomposition_table): Deleted.
165 (Qname): Deleted because it is duplicated.
166 (Qideographic_radical): Deleted.
167 (Qideographic_strokes): Deleted.
168 (Qtotal_strokes): Deleted.
169 (Qmorohashi_daikanwa): Deleted.
170 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
171 `ideographic-radical', `ideographic-strokes', `total-strokes',
172 `morohashi-daikanwa' and `->decomposition'.
173 (Fget_char_attribute): Likewise.
174 (Fput_char_attribute): Likewise; use `make-vector' instead of
175 `make_older_vector' for `->decomposition' value.
176 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
177 `ideograph-daikanwa'.
178 (syms_of_mule_charset): Delete builtin symbols `name',
179 `ideographic-radical', `ideographic-strokes', `total-strokes' and
180 `morohashi-daikanwa'.
181 (vars_of_mule_charset): Don't setup
182 `Vcharacter_ideographic_radical_table',
183 `Vcharacter_ideographic_strokes_table',
184 `Vcharacter_total_strokes_table',
185 `Vcharacter_morohashi_daikanwa_table' and
186 `Vcharacter_decomposition_table'.
188 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
190 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
191 `make_older_vector', `make_vector_newer_1' and
194 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
195 `make_older_vector' and `make_vector_newer'.
197 * config.h.in (HAVE_GGC): New macro.
199 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
201 * mule-charset.c (struct char_attribute_list_closure): New
202 structure in UTF-2000.
203 (add_char_attribute_to_list_mapper): New function in UTF-2000.
204 (Fchar_attribute_list): Likewise.
205 (Fset_charset_mapping_table): Use `make_vector_newer'.
206 (Fdecode_builtin_char): New function in UTF-2000.
207 (syms_of_mule_charset): Add new function `char-attribute-list' and
208 `decode-builtin-char' in UTF-2000.
210 * lisp.h (make_vector_newer): New prototype.
212 * alloc.c (make_vector_newer_1): New function.
213 (make_vector_newer): New function.
215 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
217 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
220 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
222 * mule-charset.c (Vchar_attribute_hash_table): New variable.
223 (Vcharacter_attribute_table): Deleted.
224 (Vcharacter_name_table): Deleted.
225 (put_char_attribute): Deleted.
226 (remove_char_attribute): Deleted.
227 (struct char_attribute_alist_closure): New structure.
228 (add_char_attribute_alist_mapper): New function.
229 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
230 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
231 (Fget_char_attribute): Likewise.
232 (Fput_char_attribute): Likewise.
233 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
234 of `remove_char_attribute'.
235 (Fdefine_char): Return character.
236 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
237 and `Vcharacter_name_table'.
238 (complex_vars_of_mule_charset): Likewise
239 `Vchar_attribute_hash_table'.
241 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
243 * character.h (CHARC_CHARSET): New macro.
244 (CHARC_CHARSET_ID): New macro.
245 (CHARC_CODE_POINT): New macro.
246 (CHARC_COLUMNS): New macro.
247 (CHARC_TO_CHAR): New inline function.
248 (CHARC_EQ): New inline function.
249 (CHARC_ASCII_EQ): New inline function.
250 (CHARC_IS_SPACE): New inline function.
251 (ASCII_TO_CHARC): New inline function.
253 * char-ucs.h (encode_char_2): Deleted.
254 (ENCODE_CHAR): Use `encode_char_1' again.
255 (breakup_char_1): Likewise.
256 (CHAR_TO_CHARC): New inline function.
258 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
260 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
262 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
263 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
264 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
265 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
266 (create_string_text_block): Use `CHARC_ASCII_EQ' and
268 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
270 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
272 (x_output_display_block): Use `CHARC_CHARSET' and
275 * redisplay-tty.c (tty_output_display_block): Use
277 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
279 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
281 * insdel.c (find_charsets_in_charc_string): Use
283 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
284 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
285 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
286 (convert_charc_string_into_malloced_string): Likewise.
288 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
290 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
291 instead of <Emchar_dynarr *> for buf; use
292 `convert_bufbyte_string_into_charc_dynarr' instead of
293 `convert_bufbyte_string_into_emchar_dynarr'; use
294 `find_charsets_in_charc_string' instead of
295 `find_charsets_in_emchar_string'.
298 - Include "character.h".
299 (struct rune): New member `cglyph'; delete member `chr'.
301 * redisplay.c (redisplay_text_width_charc_string): New function;
302 delete `redisplay_text_width_emchar_string'.
303 (rtw_charc_dynarr): New variable; renamed from
305 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
306 `rtw_emchar_dynarr'; use
307 `convert_bufbyte_string_into_charc_dynarr' instead of
308 `convert_bufbyte_string_into_emchar_dynarr'; use
309 `redisplay_text_width_charc_string' instead of
310 `redisplay_text_width_emchar_string'.
311 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
312 instead of `rtw_emchar_dynarr'; use
313 `convert_bufbyte_string_into_charc_dynarr' instead of
314 `convert_bufbyte_string_into_emchar_dynarr'.
315 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
316 `redisplay_text_width_charc_string' instead of
317 `redisplay_text_width_emchar_string'.
318 (create_text_block): Modify for <struct rune> change.
319 (generate_formatted_string_db): Likewise.
320 (create_string_text_block): Likewise.
321 (pixel_to_glyph_translation): Likewise.
323 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
324 instead of <const Emchar *>.
325 (x_text_width): Likewise.
326 (x_output_display_block): Use <Charc_dynarr *> instead
327 <Emchar_dynarr *>; modify for <structure rune> change.
328 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
331 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
332 <const Emchar *>; use `charc_string_displayed_columns' instead of
333 `emchar_string_displayed_columns'.
334 (tty_output_display_block): Use <Charc_dynarr *> instead of
335 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
336 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
337 (tty_output_charc_dynarr_dynarr): New variable; renamed from
338 `tty_output_emchar_dynarr_dynarr'.
339 (tty_output_charc_dynarr): New function; delete
340 `tty_output_charc_dynarr'.
342 * redisplay-output.c (compare_runes): Modify for `struct rune'.
343 (redisplay_output_layout): Use <Charc_dynarr *> instead of
344 <Emchar_dynarr *> for buf; use
345 `convert_bufbyte_string_into_charc_dynarr' instead of
346 `convert_bufbyte_string_into_emchar_dynarr'.
348 * frame.c (title_string_charc_dynarr): New variable; renamed from
349 `title_string_emchar_dynarr'.
350 (generate_title_string): Use `title_string_charc_dynarr' instead
351 of `title_string_emchar_dynarr'; use
352 `convert_charc_string_into_malloced_string' instead of
353 `convert_emchar_string_into_malloced_string'.
354 (init_frame): Use `title_string_charc_dynarr' instead of
355 `title_string_emchar_dynarr'.
358 - Include "character.h".
359 (struct console_methods): Use <const Charc *> instead of <const
360 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
361 <Emchar_dynarr *> in output_string_method.
363 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
366 * console-stream.c (stream_text_width): Use <const Charc *>
367 instead of <const Emchar *>.
369 * character.h (Charc_dynarr): New type.
371 * char-ucs.h (structure Charc): New structure; define new type
374 * char-lb.h (DECODE_CHAR): New inline function.
375 (encode_char_1): New inline function.
376 (ENCODE_CHAR): New macro.
377 (structure Charc): New structure; define new type `Charc'.
379 * char-1byte.h (Vcharset_control_1): New macro.
380 (Vcharset_latin_iso8859_1): New macro.
381 (DECODE_CHAR): New inline function.
382 (encode_char_1): New inline function.
383 (ENCODE_CHAR): New macro.
384 (structure Charc): New structure; define new type `Charc'.
386 * insdel.c (find_charsets_in_charc_string): New function; delete
387 `find_charsets_in_emchar_string'.
388 (charc_string_displayed_columns): New function; delete
389 `emchar_string_displayed_columns'.
390 (convert_bufbyte_string_into_charc_dynarr): New function; delete
391 `convert_bufbyte_string_into_emchar_dynarr'.
392 (convert_charc_string_into_bufbyte_dynarr): New function; delete
393 `convert_charc_string_into_bufbyte_dynarr'.
394 (convert_charc_string_into_malloced_string): New function; delete
395 `convert_charc_string_into_malloced_string'.
397 * buffer.h (find_charsets_in_charc_string): New prototype; delete
398 `find_charsets_in_emchar_string'.
399 (charc_string_displayed_columns): New prototype; delete
400 `emchar_string_displayed_columns'.
401 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
402 `convert_charc_string_into_bufbyte_dynarr'.
403 (convert_charc_string_into_malloced_string): New prototype; delete
404 `convert_charc_string_into_malloced_string'.
406 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
408 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
410 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
412 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
414 * char-ucs.h: Use <short> for <Charset_ID>.
416 * mule-charset.h, char-1byte.h: Use <unsigned char> for
419 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
421 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
424 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
426 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
428 (Qmorohashi_daikanwa): New variable.
429 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
430 for `morohashi-daikanwa' attribute.
431 (Fget_char_attribute): Likewise.
432 (Fput_char_attribute): Likewise.
433 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
434 has the same value of `ideograph-daikanwa'.
435 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
436 (vars_of_mule_charset): Setup
437 `Vcharacter_morohashi_daikanwa_table'.
439 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
441 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
443 (add_charset_to_list_mapper): Add `key' instead of
444 `XCHARSET_NAME (value)' to return aliases.
446 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
448 * mule-charset.c (Vcharacter_ideographic_radical_table): New
450 (Vcharacter_ideographic_strokes_table): New variable.
451 (Qideographic_radical): New variable.
452 (Qideographic_strokes): New variable.
453 (Fchar_attribute_alist): Use
454 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
455 attribute; use `Vcharacter_ideographic_strokes_table' for
456 `ideographic-strokes' attribute.
457 (Fget_char_attribute): Likewise.
458 (Fput_char_attribute): Likewise.
459 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
460 `ideographic-strokes'.
461 (vars_of_mule_charset): Setup
462 `Vcharacter_ideographic_radical_table' and
463 `Vcharacter_ideographic_strokes_table'.
465 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
467 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
468 (Qtotal_strokes): New variable.
469 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
470 `total-strokes' attribute.
471 (Fget_char_attribute): Likewise.
472 (Fput_char_attribute): Likewise.
473 (syms_of_mule_charset): Add new symbol `total-strokes'.
474 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
476 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
478 * mule-charset.c (Vcharacter_decomposition_table): New variable.
479 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
481 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
482 `->decomposition' attribute.
483 (Fput_char_attribute): Likewise.
484 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
486 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
488 * mule-charset.c (decoding_table_check_elements): New function.
489 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
491 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
493 * mule-charset.c (Fset_charset_mapping_table): Use
494 `put_char_ccs_code_point'.
496 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
498 * mule-charset.c (decoding_table_put_char): New inline function.
499 (put_char_ccs_code_point): Use `decoding_table_put_char'.
501 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
503 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
504 (XCHARSET_BYTE_SIZE): New macro.
505 (decoding_table_remove_char): New inline function.
506 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
507 `decoding_table_remove_char'.
508 (remove_char_ccs): Use `decoding_table_remove_char'.
509 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
511 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
513 * mule-charset.c (Vcharacter_name_table): New variable.
514 (Qname): New variable.
515 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
517 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
518 `Vcharacter_name_table' for `name' attribute.
519 (Fremove_char_attribute): Use function `remove_char_ccs'.
520 (put_char_ccs_code_point): New function.
521 (remove_char_ccs): New function.
522 (syms_of_mule_charset): Add new symbol `name'.
523 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
525 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
527 * mule-charset.c (make_byte_table): Add new argument `older'.
528 (make_char_id_table): Likewise.
529 (copy_char_id_table): Comment out because it is not used.
530 (put_char_id_table): Modify for `make_byte_table'.
531 (Fput_char_attribute): Make encoding_table as older object;
532 inherit older bit of `Vcharacter_composition_table'.
533 (mark_charset): Don't mark `cs->encoding_table'.
534 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
535 normal object; make `Vcharacter_composition_table' as an older
536 object; delete staticpro for `Vcharacter_composition_table'; make
537 `Vcharacter_variant_table' as a normal object.
539 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
540 (mark_object): Don't check older object in UTF-2000.
542 * lrecord.h (struct lrecord_header): Add new member `older' in
544 (set_lheader_implementation): Setup `SLI_header->older' in
546 (set_lheader_older_implementation): New macro in UTF-2000.
547 (OLDER_RECORD_P): New macro in UTF-2000.
548 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
549 (alloc_older_lcrecord): New prototype in UTF-2000.
550 (alloc_older_lcrecord_type): New macro in UTF-2000.
552 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
554 * mule-charset.c (byte_table_description): Use
555 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
556 (char_id_table_description): Delete bogus `, 1'.
557 (Fget_char_attribute): Refer encoding_table of each coded-charset
558 to get value of coded-charset attribute of a character.
559 (Fput_char_attribute): Use `make_older_vector' instead of
560 `make_vector'; use encoding_table of each coded-charset to store
561 value of coded-charset attribute of a character.
562 (Fremove_char_attribute): Use encoding_table of each coded-charset
563 to store value of coded-charset attribute of a character.
564 (mark_charset): Mark `cs->encoding_table'; don't mark
565 `cs->decoding_table'.
566 (charset_description): Add description of new member
568 (make_charset): Initialize `encoding_table'.
570 * char-ucs.h (struct Lisp_Charset): Add new member
572 (CHARSET_ENCODING_TABLE): New macro.
573 (XCHARSET_ENCODING_TABLE): New macro.
574 (charset_code_point): New implementation.
575 (encode_char_1): Likewise.
577 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
578 (disksave_object_finalization_1): Call finalizers of
579 `all_older_lcrecords' in UTF-2000.
580 (make_older_vector): New function in UTF-2000.
581 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
584 * lisp.h (make_older_vector): New prototype in UTF-2000.
586 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
588 * lrecord.h (enum lrecord_type): Rename
589 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
591 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
592 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
593 `get_char_code_table'.
595 * mule-charset.c (mark_char_id_table): Renamed from
596 `mark_char_code_table'.
597 (char_id_table_equal): Renamed from `char_code_table_equal'.
598 (char_id_table_hash): Renamed from `char_code_table_hash'.
599 (make_char_id_table): Renamed from `make_char_code_table'.
600 (copy_char_id_table): Renamed from `copy_char_code_table'.
601 (get_char_id_table): Renamed from `get_char_code_table'.
602 (put_char_id_table): Renamed from `put_char_code_table'.
603 (to_char_id): Renamed from `to_char_code'.
605 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
606 `Lisp_Char_Code_Table'.
607 (char_id_table): Renamed from `char_code_table'.
608 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
609 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
610 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
611 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
612 (get_char_id_table): Renamed from `get_char_code_table'.
614 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
616 * lrecord.h (enum lrecord_type): Rename
617 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
619 * mule-charset.c (mark_byte_table): Renamed from
620 `mark_char_byte_table'.
621 (byte_table_equal): Renamed from `char_byte_table_equal'.
622 (byte_table_hash): Renamed from `byte_table_hash'.
623 (make_byte_table): Renamed from `make_byte_table'.
624 (copy_byte_table): Renamed from `copy_char_byte_table'.
626 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
627 `Lisp_Char_Byte_Table'.
628 (byte_table): Renamed from `char_byte_table'.
629 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
630 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
631 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
632 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
634 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
636 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
637 (dfc_convert_to_internal_format): Likewise.
639 * text-coding.c (Fcoding_system_canonical_name_p): New function.
640 * text-coding.c (Fcoding_system_alias_p): New function.
641 * text-coding.c (Fcoding_system_aliasee): New function.
642 * text-coding.c (append_suffix_to_symbol): New function.
643 * text-coding.c (dangling_coding_system_alias_p): New function.
644 * text-coding.c (Ffind_coding_system):
645 * text-coding.c (Fcopy_coding_system):
646 * text-coding.c (encode_coding_no_conversion):
647 * text-coding.c (syms_of_file_coding):
648 * text-coding.c (vars_of_file_coding):
649 Rewrite coding system alias code.
650 Allow nested aliases, like symbolic links.
651 Allow redefinition of coding system aliases.
652 Prevent existence of dangling coding system aliases.
653 Eliminate convert_to_external_format.
654 Eliminate convert_to_internal_format.
656 * text-coding.c: Change enum eol_type to eol_type_t.
658 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
660 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
661 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
663 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
664 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
666 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
668 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
669 `ideograph-daikanwa'.
671 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
672 (Vcharset_ucs_bmp): Likewise.
673 (Vcharset_mojikyo): Add new extern variable definition.
674 (Vcharset_latin_iso8859_2): Deleted because it is not used.
675 (Vcharset_latin_iso8859_3): Likewise.
676 (Vcharset_latin_iso8859_4): Likewise.
677 (Vcharset_latin_iso8859_9): Likewise.
678 (Vcharset_latin_viscii_lower): Likewise.
679 (Vcharset_latin_viscii_upper): Likewise.
680 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
681 `mojikyo' code-point is used to decode.
682 (encode_char_2): New function [to convert `mojikyo' code-point to
683 Mojikyo font encoding].
684 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
685 (breakup_char_1): Likewise.
686 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
688 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
690 * text-coding.c (Fmake_coding_system): Add document about
691 `disable-composition' property.
693 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
695 * text-coding.c (Qdisable_composition): New variable; delete
697 (Fmake_coding_system): Add new property `disable-composite';
698 delete property `composite'.
699 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
700 instead of `!CODING_SYSTEM_COMPOSITE'.
701 (syms_of_file_coding): Add new symbol `disable-composition';
702 delete symbol `composite'.
704 * file-coding.h (struct Lisp_Coding_System): Add
705 `disable_composition'; delete `enable_composition'.
706 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
707 `CODING_SYSTEM_COMPOSITE'.
708 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
709 `XCODING_SYSTEM_COMPOSITE'.
711 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
713 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
716 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
718 * text-coding.c (Qcomposite): New variable.
719 (Fmake_coding_system): Add new property `composite'.
720 (struct decoding_stream): Add `combined_char_count',
721 `combined_chars' and `combining_table' in UTF-2000.
722 (COMPOSE_FLUSH_CHARS): New macro.
723 (COMPOSE_ADD_CHAR): New macro.
724 (reset_decoding_stream): Reset `str->combined_char_count' and
725 `str->combining_table' in UTF-2000.
726 (decode_coding_iso2022): Modify for character-decomposition.
727 (syms_of_file_coding): Add new symbol `composite'.
729 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
731 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
732 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
733 of `Vcharacter_composition_table' if `->decomposition' property
735 (Qlatin_tcvn5712): New variable.
736 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
737 (complex_vars_of_mule_charset): Add new coded-charset
740 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
742 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
744 * file-coding.h (struct Lisp_Coding_System): Add
745 `enable_composition'.
746 (CODING_SYSTEM_COMPOSITE): New macro.
747 (XCODING_SYSTEM_COMPOSITE): New macro.
749 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
751 * mule-canna.c (c2mu): Fix problem with UTF-2000.
753 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
755 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
756 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
758 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
760 * mule-charset.c (Vcharset_mojikyo): New variable.
761 (Fdefine_char): Don't use coded-charset which does not have
762 non-builtin character range to allocate character-id.
763 (Qmojikyo): New variable.
764 (syms_of_mule_charset): Add new symbol `mojikyo'.
765 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
767 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
768 (LEADING_BYTE_MOJIKYO): New macro.
769 (MIN_CHAR_MOJIKYO): New macro.
770 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
771 (MAX_CHAR_MOJIKYO): New macro.
773 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
775 * mule-charset.c (remove_char_attribute): Fixed.
777 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
779 * mule-charset.c (remove_char_attribute): New function.
780 (Fremove_char_attribute): New function.
781 (encode_builtin_char_1): Comment out builtin-support for
782 greek-iso8859-7 and cyrillic-iso8859-5.
783 (Fdecode_char): Check `code' is an integer.
784 (syms_of_mule_charset): Add `remove-char-attribute'.
785 (MIN_CHAR_GREEK): Deleted.
786 (MAX_CHAR_GREEK): Likewise.
787 (MIN_CHAR_CYRILLIC): Likewise.
788 (MAX_CHAR_CYRILLIC): Likewise.
789 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
790 MAX_CHAR_GREEK for `greek-iso8859-7'.
792 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
793 (MAX_CHAR_GREEK): Likewise.
794 (MIN_CHAR_CYRILLIC): Likewise.
795 (MAX_CHAR_CYRILLIC): Likewise.
797 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
799 * mule-charset.c (Fdefine_char): Fix problem when new code-point
800 format is used without `ucs' property.
801 (Fdecode_char): Fix problem with GR representation.
802 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
803 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
805 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
807 * mule-charset.c (make_builtin_char): New function.
808 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
809 (Fset_charset_mapping_table): Modify for new representation of
811 (Fdecode_char): New function.
812 (syms_of_mule_charset): Add new builtin function `decode-char' in
815 * char-ucs.h (make_builtin_char): New prototype.
816 (DECODE_CHAR): New inline function.
817 (MAKE_CHAR): Use `DECODE_CHAR'.
819 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
821 * text-coding.c (parse_charset_conversion_specs): Use
822 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
824 (iso2022_designate): Likewise.
826 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
827 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
829 * mule-charset.c (Vcharset_ucs): New variable.
830 (print_charset): Change design; use `CHARSET_CHARS' and
831 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
832 (make_charset): Change signature to specify `chars' and
833 `dimension' instead of `type'.
834 (range_charset_code_point): Modify for 256^n-set.
835 (encode_builtin_char_1): Encode as `ucs' in default.
836 (Fmake_charset): Modify for `make_charset'.
837 (Fmake_reverse_direction_charset): Likewise.
838 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
840 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
843 * char-ucs.h (Vcharset_ucs): New variable.
844 (LEADING_BYTE_UCS): New macro.
845 (struct Lisp_Charset): Delete `type'; change type of `dimension'
846 and `chars' to `unsigned short' from `unsigned int'.
847 (CHARSET_TYPE): Deleted.
848 (XCHARSET_TYPE): Deleted.
850 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
852 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
854 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
855 (ENCODE_CHAR): New macro.
857 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
859 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
860 to 0.14 (Kawachi-Katakami).
862 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
864 * text-coding.c (char_encode_shift_jis): Modify for
865 `charset_code_point'.
866 (char_encode_iso2022): Likewise.
868 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
869 (integer) instead of list of <Lisp_Object>s (integers) as the
870 format of code-point of a coded-charset.
871 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
872 (encode_builtin_char_1): New function; delete
873 `split_builtin_char'.
874 (charset_code_point): Return <int> instead of <Lisp_Object>.
875 (Fsplit_char): Don't use `SPLIT_CHAR'.
877 * char-ucs.h (encode_builtin_char_1): New prototype; delete
878 prototype for `split_builtin_char'.
879 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
880 (charset_code_point): Likewise.
881 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
882 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
884 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
886 * mule-charset.c (complex_vars_of_mule_charset): Don't define
887 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
889 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
891 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
893 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
894 (MAX_CHAR_OBS_94x94): Deleted.
896 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
898 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
900 * char-ucs.h (MAX_CHAR_BMP): New macro.
902 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
904 * text-coding.c: Sync with r21-2-24.
906 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
908 * file-coding.c: Modify for UTF-2000.
910 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
912 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
915 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
917 * mule-charset.c (split_builtin_char): Delete builtin support for
919 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
920 BMP area in builtin representation.
922 * char-ucs.h (MAKE_CHAR): Delete builtin support for
923 `Vcharset_katakana_jisx0201'.
925 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
927 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
928 (Qisolated): New variable.
929 (Qinitial): New variable.
930 (Qmedial): New variable.
931 (Qfinal): New variable.
932 (Qvertical): New variable.
933 (Qsmall): New variable.
934 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
935 `Qvertical' and `Qsmall'.
936 (Qmojikyo_pj_[1 .. 21]): New variable.
937 (syms_of_mule_charset): Add new symbols `isolated', `initial',
938 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
939 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
942 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
944 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
945 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
946 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
948 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
950 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
951 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
953 (Qjapanese_jisx0208_1990): New variable.
954 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
955 (complex_vars_of_mule_charset): Add new coded-charset
956 `japanese-jisx0208-1990'.
958 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
959 (MIN_CHAR_JIS_X0208_1990): New macro.
960 (MAX_CHAR_JIS_X0208_1990): New macro.
962 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
964 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
965 coded-charset is not found.
967 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
969 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
970 (Fdefine_char): Use `Fmake_char'.
972 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
974 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
975 (Vcharset_hiragana_jisx0208): Deleted.
976 (Vcharset_katakana_jisx0208): Deleted.
977 (Qideograph_daikanwa): New variable.
978 (Qhiragana_jisx0208): Deleted.
979 (Qkatakana_jisx0208): Deleted.
980 (split_builtin_char): Split `ideograph-daikanwa'.
981 (Fsplit_char): New implementation for UTF-2000.
982 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
983 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
984 (complex_vars_of_mule_charset): Add new coded-charset
985 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
988 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
989 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
990 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
991 (MIN_CHAR_DAIKANWA): New macro.
992 (MAX_CHAR_DAIKANWA): New macro.
994 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
996 * data.c (Fstring_to_number): Don't recognize floating point if
999 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1001 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1003 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1005 * mule-charset.c (Qsquare): New variable.
1006 (to_char_code): Add `Qsquare'.
1007 (syms_of_mule_charset): Add new symbol `square'.
1009 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1011 * mule-charset.c (Qcircle): New variable.
1012 (to_char_code): Add `Qcircle'.
1013 (syms_of_mule_charset): Add new symbol `circle'.
1015 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1017 * mule-charset.c (Qfont): New variable.
1018 (to_char_code): Add `Qfont'.
1019 (syms_of_mule_charset): Add new symbol `font'.
1021 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1023 * mule-charset.c (Qsub): New variable.
1024 (to_char_code): Add `Qsub'.
1025 (syms_of_mule_charset): Add new symbol `sub'.
1027 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1029 * mule-charset.c (Fput_char_attribute): Convert each element of
1030 VALUE to GL position if ATTRIBUTE is a GR-set,
1032 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1034 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1035 coded-charset is a GR-set.
1037 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1039 * mule-charset.c (Fput_char_attribute): Check each element of
1040 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1042 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1044 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1046 (Qethiopic_ucs): New variable in UTF-2000.
1047 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1048 (complex_vars_of_mule_charset): Add new coded-charset
1049 `ethiopic-ucs' in UTF-2000.
1051 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1052 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1054 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1056 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1058 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
1060 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1063 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1065 * mule-charset.c (Vcharacter_variant_table): New variable.
1066 (Q_ucs): New variable.
1067 (Fchar_variants): New function.
1068 (Fput_char_attribute): Register `->ucs' value to
1069 `Vcharacter_variant_table'.
1070 (syms_of_mule_charset): Add new function `char-variants' and new
1072 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1074 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1076 * mule-charset.c (get_char_code_table): Allow negative character
1078 (put_char_code_table): Likewise.
1079 (Vcharacter_composition_table): New variable.
1080 (Q_decomposition): New variable.
1081 (Qwide): New variable.
1082 (Qnarrow): New variable.
1083 (Qcompat): New variable.
1084 (QnoBreak): New variable.
1085 (Qsuper): New variable.
1086 (Qfraction): New variable.
1087 (to_char_code): New function.
1088 (Fget_composite_char): New function.
1089 (Fput_char_attribute): Register `->decomposition' value to
1090 `Vcharacter_composition_table'.
1091 (syms_of_mule_charset): Add new function `get-composite-char', new
1092 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1093 `super' and `fraction'.
1094 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1096 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1098 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1099 character; copy the return value.
1101 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1103 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1105 * mule-charset.c (range_charset_code_point): Must use make_int.
1106 (split_builtin_char): New function.
1108 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1110 * mule-charset.c (char_byte_table): Change name from
1111 "char-code-table" to "char-byte-table".
1112 (mark_char_code_table): New function.
1113 (char_code_table_equal): New function.
1114 (char_code_table_hash): New function.
1115 (char_code_table_description): New constant.
1116 (char_code_table): New type.
1117 (make_char_code_table): New function.
1118 (copy_char_code_table): New function.
1119 (get_char_code_table): Modify for `char_code_table' type.
1120 (put_char_code_table): Likewise.
1121 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1124 * char-ucs.h (char_code_table): New type.
1125 (XCHAR_CODE_TABLE): New macro.
1126 (XSETCHAR_CODE_TABLE): New macro.
1127 (CHAR_CODE_TABLE_P): New macro.
1128 (GC_CHAR_CODE_TABLE_P): New macro.
1129 (struct Lisp_Char_Code_Table): New structure.
1131 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1133 * mule-charset.c (Fmake_charset): Setup byte_offset for
1136 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
1138 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
1141 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1143 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
1146 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1148 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
1149 charset, it is regarded as a charset.
1150 (put_char_attribute): New function in UTF-2000.
1151 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
1152 charset, mapping-table of the charset is modified.
1153 (Fdefine_char): New function in UTF-2000.
1154 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
1155 `Fput_char_attribute'.
1156 (syms_of_mule_charset): Add new function `define-char' and new
1157 symbol `ucs' in UTF-2000.
1158 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
1160 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1162 * mule-charset.c (Fcharset_name): Define `byte_offset' in
1163 non-UTF-2000 configuration.
1165 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1167 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
1168 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
1170 * mule-charset.c (mark_charset): `cs->encoding_table' has been
1172 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
1173 (Fset_charset_mapping_table): Likewise.
1175 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
1176 (CHARSET_ENCODING_TABLE): Delete.
1177 (XCHARSET_ENCODING_TABLE): Delete.
1178 (charset_code_point): New interface.
1180 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1182 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
1183 instead of `charset_get_byte1' and `charset_get_byte2'.
1185 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
1186 (charset_get_byte2): Deleted.
1188 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1190 * char-ucs.h (SPLIT_CHAR): New inline function.
1191 (breakup_char_1): Use `SPLIT_CHAR'.
1193 * mule-charset.c (range_charset_code_point): New function.
1194 (charset_code_point): New function.
1196 * char-ucs.h (range_charset_code_point): New interface.
1197 (breakup_char_1): Use `range_charset_code_point'.
1199 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1201 * mule-charset.c (Fmake_charset): Delete unused local variable
1204 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
1205 (breakup_char_1): Find a charset and code-point in
1206 `Vcharacter_attribute_table'.
1208 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1210 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1213 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
1215 * mule-charset.c (Vcharacter_attribute_table): New variable.
1216 (Fchar_attribute_alist): New function.
1217 (Fget_char_attribute): New function.
1218 (Fput_char_attribute): New function.
1219 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
1221 (syms_of_mule_charset): Add new function `char-attribute-alist',
1222 `get-char-attribute' and `put-char-attribute'.
1223 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
1225 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
1227 * mule-charset.c (Fmake_charset): Just use
1228 `get_unallocated_leading_byte'.
1230 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
1231 sets; don't use final-byte based number for private sets.
1233 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1235 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
1238 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1240 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1243 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1245 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
1246 of `CHAR_LEADING_BYTE' in UTF-2000.
1248 * insdel.c (find_charsets_in_bufbyte_string): Use
1249 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1250 (find_charsets_in_emchar_string): Likewise.
1252 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
1253 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1255 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
1256 (CHAR_CHARSET_ID): New macro.
1258 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1260 * chartab.c (get_char_table): Don't use type `Charset_ID' for
1261 charset-id - MIN_LEADING_BYTE.
1262 (put_char_table): Likewise.
1264 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1266 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
1267 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
1268 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
1269 (CHARSET_ID_OFFSET): New macro.
1270 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
1271 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
1272 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
1273 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1275 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1277 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
1278 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
1279 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
1280 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
1281 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
1283 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1285 * mule-charset.c (next_allocated_leading_byte): New variable in
1287 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
1288 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
1289 (get_unallocated_leading_byte): Simply use
1290 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
1291 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
1294 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
1295 (MAX_LEADING_BYTE_PRIVATE): New macro.
1296 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
1297 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
1299 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1301 * mule-charset.c (Fmake_charset): Allocate final-byte based
1302 charset-id for 94-set, 96-set and 94x94-set.
1304 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1306 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
1308 (Fmake_charset): Likewise.
1309 (complex_vars_of_mule_charset): Modify the font registry of
1310 `ucs-bmp' not to match `Ethiopic-Unicode'.
1312 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
1314 * mule-charset.c (complex_vars_of_mule_charset): Add font
1315 registory of `ucs-bmp'.
1317 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
1319 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
1320 coded-charsets in `default-coded-charset-priority-list' when
1321 breaking up a character.
1323 * mule-charset.c (Vcharset_latin_viscii): New variable.
1324 (Qlatin_viscii): New variable.
1325 (make_charset): Don't use `decoding_table'.
1326 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
1328 (Fset_charset_mapping_table): New implementation.
1329 (syms_of_mule_charset): Add new symbol `latin-viscii'.
1330 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
1331 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
1332 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
1333 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
1334 charset `latin_viscii'.
1336 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
1337 (CHARSET_TYPE_94X94): Change to 1 from 2.
1338 (CHARSET_TYPE_96): Change to 2 from 1.
1339 (CHARSET_TYPE_128): New macro.
1340 (CHARSET_TYPE_128X128): Change to 5 from 4.
1341 (CHARSET_TYPE_256): New macro.
1342 (CHARSET_TYPE_256X256): Change to 7 from 5.
1343 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
1345 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
1347 * text-coding.c (char_encode_shift_jis): Refer
1348 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
1349 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
1351 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
1352 (char_byte_table_equal): New function in UTF-2000.
1353 (char_byte_table_hash): New function in UTF-2000.
1354 (char_byte_table_description): New constant in UTF-2000.
1355 (char_byte_table): New type in UTF-2000.
1356 (make_char_byte_table): New function in UTF-2000.
1357 (copy_char_byte_table): New function in UTF-2000.
1358 (make_char_code_table): New macro in UTF-2000.
1359 (get_char_code_table): New function in UTF-2000.
1360 (put_char_code_table): New function in UTF-2000.
1361 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1362 (charset_description): Add setting in UTF-2000.
1363 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
1364 `CHARSET_TO_BYTE1_TABLE(cs)'.
1365 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
1366 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
1367 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
1368 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
1369 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
1370 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
1371 `CHARSET_TO_BYTE2_TABLE(cs)'.
1373 * char-ucs.h (char_byte_table): New type.
1374 (XCHAR_BYTE_TABLE): New macro.
1375 (XSETCHAR_BYTE_TABLE): New macro.
1376 (CHAR_BYTE_TABLE_P): New macro.
1377 (GC_CHAR_BYTE_TABLE_P): New macro.
1378 (struct Lisp_Char_Byte_Table): New structure.
1379 (get_char_code_table): New interface.
1380 (Emchar_to_byte_table): Deleted.
1381 (get_byte_from_character_table): Deleted.
1382 (struct Lisp_Charset): Add `encoding_table'; delete
1383 `to_byte1_table' and `to_byte2_table'.
1384 (CHARSET_ENCODING_TABLE): New macro.
1385 (CHARSET_TO_BYTE1_TABLE): Deleted.
1386 (CHARSET_TO_BYTE2_TABLE): Deleted.
1387 (XCHARSET_ENCODING_TABLE): New macro.
1388 (XCHARSET_TO_BYTE1_TABLE): Deleted.
1389 (XCHARSET_TO_BYTE2_TABLE): Deleted.
1391 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
1393 * mule-charset.c (syms_of_mule_charset): Delete charset alias
1394 `vietnamese-viscii-*'.
1396 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
1398 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
1399 (Qvietnamese_viscii_upper): New variable.
1400 (Fdefine_charset_alias): New function.
1401 (syms_of_mule_charset): Add new function `define-charset-alias'.
1402 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
1403 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
1406 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
1408 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
1409 (MAX_CHAR_OBS_94x94): New macro.
1410 (breakup_char_1): Support obsolete XEmacs-UCS private code space
1413 * mule-charset.c (put_byte_from_character_table): Change unit size
1415 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
1417 (Fmake_reverse_direction_charset): Modify dummy argument of
1418 `make_charset' for non-UTF-2000 environment.
1420 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
1422 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
1424 * mule-charset.c (destroy_byte_from_character_table): New macro.
1425 (latin_jisx0201_to_ucs): Deleted.
1426 (latin_iso8859_2_to_ucs): Deleted.
1427 (latin_iso8859_3_to_ucs): Deleted.
1428 (latin_iso8859_4_to_ucs): Deleted.
1429 (latin_iso8859_9_to_ucs): Deleted.
1430 (latin_viscii_lower_to_ucs): Deleted.
1431 (latin_viscii_upper_to_ucs): Deleted.
1432 (mark_charset): Mark `cs->decoding_table'.
1433 (Fcharset_mapping_table): Fix DOC-string.
1434 (Fset_charset_mapping_table): New function.
1435 (syms_of_mule_charset): Add nwe function
1436 `set-charset-mapping-table'.
1437 (complex_vars_of_mule_charset): Don't setup and use
1440 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
1442 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
1445 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
1447 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
1448 (Vcharset_katakana_jisx0208): New variable.
1449 (Qhiragana_jisx0208): New variable.
1450 (Qkatakana_jisx0208): New variable.
1451 (make_charset): Add new argument `byte_offset'.
1452 (charset_get_byte1): Modify for new coded-charset definition; use
1453 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1454 `XCHARSET_BYTE_OFFSET'.
1455 (Fmake_charset): Modify for `make_charset'.
1456 (Fmake_reverse_direction_charset): Likewise.
1457 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
1458 `katakana-jisx0208'.
1459 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
1460 `.' in font registry of charset `katakana-jisx0201',
1461 `latin-jisx0201', `vietnamese-viscii-lower' and
1462 `vietnamese-viscii-upper'; modify DOC-string of charset
1463 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
1464 registry of charset `japanese-jisx0208' not to use font for JIS
1465 X0208:1990; add new charset `hiragana-jisx0208' and
1466 `katakana-jisx0208'.
1468 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
1469 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
1470 (struct Lisp_Charset): Add `byte_offset'.
1471 (CHARSET_BYTE_OFFSET): New macro.
1472 (XCHARSET_UCS_MIN): New macro.
1473 (XCHARSET_UCS_MAX): New macro.
1474 (XCHARSET_CODE_OFFSET): New macro.
1475 (XCHARSET_BYTE_OFFSET): New macro.
1476 (MIN_CHAR_HIRAGANA): New macro.
1477 (MAX_CHAR_HIRAGANA): New macro.
1478 (MIN_CHAR_KATAKANA): New macro.
1479 (MAX_CHAR_KATAKANA): New macro.
1480 (MAKE_CHAR): Modify for new coded-charset definition; use
1481 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1482 `XCHARSET_BYTE_OFFSET'.
1484 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1486 * mule-charset.c (CHAR96): Deleted.
1487 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
1489 (latin_iso8859_2_to_ucs): Likewise.
1490 (latin_iso8859_3_to_ucs): Likewise.
1491 (latin_iso8859_4_to_ucs): Likewise.
1492 (latin_iso8859_9_to_ucs): Likewise.
1493 (latin_viscii_lower_to_ucs): Likewise.
1494 (latin_viscii_upper_to_ucs): Likewise.
1495 (latin_tcvn5712_to_ucs): Commented out.
1496 (make_charset): Change type of argument `decoding_table' from
1497 <Emchar*> to <Lisp_Object> [vector of characters].
1498 (Fmake_charset): Modify for `make_charset'.
1499 (Fmake_reverse_direction_charset): Likewise.
1500 (Fcharset_mapping_table): New function in UTF-2000.
1501 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
1503 (complex_vars_of_mule_charset): Modify for type change of
1504 `*_to_ucs'; modify for `make_charset'.
1506 * char-ucs.h (struct Lisp_Charset): Change type of
1507 `decoding_table' from <Emchar*> to <Lisp_Object>.
1508 (MAKE_CHAR): Modify for new specification of `decoding_table'.
1510 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
1512 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
1513 error with non-UTF-2000-Mule.
1515 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
1517 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
1519 (Vcharset_chinese_cns11643_4): Likewise.
1520 (Vcharset_chinese_cns11643_5): Likewise.
1521 (Vcharset_chinese_cns11643_6): Likewise.
1522 (Vcharset_chinese_cns11643_7): Likewise.
1523 (Qchinese_cns11643_3): Likewise.
1524 (Qchinese_cns11643_4): Likewise.
1525 (Qchinese_cns11643_5): Likewise.
1526 (Qchinese_cns11643_6): Likewise.
1527 (Qchinese_cns11643_7): Likewise.
1528 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
1529 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
1530 and `chinese-cns11643-7' to lisp/mule/chinese.el.
1531 (complex_vars_of_mule_charset): Likewise.
1533 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1535 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
1537 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
1538 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
1540 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
1542 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
1544 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
1545 (breakup_char_1): Likewise.
1547 * text-coding.c (char_encode_iso2022): Keep designated charsets if
1548 one of them includes the specified character.
1550 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1552 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
1554 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1556 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
1558 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1560 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
1561 definition for non-UTF-2000 Mule.
1562 (latin_iso8859_3_to_ucs): Likewise.
1563 (latin_iso8859_4_to_ucs): Likewise.
1564 (latin_iso8859_9_to_ucs): Likewise.
1565 (latin_jisx0201_to_ucs): Likewise.
1566 (MIN_CHAR_THAI): Likewise.
1567 (MAX_CHAR_THAI): Likewise.
1568 (MIN_CHAR_GREEK): Likewise.
1569 (MAX_CHAR_GREEK): Likewise.
1570 (MIN_CHAR_HEBREW): Likewise.
1571 (MAX_CHAR_HEBREW): Likewise.
1572 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
1573 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
1574 (MIN_CHAR_CYRILLIC): Likewise.
1575 (MAX_CHAR_CYRILLIC): Likewise.
1577 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1579 * char-ucs.h (breakup_char_1): Use
1580 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
1581 thai-tis620 and katakana-jisx0201 area.
1583 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1585 * char-ucs.h (breakup_char_1): Use
1586 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
1589 * text-coding.c (reset_encoding_stream): Fixed.
1590 (char_encode_ucs4): Delete `& 255'.
1592 * char-ucs.h (breakup_char_1): Use
1593 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
1595 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1597 * file-coding.c (Fmake_coding_system): Don't set up
1598 `codesys->fixed.size'.
1599 (encode_coding_no_conversion): Don't refer
1600 `str->codesys->fixed.size'.
1602 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1604 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
1605 (latin_a_char_to_byte1): Deleted.
1606 (latin_a_char_to_byte2): Deleted.
1608 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1610 * mule-charset.c (make_charset): Add new argument `ucs_min',
1611 `ucs_max' and `code_offset'.
1612 (charset_get_byte1): New implementation [delete specific charset
1613 depended implementations].
1614 (Fmake_charset): Modify for `make_charset'.
1615 (Fmake_reverse_direction_charset): Likewise.
1616 (complex_vars_of_mule_charset): Likewise.
1618 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
1620 (CHARSET_UCS_MIN): New macro.
1621 (CHARSET_UCS_MAX): New macro.
1622 (CHARSET_CODE_OFFSET): New macro.
1623 (MAKE_CHAR): Delete charset depended definitions [except
1626 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
1628 * char-ucs.h (breakup_char_1): Use
1629 `Vdefault_coded_charset_priority_list' for C0-Controls,
1630 Basic-Latin, C1-Controls and Latin-1-Supplement area.
1632 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1634 * char-ucs.h (charset_get_byte1): New function.
1635 (XCHARSET_GET_BYTE1): Deleted.
1636 (charset_get_byte2): New function.
1637 (XCHARSET_GET_BYTE2): Deleted.
1638 (Vdefault_coded_charset_priority_list): New external variable.
1639 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
1640 `Vdefault_preferred_coded_charset_list'.
1642 * mule-charset.c (charset_get_byte1): New function.
1643 (charset_get_byte2): New function.
1644 (Vdefault_coded_charset_priority_list): New variable.
1645 (vars_of_mule_charset): Add new variable
1646 `default-coded-charset-priority-list'.
1648 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1650 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
1651 (XCHARSET_GET_BYTE2): New inline function.
1652 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
1653 `XCHARSET_GET_BYTE2'.
1655 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1657 * mule-charset.c (make_charset): Initialize
1658 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
1659 NULL if table is not defined.
1661 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1663 * text-coding.c (char_encode_shift_jis): Use
1664 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
1665 `ucs_to_latin_jisx0201'.
1667 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
1668 (ucs_to_latin_iso8859_2): Deleted.
1669 (ucs_to_latin_iso8859_3): Deleted.
1670 (ucs_to_latin_iso8859_4): Deleted.
1671 (ucs_to_latin_iso8859_9): Deleted.
1672 (ucs_to_latin_viscii_lower): Deleted.
1673 (ucs_to_latin_viscii_upper): Deleted.
1674 (ucs_to_latin_tcvn5712): Deleted.
1675 (make_charset): Add new argument `decoding_table'; set up
1676 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
1677 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
1678 `decoding_table' is defined in UTF-2000.
1679 (Fmake_charset): Modify for `make_charset'.
1680 (Fmake_reverse_direction_charset): Likewise.
1681 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
1682 and `GENERATE_96_SET'.
1684 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
1685 (ucs_to_latin_jisx0201): Deleted.
1686 (latin_iso8859_2_to_ucs): Deleted.
1687 (ucs_to_latin_iso8859_2): Deleted.
1688 (latin_iso8859_3_to_ucs): Deleted.
1689 (ucs_to_latin_iso8859_3): Deleted.
1690 (latin_iso8859_4_to_ucs): Deleted.
1691 (ucs_to_latin_iso8859_4): Deleted.
1692 (latin_iso8859_9_to_ucs): Deleted.
1693 (ucs_to_latin_iso8859_9): Deleted.
1694 (latin_viscii_lower_to_ucs): Deleted.
1695 (ucs_to_latin_viscii_lower): Deleted.
1696 (latin_viscii_upper_to_ucs): Deleted.
1697 (ucs_to_latin_viscii_upper): Deleted.
1698 (struct Lisp_Charset): Renamed `encoding_table' to
1699 `to_byte1_table'; add `to_byte2_table'.
1700 (CHARSET_DECODING_TABLE): New macro.
1701 (CHARSET_TO_BYTE1_TABLE): New macro.
1702 (CHARSET_TO_BYTE2_TABLE): New macro.
1703 (XCHARSET_DECODING_TABLE): New macro.
1704 (XCHARSET_TO_BYTE1_TABLE): New macro.
1705 (XCHARSET_TO_BYTE2_TABLE): New macro.
1706 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
1708 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
1709 don't use `ucs_to_*' tables.
1711 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1713 * text-coding.c (Fmake_coding_system): Don't set up
1714 `codesys->fixed.size'.
1715 (encode_coding_no_conversion): Use `if' instead of `switch'.
1717 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
1719 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1721 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
1722 (Fmake_charset): Modify for `make_charset'.
1723 (Fmake_reverse_direction_charset): Likewise.
1724 (complex_vars_of_mule_charset): Likewise.
1726 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1728 * text-coding.c (char_encode_shift_jis): Use table
1729 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
1731 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1733 * text-coding.c (text_encode_generic): Use `if' instead of
1735 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
1738 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1740 * text-coding.c (encode_coding_sjis): Deleted.
1741 (char_encode_shift_jis): New function.
1742 (char_finish_shift_jis): New function.
1743 (reset_encoding_stream): Set up `encode_char' and `finish' for
1744 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
1745 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
1746 (char_encode_utf8): Treat `eol_type'.
1748 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1750 * file-coding.c (decode_coding_iso2022): Use
1751 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
1753 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1755 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1758 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1760 * char-lb.h (CHAR_COLUMNS): New macro.
1762 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1764 * text-coding.c (char_encode_ucs4): New function.
1765 (char_finish_ucs4): New function.
1766 (encode_coding_ucs4): Deleted.
1767 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
1768 (text_encode_generic): Delete local variable `charset' and `half'.
1769 (ucs_to_mule_table): Deleted.
1770 (mule_to_ucs_table): Deleted.
1771 (Fset_ucs_char): Deleted.
1772 (ucs_to_char): Deleted.
1773 (Fucs_char): Deleted.
1774 (Fset_char_ucs): Deleted.
1775 (Fchar_ucs): Deleted.
1776 (decode_ucs4): Deleted.
1777 (mule_char_to_ucs4): Deleted.
1778 (encode_ucs4): Deleted.
1779 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
1780 (decode_coding_utf8): Likewise.
1781 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
1782 (char_encode_iso2022): Fixed.
1783 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
1784 `Fset_char_ucs' and `Fchar_ucs'.
1785 (complex_vars_of_file_coding): Don't initialize
1786 `ucs_to_mule_table'.
1788 * objects-tty.c (tty_initialize_font_instance): Don't use
1791 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
1794 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
1795 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
1797 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
1798 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
1799 (emchar_string_displayed_columns): Likewise.
1801 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
1802 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
1803 (string_column_at_point): Likewise.
1804 (Fmove_to_column): Likewise.
1806 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
1807 `encoding_table' and `decoding_table'.
1808 (CHARSET_REP_BYTES): Deleted.
1809 (XCHARSET_REP_BYTES): Deleted.
1810 (XCHARSET_COLUMNS): Deleted.
1811 (CHAR_COLUMNS): New macro.
1812 (lookup_composite_char): Deleted unconditionally.
1813 (composite_char_string): Likewise.
1815 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1817 * char-ucs.h (Emchar_to_byte_table): New type.
1818 (get_byte_from_character_table): New function interface.
1819 (Vcharset_latin_jisx0201): New variable.
1820 (latin_jisx0201_to_ucs): New variable.
1821 (ucs_to_latin_jisx0201): New variable.
1822 (Vcharset_latin_iso8859_2): New variable.
1823 (latin_iso8859_2_to_ucs): New variable.
1824 (ucs_to_latin_iso8859_2): New variable.
1825 (Vcharset_latin_iso8859_3): New variable.
1826 (latin_iso8859_3_to_ucs): New variable.
1827 (ucs_to_latin_iso8859_3): New variable.
1828 (Vcharset_latin_iso8859_4): New variable.
1829 (latin_iso8859_4_to_ucs): New variable.
1830 (ucs_to_latin_iso8859_4): New variable.
1831 (Vcharset_latin_iso8859_9): New variable.
1832 (latin_iso8859_9_to_ucs): New variable.
1833 (ucs_to_latin_iso8859_9): New variable.
1834 (Vcharset_latin_viscii_lower): New variable.
1835 (latin_viscii_lower_to_ucs): New variable.
1836 (ucs_to_latin_viscii_lower): New variable.
1837 (Vcharset_latin_viscii_upper): New variable.
1838 (latin_viscii_upper_to_ucs): New variable.
1839 (ucs_to_latin_viscii_upper): New variable.
1840 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
1841 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
1842 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
1843 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
1844 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
1845 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
1846 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
1847 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
1848 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
1849 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
1851 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
1852 (Vcharset_latin_viscii_upper): New variable.
1853 (make_byte_from_character_table): New function.
1854 (put_byte_from_character_table): New function.
1855 (get_byte_from_character_table): New function.
1856 (CHAR96): New macro.
1857 (ucs_to_latin_jisx0201): New variable.
1858 (latin_jisx0201_to_ucs): New variable.
1859 (ucs_to_latin_iso8859_2): New variable.
1860 (latin_iso8859_2_to_ucs): New variable.
1861 (ucs_to_latin_iso8859_3): New variable.
1862 (latin_iso8859_3_to_ucs): New variable.
1863 (ucs_to_latin_iso8859_4): New variable.
1864 (latin_iso8859_4_to_ucs): New variable.
1865 (ucs_to_latin_iso8859_9): New variable.
1866 (latin_iso8859_9_to_ucs): New variable.
1867 (ucs_to_latin_viscii_lower): New variable.
1868 (latin_viscii_lower_to_ucs): New variable.
1869 (ucs_to_latin_viscii_upper): New variable.
1870 (latin_viscii_upper_to_ucs): New variable.
1871 (ucs_to_latin_tcvn5712): New variable.
1872 (latin_tcvn5712_to_ucs): New variable.
1873 (Qlatin_viscii_lower): New variable.
1874 (Qlatin_viscii_upper): New variable.
1875 (syms_of_mule_charset): Set up new symbol
1876 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
1877 (complex_vars_of_mule_charset): Set up new charset
1878 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
1879 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
1880 `ucs_to_<CHARSET>' tables.
1882 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
1884 * text-coding.c: New file.
1886 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
1888 * mule-charset.c (Fmake_char): Fix problem of 256-set.
1890 * char-ucs.h (Vcharset_ucs_bmp): New variable.
1891 (MAKE_CHAR): Modify for `ucs-bmp'.
1892 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
1893 non-MULE characters of BMP.
1895 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
1897 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1900 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
1903 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
1904 - Include character.h for `CHAR_ASCII_P'.
1906 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
1908 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
1909 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
1911 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
1912 (BYTE_C0_P): Likewise.
1913 (BYTE_C1_P): Likewise.
1914 (Lstream_get_emchar_1): Likewise.
1915 (Lstream_fput_emchar): Likewise.
1916 (Lstream_funget_emchar): Likewise.
1917 (copy_internal_to_external): Likewise.
1918 (copy_external_to_internal): Likewise.
1920 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
1921 (BYTE_C0_P): Likewise.
1922 (BYTE_C1_P): Likewise.
1923 (Lstream_get_emchar_1): Likewise.
1924 (Lstream_fput_emchar): Likewise.
1925 (Lstream_funget_emchar): Likewise.
1926 (copy_internal_to_external): Likewise.
1927 (copy_external_to_internal): Likewise.
1929 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
1930 (REP_BYTES_BY_FIRST_BYTE): Likewise.
1932 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
1933 (BYTE_ASCII_P): Moved to mb-1byte.h.
1935 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
1937 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
1939 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
1940 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
1941 (VALID_CHARPTR_P): Moved to mb-*byte.h.
1942 (VALIDATE_CHARPTR_BACKWARD): Likewise.
1943 (VALIDATE_CHARPTR_FORWARD): Likewise.
1944 (simple_charptr_emchar): Moved to mb-multibyte.h.
1945 (simple_set_charptr_emchar): Likewise.
1946 (simple_charptr_copy_char): Likewise.
1947 (non_ascii_charptr_emchar): Likewise.
1948 (non_ascii_set_charptr_emchar): Likewise.
1949 (non_ascii_charptr_copy_char): Likewise.
1950 (charptr_emchar): Moved to mb-*byte.h.
1951 (set_charptr_emchar): Likewise.
1952 (charptr_copy_char): Likewise.
1954 * mb-1byte.h, mb-multibyte.h: New files.
1956 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
1958 * mb-utf-8.h (MULTIBYTE): New macro.
1959 (MAX_EMCHAR_LEN): Moved from buffer.h.
1960 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
1962 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
1964 * mb-lb.h, multibyte.h: New files.
1966 * char-1byte.h (Charset_ID): Moved from buffer.h.
1967 (MIN_LEADING_BYTE): Likewise.
1968 (LEADING_BYTE_ASCII): Likewise.
1969 (NUM_LEADING_BYTES): Likewise.
1970 (CHARSETP): Likewise.
1971 (CHARSET_BY_LEADING_BYTE): Likewise.
1972 (XCHARSET_LEADING_BYTE): Likewise.
1973 (XCHARSET_GRAPHIC): Likewise.
1974 (XCHARSET_COLUMNS): Likewise.
1975 (XCHARSET_DIMENSION): Likewise.
1976 (CHAR_CHARSET): Likewise.
1977 (CHAR_LEADING_BYTE): Likewise.
1978 (BREAKUP_CHAR): Likewise.
1979 (Vcharset_ascii): Likewise.
1981 * buffer.h: Include multibyte.h unconditionally.
1982 (VALID_CHARPTR_P): Moved to multibyte.h.
1983 (ASSERT_VALID_CHARPTR): Likewise.
1984 (REAL_INC_CHARPTR): Likewise.
1985 (REAL_INC_CHARBYTIND): Likewise.
1986 (REAL_DEC_CHARPTR): Likewise.
1987 (INC_CHARPTR): Likewise.
1988 (INC_CHARBYTIND): Likewise.
1989 (DEC_CHARPTR): Likewise.
1990 (VALIDATE_CHARPTR_BACKWARD): Likewise.
1991 (VALIDATE_CHARPTR_FORWARD): Likewise.
1992 (charptr_n_addr): Likewise.
1993 (MAX_EMCHAR_LEN): Moved to mb-*.h.
1994 (simple_charptr_emchar): Moved to multibyte.h.
1995 (simple_set_charptr_emchar): Likewise.
1996 (simple_charptr_copy_char): Likewise.
1997 (non_ascii_charptr_emchar): Likewise.
1998 (non_ascii_set_charptr_emchar): Likewise.
1999 (non_ascii_charptr_copy_char): Likewise.
2000 (charptr_emchar): Likewise.
2001 (set_charptr_emchar): Likewise.
2002 (charptr_copy_char): Likewise.
2003 (charptr_emchar_n): Likewise.
2004 (Charset_ID): Moved to char-1byte.h.
2005 (Vcharset_ascii): Likewise.
2006 (CHAR_CHARSET): Likewise.
2007 (CHAR_LEADING_BYTE): Likewise.
2008 (LEADING_BYTE_ASCII): Likewise.
2009 (NUM_LEADING_BYTES): Likewise.
2010 (MIN_LEADING_BYTE): Likewise.
2011 (CHARSETP): Likewise.
2012 (CHARSET_BY_LEADING_BYTE): Likewise.
2013 (XCHARSET_LEADING_BYTE): Likewise.
2014 (XCHARSET_GRAPHIC): Likewise.
2015 (XCHARSET_COLUMNS): Likewise.
2016 (XCHARSET_DIMENSION): Likewise.
2017 (BREAKUP_CHAR): Likewise.
2019 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2021 * character.h: Add document about interface for characters.
2023 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2024 (MAKE_CHAR): Delete comment about
2025 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2026 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2027 (BREAKUP_CHAR): Modify name of arguments.
2028 (CHAR_CHARSET): Modify name of argument.
2030 * buffer.h: Delete document about Emchar accessors.
2032 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2034 * character.h (CHAR_INTP): Moved from buffer.h
2035 (CHAR_OR_CHAR_INTP): Likewise.
2036 (XCHAR_OR_CHAR_INT): Likewise.
2037 (CHECK_CHAR_COERCE_INT): Likewise.
2039 * buffer.h (CHAR_INTP): Moved to character.h
2040 (CHAR_OR_CHAR_INTP): Likewise.
2041 (XCHAR_OR_CHAR_INT): Likewise.
2042 (CHECK_CHAR_COERCE_INT): Likewise.
2044 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2047 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2048 - Include char-1byte.h, char-lb.h or char-ucs.h.
2050 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2052 * buffer.h: Include character unconditionally.
2053 (valid_char_p): Moved to char-*.h.
2054 (non_ascii_valid_char_p): Moved to char-lb.h.
2056 * char-1byte.h, char-lb.h, char-ucs.h: New files.
2058 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2060 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2061 in UTF-2000 because it is not ported yet and not to use
2062 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2063 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2064 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2066 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2067 (CHAR_ASCII_P): Moved from character.h.
2069 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2070 (CHAR_ASCII_P): Likewise.
2071 (CHAR_FIELD1_MASK): Deleted.
2072 (CHAR_FIELD2_MASK): Deleted.
2073 (CHAR_FIELD3_MASK): Deleted.
2074 (MAX_CHAR_BASIC_LATIN): New macro.
2075 (CHAR_FIELD1): Deleted.
2076 (CHAR_FIELD2_INTERNAL): Deleted.
2077 (CHAR_FIELD3_INTERNAL): Deleted.
2078 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2079 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2080 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2081 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2082 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2083 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2084 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2085 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2086 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2087 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2088 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2089 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2090 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2091 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2092 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2093 (MIN_CHAR_COMPOSITION): Deleted.
2094 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2095 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2097 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
2099 * buffer.h: Include mb-utf-8.h in UTF-2000.
2101 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2103 * mb-utf-8.h: New file.
2105 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
2107 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2110 * mule-charset.h, buffer.h (Charset_ID): New type.
2112 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
2114 * mule-canna.c (c2mu): Use `MAKE_CHAR',
2115 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2116 instead of `MULE_CHAR_PRIVATE_OFFSET',
2117 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2118 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2119 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2121 * character.h (Vcharset_japanese_jisx0212): New variable
2124 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
2126 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2127 (charset_by_attributes): Delete array about direction.
2128 (latin_a_char_to_charset): New variable in UTF-2000.
2129 (latin_a_char_to_byte1): New variable in UTF-2000.
2130 (latin_a_char_to_byte2): New variable in UTF-2000.
2131 (Qucs_bmp): New variable.
2132 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
2134 (next_allocated_2_byte_leading_byte): Likewise.
2135 (non_ascii_set_charptr_emchar): Likewise.
2136 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
2137 `CHARSET_TYPE_256X256' in UTF-2000; modify for
2138 `charset_by_attributes'.
2139 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
2140 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
2141 and `CHARSET_BY_LEADING_BYTE'.
2142 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
2143 `utf-2000-version' to `vars_of_mule_charset'.
2144 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
2145 define `leading-code-private-11' in UTF-2000; move setting of
2146 `utf-2000-version' from `syms_of_mule_charset'.
2147 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
2150 * character.h (Charset_ID): New type.
2151 (LEADING_BYTE_UCS_BMP): New macro.
2152 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
2153 (CHARSET_ID_OFFSET_94): New macro.
2154 (MIN_CHARSET_ID_PRIVATE_94): New macro.
2155 (MAX_CHARSET_ID_PRIVATE_94): New macro.
2156 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
2158 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
2159 (LEADING_BYTE_LATIN_JISX0201): Likewise.
2160 (CHARSET_ID_OFFSET_96): New macro.
2161 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
2162 CHARSET_ID_OFFSET_96 and final-byte.
2163 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
2164 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
2165 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
2166 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
2167 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
2168 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
2169 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
2170 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
2171 (LEADING_BYTE_THAI_TIS620): Likewise.
2172 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
2173 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
2174 (CHARSET_ID_OFFSET_94x94): New macro.
2175 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
2176 CHARSET_ID_OFFSET_94x94 and final-byte.
2177 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
2178 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
2179 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
2180 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
2181 (LEADING_BYTE_CHINESE_GB2312): Likewise.
2182 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
2183 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
2184 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
2185 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
2186 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
2187 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
2188 (CHARSET_TYPE_128X128): New macro.
2189 (CHARSET_TYPE_256X256): New macro.
2190 (XCHARSET_PRIVATE_P): Delete unconditionally.
2191 (charset_by_attributes): Delete array about direction.
2192 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
2193 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
2194 (MIN_CHAR_94): New macro.
2195 (MAX_CHAR_94): New macro.
2196 (MIN_CHAR_96): New macro.
2197 (MAX_CHAR_96): New macro.
2198 (MIN_CHAR_94x94): New macro.
2199 (MAX_CHAR_94x94): New macro.
2200 (MIN_CHAR_96x96): New macro.
2201 (MAX_CHAR_96x96): New macro.
2202 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
2203 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2204 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
2206 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
2207 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
2208 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
2209 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
2210 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
2211 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
2212 `XCHARSET_LEADING_BYTE' to make code-point.
2213 (latin_a_char_to_charset): New variable.
2214 (latin_a_char_to_byte1): New variable.
2215 (latin_a_char_to_byte2): New variable.
2216 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
2217 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
2218 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
2220 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
2221 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
2222 (find_charsets_in_emchar_string): Likewise.
2223 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
2225 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
2227 (decode_coding_iso2022): Likewise.
2229 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
2232 * redisplay.c (redisplay_text_width_emchar_string): Use
2233 `Charset_ID' instead of `unsigned char'.
2234 (redisplay_frame_text_width_string): Likewise.
2236 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
2239 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
2240 instead of `unsigned char'.
2241 (face_cachel_charset_font_metric_info): Likewise.
2243 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
2244 (get_non_ascii_char_table_value): Likewise.
2245 (get_char_table): Likewise.
2246 (put_char_table): Likewise.
2247 (map_over_other_charset): Likewise.
2248 (map_char_table): Likewise.
2250 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
2251 instead of `unsigned char'.
2253 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
2255 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
2256 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
2258 * mule-charset.c (leading_code_private_11): Don't define in
2261 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
2262 in UTF-2000 because it is not ported yet and not to use
2263 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
2265 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
2267 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
2269 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2271 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
2274 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
2275 of unsigned char to store leading-byte.
2277 * chartab.c (get_non_ascii_char_table_value): Don't use
2278 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
2280 * file-coding.c (encode_coding_big5): Delete bogus implementation
2283 * character.h (LEADING_BYTE_*): Delete definition for
2285 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
2286 (LEADING_BYTE_PREFIX_P): Deleted.
2287 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
2288 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
2289 (BUFBYTE_LEADING_BYTE_P): Deleted.
2290 (CHARSET_PRIVATE_P): Deleted unconditionally.
2291 (rep_bytes_by_first_byte): Deleted unconditionally.
2292 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
2293 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
2294 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2295 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
2296 (CHAR_FIELD2): Deleted.
2297 (CHAR_FIELD3): Deleted.
2298 (MAKE_CHAR): Delete definition for non-UTF-2000.
2299 (BREAKUP_CHAR_1_UNSAFE): Deleted.
2300 (breakup_char_1): New implementation.
2301 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
2302 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
2304 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2306 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
2309 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2311 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
2312 (CHARSET_PRIVATE_P): Likewise.
2313 (XCHARSET_PRIVATE_P): Likewise.
2314 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
2316 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
2318 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
2320 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2322 * character.h (LEADING_BYTE_*): Changed in UTF2000.
2323 (NUM_LEADING_BYTES): Changed from 128 to 256.
2324 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
2325 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
2327 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
2329 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
2331 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
2332 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
2333 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
2334 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
2335 (Qchinese_cns11643_3): New variable in UTF2000.
2336 (Qchinese_cns11643_4): New variable in UTF2000.
2337 (Qchinese_cns11643_5): New variable in UTF2000.
2338 (Qchinese_cns11643_6): New variable in UTF2000.
2339 (Qchinese_cns11643_7): New variable in UTF2000.
2340 (syms_of_mule_charset): Define `chinese-cns11643-3',
2341 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2342 and `chinese-cns11643-7' in UTF2000.
2343 (vars_of_mule_charset): Initialize
2344 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
2346 (complex_vars_of_mule_charset): Setup charset
2347 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
2348 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
2350 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2352 * mule-charset.c: Move setting for `leading-code-private-11' from
2353 `syms_of_mule_charset' to `vars_of_mule_charset'.
2355 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2357 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
2358 and `NUM_LEADING_BYTES' in assert.
2360 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2362 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
2364 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
2365 `NUM_LEADING_BYTES' instead of 128.
2367 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2369 * mule-charset.h (charset_by_leading_byte): Use
2370 `NUM_LEADING_BYTES' instead of 128.
2371 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
2373 * mule-charset.c (charset_by_leading_byte): Use
2374 `NUM_LEADING_BYTES' instead of 128.
2375 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
2377 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
2380 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2382 * mule-charset.c (syms_of_mule_charset): Update to
2385 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
2387 * file-coding.c (encode_coding_sjis): New implementation for
2388 UTF2000. (decode_coding_sjis): Ditto.
2390 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2392 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
2393 Don't define in UTF2000.
2395 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
2398 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2399 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
2402 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2404 * config.h.in (CHAR_IS_UCS4): New macro.
2406 * mule-charset.c (rep_bytes_by_first_byte): Modify for
2407 conventional MULE representation.
2408 (syms_of_mule_charset): Update to 0.3 (Imamiya).
2410 * mule-charset.h: Reverted to original.
2412 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2413 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
2414 "mule-charset.h" if CHAR_IS_UCS4 is defined.
2416 * character.h: New file.
2418 * file-coding.c (Fmake_coding_system): Set 1 to
2419 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
2421 (encode_coding_no_conversion): New implementation for UTF2000.
2423 * file-coding.h (struct Lisp_Coding_System): Add new member
2426 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
2428 * file-coding.c (decode_coding_iso2022): Code-point arguments of
2429 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
2430 (encode_coding_iso2022): New implementation for UTF2000.
2432 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2434 * mule-canna.c (c2mu): New implementation for UTF2000.
2437 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2439 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
2441 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2443 * file-coding.c (reset_encoding_stream): Set 0 to
2444 `str->iso2022.current_char_boundary' in UTF2000.
2445 (encode_utf8): Don't define in UTF2000.
2446 (encode_coding_utf8): New implementation for UTF-8 representation
2448 (complex_vars_of_file_coding): Define coding-system `utf-8'.
2450 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2452 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
2454 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
2456 (REP_BYTES_BY_FIRST_BYTE): Likewise.
2458 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
2460 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
2461 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
2462 as UTF-8 in UTF2000.
2463 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
2464 (non_ascii_valid_char_p): Don't define in UTF2000.
2465 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
2466 (Lstream_get_emchar_1): Likewise.
2467 (utf-2000-version): New variable in UTF2000.
2469 * lread.c (read_escape): Add new reader `u'.
2471 * insdel.c (three_to_one_table): Don't define in UTF2000.
2472 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
2473 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2475 (bytind_to_bufpos_func): Likewise.
2476 (buffer_mule_signal_inserted_region): Likewise.
2477 (vars_of_insdel): Don't initialize `three_to_one_table'.
2478 (init_buffer_text): Use `buf->text->mule_size' instead of
2479 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2482 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
2483 UTF-8 representation in UTF2000.
2484 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
2485 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
2486 (decode_coding_iso2022): Don't define local variable `lb' in
2487 UTF2000; don't use LEADING_BYTE in UTF2000; use
2488 `DECODE_ADD_UCS_CHAR' in UTF2000.
2489 (convert_to_external_format): Decode as UTF-8 in UTF2000.
2491 * config.h.in (UTF2000): New macro.
2493 * buffer.h (struct buffer_text): Add new member `mule_size' and
2494 don't add `mule_shifter' and `mule_three_p' in UTF2000.
2495 (valid_char_p): Return always 1 in UTF2000.
2496 (MAX_EMCHAR_LEN): 6 in UTF2000.
2497 (three_to_one_table): Don't define in UTF2000.
2498 (real_bufpos_to_bytind): Modify for UTF-8 representation in
2500 (real_bytind_to_bufpos): Likewise.
2502 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
2504 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2506 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
2507 representation change.
2508 (Vutf_2000_version): New variable.
2509 (leading_code_private_11): New variable.
2510 (syms_of_mule_charset): Add new variables `utf-2000-version' and
2511 `leading-code-private-11'.
2513 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
2514 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
2515 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
2516 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
2517 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
2518 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
2519 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
2520 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
2521 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
2522 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
2523 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
2524 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
2525 (MIN_CHAR_GREEK): New macro.
2526 (MAX_CHAR_GREEK): New macro.
2527 (MIN_CHAR_CYRILLIC): New macro.
2528 (MAX_CHAR_CYRILLIC): New macro.
2529 (MIN_CHAR_HEBREW): New macro.
2530 (MAX_CHAR_HEBREW): New macro.
2531 (MIN_CHAR_THAI): New macro.
2532 (MAX_CHAR_THAI): New macro.
2533 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
2534 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
2535 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
2536 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
2537 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
2538 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
2539 (CHAR_FIELD2): New inline function.
2540 (CHAR_FIELD3): New inline function.
2541 (MULE_CHAR_PRIVATE_OFFSET): New macro.
2542 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
2543 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
2544 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
2545 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
2546 (MIN_CHAR_COMPOSITION): Likewise.
2547 (CHAR_LEADING_BYTE): Modified for character representation change.
2548 (MAKE_CHAR): Likewise.
2550 * lisp.h (Vcharset_latin_iso8859_1): New variable.
2551 (Vcharset_greek_iso8859_7): Likewise.
2552 (Vcharset_cyrillic_iso8859_5): Likewise.
2553 (Vcharset_hebrew_iso8859_8): Likewise.
2554 (Vcharset_thai_tis620): Likewise.
2555 (Vcharset_katakana_jisx0201): Likewise.
2557 2000-07-19 Martin Buchholz <martin@xemacs.org>
2559 * XEmacs 21.2.35 is released.
2561 2000-07-19 Martin Buchholz <martin@xemacs.org>
2563 * select-x.c (x_handle_selection_request):
2564 Text selected in xemacs and pasted into xterm failed to appear.
2565 Spelling fixes and cosmetic changes.
2567 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
2569 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
2570 XEmacs frame (fix for doubling chars in dialog boxes).
2572 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
2574 * select.c (select_convert_in, select_convert_out):
2575 Don't call intern() every time.
2577 * select.c (Qselect_convert_in, Qselect_convert_out): New.
2578 * select.c (vars_of_select): Initialise them.
2580 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
2582 * select.c (selection-coercible-types): New.
2584 * select.c (own-selection-internal):
2585 * select.c (get-selection-internal):
2586 MULE bug fix - these should default to COMPOUND_TEXT and not
2587 STRING for MULE. I think.
2589 * select.c (select_convert_out): Use selection-coercible-types
2590 to find types that we can attempt to perform coercions on.
2592 2000-07-18 Martin Buchholz <martin@xemacs.org>
2596 Add coding: cookie to identify encoding.
2598 * mule-canna.c (CANNA_mode_keys): make static.
2599 Use proper prototypes, even for functions of no arguments.
2600 Remove external prototype for Fding().
2602 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
2604 * select.c (syms_of_select): Add missing DEFSUBR.
2606 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
2608 * select.c (get_selection_internal, own_selection_internal):
2609 Make the type default to STRING, rather than placing a nil type
2610 into Vselection_alist.
2612 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
2614 * gpmevent.c (tty_selection_exists_p):
2615 * gpmevent.c (tty_own_selection):
2616 Updated parameter lists.
2618 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
2620 * select.h (selection-alist): Removed declaration.
2622 * select.h (get_local_selection):
2623 * select.c (get_local_selection):
2626 * select.h (convert_selection): Removed declaration.
2627 * select.c (convert_selection): Removed.
2628 This function belongs in Lisp.
2630 * select.h (select_convert_in): Declare.
2631 * select.h (select_convert_out): Declare.
2632 * select.c (select_convert_in): New.
2633 * select.c (select_convert_out): New.
2634 New conversion functions for other files to call.
2636 * select.h (select_notify_buffer_kill): Declare.
2637 * select.c (select_notify_buffer_kill): New.
2638 New functions that get called from kill-buffer.
2640 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
2641 X-specific lisp code.
2643 * select.h: Declare some of the lisp-visible functions for
2646 * select.c (clean_local_selection_data): Removed. This was
2647 a disgusting function, and previously should have been in
2648 select-x.c in any case. The functionality is now provided
2649 in select-convert-from-integer (select.el).
2651 * select.c (available-selection-types): Fixed stupidity where
2652 INTEGER and ATOM got added twice. Also add STRING when we see an
2655 * select.c (get-selection-internal): Removed symbol stripping. No
2656 longer causes conversion when data comes from the internal cache.
2658 * select.c (syms_of_select): Added new functions.
2660 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
2661 error checking - previously this called abort!
2663 * select-x.c (x_own_selection): Changed comment.
2665 * select-x.c (x_handle_selection_request): Use select_convert_out.
2666 Don't mess with selection-alist; it's an internal variable of select.c.
2668 * select-x.c (x_get_foreign_selection): Use select_convert_in.
2670 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
2671 rather than messing with selection-alist.
2673 * select-msw.c (mswindows_get_foreign_selection):
2674 Use TO_INTERNAL_FORMAT rather than hacking.
2676 2000-07-14 Martin Buchholz <martin@xemacs.org>
2678 * process-unix.c (unix_open_multicast_group):
2679 (unix_open_multicast_group): Remove useless casts.
2681 2000-07-13 Martin Buchholz <martin@xemacs.org>
2683 * sound.c (Fplay_sound): Fix `unused variable' warning.
2685 * emacs.c (main): Use correct type for _environ on SCO5.
2687 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
2689 * console.h (own_selection_method):
2690 * console.h (selection_exists_p_method):
2691 * console.h (available_selection_types_method): New.
2692 * console.h (register_selection_data_type_method): New.
2693 * console.h (selection_data_type_name): New.
2695 * console-msw.h (mswindows_destroy_selection): Declare it. New
2696 function & alist to track GlobalAlloc()'d handles that need
2697 releasing when the clipboard data gets replaced or emptied.
2699 * event-msw.c (mswindows_wnd_proc): Call it.
2701 * lisp.h, general.c (Qappend): New symbol representing a
2704 * select.c (own-selection-internal):
2705 * select.c (selection-exists-p):
2706 * select.c (available-selection-types): New.
2707 * select.c (register-selection-data-type): New.
2708 * select.c (selection-data-type-name): New. New functions to deal
2709 with device-specific selection data formats.
2710 * select.c (selection-converter-out-alist): Renamed.
2711 * select.c (selection-converter-in-alist): New.
2712 * select.c (selection-appender-alist): New. Added new alists.
2713 * select.c (syms_of_select, vars_of_select): Added new symbols &
2715 * select.c (get_local_selection): Split.
2716 * select.c: Removed spurious type checking - selections may now be
2717 of any type, not just strings.
2718 * select.c (own-selection-internal):
2720 * select.h, select.c (convert_selection): New. Created
2721 convert_selection() function based on get_local_selection().
2722 * select.h, select.c (QCF_*): New symbols representing mswindows
2724 * select.h, select.c (Qreplace_all, Qreplace_existing): New
2725 symbols representing `how-to-add' modes.
2727 * select-msw.c (x_sym_p): New.
2728 * select-msw.c (symbol_to_ms_cf): New.
2729 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
2730 symbols & clipboard formats. Can also handle string names.
2731 * select-msw.c (mswindows_own_selection):
2732 * select-msw.c (mswindows_selection_exists_p):
2733 Added `data-type' parameter. Use it.
2734 * select-msw.c (mswindows_available_selection_types): New.
2735 * select-msw.c (mswindows_register_selection_data_type): New.
2736 * select-msw.c (mswindows_selection_data_type_name): New.
2737 * select-msw.c (mswindows_own_selection):
2738 * select-msw.c (mswindows_get_foreign_selection):
2739 * select-msw.c (mswindows_selection_exists_p): Rewrote.
2740 * select-msw.c (console_create_select_mswindows): Added new methods.
2741 * select-msw.c (mswindows_destroy_selection): New.
2742 * select-msw.c (Vhandle_alist): New list.
2743 * select-msw.c (mswindows_own_selection):
2745 * select-x.c (x_own_selection):
2746 * select-x.c (x_selection_exists_p):
2747 * select-x.c: Added some comments about maybe using new
2749 * select-x.c (x_own_selection):
2751 * specifier.c: Remove definition of Qappend (now in general.c)
2752 * specifier.c (syms_of_specifier): Remove Qappend.
2754 2000-07-12 Martin Buchholz <martin@xemacs.org>
2756 * config.h.in: Add socklen_t.
2758 * s/decosf4-0.h: No special compiler flags needed or desired.
2759 In particular, undefine _BSD for DEC OSF 4.0.
2761 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
2763 * redisplay-msw.c (msprinter_frame_output_end): Added.
2764 (console_type_create_redisplay_mswindows): Referred the above.
2766 * frame.c (setup_frame_without_minibuffer): Do not create a
2767 default minibuffer frame on a printer device.
2769 * frame-msw.c (apply_dc_geometry): Added.
2770 (msprinter_start_page):
2771 (msprinter_init_frame_3):
2772 (msprinter_eject_page): Use it.
2774 * console-msw.h (struct msprinter_frame): Added pix_left and top,
2775 and removed residual duplex and orientation properties.
2777 2000-07-11 Martin Buchholz <martin@xemacs.org>
2779 * eval.c (function_argcount): Work around a DEC CC compiler bug.
2781 * unexalpha.c: Remove system prototypes from C sources!
2783 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
2785 * eval.c: Remove references to M-x edit-options in DEFUNs for
2786 `defvar' and `defconst'.
2788 2000-07-09 Martin Buchholz <martin@xemacs.org>
2790 * config.h.in: Remove SMART_INCLUDE hackery.
2793 * config.h.in: Don't use SMART_INCLUDE.
2795 * postgresql.h: Include libpq-fe.h here. Fix typo.
2796 * inline.c: Simply #include "postgresql.h"
2798 - Don't use SMART_INCLUDE
2799 - Use simply "const".
2800 - Use standard doc string conventions.
2801 - Use correct type for result of PQstatus.
2803 2000-07-09 Martin Buchholz <martin@xemacs.org>
2805 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
2807 C++ compilation changes.
2808 * config.h.in (EXTERN_C): Define.
2809 * config.h.in (not): This is also a C++ keyword.
2810 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
2811 * cm.c: Use EXTERN_C.
2812 * redisplay-tty.c: Use EXTERN_C.
2813 * sysdep.c: Use EXTERN_C. Remove Gould support.
2815 2000-07-09 Martin Buchholz <martin@xemacs.org>
2817 * general.c: Remove duplicate definition for Qfunction.
2819 2000-07-08 Ben Wing <ben@xemacs.org>
2821 * device-msw.c (msprinter_init_device):
2822 * device-msw.c (sync_printer_with_devmode):
2823 * device-msw.c (handle_devmode_changes):
2824 * device-msw.c (print_dialog_worker):
2825 * device-msw.c (Fmsprinter_apply_settings):
2826 * device-msw.c (hash_devmode):
2827 * device-msw.c (Fmsprinter_settings_despecialize):
2828 use Qmswindows_tstr, not Qctext.
2830 * vm-limit.c (check_memory_limits):
2831 avoid infinite loop printing warning messages.
2833 2000-07-05 Craig Lanning <lanning@scra.org>
2835 * Makefile.in.in: Add support for including the Windows resources
2836 when building with the cygwin and mingw targets.
2838 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
2839 not set or not correct.
2840 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
2841 (init_initial_directory): Don't try to use $PWD on the
2842 WIN32_NATIVE target.
2845 [[Add -mwindows to eliminate console window.]] not required --ben
2846 (HAVE_NATIVE_SOUND): removed; now handled by configure.
2847 (MAIL_USE_POP): removed; now handled by configure.
2849 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
2850 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
2851 (HAVE_NATIVE_SOUND): removed; now handled by configure.
2852 (MAIL_USE_POP): removed; now handled by configure.
2853 (ENCAPSULATE_STAT): from Dan Holmsand, added.
2854 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
2855 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
2857 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
2858 up from <winsock.h> via systime.h.
2859 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
2860 (getpagesize): from Dan Holmsand, added.
2861 Added #endif which was left dangling by Ben's mega patch; added
2862 comment to help prevent this in the future.
2864 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
2866 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
2868 * console-msw.h (struct mswindows_device): Removed unnecessary
2869 cached device geometry values.
2870 Added update_tick and an accessor macro.
2871 (Lisp_Devmode): Added lrecord declaration.
2872 (struct msprinter_device): Contain devmode as a Lisp object.
2873 Added mswindows_get_selected_frame_hwnd();
2875 * console.h (struct console_methods): Indentation nitpicking.
2877 * device-msw.c (mswindows_init_device): Do not initialize geometry
2878 cache. Initialize update tick.
2879 (mswindows_device_system_metrics): Ask the device for its geometry.
2880 (global_free_2_maybe):
2881 (devmode_to_hglobal):
2882 (handle_printer_changes):
2883 (ensure_not_printing):
2884 (print_dialog_worker):
2885 (Fmsprinter_print_setup_dialog):
2886 (Fmsprinter_print_dialog):
2889 (Fmsprinter_page_setup_dialog): Added functions.
2890 (sync_printer_with_devmode):
2891 (handle_devmode_changes):
2892 (Fmsprinter_get_settings):
2893 (Fmsprinter_select_settings):
2894 (Fmsprinter_apply_settings):
2896 (Fmsprinter_settings_copy):
2897 (Fmsprinter_settings_despecialize):
2901 (hash_devmode): Added functions
2902 (syms_of_device_mswindows): Init devmode lrecord class.
2904 * device.h: Added an exfun for find-device.
2906 * event-msw.c (mswindows_wnd_proc): Do not update the cached
2907 geometry; although, recreate the device compatible DC.
2909 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
2910 (msprinter_init_frame_3):
2911 (msprinter_frame_property):
2912 (msprinter_internal_frame_property_p):
2913 (msprinter_frame_properties):
2914 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
2915 print job properties (will move to device settings).
2917 * lisp.h: Added symbols.
2919 * general.c (syms_of_general): Declared them.
2921 * hash.c (string_hash): Added.
2923 * lrecord.h (lrecord_type): Added devmode lrecord type.
2925 2000-07-02 Mike Sperber <mike@xemacs.org>
2927 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
2930 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2932 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2935 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
2937 * data.c (Fstring_to_number): Don't recognize floating point if
2940 2000-06-22 Martin Buchholz <martin@xemacs.org>
2942 * glyphs-widget.c (tab_control_query_geometry):
2943 (widget_query_geometry):
2944 (button_query_geometry):
2945 * glyphs.c (text_query_geometry):
2946 Enforce type correctness.
2948 2000-06-18 Martin Buchholz <martin@xemacs.org>
2950 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
2951 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
2953 2000-06-17 Martin Buchholz <martin@xemacs.org>
2955 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
2956 conflicts with gcc's fixincluded version of FOO.h.
2958 * glyphs.h (image_instance_geometry): Remove trailing `,'
2960 2000-06-08 Mike Alexander <mta@arbortext.com>
2962 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
2963 (shove_thread): Don't write the same output twice
2964 (make_ntpipe_output_stream): Increase priority of shove thread
2965 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
2967 (ntpipe_shove_closer): Don't delete the pipe until we're done with
2970 2000-06-12 Ben Wing <ben@xemacs.org>
2972 * s\mingw32.h (sigset):
2973 * s\windowsnt.h (sigset):
2974 rename msw_ to mswindows_ for consistency with general convention.
2976 2000-06-12 Ben Wing <ben@xemacs.org>
2979 * console-msw.c (mswindows_get_console_hwnd):
2980 * console-msw.c (mswindows_ensure_console_allocated):
2981 * console-msw.c (mswindows_hide_console):
2982 * console-msw.c (mswindows_show_console):
2983 * console-msw.c (mswindows_ensure_console_buffered):
2984 * console-msw.c (mswindows_output_console_string):
2985 * console-msw.c (mswindows_windows9x_p):
2987 * device-msw.c (mswindows_get_workspace_coords):
2988 * device-msw.c (mswindows_device_system_metrics):
2989 * dialog-msw.c (mswindows_popup_dialog_box):
2990 * event-msw.c (mswindows_wnd_proc):
2991 * frame-msw.c (mswindows_size_frame_internal):
2992 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
2993 * menubar-msw.c (displayable_menu_item):
2994 * menubar-msw.c (mswindows_char_is_accelerator):
2996 * nt.c (mswindows_sigset):
2997 * nt.c (mswindows_sigrelse):
2998 * nt.c (mswindows_sigpause):
2999 * nt.c (mswindows_raise):
3000 * nt.c (timer_proc):
3002 * ntproc.c (find_child_console):
3003 * ntproc.c (sys_kill):
3005 * print.c (std_handle_out_external):
3006 * process-nt.c (find_child_console):
3007 * process-nt.c (send_signal_the_95_way):
3008 * process-nt.c (ensure_console_window_exists):
3009 * process-nt.c (nt_create_process):
3011 rename msw_ to mswindows_ for consistency with general convention.
3015 include nt.h, not syswindows.h.
3017 * nt.c (mswindows_fstat):
3018 * nt.c (mswindows_stat):
3019 prefix mswindows_ instead of attempting to directly override the
3020 library functions. fix declarations.
3023 include syswindows.h. move some sysdep.h stuff here.
3026 include syswindows.h, not <windows.h>.
3034 * sysdep.c (sys_fstat):
3035 * sysdep.c (sys_stat):
3036 call mswindows versions when appropriate.
3039 move mswin decls to nt.h.
3042 add long comment describing appropriate use of the various windows
3045 2000-06-11 Ben Wing <ben@xemacs.org>
3047 * device-x.c: Correct doc string for sixth arg of x-get-resource.
3049 2000-06-10 Ben Wing <ben@xemacs.org>
3051 * Makefile.in.in (release):
3052 Correction to make sure xemacs.exe always dumped when correct.
3056 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
3058 * buffer.c (set_buffer_internal):
3059 [[[[2]]]]: Remove HAVE_FEP code.
3061 * buffer.c (init_initial_directory):
3065 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
3069 * callproc.c (call_process_cleanup):
3070 * callproc.c (Fold_call_process_internal):
3071 * callproc.c (child_setup):
3072 * callproc.c (getenv_internal):
3073 * callproc.c (init_callproc):
3074 * callproc.c (vars_of_callproc):
3075 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
3076 __CYGWIN32__ -> CYGWIN.
3077 DOS_NT -> WIN32_NATIVE.
3078 Remove MSDOS support/references, converting to WIN32_NATIVE
3080 __MINGW32__ -> MINGW.
3081 Fix windows.h includes.
3082 Remove bogus HAVE_NTGUI.
3088 mswindows_message_outputted added for use in allowing startup
3089 errors on the console to be seen.
3091 * console-msw.c (msw_ensure_console_allocated):
3092 * console-msw.c (msw_output_console_string):
3093 * console-msw.c (DHEADER):
3094 * console-msw.c (DOPAQUE_DATA):
3095 * console-msw.c (DEVENT):
3096 * console-msw.c (DCONS):
3097 * console-msw.c (DCONSCDR):
3098 * console-msw.c (DSTRING):
3099 * console-msw.c (DVECTOR):
3100 * console-msw.c (DSYMBOL):
3101 * console-msw.c (DSYMNAME):
3104 * console-stream.c (stream_init_console):
3105 Fix text/binary problems.
3108 * device-msw.c (mswindows_finish_init_device):
3109 * device-msw.c (mswindows_delete_device):
3112 * device.c (handle_asynch_device_change):
3116 * dgif_lib.c (DGifOpenFileName):
3117 * dgif_lib.c (DGifOpenFileHandle):
3118 * dgif_lib.c (DGifGetLine):
3119 * dgif_lib.c (DGifGetPixel):
3120 Added config.h/lisp.h, fix up includes.
3127 * dired.c (file_name_completion):
3128 * dired.c (Ffile_attributes):
3129 * dired.c (syms_of_dired):
3133 * dumper.c (pdump_file_unmap):
3134 * dumper.c (pdump_load):
3138 * editfns.c (Ftemp_directory):
3139 * editfns.c (user_login_name):
3140 * editfns.c (Fuser_real_login_name):
3141 * editfns.c (get_home_directory):
3144 * elhash.c (finish_marking_weak_hash_tables):
3145 [[[[5]]]]: Fix GCC warnings.
3148 * emacs.c (mswindows_handle_hardware_exceptions):
3149 * emacs.c (make_arg_list_1):
3151 * emacs.c (Fkill_emacs):
3152 * emacs.c (Fdump_emacs):
3154 Fix problems with nested crashes, add long comment.
3156 * event-Xt.c (init_event_Xt_late):
3160 * event-msw.c (mswindows_dde_callback):
3161 * event-msw.c (mswindows_handle_sticky_modifiers):
3162 * event-msw.c (mswindows_wnd_proc):
3166 * events.c (character_to_event):
3170 * fileio.c (Ffile_name_directory):
3171 * fileio.c (Ffile_name_nondirectory):
3172 * fileio.c (directory_file_name):
3173 * fileio.c (Fexpand_file_name):
3174 * fileio.c (Fsubstitute_in_file_name):
3175 * fileio.c (Ffile_name_absolute_p):
3176 * fileio.c (check_executable):
3177 * fileio.c (Ffile_readable_p):
3178 * fileio.c (Ffile_accessible_directory_p):
3179 * fileio.c (Ffile_modes):
3180 * fileio.c (Funix_sync):
3181 * fileio.c (vars_of_fileio):
3184 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
3186 Expand getdefdir defn.
3187 Fix bogus rename() comment.
3189 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
3190 to use standard XEmacs include files, e.g. sysfile.h, rather
3191 than system-specific includes.
3197 * frame.c (vars_of_frame):
3201 * getloadavg.c (getloadavg):
3203 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
3204 (We don't use it elsewhere in the code; just add a comment.)
3211 * glyphs-msw.c (mswindows_resource_instantiate):
3214 * glyphs-x.c (x_native_layout_instantiate):
3217 * gui-msw.c (Fmswindows_shell_execute):
3226 * lread.c (locate_file_in_directory_mapper):
3233 * mem-limits.h (get_lim_data):
3245 * nt.c (rva_to_section):
3246 * nt.c (mswindows_executable_type):
3248 Fix closedir() defn.
3251 [[[[8]]]]: *_OK defs moved to sysfile.h.
3260 * print.c (std_handle_out_external):
3264 * process-nt.c (nt_create_process):
3266 try to fix process quoting somewhat.
3268 * process-unix.c (unix_create_process):
3272 * process.c (vars_of_process):
3279 * realpath.c (xrealpath):
3282 * redisplay-tty.c (init_tty_for_redisplay):
3292 * sheap.c (more_static_core):
3293 * sheap.c (report_sheap_usage):
3297 * signal.c (alarm_signal):
3304 * strftime.c (zone_name):
3307 * symsinit.h (init_sunpro):
3311 commctrl.h not in Cygwin b20.1.
3315 * sysdep.c (sys_subshell):
3316 * sysdep.c (init_baud_rate):
3317 * sysdep.c (emacs_get_tty):
3318 * sysdep.c (emacs_set_tty):
3319 * sysdep.c (tty_init_sys_modes_on_device):
3320 * sysdep.c (init_system_name):
3321 * sysdep.c (sys_open):
3322 * sysdep.c (interruptible_open):
3323 * sysdep.c (sys_fopen):
3324 * sysdep.c (sys_mkdir):
3325 * sysdep.c (sys_rename):
3326 * sysdep.c (get_process_times_1):
3333 * sysdir.h (DIRENTRY_NONEMPTY):
3336 * sysdll.c (dll_init):
3342 added text/binary defs.
3348 * sysproc.h (EDESTADDRREQ):
3349 * sysproc.h (poll_fds_for_input):
3366 Always define WIN32_LEAN_AND_MEAN.
3368 * unexcw.c (unexec):
3372 * unexec.c (copy_text_and_data):
3373 * unexec.c (adjust_lnnoptrs):
3377 * unexnt.c (_start):
3380 2000-06-07 Ben Wing <ben@xemacs.org>
3382 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
3383 was used only as a model. We've long since extracted any useful
3384 logic or code out of this. (I just did an exhaustive search.)
3386 * s\msdos.h: Removed.
3388 * s\windows95.h: Removed.
3390 2000-06-10 Ben Wing <ben@xemacs.org>
3394 Don't use extern with fun defs.
3398 Remove nt\inc include.
3399 Remove getdisk, getdefdir. (The former is unused, the latter
3400 expanded in fileio.h.)
3403 * s\windowsnt.h (WIN32_NATIVE):
3404 * s\windowsnt.h (HAVE_STRCASECMP):
3406 Add long comment about preprocessor changes.
3407 Remove getdisk, getdefdir. (The former is unused, the latter
3408 expanded in fileio.h.)
3410 2000-06-10 Ben Wing <ben@xemacs.org>
3419 Remove bogus/unused NO_SOCK_SIGIO.
3421 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
3423 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
3426 2000-06-04 Mike Sperber <mike@xemacs.org>
3428 * casetab.c (set_case_table): For `set-standard-case-table',
3429 actually deposit the new case tables where the rest of XEmacs can
3432 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
3434 * data.c (Faset): Don't cast XCHAR() to unsigned char.
3436 2000-06-05 Ben Wing <ben@xemacs.org>
3438 * callproc.c (child_setup): Don't do close_load_descs() under
3439 MS Windows. Put in a comment explaining why.
3441 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
3443 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
3444 Toolkit shell" which breaks `kill-compilation' on Windows NT
3445 native, retaining STDERR handling improvements.
3447 2000-06-01 Andreas Jaeger <aj@suse.de>
3449 * s/s390.h: Support for S390, based on a patch by Martin
3450 Schwidefsky <schwidefsky@de.ibm.com>.
3452 2000-05-30 Andy Piper <andy@xemacs.org>
3454 * window.c (allocate_window):
3455 (make_dummy_parent):
3456 (Fset_window_configuration): use new hashtable type.
3458 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
3459 (struct image_instantiator_methods):
3460 (struct Lisp_Image_Instance): make instance geometry signed.
3462 * glyphs.c (instantiate_image_instantiator):
3463 (image_instance_query_geometry):
3464 (image_instance_layout):
3465 (image_instance_layout):
3466 (query_string_geometry):
3467 (text_query_geometry):
3468 (image_instantiate):
3469 (image_instantiate):
3470 (cache_subwindow_instance_in_frame_maybe):
3471 (subwindow_query_geometry): make instance geometry signed.
3473 * glyphs-widget.c (widget_query_geometry):
3475 (button_query_geometry):
3476 (tree_view_query_geometry):
3477 (tab_control_query_geometry):
3478 (layout_query_geometry):
3480 (native_layout_layout): make instance geometry signed.
3482 2000-05-29 Olivier Galibert <galibert@pobox.com>
3484 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
3487 * general.c (syms_of_general): Add Qfull_assoc symbol.
3489 * data.c (finish_marking_weak_lists): Mark full-assoc lists
3491 (decode_weak_list_type): Decode full-assoc type.
3492 (encode_weak_list_type): Encode full-assoc type.
3493 (Fmake_weak_list): Update doc string.
3495 2000-05-30 Andy Piper <andy@xemacs.org>
3497 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
3499 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
3500 (decode_hash_table_weakness): ditto.
3501 (Fhash_table_weakness): ditto.
3502 (Fhash_table_type): ditto.
3503 (finish_marking_weak_hash_tables): ditto.
3504 (hash_table_weakness_validate): ditto.
3505 (syms_of_elhash): ditto.
3507 2000-05-28 Martin Buchholz <martin@xemacs.org>
3509 * XEmacs 21.2.34 is released.
3511 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
3513 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
3515 (updating_line_start_cache): Gone.
3516 (regenerate_window): Replace resetting of VERTICAL_CLIP by
3517 generic code to force a minimum of 1 line laid out in the
3520 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
3522 * glyphs.c (instantiate_image_instantiator): Check for initialized
3523 height & width no longer special cases IMAGE_NOTHING.
3524 (nothing_instantiate): Set height and width of instance.
3526 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
3528 * unexelf.c (unexec): Search for ".data" section.
3529 Initialize new_data2_offset from old_data_index.
3530 Remove redundant check for ElfW.
3532 2000-05-23 Andy Piper <andy@xemacs.org>
3534 * glyphs.c (get_image_instantiator_governing_domain): allow more
3535 specific domains as the governing domain rather than expecting an
3536 exact match. This fixes problems with layouts.
3538 2000-05-22 Andy Piper <andy@xemacs.org>
3540 * redisplay-output.c (compare_runes): check for non-images
3542 * glyphs.c (set_glyph_dirty_p): ditto.
3543 (update_glyph_cachel_data): ditto.
3545 * glyphs-widget.c (layout_post_instantiate): ditto.
3546 (layout_post_instantiate): ditto.
3548 * event-msw.c (mswindows_wnd_proc): warning removal.
3550 2000-05-12 Craig Lanning <CraigL@DyCon.com>
3552 * s\mingw32.h: Added #undef for CLASH_DETECTION.
3554 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
3556 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
3558 * nt.c (rva_to_section): mingw32 needs rva_to_section.
3559 (mswindows_executable_type): mingw32 now has enough headers for
3562 2000-05-20 Andy Piper <andy@xemacs.org>
3564 * console-msw.c (mswindows_output_last_error): ; -> ,
3566 2000-05-12 Andy Piper <andy@xemacs.org>
3568 * console-msw.c (FROB): compare ints with ints.
3570 2000-05-11 Andy Piper <andy@xemacs.org>
3572 * glyphs-x.c (x_finalize_image_instance): make minimal build
3575 2000-05-20 Ben Wing <ben@xemacs.org>
3578 * event-Xt.c (vars_of_event_Xt):
3579 move modifier-keys-are-sticky to event-stream.c.
3582 * event-msw.c (mswindows_enqueue_mouse_button_event):
3583 * event-msw.c (key_needs_default_processing_p):
3584 * event-msw.c (XEMSW_LCONTROL):
3585 * event-msw.c (mswindows_handle_sticky_modifiers):
3586 * event-msw.c (FROB):
3587 * event-msw.c (clear_sticky_modifiers):
3588 * event-msw.c (output_modifier_keyboard_state):
3589 * event-msw.c (output_alt_keyboard_state):
3590 * event-msw.c (mswindows_wnd_proc):
3591 * event-msw.c (mswindows_modifier_state):
3592 * event-msw.c (emacs_mswindows_handle_magic_event):
3593 implement sticky modifiers.
3596 * event-stream.c (vars_of_event_stream):
3597 move modifier-keys-are-sticky here.
3603 implement map-range-table.
3606 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
3608 * redisplay-tty.c (reset_tty_modes):
3609 (tty_redisplay_shutdown): Adjust argument type to
3610 tty_frame_output_end.
3612 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
3614 * eval.c (Fbacktrace): Don't output a line with only right
3617 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
3619 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
3620 (Fpq_reset_poll): Ditto.
3622 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
3624 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
3626 2000-05-16 Ben Wing <ben@xemacs.org>
3629 * buffer.c (dfc_convert_to/from_internal_format):
3630 * buffer.c (reinit_vars_of_buffer):
3631 Fix conversion functions to allow reentrancy.
3634 * console-msw.c (mswindows_output_last_error):
3635 New fun, generally useful -- output a human-readable
3636 version of GetLastError() on the console.
3639 * console-msw.h (struct mswindows_frame):
3640 Changes for DeferWindowPos. Declare mswindows_output_last_error().
3642 * console-stream.c (stream_output_begin):
3643 * console-stream.c (stream_output_end):
3644 * console-stream.c (stream_output_vertical_divider):
3645 * console-stream.c (stream_clear_region):
3646 * console-stream.c (stream_flash):
3647 * console-stream.c (console_type_create_stream):
3648 Delete blank stream methods, not needed.
3650 * console.h (struct console_methods):
3651 Split begin/end methods into window and frame.
3654 * event-msw.c (mswindows_handle_paint):
3655 * event-msw.c (output_alt_keyboard_state):
3656 * event-msw.c (mswindows_wnd_proc):
3657 * event-msw.c (vars_of_event_mswindows):
3658 Comment about problems with ignored-expose.
3659 Define mswindows-debug-events; not really implemented.
3661 * frame-msw.c (mswindows_init_frame_1):
3665 * glyphs-msw.c (begin_defer_window_pos):
3666 * glyphs-msw.c (mswindows_unmap_subwindow):
3667 * glyphs-msw.c (mswindows_map_subwindow):
3668 * glyphs-msw.c (mswindows_resize_subwindow):
3669 Use DeferWindowPos to reduce flashing when mapping/unmapping.
3671 * glyphs.c (make_image_instance_1):
3674 * gutter.c (Fredisplay_gutter_area):
3675 Use new begin/end methods.
3677 * lisp.h (Dynarr_new2):
3681 * redisplay-msw.c (mswindows_frame_output_begin):
3682 * redisplay-msw.c (mswindows_frame_output_end):
3683 * redisplay-msw.c (console_type_create_redisplay_mswindows):
3684 New begin/end methods -- handle DeferWindowPos.
3686 * redisplay-output.c (redisplay_move_cursor):
3687 * redisplay-output.c (redraw_cursor_in_window):
3688 * redisplay-output.c (redisplay_update_line):
3689 * redisplay-output.c (redisplay_output_window):
3690 New begin/end methods.
3693 * redisplay-tty.c (tty_frame_output_begin):
3694 * redisplay-tty.c (tty_frame_output_end):
3695 * redisplay-tty.c (console_type_create_redisplay_tty):
3696 New begin/end methods.
3699 * redisplay-x.c (x_window_output_begin):
3700 * redisplay-x.c (x_window_output_end):
3701 * redisplay-x.c (console_type_create_redisplay_x):
3702 New begin/end methods.
3704 * redisplay.c (redisplay_frame):
3705 * redisplay.c (Fredisplay_echo_area):
3706 New begin/end methods.
3707 use MAYBE_DEVMETH for clear_frame; it may not exist.
3709 * window.h (WINDOW_XFRAME):
3710 WINDOW_XFOO macros -- get locale and decode struct pointer.
3713 2000-05-12 Ben Wing <ben@xemacs.org>
3716 * emacs.c (ensure_no_quitting_from_now_on):
3717 * emacs.c (fatal_error_signal):
3718 * emacs.c (mswindows_handle_hardware_exceptions):
3720 * emacs.c (Fkill_emacs):
3721 * emacs.c (shut_down_emacs):
3722 * emacs.c (assert_failed):
3723 various improvements in fatal error handling.
3726 move preparing_for_armageddon to emacs.c.
3729 declare fatal_error_in_progress.
3732 * print.c (std_handle_out_external):
3733 * print.c (std_handle_out_va):
3734 * print.c (stderr_out):
3735 * print.c (stdout_out):
3736 use console under mswin when no standard output.
3737 don't do code conversion during fatal error.
3739 * scrollbar.c (Fscrollbar_page_up):
3740 * scrollbar.c (Fscrollbar_page_down):
3741 fix missing else. reindent.
3743 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
3747 * glyphs.h (GLYPH_CACHEL_DESCENT):
3748 (GLYPH_CACHEL_DESCENT):
3749 (GLYPH_CACHEL_DESCENT):
3750 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
3751 used in case these are inline functions.
3752 Use more absurd values to error check.
3754 include window.h for error check functions.
3756 2000-05-11 Ben Wing <ben@xemacs.org>
3758 * cmdloop.c (Freally_early_error_handler):
3759 Display message box under windows; otherwise, message will disappear
3760 before it can be viewed.
3763 * console-msw.c (Fmswindows_message_box):
3764 * console-msw.c (FROB):
3765 * console-msw.c (syms_of_console_mswindows):
3766 Define new fun `mswindows-message-box'.
3767 #### I will merge this into `popup-dialog-box'; just give me
3771 * general.c (syms_of_general):
3772 Some new symbols used in `mswindows-message-box'.
3775 * glyphs.c (Fset_image_instance_property):
3776 put warning in this fun.
3779 * glyphs.h (GLYPH_CACHEL_WIDTH):
3780 * glyphs.h (GLYPH_CACHEL_ASCENT):
3781 * glyphs.h (GLYPH_CACHEL):
3782 * glyphs.h (GLYPH_CACHEL_GLYPH):
3783 define error-checking versions to try to catch a bug i've seen --
3784 redisplay gets in an infinite loop because the glyph width of the
3785 continuation glyph is 65535.
3788 Extern message-box stuff.
3790 * window.c (allocate_window):
3791 * window.c (make_dummy_parent):
3792 * window.c (Fset_window_configuration):
3793 Use EQUAL not EQ for subwindow caches to make them work a bit
3794 better. (Something is still very broken.)
3797 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
3799 * glyphs.c (image_instantiate): Suppress gcc warnings.
3800 (Fmake_image_instance): Fix doc string.
3801 * specifier.c (Fmake_specifier): Ditto.
3803 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
3805 * paths.h.in (PATH_LOCK): Removed.
3806 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
3807 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
3809 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
3811 * fns.c (Ffeaturep): Update e-mail address in doc-string.
3812 Document (featurep '(and xemacs 21.02)).
3814 2000-05-09 Ben Wing <ben@xemacs.org>
3816 * buffer.c (complex_vars_of_buffer):
3817 update modeline-format doc.
3820 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
3823 timeline of all released versions of Emacs, for use in creating
3824 authorship comments and in synching up.
3826 * glyphs-widget.c (image_instantiator_buttons):
3827 * glyphs-widget.c (image_instantiator_edit_fields):
3828 * glyphs-widget.c (image_instantiator_combo_box):
3829 * glyphs-widget.c (image_instantiator_scrollbar):
3830 * glyphs-widget.c (image_instantiator_progress_guage):
3831 * glyphs-widget.c (image_instantiator_tree_view):
3832 * glyphs-widget.c (image_instantiator_tab_control):
3833 * glyphs-widget.c (image_instantiator_labels):
3834 * glyphs-widget.c (image_instantiator_layout):
3835 * glyphs-widget.c (image_instantiator_native_layout):
3836 rename decode_domain method to governing_domain.
3839 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
3840 * glyphs.c (add_entry_to_device_ii_format_list):
3841 make sure we don't put an entry more than once into the list.
3842 * glyphs.c (check_instance_cache_mapper):
3843 *************************************************************
3844 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
3846 *************************************************************
3847 * glyphs.c (get_image_instantiator_governing_domain):
3848 clean up, expand on new concept of governing domain.
3849 * glyphs.c (instantiate_image_instantiator):
3850 * glyphs.c (allocate_image_instance):
3851 use governing_domain instead of cache_domain in naming.
3852 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
3853 * glyphs.c (make_image_instance_1):
3854 * glyphs.c (Fmake_image_instance):
3855 allow for any domain (not just device), and process the
3856 governing domain correctly. very big doc fix.
3857 * glyphs.c (Fimage_instance_domain):
3858 new primitive, to retrieve the governing domain of an image instance.
3859 * glyphs.c (image_instantiate):
3860 use new governing_domain stuff. this fixes a crash you could get
3861 by instantiating certain widget glyphs in frame locales. (should
3862 signal an error instead of crashing.)
3863 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
3864 * glyphs.c (Fglyphp): clean up doc.
3865 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
3866 * glyphs.c (syms_of_glyphs):
3867 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
3868 * glyphs.c (image_instantiator_format_create): add some comments about
3870 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
3871 for current-display-table. (Apparently Hrjove implemented in 1998 a
3872 design I wrote up in 1996, but didn't update the doc string.)
3874 * glyphs.h: clean up a doc string.
3875 * glyphs.h (governing_domain):
3876 * glyphs.h (struct image_instantiator_methods):
3877 changes for governing_domain stuff.
3880 * gutter.c (Fgutter_specifier_p):
3881 * gutter.c (Fgutter_size_specifier_p):
3882 * gutter.c (Fgutter_visible_specifier_p):
3884 * objects.c (Fcolor_specifier_p):
3885 * objects.c (Ffont_specifier_p):
3886 * objects.c (Fface_boolean_specifier_p):
3887 doc strings moved to make-*-specifier.
3889 * redisplay.c (add_disp_table_entry_runes_1):
3890 * redisplay.c (generate_fstring_runes):
3891 * redisplay.c (screen):
3892 add random comments and doc strings.
3895 * specifier.c (Fmake_specifier):
3896 major overhaul of this doc string.
3898 * specifier.c (Fvalid_specifier_domain_p):
3899 comment about the bogosity of image instances being domains.
3900 * specifier.c (decode_domain):
3901 now non-static, used in glyphs.c.
3902 * specifier.c (specifier_instance):
3903 comment about the bogosity of image instances being domains.
3904 * specifier.c (Fgeneric_specifier_p):
3905 move doc string to make-generic-specifier.
3906 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
3910 * specifier.h (DOMAIN_FRAME):
3911 * specifier.h (DOMAIN_LIVE_P):
3912 * specifier.h (DOMAIN_XDEVICE):
3914 add comments about problems with these macros.
3915 prototype for decode_domain.
3918 * toolbar.c (Ftoolbar_specifier_p):
3919 move doc string to `make-toolbar-specifier'.
3921 * window.c (window_unmap_subwindows_cache_mapper):
3922 *************************************************************
3923 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
3925 *************************************************************
3927 2000-05-09 Andy Piper <andy@xemacs.org>
3929 * glyphs.h: declare reset_frame_subwindow_instance_cache.
3931 * window.c (Fset_window_configuration): reset the frame subwindow
3932 cache and re-initialize the window subwindow caches.
3934 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
3936 2000-05-09 Ben Wing <ben@xemacs.org>
3938 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
3941 2000-04-26 Mike Woolley <mike@bulsara.com>
3943 * ntheap.c: Changed recreate_heap to limit the amount reserved
3944 for the heap to that which is actually available. Also now
3945 displays a message box (with some dignostics) in the event that
3946 it still can't start.
3948 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
3950 * callproc.c (Fold_call_process_internal): GCPRO path
3952 2000-05-08 Jan Vroonhof <jan@xemacs.org>
3954 Patch by Bill Perry.
3956 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
3957 back data instead of #ifdef.
3958 (Fscrollbar_page_down): ditto.
3960 2000-05-07 Ben Wing <ben@xemacs.org>
3963 Kludge for defining Qmswindows_tstr.
3966 * nt.c (open_input_file):
3967 * nt.c (open_output_file):
3968 * nt.c (rva_to_section):
3969 * nt.c (mswindows_executable_type):
3970 Move all memory-mapped-file routines here (some were in unexnt.c,
3971 which is bad because they are used by process-nt.c, and unexnt
3972 won't be around when portable dumping). Synched the above routines
3976 Removed ifdef'd out bogus code.
3977 Fixed some prototypes.
3980 * nt.h (OFFSET_TO_RVA):
3981 * nt.h (RVA_TO_OFFSET):
3982 * nt.h (RVA_TO_PTR):
3983 Moved the memory-mapped-file structures, macros and prototypes
3984 here, to parallel nt.c. ntheap.h should really be removed
3985 entirely, and it's a non-portable-dumper specific file.
3987 * ntheap.h (round_to_next):
3988 Moved the memory-mapped-file structures, macros and prototypes
3991 * ntproc.c (compare_env):
3992 Moved rva_to_section and mswindows_executable_type to nt.c.
3993 Moved compare_env to process-nt.c.
3994 ntproc.c will die, one day.
3996 * ntproc.c (sys_spawnve):
3997 Account for win32_ -> mswindows_.
4000 * process-nt.c (struct nt_process_data):
4001 * process-nt.c (ensure_console_window_exists):
4002 * process-nt.c (compare_env):
4003 * process-nt.c (nt_create_process):
4004 * process-nt.c (nt_kill_process_by_pid):
4005 * process-nt.c (syms_of_process_nt):
4006 * process-nt.c (vars_of_process_nt):
4007 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
4008 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
4009 changes). Eliminate our old `nt-quote-process-args' mechanism.
4010 Synch up nt_create_process with FSF 20.6 sys_spawnve.
4011 Move compare_env here from ntproc.c.
4013 * process.c (Fprocess_send_region):
4014 Takes an optional fourth argument, BUFFER, which should fix some
4015 problems with call-process.
4018 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
4021 Move ICC_BAR_CLASSES to syscommctrl.h.
4022 Add preliminary macros for MSWindows/Mule. More to come.
4025 * unexnt.c (unexec):
4026 open_output_file moved to nt.c.
4029 2000-05-05 Andy Piper <andy@xemacs.org>
4031 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
4032 instance from the frame cache also since GC may catch up too late
4033 to make frame deletion sane.
4035 2000-05-04 Andy Piper <andy@xemacs.org>
4037 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
4038 (x_finalize_image_instance): ungcpro on deletion.
4040 * glyphs.c (image_instantiator_format_create): give pointers a
4041 query geometry method so that the geometry is at least set.
4043 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
4044 initialize layouts if using widgets.
4046 2000-05-03 Andy Piper <andy@xemacs.org>
4048 * nt.c: remove bogus reference to sysmmsystem.h
4050 * gui-x.c (popup_selection_callback): fix no selection abort.
4052 2000-05-02 Andy Piper <andy@xemacs.org>
4054 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
4055 (mswindows_widget_instantiate): ditto.
4057 * glyphs-widget.c (initialize_widget_image_instance): initialize
4059 (widget_instantiate): cope with children and items in the same
4062 * glyphs.c (mark_image_instance): cope with children as a first
4064 (image_instance_equal): ditto.
4065 (image_instance_hash): ditto.
4066 (image_instance_changed): ditto.
4068 2000-04-30 Andy Piper <andy@xemacs.org>
4070 * glyphs.c (subwindow_query_geometry): new function. Return some
4072 (subwindow_instantiate): don't assign dimensions if none have been
4074 (image_instantiator_format_create): add subwindow_query_geometry.
4075 (print_image_instance): cope with layouts as widgets.
4077 2000-04-29 Andy Piper <andy@xemacs.org>
4079 * frame.c (delete_frame_internal): call
4080 free_frame_subwindow_instance_cache so that all subwindows are
4081 finalized before their parent.
4082 (mark_frame): remove subwindow_cachels.
4083 (Fmake_frame): remove subwindow_cachel manipulation.
4084 (allocate_frame_core): subwindow_instance_cache is a weak list.
4085 (delete_frame_internal): set subwindow_instance_cache to nil.
4087 * glyphs-msw.c (mswindows_finalize_image_instance): make double
4089 (mswindows_finalize_image_instance): use the device
4090 not the domain as the domain may have died already.
4092 * glyphs-x.c (x_finalize_image_instance): ditto.
4093 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
4096 * redisplay-output.c (redisplay_unmap_subwindows): update for
4097 subwindow instance cache as a weak list.
4098 (redisplay_unmap_subwindows_maybe): ditto.
4099 (redisplay_unmap_subwindows_except_us): ditto.
4101 * glyphs.c (unmap_subwindow): error checking will check the domain
4102 so don't deal with it here. Don't use cachels anymore.
4103 (map_subwindow): ditto.
4104 (update_subwindow_cachel_data): remove old accessor names.
4105 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
4106 (Fresize_subwindow): don't update cachel.
4107 (mark_subwindow_cachels):
4108 (update_subwindow_cachel_data):
4109 (add_subwindow_cachel):
4110 (get_subwindow_cachel_index):
4111 (update_subwindow_cachel):
4112 (reset_subwindow_cachels):
4113 (mark_subwindow_cachels_as_not_updated): deleted.
4114 (cache_subwindow_instance_in_frame_maybe): new function. Add a
4115 subwindow instance to the frame cache.
4116 (find_matching_subwindow): update for subwindow instance cache as
4118 (update_widget_instances): ditto.
4119 (image_instance_type_to_mask):inlined.
4120 (free_frame_subwindow_instance_cache): new function. finalize all
4121 subwindows that are instantiated.
4123 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
4124 of cachel information.
4125 (IMAGE_INSTANCE_DISPLAY_X):
4126 (IMAGE_INSTANCE_DISPLAY_Y):
4127 (IMAGE_INSTANCE_DISPLAY_WIDTH):
4128 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
4129 (XIMAGE_INSTANCE_DISPLAY_X):
4130 (XIMAGE_INSTANCE_DISPLAY_Y):
4131 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
4132 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
4133 remove subwindow_cachel structure and function references.
4134 (image_instance_type_to_mask): inline from glyphs.c
4136 * redisplay.c (redisplay_frame): remove subwindow_cachel
4139 * frame.h (struct frame): remove subwindow_cachels.
4140 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
4142 * frameslots.h: add subwindow_instance_cache.
4144 * window.c (replace_window): check subwindow cache of replacement.
4145 (window_unmap_subwindows_cache_mapper):
4146 (window_unmap_subwindows): new functions. Unmap all subwindows
4147 cached on this window.
4148 (mark_window_as_deleted): unmap all subwindows.
4150 2000-04-27 Andy Piper <andy@xemacs.org>
4152 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
4154 * glyphs-widget.c (widget_layout): return something.
4155 (layout_layout): return something. Fail if not intialized.
4156 (layout_query_geometry): ditto.
4157 (image_instantiator_native_layout): new function. Initialized the
4159 (widget_instantiate): don't do layout stuff here.
4161 * glyphs.c (instantiate_image_instantiator): reorded calling or
4162 instantiate and post_instantiate with layout in between.
4163 (image_instance_layout): be more selective about deciding whether
4164 the layout has been done or not.
4166 * glyphs.h (struct image_instantiator_methods): return a value
4169 2000-04-26 Andy Piper <andy@xemacs.org>
4171 * glyphs.c (allocate_image_instance): make initial width and
4172 height unspecified. Set initialized to 0.
4174 * syscommctrl.h new file. Encapsulates commctrl.h.
4176 * syswindows.h new file. Encapsulates windows.h.
4178 * ntplay.c: use new syswindows.h and syscommctrl.h header.
4180 * console-msw.h: ditto.
4182 * redisplay-tty.c (tty_output_display_block): remove layout references.
4184 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
4185 window handle rather than just the frame.
4187 * glyphs.c (mark_image_instance): remove layout references.
4188 (print_image_instance): ditto.
4189 (image_instance_equal): ditto.
4190 (image_instance_hash): ditto.
4191 (decode_image_instance_type): ditto.
4192 (encode_image_instance_type): ditto.
4193 (image_instantiate): ditto.
4194 (allocate_glyph): ditto.
4195 (Fimage_instance_height): ditto.
4196 (Fimage_instance_width): ditto.
4197 (update_subwindow): ditto.
4199 * redisplay-x.c (x_output_display_block): recode for layouts as
4202 * redisplay-output.c (redisplay_output_layout): recode for layouts
4204 (compare_runes): remove layout references.
4206 * redisplay-msw.c (mswindows_output_display_block): recode for
4209 * glyphs-widget.c (image_instantiator_layout): remove
4210 layout_possible_dest_types.
4211 (layout_possible_dest_types): deleted.
4213 * glyphs.h (image_instance_type): remove layout references.
4214 (struct Lisp_Image_Instance): ditto. Add initialized flag.
4215 (IMAGE_INSTANCE_INITIALIZED): new accessor.
4216 (XIMAGE_INSTANCE_INITIALIZED): ditto.
4218 2000-04-25 Andy Piper <andy@xemacs.org>
4220 * glyphs-widget.c (image_instantiator_buttons):
4221 (image_instantiator_edit_fields):
4222 (image_instantiator_combo_box):
4223 (image_instantiator_scrollbar):
4224 (image_instantiator_progress_guage):
4225 (image_instantiator_tree_view):
4226 (image_instantiator_tab_control):
4227 (image_instantiator_labels):
4228 (image_instantiator_layout): call default post_instantiate method.
4229 (widget_post_instantiate): new function. Simply lays out the
4232 * glyphs.h (struct image_instantiator_methods): add
4233 post_instantiate method.
4235 * glyphs.c (instantiate_image_instantiator): add post_instantiate
4238 2000-04-23 Andy Piper <andy@xemacs.org>
4240 * glyphs.h (struct image_instantiator_methods): add
4241 decode_domain_method.
4242 (struct Lisp_Image_Instance): remove subwindow frame - it can be
4243 derived from the domain.
4244 (IMAGE_INSTANCE_FRAME): new accessor.
4245 (XIMAGE_INSTANCE_FRAME): ditto.
4247 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
4248 instead of _SUBWINDOW_FRAME.
4249 (finalize_image_instance): ditto.
4250 (Fimage_instance_foreground): ditto.
4251 (Fimage_instance_background): ditto.
4252 (image_instantiate): ditto.
4253 (update_subwindow_cachel): ditto.
4254 (update_subwindow): ditto.
4255 (unmap_subwindow): ditto.
4256 (map_subwindow): ditto
4257 (subwindow_instantiate): ditto.
4258 * glyphs-msw.c (mswindows_update_widget): ditto.
4259 (mswindows_progress_gauge_instantiate): ditto.
4260 (mswindows_tab_control_update): ditto.
4261 * glyphs-x.c (x_update_widget): ditto.
4262 (x_widget_instantiate): ditto.
4263 (x_tab_control_instantiate): ditto.
4264 (x_tab_control_update): ditto.
4265 * event-msw.c (mswindows_wnd_proc): ditto
4267 * glyphs-widget.c (image_instantiator_layout): use
4268 subwindow_decode_domain.
4269 (image_instantiator_buttons): ditto.
4270 (image_instantiator_edit_fields): ditto.
4271 (image_instantiator_combo_box): ditto.
4272 (image_instantiator_scrollbar): ditto.
4273 (image_instantiator_progress_guage): ditto.
4274 (image_instantiator_tree_view): ditto.
4275 (image_instantiator_tab_control): ditto.
4276 (image_instantiator_labels): ditto.
4277 (image_instantiator_layout): ditto.
4279 * glyphs.c: add instance error checking to many functions.
4280 (instantiate_image_instantiator): decode device from cache_domain.
4281 (image_instantiate): partially rewrite by using
4282 decode_image_instantiator_domain to determine what domain the
4283 instance needs to be cached in.
4284 (decode_image_instantiator_domain): new function. Determine what
4285 domain the image needs to be cached in.
4286 (check_window_subwindow_cache): new error checking function.
4287 (check_instance_cache_mapper): ditto.
4288 (check_image_instance_structure): ditto.
4289 (subwindow_decode_domain): new function. Encodes a window as a
4290 subwindow's cache domain.
4291 (image_instantiator_format_create): use it for text and
4294 2000-04-21 Andy Piper <andy@xemacs.org>
4296 * glyphs.c (image_instance_device): new function.
4297 (image_instance_frame): new function.
4298 (image_instance_window): new function.
4299 (image_instance_live_p): new function.
4301 * window.c (mark_window_as_deleted): reset the subwindow_instance_
4304 * glyphs.h (struct Lisp_Image_Instance): device->domain.
4305 (IMAGE_INSTANCE_DOMAIN): new accessor.
4306 (XIMAGE_INSTANCE_DOMAIN): ditto.
4308 * glyphs-x.c (x_finalize_image_instance): device->domain.
4310 * glyphs-msw.c (init_image_instance_geometry): device->domain.
4311 (mswindows_finalize_image_instance): ditto.
4313 * glyphs-eimage.c (jpeg_instantiate): device->domain.
4314 (gif_instantiate): ditto.
4315 (png_instantiate): ditto.
4316 (tiff_instantiate): ditto.
4318 * glyphs.c (instantiate_image_instantiator): use domain rather
4320 (mark_image_instance): device -> domain.
4321 (print_image_instance): ditto.
4322 (finalize_image_instance): ditto.
4323 (image_instance_equal): ditto.
4324 (allocate_image_instance): ditto.
4325 (Fcolorize_image_instance): ditto.
4326 (query_string_geometry): ditto.
4327 (image_instantiate): ditto
4328 (query_string_font): ditto.
4329 (image_instantiate): ditto.
4330 (update_subwindow): ditto.
4331 (unmap_subwindow): ditto.
4332 (map_subwindow): ditto.
4333 (subwindow_instantiate): ditto.
4335 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
4336 (DOMAIN_FRAME): ditto.
4337 (DOMAIN_WINDOW): ditto.
4338 (DOMAIN_LIVE_P): ditto.
4339 (XDOMAIN_DEVICE): ditto.
4340 (XDOMAIN_FRAME): ditto.
4341 (XDOMAIN_WINDOW): ditto.
4343 * specifier.c (Fvalid_specifier_domain_p): add image instances as
4344 a valid specifier domain.
4346 2000-04-19 Andy Piper <andy@xemacs.org>
4348 * glyphs-widget.c (syms_of_glyphs_widget): remove
4349 widget-callback-current-channel.
4350 (vars_of_glyphs_widget): ditto.
4353 * gui.c (get_gui_callback): revert to previous behaviour.
4355 2000-04-18 Andy Piper <andy@xemacs.org>
4357 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
4358 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
4359 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
4361 * glyphs.c (image_instance_equal): add margin_width.
4362 (image_instance_hash): ditto.
4364 * glyphs-widget.c (widget_instantiate): deal with margin-width.
4365 (layout_query_geometry): ditto.
4366 (layout_layout): ditto.
4367 (syms_of_glyphs_widget): add margin-width.
4368 (image_instantiator_layout): allow margin-width.
4370 * glyphs.c (update_widget_instances): make a normal function.
4371 (syms_of_glyphs): remove Qupdate_widget_instances.
4374 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
4375 so that we don't corrupt ideas about the last event or
4376 command. Remove widget-callback-current-channel fiddling.
4377 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
4379 2000-05-01 Martin Buchholz <martin@xemacs.org>
4381 * XEmacs 21.2.33 is released.
4383 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
4385 * make-src-depend: Allow dots in header file name.
4387 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
4389 * mule-charset.h (struct charset_lookup): Add
4390 next_allocated_1_byte_leading_byte and
4391 next_allocated_2_byte_leading_byte.
4392 * mule-charset.c: Move above two variables so that those values
4395 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
4397 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
4398 when string length is zero.
4399 (find_charsets_in_emchar_string): Ditto.
4401 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
4403 * lisp.h: extern Qdialog and Qmenubar.
4405 * gui-x.c: added events.h.
4406 also fixed typo which made the file uncompilable.
4408 * general.c: Added Qmenubar and Qdialog
4410 2000-04-28 Ben Wing <ben@xemacs.org>
4412 * frame-msw.c (mswindows_init_frame_1):
4413 * frame-msw.c (mswindows_mark_frame):
4414 * event-msw.c (mswindows_enqueue_dispatch_event):
4416 * console-msw.h (struct mswindows_frame):
4417 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
4418 there are now three hash tables for callbacks.
4419 mswindows_enqueue_dispatch_event is no longer static.
4421 * dialog-x.c (maybe_run_dbox_text_callback):
4422 * dialog-x.c (dbox_descriptor_to_widget_value):
4423 switch to new cons3 form for callbacks.
4425 * glyphs-msw.c (mswindows_register_gui_item):
4426 * glyphs-msw.c (mswindows_widget_instantiate):
4427 * glyphs-msw.c (add_tree_item):
4428 * glyphs-msw.c (add_tab_item):
4429 new image instance parameter, so it can be passed to callback-ex.
4430 respect :callback-ex as well as :callback.
4432 * glyphs-widget.c (VALID_GUI_KEYWORDS):
4435 * glyphs.c (print_image_instance):
4436 prettify, e.g. now prints widget type.
4439 certain funs have new image instance parameter.
4442 * gui.c (get_gui_callback):
4443 * gui.c (gui_item_add_keyval_pair):
4444 * gui.c (gui_item_init):
4445 * gui.c (gui_add_item_keywords_to_plist):
4446 * gui.c (mark_gui_item):
4447 * gui.c (gui_item_hash):
4448 * gui.c (gui_item_equal):
4449 * gui.c (copy_gui_item):
4450 * gui.c (syms_of_gui):
4451 recognize callback-ex in a number of places.
4452 also, fix the annoying "can't get out of yes-no dialog" bug.
4455 * gui.h (struct Lisp_Gui_Item):
4456 recognize callback-ex in a number of places.
4458 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4459 new parameter in button_item_to_widget_value.
4461 * glyphs-x.c (x_update_widget):
4462 * glyphs-x.c (x_button_instantiate):
4463 * glyphs-x.c (x_button_update):
4464 * glyphs-x.c (x_progress_gauge_instantiate):
4465 * glyphs-x.c (x_edit_field_instantiate):
4466 * glyphs-x.c (x_combo_box_instantiate):
4467 * glyphs-x.c (x_tab_control_instantiate):
4468 * glyphs-x.c (x_label_instantiate):
4469 new image instance parameter in various places.
4472 * event-Xt.c (enqueue_Xt_dispatch_event):
4473 this fun gets exported.
4476 * gui-msw.c (mswindows_handle_gui_wm_command):
4477 handle both :callback and :callback-ex, and generate our own
4478 event because it's one of the callback-ex arguments.
4481 * gui-x.c (popup_selection_callback):
4482 handle both :callback and :callback-ex, and generate our own
4483 event because it's one of the callback-ex arguments.
4484 * gui-x.c (button_item_to_widget_value):
4485 * gui-x.c (gui_items_to_widget_values_1):
4486 * gui-x.c (gui_item_children_to_widget_values):
4487 * gui-x.c (gui_items_to_widget_values):
4488 new image instance parameter in various places.
4490 * fns.c (Freplace_list):
4491 fix small typo in doc string.
4494 declare enqueue_Xt_dispatch_event.
4496 2000-04-28 Ben Wing <ben@xemacs.org>
4499 * buffer.c (Frecord_buffer):
4500 * buffer.c (syms_of_buffer):
4501 delete record-buffer-hook.
4504 * fns.c (Freplace_list):
4505 * fns.c (syms_of_fns):
4506 new primitive replace-list.
4509 slot for old buffer-alist.
4515 * redisplay.c (redisplay_frame):
4516 * redisplay.c (syms_of_redisplay):
4517 * redisplay.c (vars_of_redisplay):
4518 new hook buffer-list-changed-hook.
4521 2000-04-27 Ben Wing <ben@xemacs.org>
4523 * extents.h: extern in_modeline_generation.
4525 * redisplay.c (generate_formatted_string_db): set
4526 in_modeline_generation.
4528 * extents.c (extent_changed_for_redisplay): don't mark redisplay
4529 flags if in modeline generation. otherwise frame-modified-tick
4530 is ticked far too often.
4531 Declare in_modeline_generation.
4533 2000-04-26 Ben Wing <ben@xemacs.org>
4535 * emacs.c (vars_of_emacs): document quick-build "error-checking"
4537 (vars_of_emacs): add quick-build as an error-checking option.
4538 A bit kludgy, but there doesn't seem much point in creating
4539 a real var for this.
4541 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
4543 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
4545 * redisplay.h (struct display_line): Add a new variable,
4548 * redisplay.c (create_text_block): Set dl->line_continuation if
4550 (create_string_text_block): Ditto.
4551 (regenerate_window_incrementally): Use line_continuation instead
4552 of searching continuation glyph.
4553 (add_margin_runes): Call add_glyph_rune.
4554 (add_glyph_rune): Handle margin glyph.
4556 2000-04-20 Martin Buchholz <martin@xemacs.org>
4558 * filelock.c (fill_in_lock_file_name):
4560 Check for IS_ANY_SEP instead of '/'.
4562 Avoid generating gratuitous garbage. Call user_login_name() directly.
4563 Never check errno without first seeing that system call failed.
4564 (unlock_file): Add GCPRO.
4565 (Flock_buffer): Fix docstring.
4566 (Ffile_locked_p): Fix docstring. Add GCPRO.
4568 2000-04-19 Martin Buchholz <martin@xemacs.org>
4570 * sysdep.c (get_pty_max_bytes):
4571 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
4572 strings longer than 252 bytes.
4574 * md5.c: Unconditionally include ANSI header <limits.h>
4576 * glyphs-x.c (convert_EImage_to_XImage):
4577 * lisp-union.h (union Lisp_Object):
4578 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
4580 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4582 * filelock.c (current_lock_owner): Remove unused variable o, p.
4584 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
4586 * callint.c: Remove multiply defined symbol Qlet
4587 (syms_of_callint): ditto.
4589 2000-04-14 Andy Piper <andy@xemacs.org>
4591 * general.c (syms_of_general): add last-command, this-command, let
4594 * lisp.h: declare various symbols.
4596 * glyphs.h: declare Qwidget_callback_current_channel;
4598 * glyphs-widget.c (syms_of_glyphs_widget): add
4599 Qgui_callback_current_channel.
4600 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
4602 * gui-msw.c (mswindows_handle_gui_wm_command): bind
4603 widget-callback-current-channel when invoking the interactive
4604 arg. Also bind last-command and next-command when invoking the
4606 * gui-x.c (popup_selection_callback): ditto.
4608 * gui.c (get_gui_callback): massage args so that we are always
4609 calling eval. This allows us to add our own variable bindings
4612 * glyphs-x.c (x_button_instantiate): use
4613 gui_items_to_widget_values since this is GC safe.
4614 (x_progress_gauge_instantiate): ditto.
4615 (x_edit_field_instantiate): ditto.
4616 (x_label_instantiate): ditto.
4618 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
4619 (emacs_Xt_event_widget_focus_out): new function
4620 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
4622 (emacs_Xt_event_add_widget_actions): new function. add focus
4623 functions as actions.
4624 (init_event_Xt_late): use it.
4626 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
4628 * event-stream.c (Fdispatch_event): Doc fix.
4630 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
4632 * postgresql.c: Remove all references to PQsetenv*.
4634 * postgresql.h: Remove references to PGsetenvHandler object.
4635 * lrecord.h (lrecord_type): Ditto.
4637 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
4639 * glyphs-msw.h (struct mswindows_image_instance_data): Added
4640 real_heigh and real_width members, and accessor macros for these.
4642 * glyphs-msw.c (init_image_instance_geometry): New function.
4643 (init_image_instance_from_dibitmap): Use it.
4644 (mswindows_resource_instantiate): Use it.
4645 (init_image_instance_from_xbm_inline): Use it.
4646 (mswindows_initialize_image_instance_mask): Use real bitmap
4648 (mswindows_create_resized_bitmap): Ditto.
4649 (mswindows_create_resized_mask): Ditto.
4651 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
4652 and bitmap to their surface size.
4654 2000-04-11 Jan Vroonhof <jan@xemacs.org>
4656 * process-unix.c (unix_send_process): Guard against process MIA
4657 after Faccept_process_output.
4659 2000-04-11 Ben Wing <ben@xemacs.org>
4661 * eval.c (unbind_to_hairy): fix brokenness introduced by
4662 nanosecond speed improvements.
4664 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
4666 * sunplay.c (init_device): To play sounds correctly, the device
4667 apparently needs to be initialized at least once by XEmacs. Make
4670 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
4672 * redisplay.c (add_margin_runes): Add text image glyph
4675 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
4677 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
4678 gcc is newer than 2.5.
4680 2000-04-06 Colin Rafferty <colin@xemacs.org>
4682 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
4684 * fns.c (size_bit_vector):
4685 * alloc.c (size_vector):
4686 (make_vector_internal):
4687 (make_bit_vector_internal):
4688 (sweep_bit_vectors_1):
4689 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
4691 2000-04-06 Andy Piper <andy@xemacs.org>
4693 * gmalloc.c (malloc): undo previous change.
4698 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
4700 * line-number.c (buffer_line_number): Revert to former version.
4702 2000-04-06 Andy Piper <andy@xemacs.org>
4704 * gmalloc.c (malloc): add error checking.
4709 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
4710 button_item_to_widget_value arg.
4712 * glyphs-x.c (x_button_instantiate): add extra
4713 button_item_to_widget_value arg.
4714 (x_progress_gauge_instantiate): ditto.
4715 (x_edit_field_instantiate): ditto.
4716 (x_label_instantiate): ditto.
4718 * gui-x.c (gui_items_to_widget_values_1): add extra
4719 button_item_to_widget_value arg.
4720 (button_item_to_widget_value): add extra menu_item_p arg.
4722 * gui-x.h: change signature of button_item_to_widget_value.
4724 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
4725 button_item_to_widget_value arg.
4727 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
4729 * buffer.h (struct buffer): auto_save_modified should be long.
4731 2000-04-05 Andy Piper <andy@xemacs.org>
4733 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
4735 (button_query_geometry): give a little more room so that athena
4738 2000-04-05 Andy Piper <andy@xemacs.org>
4740 * faces.c (complex_vars_of_faces): The widget face should inherit
4741 the font of the gui-element face.
4743 2000-04-04 Andy Piper <andy@xemacs.org>
4745 * glyphs-x.c (x_button_update): new function. unconditionally
4746 update a button's state when the instance is dirty.
4747 (image_instantiator_format_create_glyphs_x): add x_button_update.
4748 (x_widget_instantiate): remove old resize cruft.
4750 2000-04-02 Andy Piper <andy@xemacs.org>
4752 * frame.c (change_frame_size_1): The introduction of gutters means
4753 that we need to allow 0 as a potential frame dimension.
4755 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
4757 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
4758 image glyph if allow_cursor.
4759 (add_hscroll_rune): Don't allow cursor to border glyph.
4760 (create_text_block): Ditto.
4762 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
4764 (redisplay_output_layout): Call ensure_face_cachel_complete for
4768 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
4770 * redisplay.c (add_glyph_rune): Adding text image as text runes.
4772 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
4775 * redisplay-tty.c (tty_output_display_block): Delete the routine
4776 for text image glyph
4777 * redisplay-x.c (x_output_display_block): ditto
4778 * redisplay-msw.c (mswindows_output_display_block): ditto
4780 2000-02-02 Mike Alexander <mta@arbortext.com>
4782 Note: Some of these were committed by accident as part of other
4785 * regex.c (regex_compile): Avoid compiler warnings.
4787 * ntproc.c (sys_spawnve): Avoid compiler warnings.
4789 * nt.h: Declare term_ntproc correctly.
4791 * nt.c: Remove incorrect declaration of get_home_directory which
4792 is declared correctly in lisp.h.
4794 * keymap.c (get_keyelt): Avoid compiler warnings.
4795 (raw_lookup_key_mapper): Avoid compiler warnings.
4797 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
4799 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
4801 * filemode.c (mode_string): Avoid compiler warnings.
4803 * file-coding.c (Fcoding_system_aliasee): Add return statement to
4806 * events-mod.h: Undef some things that winuser.h defines differently.
4808 * data.c (Faset): Avoid compiler warnings.
4810 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
4812 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
4814 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
4815 Fall through to simple beep on error.
4816 Replace "extern" by real header file.
4818 * linuxplay.c: Use nativesound.h
4819 (play_sound_data): Return error code. Be less verbose on error.
4821 * sunplay.c: Use nativesound.h
4822 (play_sound_data): Return error code. Be less verbose on error.
4824 * ntplay.c: Use nativesound.h
4825 (play_sound_data): Return fake error code
4827 * sgiplay.c: Use nativesound.h
4828 (play_sound_data): Return error code
4830 * hpplay.c: Use nativesound.h, partially implement
4831 new error code. Break compilation until finished.
4832 (play_sound_data): error code.
4834 * nativesound.h (play_sound_file):
4835 (play_sound_data): Prototype in new header.
4837 2000-03-31 Andy Piper <andy@xemacs.org>
4839 * glyphs-widget.c: (button_query_geometry): new function. Adjust
4840 for toggle and radio buttons.
4841 (image_instantiator_buttons): use it.
4843 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
4845 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
4846 (x_update_horizontal_scrollbar_callback): Return if no mirror was
4847 found. Scrollbar event probably belonged to some old config.
4849 2000-03-31 Andy Piper <andy@xemacs.org>
4851 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
4853 (initialize_widget_image_instance): default layout to
4854 LAYOUT_HORIZONTAL rather than 0.
4855 (widget_instantiate): reverse the item list at the end rather than
4857 (layout_layout): re-code for the border text at the front of the
4858 item list rather than at the end.
4859 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
4860 provided by the user.
4861 (widget_query_geometry): comment.
4863 2000-03-30 Andy Piper <andy@xemacs.org>
4865 * glyphs-widget.c (image_instantiator_layout): allow standard
4866 widget keywords in layouts.
4868 * gutter.c (output_gutter): cope with nil gutter contents.
4870 * frame.c (Fset_frame_properties): add gutter docs.
4872 2000-03-29 Andy Piper <andy@xemacs.org>
4874 * toolbar-msw.c (TBSTYLE_FLAT): add.
4875 (mswindows_output_toolbar): minor fiddling.
4877 2000-03-29 Andy Piper <andy@xemacs.org>
4879 * gutter.c (output_gutter): force gutter size recalculation if
4880 what we are trying to display won't fit.
4881 (update_gutter_geometry): new function. A per-gutter version of
4882 update_frame_gutter_geometry.
4883 (update_frame_gutter_geometry): use it.
4884 (redraw_exposed_gutter): add extra debugging output.
4886 2000-03-28 Mike Alexander <mta@arbortext.com>
4888 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
4889 (pdump_file_unmap): Implement it on Windows
4890 (pdump_file_get): Save alocated handles for pdump_file_unmap
4892 2000-03-28 Andy Piper <andy@xemacs.org>
4894 * gui.c (get_gui_callback): treat Quit specially.
4896 2000-03-27 Andy Piper <andy@xemacs.org>
4898 * glyphs.c (image_instantiate): be careful to check in the same
4901 2000-03-27 Didier Verna <didier@xemacs.org>
4903 * config.h.in: define the proper SMART_INCLUDE macro.
4904 handle renaming of `foo_h_path' to `foo_h_file'.
4906 * database.c: ditto.
4910 * linuxplay.c: ditto.
4912 * terminfo.c: ditto.
4914 * tooltalk.h: ditto.
4916 2000-03-27 Andy Piper <andy@xemacs.org>
4918 * glyphs-msw.c (mswindows_update_widget): make sure the widget
4919 gets updated whenever the face might have changed.
4921 2000-03-26 Mike Alexander <mta@arbortext.com>
4923 * dumper.c (pdump_resource_free): Fix the comment.
4925 2000-03-21 Olivier Galibert <galibert@pobox.com>
4927 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
4929 2000-03-22 Mike Alexander <mta@arbortext.com>
4931 * dumper.c: Include Windows headers on Windows
4932 (pdump_resource_free): Add a body to the function
4933 (pdump_load): exe_name -> exe_path and add some comments.
4935 2000-03-25 Mike Alexander <mta@arbortext.com>
4937 * gui.c (copy_gui_item_tree): Return a value in all cases
4939 2000-03-21 Didier Verna <didier@xemacs.org>
4941 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
4943 (SMART_INCLUDE): new macro.
4944 (POSTGRES_INCLUDE): new macro to include postgresql headers from
4945 the proper location.
4947 * postgresql.c: use it.
4951 2000-03-24 Andy Piper <andy@xemacs.org>
4953 * gutter.c (redraw_exposed_gutters): must be "in display" when we
4956 2000-03-24 Andy Piper <andy@xemacs.org>
4958 * redisplay-output.c (compare_runes): use image_instance_changed
4959 to detect changes. Do not depend on glyphs_changed, only depend on
4961 (redisplay_output_layout): add debug messages.
4962 (compare_runes): ditto.
4964 * glyphs.h: declare new functions.
4965 (struct Lisp_Image_Instance): remove percent and associated
4968 * gui.h: declare new copying functions.
4970 * gui.c (copy_gui_item_tree): new function.
4971 (copy_gui_item): new function.
4972 (gui_item_id_hash): revert to standard hash.
4973 (gui_item_hash): ditto.
4974 (gui_item_hash_internal): deleted.
4975 (mark_gui_item): mark value.
4976 (gui_item_add_keyval_pair): add value.
4977 (gui_item_init): ditto.
4978 (gui_add_item_keywords_to_plist): ditto.
4979 (gui_item_equal): ditto.
4980 (syms_of_gui): add Q_value.
4982 * glyphs-x.c (x_progress_gauge_update): use pending items and
4983 value for setting the state.
4984 (x_update_widget): don't set items from pending here.
4986 * glyphs-widget.c (update_widget): update items here.
4987 (progress_gauge_set_property): use items for storing value. Put
4988 new value in pending items.
4990 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
4991 items for new value. Convert percent -> value.
4992 (mswindows_tab_control_update): don't update items here.
4994 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
4995 (update_subwindow): ditto.
4996 (image_instance_changed): new function. Compare hash values and
4997 past and present widget items.
4998 (image_instantiate): We more careful about where we instantiate
5000 (image_instantiate): add error checking.
5002 * gutter.c (syms_of_gutter): use -hook.
5004 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
5006 * console-tty.c (Fset_console_tty_input_coding_system): Use
5008 (Fset_console_tty_output_coding_system): Use Qterminal.
5009 (tty_init_console): Use Qkeyboard and Qterminal.
5011 2000-03-21 Ben Wing <ben@xemacs.org>
5013 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
5014 From Mike Alexander <mta@arbortext.com>.
5016 2000-03-21 Ben Wing <ben@xemacs.org>
5018 * event-msw.c (mswindows_need_event): Horrible kludge to fix
5019 process brokenness. Proper implementation to come.
5021 Rename call-process-internal to old-call-process-internal.
5022 New impl. in process.el.
5024 2000-03-21 Martin Buchholz <martin@xemacs.org>
5026 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
5028 2000-03-20 Andy Piper <andy@xemacs.org>
5030 * glyphs.c (full_list_hash): make hashes of the same elements in
5031 different orders return different values.
5033 2000-03-20 Martin Buchholz <martin@xemacs.org>
5035 * XEmacs 21.2.32 is released.
5037 2000-03-20 Martin Buchholz <martin@xemacs.org>
5039 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
5040 (DFC_MALLOC_USE_CONVERTED_DATA):
5041 Add aliasing-safe casts to allow use with char* or unsigned char*
5044 * eldap.c (Fldap_open):
5045 (Fldap_search_basic):
5048 Make C++-compilable.
5049 Make sure GCPRO'ed variables are initialized.
5050 Use temp variables to avoid repeated calls to Flength.
5052 2000-03-16 Martin Buchholz <martin@xemacs.org>
5055 Make sure PATH_MAX is always defined.
5056 Include limits.h for PATH_MAX.
5057 Deprecate use of MAXPATHLEN.
5059 2000-03-10 Martin Buchholz <martin@xemacs.org>
5061 * emacs.c: Add reinit_vars_of_fileio.
5062 * symsinit.h: Add reinit_vars_of_fileio.
5063 * fileio.c (reinit_vars_of_fileio): New.
5064 * fileio.c (Fmake_temp_name):
5065 Initialize temp_name random number from microseconds to make
5066 collisions even less likely. Initialize always at process startup
5067 time. (make-temp-name) used to return the same file name twice in
5069 Random stylistic fiddling.
5072 2000-03-20 Andy Piper <andy@xemacs.org>
5074 * glyphs.c (image_instantiate): allow text glyphs to be
5075 instantiated in the minibuffer window.
5077 2000-03-19 Andy Piper <andy@xemacs.org>
5079 * glyphs.c (image_instance_hash): be careful about which items we
5082 * glyphs-widget.c (tab_control_set_property): record into pending
5083 items rather than the actual items.
5085 * glyphs-x.c (x_update_widget): use pending items to update with.
5087 * glyphs-msw.c (mswindows_tab_control_update): use pending items
5090 * glyphs.c (mark_image_instance): mark pending items.
5092 * window.c (Fset_window_configuration): record the buffer.
5093 (Fselect_window): totally revert previous change which breaks many
5096 2000-03-18 Andy Piper <andy@xemacs.org>
5098 * glyphs-msw.c (mswindows_tab_control_update): force selected
5101 * glyphs.c (image_instantiate): don't allow the minibuffer as a
5102 window domain cache, otherwise we get inconsistencies at
5103 startup. There is something fishy at startup which can lead to the
5104 minibuffer being the selected window when the gutter content is
5107 * gui.c (parse_gui_item_tree_list): add probably unneccessary
5109 (parse_gui_item_tree_children): ditto.
5110 (parse_gui_item_tree_item): ditto.
5112 * glyphs.c (Fupdate_widget_instances): return something.
5114 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
5116 * window.c (Fselect_window): Undo 2000-03-17 change.
5118 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
5120 * postgresql.c (Fpq_setenv): Remove this turkey when linking
5121 against v7.0 libraries. Insta-coredump city until the postgres
5124 2000-03-17 Andy Piper <andy@xemacs.org>
5126 * faces.c (complex_vars_of_faces): don't give the widget face an
5127 inherited background pixmap.
5129 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
5132 * event-stream.c (Fdispatch_non_command_events): return something.
5134 * gutter.c (output_gutter): use widget face.
5135 (clear_gutter): ditto.
5137 * NEWS: adjust again.
5139 * window.c (Fselect_window): make sure this runs to completion to
5140 avoid oddities with Fset_window_configuration.
5141 (Fcurrent_window_configuration): in general do not save the
5142 minibuffer as the selected window.
5144 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
5146 2000-03-16 Olivier Galibert <galibert@pobox.com>
5148 * emacs.c (Frunning_temacs_p): Revert previous patch.
5149 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
5151 2000-03-16 Andy Piper <andy@xemacs.org>
5153 * glyphs-x.c (x_tab_control_update): if no widget values then
5156 * NEWS: update for new features.
5158 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
5159 synthetic event to the native system.
5160 (reinit_vars_of_event_Xt): set force_event_pending to
5161 emacs_Xt_force_event_pending.
5163 * events.h (struct event_stream): add force_event_pending.
5165 * specifier.c (recompute_one_cached_specifier_in_window): add
5168 * redisplay.c (redisplay_frame): don't call
5169 update_frame_subwindows. Reset subwindow cachels when
5170 subwindows_changed, removing this was an optimization too far.
5172 * redisplay-output.c (compare_runes): reorganize so that we catch
5173 glyph changes when we want them. Set optimize_output when this
5175 (redisplay_output_layout): remove frame_really_changed, use
5176 optimize_output instead.
5178 * redisplay-msw.c (mswindows_output_display_block): reset
5179 optimize_output after outputting a glyph.
5180 * redisplay-x.c (x_output_display_block): ditto.
5181 * redisplay-tty.c (tty_output_display_block): ditto.
5183 * gutter.c: (specifier_vars_of_gutter): use new spec changed
5185 (gutter_specs_changed): do specific gutter positions.
5186 (top_gutter_specs_changed): new function. Only update the
5187 specified gutter specs.
5188 (bottom_gutter_specs_changed): ditto.
5189 (left_gutter_specs_changed): ditto.
5190 (right_gutter_specs_changed): ditto.
5192 * gui.c (gui_item_hash_internal): new function, does a real hash.
5193 (gui_item_id_hash): use it.
5194 (gui_item_hash): hash the eval'ed gui_item.
5196 * gui-x.c (popup_selection_callback): send an eval event to call
5197 Fupdate_widget_instances.
5199 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
5200 to call Fupdate_widget_instances.
5202 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
5203 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
5205 * glyphs.c: (update_frame_subwindows): deleted.
5206 (Fupdate_widget_instances): new function for updating the dirty
5207 state of widgets that might have changed.
5208 (syms_of_glyphs): add Qupdate_widget_instances.
5209 (full_list_hash): hash a list completely.
5210 (image_instance_hash): use it for items and properties.
5212 * frame-msw.c (mswindows_size_frame_internal): remove unused
5215 * faces.h (struct face_cachel): fix comment.
5217 * event-stream.c (Fdispatch_non_command_events): new
5218 function. Process non-command events, forcing an event cycle
5220 (syms_of_event_stream): declare.
5221 (event_stream_force_event_pending): new function. Force an event
5222 on the native event queue so that an event cycle will occur next
5226 (struct ntpipe_shove_stream):
5227 (mswindows_enqueue_dispatch_event):
5228 (mswindows_dequeue_dispatch_event):
5229 (mswindows_cancel_dispatch_event):
5230 (mswindows_pump_outstanding_events):
5231 (mswindows_drain_windows_queue):
5232 (mswindows_handle_paint):
5233 (mswindows_wnd_proc):
5234 (mswindows_key_to_emacs_keysym):
5235 (get_process_input_waitable):
5236 (emacs_mswindows_delete_stream_pair): re-indent file.
5237 (mswindows_need_event): do not process further fds if the windows
5238 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
5239 fixes the 100% cpu problem.
5240 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
5242 2000-03-15 Olivier Galibert <galibert@pobox.com>
5248 * emacs.c: Moved dump file searching to dumper.c.
5249 (Frunning_temacs_p): Fixed.
5251 * alloc.c: Moved everything pdump-related to dumper.c. Removed
5252 last_lrecord_type_index_assigned.
5254 2000-02-20 Olivier Galibert <galibert@pobox.com>
5256 * symsinit.h: Added reinit parameter to init_console_stream
5259 * lisp.h: Added file parameter to pdump_load declaration.
5261 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
5262 support. Added dump file searching.
5264 * config.h.in: Added EMACS_PROGNAME.
5266 * console-stream.c (init_console_stream): Fix reinitialisation
5267 when running from temacs.
5269 * alloc.c (pdump): Add id support.
5270 (pdump_load): Add file parameter and signature/id support.
5272 * Makefile.in.in: Add full pdump support.
5274 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
5276 * postgresql.c: Update documentation to reflect latest code
5278 (print_result): Show tuple counts in printed representation when
5280 (Fpq_put_nbytes): MULE-ize.
5281 (Fpq_get_line_async): Ditto.
5283 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
5285 * postgresql.c (Fpq_lo_import): Fix return value.
5286 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
5288 2000-03-13 Ben Wing <ben@xemacs.org>
5290 * alloc.c (pdump_load):
5291 Fix compile warning under mswin.
5293 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
5295 * postgresql.c: Mule-ization, bug fixes.
5296 Use PG_CODING to encapsulate coding system name changes.
5297 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
5298 (pg-coding-system): Create.
5300 (Fpq_conn_defaults): Mule-ize.
5301 (Fpq_connectdb): Mule-ize & bug fix.
5302 (Fpq_connect_start): Mule-ize.
5303 (Fpq_set_client_encoding): Mule-ize.
5304 (Fpq_finish): Document `DEAD' connection status.
5306 (Fpq_pgconn): Mule-ize.
5307 (Fpq_exec): Mule-ize & bug fix.
5308 (Fpq_send_query): Ditto.
5309 (Fpq_get_result): Ditto.
5310 (Fpq_res_status): Mule-ize.
5311 (Fpq_result_error_message): Mule-ize.
5312 (Fpq_ntuples): fix comments.
5313 (Fpq_fname): Mule-ize.
5314 (Fpq_fnumber): Mule-ize.
5315 (Fpq_ftype): fix comments.
5316 (Fpq_get_value): Mule-ize.
5317 (Fpq_cmd_status): Ditto.
5318 (Fpq_cmd_tuples): Ditto.
5319 (Fpq_oid_value): Ditto.
5320 (Fpq_notifies): Ditto.
5321 (Fpq_lo_import): Ditto.
5322 (Fpq_lo_export): Ditto.
5323 (Fpq_get_line): Ditto.
5324 (Fpq_put_line): Mule-ize and bug fix.
5325 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
5327 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
5329 * postgresql.c (vars_of_postgresql): Mule-ize.
5330 (Fpq_conn_defaults): Ditto.
5332 2000-03-12 Ben Wing <ben@xemacs.org>
5334 * alloc.c (Fmake_byte_code):
5335 * alloc.c (debug_string_purity_print):
5336 * alloc.c (pdump_backtrace):
5337 * alloc.c (pdump_get_indirect_count):
5338 * alloc.c (pdump_register_sub):
5339 * alloc.c (pdump_register_object):
5340 * alloc.c (pdump_register_struct):
5341 * alloc.c (pdump_dump_data):
5342 * alloc.c (pdump_reloc_one):
5346 * console-msw.c (GetConsoleHwnd):
5347 * console-msw.c (msw_hide_console):
5348 * console-msw.c (msw_show_console):
5349 * console-msw.c (msw_ensure_console_buffered):
5350 * console-msw.c (msw_output_console_string):
5351 * console-msw.c (console_type_create_mswindows):
5353 a) Added functions to manipulate the console window for use with
5356 b) Added support for writing text to the console, which is now
5357 used under Windows when xemacs is not being run non-interactively,
5358 to write text that would otherwise be destined for stdout because
5359 under these circumstances, text written to stdout tends to
5360 disappear and not be seen.
5364 * event-Xt.c (x_event_to_emacs_event):
5365 * event-Xt.c (describe_event_window):
5366 * events-mod.h (XEMACS_MOD_CONTROL):
5368 * events.c (Fmake_event):
5369 * events.c (character_to_event):
5370 * events.c (event_to_character):
5371 * events.c (format_event_object):
5372 * events.c (Fevent_modifiers):
5374 * events.h (struct key_data):
5375 * events.h (struct button_data):
5376 * events.h (struct misc_user_data):
5377 * frame-x.c (Fcde_start_drag_internal):
5378 * frame-x.c (Foffix_start_drag_internal):
5379 * gpmevent.c (Freceive_gpm_event):
5381 * keymap.c (bucky_sym_to_bucky_bit):
5382 * keymap.c (control_meta_superify):
5383 * keymap.c (make_key_description):
5384 * keymap.c (keymap_lookup_directly):
5385 * keymap.c (create_bucky_submap):
5386 * keymap.c (keymap_store):
5387 * keymap.c (define_key_check_and_coerce_keysym):
5388 * keymap.c (define_key_parser):
5389 * keymap.c (define_key_alternate_name):
5390 * keymap.c (Fdefine_key):
5391 * keymap.c (raw_lookup_key_mapper):
5392 * keymap.c (struct map_keymap_unsorted_closure):
5393 * keymap.c (map_keymap_unsorted_mapper):
5394 * keymap.c (map_keymap_sort_predicate):
5395 * keymap.c (map_keymap_sorted):
5396 * keymap.c (accessible_keymaps_mapper_1):
5397 * keymap.c (where_is_recursive_mapper):
5398 * keymap.c (describe_map_mapper):
5399 * keymap.c (describe_map_sort_predicate):
5400 * keymap.c (describe_map):
5401 * keymap.c (complex_vars_of_keymap):
5402 And a number of other files, the key modifier preprocessor
5403 constants that xemacs uses have names that conflict with constants
5404 defined under MS Windows for other purposes, so they were renamed
5405 to begin with the prefix XEMACS_. The variables that hold such
5406 modifiers were changed to consistently be of type int to fix
5407 various compile warnings.
5409 * console.c (complex_vars_of_console):
5412 * device-msw.c (mswindows_finish_init_device):
5413 * device-msw.c (msw_get_workspace_coords):
5414 * device-msw.c (mswindows_device_system_metrics):
5415 and various other files, added support for a new
5416 device property called offset-workspace which returns the position
5417 of the upper left corner of the workspace area and goes along with
5418 the existing size-workspace property.
5421 * dialog-msw.c (push_bufbyte_string_as_unicode):
5422 * dialog-msw.c (mswindows_popup_dialog_box):
5423 Added support for XEmacs-style accelerator specifications in
5424 button text. Note: I didn't add support for this under X Windows,
5425 and somebody needs to do this.
5428 * dialog.c (Fpopup_dialog_box):
5429 Documented the support for accelerators that was just mentioned.
5431 editfns.c (get_home_directory): Changed behavior under Windows
5432 when HOME not defined; former behavior was irretrievably broken.
5437 * minibuf.c (clear_echo_area_internal):
5438 * minibuf.c (echo_area_append):
5440 * print.c (std_handle_out_external):
5441 * print.c (std_handle_out_va):
5443 * print.c (write_string_to_stdio_stream):
5444 * print.c (output_string):
5445 * print.c (debug_print):
5446 * print.c (debug_backtrace):
5447 * print.c (debug_short_backtrace):
5448 Cleaned up the code that prints text to stdout so that this can be
5449 changed to output into a console window instead under MS Windows,
5453 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
5454 * eval.c (internal_catch):
5455 * eval.c (unwind_to_catch):
5456 * eval.c (throw_or_bomb_out):
5457 * eval.c (condition_case_1):
5458 * eval.c (signal_1):
5459 * eval.c (check_error_state_sanity):
5460 * eval.c (call_with_suspended_errors_1):
5461 * eval.c (call_with_suspended_errors):
5462 * eval.c (reinit_vars_of_eval):
5463 Added code to catch throw loops and check for a pesky bug that may
5467 * event-msw.c (key_needs_default_processing_p):
5468 * event-msw.c (mswindows_wnd_proc):
5469 * event-msw.c (mswindows_modifier_state):
5470 * event-msw.c (emacs_mswindows_quit_p):
5471 * event-msw.c (vars_of_event_mswindows):
5472 a) Added support for using the alt key to select menu items as is
5473 standard under MS Windows. This is controlled using the variable
5474 menu-accelerator-enabled, just like under X Windows. There is an
5475 option on the options menu to turn this support on. I really
5476 think that it should be on by default under Windows, but I'm not
5477 going to make this change yet.
5479 b) Added support for dynamic display size changes under Windows.
5482 * event-stream.c (maybe_echo_keys):
5483 * event-stream.c (Fnext_event):
5484 * event-stream.c (command_builder_find_leaf):
5485 * event-stream.c (lookup_command_event):
5486 * event-stream.c (execute_command_event):
5487 * event-stream.c (pre_command_hook):
5488 * event-stream.c (post_command_hook):
5489 * event-stream.c (syms_of_event_stream):
5490 * event-stream.c (vars_of_event_stream):
5491 * event-stream.c (complex_vars_of_event_stream):
5492 * events.h (struct command_builder):
5494 a) Tried to clean up a little bit the horribly written x-specific
5495 accelerator code that crept into this file. I moved this code
5496 into menubar-x.c where it belongs. I also needed to move the
5497 command builder structure into the file events.h because it is
5498 accessed directly by this accelerator code. What I didn't do, but
5499 which should be done at some point, is to properly abstract this
5500 code using device methods instead of the kludgy way that it
5501 currently hooks into the event code.
5503 b) Added the lisp variables this-command-properties and
5504 last-command- properties, which should be used to synchronize two
5505 adjacent commands in preference to playing games with the variable
5506 this-command, which is typically what happens.
5508 c) Added some slightly nasty code to hook into the lisp support
5509 for shifted- motion-key selection. This is actually necessary for
5510 somewhat complicated reasons, which are described in
5511 simple.el. (NB: I think the proper thing would be to have the code
5512 that calls the pre and post command hooks also call out to generic
5513 lisp functions in simple.el, where all built-in stuff could be
5514 added. I will think about this more.)
5516 * event-unixoid.c (poll_fds_for_input):
5517 * lread.c (readchar):
5518 * redisplay-tty.c (tty_clear_frame):
5519 * redisplay-x.c (x_get_gc):
5520 * signal.c (interrupt_signal):
5521 And a whole bunch of other files: fixed up places that printed
5522 directly to stderr to instead call the function stderr_out so that
5523 the changes I made under Windows work correctly.
5525 * filemode.c (mode_string):
5529 * frame-msw.c (mswindows_size_frame_internal):
5530 Fixed the computation of frame size and position to keep the frame
5531 within the workspace area, rather than within the physical
5532 dimensions of the screen, so that the frame doesn't overlap window
5533 manager decorations, such as the start menu and toolbar, typically
5534 at the bottom of the screen.
5536 * frame.c (vars_of_frame):
5537 Changed the default frame title format under MS Windows to consist
5538 of buffername-XEmacs, which is standard under MS Windows. I think
5539 it might be a good idea to change this everywhere because I think
5540 it is superior to the current frame title format, but this is the
5541 kind of change that is likely to cause some people to get annoyed,
5542 so I'm not making it.
5544 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
5546 * gui-msw.c (mswindows_handle_gui_wm_command):
5547 Fixed compile warnings.
5550 * gui-x.c (strdup_and_add_accel):
5551 * gui-x.c (button_item_to_widget_value):
5553 Added code to automatically put an accelerator onto the beginning
5554 of menu items that don't have one as is now the standard, and is
5555 described more later. Also fixed things so that the menu item
5556 name can be an evaluated expression, again a new standard.
5559 * gui.c (gui_item_add_keyval_pair):
5560 * gui.c (make_gui_item_from_keywords_internal):
5561 * gui.c (gui_add_item_keywords_to_plist):
5562 * gui.c (gui_item_accelerator):
5563 * gui.c (gui_name_accelerator):
5564 * gui.c (gui_item_included_p):
5565 * gui.c (gui_item_display_flush_left):
5566 * gui.c (gui_item_display_flush_right):
5567 * gui.c (parse_gui_item_tree_item):
5568 * gui.c (parse_gui_item_tree_children):
5569 * gui.c (parse_gui_item_tree_list):
5570 Mule-ized. Cleanup. GCPRO addition.
5572 * line-number.c (buffer_line_number):
5574 * lisp.h (EMACS_INT_MAX):
5575 Added the manifest constant EMACS_INT_MIN corresponding to the
5576 existing constant EMACS_INT_MAX. This is partially to fix compile
5577 warnings under Windows, and partly for cleanliness.
5580 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
5581 * menubar-msw.c (msw_translate_menu_or_dialog_item):
5582 * menubar-msw.c (displayable_menu_item):
5583 * menubar-msw.c (populate_menu_add_item):
5584 * menubar-msw.c (populate_or_checksum_helper):
5585 * menubar-msw.c (populate_menu):
5586 * menubar-msw.c (update_frame_menubar_maybe):
5587 * menubar-msw.c (prune_menubar):
5588 * menubar-msw.c (msw_char_is_accelerator):
5589 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
5590 * menubar-msw.c (mswindows_handle_wm_command):
5591 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
5592 * menubar-msw.c (mswindows_handle_wm_initmenu):
5593 * menubar-msw.c (mswindows_update_frame_menubars):
5594 * menubar-msw.c (mswindows_free_frame_menubars):
5595 * menubar-msw.c (mswindows_popup_menu):
5596 Fixed a bug in handling accelerators where an extra character
5597 would be displayed in the menu item. Also generalized the
5598 function displayable_menu_item because it is now used by the
5599 dialog box code as well. And finally, added code in the functions
5600 that create the menubar to extract a list of accelerators for the
5601 top level menubar, which is used in the event code to determine
5602 whether a particular alt-key combination should be used to invoke
5603 a menu item, or should be passed through to access the standard
5604 XEmacs keymap binding for this key combination.
5606 Much needed GCPROing.
5609 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5610 * menubar-x.c (menu_item_descriptor_to_widget_value):
5611 * menubar-x.c (restore_in_menu_callback):
5612 * menubar-x.c (x_popup_menu):
5613 * menubar-x.c (menu_move_up):
5614 * menubar-x.c (menu_move_down):
5615 * menubar-x.c (menu_move_left):
5616 * menubar-x.c (menu_move_right):
5617 * menubar-x.c (menu_select_item):
5618 * menubar-x.c (command_builder_operate_menu_accelerator):
5619 * menubar-x.c (menu_accelerator_junk_on_error):
5620 * menubar-x.c (command_builder_find_menu_accelerator):
5621 * menubar-x.c (Faccelerate_menu):
5623 Moved a whole bunch of code here that was previously in
5624 event-stream.c as described above. There is also code connected
5625 to the new standard of adding an accelerator to the beginning of
5626 menu items that don't have one as described above and below.
5629 * menubar.c (menu_parse_submenu_keywords):
5630 * menubar.c (Fmenu_find_real_submenu):
5631 * menubar.c (Fnormalize_menu_item_name):
5632 * menubar.c (syms_of_menubar):
5633 * menubar.c (vars_of_menubar):
5634 * menubar.c (complex_vars_of_menubar):
5636 a) Cleaned up a bunch of documentation and improved it.
5638 b) XEmacs now automatically adds an accelerator onto the beginning
5639 of any menu items that don't have one. I did this because there
5640 will inevitably be some menu items on the main menubar that don't
5641 have accelerators on them because the package that adds that
5642 particular menu item hasn't yet been fixed up to have accelerators
5643 in them and it looked rather strange to have some items with and
5644 some items without accelerators, especially since even in items
5645 without accelerators, you can, at least under windows, still
5646 access the item through an accelerator corresponding to the first
5647 character in the item's name. If people don't like this behavior,
5648 I can add a variable to turn it off optionally, but I'm not sure
5649 this is a good idea because we really do need to have accelerators
5650 on all of the menu items, and if a package doesn't like the
5651 accelerators being put on the first character, then it should put
5652 the accelerators where they belong.
5654 c) I made a behavior change, which is that the descriptor that
5655 specifies the text of the menu item, which formerly was just a
5656 string, can now also be an evaluated expression. This makes this
5657 descriptor parallel with all of the others, which could also be
5658 evaluated expressions. This also obviates the need for the
5659 keyword :label, which was previously listed in the documentation
5660 as unimplemented, and which was for the same purpose.
5665 * ntproc.c (new_child):
5666 * ntproc.c (sys_spawnve):
5667 * ntproc.c (find_child_console):
5668 * ntproc.c (sys_kill):
5669 Fixed compile warnings. By the way, this file should really go
5670 away entirely, and this will happen as soon as Kirill makes his
5671 final round of process cleanups, which affect the function
5675 * process-nt.c (struct nt_process_data):
5676 * process-nt.c (find_process_from_pid):
5677 * process-nt.c (send_signal_the_nt_way):
5678 * process-nt.c (enable_child_signals):
5679 * process-nt.c (find_child_console):
5680 * process-nt.c (send_signal_the_95_way):
5681 * process-nt.c (nt_finalize_process_data):
5682 * process-nt.c (ensure_console_window_exists):
5683 * process-nt.c (nt_create_process):
5684 * process-nt.c (nt_kill_child_process):
5685 * process-nt.c (nt_kill_process_by_pid):
5686 * process-nt.c (nt_open_network_stream):
5687 * process-nt.c (vars_of_process_nt):
5688 Copied over code from Emacs 20.5 to correctly send signals to sub-
5689 processes under Windows 95. Also added code to automatically
5690 create and hide console window when a sub-process is created under
5691 Windows 95, which obviates the need for the separate runemacs.exe
5692 executable, and finally implemented some variables that were
5693 implemented in Emacs 20.5, but previously not in XEmacs. These
5694 include mswindows- start-process-share-console and
5695 mswindows-start-process-inherit-error-mode. (Both of these only
5696 apply to Windows 95.)
5698 * regex.c (regex_compile): Fixed a compile warning.
5701 * select-msw.c (mswindows_own_selection):
5702 * select-msw.c (mswindows_get_foreign_selection):
5703 * select-msw.c (mswindows_disown_selection):
5704 * select-msw.c (console_type_create_select_mswindows):
5705 * select-msw.c (syms_of_select_mswindows):
5706 Cleaned up the file and implemented the device method
5707 selection_exists_p, which had accidentally been left out. Also
5708 removed four lisp functions that were remnants from before the
5709 time when the selection code was properly device abstracted.
5710 These functions are no longer needed because there are generic
5711 equivalents, and because they were added recently and don't exist
5712 in FSF Emacs, I don't think there's any problem with just deleting
5716 * sysdep.c (sys_subshell):
5717 Fixed a compile warning, although in this case there's probably
5718 something wrong with this code, and it ought to be looked into
5719 more thoroughly by somebody who understands it.
5722 * window.c (Fwindow_text_area_height):
5723 * window.c (Fwindow_width):
5724 * window.c (Fwindow_full_width):
5725 * window.c (Fwindow_pixel_width):
5726 * window.c (debug_print_window):
5727 * window.c (syms_of_window):
5728 Added functions window-text-area-height and window-full-width,
5729 which are functions for returning various width and height
5730 characteristics of a window. (One of these functions is necessary
5731 for making the file dialog box work correctly, and the other one
5732 was added for completeness.) Also added a table to the
5733 documentation for window-height which describes the entire scheme
5734 for accessing width and height characteristics of a window.
5736 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5738 * nt.c (fstat): Added a comment for another problem with
5739 non-encapsulated [f]stat(), reported by Adrian Aichner
5740 <aichner@ecf.teradyne.com>.
5742 2000-03-11 Andy Piper <andy@xemacs.org>
5744 * window.c (make_dummy_parent): initialize subwindow instance
5746 (Fset_window_configuration): zero extent_modiff.
5748 2000-03-10 Andy Piper <andy@xemacs.org>
5750 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
5751 more changes can be triggered.
5752 (Fredisplay_frame): ditto.
5753 (Fredraw_device): ditto.
5754 (Fredisplay_device): ditto.
5755 (redisplay_frame): make non-static.
5756 (redisplay_frame): call update_frame_gutter_geometry outside of
5759 * gutter.h: declare update_frame_gutter_geometry.
5761 * redisplay.h: declare redisplay_frame.
5763 * gutter.c (update_frame_gutter_geometry): move geometry changes
5764 in update_frame_gutters here. Geometry changes can only occur
5765 outside of redisplay.
5766 (update_frame_gutters): remove geometry change code.
5767 (Fredisplay_gutter_area): make sure that we are in display when we
5768 update and that we have flushed any size changes.
5770 2000-03-11 Andy Piper <andy@xemacs.org>
5772 * alloc.c (pdump_dump_data): remove i & count shadows.
5774 2000-02-27 Mike Alexander <mta@arbortext.com>
5776 * sysdep.h: Declare pdump_read_file
5778 * sysdep.c (pdump_read_file): New function
5780 * alloc.c (pdump_load): Call pdump_read_file to get the portable
5783 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
5785 * lrecord.h: add `lrecord_type_pgsetenv'.
5787 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
5789 * symsinit.h: declare (vars|syms)_of* functions.
5790 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
5792 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
5794 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
5796 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
5799 * emacs.c (main_1): Call postgres initialization code.
5801 * postgresql.h: New file. PostgreSQL RDBMS support.
5802 * postgresql.c: New file.
5804 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
5806 * redisplay-output.c (redisplay_output_display_block): Disable
5809 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5811 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
5812 (Fcanna_henkan_next): Ditto.
5813 (Fcanna_bunsetu_henkou): Ditto.
5814 (Fcanna_henkan_kakutei): Ditto.
5815 (Fcanna_henkan_end): Ditto.
5816 (Fcanna_henkan_quit): Ditto.
5817 (Fcanna_henkan_next): Set retun value correctly.
5818 (c2mu): Use unsigned char instead of signed char.
5820 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5822 * emacs.c (main_1): Always call syms_of_gui.
5823 * inline.c: include gui.h
5825 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5827 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
5828 converted to Lisp_Object.
5829 (Qtop_bottom): New variable.
5830 (syms_of_redisplay): Initialize it.
5831 * redisplay.h (Vvisible_bell): Ditto.
5832 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
5833 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
5834 only flash top and bottom.
5836 2000-03-08 Andy Piper <andy@xemacs.org>
5838 * buffer.c (Frename_buffer): record new buffer name the right way.
5840 2000-03-08 Andy Piper <andy@xemacs.org>
5842 * glyphs.c (update_subwindow): increase hash depth so that widget
5843 items get picked up properly.
5845 * redisplay-output.c (compare_runes): increase hash depth so that
5846 widget items get picked up properly.
5848 2000-03-08 Andy Piper <andy@xemacs.org>
5850 * gutter.c (output_gutter): add some debug.
5852 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
5853 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
5854 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
5856 * redisplay-output.c (compare_runes): use display_hash to
5857 determine if glyphs really are not the same.
5859 * glyphs.c (update_subwindow): check display_hash to see if
5860 anything really needs to be updated. If not then do
5861 nothing. Record the display_hash after updating.
5862 (image_instance_equal): compare the image_instance face also.
5864 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
5866 * redisplay.h: Fix comment style.
5868 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
5870 * consle-msw.h (struct mswindows_frame):
5871 Added new member paint_pending to indicate whether a WM_PAINT
5872 magic event has been queued for this frame.
5874 * event-msw.c (mswindows_drain_windows_queue):
5875 Don't queue a WM_PAINT magic event if one is already queued.
5876 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
5878 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
5880 2000-03-07 Didier Verna <didier@xemacs.org>
5882 * dired.c: #include `regex.h' after `sysfile.h'.
5884 2000-03-06 Martin Buchholz <martin@xemacs.org>
5886 * sound.c (init_nas_sound): Fix compiler warning.
5888 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
5890 (MARK_STRUCT_AS_FREE):
5891 (MARK_STRUCT_AS_NOT_FREE):
5892 Make `gcc -fstrict-aliasing' work properly.
5894 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
5896 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
5897 (mswindows_delete_device): Call CoUnnitialize().
5899 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
5901 2000-02-25 <CraigL@DyCon.com>
5903 * process-nt.c: MinGW now has <shellapi.h>, but still needs
5906 * sysdep.c: This extern declaration for environ prevents MinGW
5907 from finding the variable in CRTDLL.DLL.
5909 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
5913 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
5915 (MMRESULT): Removed, now defined in cygwin's windows headers.
5917 (uid_t,gid_t,pid_t,ssize_t): ..
5918 (_timeb): Removed, MinGW defines both _timeb and timeb.
5919 (HAVE_H_ERRNO): Added.
5920 (HAVE_TZNAME): Added, configure is not detecting this.
5922 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
5924 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
5925 * syntax.c (syntax_match): Use it.
5927 * cmds.c: Import auto-fill-chars from FSF Emacs.
5928 (Vauto_fill_chars): New variables.
5929 (internal_self_insert): Check Vauto_fill_chars.
5931 Declare auto-fill-chars as a Lisp variable and initialize it.
5933 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
5935 * fileio.c (Fmake_symbolic_link):
5937 Run handlers even if local machine doesn't have symlinks.
5939 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
5941 * event-msw.c (mswindows_drain_windows_queue):
5942 Don't generate paint magic events for non-XEmacs frames.
5944 2000-03-05 Andy Piper <andy@xemacs.org>
5946 * redisplay.c (redisplay_frame): generate_displayable_area and
5947 friends assumes that we are not in GC, we therefore have to make
5948 sure that this doesn't happen.
5950 * gutter.c (calculate_gutter_size): generate_displayable_area
5951 assumes that we are not in GC, we therefore have to make sure that
5952 this doesn't happen.
5954 2000-03-05 Martin Buchholz <martin@xemacs.org>
5956 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
5958 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
5960 * redisplay.c (regenerate_window): Make sure we set a sane value
5961 for end_pos even if we jump out of the loop.
5962 (regenerate_window): Answer Ben's question :-).
5963 (start_end_of_last_line): Add may_error argument.
5964 (start_of_last_line):
5965 (end_of_last_line): Pass may_error = 0.
5966 (end_of_last_line_may_error): New function.
5967 (pixel_to_glyph_translation): Use it, so we don't crash in
5970 2000-03-04 Andy Piper <andy@xemacs.org>
5972 * window.h (struct window): add gutter_extent_modiff.
5974 * window.c (allocate_window): zero out gutter_extent_modiff.
5976 * redisplay.h: declare sync_display_line_structs.
5978 * redisplay.c (add_glyph_rune): add a better comment.
5980 * redisplay-output.c (sync_display_line_structs): made non-static.
5981 (compare_runes): remove unneccesary glyph cachel access.
5983 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
5985 * gutter.c (output_gutter): don't output the gutter if extent
5986 changes only involve extents in buffers. use 4 sets of display
5988 (gutter_extent_signal_changed_region_maybe): new function. Mark
5989 extents in gutters as changed.
5990 (update_frame_gutters): use 4 sets of display lines.
5991 (reset_gutter_display_lines): ditto.
5992 (free_frame_gutters): ditto.
5993 (redraw_exposed_gutter): force output of gutters.
5995 * frame.h (struct frame): add 4 sets of gutter display lines.
5997 * extents.c: (extent_changed_for_redisplay): signal changes to
5998 extents in strings in the gutter as well as extents in buffers.
6000 2000-03-02 Andy Piper <andy@xemacs.org>
6002 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
6004 * frame.c (Fmake_frame): make sure the gutters get initialized
6005 after the frame is visible.
6006 (set_frame_selected_window): re-arrange compilation macros a
6008 (change_frame_size_1): mark gutters changed.
6010 * device.c (Fset_device_class): mark gutters changed.
6012 2000-03-01 Andy Piper <andy@xemacs.org>
6014 * window.c (window_top_frame_gutter_height): deleted.
6015 (window_bottom_frame_gutter_height): ditto.
6016 (window_left_frame_gutter_height): ditto.
6017 (window_right_frame_gutter_height): ditto.
6018 (window_top_gutter_height): don't use them.
6019 (window_bottom_gutter_height): ditto.
6020 (window_left_gutter_width): ditto.
6021 (window_right_gutter_width): ditto.
6022 (Fsplit_window): ditto.
6023 (Fwindow_pixel_edges): don't use border dimensions here.
6025 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
6026 (update_scrollbar_instance): ditto.
6028 * redisplay.c (generate_modeline): don't take gutters into account.
6029 (generate_modeline): ditto.
6030 (redisplay_frame): small gutter display optimisation.
6032 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
6034 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
6035 gutters into account.
6037 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
6038 for window position and type.
6040 * gutter.c (get_gutter_coords): fix for frame gutters.
6041 (update_frame_gutters): update frame geometry if the gutters have
6043 (init_frame_gutters): record current gutter geometries.
6045 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
6047 (mswindows_widget_instantiate): ditto.
6049 * frame.h (struct frame): add current_gutter_bounds.
6051 * frame.c (change_frame_size_1): position window and minibuffer
6052 appropriately taking into account the frame gutters.
6054 * frame-x.c: (x_initialize_frame_size): take into account the
6057 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
6059 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
6061 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
6063 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
6065 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6067 * file-coding.c (reset_decoding_stream): Clear previous
6068 detection state when autodetect.
6070 2000-02-29 Didier Verna <didier@xemacs.org>
6072 * extents.c (set_extent_glyph_1): don't require extents to be
6075 2000-02-27 Andy Piper <andy@xemacs.org>
6077 * gutter.c (Fset_default_gutter_position): don't default left and
6078 right gutter visibility to t.
6079 (Fset_default_gutter_position): run
6080 default-gutter-position-changed-hook.
6081 (syms_of_gutter): add default-gutter-position-changed-hook.
6083 2000-02-26 Andy Piper <andy@xemacs.org>
6085 * specifier.c (Fmake_specifier): add gutter references.
6087 * gutter.h (RAW_WINDOW_GUTTER): new macro.
6089 * lisp.h: declare Fvalid_plist_p.
6091 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
6093 (default_gutter_visible_p_changed_in_window): invalidate gutter as
6094 well as its visibility so that it gets reconstructed.
6095 (construct_window_gutter_spec): new function. Construct a string
6096 to be displayed in the gutter from a plist of strings. Take care
6097 to only use elements that are declared as visible.
6098 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
6100 (gutter_validate): allow plists of strings in the specifier.
6101 (gutter_specs_changed): construct the real_gutter from the gutter
6102 specs using construct_window_gutter_spec.
6103 (gutter_visible_validate): gutter-visible is a new specifier type.
6104 (Fgutter_visible_specifier_p): new function for the new specifier.
6105 (syms_of_gutter): declare gutter-visible and
6106 Fgutter_visible_specifier_p.
6107 (specifier_type_create_gutter): intitalize new gutter-visible
6109 (reinit_specifier_type_create_gutter): ditto.
6110 (specifier_vars_of_gutter): use new specifier type for gutter
6112 (init_frame_gutters): construct real_gutter correctly.
6113 (Fgutter_specifier_p): beef up documentation.
6114 (Fgutter_size_specifier_p): ditto.
6116 * winslots.h: add real_gutter slots.
6118 2000-02-25 Andy Piper <andy@xemacs.org>
6120 * device-msw.c: Be kind to older cygwin versions. From Raymond
6121 Toy <toy@rtp.ericsson.se>.
6123 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
6124 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
6126 2000-02-25 Martin Buchholz <martin@xemacs.org>
6128 * elhash.c (MARK_OBJ): Practice macro hygiene.
6130 2000-02-24 Martin Buchholz <martin@xemacs.org>
6132 * miscplay.c: s/__inline__/inline/g;
6133 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
6134 (get_device_compdc): INLINE ==> static inline
6135 * *.[ch]: Change INLINE to INLINE_HEADER globally.
6136 find -name '*.h' | \
6137 xargs global-replace \
6138 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
6140 2000-02-25 Andy Piper <andy@xemacs.org>
6142 * window.c (window_top_frame_gutter_height): new function.
6143 (window_top_window_gutter_height): ditto.
6144 (window_top_gutter_height): use them.
6145 (window_bottom_frame_gutter_height): new function.
6146 (window_bottom_window_gutter_height): ditto.
6147 (window_bottom_gutter_height): use them.
6148 (window_left_window_gutter_width): new function.
6149 (window_left_frame_gutter_width): ditto.
6150 (window_left_gutter_width): use them.
6151 (window_right_window_gutter_width): new function.
6152 (window_right_frame_gutter_width): ditto.
6153 (window_right_gutter_width): use them.
6154 (window_pixel_height): new function. calulate window pixel height
6155 with frame gutter involvement.
6156 (Fsplit_window): calculate new sizes taking frame gutters into
6158 (window_char_height_to_pixel_height): don't include frame gutters.
6159 (window_char_height): use window_pixel_height.
6160 (window_pixheight): rename from window_pixel_height.
6161 (change_window_height): use it.
6162 (window_pixel_height_to_char_height): don't include frame gutters.
6163 (window_char_width_to_pixel_width): ditto.
6165 2000-02-25 Andy Piper <andy@xemacs.org>
6167 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
6170 2000-02-24 Martin Buchholz <martin@xemacs.org>
6172 * alloc.c (staticpro):
6178 (compact_string_chars):
6180 Convert: if (foo) abort(); ==> assert (! foo);
6182 * eldap.c (Fldap_search_basic):
6186 Fix compiler warnings, and possible crashes if (random) return
6187 value were to be used.
6189 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6191 * device-msw.c: Workaround ResetDC failure.
6193 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
6196 * redisplay-msw.c (get_frame_dc): Added start_page_p.
6197 (mswindows_text_width): Do not start printer page.
6199 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
6201 * glyphs-msw.c: Added image methods to msprinter console and
6202 msprinter-specific image instantiation.
6204 2000-02-20 Mike Alexander <mta@arbortext.com>
6206 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
6207 to avoid crashes when selection-sets-clipboard is on
6208 (mswindows_own_selection): ditto
6210 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6213 * redisplay-msw.c (get_frame_dc):
6216 * device-msw.c (mswindows_init_device):
6217 (mswindows_delete_device):
6218 (msprinter_init_device):
6219 (msprinter_delete_device):
6220 * frame-msw.c (mswindows_init_frame_1):
6221 (mswindows_delete_frame):
6222 (msprinter_init_frame_3):
6223 (msprinter_delete_frame): Move compatible DC to device object from
6224 frame object, for both mswindows and msprinter. Only one at a time
6225 is needed, it is a real waste to have one per frame!
6227 2000-02-23 Andy Piper <andy@xemacs.org>
6229 * glyphs.c: add dynamic width and height elements.
6230 (image_instance_equal): ditto.
6232 * glyphs-widget.c (widget_query_geometry): calculate width and
6233 height dynamically if required.
6234 (initialize_widget_image_instance): initialize dynamic dimensions.
6235 (widget_instantiate): pick-up dynamic dimensions.
6237 * glyphs.h (struct Lisp_Image_Instance): add width and height for
6238 dynamic determination. Add appropriate macros.
6240 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
6242 (WINDOW_GUTTER_SIZE): ditto.
6243 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
6245 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
6247 (get_frame_dc): ditto.
6249 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
6252 2000-02-23 Martin Buchholz <martin@xemacs.org>
6254 * XEmacs 21.2.31 is released.
6256 2000-02-22 Ben Wing <ben@xemacs.org>
6258 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
6260 2000-02-22 Andy Piper <andy@xemacs.org>
6262 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
6264 2000-02-21 Mike Sperber <mike@xemacs.org>
6268 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
6271 2000-02-21 Mike Sperber <mike@xemacs.org>
6273 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
6275 2000-02-21 Martin Buchholz <martin@xemacs.org>
6277 * XEmacs 21.2.30 is released.
6279 2000-02-20 Martin Buchholz <martin@xemacs.org>
6281 Performance hacking.
6283 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
6284 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
6287 * console.c (DEFVAR_CONSOLE_LOCAL_1):
6288 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
6289 * symeval.h (DEFVAR_SYMVAL_FWD):
6290 * symbols.c (guts_of_unbound_marker):
6291 Make all c_readonly objects also lisp_readonly and marked for life.
6292 * lrecord.h (struct lrecord_implementation):
6293 Document flags better.
6294 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
6295 * lrecord.h (DECLARE_LRECORD):
6296 * lrecord.h (XSETRECORD):
6297 * lrecord.h (RECORDP):
6298 * lrecord.h (RECORD_TYPEP):
6299 * lrecord.h (RECORD_MARKER): New.
6300 * lrecord.h (error_check_*):
6301 * lrecord.h (CONCHECK_NONRECORD):
6302 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
6303 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
6304 * lrecord.h (set_lheader_implementation):
6305 * lrecord.h (enum lrecord_type): New.
6306 * symeval.h (SYMBOL_VALUE_MAGIC_P):
6307 * alloc.c (disksave_object_finalization_1):
6308 * alloc.c (mark_object):
6309 * alloc.c (lrecord_type_index):
6310 * alloc.c (tick_lcrecord_stats):
6311 * alloc.c (Fgarbage_collect):
6312 * alloc.c (init_alloc_once_early):
6313 * alloc.c (pdump_load):
6314 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
6315 * alloc.c (lrecord_type_index): Delete.
6316 Make lisp object type indexes be constant.
6317 Makes (byte-compile) 5% faster.
6318 Put all marker functions into their own array.
6319 Makes (garbage-collect) 5% faster.
6320 Optimize SYMBOL_VALUE_MAGIC_P.
6321 Makes (byte-compile) 2-3% faster.
6322 * config.h.in (gc_checking_assert): New.
6323 * alloc.c: Use gc_checking_assert().
6324 * .dbxrc: Make compatible with new object type implementation.
6325 * .gdbinit: Make compatible with new object type implementation.
6326 * alloc.c: Delete all symbols defined only for debugging, such as
6327 Lisp_Type_Vector and lrecord_charset.
6329 2000-02-21 Andy Piper <andy@xemacs.org>
6331 * gui-msw.c (Fmswindows_shell_execute): fix file location
6334 * buffer.c (Fkill_buffer): remove buffer from alist buffer
6335 unshowing so that set_window_buffer doesn't undo
6336 kill_buffer_hook's hard work.
6338 * glyphs-widget.c (tab_control_query_geometry): don't count the
6339 first item when calculating geometry.
6341 * glyphs.c (map_subwindow): remove redundant code.
6342 (update_frame_subwindows): be more circumspect about when to
6345 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
6346 when items haven't changed. Update faces if faces have changed as
6347 well as just the widget face.
6348 (x_tab_control_update): Update faces if faces have changed as well
6349 as just the widget face.
6351 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
6353 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
6355 (build_syscolor_string): Use mswindows_color_to_string to try to
6357 (mswindows_device_system_metrics): Reverse the foreground and
6358 background colors so that they match the documentation.
6360 * objects-msw.c: (mswindows_X_color_map): tweak some values so
6361 they match the default Windows palette.
6362 (mswindows_color_to_string): New function.
6364 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
6366 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
6368 2000-02-18 Olivier Galibert <galibert@pobox.com>
6370 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
6371 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
6373 * symbols.c (init_symbols_once_early): Removed obsolete
6374 DATA_SEG_BITS related kludge.
6375 (defvar_magic): Ditto.
6377 * malloc.c: Removed obsolete DATA_SEG_BITS
6379 * mem-limits.h: Ditto.
6381 * Makefile.in.in: Removed obsolete HAVE_SHM
6384 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
6386 * device-msw.c (mswindows_delete_device): Free DDE string
6389 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6391 * keymap.c (get_keyelt):
6392 * unexnt.c (unexec):
6393 * vm-limit.c (memory_warnings):
6394 * ntheap.c (recreate_heap):
6395 * ntheap.h (UNINIT_PTR):
6396 * select-msw.c (Fmswindows_get_clipboard):
6397 (Fmswindows_set_clipboard):
6398 * objects-msw.h (MSWINDOWS_BAD_HFONT):
6400 * menubar-msw.c (displayable_menu_item):
6402 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
6403 * sysdep.c (sys_subshell):
6404 * process-nt.c (nt_create_process):
6405 * nt.c (normalize_filename):
6406 (dostounix_filename):
6407 (unixtodos_filename):
6408 * ntproc.c (win32_executable_type):
6409 * ntplay.c (play_sound_data_1):
6411 * editfns.c (get_home_directory):
6412 * event-msw.c (struct winsock_stream):
6413 (mswindows_dde_callback):
6414 * device-msw.c (msprinter_init_device):
6415 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
6417 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
6418 mswindows_clear_toolbar were swapped!
6420 * objects-msw.c:(colormap_t):
6422 * emacs.c (struct standard_args): Fixed const jumble.
6424 * glyphs-widget.c (update_widget): Fixed comparison notation.
6426 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
6428 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
6429 __declspec(noreturn) syntax.
6431 2000-02-19 Martin Buchholz <martin@xemacs.org>
6433 * eldap.c (Fldap_open):
6434 (Fldap_search_basic):
6437 Use new coding system conversion macros.
6439 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6441 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
6443 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
6445 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
6446 (Fldap_add, Fldap_modify, Fldap_delete): New functions
6448 * eldap.c (Qadd, Qreplace): New constant symbols
6449 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
6450 interruptions by XEmacs signals
6451 Remove unnecessary calls to slow_down_interrupts and
6453 (Fldap_search_basic): Renamed from Fldap_search_internal
6454 Added new optional parameter VERBOSE that triggers the
6455 display of progress messages
6456 Remove unnecessary calls to slow_down_interrupts and
6458 LDAP result code analysis rewritten
6459 (Fldap_add, Fldap_modify, Fldap_delete): New functions
6460 (syms_of_eldap): Define the new symbols and functions
6463 2000-02-17 Martin Buchholz <martin@xemacs.org>
6465 * realpath.c: Determine PATH_MAX maximally portably.
6467 * insdel.c (bytecount_to_charcount): Optimize.
6468 The function used to be optimized for entirely ASCII sequences.
6469 Now it is optimized for successive characters from the same
6470 charset. This also wins big for _mostly_ ASCII sequences.
6472 * fileio.c (Ffile_truename): convert return from realpath() using
6473 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
6474 - Rewrite GCPROing slightly.
6476 * sysdep.c (sys_open): Do filename conversion, like all other
6477 sys_* functions. Fixes bug:
6478 (let ((file-name-coding-system 'iso-8859-2))
6479 (write-region x y latin2-name))
6480 ==> writes filename using internal encoding.
6482 2000-02-18 Martin Buchholz <martin@xemacs.org>
6484 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
6485 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
6486 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
6487 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
6488 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
6489 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
6490 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
6491 (CONST_IF_NOT_DEBUG): Delete.
6492 * alloc.c (this_one_is_unmarkable): Delete.
6493 (mark_object): Don't check for this_one_is_unmarkable. Use the
6494 c_readonly flag instead.
6495 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
6497 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
6499 * event-msw.c (mswindows_drain_windows_queue):
6500 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
6501 away redundant repaint events.
6503 2000-02-17 Andy Piper <andy@xemacs.org>
6505 * redisplay.h: declare mark_redisplay_structs.
6507 * redisplay.c (redisplay_window):
6508 (redisplay_frame): don't check subwindows_state_changed.
6509 (mark_redisplay): mark gutters here.
6511 * glyphs.c: (instantiate_image_instantiator): always layout if we
6512 haven't done so already.
6513 (allocate_image_instance): don't mark as dirty.
6514 (update_subwindow): bind inhibit_quit.
6516 * gutter.c (mark_gutters): new function.
6518 * glyphs-x.c (x_update_widget): Always resize to get round a
6521 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
6522 breaking absolutely everything.
6524 * gutter.h: declare mark_gutters.
6526 2000-02-16 Martin Buchholz <martin@xemacs.org>
6528 * XEmacs 21.2.29 is released.
6530 2000-02-15 Olivier Galibert <galibert@pobox.com>
6532 * fns.c (size_bit_vector): Fix computation of the size.
6534 2000-02-15 Martin Buchholz <martin@xemacs.org>
6536 * *.[ch]: Change CONST to const globally.
6537 find -name '*.[ch]' | \
6538 xargs global-replace \
6539 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
6540 - Remove vestigial references to CONST_IS_LOSING
6542 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
6544 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
6545 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
6546 events instead of dispatching them directly.
6547 (mswindows_handle_paint): New function to do repainting.
6548 (mswindows_wnd_proc):
6549 (emacs_mswindows_handle_magic_event): Call above function.
6551 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
6553 * objects-msw.c (mswindows_create_font_variant): Return the new
6555 (initialize_font_instance): Get font metrics from the underlined
6556 variant of the font to cope with the case where the underlined
6557 font has a bigger descent.
6559 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6561 * gui.c (gui_item_accelerator): Return the first underlined
6562 character in item name.
6564 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6566 * lisp.h: Added Qprinter.
6568 * general.c (syms_of_general): Initialized it.
6570 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
6572 (get_frame_compdc): Made inline.
6574 * console.h (struct console_methods): Added eject_page method.
6576 * frame.h: Added FRAME_DISPLAY_P and friends.
6577 Aligned backslahes in many macros in more readable fashion.
6578 Added page_number to struct frame, and an accessor macro
6581 * defice.h: Added DEVICE_DISPLAY_P and friends.
6583 * device.c (Fdevice_printer_p): Used these.
6585 * frame.c (allocate_frame_core): Initialize page number.
6586 (Fprint_job_page_number):
6587 (Fprint_job_eject_page): Implemented.
6589 * frame-msw.c (msprinter_eject_page): Added method.
6590 (msprinter_start_page): Added.
6592 * window.c (Fwindow_truncated_p): Fixed docstring.
6593 (Fwindow_last_line_visible_height): Implemented.
6595 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
6597 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
6599 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6601 * syntax.c (scan_words): Always advance at least one character.
6603 2000-02-13 Andy Piper <andy@xemacs.org>
6605 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
6606 to make sure the glyph is in the cachels.
6608 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
6609 global image instance flag.
6610 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
6611 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
6613 * glyphs.c (allocate_image_instance): set dirty bits correctly.
6614 (Fset_image_instance_property): mark layout as changed.
6615 (invalidate_glyph_geometry_maybe): mark layout as changed.
6616 (glyph_width): use new NEEDS_LAYOUT macro.
6617 (glyph_ascent): ditto.
6618 (glyph_descent): ditto.
6619 (glyph_height): ditto.
6620 (image_instance_layout): mark layout as clean after laying out.
6621 (update_subwindow): don't mark layout as clean here.
6623 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
6624 should no longer be needed.
6626 * glyphs-x.c (x_update_widget): sanitize asserts.
6627 (x_finalize_image_instance): sanitize assignment to widgets.
6629 * glyphs-widget.c (widget_instantiate): don't need to clear the
6632 2000-02-13 Martin Buchholz <martin@xemacs.org>
6634 * sysdep.c (getcwd): Use standard prototype.
6635 * sysdep.h (getcwd): Use standard prototype.
6637 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
6638 (sequence, start, end).
6639 Remove redundant type checking.
6640 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
6641 view of `caller-protects') to avoid a crash where the real fix was
6644 2000-02-12 Martin Buchholz <martin@xemacs.org>
6646 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
6648 * s/sol2.h: Remove feature macro initialization.
6650 * alloc.c (alloc_lcrecord): Add more type checking assertions.
6651 (vector_hash): New. Code from internal_hash.
6653 Fix up allocation subsystem comments.
6655 * config.h.in: Add __EXTENSIONS__ for Solaris.
6657 * systime.h (EMACS_GETTIMEOFDAY): New.
6658 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
6659 Remove Solaris-specific code.
6660 Use void* for the (ignored) second arg for gettimeofday().
6662 * elhash.c (hash_table_hash): Implement it, finally.
6663 * elhash.c: Use hashcode_t.
6665 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
6666 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
6668 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
6669 * fns.c (size_bit_vector):
6670 * alloc.c (size_vector):
6671 (make_vector_internal):
6672 (make_bit_vector_internal):
6673 (sweep_bit_vectors_1):
6674 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
6676 2000-02-10 Martin Buchholz <martin@xemacs.org>
6678 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
6679 Include strings.h to avoid warnings for bzero and strcasecmp.
6681 2000-02-10 Olivier Galibert <galibert@pobox.com>
6683 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
6684 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
6686 * fns.c (size_bit_vector): New. Declare bit vectors as a
6689 2000-02-10 Olivier Galibert <galibert@pobox.com>
6691 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
6692 use a value field instead.
6693 (symbol_value_forward_forward): Use value field.
6694 (DEFVAR_SYMVAL_FWD): Use value field.
6695 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
6696 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
6697 (DEFVAR_CONST_INT): Ditto.
6698 (DEFVAR_BOOL): Ditto.
6699 (DEFVAR_CONST_BOOL): Ditto.
6700 (DEFVAR_INT_MAGIC): Ditto.
6701 (DEFVAR_BOOL_MAGIC): Ditto.
6703 * symbols.c (guts_of_unbound_marker): Use value field.
6704 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
6705 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
6707 * lisp.h: Declare dumpopaque and noninteractive1.
6709 * alloc.c (dumpopaque): Added.
6710 (pdump_dump_opaquevec): Added.
6711 (pdump): Call pdump_dump_opaquevec to dump opaque data.
6712 (pdump_load): Reload opaque data. Sync noninteractive1 with
6715 2000-02-10 Andy Piper <andy@xemacs.org>
6717 * glyphs.c (image_instance_layout): if the size changes, mark it
6720 * redisplay-output.c (redisplay_output_layout): Update the
6722 (redisplay_output_subwindow): ditto.
6724 * glyphs.c (update_subwindow): make sure we reset flags for
6725 layouts as well as everything else.
6727 * glyphs-widget.c (layout_layout): don't need to set the instances
6730 2000-02-09 Martin Buchholz <martin@xemacs.org>
6732 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
6733 not HAVE_DLOPEN, which is a lower-level thing.
6735 * .cvsignore: Ignore gmon.out
6737 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
6739 * .cvsignore: Ignore portable dumper xemacs.dmp file
6741 2000-02-09 Andy Piper <andy@xemacs.org>
6743 * redisplay-output.c (redisplay_output_layout): be more clever
6744 about when we output based on the changed flags.
6746 * glyphs.h (struct image_instantiator_methods): add update_method.
6747 (struct Lisp_Image_Instance): add changed flags. Declare new
6748 macros for manipulating them.
6750 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
6751 (image_instance_parent_glyph): find an image_instance's parent
6752 glyph or image_instance.
6753 (image_instance_layout): mark the size as changed.
6754 (set_image_instance_dirty_p): new function. mark an image
6755 instance, plus all of its parents, as dirty.
6756 (Fset_image_instance_property): use it.
6757 (Fglyph_animated_timeout_handler): use it.
6758 (update_subwindow): call update_widget and device methods for
6759 update_subwindow. Mark all changed flags as clean.
6760 (Fresize_subwindow): mark size as changed.
6762 * glyphs-x.c (x_finalize_image_instance): try and detect gc
6764 (x_update_subwindow): only resize subwindows here.
6765 (x_update_widget): new function. Update all changed properties of
6767 (x_resize_subwindow): deleted.
6768 (x_widget_set_property): deleted.
6769 (x_progress_gauge_set_property): deleted.
6770 (x_progress_gauge_update): new function. Implement recorded
6772 (x_tab_control_update): ditto.
6773 (x_tab_control_set_property): deleted.
6774 (console_type_create_glyphs_x): declare new functions.
6775 (image_instantiator_format_create_glyphs_x): ditto.
6777 * glyphs-widget.c (widget_set_property): mark text changed.
6778 (update_widget): new function. Update properties of a widget.
6779 (widget_instantiate): for layouts make sure we set their
6780 children's parent correctly.
6781 (tab_control_set_property): new function. Record changes that will
6782 take place under redisplay's control.
6783 (progress_gauge_set_property): ditto.
6784 (image_instantiator_progress_guage): declare new functions.
6785 (image_instantiator_tab_control): ditto.
6787 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
6789 (mswindows_update_widget): new function. Update all properties on
6790 a widget that have changed.
6791 (mswindows_button_update): new function. Update a button's set
6793 (mswindows_tab_control_update): new function. Update the items in
6795 (mswindows_tab_control_set_property): deleted.
6796 (mswindows_progress_gauge_update): new function. Update the
6797 progress gauge's progress.
6798 (mswindows_widget_set_property): deleted. This is all done
6800 (mswindows_progress_gauge_set_property): ditto.
6801 (console_type_create_glyphs_mswindows): declare new methods.
6802 (image_instantiator_format_create_glyphs_mswindows): ditto.
6804 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
6805 (msprinter_set_frame_properties): ditto.
6807 * console.h (struct console_methods): Add update_widget_method.
6809 2000-02-09 Andy Piper <andy@xemacs.org>
6811 * gui-msw.c (Fmswindows_shell_execute): Make
6812 mswindows-shell-execute industrial strength.
6814 2000-02-08 Martin Buchholz <martin@xemacs.org>
6816 * lrecord.h: Make macro argument `props' match member function `plist'.
6820 * fns.c (Fobject_plist):
6823 Object property list frobbing cleanup.
6824 - Allow any lisp object (compared with `eq'), not just symbols, as
6825 keys in object plists.
6826 - Move symbol plist frobbing into symbols.c, where it belongs.
6827 - Move string plist frobbing into alloc.c, where it belongs.
6828 - Everything's an lrecord now, so no need to test for symbolp, etc.
6829 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
6831 * extents.c: Reorder code to remove declarations.
6833 * frame.h (store_in_alist): Remove useless declaration.
6835 2000-02-07 Martin Buchholz <martin@xemacs.org>
6837 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
6838 * config.h.in: Add HAVE_XCONVERTCASE.
6840 2000-02-07 Andy Piper <andy@xemacs.org>
6842 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
6843 it breaks many things.
6845 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
6847 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
6848 actually can start a common comment type.
6849 * src/syntax.h (SYNTAX_END_P): ditto for end.
6851 2000-02-07 Martin Buchholz <martin@xemacs.org>
6853 * XEmacs 21.2.28 is released.
6855 2000-02-06 Martin Buchholz <martin@xemacs.org>
6857 * event-Xt.c (x_keysym_to_character): New.
6858 (maybe_define_x_key_as_self_inserting_character): New.
6859 (x_has_keysym): New.
6860 Auto-define all keys on the keyboard as self-insert-key.
6862 2000-02-02 Martin Buchholz <martin@xemacs.org>
6864 * menubar.c (vars_of_menubar): A small code simplification.
6866 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
6873 Use consistent style for specifying X resources.
6875 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
6876 This makes (dontusethis-set-symbol-value-handler) actually usable.
6878 * lrecord.h (lrecord_decription_type):
6879 * alloc.c (pdump_register_sub):
6882 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
6883 Comply with XEmacs coding style.
6884 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
6885 args, and XD_LISP_OBJECT_ARRAY with 3 args.
6887 * keymap.c (Faccessible_keymaps):
6888 Make (accessible-keymaps map "\C-h") do the Right Thing.
6889 Make (accessible-keymaps map []) do the Right Thing.
6890 Make (accessible-keymaps map "") do the Right Thing.
6891 (check_keymap_definition_loop): New function.
6892 (keymap_store_internal): Keep luser from shooting self in foot,
6893 via (define-key ctl-x-4-map "p" global-map).
6894 Remove fullness slot from struct Lisp_Keymap, since hash tables
6896 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
6898 2000-01-30 Martin Buchholz <martin@xemacs.org>
6900 * redisplay.c (init_redisplay): Fix small memory leak.
6902 * elhash.c (pdump_reorganize_hash_table):
6903 Rename from reorganize_hash_table. Change prototype.
6904 Reuse the original memory for hentries. Save 100k.
6905 * alloc.c (PDUMP_READ): new macro.
6906 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
6907 * alloc.c: No need to #ifndef before #undef.
6909 * print.c: Allow debug_print() to print readably by modifying
6910 debug_print_readably. Use consistent variable names.
6912 * .dbxrc: Try to get things to work even if stopped in a function
6913 without source available by explicitly specifying source files.
6914 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6916 * unexnt.c (_start): Removed bogus code which caused loading heap
6917 from differrent executable file.
6918 Removed bogus assignment to _fmode, which caused inconsistencies.
6920 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6922 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
6923 Have spawnve encapsulation regard DONT_ENCAPSULATE.
6924 Do not preliminary `#define signal sigset'.
6926 * systime.h: Do not prototype environ on windows nt and cygwin,
6927 this conflicts with system header.
6929 * syssignal.h: Use correct define for WINDOWSNT
6931 * sysdep.h: Do not prototype environ on windows nt, this conflicts
6934 * sysdep.c (near start of file): Fixed commentary and rearranged
6935 ifdefs in readable order.
6936 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
6939 (end_of_data): Do not compile in if using PDUMP.
6941 * symsinit.h: Protptyped vars_of_nt().
6943 * ntproc.c (windows9x_p): Added, instead of os_subtype.
6944 (find_child_console): Use it.
6947 * ntheap.h: Do not extern os_subtype.
6949 * ntheap.c (cache_system_info): Do not cache unneeded:
6950 nt_major_version, nt_minor_version and os_subtype.
6951 (recreate_heap): Do not compile in when PDUMPing.
6953 * nt.c (geteuid and friends): Use the new varibale
6954 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
6955 (init_user_info): Removed the above mentioned hackery.
6956 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
6957 stat has been fixed in the C runtime.
6958 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
6960 * file-coding.c (struct file_coding_dump): Do not define
6961 ucs_to_mule_table in the struct if not MULE.
6962 (struct struct lrecord_description fcd_description_1): Do not dump
6965 * emacs.c (main_1): Call vars_of_nt().
6966 (right before Fdump_emacs_data): Don't need lastfile if using both
6967 portabe dumper and system malloc.
6969 * alloc.c (Fmemory_limit): Conditionalized out.
6970 (pdump): Use OPEN_BINARY for the portable dump file.
6971 (pdump_load): Ditto.
6973 2000-02-02 Mike Alexander <mta@arbortext.com>
6975 * nt.c (convert_time): Set tm_isdst before calling mktime and
6976 avoid calling it at all if the compiler supports 64 bit integers.
6977 Also initialize utc_base_ft before using it.
6979 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6981 * frame.c (change_frame_size_1): Take f->internal_border_width
6982 into consideration when calculating the width of the frame.
6984 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6986 * window.c (frame_min_height):
6987 (frame_size_valid_p):
6988 (frame_pixsize_valid_p): Added.
6989 (check_frame_size): Generalized.
6991 * window.h: Prototyped the above.
6994 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
6995 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
6996 Deleted Vwin32_* and Vbinary_process_* unused variables.
6998 * device-msw.c (msprinter_init_device): Do not get printer font
6999 list; Added DEVMODE functions.
7001 * frame-msw.c: Added lots of printer code.
7003 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
7006 * console-msw.h: Added more msprinter device private slots.
7008 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7010 * event-msw.c (key_needs_default_processing_p): Added.
7011 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
7013 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7015 * glyphs.c (image_instance_layout): Mark image instance as clean
7017 (glyph_dirty_p): Removed redundant function.
7018 (invalidate_glyph_geometry_maybe): Added.
7019 (update_glyph_cachel_data): Call it.
7021 * glyphs.h: Prototyped it.
7023 * redisplay.c (add_glyph_rune): Call it.
7024 (redisplay_window): Reset glyphs cachels when frame faces has
7025 changed, thus forcing recomputation of built-in border glyphs.
7027 2000-01-30 Martin Buchholz <martin@xemacs.org>
7029 * Makefile.in.in: Make portable dumper and purify play well together.
7030 Add imperfect, but better than nothing, support for pdump.
7031 Remove xemacs.dmp when temacs is re-generated.
7032 Don't ignore errors when dumping xemacs.
7034 * symbols.c (maybe_call_magic_handler): Remove one magic number.
7036 2000-01-28 Andy Piper <andy@xemacs.org>
7038 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
7039 (setup_normal_frame): ditto.
7040 (setup_frame_without_minibuffer): ditto.
7041 (setup_minibuffer_frame): ditto.
7042 (delete_frame_internal): ditto.
7043 (Fmake_frame_invisible): ditto.
7044 (Ficonify_frame): ditto.
7046 * window.h: change Fset_window_buffer signature.
7048 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
7049 (Fset_window_buffer): allow recording of buffer if the window is
7050 the selected window.
7051 (window_loop): Use new Fset_window signature.
7053 2000-01-23 Daniel Pittman <daniel@danann.net>
7055 * config.h.in: Added template for `HAVE_ATHENA_3D'
7057 2000-01-29 Andy Piper <andy@xemacs.org>
7059 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
7061 * gutter.c (output_gutter): Don't output if the window isn't live.
7063 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7065 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
7066 of 01/12/00: Moved SetFocus back here where it belongs.
7068 2000-01-23 Andy Piper <andy@xemacs.org>
7070 * s/cygwin32.h: declare printer things.
7072 2000-01-26 Andy Piper <andy@xemacs.org>
7074 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
7077 2000-01-24 Andy Piper <andy@xemacs.org>
7079 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
7080 (mswindows_button_instantiate): Make sure glyph is a pixmap.
7082 * glyphs-widget.c (widget_instantiate): Avoid shadows.
7084 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
7086 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
7088 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
7089 (mswindows_output_display_block): Avoid local shadows.
7091 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
7092 (mswindows_enqueue_mouse_button_event): ditto.
7093 (mswindows_handle_gui_wm_command): remove declaration.
7095 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
7098 * console-msw.h: Avoid shadows.
7099 (mswindows_get_toolbar_button_text):
7100 (emacs_mswindows_create_stream_pair):
7101 (emacs_mswindows_delete_stream_pair):
7102 (mswindows_handle_toolbar_wm_command): declare.
7104 * device-msw.c (build_syscolor_string): Avoid shadows.
7106 2000-01-23 Andy Piper <andy@xemacs.org>
7108 * glyphs-widget.c (widget_instantiate): reverse the items for
7109 layouts so that children are in the expected order.
7111 2000-01-28 Martin Buchholz <martin@xemacs.org>
7113 * ralloc.c: safe_bcopy ==> memmove
7114 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
7115 * s/msdos.h: Remove BCOPY macros.
7116 * insdel.c (gap_right): Remove BCOPY conditional code.
7117 * insdel.c (gap_left): Remove BCOPY conditional code.
7118 XEmacs demands a working ANSI C compiler - hence memmove.
7120 * regex.c (regex_compile): Remove accidental use of trigraphs.
7122 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7124 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
7127 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7129 * event-msw.c (mswindows_drain_windows_queue): Added the
7131 (mswindows_need_event): Commented the call to
7132 mswindows_drain_windows_queue().
7133 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
7136 * console-msw.h: Moved a few function prototypes here from
7139 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
7140 parameter from unsigned short to unsigned long.
7141 (Fmswindows_shell_execute): Added return value.
7143 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
7145 * sysdep.c (init_system_name):
7146 process-unix.c (unix_canonicalized_host_name):
7147 Don't call freeaddrinfo() if getaddrinfo() fails.
7149 * process-unix.c (unix_open_unix_network_stream):
7150 Moved the code to get a port # into address loop.
7152 2000-01-27 Martin Buchholz <martin@xemacs.org>
7154 * buffer.c (reinit_vars_of_buffer):
7155 The right place to initialize conversion_in_dynarr and
7156 conversion_out_dynarr.
7158 * alloc.c (pdump): Use the real open() till sys_open() is functional.
7160 * process-unix.c (unix_canonicalize_host_name): Muleize.
7161 (unix_open_network_stream): Muleize.
7163 * buffer.h: Fix up prototypes for ralloc.c functions.
7165 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
7166 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
7167 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
7168 instead of gethostbyname()
7169 * process-unix.c: In unix_canonicalize_host_name() and
7170 unix_open_network_stream(), add code to use getaddrinfo()
7171 instead of gethostbyname().
7173 2000-01-27 Daniel Pittman <daniel@danann.net>
7175 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
7176 libs when built with flat Athena.
7178 2000-01-27 Martin Buchholz <martin@xemacs.org>
7180 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
7181 Use coding standards for function prototypes.
7183 2000-01-25 Martin Buchholz <martin@xemacs.org>
7185 * dialog-msw.c (push_lisp_string_as_unicode):
7186 * doc.c (unparesseuxify_doc_string):
7187 * dired.c (Fuser_name_completion_1):
7188 * dired.c (Fuser_name_all_completions):
7189 * dired.c (free_user_cache):
7190 * dired.c (user_name_completion):
7191 * console-x.c (get_display_arg_connection):
7192 * minibuf.c (clear_echo_area_internal):
7193 * minibuf.c (echo_area_append):
7194 * eldap.c (Fldap_open):
7195 * eldap.c (Fldap_search_internal):
7196 * frame-x.c (x_set_frame_text_value):
7197 * frame-x.c (x_set_frame_properties):
7198 * frame-x.c (x_create_widgets):
7199 * redisplay-tty.c (term_get_fkeys_1):
7200 * objects-x.c (x_parse_nearest_color):
7201 * objects-x.c (x_valid_color_name_p):
7202 * objects-x.c (x_initialize_font_instance):
7203 * objects-x.c (x_list_fonts):
7204 * objects-x.c (x_find_charset_font):
7205 * tooltalk.c (Fadd_tooltalk_message_arg):
7206 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7207 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7208 * process-unix.c (unix_create_process):
7209 * ntproc.c (sys_spawnve):
7210 * sound.c (Fplay_sound_file):
7211 * sound.c (Fplay_sound):
7212 * buffer.c (init_initial_directory):
7213 * buffer.c (init_buffer):
7214 * editfns.c (init_editfns):
7215 * editfns.c (Ftemp_directory):
7216 * editfns.c (Fuser_full_name):
7217 * editfns.c (uncache_home_directory):
7218 * editfns.c (get_home_directory):
7219 * editfns.c (Fuser_home_directory):
7220 * editfns.c (Fformat_time_string):
7221 * editfns.c (Fcurrent_time_string):
7222 * gui-x.c (button_item_to_widget_value):
7223 * database.c (Fopen_database):
7224 * event-Xt.c (x_to_emacs_keysym):
7225 * event-Xt.c (x_event_to_emacs_event):
7226 * event-Xt.c (describe_event_window):
7227 * event-msw.c (mswindows_wnd_proc):
7228 * glyphs-eimage.c (jpeg_instantiate):
7229 * glyphs-eimage.c (gif_instantiate):
7230 * glyphs-eimage.c (png_instantiate):
7231 * glyphs-eimage.c (tiff_instantiate):
7232 * glyphs-x.c (xbm_instantiate_1):
7233 * glyphs-x.c (x_xbm_instantiate):
7234 * glyphs-x.c (x_xface_instantiate):
7235 * glyphs-x.c (autodetect_instantiate):
7236 * glyphs-x.c (cursor_font_instantiate):
7237 * glyphs-x.c (x_widget_instantiate):
7238 * glyphs-x.c (x_widget_set_property):
7239 * glyphs-x.c (x_widget_property):
7240 * glyphs-x.c (BUILD_GLYPH_INST):
7241 * print.c (write_string_to_stdio_stream):
7242 * print.c (output_string):
7243 * print.c (Falternate_debugging_output):
7244 * print.c (Fexternal_debugging_output):
7245 * glyphs-msw.c (extract_xpm_color_names):
7246 * glyphs-msw.c (mswindows_xpm_instantiate):
7247 * glyphs-msw.c (bmp_instantiate):
7248 * glyphs-msw.c (resource_name_to_resource):
7249 * glyphs-msw.c (mswindows_resource_instantiate):
7250 * glyphs-msw.c (xbm_instantiate_1):
7251 * glyphs-msw.c (mswindows_xbm_instantiate):
7252 * glyphs-msw.c (mswindows_xface_instantiate):
7253 * glyphs-msw.c (mswindows_widget_instantiate):
7254 * glyphs-msw.c (add_tree_item):
7255 * glyphs-msw.c (add_tab_item):
7256 * glyphs-msw.c (mswindows_combo_box_instantiate):
7257 * glyphs-msw.c (mswindows_widget_property):
7258 * glyphs-msw.c (mswindows_combo_box_property):
7259 * glyphs-msw.c (mswindows_widget_set_property):
7260 * console.c (stuff_buffered_input):
7261 * objects-msw.c (mswindows_initialize_color_instance):
7262 * objects-msw.c (mswindows_valid_color_name_p):
7263 * objects-msw.c (mswindows_list_fonts):
7264 * objects-msw.c (mswindows_font_instance_truename):
7265 * bytecode.c (optimize_compiled_function):
7266 * select-x.c (symbol_to_x_atom):
7267 * select-x.c (x_atom_to_symbol):
7268 * select-x.c (hack_motif_clipboard_selection):
7269 * select-x.c (selection_data_to_lisp_data):
7270 * select-x.c (lisp_data_to_selection_data):
7271 * select-x.c (Fx_get_cutbuffer_internal):
7272 * select-x.c (Fx_store_cutbuffer_internal):
7273 * buffer.h (TO_EXTERNAL_FORMAT): New function.
7274 * buffer.h (TO_INTERNAL_FORMAT): New function.
7275 * emacs.c (make_arg_list_1):
7276 * emacs.c (make_argc_argv):
7278 * emacs.c (Fdump_emacs):
7279 * emacs.c (split_string_by_emchar_1):
7284 * device-x.c (x_init_device):
7285 * device-x.c (Fx_valid_keysym_name_p):
7286 * device-x.c (Fx_get_font_path):
7287 * device-x.c (Fx_set_font_path):
7288 * glyphs.c (bitmap_to_lisp_data):
7289 * glyphs.c (pixmap_to_lisp_data):
7290 * alloc.c (make_ext_string): Use coding system arguments. Update
7292 * alloc.c (build_string):
7293 * callproc.c (child_setup):
7294 * callproc.c (init_callproc):
7295 * fileio.c (lisp_strerror):
7296 * fileio.c (directory_file_name):
7297 * fileio.c (Fexpand_file_name):
7298 * fileio.c (Ffile_truename):
7299 * fileio.c (Fsysnetunam):
7300 * fileio.c (Fdo_auto_save):
7301 * sysdep.c (sys_readdir):
7302 * tests.c: New file. Allow adding C tests.
7303 Replace GET_* macros with a more comprehensible and flexible
7304 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
7306 Any coding system can be used to do format conversion.
7307 Eliminate enum external_data_format.
7308 Eliminate convert_to_external_format.
7309 Eliminate convert_to_internal_format.
7310 Make sure file-name, keyboard, terminal, and ctext are always
7311 defined as coding systems or aliases. Make
7312 file-name-coding-system, terminal-coding-system, and
7313 keyboard-coding-system magical variables that are equivalent to
7314 defining the corresponding coding system aliases.
7316 * file-coding.c (Fcoding_system_canonical_name_p): New function.
7317 * file-coding.c (Fcoding_system_alias_p): New function.
7318 * file-coding.c (Fcoding_system_aliasee): New function.
7319 * file-coding.c (append_suffix_to_symbol): New function.
7320 * file-coding.c (dangling_coding_system_alias_p): New function.
7321 * file-coding.c (Ffind_coding_system):
7322 * file-coding.c (Fcopy_coding_system):
7323 * file-coding.c (encode_coding_no_conversion):
7324 * file-coding.c (syms_of_file_coding):
7325 * file-coding.c (vars_of_file_coding):
7326 Rewrite coding system alias code.
7327 Allow nested aliases, like symbolic links.
7328 Allow redefinition of coding system aliases.
7329 Prevent existence of dangling coding system aliases.
7331 * dired.c (Fuser_name_completion_1):
7332 * dired.c (Fuser_name_all_completions):
7333 A crash would happen if user did QUIT in the middle of building
7334 user_name_cache. Remove redundant code in mainline and unwind_protect.
7337 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
7339 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
7340 an unsigned char *. Update all callers.
7342 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7344 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
7346 2000-01-25 Martin Buchholz <martin@xemacs.org>
7348 * elhash.c (hentry_description): Use more portable definition.
7349 (resize_hash_table): Initialize new hentries using
7350 xnew_array_and_zero, thereby simplifying the code.
7352 * mule-charset.c (make_charset): Make sure entire object is
7353 intialized, to avoid Purify warnings.
7355 * alloc.c (resize_string): Fix unlikely crash with big strings.
7357 2000-01-24 Martin Buchholz <martin@xemacs.org>
7359 * realpath.c (xrealpath):
7362 2000-01-25 Martin Buchholz <martin@xemacs.org>
7364 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
7366 1999-12-28 Max Matveev <max@melbourne.sgi.com>
7368 * unexelfsgi.c (unexec): Change the way we decide which segment
7371 Assumption that .bss section should be outside the PT_LOADable
7372 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
7373 it's present) is inside the 'data' segment. This would fail the
7374 test which was used to find a segment to grow and cover new
7375 heap. Instead of this assumption, I created another one - on IRIX
7376 the segment to grow should start below .bss and it's address
7377 should extent above the end of .bss. Once this segment is
7378 identified, it's grown to accommodate the new heap and new
7379 zero-length .bss section is added at the end of .data2.
7381 2000-01-25 Martin Buchholz <martin@xemacs.org>
7383 * eval.c (Feval): Wrong number of arguments should use original
7384 function, not the indirect_function version of it.
7386 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
7388 * glyphs-x.c (x_button_instantiate): Don't add image if
7390 (x_locate_pixmap_file): Call Fexpand_file_name when file name
7393 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
7395 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
7397 (DEFVAR_INT_MAGIC): Ditto.
7398 (DEFVAR_BOOL_MAGIC): Ditto.
7399 * glyphs.h: Reindent backslash.
7401 2000-01-24 Martin Buchholz <martin@xemacs.org>
7403 * glyphs-widget.c (layout_query_geometry):
7404 (layout_layout): Use correct types for gheight, gwidth.
7406 2000-01-24 Martin Buchholz <martin@xemacs.org>
7408 * EmacsManager.c (QueryGeometry): Purified.
7410 2000-01-23 Martin Buchholz <martin@xemacs.org>
7412 * alloc.c (make_float): Make sure entire object is intialized, to
7413 avoid Purify warnings.
7414 (pdump_register_sub): Remove useless assignment.
7415 (pdump): Use xmalloc, not malloc.
7416 (pdump_load): Use xmalloc, not malloc.
7418 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7425 * sysdep.c: Removed redundant #include <windows.h>
7427 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7429 * frame.c (delete_frame_internal): Do not delete device when its
7430 implementation so declares.
7431 (delete_frame_internal): Set device selected frame to nil when
7432 last frame goes away.
7434 * device-msw.c (msprinter_device_system_metrics): Implemented.
7435 (mswindows_device_system_metrics): Added 'device-dpi property.
7437 * device.c: (Fdevice_printer_p): Added.
7438 Added 'offset-workspace device metric.
7440 * console.h (device_metrics): Declared DM_offset_workspace.
7442 2000-01-23 Martin Buchholz <martin@xemacs.org>
7444 * fileio.c (Ffile_truename): Remove pointless and confusing
7445 initialization of elen.
7447 * glyphs-widget.c: Compiler warning fixes.
7449 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
7451 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
7452 instead of a Lisp_Object as argument to make it consistent with
7453 the other LIVE_P macros.
7454 (CHECK_LIVE_PROCESS): New macro.
7456 * process.c: Declare Qprocess_live_p.
7457 (Fprocess_live_p): New function.
7458 (create_process): Use PROCESS_LIVE_P.
7459 (read_process_output): Ditto.
7460 (set_process_filter): Ditto.
7461 (Fdelete_process): Ditto.
7462 (kill_buffer_processes): Ditto
7463 (process_send_signal): Use CHECK_LIVE_PROCESS.
7464 (Fprocess_input_coding_system): Check whether process is still
7465 alive (fix PR#1061).
7466 (Fprocess_output_coding_system): Ditto.
7467 (Fprocess_coding_system): Ditto.
7468 (Fset_process_input_coding_system): Ditto.
7469 (Fset_process_output_coding_system): Ditto.
7471 2000-01-23 Andy Piper <andy@xemacs.org>
7473 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
7476 * glyphs.c (mark_image_instance): take into account changed
7477 image_instance format.
7478 (image_instance_equal): ditto.
7479 (image_instance_hash): ditto.
7481 * glyphs-widget.c (widget_instantiate): Incorporate layout
7482 instantiation here. Delay layout of the layout until later.
7483 (layout_instantiate): deleted.
7484 (layout_query_geometry): new function. get the geometry of a
7486 (layout_layout): layout a layout dynamically.
7487 (image_instantiator_widget): New function - splitting up
7488 image_instantiator_format_create_glyphs_widget for netwinder
7490 (image_instantiator_buttons):
7491 (image_instantiator_edit_fields):
7492 (image_instantiator_combo_box):
7493 (image_instantiator_scrollbar):
7494 (image_instantiator_progress_guage):
7495 (image_instantiator_tree_view):
7496 (image_instantiator_tab_control):
7497 (image_instantiator_labels):
7498 (image_instantiator_layout): ditto.
7499 (image_instantiator_format_create_glyphs_widget): Call preceeding
7502 2000-01-22 Martin Buchholz <martin@xemacs.org>
7504 * process.c (Fset_process_coding_system):
7505 * device-x.c (Fx_keysym_hash_table):
7508 * lstream.c (Lstream_write): Return documented value, not 0.
7510 * fileio.c (directory_file_name):
7511 (Fsubstitute_in_file_name):
7512 (Fsubstitute_insert_file_contents_internal):
7513 (Fwrite_region_internal):
7518 Remove vestigial APOLLO-conditional code.
7520 2000-01-21 Martin Buchholz <martin@xemacs.org>
7522 * getpagesize.h: Add guard macros.
7523 * libsst.h: Add guard macros.
7524 * libst.h: Add guard macros.
7525 * line-number.h: Add guard macros.
7526 * ndir.h: Add guard macros.
7527 * sysfloat.h: Add guard macros.
7528 * sysfile.h: Add guard macros.
7529 * sysproc.h: Add guard macros.
7530 * syswait.h: Add guard macros.
7531 * xintrinsic.h: Add guard macros.
7532 * xintrinsicp.h: Add guard macros.
7533 * xmmanager.h: Add guard macros.
7534 * xmmanagerp.h: Add guard macros.
7535 * xmprimitive.h: Add guard macros.
7536 * xmu.h: Add guard macros.
7537 * gpmevent.h: Add copyright statement. Add guard macros.
7538 * miscplay.h: Add guard macros.
7539 * *.h: Use consistent C-standards-approved guard macro names.
7541 * opaque.c (make_opaque): Switch parameter order.
7542 * opaque.h (make_opaque): Switch parameter order.
7544 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
7546 * config.h.in (type_checking_assert): Added.
7547 (bufpos_checking_assert): Added.
7549 2000-01-21 Martin Buchholz <martin@xemacs.org>
7551 * alloc.c: Harmless pdump changes.
7553 - spell alignment correctly.
7554 * sysdep.c: Use countof()
7556 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7558 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
7559 initially_selected_for_input() console method, default to 0.
7560 (semi_canonicalize_console_connection): Try to delegate to
7561 canonicalize_console_connection if no such console method.
7562 (canonicalize_console_connection): Vice versa.
7563 (print_console): Do not print nil connection.
7565 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
7566 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
7567 (XDEVIMPF_FRAMELESS_OK): Added.
7568 (CONSOLE_INHERITS_METHOD): Added.
7570 * console-msw.c (mswindows_canonicalize_console_connection):
7572 (mswindows_canonicalize_device_connection): Added.
7574 * console-msw.h (struct msprinter_device): Added this struct and
7576 (mswindows_device): Made fontlist a lisp object.
7578 * device.c (semi_canonicalize_device_connection): Try to delegate
7579 to canonicalize_device_connection if no such console method.
7580 (canonicalize_device_connection): Vice versa.
7581 (print_device): Do not print nil connection.
7583 * device-msw.c (mswindows_init_device): Call InitCommonControls
7585 (mswindows_delete_device): Removed fontlist deallocation.
7586 (mswindows_mark_device): Added.
7588 * events.c (event_equal): Added abort() at unreached code.
7589 (event_hash): Ditto.
7591 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
7592 fallback tags of Windows devices.
7594 * general.c (syms_of_general): Initialized Qmsprinter.
7596 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
7597 of fallback tags of Windows devices.
7599 * lisp.h: Declared Qmsprinter.
7601 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
7603 (mswindows_list_fonts): Ditto.
7604 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
7605 that it can be used by both mswindows and msprinter devices.
7606 (initialize_font_instance): Added.
7607 (mswindows_initialize_font_instance): Use it.
7608 (msprinter_initialize_font_instance): Added.
7610 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
7611 and implementation flags check.
7612 (redisplay_without_hooks): Changed the call to the above.
7613 (Fredraw_device): Ditto.
7614 (Fredisplay_device): Ditto.
7616 * redisplay-msw.c (get_frame_dc): Implemented.
7617 (get_frame_compdc): Implemented.
7618 (many functions): Use the two functions above to get device
7619 contexts, ether for a window or a printer.
7621 2000-01-21 Olivier Galibert <galibert@pobox.com>
7623 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
7624 initialization here.
7625 (init_symbols_once_early): Call it.
7626 * emacs.c (main_1): Call it.
7627 * symsinit.h: Declare it.
7629 2000-01-19 Olivier Galibert <galibert@pobox.com>
7631 * alloc.c: Use a lrecord_header * in the backtrace instead of a
7633 (pdump_backtrace): Ditto.
7634 (pdump_register_object): Ditto. Cleanup use of the pointers.
7635 (pdump_get_entry): Abort if trying to register a null pointer.
7636 (pdump_dump_data): Cleanup types when relocating.
7637 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
7638 (pdump_dump_rtables): Remove bad casts.
7639 (pdump_load): Cleanup relocation w.r.t union type. Use a
7640 Lisp_Object instead of a EMACS_INT for the hashtable
7643 2000-01-20 Martin Buchholz <martin@xemacs.org>
7645 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
7647 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
7649 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
7651 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
7653 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7655 * faces.h (FACE_STRIKETHRU_P): Added.
7657 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
7660 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
7661 (mswindows_set_dc_font): New function, aware of font variants,
7662 separated from mswindows_update_dc.
7664 * objects-msw.h (struct mswindows_font_instance_data): Added
7667 * objects-msw.c (mswindows_finalize_font_instance): Delete all
7668 cached fonts and the data structure.
7669 (mswindows_initialize_font_instance): Added creation of font data
7671 (mswindows_print_font_instance): Print at least something.
7672 (mswindows_create_font_variant): Implemented.
7673 (mswindows_get_hfont): Implemented.
7675 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
7677 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
7678 prototyping problem with msvc.
7680 * emacs.c (main_1): added syms_of_gui_mswindows() call
7682 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
7683 syms_of_gui_mswindows() function
7685 * symsinit.h: added the prototype for syms_of_gui_mswindows()
7687 2000-01-18 Martin Buchholz <martin@xemacs.org>
7689 * XEmacs 21.2.27 is released.
7691 2000-01-18 Martin Buchholz <martin@xemacs.org>
7693 * glyphs-eimage.c (struct tiff_error_struct):
7695 (tiff_warning_func):
7696 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
7701 * unexec.c: Remove vestigial Lucid C code.
7706 Remove declarations of errno and strerror().
7708 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
7710 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
7712 2000-01-16 Martin Buchholz <martin@xemacs.org>
7714 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
7717 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
7722 Change enum eol_type to eol_type_t.
7724 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
7726 * gui.c (get_gui_callback): Check cons before accessing car.
7728 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
7730 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
7731 (XSETSPECIFIER_TYPE): Ditto.
7733 2000-01-17 Didier Verna <didier@xemacs.org>
7735 * redisplay.c (generate_fstring_runes): compute string size in
7736 characters, not bytes.
7738 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
7740 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
7742 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
7744 * print.c (print_error_message): Call print_prepare().
7746 2000-01-14 Martin Buchholz <martin@xemacs.org>
7748 * .dbxrc: Renamed from dbxrc.
7750 * events.c (event_to_character):
7751 Use `assert (foo)' instead of `if (!foo) abort()'
7753 * .gdbinit (xtype): Add documentation.
7754 * .gdbinit (check-temacs): New function.
7755 * .gdbinit (check-xemacs): New function.
7756 * dbxrc (check-xemacs): New function.
7757 * dbxrc (check-xemacs): New function.
7759 2000-01-14 Andy Piper <andy@xemacs.org>
7761 * glyphs-widget.c (widget_query_geometry): Make sure that we
7762 calculate default dimensions correctly.
7764 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7766 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
7768 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
7769 pdump_wire'd variable.
7771 * emacs.c: (main_1): Conditionalized calls to
7772 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
7774 2000-01-13 Martin Buchholz <martin@xemacs.org>
7776 * window.c (Fset_window_configuration):
7777 * sysdep.c (_start):
7778 * input-method-motif.c (res):
7779 * event-Xt.c (Xt_process_to_emacs_event):
7780 Simple compiler warning fixes.
7782 * bytecode.c (funcall_compiled_function): Use the original
7783 function symbol on the backtrace list in preference to the
7784 compiled_function object in error messages.
7786 2000-01-13 Andy Piper <andy@xemacs.org>
7788 * glyphs-x.c (update_widget_face): Make sure we update the widget
7789 background as well as foreground.
7791 2000-01-13 Andy Piper <andy@xemacs.org>
7793 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
7794 fields to subwindow.
7795 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
7796 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
7797 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
7798 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
7800 * glyphs-widget.c (check_valid_tab_orientation): new function.
7801 (initialize_widget_image_instance): zero orientation and
7803 (widget_instantiate): pick up orientation.
7804 (tab_control_query_geometry): return appropriate values for
7807 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
7808 appropriate creation flags for left, right and bottom tabs.
7810 * s/cygwin32.h: add tab definitions.
7812 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7814 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
7815 frame upon hiding a subwindow.
7816 (mswindows_button_instantiate): Changed the push button style to
7818 (mswindows_button_instantiate): Removed button BS_NOTIFY
7820 (mswindows_button_instantiate): Removed redundant check for
7821 a disabled gui item.
7822 (mswindows_button_instantiate): Made use of WS_TABSTOP
7823 consistent: "operable" controls (edit, button, tree, scroll) have
7824 this style, "display-only" ones (static, progress gauge) do
7825 not. This style is currently ignored by XEmacs though. Also,
7826 removed the WS_EX_CONTROLPARENT style - it is not for children,
7827 it is for their parents!
7828 (mswindows_edit_field_instantiate): Ditto.
7829 (mswindows_progress_gauge_instantiate): Ditto.
7830 (mswindows_tree_view_instantiate): Ditto.
7831 (mswindows_tab_control_instantiate): Ditto.
7832 (mswindows_scrollbar_instantiate): Ditto.
7833 (mswindows_combo_box_instantiate): Ditto.
7834 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
7835 style to the "clip" window.
7836 (mswindows_button_instantiate): Removed compilation warning by
7837 equally typing terms of the ?: operator.
7839 2000-01-12 Didier Verna <didier@xemacs.org>
7841 * redisplay.c (generate_fstring_runes): new parameter holding the
7842 last modeline-format extent.
7843 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
7844 extent, fill the glyph block with it.
7845 (generate_fstring_runes): handle these parameters.
7846 (generate_formatted_string_db): ditto.
7848 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
7849 glyphs'extents in the modeline.
7851 1999-01-11 Mike Woolley <mike@bulsara.com>
7853 * ntheap.c: Reduced the reserved heap space from 1Gb down to
7854 256Mb, as a workaround for the non-starting problem many people
7857 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
7859 * console-tty.c (Fset_console_tty_output_coding_system):
7860 Force redrawing tty frame.
7862 2000-01-10 Didier Verna <didier@xemacs.org>
7864 * redisplay.c (generate_fstring_runes): fix size computation bug.
7866 2000-01-09 William M. Perry <wmperry@aventail.com>
7868 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
7870 2000-01-09 Andy Piper <andy@xemacs.org>
7872 * glyphs-msw.c: index -> i to avoid shadows.
7873 (xbm_create_bitmap_from_data): make static.
7874 (check_valid_string_or_int): deleted.
7875 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
7877 * glyphs-x.c (x_update_subwindow): remove unused args.
7879 * glyphs.c (glyph_image_instance): return the thing. Don't set the
7880 back pointer - this is done in allocate_image_instance.
7881 (query_string_font): return Qnil to make the compiler happy.
7882 (unmap_subwindow): set to ~0 to make the compiler happy.
7883 (glyph_query_geometry): comment out until used.
7884 (glyph_layout): ditto.
7886 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
7888 * insdel.c (signal_after_change): Remove extraneous unbind_to().