1 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
5 * char-ucs.h: Use <short> for <Charset_ID>.
7 * mule-charset.h, char-1byte.h: Use <unsigned char> for
10 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
12 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
15 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
17 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
19 (Qmorohashi_daikanwa): New variable.
20 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
21 for `morohashi-daikanwa' attribute.
22 (Fget_char_attribute): Likewise.
23 (Fput_char_attribute): Likewise.
24 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
25 has the same value of `ideograph-daikanwa'.
26 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
27 (vars_of_mule_charset): Setup
28 `Vcharacter_morohashi_daikanwa_table'.
30 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
32 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
34 (add_charset_to_list_mapper): Add `key' instead of
35 `XCHARSET_NAME (value)' to return aliases.
37 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
39 * mule-charset.c (Vcharacter_ideographic_radical_table): New
41 (Vcharacter_ideographic_strokes_table): New variable.
42 (Qideographic_radical): New variable.
43 (Qideographic_strokes): New variable.
44 (Fchar_attribute_alist): Use
45 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
46 attribute; use `Vcharacter_ideographic_strokes_table' for
47 `ideographic-strokes' attribute.
48 (Fget_char_attribute): Likewise.
49 (Fput_char_attribute): Likewise.
50 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
51 `ideographic-strokes'.
52 (vars_of_mule_charset): Setup
53 `Vcharacter_ideographic_radical_table' and
54 `Vcharacter_ideographic_strokes_table'.
56 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
58 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
59 (Qtotal_strokes): New variable.
60 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
61 `total-strokes' attribute.
62 (Fget_char_attribute): Likewise.
63 (Fput_char_attribute): Likewise.
64 (syms_of_mule_charset): Add new symbol `total-strokes'.
65 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
67 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
69 * mule-charset.c (Vcharacter_decomposition_table): New variable.
70 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
72 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
73 `->decomposition' attribute.
74 (Fput_char_attribute): Likewise.
75 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
77 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
79 * mule-charset.c (decoding_table_check_elements): New function.
80 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
82 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
84 * mule-charset.c (Fset_charset_mapping_table): Use
85 `put_char_ccs_code_point'.
87 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
89 * mule-charset.c (decoding_table_put_char): New inline function.
90 (put_char_ccs_code_point): Use `decoding_table_put_char'.
92 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
94 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
95 (XCHARSET_BYTE_SIZE): New macro.
96 (decoding_table_remove_char): New inline function.
97 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
98 `decoding_table_remove_char'.
99 (remove_char_ccs): Use `decoding_table_remove_char'.
100 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
102 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
104 * mule-charset.c (Vcharacter_name_table): New variable.
105 (Qname): New variable.
106 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
108 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
109 `Vcharacter_name_table' for `name' attribute.
110 (Fremove_char_attribute): Use function `remove_char_ccs'.
111 (put_char_ccs_code_point): New function.
112 (remove_char_ccs): New function.
113 (syms_of_mule_charset): Add new symbol `name'.
114 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
116 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
118 * mule-charset.c (make_byte_table): Add new argument `older'.
119 (make_char_id_table): Likewise.
120 (copy_char_id_table): Comment out because it is not used.
121 (put_char_id_table): Modify for `make_byte_table'.
122 (Fput_char_attribute): Make encoding_table as older object;
123 inherit older bit of `Vcharacter_composition_table'.
124 (mark_charset): Don't mark `cs->encoding_table'.
125 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
126 normal object; make `Vcharacter_composition_table' as an older
127 object; delete staticpro for `Vcharacter_composition_table'; make
128 `Vcharacter_variant_table' as a normal object.
130 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
131 (mark_object): Don't check older object in UTF-2000.
133 * lrecord.h (struct lrecord_header): Add new member `older' in
135 (set_lheader_implementation): Setup `SLI_header->older' in
137 (set_lheader_older_implementation): New macro in UTF-2000.
138 (OLDER_RECORD_P): New macro in UTF-2000.
139 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
140 (alloc_older_lcrecord): New prototype in UTF-2000.
141 (alloc_older_lcrecord_type): New macro in UTF-2000.
143 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
145 * mule-charset.c (byte_table_description): Use
146 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
147 (char_id_table_description): Delete bogus `, 1'.
148 (Fget_char_attribute): Refer encoding_table of each coded-charset
149 to get value of coded-charset attribute of a character.
150 (Fput_char_attribute): Use `make_older_vector' instead of
151 `make_vector'; use encoding_table of each coded-charset to store
152 value of coded-charset attribute of a character.
153 (Fremove_char_attribute): Use encoding_table of each coded-charset
154 to store value of coded-charset attribute of a character.
155 (mark_charset): Mark `cs->encoding_table'; don't mark
156 `cs->decoding_table'.
157 (charset_description): Add description of new member
159 (make_charset): Initialize `encoding_table'.
161 * char-ucs.h (struct Lisp_Charset): Add new member
163 (CHARSET_ENCODING_TABLE): New macro.
164 (XCHARSET_ENCODING_TABLE): New macro.
165 (charset_code_point): New implementation.
166 (encode_char_1): Likewise.
168 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
169 (disksave_object_finalization_1): Call finalizers of
170 `all_older_lcrecords' in UTF-2000.
171 (make_older_vector): New function in UTF-2000.
172 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
175 * lisp.h (make_older_vector): New prototype in UTF-2000.
177 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
179 * lrecord.h (enum lrecord_type): Rename
180 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
182 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
183 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
184 `get_char_code_table'.
186 * mule-charset.c (mark_char_id_table): Renamed from
187 `mark_char_code_table'.
188 (char_id_table_equal): Renamed from `char_code_table_equal'.
189 (char_id_table_hash): Renamed from `char_code_table_hash'.
190 (make_char_id_table): Renamed from `make_char_code_table'.
191 (copy_char_id_table): Renamed from `copy_char_code_table'.
192 (get_char_id_table): Renamed from `get_char_code_table'.
193 (put_char_id_table): Renamed from `put_char_code_table'.
194 (to_char_id): Renamed from `to_char_code'.
196 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
197 `Lisp_Char_Code_Table'.
198 (char_id_table): Renamed from `char_code_table'.
199 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
200 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
201 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
202 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
203 (get_char_id_table): Renamed from `get_char_code_table'.
205 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
207 * lrecord.h (enum lrecord_type): Rename
208 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
210 * mule-charset.c (mark_byte_table): Renamed from
211 `mark_char_byte_table'.
212 (byte_table_equal): Renamed from `char_byte_table_equal'.
213 (byte_table_hash): Renamed from `byte_table_hash'.
214 (make_byte_table): Renamed from `make_byte_table'.
215 (copy_byte_table): Renamed from `copy_char_byte_table'.
217 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
218 `Lisp_Char_Byte_Table'.
219 (byte_table): Renamed from `char_byte_table'.
220 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
221 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
222 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
223 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
225 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
227 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
228 (dfc_convert_to_internal_format): Likewise.
230 * text-coding.c (Fcoding_system_canonical_name_p): New function.
231 * text-coding.c (Fcoding_system_alias_p): New function.
232 * text-coding.c (Fcoding_system_aliasee): New function.
233 * text-coding.c (append_suffix_to_symbol): New function.
234 * text-coding.c (dangling_coding_system_alias_p): New function.
235 * text-coding.c (Ffind_coding_system):
236 * text-coding.c (Fcopy_coding_system):
237 * text-coding.c (encode_coding_no_conversion):
238 * text-coding.c (syms_of_file_coding):
239 * text-coding.c (vars_of_file_coding):
240 Rewrite coding system alias code.
241 Allow nested aliases, like symbolic links.
242 Allow redefinition of coding system aliases.
243 Prevent existence of dangling coding system aliases.
244 Eliminate convert_to_external_format.
245 Eliminate convert_to_internal_format.
247 * text-coding.c: Change enum eol_type to eol_type_t.
249 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
251 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
252 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
254 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
255 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
257 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
259 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
260 `ideograph-daikanwa'.
262 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
263 (Vcharset_ucs_bmp): Likewise.
264 (Vcharset_mojikyo): Add new extern variable definition.
265 (Vcharset_latin_iso8859_2): Deleted because it is not used.
266 (Vcharset_latin_iso8859_3): Likewise.
267 (Vcharset_latin_iso8859_4): Likewise.
268 (Vcharset_latin_iso8859_9): Likewise.
269 (Vcharset_latin_viscii_lower): Likewise.
270 (Vcharset_latin_viscii_upper): Likewise.
271 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
272 `mojikyo' code-point is used to decode.
273 (encode_char_2): New function [to convert `mojikyo' code-point to
274 Mojikyo font encoding].
275 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
276 (breakup_char_1): Likewise.
277 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
279 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
281 * text-coding.c (Fmake_coding_system): Add document about
282 `disable-composition' property.
284 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
286 * text-coding.c (Qdisable_composition): New variable; delete
288 (Fmake_coding_system): Add new property `disable-composite';
289 delete property `composite'.
290 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
291 instead of `!CODING_SYSTEM_COMPOSITE'.
292 (syms_of_file_coding): Add new symbol `disable-composition';
293 delete symbol `composite'.
295 * file-coding.h (struct Lisp_Coding_System): Add
296 `disable_composition'; delete `enable_composition'.
297 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
298 `CODING_SYSTEM_COMPOSITE'.
299 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
300 `XCODING_SYSTEM_COMPOSITE'.
302 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
304 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
307 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
309 * text-coding.c (Qcomposite): New variable.
310 (Fmake_coding_system): Add new property `composite'.
311 (struct decoding_stream): Add `combined_char_count',
312 `combined_chars' and `combining_table' in UTF-2000.
313 (COMPOSE_FLUSH_CHARS): New macro.
314 (COMPOSE_ADD_CHAR): New macro.
315 (reset_decoding_stream): Reset `str->combined_char_count' and
316 `str->combining_table' in UTF-2000.
317 (decode_coding_iso2022): Modify for character-decomposition.
318 (syms_of_file_coding): Add new symbol `composite'.
320 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
322 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
323 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
324 of `Vcharacter_composition_table' if `->decomposition' property
326 (Qlatin_tcvn5712): New variable.
327 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
328 (complex_vars_of_mule_charset): Add new coded-charset
331 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
333 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
335 * file-coding.h (struct Lisp_Coding_System): Add
336 `enable_composition'.
337 (CODING_SYSTEM_COMPOSITE): New macro.
338 (XCODING_SYSTEM_COMPOSITE): New macro.
340 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
342 * mule-canna.c (c2mu): Fix problem with UTF-2000.
344 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
346 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
347 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
349 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
351 * mule-charset.c (Vcharset_mojikyo): New variable.
352 (Fdefine_char): Don't use coded-charset which does not have
353 non-builtin character range to allocate character-id.
354 (Qmojikyo): New variable.
355 (syms_of_mule_charset): Add new symbol `mojikyo'.
356 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
358 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
359 (LEADING_BYTE_MOJIKYO): New macro.
360 (MIN_CHAR_MOJIKYO): New macro.
361 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
362 (MAX_CHAR_MOJIKYO): New macro.
364 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
366 * mule-charset.c (remove_char_attribute): Fixed.
368 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
370 * mule-charset.c (remove_char_attribute): New function.
371 (Fremove_char_attribute): New function.
372 (encode_builtin_char_1): Comment out builtin-support for
373 greek-iso8859-7 and cyrillic-iso8859-5.
374 (Fdecode_char): Check `code' is an integer.
375 (syms_of_mule_charset): Add `remove-char-attribute'.
376 (MIN_CHAR_GREEK): Deleted.
377 (MAX_CHAR_GREEK): Likewise.
378 (MIN_CHAR_CYRILLIC): Likewise.
379 (MAX_CHAR_CYRILLIC): Likewise.
380 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
381 MAX_CHAR_GREEK for `greek-iso8859-7'.
383 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
384 (MAX_CHAR_GREEK): Likewise.
385 (MIN_CHAR_CYRILLIC): Likewise.
386 (MAX_CHAR_CYRILLIC): Likewise.
388 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
390 * mule-charset.c (Fdefine_char): Fix problem when new code-point
391 format is used without `ucs' property.
392 (Fdecode_char): Fix problem with GR representation.
393 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
394 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
396 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
398 * mule-charset.c (make_builtin_char): New function.
399 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
400 (Fset_charset_mapping_table): Modify for new representation of
402 (Fdecode_char): New function.
403 (syms_of_mule_charset): Add new builtin function `decode-char' in
406 * char-ucs.h (make_builtin_char): New prototype.
407 (DECODE_CHAR): New inline function.
408 (MAKE_CHAR): Use `DECODE_CHAR'.
410 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
412 * text-coding.c (parse_charset_conversion_specs): Use
413 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
415 (iso2022_designate): Likewise.
417 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
418 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
420 * mule-charset.c (Vcharset_ucs): New variable.
421 (print_charset): Change design; use `CHARSET_CHARS' and
422 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
423 (make_charset): Change signature to specify `chars' and
424 `dimension' instead of `type'.
425 (range_charset_code_point): Modify for 256^n-set.
426 (encode_builtin_char_1): Encode as `ucs' in default.
427 (Fmake_charset): Modify for `make_charset'.
428 (Fmake_reverse_direction_charset): Likewise.
429 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
431 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
434 * char-ucs.h (Vcharset_ucs): New variable.
435 (LEADING_BYTE_UCS): New macro.
436 (struct Lisp_Charset): Delete `type'; change type of `dimension'
437 and `chars' to `unsigned short' from `unsigned int'.
438 (CHARSET_TYPE): Deleted.
439 (XCHARSET_TYPE): Deleted.
441 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
443 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
445 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
446 (ENCODE_CHAR): New macro.
448 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
450 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
451 to 0.14 (Kawachi-Katakami).
453 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
455 * text-coding.c (char_encode_shift_jis): Modify for
456 `charset_code_point'.
457 (char_encode_iso2022): Likewise.
459 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
460 (integer) instead of list of <Lisp_Object>s (integers) as the
461 format of code-point of a coded-charset.
462 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
463 (encode_builtin_char_1): New function; delete
464 `split_builtin_char'.
465 (charset_code_point): Return <int> instead of <Lisp_Object>.
466 (Fsplit_char): Don't use `SPLIT_CHAR'.
468 * char-ucs.h (encode_builtin_char_1): New prototype; delete
469 prototype for `split_builtin_char'.
470 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
471 (charset_code_point): Likewise.
472 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
473 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
475 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
477 * mule-charset.c (complex_vars_of_mule_charset): Don't define
478 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
480 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
482 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
484 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
485 (MAX_CHAR_OBS_94x94): Deleted.
487 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
489 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
491 * char-ucs.h (MAX_CHAR_BMP): New macro.
493 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
495 * text-coding.c: Sync with r21-2-24.
497 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
499 * file-coding.c: Modify for UTF-2000.
501 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
503 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
506 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
508 * mule-charset.c (split_builtin_char): Delete builtin support for
510 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
511 BMP area in builtin representation.
513 * char-ucs.h (MAKE_CHAR): Delete builtin support for
514 `Vcharset_katakana_jisx0201'.
516 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
518 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
519 (Qisolated): New variable.
520 (Qinitial): New variable.
521 (Qmedial): New variable.
522 (Qfinal): New variable.
523 (Qvertical): New variable.
524 (Qsmall): New variable.
525 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
526 `Qvertical' and `Qsmall'.
527 (Qmojikyo_pj_[1 .. 21]): New variable.
528 (syms_of_mule_charset): Add new symbols `isolated', `initial',
529 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
530 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
533 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
535 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
536 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
537 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
539 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
541 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
542 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
544 (Qjapanese_jisx0208_1990): New variable.
545 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
546 (complex_vars_of_mule_charset): Add new coded-charset
547 `japanese-jisx0208-1990'.
549 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
550 (MIN_CHAR_JIS_X0208_1990): New macro.
551 (MAX_CHAR_JIS_X0208_1990): New macro.
553 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
555 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
556 coded-charset is not found.
558 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
560 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
561 (Fdefine_char): Use `Fmake_char'.
563 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
565 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
566 (Vcharset_hiragana_jisx0208): Deleted.
567 (Vcharset_katakana_jisx0208): Deleted.
568 (Qideograph_daikanwa): New variable.
569 (Qhiragana_jisx0208): Deleted.
570 (Qkatakana_jisx0208): Deleted.
571 (split_builtin_char): Split `ideograph-daikanwa'.
572 (Fsplit_char): New implementation for UTF-2000.
573 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
574 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
575 (complex_vars_of_mule_charset): Add new coded-charset
576 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
579 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
580 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
581 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
582 (MIN_CHAR_DAIKANWA): New macro.
583 (MAX_CHAR_DAIKANWA): New macro.
585 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
587 * data.c (Fstring_to_number): Don't recognize floating point if
590 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
592 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
594 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
596 * mule-charset.c (Qsquare): New variable.
597 (to_char_code): Add `Qsquare'.
598 (syms_of_mule_charset): Add new symbol `square'.
600 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
602 * mule-charset.c (Qcircle): New variable.
603 (to_char_code): Add `Qcircle'.
604 (syms_of_mule_charset): Add new symbol `circle'.
606 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
608 * mule-charset.c (Qfont): New variable.
609 (to_char_code): Add `Qfont'.
610 (syms_of_mule_charset): Add new symbol `font'.
612 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
614 * mule-charset.c (Qsub): New variable.
615 (to_char_code): Add `Qsub'.
616 (syms_of_mule_charset): Add new symbol `sub'.
618 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
620 * mule-charset.c (Fput_char_attribute): Convert each element of
621 VALUE to GL position if ATTRIBUTE is a GR-set,
623 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
625 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
626 coded-charset is a GR-set.
628 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
630 * mule-charset.c (Fput_char_attribute): Check each element of
631 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
633 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
635 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
637 (Qethiopic_ucs): New variable in UTF-2000.
638 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
639 (complex_vars_of_mule_charset): Add new coded-charset
640 `ethiopic-ucs' in UTF-2000.
642 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
643 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
645 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
647 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
649 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
651 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
654 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
656 * mule-charset.c (Vcharacter_variant_table): New variable.
657 (Q_ucs): New variable.
658 (Fchar_variants): New function.
659 (Fput_char_attribute): Register `->ucs' value to
660 `Vcharacter_variant_table'.
661 (syms_of_mule_charset): Add new function `char-variants' and new
663 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
665 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
667 * mule-charset.c (get_char_code_table): Allow negative character
669 (put_char_code_table): Likewise.
670 (Vcharacter_composition_table): New variable.
671 (Q_decomposition): New variable.
672 (Qwide): New variable.
673 (Qnarrow): New variable.
674 (Qcompat): New variable.
675 (QnoBreak): New variable.
676 (Qsuper): New variable.
677 (Qfraction): New variable.
678 (to_char_code): New function.
679 (Fget_composite_char): New function.
680 (Fput_char_attribute): Register `->decomposition' value to
681 `Vcharacter_composition_table'.
682 (syms_of_mule_charset): Add new function `get-composite-char', new
683 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
684 `super' and `fraction'.
685 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
687 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
689 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
690 character; copy the return value.
692 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
694 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
696 * mule-charset.c (range_charset_code_point): Must use make_int.
697 (split_builtin_char): New function.
699 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
701 * mule-charset.c (char_byte_table): Change name from
702 "char-code-table" to "char-byte-table".
703 (mark_char_code_table): New function.
704 (char_code_table_equal): New function.
705 (char_code_table_hash): New function.
706 (char_code_table_description): New constant.
707 (char_code_table): New type.
708 (make_char_code_table): New function.
709 (copy_char_code_table): New function.
710 (get_char_code_table): Modify for `char_code_table' type.
711 (put_char_code_table): Likewise.
712 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
715 * char-ucs.h (char_code_table): New type.
716 (XCHAR_CODE_TABLE): New macro.
717 (XSETCHAR_CODE_TABLE): New macro.
718 (CHAR_CODE_TABLE_P): New macro.
719 (GC_CHAR_CODE_TABLE_P): New macro.
720 (struct Lisp_Char_Code_Table): New structure.
722 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
724 * mule-charset.c (Fmake_charset): Setup byte_offset for
727 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
729 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
732 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
734 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
737 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
739 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
740 charset, it is regarded as a charset.
741 (put_char_attribute): New function in UTF-2000.
742 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
743 charset, mapping-table of the charset is modified.
744 (Fdefine_char): New function in UTF-2000.
745 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
746 `Fput_char_attribute'.
747 (syms_of_mule_charset): Add new function `define-char' and new
748 symbol `ucs' in UTF-2000.
749 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
751 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
753 * mule-charset.c (Fcharset_name): Define `byte_offset' in
754 non-UTF-2000 configuration.
756 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
758 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
759 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
761 * mule-charset.c (mark_charset): `cs->encoding_table' has been
763 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
764 (Fset_charset_mapping_table): Likewise.
766 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
767 (CHARSET_ENCODING_TABLE): Delete.
768 (XCHARSET_ENCODING_TABLE): Delete.
769 (charset_code_point): New interface.
771 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
773 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
774 instead of `charset_get_byte1' and `charset_get_byte2'.
776 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
777 (charset_get_byte2): Deleted.
779 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
781 * char-ucs.h (SPLIT_CHAR): New inline function.
782 (breakup_char_1): Use `SPLIT_CHAR'.
784 * mule-charset.c (range_charset_code_point): New function.
785 (charset_code_point): New function.
787 * char-ucs.h (range_charset_code_point): New interface.
788 (breakup_char_1): Use `range_charset_code_point'.
790 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
792 * mule-charset.c (Fmake_charset): Delete unused local variable
795 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
796 (breakup_char_1): Find a charset and code-point in
797 `Vcharacter_attribute_table'.
799 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
801 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
804 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
806 * mule-charset.c (Vcharacter_attribute_table): New variable.
807 (Fchar_attribute_alist): New function.
808 (Fget_char_attribute): New function.
809 (Fput_char_attribute): New function.
810 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
812 (syms_of_mule_charset): Add new function `char-attribute-alist',
813 `get-char-attribute' and `put-char-attribute'.
814 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
816 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
818 * mule-charset.c (Fmake_charset): Just use
819 `get_unallocated_leading_byte'.
821 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
822 sets; don't use final-byte based number for private sets.
824 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
826 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
829 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
831 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
834 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
836 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
837 of `CHAR_LEADING_BYTE' in UTF-2000.
839 * insdel.c (find_charsets_in_bufbyte_string): Use
840 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
841 (find_charsets_in_emchar_string): Likewise.
843 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
844 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
846 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
847 (CHAR_CHARSET_ID): New macro.
849 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
851 * chartab.c (get_char_table): Don't use type `Charset_ID' for
852 charset-id - MIN_LEADING_BYTE.
853 (put_char_table): Likewise.
855 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
857 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
858 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
859 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
860 (CHARSET_ID_OFFSET): New macro.
861 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
862 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
863 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
864 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
866 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
868 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
869 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
870 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
871 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
872 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
874 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
876 * mule-charset.c (next_allocated_leading_byte): New variable in
878 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
879 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
880 (get_unallocated_leading_byte): Simply use
881 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
882 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
885 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
886 (MAX_LEADING_BYTE_PRIVATE): New macro.
887 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
888 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
890 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
892 * mule-charset.c (Fmake_charset): Allocate final-byte based
893 charset-id for 94-set, 96-set and 94x94-set.
895 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
897 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
899 (Fmake_charset): Likewise.
900 (complex_vars_of_mule_charset): Modify the font registry of
901 `ucs-bmp' not to match `Ethiopic-Unicode'.
903 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
905 * mule-charset.c (complex_vars_of_mule_charset): Add font
906 registory of `ucs-bmp'.
908 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
910 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
911 coded-charsets in `default-coded-charset-priority-list' when
912 breaking up a character.
914 * mule-charset.c (Vcharset_latin_viscii): New variable.
915 (Qlatin_viscii): New variable.
916 (make_charset): Don't use `decoding_table'.
917 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
919 (Fset_charset_mapping_table): New implementation.
920 (syms_of_mule_charset): Add new symbol `latin-viscii'.
921 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
922 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
923 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
924 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
925 charset `latin_viscii'.
927 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
928 (CHARSET_TYPE_94X94): Change to 1 from 2.
929 (CHARSET_TYPE_96): Change to 2 from 1.
930 (CHARSET_TYPE_128): New macro.
931 (CHARSET_TYPE_128X128): Change to 5 from 4.
932 (CHARSET_TYPE_256): New macro.
933 (CHARSET_TYPE_256X256): Change to 7 from 5.
934 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
936 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
938 * text-coding.c (char_encode_shift_jis): Refer
939 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
940 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
942 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
943 (char_byte_table_equal): New function in UTF-2000.
944 (char_byte_table_hash): New function in UTF-2000.
945 (char_byte_table_description): New constant in UTF-2000.
946 (char_byte_table): New type in UTF-2000.
947 (make_char_byte_table): New function in UTF-2000.
948 (copy_char_byte_table): New function in UTF-2000.
949 (make_char_code_table): New macro in UTF-2000.
950 (get_char_code_table): New function in UTF-2000.
951 (put_char_code_table): New function in UTF-2000.
952 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
953 (charset_description): Add setting in UTF-2000.
954 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
955 `CHARSET_TO_BYTE1_TABLE(cs)'.
956 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
957 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
958 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
959 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
960 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
961 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
962 `CHARSET_TO_BYTE2_TABLE(cs)'.
964 * char-ucs.h (char_byte_table): New type.
965 (XCHAR_BYTE_TABLE): New macro.
966 (XSETCHAR_BYTE_TABLE): New macro.
967 (CHAR_BYTE_TABLE_P): New macro.
968 (GC_CHAR_BYTE_TABLE_P): New macro.
969 (struct Lisp_Char_Byte_Table): New structure.
970 (get_char_code_table): New interface.
971 (Emchar_to_byte_table): Deleted.
972 (get_byte_from_character_table): Deleted.
973 (struct Lisp_Charset): Add `encoding_table'; delete
974 `to_byte1_table' and `to_byte2_table'.
975 (CHARSET_ENCODING_TABLE): New macro.
976 (CHARSET_TO_BYTE1_TABLE): Deleted.
977 (CHARSET_TO_BYTE2_TABLE): Deleted.
978 (XCHARSET_ENCODING_TABLE): New macro.
979 (XCHARSET_TO_BYTE1_TABLE): Deleted.
980 (XCHARSET_TO_BYTE2_TABLE): Deleted.
982 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
984 * mule-charset.c (syms_of_mule_charset): Delete charset alias
985 `vietnamese-viscii-*'.
987 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
989 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
990 (Qvietnamese_viscii_upper): New variable.
991 (Fdefine_charset_alias): New function.
992 (syms_of_mule_charset): Add new function `define-charset-alias'.
993 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
994 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
997 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
999 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
1000 (MAX_CHAR_OBS_94x94): New macro.
1001 (breakup_char_1): Support obsolete XEmacs-UCS private code space
1004 * mule-charset.c (put_byte_from_character_table): Change unit size
1006 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
1008 (Fmake_reverse_direction_charset): Modify dummy argument of
1009 `make_charset' for non-UTF-2000 environment.
1011 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
1013 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
1015 * mule-charset.c (destroy_byte_from_character_table): New macro.
1016 (latin_jisx0201_to_ucs): Deleted.
1017 (latin_iso8859_2_to_ucs): Deleted.
1018 (latin_iso8859_3_to_ucs): Deleted.
1019 (latin_iso8859_4_to_ucs): Deleted.
1020 (latin_iso8859_9_to_ucs): Deleted.
1021 (latin_viscii_lower_to_ucs): Deleted.
1022 (latin_viscii_upper_to_ucs): Deleted.
1023 (mark_charset): Mark `cs->decoding_table'.
1024 (Fcharset_mapping_table): Fix DOC-string.
1025 (Fset_charset_mapping_table): New function.
1026 (syms_of_mule_charset): Add nwe function
1027 `set-charset-mapping-table'.
1028 (complex_vars_of_mule_charset): Don't setup and use
1031 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
1033 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
1036 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
1038 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
1039 (Vcharset_katakana_jisx0208): New variable.
1040 (Qhiragana_jisx0208): New variable.
1041 (Qkatakana_jisx0208): New variable.
1042 (make_charset): Add new argument `byte_offset'.
1043 (charset_get_byte1): Modify for new coded-charset definition; use
1044 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1045 `XCHARSET_BYTE_OFFSET'.
1046 (Fmake_charset): Modify for `make_charset'.
1047 (Fmake_reverse_direction_charset): Likewise.
1048 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
1049 `katakana-jisx0208'.
1050 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
1051 `.' in font registry of charset `katakana-jisx0201',
1052 `latin-jisx0201', `vietnamese-viscii-lower' and
1053 `vietnamese-viscii-upper'; modify DOC-string of charset
1054 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
1055 registry of charset `japanese-jisx0208' not to use font for JIS
1056 X0208:1990; add new charset `hiragana-jisx0208' and
1057 `katakana-jisx0208'.
1059 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
1060 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
1061 (struct Lisp_Charset): Add `byte_offset'.
1062 (CHARSET_BYTE_OFFSET): New macro.
1063 (XCHARSET_UCS_MIN): New macro.
1064 (XCHARSET_UCS_MAX): New macro.
1065 (XCHARSET_CODE_OFFSET): New macro.
1066 (XCHARSET_BYTE_OFFSET): New macro.
1067 (MIN_CHAR_HIRAGANA): New macro.
1068 (MAX_CHAR_HIRAGANA): New macro.
1069 (MIN_CHAR_KATAKANA): New macro.
1070 (MAX_CHAR_KATAKANA): New macro.
1071 (MAKE_CHAR): Modify for new coded-charset definition; use
1072 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1073 `XCHARSET_BYTE_OFFSET'.
1075 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1077 * mule-charset.c (CHAR96): Deleted.
1078 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
1080 (latin_iso8859_2_to_ucs): Likewise.
1081 (latin_iso8859_3_to_ucs): Likewise.
1082 (latin_iso8859_4_to_ucs): Likewise.
1083 (latin_iso8859_9_to_ucs): Likewise.
1084 (latin_viscii_lower_to_ucs): Likewise.
1085 (latin_viscii_upper_to_ucs): Likewise.
1086 (latin_tcvn5712_to_ucs): Commented out.
1087 (make_charset): Change type of argument `decoding_table' from
1088 <Emchar*> to <Lisp_Object> [vector of characters].
1089 (Fmake_charset): Modify for `make_charset'.
1090 (Fmake_reverse_direction_charset): Likewise.
1091 (Fcharset_mapping_table): New function in UTF-2000.
1092 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
1094 (complex_vars_of_mule_charset): Modify for type change of
1095 `*_to_ucs'; modify for `make_charset'.
1097 * char-ucs.h (struct Lisp_Charset): Change type of
1098 `decoding_table' from <Emchar*> to <Lisp_Object>.
1099 (MAKE_CHAR): Modify for new specification of `decoding_table'.
1101 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
1103 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
1104 error with non-UTF-2000-Mule.
1106 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
1108 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
1110 (Vcharset_chinese_cns11643_4): Likewise.
1111 (Vcharset_chinese_cns11643_5): Likewise.
1112 (Vcharset_chinese_cns11643_6): Likewise.
1113 (Vcharset_chinese_cns11643_7): Likewise.
1114 (Qchinese_cns11643_3): Likewise.
1115 (Qchinese_cns11643_4): Likewise.
1116 (Qchinese_cns11643_5): Likewise.
1117 (Qchinese_cns11643_6): Likewise.
1118 (Qchinese_cns11643_7): Likewise.
1119 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
1120 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
1121 and `chinese-cns11643-7' to lisp/mule/chinese.el.
1122 (complex_vars_of_mule_charset): Likewise.
1124 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1126 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
1128 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
1129 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
1131 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
1133 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
1135 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
1136 (breakup_char_1): Likewise.
1138 * text-coding.c (char_encode_iso2022): Keep designated charsets if
1139 one of them includes the specified character.
1141 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1143 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
1145 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1147 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
1149 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1151 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
1152 definition for non-UTF-2000 Mule.
1153 (latin_iso8859_3_to_ucs): Likewise.
1154 (latin_iso8859_4_to_ucs): Likewise.
1155 (latin_iso8859_9_to_ucs): Likewise.
1156 (latin_jisx0201_to_ucs): Likewise.
1157 (MIN_CHAR_THAI): Likewise.
1158 (MAX_CHAR_THAI): Likewise.
1159 (MIN_CHAR_GREEK): Likewise.
1160 (MAX_CHAR_GREEK): Likewise.
1161 (MIN_CHAR_HEBREW): Likewise.
1162 (MAX_CHAR_HEBREW): Likewise.
1163 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
1164 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
1165 (MIN_CHAR_CYRILLIC): Likewise.
1166 (MAX_CHAR_CYRILLIC): Likewise.
1168 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1170 * char-ucs.h (breakup_char_1): Use
1171 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
1172 thai-tis620 and katakana-jisx0201 area.
1174 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1176 * char-ucs.h (breakup_char_1): Use
1177 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
1180 * text-coding.c (reset_encoding_stream): Fixed.
1181 (char_encode_ucs4): Delete `& 255'.
1183 * char-ucs.h (breakup_char_1): Use
1184 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
1186 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1188 * file-coding.c (Fmake_coding_system): Don't set up
1189 `codesys->fixed.size'.
1190 (encode_coding_no_conversion): Don't refer
1191 `str->codesys->fixed.size'.
1193 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1195 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
1196 (latin_a_char_to_byte1): Deleted.
1197 (latin_a_char_to_byte2): Deleted.
1199 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1201 * mule-charset.c (make_charset): Add new argument `ucs_min',
1202 `ucs_max' and `code_offset'.
1203 (charset_get_byte1): New implementation [delete specific charset
1204 depended implementations].
1205 (Fmake_charset): Modify for `make_charset'.
1206 (Fmake_reverse_direction_charset): Likewise.
1207 (complex_vars_of_mule_charset): Likewise.
1209 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
1211 (CHARSET_UCS_MIN): New macro.
1212 (CHARSET_UCS_MAX): New macro.
1213 (CHARSET_CODE_OFFSET): New macro.
1214 (MAKE_CHAR): Delete charset depended definitions [except
1217 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
1219 * char-ucs.h (breakup_char_1): Use
1220 `Vdefault_coded_charset_priority_list' for C0-Controls,
1221 Basic-Latin, C1-Controls and Latin-1-Supplement area.
1223 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1225 * char-ucs.h (charset_get_byte1): New function.
1226 (XCHARSET_GET_BYTE1): Deleted.
1227 (charset_get_byte2): New function.
1228 (XCHARSET_GET_BYTE2): Deleted.
1229 (Vdefault_coded_charset_priority_list): New external variable.
1230 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
1231 `Vdefault_preferred_coded_charset_list'.
1233 * mule-charset.c (charset_get_byte1): New function.
1234 (charset_get_byte2): New function.
1235 (Vdefault_coded_charset_priority_list): New variable.
1236 (vars_of_mule_charset): Add new variable
1237 `default-coded-charset-priority-list'.
1239 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1241 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
1242 (XCHARSET_GET_BYTE2): New inline function.
1243 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
1244 `XCHARSET_GET_BYTE2'.
1246 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1248 * mule-charset.c (make_charset): Initialize
1249 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
1250 NULL if table is not defined.
1252 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1254 * text-coding.c (char_encode_shift_jis): Use
1255 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
1256 `ucs_to_latin_jisx0201'.
1258 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
1259 (ucs_to_latin_iso8859_2): Deleted.
1260 (ucs_to_latin_iso8859_3): Deleted.
1261 (ucs_to_latin_iso8859_4): Deleted.
1262 (ucs_to_latin_iso8859_9): Deleted.
1263 (ucs_to_latin_viscii_lower): Deleted.
1264 (ucs_to_latin_viscii_upper): Deleted.
1265 (ucs_to_latin_tcvn5712): Deleted.
1266 (make_charset): Add new argument `decoding_table'; set up
1267 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
1268 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
1269 `decoding_table' is defined in UTF-2000.
1270 (Fmake_charset): Modify for `make_charset'.
1271 (Fmake_reverse_direction_charset): Likewise.
1272 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
1273 and `GENERATE_96_SET'.
1275 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
1276 (ucs_to_latin_jisx0201): Deleted.
1277 (latin_iso8859_2_to_ucs): Deleted.
1278 (ucs_to_latin_iso8859_2): Deleted.
1279 (latin_iso8859_3_to_ucs): Deleted.
1280 (ucs_to_latin_iso8859_3): Deleted.
1281 (latin_iso8859_4_to_ucs): Deleted.
1282 (ucs_to_latin_iso8859_4): Deleted.
1283 (latin_iso8859_9_to_ucs): Deleted.
1284 (ucs_to_latin_iso8859_9): Deleted.
1285 (latin_viscii_lower_to_ucs): Deleted.
1286 (ucs_to_latin_viscii_lower): Deleted.
1287 (latin_viscii_upper_to_ucs): Deleted.
1288 (ucs_to_latin_viscii_upper): Deleted.
1289 (struct Lisp_Charset): Renamed `encoding_table' to
1290 `to_byte1_table'; add `to_byte2_table'.
1291 (CHARSET_DECODING_TABLE): New macro.
1292 (CHARSET_TO_BYTE1_TABLE): New macro.
1293 (CHARSET_TO_BYTE2_TABLE): New macro.
1294 (XCHARSET_DECODING_TABLE): New macro.
1295 (XCHARSET_TO_BYTE1_TABLE): New macro.
1296 (XCHARSET_TO_BYTE2_TABLE): New macro.
1297 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
1299 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
1300 don't use `ucs_to_*' tables.
1302 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1304 * text-coding.c (Fmake_coding_system): Don't set up
1305 `codesys->fixed.size'.
1306 (encode_coding_no_conversion): Use `if' instead of `switch'.
1308 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
1310 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1312 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
1313 (Fmake_charset): Modify for `make_charset'.
1314 (Fmake_reverse_direction_charset): Likewise.
1315 (complex_vars_of_mule_charset): Likewise.
1317 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1319 * text-coding.c (char_encode_shift_jis): Use table
1320 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
1322 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1324 * text-coding.c (text_encode_generic): Use `if' instead of
1326 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
1329 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1331 * text-coding.c (encode_coding_sjis): Deleted.
1332 (char_encode_shift_jis): New function.
1333 (char_finish_shift_jis): New function.
1334 (reset_encoding_stream): Set up `encode_char' and `finish' for
1335 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
1336 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
1337 (char_encode_utf8): Treat `eol_type'.
1339 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1341 * file-coding.c (decode_coding_iso2022): Use
1342 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
1344 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1346 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1349 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1351 * char-lb.h (CHAR_COLUMNS): New macro.
1353 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1355 * text-coding.c (char_encode_ucs4): New function.
1356 (char_finish_ucs4): New function.
1357 (encode_coding_ucs4): Deleted.
1358 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
1359 (text_encode_generic): Delete local variable `charset' and `half'.
1360 (ucs_to_mule_table): Deleted.
1361 (mule_to_ucs_table): Deleted.
1362 (Fset_ucs_char): Deleted.
1363 (ucs_to_char): Deleted.
1364 (Fucs_char): Deleted.
1365 (Fset_char_ucs): Deleted.
1366 (Fchar_ucs): Deleted.
1367 (decode_ucs4): Deleted.
1368 (mule_char_to_ucs4): Deleted.
1369 (encode_ucs4): Deleted.
1370 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
1371 (decode_coding_utf8): Likewise.
1372 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
1373 (char_encode_iso2022): Fixed.
1374 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
1375 `Fset_char_ucs' and `Fchar_ucs'.
1376 (complex_vars_of_file_coding): Don't initialize
1377 `ucs_to_mule_table'.
1379 * objects-tty.c (tty_initialize_font_instance): Don't use
1382 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
1385 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
1386 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
1388 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
1389 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
1390 (emchar_string_displayed_columns): Likewise.
1392 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
1393 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
1394 (string_column_at_point): Likewise.
1395 (Fmove_to_column): Likewise.
1397 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
1398 `encoding_table' and `decoding_table'.
1399 (CHARSET_REP_BYTES): Deleted.
1400 (XCHARSET_REP_BYTES): Deleted.
1401 (XCHARSET_COLUMNS): Deleted.
1402 (CHAR_COLUMNS): New macro.
1403 (lookup_composite_char): Deleted unconditionally.
1404 (composite_char_string): Likewise.
1406 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1408 * char-ucs.h (Emchar_to_byte_table): New type.
1409 (get_byte_from_character_table): New function interface.
1410 (Vcharset_latin_jisx0201): New variable.
1411 (latin_jisx0201_to_ucs): New variable.
1412 (ucs_to_latin_jisx0201): New variable.
1413 (Vcharset_latin_iso8859_2): New variable.
1414 (latin_iso8859_2_to_ucs): New variable.
1415 (ucs_to_latin_iso8859_2): New variable.
1416 (Vcharset_latin_iso8859_3): New variable.
1417 (latin_iso8859_3_to_ucs): New variable.
1418 (ucs_to_latin_iso8859_3): New variable.
1419 (Vcharset_latin_iso8859_4): New variable.
1420 (latin_iso8859_4_to_ucs): New variable.
1421 (ucs_to_latin_iso8859_4): New variable.
1422 (Vcharset_latin_iso8859_9): New variable.
1423 (latin_iso8859_9_to_ucs): New variable.
1424 (ucs_to_latin_iso8859_9): New variable.
1425 (Vcharset_latin_viscii_lower): New variable.
1426 (latin_viscii_lower_to_ucs): New variable.
1427 (ucs_to_latin_viscii_lower): New variable.
1428 (Vcharset_latin_viscii_upper): New variable.
1429 (latin_viscii_upper_to_ucs): New variable.
1430 (ucs_to_latin_viscii_upper): New variable.
1431 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
1432 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
1433 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
1434 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
1435 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
1436 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
1437 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
1438 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
1439 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
1440 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
1442 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
1443 (Vcharset_latin_viscii_upper): New variable.
1444 (make_byte_from_character_table): New function.
1445 (put_byte_from_character_table): New function.
1446 (get_byte_from_character_table): New function.
1447 (CHAR96): New macro.
1448 (ucs_to_latin_jisx0201): New variable.
1449 (latin_jisx0201_to_ucs): New variable.
1450 (ucs_to_latin_iso8859_2): New variable.
1451 (latin_iso8859_2_to_ucs): New variable.
1452 (ucs_to_latin_iso8859_3): New variable.
1453 (latin_iso8859_3_to_ucs): New variable.
1454 (ucs_to_latin_iso8859_4): New variable.
1455 (latin_iso8859_4_to_ucs): New variable.
1456 (ucs_to_latin_iso8859_9): New variable.
1457 (latin_iso8859_9_to_ucs): New variable.
1458 (ucs_to_latin_viscii_lower): New variable.
1459 (latin_viscii_lower_to_ucs): New variable.
1460 (ucs_to_latin_viscii_upper): New variable.
1461 (latin_viscii_upper_to_ucs): New variable.
1462 (ucs_to_latin_tcvn5712): New variable.
1463 (latin_tcvn5712_to_ucs): New variable.
1464 (Qlatin_viscii_lower): New variable.
1465 (Qlatin_viscii_upper): New variable.
1466 (syms_of_mule_charset): Set up new symbol
1467 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
1468 (complex_vars_of_mule_charset): Set up new charset
1469 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
1470 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
1471 `ucs_to_<CHARSET>' tables.
1473 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
1475 * text-coding.c: New file.
1477 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
1479 * mule-charset.c (Fmake_char): Fix problem of 256-set.
1481 * char-ucs.h (Vcharset_ucs_bmp): New variable.
1482 (MAKE_CHAR): Modify for `ucs-bmp'.
1483 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
1484 non-MULE characters of BMP.
1486 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
1488 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1491 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
1494 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
1495 - Include character.h for `CHAR_ASCII_P'.
1497 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
1499 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
1500 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
1502 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
1503 (BYTE_C0_P): Likewise.
1504 (BYTE_C1_P): Likewise.
1505 (Lstream_get_emchar_1): Likewise.
1506 (Lstream_fput_emchar): Likewise.
1507 (Lstream_funget_emchar): Likewise.
1508 (copy_internal_to_external): Likewise.
1509 (copy_external_to_internal): Likewise.
1511 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
1512 (BYTE_C0_P): Likewise.
1513 (BYTE_C1_P): Likewise.
1514 (Lstream_get_emchar_1): Likewise.
1515 (Lstream_fput_emchar): Likewise.
1516 (Lstream_funget_emchar): Likewise.
1517 (copy_internal_to_external): Likewise.
1518 (copy_external_to_internal): Likewise.
1520 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
1521 (REP_BYTES_BY_FIRST_BYTE): Likewise.
1523 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
1524 (BYTE_ASCII_P): Moved to mb-1byte.h.
1526 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
1528 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
1530 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
1531 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
1532 (VALID_CHARPTR_P): Moved to mb-*byte.h.
1533 (VALIDATE_CHARPTR_BACKWARD): Likewise.
1534 (VALIDATE_CHARPTR_FORWARD): Likewise.
1535 (simple_charptr_emchar): Moved to mb-multibyte.h.
1536 (simple_set_charptr_emchar): Likewise.
1537 (simple_charptr_copy_char): Likewise.
1538 (non_ascii_charptr_emchar): Likewise.
1539 (non_ascii_set_charptr_emchar): Likewise.
1540 (non_ascii_charptr_copy_char): Likewise.
1541 (charptr_emchar): Moved to mb-*byte.h.
1542 (set_charptr_emchar): Likewise.
1543 (charptr_copy_char): Likewise.
1545 * mb-1byte.h, mb-multibyte.h: New files.
1547 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
1549 * mb-utf-8.h (MULTIBYTE): New macro.
1550 (MAX_EMCHAR_LEN): Moved from buffer.h.
1551 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
1553 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
1555 * mb-lb.h, multibyte.h: New files.
1557 * char-1byte.h (Charset_ID): Moved from buffer.h.
1558 (MIN_LEADING_BYTE): Likewise.
1559 (LEADING_BYTE_ASCII): Likewise.
1560 (NUM_LEADING_BYTES): Likewise.
1561 (CHARSETP): Likewise.
1562 (CHARSET_BY_LEADING_BYTE): Likewise.
1563 (XCHARSET_LEADING_BYTE): Likewise.
1564 (XCHARSET_GRAPHIC): Likewise.
1565 (XCHARSET_COLUMNS): Likewise.
1566 (XCHARSET_DIMENSION): Likewise.
1567 (CHAR_CHARSET): Likewise.
1568 (CHAR_LEADING_BYTE): Likewise.
1569 (BREAKUP_CHAR): Likewise.
1570 (Vcharset_ascii): Likewise.
1572 * buffer.h: Include multibyte.h unconditionally.
1573 (VALID_CHARPTR_P): Moved to multibyte.h.
1574 (ASSERT_VALID_CHARPTR): Likewise.
1575 (REAL_INC_CHARPTR): Likewise.
1576 (REAL_INC_CHARBYTIND): Likewise.
1577 (REAL_DEC_CHARPTR): Likewise.
1578 (INC_CHARPTR): Likewise.
1579 (INC_CHARBYTIND): Likewise.
1580 (DEC_CHARPTR): Likewise.
1581 (VALIDATE_CHARPTR_BACKWARD): Likewise.
1582 (VALIDATE_CHARPTR_FORWARD): Likewise.
1583 (charptr_n_addr): Likewise.
1584 (MAX_EMCHAR_LEN): Moved to mb-*.h.
1585 (simple_charptr_emchar): Moved to multibyte.h.
1586 (simple_set_charptr_emchar): Likewise.
1587 (simple_charptr_copy_char): Likewise.
1588 (non_ascii_charptr_emchar): Likewise.
1589 (non_ascii_set_charptr_emchar): Likewise.
1590 (non_ascii_charptr_copy_char): Likewise.
1591 (charptr_emchar): Likewise.
1592 (set_charptr_emchar): Likewise.
1593 (charptr_copy_char): Likewise.
1594 (charptr_emchar_n): Likewise.
1595 (Charset_ID): Moved to char-1byte.h.
1596 (Vcharset_ascii): Likewise.
1597 (CHAR_CHARSET): Likewise.
1598 (CHAR_LEADING_BYTE): Likewise.
1599 (LEADING_BYTE_ASCII): Likewise.
1600 (NUM_LEADING_BYTES): Likewise.
1601 (MIN_LEADING_BYTE): Likewise.
1602 (CHARSETP): Likewise.
1603 (CHARSET_BY_LEADING_BYTE): Likewise.
1604 (XCHARSET_LEADING_BYTE): Likewise.
1605 (XCHARSET_GRAPHIC): Likewise.
1606 (XCHARSET_COLUMNS): Likewise.
1607 (XCHARSET_DIMENSION): Likewise.
1608 (BREAKUP_CHAR): Likewise.
1610 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
1612 * character.h: Add document about interface for characters.
1614 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
1615 (MAKE_CHAR): Delete comment about
1616 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
1617 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
1618 (BREAKUP_CHAR): Modify name of arguments.
1619 (CHAR_CHARSET): Modify name of argument.
1621 * buffer.h: Delete document about Emchar accessors.
1623 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
1625 * character.h (CHAR_INTP): Moved from buffer.h
1626 (CHAR_OR_CHAR_INTP): Likewise.
1627 (XCHAR_OR_CHAR_INT): Likewise.
1628 (CHECK_CHAR_COERCE_INT): Likewise.
1630 * buffer.h (CHAR_INTP): Moved to character.h
1631 (CHAR_OR_CHAR_INTP): Likewise.
1632 (XCHAR_OR_CHAR_INT): Likewise.
1633 (CHECK_CHAR_COERCE_INT): Likewise.
1635 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
1638 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
1639 - Include char-1byte.h, char-lb.h or char-ucs.h.
1641 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
1643 * buffer.h: Include character unconditionally.
1644 (valid_char_p): Moved to char-*.h.
1645 (non_ascii_valid_char_p): Moved to char-lb.h.
1647 * char-1byte.h, char-lb.h, char-ucs.h: New files.
1649 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
1651 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
1652 in UTF-2000 because it is not ported yet and not to use
1653 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
1654 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
1655 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
1657 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
1658 (CHAR_ASCII_P): Moved from character.h.
1660 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
1661 (CHAR_ASCII_P): Likewise.
1662 (CHAR_FIELD1_MASK): Deleted.
1663 (CHAR_FIELD2_MASK): Deleted.
1664 (CHAR_FIELD3_MASK): Deleted.
1665 (MAX_CHAR_BASIC_LATIN): New macro.
1666 (CHAR_FIELD1): Deleted.
1667 (CHAR_FIELD2_INTERNAL): Deleted.
1668 (CHAR_FIELD3_INTERNAL): Deleted.
1669 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
1670 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
1671 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
1672 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
1673 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
1674 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
1675 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
1676 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
1677 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
1678 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
1679 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
1680 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
1681 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
1682 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
1683 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
1684 (MIN_CHAR_COMPOSITION): Deleted.
1685 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
1686 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
1688 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
1690 * buffer.h: Include mb-utf-8.h in UTF-2000.
1692 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
1694 * mb-utf-8.h: New file.
1696 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
1698 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
1701 * mule-charset.h, buffer.h (Charset_ID): New type.
1703 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
1705 * mule-canna.c (c2mu): Use `MAKE_CHAR',
1706 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
1707 instead of `MULE_CHAR_PRIVATE_OFFSET',
1708 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
1709 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
1710 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
1712 * character.h (Vcharset_japanese_jisx0212): New variable
1715 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
1717 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
1718 (charset_by_attributes): Delete array about direction.
1719 (latin_a_char_to_charset): New variable in UTF-2000.
1720 (latin_a_char_to_byte1): New variable in UTF-2000.
1721 (latin_a_char_to_byte2): New variable in UTF-2000.
1722 (Qucs_bmp): New variable.
1723 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
1725 (next_allocated_2_byte_leading_byte): Likewise.
1726 (non_ascii_set_charptr_emchar): Likewise.
1727 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
1728 `CHARSET_TYPE_256X256' in UTF-2000; modify for
1729 `charset_by_attributes'.
1730 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
1731 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
1732 and `CHARSET_BY_LEADING_BYTE'.
1733 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
1734 `utf-2000-version' to `vars_of_mule_charset'.
1735 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
1736 define `leading-code-private-11' in UTF-2000; move setting of
1737 `utf-2000-version' from `syms_of_mule_charset'.
1738 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
1741 * character.h (Charset_ID): New type.
1742 (LEADING_BYTE_UCS_BMP): New macro.
1743 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
1744 (CHARSET_ID_OFFSET_94): New macro.
1745 (MIN_CHARSET_ID_PRIVATE_94): New macro.
1746 (MAX_CHARSET_ID_PRIVATE_94): New macro.
1747 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
1749 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
1750 (LEADING_BYTE_LATIN_JISX0201): Likewise.
1751 (CHARSET_ID_OFFSET_96): New macro.
1752 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
1753 CHARSET_ID_OFFSET_96 and final-byte.
1754 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
1755 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
1756 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
1757 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
1758 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
1759 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
1760 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
1761 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
1762 (LEADING_BYTE_THAI_TIS620): Likewise.
1763 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
1764 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
1765 (CHARSET_ID_OFFSET_94x94): New macro.
1766 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
1767 CHARSET_ID_OFFSET_94x94 and final-byte.
1768 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
1769 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
1770 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
1771 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
1772 (LEADING_BYTE_CHINESE_GB2312): Likewise.
1773 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
1774 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
1775 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
1776 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
1777 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
1778 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
1779 (CHARSET_TYPE_128X128): New macro.
1780 (CHARSET_TYPE_256X256): New macro.
1781 (XCHARSET_PRIVATE_P): Delete unconditionally.
1782 (charset_by_attributes): Delete array about direction.
1783 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
1784 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
1785 (MIN_CHAR_94): New macro.
1786 (MAX_CHAR_94): New macro.
1787 (MIN_CHAR_96): New macro.
1788 (MAX_CHAR_96): New macro.
1789 (MIN_CHAR_94x94): New macro.
1790 (MAX_CHAR_94x94): New macro.
1791 (MIN_CHAR_96x96): New macro.
1792 (MAX_CHAR_96x96): New macro.
1793 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
1794 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
1795 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
1797 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
1798 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
1799 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
1800 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
1801 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
1802 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
1803 `XCHARSET_LEADING_BYTE' to make code-point.
1804 (latin_a_char_to_charset): New variable.
1805 (latin_a_char_to_byte1): New variable.
1806 (latin_a_char_to_byte2): New variable.
1807 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
1808 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
1809 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
1811 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
1812 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
1813 (find_charsets_in_emchar_string): Likewise.
1814 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
1816 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
1818 (decode_coding_iso2022): Likewise.
1820 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
1823 * redisplay.c (redisplay_text_width_emchar_string): Use
1824 `Charset_ID' instead of `unsigned char'.
1825 (redisplay_frame_text_width_string): Likewise.
1827 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
1830 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
1831 instead of `unsigned char'.
1832 (face_cachel_charset_font_metric_info): Likewise.
1834 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
1835 (get_non_ascii_char_table_value): Likewise.
1836 (get_char_table): Likewise.
1837 (put_char_table): Likewise.
1838 (map_over_other_charset): Likewise.
1839 (map_char_table): Likewise.
1841 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
1842 instead of `unsigned char'.
1844 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
1846 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
1847 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
1849 * mule-charset.c (leading_code_private_11): Don't define in
1852 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
1853 in UTF-2000 because it is not ported yet and not to use
1854 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
1856 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
1858 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
1860 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1862 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
1865 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
1866 of unsigned char to store leading-byte.
1868 * chartab.c (get_non_ascii_char_table_value): Don't use
1869 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
1871 * file-coding.c (encode_coding_big5): Delete bogus implementation
1874 * character.h (LEADING_BYTE_*): Delete definition for
1876 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
1877 (LEADING_BYTE_PREFIX_P): Deleted.
1878 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
1879 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
1880 (BUFBYTE_LEADING_BYTE_P): Deleted.
1881 (CHARSET_PRIVATE_P): Deleted unconditionally.
1882 (rep_bytes_by_first_byte): Deleted unconditionally.
1883 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
1884 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
1885 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
1886 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
1887 (CHAR_FIELD2): Deleted.
1888 (CHAR_FIELD3): Deleted.
1889 (MAKE_CHAR): Delete definition for non-UTF-2000.
1890 (BREAKUP_CHAR_1_UNSAFE): Deleted.
1891 (breakup_char_1): New implementation.
1892 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
1893 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
1895 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1897 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
1900 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1902 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
1903 (CHARSET_PRIVATE_P): Likewise.
1904 (XCHARSET_PRIVATE_P): Likewise.
1905 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
1907 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
1909 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
1911 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1913 * character.h (LEADING_BYTE_*): Changed in UTF2000.
1914 (NUM_LEADING_BYTES): Changed from 128 to 256.
1915 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
1916 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
1918 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
1920 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
1922 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
1923 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
1924 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
1925 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
1926 (Qchinese_cns11643_3): New variable in UTF2000.
1927 (Qchinese_cns11643_4): New variable in UTF2000.
1928 (Qchinese_cns11643_5): New variable in UTF2000.
1929 (Qchinese_cns11643_6): New variable in UTF2000.
1930 (Qchinese_cns11643_7): New variable in UTF2000.
1931 (syms_of_mule_charset): Define `chinese-cns11643-3',
1932 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
1933 and `chinese-cns11643-7' in UTF2000.
1934 (vars_of_mule_charset): Initialize
1935 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
1937 (complex_vars_of_mule_charset): Setup charset
1938 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
1939 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
1941 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1943 * mule-charset.c: Move setting for `leading-code-private-11' from
1944 `syms_of_mule_charset' to `vars_of_mule_charset'.
1946 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1948 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
1949 and `NUM_LEADING_BYTES' in assert.
1951 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1953 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
1955 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
1956 `NUM_LEADING_BYTES' instead of 128.
1958 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1960 * mule-charset.h (charset_by_leading_byte): Use
1961 `NUM_LEADING_BYTES' instead of 128.
1962 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
1964 * mule-charset.c (charset_by_leading_byte): Use
1965 `NUM_LEADING_BYTES' instead of 128.
1966 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
1968 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
1971 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
1973 * mule-charset.c (syms_of_mule_charset): Update to
1976 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
1978 * file-coding.c (encode_coding_sjis): New implementation for
1979 UTF2000. (decode_coding_sjis): Ditto.
1981 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
1983 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
1984 Don't define in UTF2000.
1986 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
1989 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
1990 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
1993 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
1995 * config.h.in (CHAR_IS_UCS4): New macro.
1997 * mule-charset.c (rep_bytes_by_first_byte): Modify for
1998 conventional MULE representation.
1999 (syms_of_mule_charset): Update to 0.3 (Imamiya).
2001 * mule-charset.h: Reverted to original.
2003 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2004 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
2005 "mule-charset.h" if CHAR_IS_UCS4 is defined.
2007 * character.h: New file.
2009 * file-coding.c (Fmake_coding_system): Set 1 to
2010 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
2012 (encode_coding_no_conversion): New implementation for UTF2000.
2014 * file-coding.h (struct Lisp_Coding_System): Add new member
2017 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
2019 * file-coding.c (decode_coding_iso2022): Code-point arguments of
2020 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
2021 (encode_coding_iso2022): New implementation for UTF2000.
2023 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2025 * mule-canna.c (c2mu): New implementation for UTF2000.
2028 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2030 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
2032 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2034 * file-coding.c (reset_encoding_stream): Set 0 to
2035 `str->iso2022.current_char_boundary' in UTF2000.
2036 (encode_utf8): Don't define in UTF2000.
2037 (encode_coding_utf8): New implementation for UTF-8 representation
2039 (complex_vars_of_file_coding): Define coding-system `utf-8'.
2041 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2043 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
2045 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
2047 (REP_BYTES_BY_FIRST_BYTE): Likewise.
2049 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
2051 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
2052 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
2053 as UTF-8 in UTF2000.
2054 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
2055 (non_ascii_valid_char_p): Don't define in UTF2000.
2056 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
2057 (Lstream_get_emchar_1): Likewise.
2058 (utf-2000-version): New variable in UTF2000.
2060 * lread.c (read_escape): Add new reader `u'.
2062 * insdel.c (three_to_one_table): Don't define in UTF2000.
2063 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
2064 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2066 (bytind_to_bufpos_func): Likewise.
2067 (buffer_mule_signal_inserted_region): Likewise.
2068 (vars_of_insdel): Don't initialize `three_to_one_table'.
2069 (init_buffer_text): Use `buf->text->mule_size' instead of
2070 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2073 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
2074 UTF-8 representation in UTF2000.
2075 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
2076 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
2077 (decode_coding_iso2022): Don't define local variable `lb' in
2078 UTF2000; don't use LEADING_BYTE in UTF2000; use
2079 `DECODE_ADD_UCS_CHAR' in UTF2000.
2080 (convert_to_external_format): Decode as UTF-8 in UTF2000.
2082 * config.h.in (UTF2000): New macro.
2084 * buffer.h (struct buffer_text): Add new member `mule_size' and
2085 don't add `mule_shifter' and `mule_three_p' in UTF2000.
2086 (valid_char_p): Return always 1 in UTF2000.
2087 (MAX_EMCHAR_LEN): 6 in UTF2000.
2088 (three_to_one_table): Don't define in UTF2000.
2089 (real_bufpos_to_bytind): Modify for UTF-8 representation in
2091 (real_bytind_to_bufpos): Likewise.
2093 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
2095 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2097 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
2098 representation change.
2099 (Vutf_2000_version): New variable.
2100 (leading_code_private_11): New variable.
2101 (syms_of_mule_charset): Add new variables `utf-2000-version' and
2102 `leading-code-private-11'.
2104 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
2105 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
2106 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
2107 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
2108 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
2109 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
2110 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
2111 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
2112 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
2113 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
2114 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
2115 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
2116 (MIN_CHAR_GREEK): New macro.
2117 (MAX_CHAR_GREEK): New macro.
2118 (MIN_CHAR_CYRILLIC): New macro.
2119 (MAX_CHAR_CYRILLIC): New macro.
2120 (MIN_CHAR_HEBREW): New macro.
2121 (MAX_CHAR_HEBREW): New macro.
2122 (MIN_CHAR_THAI): New macro.
2123 (MAX_CHAR_THAI): New macro.
2124 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
2125 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
2126 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
2127 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
2128 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
2129 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
2130 (CHAR_FIELD2): New inline function.
2131 (CHAR_FIELD3): New inline function.
2132 (MULE_CHAR_PRIVATE_OFFSET): New macro.
2133 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
2134 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
2135 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
2136 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
2137 (MIN_CHAR_COMPOSITION): Likewise.
2138 (CHAR_LEADING_BYTE): Modified for character representation change.
2139 (MAKE_CHAR): Likewise.
2141 * lisp.h (Vcharset_latin_iso8859_1): New variable.
2142 (Vcharset_greek_iso8859_7): Likewise.
2143 (Vcharset_cyrillic_iso8859_5): Likewise.
2144 (Vcharset_hebrew_iso8859_8): Likewise.
2145 (Vcharset_thai_tis620): Likewise.
2146 (Vcharset_katakana_jisx0201): Likewise.
2148 2000-05-28 Martin Buchholz <martin@xemacs.org>
2150 * XEmacs 21.2.34 is released.
2152 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
2154 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
2156 (updating_line_start_cache): Gone.
2157 (regenerate_window): Replace resetting of VERTICAL_CLIP by
2158 generic code to force a minimum of 1 line laid out in the
2161 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
2163 * glyphs.c (instantiate_image_instantiator): Check for initialized
2164 height & width no longer special cases IMAGE_NOTHING.
2165 (nothing_instantiate): Set height and width of instance.
2167 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
2169 * unexelf.c (unexec): Search for ".data" section.
2170 Initialize new_data2_offset from old_data_index.
2171 Remove redundant check for ElfW.
2173 2000-05-23 Andy Piper <andy@xemacs.org>
2175 * glyphs.c (get_image_instantiator_governing_domain): allow more
2176 specific domains as the governing domain rather than expecting an
2177 exact match. This fixes problems with layouts.
2179 2000-05-22 Andy Piper <andy@xemacs.org>
2181 * redisplay-output.c (compare_runes): check for non-images
2183 * glyphs.c (set_glyph_dirty_p): ditto.
2184 (update_glyph_cachel_data): ditto.
2186 * glyphs-widget.c (layout_post_instantiate): ditto.
2187 (layout_post_instantiate): ditto.
2189 * event-msw.c (mswindows_wnd_proc): warning removal.
2191 2000-05-12 Craig Lanning <CraigL@DyCon.com>
2193 * s\mingw32.h: Added #undef for CLASH_DETECTION.
2195 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
2197 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
2199 * nt.c (rva_to_section): mingw32 needs rva_to_section.
2200 (mswindows_executable_type): mingw32 now has enough headers for
2203 2000-05-20 Andy Piper <andy@xemacs.org>
2205 * console-msw.c (mswindows_output_last_error): ; -> ,
2207 2000-05-12 Andy Piper <andy@xemacs.org>
2209 * console-msw.c (FROB): compare ints with ints.
2211 2000-05-11 Andy Piper <andy@xemacs.org>
2213 * glyphs-x.c (x_finalize_image_instance): make minimal build
2216 2000-05-20 Ben Wing <ben@xemacs.org>
2219 * event-Xt.c (vars_of_event_Xt):
2220 move modifier-keys-are-sticky to event-stream.c.
2223 * event-msw.c (mswindows_enqueue_mouse_button_event):
2224 * event-msw.c (key_needs_default_processing_p):
2225 * event-msw.c (XEMSW_LCONTROL):
2226 * event-msw.c (mswindows_handle_sticky_modifiers):
2227 * event-msw.c (FROB):
2228 * event-msw.c (clear_sticky_modifiers):
2229 * event-msw.c (output_modifier_keyboard_state):
2230 * event-msw.c (output_alt_keyboard_state):
2231 * event-msw.c (mswindows_wnd_proc):
2232 * event-msw.c (mswindows_modifier_state):
2233 * event-msw.c (emacs_mswindows_handle_magic_event):
2234 implement sticky modifiers.
2237 * event-stream.c (vars_of_event_stream):
2238 move modifier-keys-are-sticky here.
2244 implement map-range-table.
2247 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
2249 * redisplay-tty.c (reset_tty_modes):
2250 (tty_redisplay_shutdown): Adjust argument type to
2251 tty_frame_output_end.
2253 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
2255 * eval.c (Fbacktrace): Don't output a line with only right
2258 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
2260 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
2261 (Fpq_reset_poll): Ditto.
2263 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
2265 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
2267 2000-05-16 Ben Wing <ben@xemacs.org>
2270 * buffer.c (dfc_convert_to/from_internal_format):
2271 * buffer.c (reinit_vars_of_buffer):
2272 Fix conversion functions to allow reentrancy.
2275 * console-msw.c (mswindows_output_last_error):
2276 New fun, generally useful -- output a human-readable
2277 version of GetLastError() on the console.
2280 * console-msw.h (struct mswindows_frame):
2281 Changes for DeferWindowPos. Declare mswindows_output_last_error().
2283 * console-stream.c (stream_output_begin):
2284 * console-stream.c (stream_output_end):
2285 * console-stream.c (stream_output_vertical_divider):
2286 * console-stream.c (stream_clear_region):
2287 * console-stream.c (stream_flash):
2288 * console-stream.c (console_type_create_stream):
2289 Delete blank stream methods, not needed.
2291 * console.h (struct console_methods):
2292 Split begin/end methods into window and frame.
2295 * event-msw.c (mswindows_handle_paint):
2296 * event-msw.c (output_alt_keyboard_state):
2297 * event-msw.c (mswindows_wnd_proc):
2298 * event-msw.c (vars_of_event_mswindows):
2299 Comment about problems with ignored-expose.
2300 Define mswindows-debug-events; not really implemented.
2302 * frame-msw.c (mswindows_init_frame_1):
2306 * glyphs-msw.c (begin_defer_window_pos):
2307 * glyphs-msw.c (mswindows_unmap_subwindow):
2308 * glyphs-msw.c (mswindows_map_subwindow):
2309 * glyphs-msw.c (mswindows_resize_subwindow):
2310 Use DeferWindowPos to reduce flashing when mapping/unmapping.
2312 * glyphs.c (make_image_instance_1):
2315 * gutter.c (Fredisplay_gutter_area):
2316 Use new begin/end methods.
2318 * lisp.h (Dynarr_new2):
2322 * redisplay-msw.c (mswindows_frame_output_begin):
2323 * redisplay-msw.c (mswindows_frame_output_end):
2324 * redisplay-msw.c (console_type_create_redisplay_mswindows):
2325 New begin/end methods -- handle DeferWindowPos.
2327 * redisplay-output.c (redisplay_move_cursor):
2328 * redisplay-output.c (redraw_cursor_in_window):
2329 * redisplay-output.c (redisplay_update_line):
2330 * redisplay-output.c (redisplay_output_window):
2331 New begin/end methods.
2334 * redisplay-tty.c (tty_frame_output_begin):
2335 * redisplay-tty.c (tty_frame_output_end):
2336 * redisplay-tty.c (console_type_create_redisplay_tty):
2337 New begin/end methods.
2340 * redisplay-x.c (x_window_output_begin):
2341 * redisplay-x.c (x_window_output_end):
2342 * redisplay-x.c (console_type_create_redisplay_x):
2343 New begin/end methods.
2345 * redisplay.c (redisplay_frame):
2346 * redisplay.c (Fredisplay_echo_area):
2347 New begin/end methods.
2348 use MAYBE_DEVMETH for clear_frame; it may not exist.
2350 * window.h (WINDOW_XFRAME):
2351 WINDOW_XFOO macros -- get locale and decode struct pointer.
2354 2000-05-12 Ben Wing <ben@xemacs.org>
2357 * emacs.c (ensure_no_quitting_from_now_on):
2358 * emacs.c (fatal_error_signal):
2359 * emacs.c (mswindows_handle_hardware_exceptions):
2361 * emacs.c (Fkill_emacs):
2362 * emacs.c (shut_down_emacs):
2363 * emacs.c (assert_failed):
2364 various improvements in fatal error handling.
2367 move preparing_for_armageddon to emacs.c.
2370 declare fatal_error_in_progress.
2373 * print.c (std_handle_out_external):
2374 * print.c (std_handle_out_va):
2375 * print.c (stderr_out):
2376 * print.c (stdout_out):
2377 use console under mswin when no standard output.
2378 don't do code conversion during fatal error.
2380 * scrollbar.c (Fscrollbar_page_up):
2381 * scrollbar.c (Fscrollbar_page_down):
2382 fix missing else. reindent.
2384 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
2388 * glyphs.h (GLYPH_CACHEL_DESCENT):
2389 (GLYPH_CACHEL_DESCENT):
2390 (GLYPH_CACHEL_DESCENT):
2391 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
2392 used in case these are inline functions.
2393 Use more absurd values to error check.
2395 include window.h for error check functions.
2397 2000-05-11 Ben Wing <ben@xemacs.org>
2399 * cmdloop.c (Freally_early_error_handler):
2400 Display message box under windows; otherwise, message will disappear
2401 before it can be viewed.
2404 * console-msw.c (Fmswindows_message_box):
2405 * console-msw.c (FROB):
2406 * console-msw.c (syms_of_console_mswindows):
2407 Define new fun `mswindows-message-box'.
2408 #### I will merge this into `popup-dialog-box'; just give me
2412 * general.c (syms_of_general):
2413 Some new symbols used in `mswindows-message-box'.
2416 * glyphs.c (Fset_image_instance_property):
2417 put warning in this fun.
2420 * glyphs.h (GLYPH_CACHEL_WIDTH):
2421 * glyphs.h (GLYPH_CACHEL_ASCENT):
2422 * glyphs.h (GLYPH_CACHEL):
2423 * glyphs.h (GLYPH_CACHEL_GLYPH):
2424 define error-checking versions to try to catch a bug i've seen --
2425 redisplay gets in an infinite loop because the glyph width of the
2426 continuation glyph is 65535.
2429 Extern message-box stuff.
2431 * window.c (allocate_window):
2432 * window.c (make_dummy_parent):
2433 * window.c (Fset_window_configuration):
2434 Use EQUAL not EQ for subwindow caches to make them work a bit
2435 better. (Something is still very broken.)
2438 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
2440 * glyphs.c (image_instantiate): Suppress gcc warnings.
2441 (Fmake_image_instance): Fix doc string.
2442 * specifier.c (Fmake_specifier): Ditto.
2444 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
2446 * paths.h.in (PATH_LOCK): Removed.
2447 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
2448 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
2450 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
2452 * fns.c (Ffeaturep): Update e-mail address in doc-string.
2453 Document (featurep '(and xemacs 21.02)).
2455 2000-05-09 Ben Wing <ben@xemacs.org>
2457 * buffer.c (complex_vars_of_buffer):
2458 update modeline-format doc.
2461 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
2464 timeline of all released versions of Emacs, for use in creating
2465 authorship comments and in synching up.
2467 * glyphs-widget.c (image_instantiator_buttons):
2468 * glyphs-widget.c (image_instantiator_edit_fields):
2469 * glyphs-widget.c (image_instantiator_combo_box):
2470 * glyphs-widget.c (image_instantiator_scrollbar):
2471 * glyphs-widget.c (image_instantiator_progress_guage):
2472 * glyphs-widget.c (image_instantiator_tree_view):
2473 * glyphs-widget.c (image_instantiator_tab_control):
2474 * glyphs-widget.c (image_instantiator_labels):
2475 * glyphs-widget.c (image_instantiator_layout):
2476 * glyphs-widget.c (image_instantiator_native_layout):
2477 rename decode_domain method to governing_domain.
2480 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
2481 * glyphs.c (add_entry_to_device_ii_format_list):
2482 make sure we don't put an entry more than once into the list.
2483 * glyphs.c (check_instance_cache_mapper):
2484 *************************************************************
2485 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
2487 *************************************************************
2488 * glyphs.c (get_image_instantiator_governing_domain):
2489 clean up, expand on new concept of governing domain.
2490 * glyphs.c (instantiate_image_instantiator):
2491 * glyphs.c (allocate_image_instance):
2492 use governing_domain instead of cache_domain in naming.
2493 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
2494 * glyphs.c (make_image_instance_1):
2495 * glyphs.c (Fmake_image_instance):
2496 allow for any domain (not just device), and process the
2497 governing domain correctly. very big doc fix.
2498 * glyphs.c (Fimage_instance_domain):
2499 new primitive, to retrieve the governing domain of an image instance.
2500 * glyphs.c (image_instantiate):
2501 use new governing_domain stuff. this fixes a crash you could get
2502 by instantiating certain widget glyphs in frame locales. (should
2503 signal an error instead of crashing.)
2504 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
2505 * glyphs.c (Fglyphp): clean up doc.
2506 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
2507 * glyphs.c (syms_of_glyphs):
2508 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
2509 * glyphs.c (image_instantiator_format_create): add some comments about
2511 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
2512 for current-display-table. (Apparently Hrjove implemented in 1998 a
2513 design I wrote up in 1996, but didn't update the doc string.)
2515 * glyphs.h: clean up a doc string.
2516 * glyphs.h (governing_domain):
2517 * glyphs.h (struct image_instantiator_methods):
2518 changes for governing_domain stuff.
2521 * gutter.c (Fgutter_specifier_p):
2522 * gutter.c (Fgutter_size_specifier_p):
2523 * gutter.c (Fgutter_visible_specifier_p):
2525 * objects.c (Fcolor_specifier_p):
2526 * objects.c (Ffont_specifier_p):
2527 * objects.c (Fface_boolean_specifier_p):
2528 doc strings moved to make-*-specifier.
2530 * redisplay.c (add_disp_table_entry_runes_1):
2531 * redisplay.c (generate_fstring_runes):
2532 * redisplay.c (screen):
2533 add random comments and doc strings.
2536 * specifier.c (Fmake_specifier):
2537 major overhaul of this doc string.
2539 * specifier.c (Fvalid_specifier_domain_p):
2540 comment about the bogosity of image instances being domains.
2541 * specifier.c (decode_domain):
2542 now non-static, used in glyphs.c.
2543 * specifier.c (specifier_instance):
2544 comment about the bogosity of image instances being domains.
2545 * specifier.c (Fgeneric_specifier_p):
2546 move doc string to make-generic-specifier.
2547 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
2551 * specifier.h (DOMAIN_FRAME):
2552 * specifier.h (DOMAIN_LIVE_P):
2553 * specifier.h (DOMAIN_XDEVICE):
2555 add comments about problems with these macros.
2556 prototype for decode_domain.
2559 * toolbar.c (Ftoolbar_specifier_p):
2560 move doc string to `make-toolbar-specifier'.
2562 * window.c (window_unmap_subwindows_cache_mapper):
2563 *************************************************************
2564 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
2566 *************************************************************
2568 2000-05-09 Andy Piper <andy@xemacs.org>
2570 * glyphs.h: declare reset_frame_subwindow_instance_cache.
2572 * window.c (Fset_window_configuration): reset the frame subwindow
2573 cache and re-initialize the window subwindow caches.
2575 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
2577 2000-05-09 Ben Wing <ben@xemacs.org>
2579 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
2582 2000-04-26 Mike Woolley <mike@bulsara.com>
2584 * ntheap.c: Changed recreate_heap to limit the amount reserved
2585 for the heap to that which is actually available. Also now
2586 displays a message box (with some dignostics) in the event that
2587 it still can't start.
2589 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
2591 * callproc.c (Fold_call_process_internal): GCPRO path
2593 2000-05-08 Jan Vroonhof <jan@xemacs.org>
2595 Patch by Bill Perry.
2597 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
2598 back data instead of #ifdef.
2599 (Fscrollbar_page_down): ditto.
2601 2000-05-07 Ben Wing <ben@xemacs.org>
2604 Kludge for defining Qmswindows_tstr.
2607 * nt.c (open_input_file):
2608 * nt.c (open_output_file):
2609 * nt.c (rva_to_section):
2610 * nt.c (mswindows_executable_type):
2611 Move all memory-mapped-file routines here (some were in unexnt.c,
2612 which is bad because they are used by process-nt.c, and unexnt
2613 won't be around when portable dumping). Synched the above routines
2617 Removed ifdef'd out bogus code.
2618 Fixed some prototypes.
2621 * nt.h (OFFSET_TO_RVA):
2622 * nt.h (RVA_TO_OFFSET):
2623 * nt.h (RVA_TO_PTR):
2624 Moved the memory-mapped-file structures, macros and prototypes
2625 here, to parallel nt.c. ntheap.h should really be removed
2626 entirely, and it's a non-portable-dumper specific file.
2628 * ntheap.h (round_to_next):
2629 Moved the memory-mapped-file structures, macros and prototypes
2632 * ntproc.c (compare_env):
2633 Moved rva_to_section and mswindows_executable_type to nt.c.
2634 Moved compare_env to process-nt.c.
2635 ntproc.c will die, one day.
2637 * ntproc.c (sys_spawnve):
2638 Account for win32_ -> mswindows_.
2641 * process-nt.c (struct nt_process_data):
2642 * process-nt.c (ensure_console_window_exists):
2643 * process-nt.c (compare_env):
2644 * process-nt.c (nt_create_process):
2645 * process-nt.c (nt_kill_process_by_pid):
2646 * process-nt.c (syms_of_process_nt):
2647 * process-nt.c (vars_of_process_nt):
2648 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
2649 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
2650 changes). Eliminate our old `nt-quote-process-args' mechanism.
2651 Synch up nt_create_process with FSF 20.6 sys_spawnve.
2652 Move compare_env here from ntproc.c.
2654 * process.c (Fprocess_send_region):
2655 Takes an optional fourth argument, BUFFER, which should fix some
2656 problems with call-process.
2659 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
2662 Move ICC_BAR_CLASSES to syscommctrl.h.
2663 Add preliminary macros for MSWindows/Mule. More to come.
2666 * unexnt.c (unexec):
2667 open_output_file moved to nt.c.
2670 2000-05-05 Andy Piper <andy@xemacs.org>
2672 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
2673 instance from the frame cache also since GC may catch up too late
2674 to make frame deletion sane.
2676 2000-05-04 Andy Piper <andy@xemacs.org>
2678 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
2679 (x_finalize_image_instance): ungcpro on deletion.
2681 * glyphs.c (image_instantiator_format_create): give pointers a
2682 query geometry method so that the geometry is at least set.
2684 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
2685 initialize layouts if using widgets.
2687 2000-05-03 Andy Piper <andy@xemacs.org>
2689 * nt.c: remove bogus reference to sysmmsystem.h
2691 * gui-x.c (popup_selection_callback): fix no selection abort.
2693 2000-05-02 Andy Piper <andy@xemacs.org>
2695 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
2696 (mswindows_widget_instantiate): ditto.
2698 * glyphs-widget.c (initialize_widget_image_instance): initialize
2700 (widget_instantiate): cope with children and items in the same
2703 * glyphs.c (mark_image_instance): cope with children as a first
2705 (image_instance_equal): ditto.
2706 (image_instance_hash): ditto.
2707 (image_instance_changed): ditto.
2709 2000-04-30 Andy Piper <andy@xemacs.org>
2711 * glyphs.c (subwindow_query_geometry): new function. Return some
2713 (subwindow_instantiate): don't assign dimensions if none have been
2715 (image_instantiator_format_create): add subwindow_query_geometry.
2716 (print_image_instance): cope with layouts as widgets.
2718 2000-04-29 Andy Piper <andy@xemacs.org>
2720 * frame.c (delete_frame_internal): call
2721 free_frame_subwindow_instance_cache so that all subwindows are
2722 finalized before their parent.
2723 (mark_frame): remove subwindow_cachels.
2724 (Fmake_frame): remove subwindow_cachel manipulation.
2725 (allocate_frame_core): subwindow_instance_cache is a weak list.
2726 (delete_frame_internal): set subwindow_instance_cache to nil.
2728 * glyphs-msw.c (mswindows_finalize_image_instance): make double
2730 (mswindows_finalize_image_instance): use the device
2731 not the domain as the domain may have died already.
2733 * glyphs-x.c (x_finalize_image_instance): ditto.
2734 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
2737 * redisplay-output.c (redisplay_unmap_subwindows): update for
2738 subwindow instance cache as a weak list.
2739 (redisplay_unmap_subwindows_maybe): ditto.
2740 (redisplay_unmap_subwindows_except_us): ditto.
2742 * glyphs.c (unmap_subwindow): error checking will check the domain
2743 so don't deal with it here. Don't use cachels anymore.
2744 (map_subwindow): ditto.
2745 (update_subwindow_cachel_data): remove old accessor names.
2746 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
2747 (Fresize_subwindow): don't update cachel.
2748 (mark_subwindow_cachels):
2749 (update_subwindow_cachel_data):
2750 (add_subwindow_cachel):
2751 (get_subwindow_cachel_index):
2752 (update_subwindow_cachel):
2753 (reset_subwindow_cachels):
2754 (mark_subwindow_cachels_as_not_updated): deleted.
2755 (cache_subwindow_instance_in_frame_maybe): new function. Add a
2756 subwindow instance to the frame cache.
2757 (find_matching_subwindow): update for subwindow instance cache as
2759 (update_widget_instances): ditto.
2760 (image_instance_type_to_mask):inlined.
2761 (free_frame_subwindow_instance_cache): new function. finalize all
2762 subwindows that are instantiated.
2764 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
2765 of cachel information.
2766 (IMAGE_INSTANCE_DISPLAY_X):
2767 (IMAGE_INSTANCE_DISPLAY_Y):
2768 (IMAGE_INSTANCE_DISPLAY_WIDTH):
2769 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
2770 (XIMAGE_INSTANCE_DISPLAY_X):
2771 (XIMAGE_INSTANCE_DISPLAY_Y):
2772 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
2773 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
2774 remove subwindow_cachel structure and function references.
2775 (image_instance_type_to_mask): inline from glyphs.c
2777 * redisplay.c (redisplay_frame): remove subwindow_cachel
2780 * frame.h (struct frame): remove subwindow_cachels.
2781 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
2783 * frameslots.h: add subwindow_instance_cache.
2785 * window.c (replace_window): check subwindow cache of replacement.
2786 (window_unmap_subwindows_cache_mapper):
2787 (window_unmap_subwindows): new functions. Unmap all subwindows
2788 cached on this window.
2789 (mark_window_as_deleted): unmap all subwindows.
2791 2000-04-27 Andy Piper <andy@xemacs.org>
2793 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
2795 * glyphs-widget.c (widget_layout): return something.
2796 (layout_layout): return something. Fail if not intialized.
2797 (layout_query_geometry): ditto.
2798 (image_instantiator_native_layout): new function. Initialized the
2800 (widget_instantiate): don't do layout stuff here.
2802 * glyphs.c (instantiate_image_instantiator): reorded calling or
2803 instantiate and post_instantiate with layout in between.
2804 (image_instance_layout): be more selective about deciding whether
2805 the layout has been done or not.
2807 * glyphs.h (struct image_instantiator_methods): return a value
2810 2000-04-26 Andy Piper <andy@xemacs.org>
2812 * glyphs.c (allocate_image_instance): make initial width and
2813 height unspecified. Set initialized to 0.
2815 * syscommctrl.h new file. Encapsulates commctrl.h.
2817 * syswindows.h new file. Encapsulates windows.h.
2819 * ntplay.c: use new syswindows.h and syscommctrl.h header.
2821 * console-msw.h: ditto.
2823 * redisplay-tty.c (tty_output_display_block): remove layout references.
2825 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
2826 window handle rather than just the frame.
2828 * glyphs.c (mark_image_instance): remove layout references.
2829 (print_image_instance): ditto.
2830 (image_instance_equal): ditto.
2831 (image_instance_hash): ditto.
2832 (decode_image_instance_type): ditto.
2833 (encode_image_instance_type): ditto.
2834 (image_instantiate): ditto.
2835 (allocate_glyph): ditto.
2836 (Fimage_instance_height): ditto.
2837 (Fimage_instance_width): ditto.
2838 (update_subwindow): ditto.
2840 * redisplay-x.c (x_output_display_block): recode for layouts as
2843 * redisplay-output.c (redisplay_output_layout): recode for layouts
2845 (compare_runes): remove layout references.
2847 * redisplay-msw.c (mswindows_output_display_block): recode for
2850 * glyphs-widget.c (image_instantiator_layout): remove
2851 layout_possible_dest_types.
2852 (layout_possible_dest_types): deleted.
2854 * glyphs.h (image_instance_type): remove layout references.
2855 (struct Lisp_Image_Instance): ditto. Add initialized flag.
2856 (IMAGE_INSTANCE_INITIALIZED): new accessor.
2857 (XIMAGE_INSTANCE_INITIALIZED): ditto.
2859 2000-04-25 Andy Piper <andy@xemacs.org>
2861 * glyphs-widget.c (image_instantiator_buttons):
2862 (image_instantiator_edit_fields):
2863 (image_instantiator_combo_box):
2864 (image_instantiator_scrollbar):
2865 (image_instantiator_progress_guage):
2866 (image_instantiator_tree_view):
2867 (image_instantiator_tab_control):
2868 (image_instantiator_labels):
2869 (image_instantiator_layout): call default post_instantiate method.
2870 (widget_post_instantiate): new function. Simply lays out the
2873 * glyphs.h (struct image_instantiator_methods): add
2874 post_instantiate method.
2876 * glyphs.c (instantiate_image_instantiator): add post_instantiate
2879 2000-04-23 Andy Piper <andy@xemacs.org>
2881 * glyphs.h (struct image_instantiator_methods): add
2882 decode_domain_method.
2883 (struct Lisp_Image_Instance): remove subwindow frame - it can be
2884 derived from the domain.
2885 (IMAGE_INSTANCE_FRAME): new accessor.
2886 (XIMAGE_INSTANCE_FRAME): ditto.
2888 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
2889 instead of _SUBWINDOW_FRAME.
2890 (finalize_image_instance): ditto.
2891 (Fimage_instance_foreground): ditto.
2892 (Fimage_instance_background): ditto.
2893 (image_instantiate): ditto.
2894 (update_subwindow_cachel): ditto.
2895 (update_subwindow): ditto.
2896 (unmap_subwindow): ditto.
2897 (map_subwindow): ditto
2898 (subwindow_instantiate): ditto.
2899 * glyphs-msw.c (mswindows_update_widget): ditto.
2900 (mswindows_progress_gauge_instantiate): ditto.
2901 (mswindows_tab_control_update): ditto.
2902 * glyphs-x.c (x_update_widget): ditto.
2903 (x_widget_instantiate): ditto.
2904 (x_tab_control_instantiate): ditto.
2905 (x_tab_control_update): ditto.
2906 * event-msw.c (mswindows_wnd_proc): ditto
2908 * glyphs-widget.c (image_instantiator_layout): use
2909 subwindow_decode_domain.
2910 (image_instantiator_buttons): ditto.
2911 (image_instantiator_edit_fields): ditto.
2912 (image_instantiator_combo_box): ditto.
2913 (image_instantiator_scrollbar): ditto.
2914 (image_instantiator_progress_guage): ditto.
2915 (image_instantiator_tree_view): ditto.
2916 (image_instantiator_tab_control): ditto.
2917 (image_instantiator_labels): ditto.
2918 (image_instantiator_layout): ditto.
2920 * glyphs.c: add instance error checking to many functions.
2921 (instantiate_image_instantiator): decode device from cache_domain.
2922 (image_instantiate): partially rewrite by using
2923 decode_image_instantiator_domain to determine what domain the
2924 instance needs to be cached in.
2925 (decode_image_instantiator_domain): new function. Determine what
2926 domain the image needs to be cached in.
2927 (check_window_subwindow_cache): new error checking function.
2928 (check_instance_cache_mapper): ditto.
2929 (check_image_instance_structure): ditto.
2930 (subwindow_decode_domain): new function. Encodes a window as a
2931 subwindow's cache domain.
2932 (image_instantiator_format_create): use it for text and
2935 2000-04-21 Andy Piper <andy@xemacs.org>
2937 * glyphs.c (image_instance_device): new function.
2938 (image_instance_frame): new function.
2939 (image_instance_window): new function.
2940 (image_instance_live_p): new function.
2942 * window.c (mark_window_as_deleted): reset the subwindow_instance_
2945 * glyphs.h (struct Lisp_Image_Instance): device->domain.
2946 (IMAGE_INSTANCE_DOMAIN): new accessor.
2947 (XIMAGE_INSTANCE_DOMAIN): ditto.
2949 * glyphs-x.c (x_finalize_image_instance): device->domain.
2951 * glyphs-msw.c (init_image_instance_geometry): device->domain.
2952 (mswindows_finalize_image_instance): ditto.
2954 * glyphs-eimage.c (jpeg_instantiate): device->domain.
2955 (gif_instantiate): ditto.
2956 (png_instantiate): ditto.
2957 (tiff_instantiate): ditto.
2959 * glyphs.c (instantiate_image_instantiator): use domain rather
2961 (mark_image_instance): device -> domain.
2962 (print_image_instance): ditto.
2963 (finalize_image_instance): ditto.
2964 (image_instance_equal): ditto.
2965 (allocate_image_instance): ditto.
2966 (Fcolorize_image_instance): ditto.
2967 (query_string_geometry): ditto.
2968 (image_instantiate): ditto
2969 (query_string_font): ditto.
2970 (image_instantiate): ditto.
2971 (update_subwindow): ditto.
2972 (unmap_subwindow): ditto.
2973 (map_subwindow): ditto.
2974 (subwindow_instantiate): ditto.
2976 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
2977 (DOMAIN_FRAME): ditto.
2978 (DOMAIN_WINDOW): ditto.
2979 (DOMAIN_LIVE_P): ditto.
2980 (XDOMAIN_DEVICE): ditto.
2981 (XDOMAIN_FRAME): ditto.
2982 (XDOMAIN_WINDOW): ditto.
2984 * specifier.c (Fvalid_specifier_domain_p): add image instances as
2985 a valid specifier domain.
2987 2000-04-19 Andy Piper <andy@xemacs.org>
2989 * glyphs-widget.c (syms_of_glyphs_widget): remove
2990 widget-callback-current-channel.
2991 (vars_of_glyphs_widget): ditto.
2994 * gui.c (get_gui_callback): revert to previous behaviour.
2996 2000-04-18 Andy Piper <andy@xemacs.org>
2998 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
2999 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
3000 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
3002 * glyphs.c (image_instance_equal): add margin_width.
3003 (image_instance_hash): ditto.
3005 * glyphs-widget.c (widget_instantiate): deal with margin-width.
3006 (layout_query_geometry): ditto.
3007 (layout_layout): ditto.
3008 (syms_of_glyphs_widget): add margin-width.
3009 (image_instantiator_layout): allow margin-width.
3011 * glyphs.c (update_widget_instances): make a normal function.
3012 (syms_of_glyphs): remove Qupdate_widget_instances.
3015 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
3016 so that we don't corrupt ideas about the last event or
3017 command. Remove widget-callback-current-channel fiddling.
3018 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
3020 2000-05-01 Martin Buchholz <martin@xemacs.org>
3022 * XEmacs 21.2.33 is released.
3024 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
3026 * make-src-depend: Allow dots in header file name.
3028 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
3030 * mule-charset.h (struct charset_lookup): Add
3031 next_allocated_1_byte_leading_byte and
3032 next_allocated_2_byte_leading_byte.
3033 * mule-charset.c: Move above two variables so that those values
3036 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
3038 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
3039 when string length is zero.
3040 (find_charsets_in_emchar_string): Ditto.
3042 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
3044 * lisp.h: extern Qdialog and Qmenubar.
3046 * gui-x.c: added events.h.
3047 also fixed typo which made the file uncompilable.
3049 * general.c: Added Qmenubar and Qdialog
3051 2000-04-28 Ben Wing <ben@xemacs.org>
3053 * frame-msw.c (mswindows_init_frame_1):
3054 * frame-msw.c (mswindows_mark_frame):
3055 * event-msw.c (mswindows_enqueue_dispatch_event):
3057 * console-msw.h (struct mswindows_frame):
3058 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
3059 there are now three hash tables for callbacks.
3060 mswindows_enqueue_dispatch_event is no longer static.
3062 * dialog-x.c (maybe_run_dbox_text_callback):
3063 * dialog-x.c (dbox_descriptor_to_widget_value):
3064 switch to new cons3 form for callbacks.
3066 * glyphs-msw.c (mswindows_register_gui_item):
3067 * glyphs-msw.c (mswindows_widget_instantiate):
3068 * glyphs-msw.c (add_tree_item):
3069 * glyphs-msw.c (add_tab_item):
3070 new image instance parameter, so it can be passed to callback-ex.
3071 respect :callback-ex as well as :callback.
3073 * glyphs-widget.c (VALID_GUI_KEYWORDS):
3076 * glyphs.c (print_image_instance):
3077 prettify, e.g. now prints widget type.
3080 certain funs have new image instance parameter.
3083 * gui.c (get_gui_callback):
3084 * gui.c (gui_item_add_keyval_pair):
3085 * gui.c (gui_item_init):
3086 * gui.c (gui_add_item_keywords_to_plist):
3087 * gui.c (mark_gui_item):
3088 * gui.c (gui_item_hash):
3089 * gui.c (gui_item_equal):
3090 * gui.c (copy_gui_item):
3091 * gui.c (syms_of_gui):
3092 recognize callback-ex in a number of places.
3093 also, fix the annoying "can't get out of yes-no dialog" bug.
3096 * gui.h (struct Lisp_Gui_Item):
3097 recognize callback-ex in a number of places.
3099 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
3100 new parameter in button_item_to_widget_value.
3102 * glyphs-x.c (x_update_widget):
3103 * glyphs-x.c (x_button_instantiate):
3104 * glyphs-x.c (x_button_update):
3105 * glyphs-x.c (x_progress_gauge_instantiate):
3106 * glyphs-x.c (x_edit_field_instantiate):
3107 * glyphs-x.c (x_combo_box_instantiate):
3108 * glyphs-x.c (x_tab_control_instantiate):
3109 * glyphs-x.c (x_label_instantiate):
3110 new image instance parameter in various places.
3113 * event-Xt.c (enqueue_Xt_dispatch_event):
3114 this fun gets exported.
3117 * gui-msw.c (mswindows_handle_gui_wm_command):
3118 handle both :callback and :callback-ex, and generate our own
3119 event because it's one of the callback-ex arguments.
3122 * gui-x.c (popup_selection_callback):
3123 handle both :callback and :callback-ex, and generate our own
3124 event because it's one of the callback-ex arguments.
3125 * gui-x.c (button_item_to_widget_value):
3126 * gui-x.c (gui_items_to_widget_values_1):
3127 * gui-x.c (gui_item_children_to_widget_values):
3128 * gui-x.c (gui_items_to_widget_values):
3129 new image instance parameter in various places.
3131 * fns.c (Freplace_list):
3132 fix small typo in doc string.
3135 declare enqueue_Xt_dispatch_event.
3137 2000-04-28 Ben Wing <ben@xemacs.org>
3140 * buffer.c (Frecord_buffer):
3141 * buffer.c (syms_of_buffer):
3142 delete record-buffer-hook.
3145 * fns.c (Freplace_list):
3146 * fns.c (syms_of_fns):
3147 new primitive replace-list.
3150 slot for old buffer-alist.
3156 * redisplay.c (redisplay_frame):
3157 * redisplay.c (syms_of_redisplay):
3158 * redisplay.c (vars_of_redisplay):
3159 new hook buffer-list-changed-hook.
3162 2000-04-27 Ben Wing <ben@xemacs.org>
3164 * extents.h: extern in_modeline_generation.
3166 * redisplay.c (generate_formatted_string_db): set
3167 in_modeline_generation.
3169 * extents.c (extent_changed_for_redisplay): don't mark redisplay
3170 flags if in modeline generation. otherwise frame-modified-tick
3171 is ticked far too often.
3172 Declare in_modeline_generation.
3174 2000-04-26 Ben Wing <ben@xemacs.org>
3176 * emacs.c (vars_of_emacs): document quick-build "error-checking"
3178 (vars_of_emacs): add quick-build as an error-checking option.
3179 A bit kludgy, but there doesn't seem much point in creating
3180 a real var for this.
3182 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
3184 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
3186 * redisplay.h (struct display_line): Add a new variable,
3189 * redisplay.c (create_text_block): Set dl->line_continuation if
3191 (create_string_text_block): Ditto.
3192 (regenerate_window_incrementally): Use line_continuation instead
3193 of searching continuation glyph.
3194 (add_margin_runes): Call add_glyph_rune.
3195 (add_glyph_rune): Handle margin glyph.
3197 2000-04-20 Martin Buchholz <martin@xemacs.org>
3199 * filelock.c (fill_in_lock_file_name):
3201 Check for IS_ANY_SEP instead of '/'.
3203 Avoid generating gratuitous garbage. Call user_login_name() directly.
3204 Never check errno without first seeing that system call failed.
3205 (unlock_file): Add GCPRO.
3206 (Flock_buffer): Fix docstring.
3207 (Ffile_locked_p): Fix docstring. Add GCPRO.
3209 2000-04-19 Martin Buchholz <martin@xemacs.org>
3211 * sysdep.c (get_pty_max_bytes):
3212 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
3213 strings longer than 252 bytes.
3215 * md5.c: Unconditionally include ANSI header <limits.h>
3217 * glyphs-x.c (convert_EImage_to_XImage):
3218 * lisp-union.h (union Lisp_Object):
3219 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
3221 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
3223 * filelock.c (current_lock_owner): Remove unused variable o, p.
3225 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
3227 * callint.c: Remove multiply defined symbol Qlet
3228 (syms_of_callint): ditto.
3230 2000-04-14 Andy Piper <andy@xemacs.org>
3232 * general.c (syms_of_general): add last-command, this-command, let
3235 * lisp.h: declare various symbols.
3237 * glyphs.h: declare Qwidget_callback_current_channel;
3239 * glyphs-widget.c (syms_of_glyphs_widget): add
3240 Qgui_callback_current_channel.
3241 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
3243 * gui-msw.c (mswindows_handle_gui_wm_command): bind
3244 widget-callback-current-channel when invoking the interactive
3245 arg. Also bind last-command and next-command when invoking the
3247 * gui-x.c (popup_selection_callback): ditto.
3249 * gui.c (get_gui_callback): massage args so that we are always
3250 calling eval. This allows us to add our own variable bindings
3253 * glyphs-x.c (x_button_instantiate): use
3254 gui_items_to_widget_values since this is GC safe.
3255 (x_progress_gauge_instantiate): ditto.
3256 (x_edit_field_instantiate): ditto.
3257 (x_label_instantiate): ditto.
3259 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
3260 (emacs_Xt_event_widget_focus_out): new function
3261 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
3263 (emacs_Xt_event_add_widget_actions): new function. add focus
3264 functions as actions.
3265 (init_event_Xt_late): use it.
3267 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
3269 * event-stream.c (Fdispatch_event): Doc fix.
3271 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
3273 * postgresql.c: Remove all references to PQsetenv*.
3275 * postgresql.h: Remove references to PGsetenvHandler object.
3276 * lrecord.h (lrecord_type): Ditto.
3278 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
3280 * glyphs-msw.h (struct mswindows_image_instance_data): Added
3281 real_heigh and real_width members, and accessor macros for these.
3283 * glyphs-msw.c (init_image_instance_geometry): New function.
3284 (init_image_instance_from_dibitmap): Use it.
3285 (mswindows_resource_instantiate): Use it.
3286 (init_image_instance_from_xbm_inline): Use it.
3287 (mswindows_initialize_image_instance_mask): Use real bitmap
3289 (mswindows_create_resized_bitmap): Ditto.
3290 (mswindows_create_resized_mask): Ditto.
3292 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
3293 and bitmap to their surface size.
3295 2000-04-11 Jan Vroonhof <jan@xemacs.org>
3297 * process-unix.c (unix_send_process): Guard against process MIA
3298 after Faccept_process_output.
3300 2000-04-11 Ben Wing <ben@xemacs.org>
3302 * eval.c (unbind_to_hairy): fix brokenness introduced by
3303 nanosecond speed improvements.
3305 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
3307 * sunplay.c (init_device): To play sounds correctly, the device
3308 apparently needs to be initialized at least once by XEmacs. Make
3311 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
3313 * redisplay.c (add_margin_runes): Add text image glyph
3316 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
3318 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
3319 gcc is newer than 2.5.
3321 2000-04-06 Colin Rafferty <colin@xemacs.org>
3323 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
3325 * fns.c (size_bit_vector):
3326 * alloc.c (size_vector):
3327 (make_vector_internal):
3328 (make_bit_vector_internal):
3329 (sweep_bit_vectors_1):
3330 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
3332 2000-04-06 Andy Piper <andy@xemacs.org>
3334 * gmalloc.c (malloc): undo previous change.
3339 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
3341 * line-number.c (buffer_line_number): Revert to former version.
3343 2000-04-06 Andy Piper <andy@xemacs.org>
3345 * gmalloc.c (malloc): add error checking.
3350 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
3351 button_item_to_widget_value arg.
3353 * glyphs-x.c (x_button_instantiate): add extra
3354 button_item_to_widget_value arg.
3355 (x_progress_gauge_instantiate): ditto.
3356 (x_edit_field_instantiate): ditto.
3357 (x_label_instantiate): ditto.
3359 * gui-x.c (gui_items_to_widget_values_1): add extra
3360 button_item_to_widget_value arg.
3361 (button_item_to_widget_value): add extra menu_item_p arg.
3363 * gui-x.h: change signature of button_item_to_widget_value.
3365 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
3366 button_item_to_widget_value arg.
3368 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
3370 * buffer.h (struct buffer): auto_save_modified should be long.
3372 2000-04-05 Andy Piper <andy@xemacs.org>
3374 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
3376 (button_query_geometry): give a little more room so that athena
3379 2000-04-05 Andy Piper <andy@xemacs.org>
3381 * faces.c (complex_vars_of_faces): The widget face should inherit
3382 the font of the gui-element face.
3384 2000-04-04 Andy Piper <andy@xemacs.org>
3386 * glyphs-x.c (x_button_update): new function. unconditionally
3387 update a button's state when the instance is dirty.
3388 (image_instantiator_format_create_glyphs_x): add x_button_update.
3389 (x_widget_instantiate): remove old resize cruft.
3391 2000-04-02 Andy Piper <andy@xemacs.org>
3393 * frame.c (change_frame_size_1): The introduction of gutters means
3394 that we need to allow 0 as a potential frame dimension.
3396 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
3398 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
3399 image glyph if allow_cursor.
3400 (add_hscroll_rune): Don't allow cursor to border glyph.
3401 (create_text_block): Ditto.
3403 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
3405 (redisplay_output_layout): Call ensure_face_cachel_complete for
3409 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
3411 * redisplay.c (add_glyph_rune): Adding text image as text runes.
3413 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
3416 * redisplay-tty.c (tty_output_display_block): Delete the routine
3417 for text image glyph
3418 * redisplay-x.c (x_output_display_block): ditto
3419 * redisplay-msw.c (mswindows_output_display_block): ditto
3421 2000-02-02 Mike Alexander <mta@arbortext.com>
3423 Note: Some of these were committed by accident as part of other
3426 * regex.c (regex_compile): Avoid compiler warnings.
3428 * ntproc.c (sys_spawnve): Avoid compiler warnings.
3430 * nt.h: Declare term_ntproc correctly.
3432 * nt.c: Remove incorrect declaration of get_home_directory which
3433 is declared correctly in lisp.h.
3435 * keymap.c (get_keyelt): Avoid compiler warnings.
3436 (raw_lookup_key_mapper): Avoid compiler warnings.
3438 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
3440 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
3442 * filemode.c (mode_string): Avoid compiler warnings.
3444 * file-coding.c (Fcoding_system_aliasee): Add return statement to
3447 * events-mod.h: Undef some things that winuser.h defines differently.
3449 * data.c (Faset): Avoid compiler warnings.
3451 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
3453 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
3455 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
3456 Fall through to simple beep on error.
3457 Replace "extern" by real header file.
3459 * linuxplay.c: Use nativesound.h
3460 (play_sound_data): Return error code. Be less verbose on error.
3462 * sunplay.c: Use nativesound.h
3463 (play_sound_data): Return error code. Be less verbose on error.
3465 * ntplay.c: Use nativesound.h
3466 (play_sound_data): Return fake error code
3468 * sgiplay.c: Use nativesound.h
3469 (play_sound_data): Return error code
3471 * hpplay.c: Use nativesound.h, partially implement
3472 new error code. Break compilation until finished.
3473 (play_sound_data): error code.
3475 * nativesound.h (play_sound_file):
3476 (play_sound_data): Prototype in new header.
3478 2000-03-31 Andy Piper <andy@xemacs.org>
3480 * glyphs-widget.c: (button_query_geometry): new function. Adjust
3481 for toggle and radio buttons.
3482 (image_instantiator_buttons): use it.
3484 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
3486 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
3487 (x_update_horizontal_scrollbar_callback): Return if no mirror was
3488 found. Scrollbar event probably belonged to some old config.
3490 2000-03-31 Andy Piper <andy@xemacs.org>
3492 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
3494 (initialize_widget_image_instance): default layout to
3495 LAYOUT_HORIZONTAL rather than 0.
3496 (widget_instantiate): reverse the item list at the end rather than
3498 (layout_layout): re-code for the border text at the front of the
3499 item list rather than at the end.
3500 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
3501 provided by the user.
3502 (widget_query_geometry): comment.
3504 2000-03-30 Andy Piper <andy@xemacs.org>
3506 * glyphs-widget.c (image_instantiator_layout): allow standard
3507 widget keywords in layouts.
3509 * gutter.c (output_gutter): cope with nil gutter contents.
3511 * frame.c (Fset_frame_properties): add gutter docs.
3513 2000-03-29 Andy Piper <andy@xemacs.org>
3515 * toolbar-msw.c (TBSTYLE_FLAT): add.
3516 (mswindows_output_toolbar): minor fiddling.
3518 2000-03-29 Andy Piper <andy@xemacs.org>
3520 * gutter.c (output_gutter): force gutter size recalculation if
3521 what we are trying to display won't fit.
3522 (update_gutter_geometry): new function. A per-gutter version of
3523 update_frame_gutter_geometry.
3524 (update_frame_gutter_geometry): use it.
3525 (redraw_exposed_gutter): add extra debugging output.
3527 2000-03-28 Mike Alexander <mta@arbortext.com>
3529 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
3530 (pdump_file_unmap): Implement it on Windows
3531 (pdump_file_get): Save alocated handles for pdump_file_unmap
3533 2000-03-28 Andy Piper <andy@xemacs.org>
3535 * gui.c (get_gui_callback): treat Quit specially.
3537 2000-03-27 Andy Piper <andy@xemacs.org>
3539 * glyphs.c (image_instantiate): be careful to check in the same
3542 2000-03-27 Didier Verna <didier@xemacs.org>
3544 * config.h.in: define the proper SMART_INCLUDE macro.
3545 handle renaming of `foo_h_path' to `foo_h_file'.
3547 * database.c: ditto.
3551 * linuxplay.c: ditto.
3553 * terminfo.c: ditto.
3555 * tooltalk.h: ditto.
3557 2000-03-27 Andy Piper <andy@xemacs.org>
3559 * glyphs-msw.c (mswindows_update_widget): make sure the widget
3560 gets updated whenever the face might have changed.
3562 2000-03-26 Mike Alexander <mta@arbortext.com>
3564 * dumper.c (pdump_resource_free): Fix the comment.
3566 2000-03-21 Olivier Galibert <galibert@pobox.com>
3568 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
3570 2000-03-22 Mike Alexander <mta@arbortext.com>
3572 * dumper.c: Include Windows headers on Windows
3573 (pdump_resource_free): Add a body to the function
3574 (pdump_load): exe_name -> exe_path and add some comments.
3576 2000-03-25 Mike Alexander <mta@arbortext.com>
3578 * gui.c (copy_gui_item_tree): Return a value in all cases
3580 2000-03-21 Didier Verna <didier@xemacs.org>
3582 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
3584 (SMART_INCLUDE): new macro.
3585 (POSTGRES_INCLUDE): new macro to include postgresql headers from
3586 the proper location.
3588 * postgresql.c: use it.
3592 2000-03-24 Andy Piper <andy@xemacs.org>
3594 * gutter.c (redraw_exposed_gutters): must be "in display" when we
3597 2000-03-24 Andy Piper <andy@xemacs.org>
3599 * redisplay-output.c (compare_runes): use image_instance_changed
3600 to detect changes. Do not depend on glyphs_changed, only depend on
3602 (redisplay_output_layout): add debug messages.
3603 (compare_runes): ditto.
3605 * glyphs.h: declare new functions.
3606 (struct Lisp_Image_Instance): remove percent and associated
3609 * gui.h: declare new copying functions.
3611 * gui.c (copy_gui_item_tree): new function.
3612 (copy_gui_item): new function.
3613 (gui_item_id_hash): revert to standard hash.
3614 (gui_item_hash): ditto.
3615 (gui_item_hash_internal): deleted.
3616 (mark_gui_item): mark value.
3617 (gui_item_add_keyval_pair): add value.
3618 (gui_item_init): ditto.
3619 (gui_add_item_keywords_to_plist): ditto.
3620 (gui_item_equal): ditto.
3621 (syms_of_gui): add Q_value.
3623 * glyphs-x.c (x_progress_gauge_update): use pending items and
3624 value for setting the state.
3625 (x_update_widget): don't set items from pending here.
3627 * glyphs-widget.c (update_widget): update items here.
3628 (progress_gauge_set_property): use items for storing value. Put
3629 new value in pending items.
3631 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
3632 items for new value. Convert percent -> value.
3633 (mswindows_tab_control_update): don't update items here.
3635 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
3636 (update_subwindow): ditto.
3637 (image_instance_changed): new function. Compare hash values and
3638 past and present widget items.
3639 (image_instantiate): We more careful about where we instantiate
3641 (image_instantiate): add error checking.
3643 * gutter.c (syms_of_gutter): use -hook.
3645 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
3647 * console-tty.c (Fset_console_tty_input_coding_system): Use
3649 (Fset_console_tty_output_coding_system): Use Qterminal.
3650 (tty_init_console): Use Qkeyboard and Qterminal.
3652 2000-03-21 Ben Wing <ben@xemacs.org>
3654 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
3655 From Mike Alexander <mta@arbortext.com>.
3657 2000-03-21 Ben Wing <ben@xemacs.org>
3659 * event-msw.c (mswindows_need_event): Horrible kludge to fix
3660 process brokenness. Proper implementation to come.
3662 Rename call-process-internal to old-call-process-internal.
3663 New impl. in process.el.
3665 2000-03-21 Martin Buchholz <martin@xemacs.org>
3667 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
3669 2000-03-20 Andy Piper <andy@xemacs.org>
3671 * glyphs.c (full_list_hash): make hashes of the same elements in
3672 different orders return different values.
3674 2000-03-20 Martin Buchholz <martin@xemacs.org>
3676 * XEmacs 21.2.32 is released.
3678 2000-03-20 Martin Buchholz <martin@xemacs.org>
3680 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
3681 (DFC_MALLOC_USE_CONVERTED_DATA):
3682 Add aliasing-safe casts to allow use with char* or unsigned char*
3685 * eldap.c (Fldap_open):
3686 (Fldap_search_basic):
3689 Make C++-compilable.
3690 Make sure GCPRO'ed variables are initialized.
3691 Use temp variables to avoid repeated calls to Flength.
3693 2000-03-16 Martin Buchholz <martin@xemacs.org>
3696 Make sure PATH_MAX is always defined.
3697 Include limits.h for PATH_MAX.
3698 Deprecate use of MAXPATHLEN.
3700 2000-03-10 Martin Buchholz <martin@xemacs.org>
3702 * emacs.c: Add reinit_vars_of_fileio.
3703 * symsinit.h: Add reinit_vars_of_fileio.
3704 * fileio.c (reinit_vars_of_fileio): New.
3705 * fileio.c (Fmake_temp_name):
3706 Initialize temp_name random number from microseconds to make
3707 collisions even less likely. Initialize always at process startup
3708 time. (make-temp-name) used to return the same file name twice in
3710 Random stylistic fiddling.
3713 2000-03-20 Andy Piper <andy@xemacs.org>
3715 * glyphs.c (image_instantiate): allow text glyphs to be
3716 instantiated in the minibuffer window.
3718 2000-03-19 Andy Piper <andy@xemacs.org>
3720 * glyphs.c (image_instance_hash): be careful about which items we
3723 * glyphs-widget.c (tab_control_set_property): record into pending
3724 items rather than the actual items.
3726 * glyphs-x.c (x_update_widget): use pending items to update with.
3728 * glyphs-msw.c (mswindows_tab_control_update): use pending items
3731 * glyphs.c (mark_image_instance): mark pending items.
3733 * window.c (Fset_window_configuration): record the buffer.
3734 (Fselect_window): totally revert previous change which breaks many
3737 2000-03-18 Andy Piper <andy@xemacs.org>
3739 * glyphs-msw.c (mswindows_tab_control_update): force selected
3742 * glyphs.c (image_instantiate): don't allow the minibuffer as a
3743 window domain cache, otherwise we get inconsistencies at
3744 startup. There is something fishy at startup which can lead to the
3745 minibuffer being the selected window when the gutter content is
3748 * gui.c (parse_gui_item_tree_list): add probably unneccessary
3750 (parse_gui_item_tree_children): ditto.
3751 (parse_gui_item_tree_item): ditto.
3753 * glyphs.c (Fupdate_widget_instances): return something.
3755 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
3757 * window.c (Fselect_window): Undo 2000-03-17 change.
3759 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
3761 * postgresql.c (Fpq_setenv): Remove this turkey when linking
3762 against v7.0 libraries. Insta-coredump city until the postgres
3765 2000-03-17 Andy Piper <andy@xemacs.org>
3767 * faces.c (complex_vars_of_faces): don't give the widget face an
3768 inherited background pixmap.
3770 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
3773 * event-stream.c (Fdispatch_non_command_events): return something.
3775 * gutter.c (output_gutter): use widget face.
3776 (clear_gutter): ditto.
3778 * NEWS: adjust again.
3780 * window.c (Fselect_window): make sure this runs to completion to
3781 avoid oddities with Fset_window_configuration.
3782 (Fcurrent_window_configuration): in general do not save the
3783 minibuffer as the selected window.
3785 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
3787 2000-03-16 Olivier Galibert <galibert@pobox.com>
3789 * emacs.c (Frunning_temacs_p): Revert previous patch.
3790 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
3792 2000-03-16 Andy Piper <andy@xemacs.org>
3794 * glyphs-x.c (x_tab_control_update): if no widget values then
3797 * NEWS: update for new features.
3799 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
3800 synthetic event to the native system.
3801 (reinit_vars_of_event_Xt): set force_event_pending to
3802 emacs_Xt_force_event_pending.
3804 * events.h (struct event_stream): add force_event_pending.
3806 * specifier.c (recompute_one_cached_specifier_in_window): add
3809 * redisplay.c (redisplay_frame): don't call
3810 update_frame_subwindows. Reset subwindow cachels when
3811 subwindows_changed, removing this was an optimization too far.
3813 * redisplay-output.c (compare_runes): reorganize so that we catch
3814 glyph changes when we want them. Set optimize_output when this
3816 (redisplay_output_layout): remove frame_really_changed, use
3817 optimize_output instead.
3819 * redisplay-msw.c (mswindows_output_display_block): reset
3820 optimize_output after outputting a glyph.
3821 * redisplay-x.c (x_output_display_block): ditto.
3822 * redisplay-tty.c (tty_output_display_block): ditto.
3824 * gutter.c: (specifier_vars_of_gutter): use new spec changed
3826 (gutter_specs_changed): do specific gutter positions.
3827 (top_gutter_specs_changed): new function. Only update the
3828 specified gutter specs.
3829 (bottom_gutter_specs_changed): ditto.
3830 (left_gutter_specs_changed): ditto.
3831 (right_gutter_specs_changed): ditto.
3833 * gui.c (gui_item_hash_internal): new function, does a real hash.
3834 (gui_item_id_hash): use it.
3835 (gui_item_hash): hash the eval'ed gui_item.
3837 * gui-x.c (popup_selection_callback): send an eval event to call
3838 Fupdate_widget_instances.
3840 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
3841 to call Fupdate_widget_instances.
3843 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
3844 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
3846 * glyphs.c: (update_frame_subwindows): deleted.
3847 (Fupdate_widget_instances): new function for updating the dirty
3848 state of widgets that might have changed.
3849 (syms_of_glyphs): add Qupdate_widget_instances.
3850 (full_list_hash): hash a list completely.
3851 (image_instance_hash): use it for items and properties.
3853 * frame-msw.c (mswindows_size_frame_internal): remove unused
3856 * faces.h (struct face_cachel): fix comment.
3858 * event-stream.c (Fdispatch_non_command_events): new
3859 function. Process non-command events, forcing an event cycle
3861 (syms_of_event_stream): declare.
3862 (event_stream_force_event_pending): new function. Force an event
3863 on the native event queue so that an event cycle will occur next
3867 (struct ntpipe_shove_stream):
3868 (mswindows_enqueue_dispatch_event):
3869 (mswindows_dequeue_dispatch_event):
3870 (mswindows_cancel_dispatch_event):
3871 (mswindows_pump_outstanding_events):
3872 (mswindows_drain_windows_queue):
3873 (mswindows_handle_paint):
3874 (mswindows_wnd_proc):
3875 (mswindows_key_to_emacs_keysym):
3876 (get_process_input_waitable):
3877 (emacs_mswindows_delete_stream_pair): re-indent file.
3878 (mswindows_need_event): do not process further fds if the windows
3879 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
3880 fixes the 100% cpu problem.
3881 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
3883 2000-03-15 Olivier Galibert <galibert@pobox.com>
3889 * emacs.c: Moved dump file searching to dumper.c.
3890 (Frunning_temacs_p): Fixed.
3892 * alloc.c: Moved everything pdump-related to dumper.c. Removed
3893 last_lrecord_type_index_assigned.
3895 2000-02-20 Olivier Galibert <galibert@pobox.com>
3897 * symsinit.h: Added reinit parameter to init_console_stream
3900 * lisp.h: Added file parameter to pdump_load declaration.
3902 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
3903 support. Added dump file searching.
3905 * config.h.in: Added EMACS_PROGNAME.
3907 * console-stream.c (init_console_stream): Fix reinitialisation
3908 when running from temacs.
3910 * alloc.c (pdump): Add id support.
3911 (pdump_load): Add file parameter and signature/id support.
3913 * Makefile.in.in: Add full pdump support.
3915 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
3917 * postgresql.c: Update documentation to reflect latest code
3919 (print_result): Show tuple counts in printed representation when
3921 (Fpq_put_nbytes): MULE-ize.
3922 (Fpq_get_line_async): Ditto.
3924 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
3926 * postgresql.c (Fpq_lo_import): Fix return value.
3927 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
3929 2000-03-13 Ben Wing <ben@xemacs.org>
3931 * alloc.c (pdump_load):
3932 Fix compile warning under mswin.
3934 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
3936 * postgresql.c: Mule-ization, bug fixes.
3937 Use PG_CODING to encapsulate coding system name changes.
3938 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
3939 (pg-coding-system): Create.
3941 (Fpq_conn_defaults): Mule-ize.
3942 (Fpq_connectdb): Mule-ize & bug fix.
3943 (Fpq_connect_start): Mule-ize.
3944 (Fpq_set_client_encoding): Mule-ize.
3945 (Fpq_finish): Document `DEAD' connection status.
3947 (Fpq_pgconn): Mule-ize.
3948 (Fpq_exec): Mule-ize & bug fix.
3949 (Fpq_send_query): Ditto.
3950 (Fpq_get_result): Ditto.
3951 (Fpq_res_status): Mule-ize.
3952 (Fpq_result_error_message): Mule-ize.
3953 (Fpq_ntuples): fix comments.
3954 (Fpq_fname): Mule-ize.
3955 (Fpq_fnumber): Mule-ize.
3956 (Fpq_ftype): fix comments.
3957 (Fpq_get_value): Mule-ize.
3958 (Fpq_cmd_status): Ditto.
3959 (Fpq_cmd_tuples): Ditto.
3960 (Fpq_oid_value): Ditto.
3961 (Fpq_notifies): Ditto.
3962 (Fpq_lo_import): Ditto.
3963 (Fpq_lo_export): Ditto.
3964 (Fpq_get_line): Ditto.
3965 (Fpq_put_line): Mule-ize and bug fix.
3966 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
3968 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
3970 * postgresql.c (vars_of_postgresql): Mule-ize.
3971 (Fpq_conn_defaults): Ditto.
3973 2000-03-12 Ben Wing <ben@xemacs.org>
3975 * alloc.c (Fmake_byte_code):
3976 * alloc.c (debug_string_purity_print):
3977 * alloc.c (pdump_backtrace):
3978 * alloc.c (pdump_get_indirect_count):
3979 * alloc.c (pdump_register_sub):
3980 * alloc.c (pdump_register_object):
3981 * alloc.c (pdump_register_struct):
3982 * alloc.c (pdump_dump_data):
3983 * alloc.c (pdump_reloc_one):
3987 * console-msw.c (GetConsoleHwnd):
3988 * console-msw.c (msw_hide_console):
3989 * console-msw.c (msw_show_console):
3990 * console-msw.c (msw_ensure_console_buffered):
3991 * console-msw.c (msw_output_console_string):
3992 * console-msw.c (console_type_create_mswindows):
3994 a) Added functions to manipulate the console window for use with
3997 b) Added support for writing text to the console, which is now
3998 used under Windows when xemacs is not being run non-interactively,
3999 to write text that would otherwise be destined for stdout because
4000 under these circumstances, text written to stdout tends to
4001 disappear and not be seen.
4005 * event-Xt.c (x_event_to_emacs_event):
4006 * event-Xt.c (describe_event_window):
4007 * events-mod.h (XEMACS_MOD_CONTROL):
4009 * events.c (Fmake_event):
4010 * events.c (character_to_event):
4011 * events.c (event_to_character):
4012 * events.c (format_event_object):
4013 * events.c (Fevent_modifiers):
4015 * events.h (struct key_data):
4016 * events.h (struct button_data):
4017 * events.h (struct misc_user_data):
4018 * frame-x.c (Fcde_start_drag_internal):
4019 * frame-x.c (Foffix_start_drag_internal):
4020 * gpmevent.c (Freceive_gpm_event):
4022 * keymap.c (bucky_sym_to_bucky_bit):
4023 * keymap.c (control_meta_superify):
4024 * keymap.c (make_key_description):
4025 * keymap.c (keymap_lookup_directly):
4026 * keymap.c (create_bucky_submap):
4027 * keymap.c (keymap_store):
4028 * keymap.c (define_key_check_and_coerce_keysym):
4029 * keymap.c (define_key_parser):
4030 * keymap.c (define_key_alternate_name):
4031 * keymap.c (Fdefine_key):
4032 * keymap.c (raw_lookup_key_mapper):
4033 * keymap.c (struct map_keymap_unsorted_closure):
4034 * keymap.c (map_keymap_unsorted_mapper):
4035 * keymap.c (map_keymap_sort_predicate):
4036 * keymap.c (map_keymap_sorted):
4037 * keymap.c (accessible_keymaps_mapper_1):
4038 * keymap.c (where_is_recursive_mapper):
4039 * keymap.c (describe_map_mapper):
4040 * keymap.c (describe_map_sort_predicate):
4041 * keymap.c (describe_map):
4042 * keymap.c (complex_vars_of_keymap):
4043 And a number of other files, the key modifier preprocessor
4044 constants that xemacs uses have names that conflict with constants
4045 defined under MS Windows for other purposes, so they were renamed
4046 to begin with the prefix XEMACS_. The variables that hold such
4047 modifiers were changed to consistently be of type int to fix
4048 various compile warnings.
4050 * console.c (complex_vars_of_console):
4053 * device-msw.c (mswindows_finish_init_device):
4054 * device-msw.c (msw_get_workspace_coords):
4055 * device-msw.c (mswindows_device_system_metrics):
4056 and various other files, added support for a new
4057 device property called offset-workspace which returns the position
4058 of the upper left corner of the workspace area and goes along with
4059 the existing size-workspace property.
4062 * dialog-msw.c (push_bufbyte_string_as_unicode):
4063 * dialog-msw.c (mswindows_popup_dialog_box):
4064 Added support for XEmacs-style accelerator specifications in
4065 button text. Note: I didn't add support for this under X Windows,
4066 and somebody needs to do this.
4069 * dialog.c (Fpopup_dialog_box):
4070 Documented the support for accelerators that was just mentioned.
4072 editfns.c (get_home_directory): Changed behavior under Windows
4073 when HOME not defined; former behavior was irretrievably broken.
4078 * minibuf.c (clear_echo_area_internal):
4079 * minibuf.c (echo_area_append):
4081 * print.c (std_handle_out_external):
4082 * print.c (std_handle_out_va):
4084 * print.c (write_string_to_stdio_stream):
4085 * print.c (output_string):
4086 * print.c (debug_print):
4087 * print.c (debug_backtrace):
4088 * print.c (debug_short_backtrace):
4089 Cleaned up the code that prints text to stdout so that this can be
4090 changed to output into a console window instead under MS Windows,
4094 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
4095 * eval.c (internal_catch):
4096 * eval.c (unwind_to_catch):
4097 * eval.c (throw_or_bomb_out):
4098 * eval.c (condition_case_1):
4099 * eval.c (signal_1):
4100 * eval.c (check_error_state_sanity):
4101 * eval.c (call_with_suspended_errors_1):
4102 * eval.c (call_with_suspended_errors):
4103 * eval.c (reinit_vars_of_eval):
4104 Added code to catch throw loops and check for a pesky bug that may
4108 * event-msw.c (key_needs_default_processing_p):
4109 * event-msw.c (mswindows_wnd_proc):
4110 * event-msw.c (mswindows_modifier_state):
4111 * event-msw.c (emacs_mswindows_quit_p):
4112 * event-msw.c (vars_of_event_mswindows):
4113 a) Added support for using the alt key to select menu items as is
4114 standard under MS Windows. This is controlled using the variable
4115 menu-accelerator-enabled, just like under X Windows. There is an
4116 option on the options menu to turn this support on. I really
4117 think that it should be on by default under Windows, but I'm not
4118 going to make this change yet.
4120 b) Added support for dynamic display size changes under Windows.
4123 * event-stream.c (maybe_echo_keys):
4124 * event-stream.c (Fnext_event):
4125 * event-stream.c (command_builder_find_leaf):
4126 * event-stream.c (lookup_command_event):
4127 * event-stream.c (execute_command_event):
4128 * event-stream.c (pre_command_hook):
4129 * event-stream.c (post_command_hook):
4130 * event-stream.c (syms_of_event_stream):
4131 * event-stream.c (vars_of_event_stream):
4132 * event-stream.c (complex_vars_of_event_stream):
4133 * events.h (struct command_builder):
4135 a) Tried to clean up a little bit the horribly written x-specific
4136 accelerator code that crept into this file. I moved this code
4137 into menubar-x.c where it belongs. I also needed to move the
4138 command builder structure into the file events.h because it is
4139 accessed directly by this accelerator code. What I didn't do, but
4140 which should be done at some point, is to properly abstract this
4141 code using device methods instead of the kludgy way that it
4142 currently hooks into the event code.
4144 b) Added the lisp variables this-command-properties and
4145 last-command- properties, which should be used to synchronize two
4146 adjacent commands in preference to playing games with the variable
4147 this-command, which is typically what happens.
4149 c) Added some slightly nasty code to hook into the lisp support
4150 for shifted- motion-key selection. This is actually necessary for
4151 somewhat complicated reasons, which are described in
4152 simple.el. (NB: I think the proper thing would be to have the code
4153 that calls the pre and post command hooks also call out to generic
4154 lisp functions in simple.el, where all built-in stuff could be
4155 added. I will think about this more.)
4157 * event-unixoid.c (poll_fds_for_input):
4158 * lread.c (readchar):
4159 * redisplay-tty.c (tty_clear_frame):
4160 * redisplay-x.c (x_get_gc):
4161 * signal.c (interrupt_signal):
4162 And a whole bunch of other files: fixed up places that printed
4163 directly to stderr to instead call the function stderr_out so that
4164 the changes I made under Windows work correctly.
4166 * filemode.c (mode_string):
4170 * frame-msw.c (mswindows_size_frame_internal):
4171 Fixed the computation of frame size and position to keep the frame
4172 within the workspace area, rather than within the physical
4173 dimensions of the screen, so that the frame doesn't overlap window
4174 manager decorations, such as the start menu and toolbar, typically
4175 at the bottom of the screen.
4177 * frame.c (vars_of_frame):
4178 Changed the default frame title format under MS Windows to consist
4179 of buffername-XEmacs, which is standard under MS Windows. I think
4180 it might be a good idea to change this everywhere because I think
4181 it is superior to the current frame title format, but this is the
4182 kind of change that is likely to cause some people to get annoyed,
4183 so I'm not making it.
4185 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
4187 * gui-msw.c (mswindows_handle_gui_wm_command):
4188 Fixed compile warnings.
4191 * gui-x.c (strdup_and_add_accel):
4192 * gui-x.c (button_item_to_widget_value):
4194 Added code to automatically put an accelerator onto the beginning
4195 of menu items that don't have one as is now the standard, and is
4196 described more later. Also fixed things so that the menu item
4197 name can be an evaluated expression, again a new standard.
4200 * gui.c (gui_item_add_keyval_pair):
4201 * gui.c (make_gui_item_from_keywords_internal):
4202 * gui.c (gui_add_item_keywords_to_plist):
4203 * gui.c (gui_item_accelerator):
4204 * gui.c (gui_name_accelerator):
4205 * gui.c (gui_item_included_p):
4206 * gui.c (gui_item_display_flush_left):
4207 * gui.c (gui_item_display_flush_right):
4208 * gui.c (parse_gui_item_tree_item):
4209 * gui.c (parse_gui_item_tree_children):
4210 * gui.c (parse_gui_item_tree_list):
4211 Mule-ized. Cleanup. GCPRO addition.
4213 * line-number.c (buffer_line_number):
4215 * lisp.h (EMACS_INT_MAX):
4216 Added the manifest constant EMACS_INT_MIN corresponding to the
4217 existing constant EMACS_INT_MAX. This is partially to fix compile
4218 warnings under Windows, and partly for cleanliness.
4221 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
4222 * menubar-msw.c (msw_translate_menu_or_dialog_item):
4223 * menubar-msw.c (displayable_menu_item):
4224 * menubar-msw.c (populate_menu_add_item):
4225 * menubar-msw.c (populate_or_checksum_helper):
4226 * menubar-msw.c (populate_menu):
4227 * menubar-msw.c (update_frame_menubar_maybe):
4228 * menubar-msw.c (prune_menubar):
4229 * menubar-msw.c (msw_char_is_accelerator):
4230 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
4231 * menubar-msw.c (mswindows_handle_wm_command):
4232 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
4233 * menubar-msw.c (mswindows_handle_wm_initmenu):
4234 * menubar-msw.c (mswindows_update_frame_menubars):
4235 * menubar-msw.c (mswindows_free_frame_menubars):
4236 * menubar-msw.c (mswindows_popup_menu):
4237 Fixed a bug in handling accelerators where an extra character
4238 would be displayed in the menu item. Also generalized the
4239 function displayable_menu_item because it is now used by the
4240 dialog box code as well. And finally, added code in the functions
4241 that create the menubar to extract a list of accelerators for the
4242 top level menubar, which is used in the event code to determine
4243 whether a particular alt-key combination should be used to invoke
4244 a menu item, or should be passed through to access the standard
4245 XEmacs keymap binding for this key combination.
4247 Much needed GCPROing.
4250 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4251 * menubar-x.c (menu_item_descriptor_to_widget_value):
4252 * menubar-x.c (restore_in_menu_callback):
4253 * menubar-x.c (x_popup_menu):
4254 * menubar-x.c (menu_move_up):
4255 * menubar-x.c (menu_move_down):
4256 * menubar-x.c (menu_move_left):
4257 * menubar-x.c (menu_move_right):
4258 * menubar-x.c (menu_select_item):
4259 * menubar-x.c (command_builder_operate_menu_accelerator):
4260 * menubar-x.c (menu_accelerator_junk_on_error):
4261 * menubar-x.c (command_builder_find_menu_accelerator):
4262 * menubar-x.c (Faccelerate_menu):
4264 Moved a whole bunch of code here that was previously in
4265 event-stream.c as described above. There is also code connected
4266 to the new standard of adding an accelerator to the beginning of
4267 menu items that don't have one as described above and below.
4270 * menubar.c (menu_parse_submenu_keywords):
4271 * menubar.c (Fmenu_find_real_submenu):
4272 * menubar.c (Fnormalize_menu_item_name):
4273 * menubar.c (syms_of_menubar):
4274 * menubar.c (vars_of_menubar):
4275 * menubar.c (complex_vars_of_menubar):
4277 a) Cleaned up a bunch of documentation and improved it.
4279 b) XEmacs now automatically adds an accelerator onto the beginning
4280 of any menu items that don't have one. I did this because there
4281 will inevitably be some menu items on the main menubar that don't
4282 have accelerators on them because the package that adds that
4283 particular menu item hasn't yet been fixed up to have accelerators
4284 in them and it looked rather strange to have some items with and
4285 some items without accelerators, especially since even in items
4286 without accelerators, you can, at least under windows, still
4287 access the item through an accelerator corresponding to the first
4288 character in the item's name. If people don't like this behavior,
4289 I can add a variable to turn it off optionally, but I'm not sure
4290 this is a good idea because we really do need to have accelerators
4291 on all of the menu items, and if a package doesn't like the
4292 accelerators being put on the first character, then it should put
4293 the accelerators where they belong.
4295 c) I made a behavior change, which is that the descriptor that
4296 specifies the text of the menu item, which formerly was just a
4297 string, can now also be an evaluated expression. This makes this
4298 descriptor parallel with all of the others, which could also be
4299 evaluated expressions. This also obviates the need for the
4300 keyword :label, which was previously listed in the documentation
4301 as unimplemented, and which was for the same purpose.
4306 * ntproc.c (new_child):
4307 * ntproc.c (sys_spawnve):
4308 * ntproc.c (find_child_console):
4309 * ntproc.c (sys_kill):
4310 Fixed compile warnings. By the way, this file should really go
4311 away entirely, and this will happen as soon as Kirill makes his
4312 final round of process cleanups, which affect the function
4316 * process-nt.c (struct nt_process_data):
4317 * process-nt.c (find_process_from_pid):
4318 * process-nt.c (send_signal_the_nt_way):
4319 * process-nt.c (enable_child_signals):
4320 * process-nt.c (find_child_console):
4321 * process-nt.c (send_signal_the_95_way):
4322 * process-nt.c (nt_finalize_process_data):
4323 * process-nt.c (ensure_console_window_exists):
4324 * process-nt.c (nt_create_process):
4325 * process-nt.c (nt_kill_child_process):
4326 * process-nt.c (nt_kill_process_by_pid):
4327 * process-nt.c (nt_open_network_stream):
4328 * process-nt.c (vars_of_process_nt):
4329 Copied over code from Emacs 20.5 to correctly send signals to sub-
4330 processes under Windows 95. Also added code to automatically
4331 create and hide console window when a sub-process is created under
4332 Windows 95, which obviates the need for the separate runemacs.exe
4333 executable, and finally implemented some variables that were
4334 implemented in Emacs 20.5, but previously not in XEmacs. These
4335 include mswindows- start-process-share-console and
4336 mswindows-start-process-inherit-error-mode. (Both of these only
4337 apply to Windows 95.)
4339 * regex.c (regex_compile): Fixed a compile warning.
4342 * select-msw.c (mswindows_own_selection):
4343 * select-msw.c (mswindows_get_foreign_selection):
4344 * select-msw.c (mswindows_disown_selection):
4345 * select-msw.c (console_type_create_select_mswindows):
4346 * select-msw.c (syms_of_select_mswindows):
4347 Cleaned up the file and implemented the device method
4348 selection_exists_p, which had accidentally been left out. Also
4349 removed four lisp functions that were remnants from before the
4350 time when the selection code was properly device abstracted.
4351 These functions are no longer needed because there are generic
4352 equivalents, and because they were added recently and don't exist
4353 in FSF Emacs, I don't think there's any problem with just deleting
4357 * sysdep.c (sys_subshell):
4358 Fixed a compile warning, although in this case there's probably
4359 something wrong with this code, and it ought to be looked into
4360 more thoroughly by somebody who understands it.
4363 * window.c (Fwindow_text_area_height):
4364 * window.c (Fwindow_width):
4365 * window.c (Fwindow_full_width):
4366 * window.c (Fwindow_pixel_width):
4367 * window.c (debug_print_window):
4368 * window.c (syms_of_window):
4369 Added functions window-text-area-height and window-full-width,
4370 which are functions for returning various width and height
4371 characteristics of a window. (One of these functions is necessary
4372 for making the file dialog box work correctly, and the other one
4373 was added for completeness.) Also added a table to the
4374 documentation for window-height which describes the entire scheme
4375 for accessing width and height characteristics of a window.
4377 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
4379 * nt.c (fstat): Added a comment for another problem with
4380 non-encapsulated [f]stat(), reported by Adrian Aichner
4381 <aichner@ecf.teradyne.com>.
4383 2000-03-11 Andy Piper <andy@xemacs.org>
4385 * window.c (make_dummy_parent): initialize subwindow instance
4387 (Fset_window_configuration): zero extent_modiff.
4389 2000-03-10 Andy Piper <andy@xemacs.org>
4391 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
4392 more changes can be triggered.
4393 (Fredisplay_frame): ditto.
4394 (Fredraw_device): ditto.
4395 (Fredisplay_device): ditto.
4396 (redisplay_frame): make non-static.
4397 (redisplay_frame): call update_frame_gutter_geometry outside of
4400 * gutter.h: declare update_frame_gutter_geometry.
4402 * redisplay.h: declare redisplay_frame.
4404 * gutter.c (update_frame_gutter_geometry): move geometry changes
4405 in update_frame_gutters here. Geometry changes can only occur
4406 outside of redisplay.
4407 (update_frame_gutters): remove geometry change code.
4408 (Fredisplay_gutter_area): make sure that we are in display when we
4409 update and that we have flushed any size changes.
4411 2000-03-11 Andy Piper <andy@xemacs.org>
4413 * alloc.c (pdump_dump_data): remove i & count shadows.
4415 2000-02-27 Mike Alexander <mta@arbortext.com>
4417 * sysdep.h: Declare pdump_read_file
4419 * sysdep.c (pdump_read_file): New function
4421 * alloc.c (pdump_load): Call pdump_read_file to get the portable
4424 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
4426 * lrecord.h: add `lrecord_type_pgsetenv'.
4428 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
4430 * symsinit.h: declare (vars|syms)_of* functions.
4431 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
4433 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
4435 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
4437 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
4440 * emacs.c (main_1): Call postgres initialization code.
4442 * postgresql.h: New file. PostgreSQL RDBMS support.
4443 * postgresql.c: New file.
4445 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
4447 * redisplay-output.c (redisplay_output_display_block): Disable
4450 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4452 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
4453 (Fcanna_henkan_next): Ditto.
4454 (Fcanna_bunsetu_henkou): Ditto.
4455 (Fcanna_henkan_kakutei): Ditto.
4456 (Fcanna_henkan_end): Ditto.
4457 (Fcanna_henkan_quit): Ditto.
4458 (Fcanna_henkan_next): Set retun value correctly.
4459 (c2mu): Use unsigned char instead of signed char.
4461 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4463 * emacs.c (main_1): Always call syms_of_gui.
4464 * inline.c: include gui.h
4466 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
4468 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
4469 converted to Lisp_Object.
4470 (Qtop_bottom): New variable.
4471 (syms_of_redisplay): Initialize it.
4472 * redisplay.h (Vvisible_bell): Ditto.
4473 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
4474 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
4475 only flash top and bottom.
4477 2000-03-08 Andy Piper <andy@xemacs.org>
4479 * buffer.c (Frename_buffer): record new buffer name the right way.
4481 2000-03-08 Andy Piper <andy@xemacs.org>
4483 * glyphs.c (update_subwindow): increase hash depth so that widget
4484 items get picked up properly.
4486 * redisplay-output.c (compare_runes): increase hash depth so that
4487 widget items get picked up properly.
4489 2000-03-08 Andy Piper <andy@xemacs.org>
4491 * gutter.c (output_gutter): add some debug.
4493 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
4494 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
4495 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
4497 * redisplay-output.c (compare_runes): use display_hash to
4498 determine if glyphs really are not the same.
4500 * glyphs.c (update_subwindow): check display_hash to see if
4501 anything really needs to be updated. If not then do
4502 nothing. Record the display_hash after updating.
4503 (image_instance_equal): compare the image_instance face also.
4505 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
4507 * redisplay.h: Fix comment style.
4509 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
4511 * consle-msw.h (struct mswindows_frame):
4512 Added new member paint_pending to indicate whether a WM_PAINT
4513 magic event has been queued for this frame.
4515 * event-msw.c (mswindows_drain_windows_queue):
4516 Don't queue a WM_PAINT magic event if one is already queued.
4517 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
4519 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
4521 2000-03-07 Didier Verna <didier@xemacs.org>
4523 * dired.c: #include `regex.h' after `sysfile.h'.
4525 2000-03-06 Martin Buchholz <martin@xemacs.org>
4527 * sound.c (init_nas_sound): Fix compiler warning.
4529 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
4531 (MARK_STRUCT_AS_FREE):
4532 (MARK_STRUCT_AS_NOT_FREE):
4533 Make `gcc -fstrict-aliasing' work properly.
4535 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
4537 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
4538 (mswindows_delete_device): Call CoUnnitialize().
4540 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
4542 2000-02-25 <CraigL@DyCon.com>
4544 * process-nt.c: MinGW now has <shellapi.h>, but still needs
4547 * sysdep.c: This extern declaration for environ prevents MinGW
4548 from finding the variable in CRTDLL.DLL.
4550 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
4554 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
4556 (MMRESULT): Removed, now defined in cygwin's windows headers.
4558 (uid_t,gid_t,pid_t,ssize_t): ..
4559 (_timeb): Removed, MinGW defines both _timeb and timeb.
4560 (HAVE_H_ERRNO): Added.
4561 (HAVE_TZNAME): Added, configure is not detecting this.
4563 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
4565 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
4566 * syntax.c (syntax_match): Use it.
4568 * cmds.c: Import auto-fill-chars from FSF Emacs.
4569 (Vauto_fill_chars): New variables.
4570 (internal_self_insert): Check Vauto_fill_chars.
4572 Declare auto-fill-chars as a Lisp variable and initialize it.
4574 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
4576 * fileio.c (Fmake_symbolic_link):
4578 Run handlers even if local machine doesn't have symlinks.
4580 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
4582 * event-msw.c (mswindows_drain_windows_queue):
4583 Don't generate paint magic events for non-XEmacs frames.
4585 2000-03-05 Andy Piper <andy@xemacs.org>
4587 * redisplay.c (redisplay_frame): generate_displayable_area and
4588 friends assumes that we are not in GC, we therefore have to make
4589 sure that this doesn't happen.
4591 * gutter.c (calculate_gutter_size): generate_displayable_area
4592 assumes that we are not in GC, we therefore have to make sure that
4593 this doesn't happen.
4595 2000-03-05 Martin Buchholz <martin@xemacs.org>
4597 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
4599 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
4601 * redisplay.c (regenerate_window): Make sure we set a sane value
4602 for end_pos even if we jump out of the loop.
4603 (regenerate_window): Answer Ben's question :-).
4604 (start_end_of_last_line): Add may_error argument.
4605 (start_of_last_line):
4606 (end_of_last_line): Pass may_error = 0.
4607 (end_of_last_line_may_error): New function.
4608 (pixel_to_glyph_translation): Use it, so we don't crash in
4611 2000-03-04 Andy Piper <andy@xemacs.org>
4613 * window.h (struct window): add gutter_extent_modiff.
4615 * window.c (allocate_window): zero out gutter_extent_modiff.
4617 * redisplay.h: declare sync_display_line_structs.
4619 * redisplay.c (add_glyph_rune): add a better comment.
4621 * redisplay-output.c (sync_display_line_structs): made non-static.
4622 (compare_runes): remove unneccesary glyph cachel access.
4624 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
4626 * gutter.c (output_gutter): don't output the gutter if extent
4627 changes only involve extents in buffers. use 4 sets of display
4629 (gutter_extent_signal_changed_region_maybe): new function. Mark
4630 extents in gutters as changed.
4631 (update_frame_gutters): use 4 sets of display lines.
4632 (reset_gutter_display_lines): ditto.
4633 (free_frame_gutters): ditto.
4634 (redraw_exposed_gutter): force output of gutters.
4636 * frame.h (struct frame): add 4 sets of gutter display lines.
4638 * extents.c: (extent_changed_for_redisplay): signal changes to
4639 extents in strings in the gutter as well as extents in buffers.
4641 2000-03-02 Andy Piper <andy@xemacs.org>
4643 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
4645 * frame.c (Fmake_frame): make sure the gutters get initialized
4646 after the frame is visible.
4647 (set_frame_selected_window): re-arrange compilation macros a
4649 (change_frame_size_1): mark gutters changed.
4651 * device.c (Fset_device_class): mark gutters changed.
4653 2000-03-01 Andy Piper <andy@xemacs.org>
4655 * window.c (window_top_frame_gutter_height): deleted.
4656 (window_bottom_frame_gutter_height): ditto.
4657 (window_left_frame_gutter_height): ditto.
4658 (window_right_frame_gutter_height): ditto.
4659 (window_top_gutter_height): don't use them.
4660 (window_bottom_gutter_height): ditto.
4661 (window_left_gutter_width): ditto.
4662 (window_right_gutter_width): ditto.
4663 (Fsplit_window): ditto.
4664 (Fwindow_pixel_edges): don't use border dimensions here.
4666 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
4667 (update_scrollbar_instance): ditto.
4669 * redisplay.c (generate_modeline): don't take gutters into account.
4670 (generate_modeline): ditto.
4671 (redisplay_frame): small gutter display optimisation.
4673 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
4675 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
4676 gutters into account.
4678 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
4679 for window position and type.
4681 * gutter.c (get_gutter_coords): fix for frame gutters.
4682 (update_frame_gutters): update frame geometry if the gutters have
4684 (init_frame_gutters): record current gutter geometries.
4686 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
4688 (mswindows_widget_instantiate): ditto.
4690 * frame.h (struct frame): add current_gutter_bounds.
4692 * frame.c (change_frame_size_1): position window and minibuffer
4693 appropriately taking into account the frame gutters.
4695 * frame-x.c: (x_initialize_frame_size): take into account the
4698 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
4700 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
4702 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
4704 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
4706 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
4708 * file-coding.c (reset_decoding_stream): Clear previous
4709 detection state when autodetect.
4711 2000-02-29 Didier Verna <didier@xemacs.org>
4713 * extents.c (set_extent_glyph_1): don't require extents to be
4716 2000-02-27 Andy Piper <andy@xemacs.org>
4718 * gutter.c (Fset_default_gutter_position): don't default left and
4719 right gutter visibility to t.
4720 (Fset_default_gutter_position): run
4721 default-gutter-position-changed-hook.
4722 (syms_of_gutter): add default-gutter-position-changed-hook.
4724 2000-02-26 Andy Piper <andy@xemacs.org>
4726 * specifier.c (Fmake_specifier): add gutter references.
4728 * gutter.h (RAW_WINDOW_GUTTER): new macro.
4730 * lisp.h: declare Fvalid_plist_p.
4732 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
4734 (default_gutter_visible_p_changed_in_window): invalidate gutter as
4735 well as its visibility so that it gets reconstructed.
4736 (construct_window_gutter_spec): new function. Construct a string
4737 to be displayed in the gutter from a plist of strings. Take care
4738 to only use elements that are declared as visible.
4739 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
4741 (gutter_validate): allow plists of strings in the specifier.
4742 (gutter_specs_changed): construct the real_gutter from the gutter
4743 specs using construct_window_gutter_spec.
4744 (gutter_visible_validate): gutter-visible is a new specifier type.
4745 (Fgutter_visible_specifier_p): new function for the new specifier.
4746 (syms_of_gutter): declare gutter-visible and
4747 Fgutter_visible_specifier_p.
4748 (specifier_type_create_gutter): intitalize new gutter-visible
4750 (reinit_specifier_type_create_gutter): ditto.
4751 (specifier_vars_of_gutter): use new specifier type for gutter
4753 (init_frame_gutters): construct real_gutter correctly.
4754 (Fgutter_specifier_p): beef up documentation.
4755 (Fgutter_size_specifier_p): ditto.
4757 * winslots.h: add real_gutter slots.
4759 2000-02-25 Andy Piper <andy@xemacs.org>
4761 * device-msw.c: Be kind to older cygwin versions. From Raymond
4762 Toy <toy@rtp.ericsson.se>.
4764 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
4765 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
4767 2000-02-25 Martin Buchholz <martin@xemacs.org>
4769 * elhash.c (MARK_OBJ): Practice macro hygiene.
4771 2000-02-24 Martin Buchholz <martin@xemacs.org>
4773 * miscplay.c: s/__inline__/inline/g;
4774 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
4775 (get_device_compdc): INLINE ==> static inline
4776 * *.[ch]: Change INLINE to INLINE_HEADER globally.
4777 find -name '*.h' | \
4778 xargs global-replace \
4779 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
4781 2000-02-25 Andy Piper <andy@xemacs.org>
4783 * window.c (window_top_frame_gutter_height): new function.
4784 (window_top_window_gutter_height): ditto.
4785 (window_top_gutter_height): use them.
4786 (window_bottom_frame_gutter_height): new function.
4787 (window_bottom_window_gutter_height): ditto.
4788 (window_bottom_gutter_height): use them.
4789 (window_left_window_gutter_width): new function.
4790 (window_left_frame_gutter_width): ditto.
4791 (window_left_gutter_width): use them.
4792 (window_right_window_gutter_width): new function.
4793 (window_right_frame_gutter_width): ditto.
4794 (window_right_gutter_width): use them.
4795 (window_pixel_height): new function. calulate window pixel height
4796 with frame gutter involvement.
4797 (Fsplit_window): calculate new sizes taking frame gutters into
4799 (window_char_height_to_pixel_height): don't include frame gutters.
4800 (window_char_height): use window_pixel_height.
4801 (window_pixheight): rename from window_pixel_height.
4802 (change_window_height): use it.
4803 (window_pixel_height_to_char_height): don't include frame gutters.
4804 (window_char_width_to_pixel_width): ditto.
4806 2000-02-25 Andy Piper <andy@xemacs.org>
4808 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
4811 2000-02-24 Martin Buchholz <martin@xemacs.org>
4813 * alloc.c (staticpro):
4819 (compact_string_chars):
4821 Convert: if (foo) abort(); ==> assert (! foo);
4823 * eldap.c (Fldap_search_basic):
4827 Fix compiler warnings, and possible crashes if (random) return
4828 value were to be used.
4830 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
4832 * device-msw.c: Workaround ResetDC failure.
4834 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
4837 * redisplay-msw.c (get_frame_dc): Added start_page_p.
4838 (mswindows_text_width): Do not start printer page.
4840 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
4842 * glyphs-msw.c: Added image methods to msprinter console and
4843 msprinter-specific image instantiation.
4845 2000-02-20 Mike Alexander <mta@arbortext.com>
4847 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
4848 to avoid crashes when selection-sets-clipboard is on
4849 (mswindows_own_selection): ditto
4851 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
4854 * redisplay-msw.c (get_frame_dc):
4857 * device-msw.c (mswindows_init_device):
4858 (mswindows_delete_device):
4859 (msprinter_init_device):
4860 (msprinter_delete_device):
4861 * frame-msw.c (mswindows_init_frame_1):
4862 (mswindows_delete_frame):
4863 (msprinter_init_frame_3):
4864 (msprinter_delete_frame): Move compatible DC to device object from
4865 frame object, for both mswindows and msprinter. Only one at a time
4866 is needed, it is a real waste to have one per frame!
4868 2000-02-23 Andy Piper <andy@xemacs.org>
4870 * glyphs.c: add dynamic width and height elements.
4871 (image_instance_equal): ditto.
4873 * glyphs-widget.c (widget_query_geometry): calculate width and
4874 height dynamically if required.
4875 (initialize_widget_image_instance): initialize dynamic dimensions.
4876 (widget_instantiate): pick-up dynamic dimensions.
4878 * glyphs.h (struct Lisp_Image_Instance): add width and height for
4879 dynamic determination. Add appropriate macros.
4881 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
4883 (WINDOW_GUTTER_SIZE): ditto.
4884 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
4886 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
4888 (get_frame_dc): ditto.
4890 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
4893 2000-02-23 Martin Buchholz <martin@xemacs.org>
4895 * XEmacs 21.2.31 is released.
4897 2000-02-22 Ben Wing <ben@xemacs.org>
4899 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
4901 2000-02-22 Andy Piper <andy@xemacs.org>
4903 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
4905 2000-02-21 Mike Sperber <mike@xemacs.org>
4909 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
4912 2000-02-21 Mike Sperber <mike@xemacs.org>
4914 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
4916 2000-02-21 Martin Buchholz <martin@xemacs.org>
4918 * XEmacs 21.2.30 is released.
4920 2000-02-20 Martin Buchholz <martin@xemacs.org>
4922 Performance hacking.
4924 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
4925 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
4928 * console.c (DEFVAR_CONSOLE_LOCAL_1):
4929 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
4930 * symeval.h (DEFVAR_SYMVAL_FWD):
4931 * symbols.c (guts_of_unbound_marker):
4932 Make all c_readonly objects also lisp_readonly and marked for life.
4933 * lrecord.h (struct lrecord_implementation):
4934 Document flags better.
4935 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
4936 * lrecord.h (DECLARE_LRECORD):
4937 * lrecord.h (XSETRECORD):
4938 * lrecord.h (RECORDP):
4939 * lrecord.h (RECORD_TYPEP):
4940 * lrecord.h (RECORD_MARKER): New.
4941 * lrecord.h (error_check_*):
4942 * lrecord.h (CONCHECK_NONRECORD):
4943 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
4944 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
4945 * lrecord.h (set_lheader_implementation):
4946 * lrecord.h (enum lrecord_type): New.
4947 * symeval.h (SYMBOL_VALUE_MAGIC_P):
4948 * alloc.c (disksave_object_finalization_1):
4949 * alloc.c (mark_object):
4950 * alloc.c (lrecord_type_index):
4951 * alloc.c (tick_lcrecord_stats):
4952 * alloc.c (Fgarbage_collect):
4953 * alloc.c (init_alloc_once_early):
4954 * alloc.c (pdump_load):
4955 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
4956 * alloc.c (lrecord_type_index): Delete.
4957 Make lisp object type indexes be constant.
4958 Makes (byte-compile) 5% faster.
4959 Put all marker functions into their own array.
4960 Makes (garbage-collect) 5% faster.
4961 Optimize SYMBOL_VALUE_MAGIC_P.
4962 Makes (byte-compile) 2-3% faster.
4963 * config.h.in (gc_checking_assert): New.
4964 * alloc.c: Use gc_checking_assert().
4965 * .dbxrc: Make compatible with new object type implementation.
4966 * .gdbinit: Make compatible with new object type implementation.
4967 * alloc.c: Delete all symbols defined only for debugging, such as
4968 Lisp_Type_Vector and lrecord_charset.
4970 2000-02-21 Andy Piper <andy@xemacs.org>
4972 * gui-msw.c (Fmswindows_shell_execute): fix file location
4975 * buffer.c (Fkill_buffer): remove buffer from alist buffer
4976 unshowing so that set_window_buffer doesn't undo
4977 kill_buffer_hook's hard work.
4979 * glyphs-widget.c (tab_control_query_geometry): don't count the
4980 first item when calculating geometry.
4982 * glyphs.c (map_subwindow): remove redundant code.
4983 (update_frame_subwindows): be more circumspect about when to
4986 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
4987 when items haven't changed. Update faces if faces have changed as
4988 well as just the widget face.
4989 (x_tab_control_update): Update faces if faces have changed as well
4990 as just the widget face.
4992 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
4994 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
4996 (build_syscolor_string): Use mswindows_color_to_string to try to
4998 (mswindows_device_system_metrics): Reverse the foreground and
4999 background colors so that they match the documentation.
5001 * objects-msw.c: (mswindows_X_color_map): tweak some values so
5002 they match the default Windows palette.
5003 (mswindows_color_to_string): New function.
5005 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
5007 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
5009 2000-02-18 Olivier Galibert <galibert@pobox.com>
5011 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
5012 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
5014 * symbols.c (init_symbols_once_early): Removed obsolete
5015 DATA_SEG_BITS related kludge.
5016 (defvar_magic): Ditto.
5018 * malloc.c: Removed obsolete DATA_SEG_BITS
5020 * mem-limits.h: Ditto.
5022 * Makefile.in.in: Removed obsolete HAVE_SHM
5025 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
5027 * device-msw.c (mswindows_delete_device): Free DDE string
5030 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5032 * keymap.c (get_keyelt):
5033 * unexnt.c (unexec):
5034 * vm-limit.c (memory_warnings):
5035 * ntheap.c (recreate_heap):
5036 * ntheap.h (UNINIT_PTR):
5037 * select-msw.c (Fmswindows_get_clipboard):
5038 (Fmswindows_set_clipboard):
5039 * objects-msw.h (MSWINDOWS_BAD_HFONT):
5041 * menubar-msw.c (displayable_menu_item):
5043 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
5044 * sysdep.c (sys_subshell):
5045 * process-nt.c (nt_create_process):
5046 * nt.c (normalize_filename):
5047 (dostounix_filename):
5048 (unixtodos_filename):
5049 * ntproc.c (win32_executable_type):
5050 * ntplay.c (play_sound_data_1):
5052 * editfns.c (get_home_directory):
5053 * event-msw.c (struct winsock_stream):
5054 (mswindows_dde_callback):
5055 * device-msw.c (msprinter_init_device):
5056 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
5058 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
5059 mswindows_clear_toolbar were swapped!
5061 * objects-msw.c:(colormap_t):
5063 * emacs.c (struct standard_args): Fixed const jumble.
5065 * glyphs-widget.c (update_widget): Fixed comparison notation.
5067 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
5069 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
5070 __declspec(noreturn) syntax.
5072 2000-02-19 Martin Buchholz <martin@xemacs.org>
5074 * eldap.c (Fldap_open):
5075 (Fldap_search_basic):
5078 Use new coding system conversion macros.
5080 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
5082 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
5084 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
5086 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
5087 (Fldap_add, Fldap_modify, Fldap_delete): New functions
5089 * eldap.c (Qadd, Qreplace): New constant symbols
5090 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
5091 interruptions by XEmacs signals
5092 Remove unnecessary calls to slow_down_interrupts and
5094 (Fldap_search_basic): Renamed from Fldap_search_internal
5095 Added new optional parameter VERBOSE that triggers the
5096 display of progress messages
5097 Remove unnecessary calls to slow_down_interrupts and
5099 LDAP result code analysis rewritten
5100 (Fldap_add, Fldap_modify, Fldap_delete): New functions
5101 (syms_of_eldap): Define the new symbols and functions
5104 2000-02-17 Martin Buchholz <martin@xemacs.org>
5106 * realpath.c: Determine PATH_MAX maximally portably.
5108 * insdel.c (bytecount_to_charcount): Optimize.
5109 The function used to be optimized for entirely ASCII sequences.
5110 Now it is optimized for successive characters from the same
5111 charset. This also wins big for _mostly_ ASCII sequences.
5113 * fileio.c (Ffile_truename): convert return from realpath() using
5114 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
5115 - Rewrite GCPROing slightly.
5117 * sysdep.c (sys_open): Do filename conversion, like all other
5118 sys_* functions. Fixes bug:
5119 (let ((file-name-coding-system 'iso-8859-2))
5120 (write-region x y latin2-name))
5121 ==> writes filename using internal encoding.
5123 2000-02-18 Martin Buchholz <martin@xemacs.org>
5125 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
5126 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
5127 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
5128 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
5129 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
5130 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
5131 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
5132 (CONST_IF_NOT_DEBUG): Delete.
5133 * alloc.c (this_one_is_unmarkable): Delete.
5134 (mark_object): Don't check for this_one_is_unmarkable. Use the
5135 c_readonly flag instead.
5136 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
5138 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
5140 * event-msw.c (mswindows_drain_windows_queue):
5141 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
5142 away redundant repaint events.
5144 2000-02-17 Andy Piper <andy@xemacs.org>
5146 * redisplay.h: declare mark_redisplay_structs.
5148 * redisplay.c (redisplay_window):
5149 (redisplay_frame): don't check subwindows_state_changed.
5150 (mark_redisplay): mark gutters here.
5152 * glyphs.c: (instantiate_image_instantiator): always layout if we
5153 haven't done so already.
5154 (allocate_image_instance): don't mark as dirty.
5155 (update_subwindow): bind inhibit_quit.
5157 * gutter.c (mark_gutters): new function.
5159 * glyphs-x.c (x_update_widget): Always resize to get round a
5162 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
5163 breaking absolutely everything.
5165 * gutter.h: declare mark_gutters.
5167 2000-02-16 Martin Buchholz <martin@xemacs.org>
5169 * XEmacs 21.2.29 is released.
5171 2000-02-15 Olivier Galibert <galibert@pobox.com>
5173 * fns.c (size_bit_vector): Fix computation of the size.
5175 2000-02-15 Martin Buchholz <martin@xemacs.org>
5177 * *.[ch]: Change CONST to const globally.
5178 find -name '*.[ch]' | \
5179 xargs global-replace \
5180 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
5181 - Remove vestigial references to CONST_IS_LOSING
5183 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
5185 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
5186 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
5187 events instead of dispatching them directly.
5188 (mswindows_handle_paint): New function to do repainting.
5189 (mswindows_wnd_proc):
5190 (emacs_mswindows_handle_magic_event): Call above function.
5192 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
5194 * objects-msw.c (mswindows_create_font_variant): Return the new
5196 (initialize_font_instance): Get font metrics from the underlined
5197 variant of the font to cope with the case where the underlined
5198 font has a bigger descent.
5200 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5202 * gui.c (gui_item_accelerator): Return the first underlined
5203 character in item name.
5205 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5207 * lisp.h: Added Qprinter.
5209 * general.c (syms_of_general): Initialized it.
5211 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
5213 (get_frame_compdc): Made inline.
5215 * console.h (struct console_methods): Added eject_page method.
5217 * frame.h: Added FRAME_DISPLAY_P and friends.
5218 Aligned backslahes in many macros in more readable fashion.
5219 Added page_number to struct frame, and an accessor macro
5222 * defice.h: Added DEVICE_DISPLAY_P and friends.
5224 * device.c (Fdevice_printer_p): Used these.
5226 * frame.c (allocate_frame_core): Initialize page number.
5227 (Fprint_job_page_number):
5228 (Fprint_job_eject_page): Implemented.
5230 * frame-msw.c (msprinter_eject_page): Added method.
5231 (msprinter_start_page): Added.
5233 * window.c (Fwindow_truncated_p): Fixed docstring.
5234 (Fwindow_last_line_visible_height): Implemented.
5236 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5238 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
5240 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
5242 * syntax.c (scan_words): Always advance at least one character.
5244 2000-02-13 Andy Piper <andy@xemacs.org>
5246 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
5247 to make sure the glyph is in the cachels.
5249 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
5250 global image instance flag.
5251 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
5252 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
5254 * glyphs.c (allocate_image_instance): set dirty bits correctly.
5255 (Fset_image_instance_property): mark layout as changed.
5256 (invalidate_glyph_geometry_maybe): mark layout as changed.
5257 (glyph_width): use new NEEDS_LAYOUT macro.
5258 (glyph_ascent): ditto.
5259 (glyph_descent): ditto.
5260 (glyph_height): ditto.
5261 (image_instance_layout): mark layout as clean after laying out.
5262 (update_subwindow): don't mark layout as clean here.
5264 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
5265 should no longer be needed.
5267 * glyphs-x.c (x_update_widget): sanitize asserts.
5268 (x_finalize_image_instance): sanitize assignment to widgets.
5270 * glyphs-widget.c (widget_instantiate): don't need to clear the
5273 2000-02-13 Martin Buchholz <martin@xemacs.org>
5275 * sysdep.c (getcwd): Use standard prototype.
5276 * sysdep.h (getcwd): Use standard prototype.
5278 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
5279 (sequence, start, end).
5280 Remove redundant type checking.
5281 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
5282 view of `caller-protects') to avoid a crash where the real fix was
5285 2000-02-12 Martin Buchholz <martin@xemacs.org>
5287 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
5289 * s/sol2.h: Remove feature macro initialization.
5291 * alloc.c (alloc_lcrecord): Add more type checking assertions.
5292 (vector_hash): New. Code from internal_hash.
5294 Fix up allocation subsystem comments.
5296 * config.h.in: Add __EXTENSIONS__ for Solaris.
5298 * systime.h (EMACS_GETTIMEOFDAY): New.
5299 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
5300 Remove Solaris-specific code.
5301 Use void* for the (ignored) second arg for gettimeofday().
5303 * elhash.c (hash_table_hash): Implement it, finally.
5304 * elhash.c: Use hashcode_t.
5306 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
5307 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
5309 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
5310 * fns.c (size_bit_vector):
5311 * alloc.c (size_vector):
5312 (make_vector_internal):
5313 (make_bit_vector_internal):
5314 (sweep_bit_vectors_1):
5315 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
5317 2000-02-10 Martin Buchholz <martin@xemacs.org>
5319 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
5320 Include strings.h to avoid warnings for bzero and strcasecmp.
5322 2000-02-10 Olivier Galibert <galibert@pobox.com>
5324 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
5325 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
5327 * fns.c (size_bit_vector): New. Declare bit vectors as a
5330 2000-02-10 Olivier Galibert <galibert@pobox.com>
5332 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
5333 use a value field instead.
5334 (symbol_value_forward_forward): Use value field.
5335 (DEFVAR_SYMVAL_FWD): Use value field.
5336 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
5337 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
5338 (DEFVAR_CONST_INT): Ditto.
5339 (DEFVAR_BOOL): Ditto.
5340 (DEFVAR_CONST_BOOL): Ditto.
5341 (DEFVAR_INT_MAGIC): Ditto.
5342 (DEFVAR_BOOL_MAGIC): Ditto.
5344 * symbols.c (guts_of_unbound_marker): Use value field.
5345 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
5346 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
5348 * lisp.h: Declare dumpopaque and noninteractive1.
5350 * alloc.c (dumpopaque): Added.
5351 (pdump_dump_opaquevec): Added.
5352 (pdump): Call pdump_dump_opaquevec to dump opaque data.
5353 (pdump_load): Reload opaque data. Sync noninteractive1 with
5356 2000-02-10 Andy Piper <andy@xemacs.org>
5358 * glyphs.c (image_instance_layout): if the size changes, mark it
5361 * redisplay-output.c (redisplay_output_layout): Update the
5363 (redisplay_output_subwindow): ditto.
5365 * glyphs.c (update_subwindow): make sure we reset flags for
5366 layouts as well as everything else.
5368 * glyphs-widget.c (layout_layout): don't need to set the instances
5371 2000-02-09 Martin Buchholz <martin@xemacs.org>
5373 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
5374 not HAVE_DLOPEN, which is a lower-level thing.
5376 * .cvsignore: Ignore gmon.out
5378 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
5380 * .cvsignore: Ignore portable dumper xemacs.dmp file
5382 2000-02-09 Andy Piper <andy@xemacs.org>
5384 * redisplay-output.c (redisplay_output_layout): be more clever
5385 about when we output based on the changed flags.
5387 * glyphs.h (struct image_instantiator_methods): add update_method.
5388 (struct Lisp_Image_Instance): add changed flags. Declare new
5389 macros for manipulating them.
5391 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
5392 (image_instance_parent_glyph): find an image_instance's parent
5393 glyph or image_instance.
5394 (image_instance_layout): mark the size as changed.
5395 (set_image_instance_dirty_p): new function. mark an image
5396 instance, plus all of its parents, as dirty.
5397 (Fset_image_instance_property): use it.
5398 (Fglyph_animated_timeout_handler): use it.
5399 (update_subwindow): call update_widget and device methods for
5400 update_subwindow. Mark all changed flags as clean.
5401 (Fresize_subwindow): mark size as changed.
5403 * glyphs-x.c (x_finalize_image_instance): try and detect gc
5405 (x_update_subwindow): only resize subwindows here.
5406 (x_update_widget): new function. Update all changed properties of
5408 (x_resize_subwindow): deleted.
5409 (x_widget_set_property): deleted.
5410 (x_progress_gauge_set_property): deleted.
5411 (x_progress_gauge_update): new function. Implement recorded
5413 (x_tab_control_update): ditto.
5414 (x_tab_control_set_property): deleted.
5415 (console_type_create_glyphs_x): declare new functions.
5416 (image_instantiator_format_create_glyphs_x): ditto.
5418 * glyphs-widget.c (widget_set_property): mark text changed.
5419 (update_widget): new function. Update properties of a widget.
5420 (widget_instantiate): for layouts make sure we set their
5421 children's parent correctly.
5422 (tab_control_set_property): new function. Record changes that will
5423 take place under redisplay's control.
5424 (progress_gauge_set_property): ditto.
5425 (image_instantiator_progress_guage): declare new functions.
5426 (image_instantiator_tab_control): ditto.
5428 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
5430 (mswindows_update_widget): new function. Update all properties on
5431 a widget that have changed.
5432 (mswindows_button_update): new function. Update a button's set
5434 (mswindows_tab_control_update): new function. Update the items in
5436 (mswindows_tab_control_set_property): deleted.
5437 (mswindows_progress_gauge_update): new function. Update the
5438 progress gauge's progress.
5439 (mswindows_widget_set_property): deleted. This is all done
5441 (mswindows_progress_gauge_set_property): ditto.
5442 (console_type_create_glyphs_mswindows): declare new methods.
5443 (image_instantiator_format_create_glyphs_mswindows): ditto.
5445 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
5446 (msprinter_set_frame_properties): ditto.
5448 * console.h (struct console_methods): Add update_widget_method.
5450 2000-02-09 Andy Piper <andy@xemacs.org>
5452 * gui-msw.c (Fmswindows_shell_execute): Make
5453 mswindows-shell-execute industrial strength.
5455 2000-02-08 Martin Buchholz <martin@xemacs.org>
5457 * lrecord.h: Make macro argument `props' match member function `plist'.
5461 * fns.c (Fobject_plist):
5464 Object property list frobbing cleanup.
5465 - Allow any lisp object (compared with `eq'), not just symbols, as
5466 keys in object plists.
5467 - Move symbol plist frobbing into symbols.c, where it belongs.
5468 - Move string plist frobbing into alloc.c, where it belongs.
5469 - Everything's an lrecord now, so no need to test for symbolp, etc.
5470 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
5472 * extents.c: Reorder code to remove declarations.
5474 * frame.h (store_in_alist): Remove useless declaration.
5476 2000-02-07 Martin Buchholz <martin@xemacs.org>
5478 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
5479 * config.h.in: Add HAVE_XCONVERTCASE.
5481 2000-02-07 Andy Piper <andy@xemacs.org>
5483 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
5484 it breaks many things.
5486 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
5488 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
5489 actually can start a common comment type.
5490 * src/syntax.h (SYNTAX_END_P): ditto for end.
5492 2000-02-07 Martin Buchholz <martin@xemacs.org>
5494 * XEmacs 21.2.28 is released.
5496 2000-02-06 Martin Buchholz <martin@xemacs.org>
5498 * event-Xt.c (x_keysym_to_character): New.
5499 (maybe_define_x_key_as_self_inserting_character): New.
5500 (x_has_keysym): New.
5501 Auto-define all keys on the keyboard as self-insert-key.
5503 2000-02-02 Martin Buchholz <martin@xemacs.org>
5505 * menubar.c (vars_of_menubar): A small code simplification.
5507 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
5514 Use consistent style for specifying X resources.
5516 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
5517 This makes (dontusethis-set-symbol-value-handler) actually usable.
5519 * lrecord.h (lrecord_decription_type):
5520 * alloc.c (pdump_register_sub):
5523 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
5524 Comply with XEmacs coding style.
5525 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
5526 args, and XD_LISP_OBJECT_ARRAY with 3 args.
5528 * keymap.c (Faccessible_keymaps):
5529 Make (accessible-keymaps map "\C-h") do the Right Thing.
5530 Make (accessible-keymaps map []) do the Right Thing.
5531 Make (accessible-keymaps map "") do the Right Thing.
5532 (check_keymap_definition_loop): New function.
5533 (keymap_store_internal): Keep luser from shooting self in foot,
5534 via (define-key ctl-x-4-map "p" global-map).
5535 Remove fullness slot from struct Lisp_Keymap, since hash tables
5537 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
5539 2000-01-30 Martin Buchholz <martin@xemacs.org>
5541 * redisplay.c (init_redisplay): Fix small memory leak.
5543 * elhash.c (pdump_reorganize_hash_table):
5544 Rename from reorganize_hash_table. Change prototype.
5545 Reuse the original memory for hentries. Save 100k.
5546 * alloc.c (PDUMP_READ): new macro.
5547 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
5548 * alloc.c: No need to #ifndef before #undef.
5550 * print.c: Allow debug_print() to print readably by modifying
5551 debug_print_readably. Use consistent variable names.
5553 * .dbxrc: Try to get things to work even if stopped in a function
5554 without source available by explicitly specifying source files.
5555 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5557 * unexnt.c (_start): Removed bogus code which caused loading heap
5558 from differrent executable file.
5559 Removed bogus assignment to _fmode, which caused inconsistencies.
5561 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5563 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
5564 Have spawnve encapsulation regard DONT_ENCAPSULATE.
5565 Do not preliminary `#define signal sigset'.
5567 * systime.h: Do not prototype environ on windows nt and cygwin,
5568 this conflicts with system header.
5570 * syssignal.h: Use correct define for WINDOWSNT
5572 * sysdep.h: Do not prototype environ on windows nt, this conflicts
5575 * sysdep.c (near start of file): Fixed commentary and rearranged
5576 ifdefs in readable order.
5577 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
5580 (end_of_data): Do not compile in if using PDUMP.
5582 * symsinit.h: Protptyped vars_of_nt().
5584 * ntproc.c (windows9x_p): Added, instead of os_subtype.
5585 (find_child_console): Use it.
5588 * ntheap.h: Do not extern os_subtype.
5590 * ntheap.c (cache_system_info): Do not cache unneeded:
5591 nt_major_version, nt_minor_version and os_subtype.
5592 (recreate_heap): Do not compile in when PDUMPing.
5594 * nt.c (geteuid and friends): Use the new varibale
5595 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
5596 (init_user_info): Removed the above mentioned hackery.
5597 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
5598 stat has been fixed in the C runtime.
5599 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
5601 * file-coding.c (struct file_coding_dump): Do not define
5602 ucs_to_mule_table in the struct if not MULE.
5603 (struct struct lrecord_description fcd_description_1): Do not dump
5606 * emacs.c (main_1): Call vars_of_nt().
5607 (right before Fdump_emacs_data): Don't need lastfile if using both
5608 portabe dumper and system malloc.
5610 * alloc.c (Fmemory_limit): Conditionalized out.
5611 (pdump): Use OPEN_BINARY for the portable dump file.
5612 (pdump_load): Ditto.
5614 2000-02-02 Mike Alexander <mta@arbortext.com>
5616 * nt.c (convert_time): Set tm_isdst before calling mktime and
5617 avoid calling it at all if the compiler supports 64 bit integers.
5618 Also initialize utc_base_ft before using it.
5620 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5622 * frame.c (change_frame_size_1): Take f->internal_border_width
5623 into consideration when calculating the width of the frame.
5625 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5627 * window.c (frame_min_height):
5628 (frame_size_valid_p):
5629 (frame_pixsize_valid_p): Added.
5630 (check_frame_size): Generalized.
5632 * window.h: Prototyped the above.
5635 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
5636 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
5637 Deleted Vwin32_* and Vbinary_process_* unused variables.
5639 * device-msw.c (msprinter_init_device): Do not get printer font
5640 list; Added DEVMODE functions.
5642 * frame-msw.c: Added lots of printer code.
5644 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
5647 * console-msw.h: Added more msprinter device private slots.
5649 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5651 * event-msw.c (key_needs_default_processing_p): Added.
5652 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
5654 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5656 * glyphs.c (image_instance_layout): Mark image instance as clean
5658 (glyph_dirty_p): Removed redundant function.
5659 (invalidate_glyph_geometry_maybe): Added.
5660 (update_glyph_cachel_data): Call it.
5662 * glyphs.h: Prototyped it.
5664 * redisplay.c (add_glyph_rune): Call it.
5665 (redisplay_window): Reset glyphs cachels when frame faces has
5666 changed, thus forcing recomputation of built-in border glyphs.
5668 2000-01-30 Martin Buchholz <martin@xemacs.org>
5670 * Makefile.in.in: Make portable dumper and purify play well together.
5671 Add imperfect, but better than nothing, support for pdump.
5672 Remove xemacs.dmp when temacs is re-generated.
5673 Don't ignore errors when dumping xemacs.
5675 * symbols.c (maybe_call_magic_handler): Remove one magic number.
5677 2000-01-28 Andy Piper <andy@xemacs.org>
5679 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
5680 (setup_normal_frame): ditto.
5681 (setup_frame_without_minibuffer): ditto.
5682 (setup_minibuffer_frame): ditto.
5683 (delete_frame_internal): ditto.
5684 (Fmake_frame_invisible): ditto.
5685 (Ficonify_frame): ditto.
5687 * window.h: change Fset_window_buffer signature.
5689 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
5690 (Fset_window_buffer): allow recording of buffer if the window is
5691 the selected window.
5692 (window_loop): Use new Fset_window signature.
5694 2000-01-23 Daniel Pittman <daniel@danann.net>
5696 * config.h.in: Added template for `HAVE_ATHENA_3D'
5698 2000-01-29 Andy Piper <andy@xemacs.org>
5700 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
5702 * gutter.c (output_gutter): Don't output if the window isn't live.
5704 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5706 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
5707 of 01/12/00: Moved SetFocus back here where it belongs.
5709 2000-01-23 Andy Piper <andy@xemacs.org>
5711 * s/cygwin32.h: declare printer things.
5713 2000-01-26 Andy Piper <andy@xemacs.org>
5715 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
5718 2000-01-24 Andy Piper <andy@xemacs.org>
5720 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
5721 (mswindows_button_instantiate): Make sure glyph is a pixmap.
5723 * glyphs-widget.c (widget_instantiate): Avoid shadows.
5725 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
5727 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
5729 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
5730 (mswindows_output_display_block): Avoid local shadows.
5732 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
5733 (mswindows_enqueue_mouse_button_event): ditto.
5734 (mswindows_handle_gui_wm_command): remove declaration.
5736 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
5739 * console-msw.h: Avoid shadows.
5740 (mswindows_get_toolbar_button_text):
5741 (emacs_mswindows_create_stream_pair):
5742 (emacs_mswindows_delete_stream_pair):
5743 (mswindows_handle_toolbar_wm_command): declare.
5745 * device-msw.c (build_syscolor_string): Avoid shadows.
5747 2000-01-23 Andy Piper <andy@xemacs.org>
5749 * glyphs-widget.c (widget_instantiate): reverse the items for
5750 layouts so that children are in the expected order.
5752 2000-01-28 Martin Buchholz <martin@xemacs.org>
5754 * ralloc.c: safe_bcopy ==> memmove
5755 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
5756 * s/msdos.h: Remove BCOPY macros.
5757 * insdel.c (gap_right): Remove BCOPY conditional code.
5758 * insdel.c (gap_left): Remove BCOPY conditional code.
5759 XEmacs demands a working ANSI C compiler - hence memmove.
5761 * regex.c (regex_compile): Remove accidental use of trigraphs.
5763 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5765 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
5768 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5770 * event-msw.c (mswindows_drain_windows_queue): Added the
5772 (mswindows_need_event): Commented the call to
5773 mswindows_drain_windows_queue().
5774 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
5777 * console-msw.h: Moved a few function prototypes here from
5780 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
5781 parameter from unsigned short to unsigned long.
5782 (Fmswindows_shell_execute): Added return value.
5784 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
5786 * sysdep.c (init_system_name):
5787 process-unix.c (unix_canonicalized_host_name):
5788 Don't call freeaddrinfo() if getaddrinfo() fails.
5790 * process-unix.c (unix_open_unix_network_stream):
5791 Moved the code to get a port # into address loop.
5793 2000-01-27 Martin Buchholz <martin@xemacs.org>
5795 * buffer.c (reinit_vars_of_buffer):
5796 The right place to initialize conversion_in_dynarr and
5797 conversion_out_dynarr.
5799 * alloc.c (pdump): Use the real open() till sys_open() is functional.
5801 * process-unix.c (unix_canonicalize_host_name): Muleize.
5802 (unix_open_network_stream): Muleize.
5804 * buffer.h: Fix up prototypes for ralloc.c functions.
5806 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
5807 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
5808 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
5809 instead of gethostbyname()
5810 * process-unix.c: In unix_canonicalize_host_name() and
5811 unix_open_network_stream(), add code to use getaddrinfo()
5812 instead of gethostbyname().
5814 2000-01-27 Daniel Pittman <daniel@danann.net>
5816 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
5817 libs when built with flat Athena.
5819 2000-01-27 Martin Buchholz <martin@xemacs.org>
5821 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
5822 Use coding standards for function prototypes.
5824 2000-01-25 Martin Buchholz <martin@xemacs.org>
5826 * dialog-msw.c (push_lisp_string_as_unicode):
5827 * doc.c (unparesseuxify_doc_string):
5828 * dired.c (Fuser_name_completion_1):
5829 * dired.c (Fuser_name_all_completions):
5830 * dired.c (free_user_cache):
5831 * dired.c (user_name_completion):
5832 * console-x.c (get_display_arg_connection):
5833 * minibuf.c (clear_echo_area_internal):
5834 * minibuf.c (echo_area_append):
5835 * eldap.c (Fldap_open):
5836 * eldap.c (Fldap_search_internal):
5837 * frame-x.c (x_set_frame_text_value):
5838 * frame-x.c (x_set_frame_properties):
5839 * frame-x.c (x_create_widgets):
5840 * redisplay-tty.c (term_get_fkeys_1):
5841 * objects-x.c (x_parse_nearest_color):
5842 * objects-x.c (x_valid_color_name_p):
5843 * objects-x.c (x_initialize_font_instance):
5844 * objects-x.c (x_list_fonts):
5845 * objects-x.c (x_find_charset_font):
5846 * tooltalk.c (Fadd_tooltalk_message_arg):
5847 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
5848 * tooltalk.c (Fadd_tooltalk_pattern_arg):
5849 * process-unix.c (unix_create_process):
5850 * ntproc.c (sys_spawnve):
5851 * sound.c (Fplay_sound_file):
5852 * sound.c (Fplay_sound):
5853 * buffer.c (init_initial_directory):
5854 * buffer.c (init_buffer):
5855 * editfns.c (init_editfns):
5856 * editfns.c (Ftemp_directory):
5857 * editfns.c (Fuser_full_name):
5858 * editfns.c (uncache_home_directory):
5859 * editfns.c (get_home_directory):
5860 * editfns.c (Fuser_home_directory):
5861 * editfns.c (Fformat_time_string):
5862 * editfns.c (Fcurrent_time_string):
5863 * gui-x.c (button_item_to_widget_value):
5864 * database.c (Fopen_database):
5865 * event-Xt.c (x_to_emacs_keysym):
5866 * event-Xt.c (x_event_to_emacs_event):
5867 * event-Xt.c (describe_event_window):
5868 * event-msw.c (mswindows_wnd_proc):
5869 * glyphs-eimage.c (jpeg_instantiate):
5870 * glyphs-eimage.c (gif_instantiate):
5871 * glyphs-eimage.c (png_instantiate):
5872 * glyphs-eimage.c (tiff_instantiate):
5873 * glyphs-x.c (xbm_instantiate_1):
5874 * glyphs-x.c (x_xbm_instantiate):
5875 * glyphs-x.c (x_xface_instantiate):
5876 * glyphs-x.c (autodetect_instantiate):
5877 * glyphs-x.c (cursor_font_instantiate):
5878 * glyphs-x.c (x_widget_instantiate):
5879 * glyphs-x.c (x_widget_set_property):
5880 * glyphs-x.c (x_widget_property):
5881 * glyphs-x.c (BUILD_GLYPH_INST):
5882 * print.c (write_string_to_stdio_stream):
5883 * print.c (output_string):
5884 * print.c (Falternate_debugging_output):
5885 * print.c (Fexternal_debugging_output):
5886 * glyphs-msw.c (extract_xpm_color_names):
5887 * glyphs-msw.c (mswindows_xpm_instantiate):
5888 * glyphs-msw.c (bmp_instantiate):
5889 * glyphs-msw.c (resource_name_to_resource):
5890 * glyphs-msw.c (mswindows_resource_instantiate):
5891 * glyphs-msw.c (xbm_instantiate_1):
5892 * glyphs-msw.c (mswindows_xbm_instantiate):
5893 * glyphs-msw.c (mswindows_xface_instantiate):
5894 * glyphs-msw.c (mswindows_widget_instantiate):
5895 * glyphs-msw.c (add_tree_item):
5896 * glyphs-msw.c (add_tab_item):
5897 * glyphs-msw.c (mswindows_combo_box_instantiate):
5898 * glyphs-msw.c (mswindows_widget_property):
5899 * glyphs-msw.c (mswindows_combo_box_property):
5900 * glyphs-msw.c (mswindows_widget_set_property):
5901 * console.c (stuff_buffered_input):
5902 * objects-msw.c (mswindows_initialize_color_instance):
5903 * objects-msw.c (mswindows_valid_color_name_p):
5904 * objects-msw.c (mswindows_list_fonts):
5905 * objects-msw.c (mswindows_font_instance_truename):
5906 * bytecode.c (optimize_compiled_function):
5907 * select-x.c (symbol_to_x_atom):
5908 * select-x.c (x_atom_to_symbol):
5909 * select-x.c (hack_motif_clipboard_selection):
5910 * select-x.c (selection_data_to_lisp_data):
5911 * select-x.c (lisp_data_to_selection_data):
5912 * select-x.c (Fx_get_cutbuffer_internal):
5913 * select-x.c (Fx_store_cutbuffer_internal):
5914 * buffer.h (TO_EXTERNAL_FORMAT): New function.
5915 * buffer.h (TO_INTERNAL_FORMAT): New function.
5916 * emacs.c (make_arg_list_1):
5917 * emacs.c (make_argc_argv):
5919 * emacs.c (Fdump_emacs):
5920 * emacs.c (split_string_by_emchar_1):
5925 * device-x.c (x_init_device):
5926 * device-x.c (Fx_valid_keysym_name_p):
5927 * device-x.c (Fx_get_font_path):
5928 * device-x.c (Fx_set_font_path):
5929 * glyphs.c (bitmap_to_lisp_data):
5930 * glyphs.c (pixmap_to_lisp_data):
5931 * alloc.c (make_ext_string): Use coding system arguments. Update
5933 * alloc.c (build_string):
5934 * callproc.c (child_setup):
5935 * callproc.c (init_callproc):
5936 * fileio.c (lisp_strerror):
5937 * fileio.c (directory_file_name):
5938 * fileio.c (Fexpand_file_name):
5939 * fileio.c (Ffile_truename):
5940 * fileio.c (Fsysnetunam):
5941 * fileio.c (Fdo_auto_save):
5942 * sysdep.c (sys_readdir):
5943 * tests.c: New file. Allow adding C tests.
5944 Replace GET_* macros with a more comprehensible and flexible
5945 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
5947 Any coding system can be used to do format conversion.
5948 Eliminate enum external_data_format.
5949 Eliminate convert_to_external_format.
5950 Eliminate convert_to_internal_format.
5951 Make sure file-name, keyboard, terminal, and ctext are always
5952 defined as coding systems or aliases. Make
5953 file-name-coding-system, terminal-coding-system, and
5954 keyboard-coding-system magical variables that are equivalent to
5955 defining the corresponding coding system aliases.
5957 * file-coding.c (Fcoding_system_canonical_name_p): New function.
5958 * file-coding.c (Fcoding_system_alias_p): New function.
5959 * file-coding.c (Fcoding_system_aliasee): New function.
5960 * file-coding.c (append_suffix_to_symbol): New function.
5961 * file-coding.c (dangling_coding_system_alias_p): New function.
5962 * file-coding.c (Ffind_coding_system):
5963 * file-coding.c (Fcopy_coding_system):
5964 * file-coding.c (encode_coding_no_conversion):
5965 * file-coding.c (syms_of_file_coding):
5966 * file-coding.c (vars_of_file_coding):
5967 Rewrite coding system alias code.
5968 Allow nested aliases, like symbolic links.
5969 Allow redefinition of coding system aliases.
5970 Prevent existence of dangling coding system aliases.
5972 * dired.c (Fuser_name_completion_1):
5973 * dired.c (Fuser_name_all_completions):
5974 A crash would happen if user did QUIT in the middle of building
5975 user_name_cache. Remove redundant code in mainline and unwind_protect.
5978 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
5980 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
5981 an unsigned char *. Update all callers.
5983 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5985 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
5987 2000-01-25 Martin Buchholz <martin@xemacs.org>
5989 * elhash.c (hentry_description): Use more portable definition.
5990 (resize_hash_table): Initialize new hentries using
5991 xnew_array_and_zero, thereby simplifying the code.
5993 * mule-charset.c (make_charset): Make sure entire object is
5994 intialized, to avoid Purify warnings.
5996 * alloc.c (resize_string): Fix unlikely crash with big strings.
5998 2000-01-24 Martin Buchholz <martin@xemacs.org>
6000 * realpath.c (xrealpath):
6003 2000-01-25 Martin Buchholz <martin@xemacs.org>
6005 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
6007 1999-12-28 Max Matveev <max@melbourne.sgi.com>
6009 * unexelfsgi.c (unexec): Change the way we decide which segment
6012 Assumption that .bss section should be outside the PT_LOADable
6013 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
6014 it's present) is inside the 'data' segment. This would fail the
6015 test which was used to find a segment to grow and cover new
6016 heap. Instead of this assumption, I created another one - on IRIX
6017 the segment to grow should start below .bss and it's address
6018 should extent above the end of .bss. Once this segment is
6019 identified, it's grown to accommodate the new heap and new
6020 zero-length .bss section is added at the end of .data2.
6022 2000-01-25 Martin Buchholz <martin@xemacs.org>
6024 * eval.c (Feval): Wrong number of arguments should use original
6025 function, not the indirect_function version of it.
6027 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
6029 * glyphs-x.c (x_button_instantiate): Don't add image if
6031 (x_locate_pixmap_file): Call Fexpand_file_name when file name
6034 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
6036 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
6038 (DEFVAR_INT_MAGIC): Ditto.
6039 (DEFVAR_BOOL_MAGIC): Ditto.
6040 * glyphs.h: Reindent backslash.
6042 2000-01-24 Martin Buchholz <martin@xemacs.org>
6044 * glyphs-widget.c (layout_query_geometry):
6045 (layout_layout): Use correct types for gheight, gwidth.
6047 2000-01-24 Martin Buchholz <martin@xemacs.org>
6049 * EmacsManager.c (QueryGeometry): Purified.
6051 2000-01-23 Martin Buchholz <martin@xemacs.org>
6053 * alloc.c (make_float): Make sure entire object is intialized, to
6054 avoid Purify warnings.
6055 (pdump_register_sub): Remove useless assignment.
6056 (pdump): Use xmalloc, not malloc.
6057 (pdump_load): Use xmalloc, not malloc.
6059 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6066 * sysdep.c: Removed redundant #include <windows.h>
6068 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6070 * frame.c (delete_frame_internal): Do not delete device when its
6071 implementation so declares.
6072 (delete_frame_internal): Set device selected frame to nil when
6073 last frame goes away.
6075 * device-msw.c (msprinter_device_system_metrics): Implemented.
6076 (mswindows_device_system_metrics): Added 'device-dpi property.
6078 * device.c: (Fdevice_printer_p): Added.
6079 Added 'offset-workspace device metric.
6081 * console.h (device_metrics): Declared DM_offset_workspace.
6083 2000-01-23 Martin Buchholz <martin@xemacs.org>
6085 * fileio.c (Ffile_truename): Remove pointless and confusing
6086 initialization of elen.
6088 * glyphs-widget.c: Compiler warning fixes.
6090 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
6092 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
6093 instead of a Lisp_Object as argument to make it consistent with
6094 the other LIVE_P macros.
6095 (CHECK_LIVE_PROCESS): New macro.
6097 * process.c: Declare Qprocess_live_p.
6098 (Fprocess_live_p): New function.
6099 (create_process): Use PROCESS_LIVE_P.
6100 (read_process_output): Ditto.
6101 (set_process_filter): Ditto.
6102 (Fdelete_process): Ditto.
6103 (kill_buffer_processes): Ditto
6104 (process_send_signal): Use CHECK_LIVE_PROCESS.
6105 (Fprocess_input_coding_system): Check whether process is still
6106 alive (fix PR#1061).
6107 (Fprocess_output_coding_system): Ditto.
6108 (Fprocess_coding_system): Ditto.
6109 (Fset_process_input_coding_system): Ditto.
6110 (Fset_process_output_coding_system): Ditto.
6112 2000-01-23 Andy Piper <andy@xemacs.org>
6114 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
6117 * glyphs.c (mark_image_instance): take into account changed
6118 image_instance format.
6119 (image_instance_equal): ditto.
6120 (image_instance_hash): ditto.
6122 * glyphs-widget.c (widget_instantiate): Incorporate layout
6123 instantiation here. Delay layout of the layout until later.
6124 (layout_instantiate): deleted.
6125 (layout_query_geometry): new function. get the geometry of a
6127 (layout_layout): layout a layout dynamically.
6128 (image_instantiator_widget): New function - splitting up
6129 image_instantiator_format_create_glyphs_widget for netwinder
6131 (image_instantiator_buttons):
6132 (image_instantiator_edit_fields):
6133 (image_instantiator_combo_box):
6134 (image_instantiator_scrollbar):
6135 (image_instantiator_progress_guage):
6136 (image_instantiator_tree_view):
6137 (image_instantiator_tab_control):
6138 (image_instantiator_labels):
6139 (image_instantiator_layout): ditto.
6140 (image_instantiator_format_create_glyphs_widget): Call preceeding
6143 2000-01-22 Martin Buchholz <martin@xemacs.org>
6145 * process.c (Fset_process_coding_system):
6146 * device-x.c (Fx_keysym_hash_table):
6149 * lstream.c (Lstream_write): Return documented value, not 0.
6151 * fileio.c (directory_file_name):
6152 (Fsubstitute_in_file_name):
6153 (Fsubstitute_insert_file_contents_internal):
6154 (Fwrite_region_internal):
6159 Remove vestigial APOLLO-conditional code.
6161 2000-01-21 Martin Buchholz <martin@xemacs.org>
6163 * getpagesize.h: Add guard macros.
6164 * libsst.h: Add guard macros.
6165 * libst.h: Add guard macros.
6166 * line-number.h: Add guard macros.
6167 * ndir.h: Add guard macros.
6168 * sysfloat.h: Add guard macros.
6169 * sysfile.h: Add guard macros.
6170 * sysproc.h: Add guard macros.
6171 * syswait.h: Add guard macros.
6172 * xintrinsic.h: Add guard macros.
6173 * xintrinsicp.h: Add guard macros.
6174 * xmmanager.h: Add guard macros.
6175 * xmmanagerp.h: Add guard macros.
6176 * xmprimitive.h: Add guard macros.
6177 * xmu.h: Add guard macros.
6178 * gpmevent.h: Add copyright statement. Add guard macros.
6179 * miscplay.h: Add guard macros.
6180 * *.h: Use consistent C-standards-approved guard macro names.
6182 * opaque.c (make_opaque): Switch parameter order.
6183 * opaque.h (make_opaque): Switch parameter order.
6185 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
6187 * config.h.in (type_checking_assert): Added.
6188 (bufpos_checking_assert): Added.
6190 2000-01-21 Martin Buchholz <martin@xemacs.org>
6192 * alloc.c: Harmless pdump changes.
6194 - spell alignment correctly.
6195 * sysdep.c: Use countof()
6197 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6199 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
6200 initially_selected_for_input() console method, default to 0.
6201 (semi_canonicalize_console_connection): Try to delegate to
6202 canonicalize_console_connection if no such console method.
6203 (canonicalize_console_connection): Vice versa.
6204 (print_console): Do not print nil connection.
6206 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
6207 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
6208 (XDEVIMPF_FRAMELESS_OK): Added.
6209 (CONSOLE_INHERITS_METHOD): Added.
6211 * console-msw.c (mswindows_canonicalize_console_connection):
6213 (mswindows_canonicalize_device_connection): Added.
6215 * console-msw.h (struct msprinter_device): Added this struct and
6217 (mswindows_device): Made fontlist a lisp object.
6219 * device.c (semi_canonicalize_device_connection): Try to delegate
6220 to canonicalize_device_connection if no such console method.
6221 (canonicalize_device_connection): Vice versa.
6222 (print_device): Do not print nil connection.
6224 * device-msw.c (mswindows_init_device): Call InitCommonControls
6226 (mswindows_delete_device): Removed fontlist deallocation.
6227 (mswindows_mark_device): Added.
6229 * events.c (event_equal): Added abort() at unreached code.
6230 (event_hash): Ditto.
6232 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
6233 fallback tags of Windows devices.
6235 * general.c (syms_of_general): Initialized Qmsprinter.
6237 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
6238 of fallback tags of Windows devices.
6240 * lisp.h: Declared Qmsprinter.
6242 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
6244 (mswindows_list_fonts): Ditto.
6245 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
6246 that it can be used by both mswindows and msprinter devices.
6247 (initialize_font_instance): Added.
6248 (mswindows_initialize_font_instance): Use it.
6249 (msprinter_initialize_font_instance): Added.
6251 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
6252 and implementation flags check.
6253 (redisplay_without_hooks): Changed the call to the above.
6254 (Fredraw_device): Ditto.
6255 (Fredisplay_device): Ditto.
6257 * redisplay-msw.c (get_frame_dc): Implemented.
6258 (get_frame_compdc): Implemented.
6259 (many functions): Use the two functions above to get device
6260 contexts, ether for a window or a printer.
6262 2000-01-21 Olivier Galibert <galibert@pobox.com>
6264 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
6265 initialization here.
6266 (init_symbols_once_early): Call it.
6267 * emacs.c (main_1): Call it.
6268 * symsinit.h: Declare it.
6270 2000-01-19 Olivier Galibert <galibert@pobox.com>
6272 * alloc.c: Use a lrecord_header * in the backtrace instead of a
6274 (pdump_backtrace): Ditto.
6275 (pdump_register_object): Ditto. Cleanup use of the pointers.
6276 (pdump_get_entry): Abort if trying to register a null pointer.
6277 (pdump_dump_data): Cleanup types when relocating.
6278 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
6279 (pdump_dump_rtables): Remove bad casts.
6280 (pdump_load): Cleanup relocation w.r.t union type. Use a
6281 Lisp_Object instead of a EMACS_INT for the hashtable
6284 2000-01-20 Martin Buchholz <martin@xemacs.org>
6286 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
6288 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
6290 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
6292 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
6294 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6296 * faces.h (FACE_STRIKETHRU_P): Added.
6298 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
6301 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
6302 (mswindows_set_dc_font): New function, aware of font variants,
6303 separated from mswindows_update_dc.
6305 * objects-msw.h (struct mswindows_font_instance_data): Added
6308 * objects-msw.c (mswindows_finalize_font_instance): Delete all
6309 cached fonts and the data structure.
6310 (mswindows_initialize_font_instance): Added creation of font data
6312 (mswindows_print_font_instance): Print at least something.
6313 (mswindows_create_font_variant): Implemented.
6314 (mswindows_get_hfont): Implemented.
6316 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
6318 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
6319 prototyping problem with msvc.
6321 * emacs.c (main_1): added syms_of_gui_mswindows() call
6323 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
6324 syms_of_gui_mswindows() function
6326 * symsinit.h: added the prototype for syms_of_gui_mswindows()
6328 2000-01-18 Martin Buchholz <martin@xemacs.org>
6330 * XEmacs 21.2.27 is released.
6332 2000-01-18 Martin Buchholz <martin@xemacs.org>
6334 * glyphs-eimage.c (struct tiff_error_struct):
6336 (tiff_warning_func):
6337 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
6342 * unexec.c: Remove vestigial Lucid C code.
6347 Remove declarations of errno and strerror().
6349 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
6351 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
6353 2000-01-16 Martin Buchholz <martin@xemacs.org>
6355 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
6358 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6363 Change enum eol_type to eol_type_t.
6365 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6367 * gui.c (get_gui_callback): Check cons before accessing car.
6369 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6371 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
6372 (XSETSPECIFIER_TYPE): Ditto.
6374 2000-01-17 Didier Verna <didier@xemacs.org>
6376 * redisplay.c (generate_fstring_runes): compute string size in
6377 characters, not bytes.
6379 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
6381 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
6383 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
6385 * print.c (print_error_message): Call print_prepare().
6387 2000-01-14 Martin Buchholz <martin@xemacs.org>
6389 * .dbxrc: Renamed from dbxrc.
6391 * events.c (event_to_character):
6392 Use `assert (foo)' instead of `if (!foo) abort()'
6394 * .gdbinit (xtype): Add documentation.
6395 * .gdbinit (check-temacs): New function.
6396 * .gdbinit (check-xemacs): New function.
6397 * dbxrc (check-xemacs): New function.
6398 * dbxrc (check-xemacs): New function.
6400 2000-01-14 Andy Piper <andy@xemacs.org>
6402 * glyphs-widget.c (widget_query_geometry): Make sure that we
6403 calculate default dimensions correctly.
6405 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6407 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
6409 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
6410 pdump_wire'd variable.
6412 * emacs.c: (main_1): Conditionalized calls to
6413 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
6415 2000-01-13 Martin Buchholz <martin@xemacs.org>
6417 * window.c (Fset_window_configuration):
6418 * sysdep.c (_start):
6419 * input-method-motif.c (res):
6420 * event-Xt.c (Xt_process_to_emacs_event):
6421 Simple compiler warning fixes.
6423 * bytecode.c (funcall_compiled_function): Use the original
6424 function symbol on the backtrace list in preference to the
6425 compiled_function object in error messages.
6427 2000-01-13 Andy Piper <andy@xemacs.org>
6429 * glyphs-x.c (update_widget_face): Make sure we update the widget
6430 background as well as foreground.
6432 2000-01-13 Andy Piper <andy@xemacs.org>
6434 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
6435 fields to subwindow.
6436 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
6437 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
6438 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
6439 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
6441 * glyphs-widget.c (check_valid_tab_orientation): new function.
6442 (initialize_widget_image_instance): zero orientation and
6444 (widget_instantiate): pick up orientation.
6445 (tab_control_query_geometry): return appropriate values for
6448 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
6449 appropriate creation flags for left, right and bottom tabs.
6451 * s/cygwin32.h: add tab definitions.
6453 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6455 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
6456 frame upon hiding a subwindow.
6457 (mswindows_button_instantiate): Changed the push button style to
6459 (mswindows_button_instantiate): Removed button BS_NOTIFY
6461 (mswindows_button_instantiate): Removed redundant check for
6462 a disabled gui item.
6463 (mswindows_button_instantiate): Made use of WS_TABSTOP
6464 consistent: "operable" controls (edit, button, tree, scroll) have
6465 this style, "display-only" ones (static, progress gauge) do
6466 not. This style is currently ignored by XEmacs though. Also,
6467 removed the WS_EX_CONTROLPARENT style - it is not for children,
6468 it is for their parents!
6469 (mswindows_edit_field_instantiate): Ditto.
6470 (mswindows_progress_gauge_instantiate): Ditto.
6471 (mswindows_tree_view_instantiate): Ditto.
6472 (mswindows_tab_control_instantiate): Ditto.
6473 (mswindows_scrollbar_instantiate): Ditto.
6474 (mswindows_combo_box_instantiate): Ditto.
6475 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
6476 style to the "clip" window.
6477 (mswindows_button_instantiate): Removed compilation warning by
6478 equally typing terms of the ?: operator.
6480 2000-01-12 Didier Verna <didier@xemacs.org>
6482 * redisplay.c (generate_fstring_runes): new parameter holding the
6483 last modeline-format extent.
6484 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
6485 extent, fill the glyph block with it.
6486 (generate_fstring_runes): handle these parameters.
6487 (generate_formatted_string_db): ditto.
6489 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
6490 glyphs'extents in the modeline.
6492 1999-01-11 Mike Woolley <mike@bulsara.com>
6494 * ntheap.c: Reduced the reserved heap space from 1Gb down to
6495 256Mb, as a workaround for the non-starting problem many people
6498 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
6500 * console-tty.c (Fset_console_tty_output_coding_system):
6501 Force redrawing tty frame.
6503 2000-01-10 Didier Verna <didier@xemacs.org>
6505 * redisplay.c (generate_fstring_runes): fix size computation bug.
6507 2000-01-09 William M. Perry <wmperry@aventail.com>
6509 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
6511 2000-01-09 Andy Piper <andy@xemacs.org>
6513 * glyphs-msw.c: index -> i to avoid shadows.
6514 (xbm_create_bitmap_from_data): make static.
6515 (check_valid_string_or_int): deleted.
6516 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
6518 * glyphs-x.c (x_update_subwindow): remove unused args.
6520 * glyphs.c (glyph_image_instance): return the thing. Don't set the
6521 back pointer - this is done in allocate_image_instance.
6522 (query_string_font): return Qnil to make the compiler happy.
6523 (unmap_subwindow): set to ~0 to make the compiler happy.
6524 (glyph_query_geometry): comment out until used.
6525 (glyph_layout): ditto.
6527 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
6529 * insdel.c (signal_after_change): Remove extraneous unbind_to().