1 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * chartab.c (get_char_id_table): Change interface.
4 (put_char_id_table_0): New function.
5 (put_char_id_table): Change interface; new implementation.
6 (Fget_composite_char): Modify for interface change of
8 (Fchar_variants): Likewise.
9 (add_char_attribute_alist_mapper): Likewise.
10 (Fchar_attribute_alist): Likewise.
11 (Fget_char_attribute): Likewise.
12 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
13 as same as character as the first argument like `put-char-table';
14 modify for interface change of `put_char_id_table'.
15 (Fremove_char_attribute): Modify for interface change of
18 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
20 * text-coding.c: Sync up with XEmacs 21.2.41.
21 (COMPOSE_ADD_CHAR): Modify for interface change of
24 * mule-charset.c (put_char_ccs_code_point): Modify for interface
25 change of `put_char_id_table'.
26 (remove_char_ccs): Likewise.
28 * chartab.h (put_char_id_table): Change interface.
30 * char-ucs.h (get_char_id_table): Change interface.
31 (charset_code_point): Modify for interface change of
33 (encode_char_1): Likewise.
35 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
37 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
39 (map_over_uint16_byte_table): Likewise.
40 (map_over_byte_table): Likewise.
41 (map_char_id_table): Add new argument `range' like
43 (Fmap_char_attribute): Add new argument `range' like
46 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
48 * chartab.c (map_over_uint8_byte_table): Change interface of
49 mapping function to use struct chartab_range instead of Emchar.
50 (map_over_uint16_byte_table): Likewise.
51 (map_over_byte_table): Likewise.
52 (map_char_id_table): Likewise.
53 (struct slow_map_char_id_table_arg): Deleted.
54 (slow_map_char_id_table_fun): Deleted.
55 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
56 function `slow_map_char_table_fun' instead of struct
57 `slow_map_char_id_table_arg' and function
58 `slow_map_char_id_table_fun'.
60 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
62 * mule-charset.c: Move char-it-table related codes to chartab.c.
63 (Vutf_2000_version): Moved to chartab.c.
64 (Fdefine_char): Likewise.
65 (Ffind_char): Likewise.
66 (syms_of_mule_charset): Move types `uint8-byte-table',
67 `uint16-byte-table', `byte-table' and `char-id-table' to
68 chartab.c; move functions `char_attribute_list,
69 `find_char_attribute_table, `char_attribute_alist,
70 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
71 `map_char_attribute, `define_char, `find_char, `char_variants and
72 `get_composite_char to chartab.c; move symbols `=>ucs',
73 `->decomposition', `compat', `isolated', `initial', `medial',
74 `final', `vertical', `noBreak', `fraction', `super', `sub',
75 `circle', `square', `wide', `narrow', `small' and `font' to
77 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
78 setting codes for `Vcharacter_composition_table' and
79 `Vcharacter_variant_table' to chartab.c.
80 (complex_vars_of_mule_charset): Move setting code for
81 `Vchar_attribute_hash_table' to chartab.c.
83 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
84 (make_char_id_table): New prototype.
85 (put_char_id_table): Likewise.
86 (Fget_char_attribute): Likewise.
88 * chartab.c: Move char-id-table related code from mule-charset.c.
89 (Vutf_2000_version): Moved from mule-charset.c.
91 * char-ucs.h (Qucs): New external variable.
92 (put_char_ccs_code_point): New prototype.
93 (remove_char_ccs): Likewise.
95 2001-08-14 MORIOKA Tomohiko <tomo@calliope.mousai.mahoroba.ne.jp>
97 * mule-charset.c (Vcharset_ucs_jis): New variable.
99 (syms_of_mule_charset): Add new symbol `ucs-jis'.
100 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
102 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
104 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
106 * mule-charset.c (map_over_uint8_byte_table): New function.
107 (map_over_uint16_byte_table): Likewise.
108 (map_over_byte_table): Likewise.
109 (map_char_id_table): Likewise.
110 (slow_map_char_id_table_fun): Likewise.
111 (Fmap_char_attribute): Likewise.
112 (syms_of_mule_charset): Add new function `map-char-attribute'.
114 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
116 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
117 (syms_of_mule_charset): Add new function `find-char'.
119 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
121 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
123 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
124 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
126 (complex_vars_of_mule_charset): Add new coded-charset
127 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
130 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
132 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
134 * mule-charset.c (encode_builtin_char_1): Purge codes about
135 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
136 {MIN|MAX}_CHAR_HEBREW.
137 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
138 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
140 * char-ucs.h (MIN_CHAR_GREEK): Purged.
141 (MAX_CHAR_GREEK): Purged.
142 (MIN_CHAR_CYRILLIC): Purged.
143 (MAX_CHAR_CYRILLIC): Purged.
144 (MIN_CHAR_HEBREW): Commented out.
145 (MAX_CHAR_HEBREW): Likewise.
147 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
149 * mule-charset.c (Qto_ucs): New variable.
150 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
151 (Fdefine_char): Likewise.
152 (syms_of_mule_charset): Add new symbol `=>ucs'.
154 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
156 * mule-charset.c (Fdecode_char): Fixed.
158 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
160 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
161 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
164 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
166 * mule-charset.c (Vcharset_ucs_big5): New variable.
167 (Qucs_big5): Likewise.
168 (syms_of_mule_charset): Add new symbol `ucs-big5'.
169 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
171 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
173 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
175 * mule-charset.c (decode_builtin_char): Check Big5 code range
176 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
178 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
180 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
181 (Qchinese_gb12345): Likewise.
182 (Fdecode_builtin_char): Fixed.
183 (syms_of_mule_charset): Add `chinese-gb12345'.
184 (complex_vars_of_mule_charset): Add coded-charset
187 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
188 (LEADING_BYTE_CHINESE_GB12345): New macro.
190 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
192 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
193 and `latin-viscii-upper' for `latin-viscii'.
195 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
197 * mule-charset.c (Fdecode_builtin_char): Comment out
198 regularization code for ISO-IR GR representation.
200 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
202 * mule-charset.c (decode_builtin_char): New function; renamed from
203 `make_builtin_char'; return -1 instead of signal.
204 (Fdecode_builtin_char): Use `decode_builtin_char'.
206 * char-ucs.h (decode_builtin_char): New prototype; renamed from
208 (DECODE_CHAR): Use `decode_builtin_char' instead of
209 `make_builtin_char'; use mapping table of `chinese-big5' for
210 `chinese-big5-{1,2}'.
212 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
214 * text-coding.c (char_encode_big5): New function.
215 (char_finish_big5): Likewise.
216 (reset_encoding_stream): Use `char_encode_big5' and
217 `char_finish_big5' for CODESYS_BIG5.
218 (mule_encode): Don't use `encode_coding_big5'.
219 (encode_coding_big5): Deleted.
221 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
223 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
224 0x81- in XEmacs UTF-2000.
225 (detect_coding_big5): Likewise.
227 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
229 * mule-charset.c (Fdefine_char): Don't use a CCS property to
230 generate character-id if the CCS property does not have
231 corresponding predefined character.
232 (make_builtin_char): Return -1 if corresponding predefined
233 character is not found.
234 (Fdecode_char): Return nil if corresponding character is not
236 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
237 don't map to builtin ucs space.
239 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
241 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
242 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
244 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
246 * mule-charset.c (Vcharset_ideograph_gt): New variable.
247 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
248 (Qideograph_gt): Likewise.
249 (Qideograph_gt_pj_{1..11}): Likewise.
250 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
251 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
252 `ideograph-gt-pj-11'.
253 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
254 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
255 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
257 * char-ucs.h (LEADING_BYTE_GT): New macro.
258 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
259 (MIN_CHAR_GT): Likewise.
260 (MAX_CHAR_GT): Likewise.
262 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
264 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
265 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
267 * doprnt.c (unsigned_int_converters): Add `c'.
268 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
270 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
271 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
273 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
274 (MAX_CHAR_MOJIKYO_0): New macro.
275 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
277 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
279 * mule-charset.c (Fdefine_char): Delete cemented out code.
280 (encode_builtin_char_1): Modify for new allocation of builtin
283 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
285 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
287 * mule-charset.c (Vcharset_ucs_cns): New variable.
288 (Qucs_cns): New variable.
289 (syms_of_mule_charset): Add new symbol `ucs-cns'.
290 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
292 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
294 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
296 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
298 * search.c (search_buffer): Make `charset_base_code' as
299 character-id >> 6 to eliminate the corresponding last byte in
300 UTF-8 representation [I'm not sure it is right thing].
301 (boyer_moore): Likewise.
303 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
305 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
306 representation in MULE.
308 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
310 * text-coding.c (Fmake_coding_system): Use
311 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
312 `EXTERNAL_PROPERTY_LIST_LOOP'.
314 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
316 * text-coding.c (decode_output_utf8_partial_char): New function.
317 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
319 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
321 * text-coding.c (decode_coding_utf8): Output original byte
322 sequence if it is broken; change order of conditions.
324 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
327 * mb-multibyte.h (BYTE_ASCII_P):
328 Use bit ops for char-signedness safety.
329 (BYTE_C0_P): Use bit ops for char-signedness safety.
330 (BYTE_C1_P): Use bit ops for char-signedness safety.
332 * character.h: (XCHAR_OR_CHAR_INT):
333 Always use inline function.
334 Remove redundant type checking assert() - XINT will abort quite
337 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
339 * text-coding.c: (Fencode_shift_jis_char):
341 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
342 Replace 0 with '\0' when working with bytes.
343 Replace initial "(" with "\(" in docstrings.
345 (Fmake_coding_system):
346 When type is ccl and value is vector, register it with a proper
347 symbol. And checks whether the given ccl program is valid.
348 (mule_decode): When calling ccl_driver, if src indicates
349 NULL pointer, set an empty string instead.
350 (mule_encode): Likewise.
353 (detect_coding_sjis):
354 (decode_coding_sjis):
355 (detect_coding_big5):
356 (decode_coding_big5):
357 (detect_coding_ucs4):
358 (decode_coding_ucs4):
359 (detect_coding_utf8):
360 (decode_coding_utf8):
361 (detect_coding_iso2022):
362 (decode_coding_iso2022):
363 (decode_coding_no_conversion):
365 Make all detecting and decoding functions take an Extbyte * arg.
366 (text_encode_generic):
367 (encode_coding_big5):
368 (encode_coding_no_conversion):
370 Make all encoding functions take a Bufbyte * arg.
371 Use size_t instead of unsigned int for memory sizes.
372 Only cast to unsigned char whenever dereferencing Extbyte *.
374 (struct lrecord_description fcd_description_1): Use countof.
375 (complex_vars_of_file_coding):
376 Use countof instead of sizeof.
377 Use CHECK_NATNUM instead of CHECK_INT.
379 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
381 * mule-charset.c (Fget_char_attribute): Add new optional argument
383 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
384 (remove_char_ccs): Likewise.
386 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
388 * text-coding.c (char_encode_shift_jis): New implementation in
390 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
393 * mule-charset.c (Vcharset_chinese_big5): New variable in
395 (Qchinese_big5): New variable in UTF-2000.
396 (BIG5_SAME_ROW): New macro in UTF-2000.
397 (make_builtin_char): Use builtin characters of
398 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
399 characters of `Vcharset_chinese_big5'.
400 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
401 (complex_vars_of_mule_charset): Add new coded-charset
402 `chinese-big5' in UTF-2000.
404 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
405 (Vcharset_chinese_big5): New external variable declaration.
406 (Vcharset_japanese_jisx0208_1990): Likewise.
408 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
410 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
412 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
414 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
416 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
417 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
418 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
421 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
423 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
425 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
427 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
430 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
432 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
433 for `CHARSET_BY_ATTRIBUTES'.
434 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
435 `CHARSET_BY_ATTRIBUTES'.
437 * text-coding.c (struct decoding_stream): Rename member `CH' to
439 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
440 (decode_coding_sjis): Likewise.
441 (decode_coding_big5): Likewise.
442 (decode_coding_ucs4): Likewise.
443 (decode_coding_utf8): Likewise.
444 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
445 `CHARSET_BY_ATTRIBUTES'.
446 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
447 `str->counter'; decode 3, 4 bytes sets.
448 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
450 (decode_coding_no_conversion): Use `str->cpos' instead of
453 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
454 (Qmojikyo_2022_1): New variable.
455 (make_charset): Don't use `CHARSET_TYPE_*'.
456 (range_charset_code_point): Support coded-charset
458 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
459 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
460 `CHARSET_BY_ATTRIBUTES'.
461 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
462 `CHARSET_BY_ATTRIBUTES'.
463 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
464 (complex_vars_of_mule_charset): Add new coded-charset
467 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
468 interface; changed to inline function.
470 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
471 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
472 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
473 (CHARSET_TYPE_94): Deleted.
474 (CHARSET_TYPE_94X94): Deleted.
475 (CHARSET_TYPE_96): Deleted.
476 (CHARSET_TYPE_96X96): Deleted.
477 (CHARSET_TYPE_128): Deleted.
478 (CHARSET_TYPE_128X128): Deleted.
479 (CHARSET_TYPE_256): Deleted.
480 (CHARSET_TYPE_256X256): Deleted.
481 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
483 (DECODE_MOJIKYO_2022): New inline function.
484 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
485 `Vcharset_mojikyo_2022_1'.
487 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
489 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
491 (put_byte_table): Likewise.
492 (char_id_table_equal): Use `get_byte_table' [new implementation].
494 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
496 * mule-charset.c: Include <limits.h> in UTF-2000.
497 (BT_UINT8_MIN): New macro in UTF-2000.
498 (BT_UINT8_MAX): New macro in UTF-2000.
499 (BT_UINT8_t): New macro in UTF-2000.
500 (BT_UINT8_nil): New macro in UTF-2000.
501 (BT_UINT8_unbound): New macro in UTF-2000.
502 (INT_UINT8_P): New inline function in UTF-2000.
503 (UINT8_VALUE_P): New inline function in UTF-2000.
504 (UINT8_ENCODE): New inline function in UTF-2000.
505 (UINT8_DECODE): New inline function in UTF-2000.
506 (mark_uint8_byte_table): New function in UTF-2000.
507 (print_uint8_byte_table): New function in UTF-2000.
508 (uint8_byte_table_equal): New function in UTF-2000.
509 (uint8_byte_table_hash): New function in UTF-2000.
510 (make_uint8_byte_table): New function in UTF-2000.
511 (uint8_byte_table_same_value_p): New function in UTF-2000.
512 (BT_UINT16_MIN): New macro in UTF-2000.
513 (BT_UINT16_MAX): New macro in UTF-2000.
514 (BT_UINT16_t): New macro in UTF-2000.
515 (BT_UINT16_nil): New macro in UTF-2000.
516 (BT_UINT16_unbound): New macro in UTF-2000.
517 (INT_UINT16_P): New inline function in UTF-2000.
518 (UINT16_VALUE_P): New inline function in UTF-2000.
519 (UINT16_ENCODE): New inline function in UTF-2000.
520 (UINT16_DECODE): New inline function in UTF-2000.
521 (UINT8_TO_UINT16): New inline function in UTF-2000.
522 (mark_uint16_byte_table): New function in UTF-2000.
523 (print_uint16_byte_table): New function in UTF-2000.
524 (uint16_byte_table_equal): New function in UTF-2000.
525 (uint16_byte_table_hash): New function in UTF-2000.
526 (make_uint16_byte_table): New function in UTF-2000.
527 (uint16_byte_table_same_value_p): New function in UTF-2000.
528 (print_byte_table): New function in UTF-2000.
529 (byte-table): Use `print_byte_table' as printer.
530 (make_byte_table): Delete second argument `older'.
531 (byte_table_same_value_p): New function in UTF-2000.
532 (copy_byte_table): Deleted.
533 (get_byte_table): New function in UTF-2000.
534 (put_byte_table): New function in UTF-2000.
535 (print_char_id_table): New function in UTF-2000.
536 (char-id-table): Use `print_char_id_table' as printer.
537 (make_char_id_table): Delete second argument `older'.
538 (get_char_id_table): Use `get_byte_table [new implementation].
539 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
541 (Ffind_char_attribute_table): New function in UTF-2000.
542 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
543 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
544 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
545 (syms_of_mule_charset): Add new function
546 `find-char-attribute-table' in UTF-2000.
548 * lrecord.h (enum lrecord_type): Add
549 `lrecord_type_uint16_byte_table' and
550 `lrecord_type_uint8_byte_table'.
552 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
553 (Lisp_Uint8_Byte_Table): New type.
554 (XUINT8_BYTE_TABLE): New macro.
555 (XSETUINT8_BYTE_TABLE): New macro.
556 (UINT8_BYTE_TABLE_P): New macro.
557 (GC_UINT8_BYTE_TABLE_P): New macro.
558 (struct Lisp_Uint16_Byte_Table): New structure.
559 (Lisp_Uint16_Byte_Table): New type.
560 (XUINT16_BYTE_TABLE): New macro.
561 (XSETUINT16_BYTE_TABLE): New macro.
562 (UINT16_BYTE_TABLE_P): New macro.
563 (GC_UINT16_BYTE_TABLE_P): New macro.
565 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
567 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
568 (Vcharacter_ideographic_strokes_table): Deleted.
569 (Vcharacter_total_strokes_table): Deleted.
570 (Vcharacter_morohashi_daikanwa_table): Deleted.
571 (Vcharacter_decomposition_table): Deleted.
572 (Qname): Deleted because it is duplicated.
573 (Qideographic_radical): Deleted.
574 (Qideographic_strokes): Deleted.
575 (Qtotal_strokes): Deleted.
576 (Qmorohashi_daikanwa): Deleted.
577 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
578 `ideographic-radical', `ideographic-strokes', `total-strokes',
579 `morohashi-daikanwa' and `->decomposition'.
580 (Fget_char_attribute): Likewise.
581 (Fput_char_attribute): Likewise; use `make-vector' instead of
582 `make_older_vector' for `->decomposition' value.
583 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
584 `ideograph-daikanwa'.
585 (syms_of_mule_charset): Delete builtin symbols `name',
586 `ideographic-radical', `ideographic-strokes', `total-strokes' and
587 `morohashi-daikanwa'.
588 (vars_of_mule_charset): Don't setup
589 `Vcharacter_ideographic_radical_table',
590 `Vcharacter_ideographic_strokes_table',
591 `Vcharacter_total_strokes_table',
592 `Vcharacter_morohashi_daikanwa_table' and
593 `Vcharacter_decomposition_table'.
595 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
597 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
598 `make_older_vector', `make_vector_newer_1' and
601 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
602 `make_older_vector' and `make_vector_newer'.
604 * config.h.in (HAVE_GGC): New macro.
606 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
608 * mule-charset.c (struct char_attribute_list_closure): New
609 structure in UTF-2000.
610 (add_char_attribute_to_list_mapper): New function in UTF-2000.
611 (Fchar_attribute_list): Likewise.
612 (Fset_charset_mapping_table): Use `make_vector_newer'.
613 (Fdecode_builtin_char): New function in UTF-2000.
614 (syms_of_mule_charset): Add new function `char-attribute-list' and
615 `decode-builtin-char' in UTF-2000.
617 * lisp.h (make_vector_newer): New prototype.
619 * alloc.c (make_vector_newer_1): New function.
620 (make_vector_newer): New function.
622 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
624 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
627 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
629 * mule-charset.c (Vchar_attribute_hash_table): New variable.
630 (Vcharacter_attribute_table): Deleted.
631 (Vcharacter_name_table): Deleted.
632 (put_char_attribute): Deleted.
633 (remove_char_attribute): Deleted.
634 (struct char_attribute_alist_closure): New structure.
635 (add_char_attribute_alist_mapper): New function.
636 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
637 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
638 (Fget_char_attribute): Likewise.
639 (Fput_char_attribute): Likewise.
640 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
641 of `remove_char_attribute'.
642 (Fdefine_char): Return character.
643 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
644 and `Vcharacter_name_table'.
645 (complex_vars_of_mule_charset): Likewise
646 `Vchar_attribute_hash_table'.
648 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
650 * character.h (CHARC_CHARSET): New macro.
651 (CHARC_CHARSET_ID): New macro.
652 (CHARC_CODE_POINT): New macro.
653 (CHARC_COLUMNS): New macro.
654 (CHARC_TO_CHAR): New inline function.
655 (CHARC_EQ): New inline function.
656 (CHARC_ASCII_EQ): New inline function.
657 (CHARC_IS_SPACE): New inline function.
658 (ASCII_TO_CHARC): New inline function.
660 * char-ucs.h (encode_char_2): Deleted.
661 (ENCODE_CHAR): Use `encode_char_1' again.
662 (breakup_char_1): Likewise.
663 (CHAR_TO_CHARC): New inline function.
665 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
667 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
669 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
670 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
671 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
672 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
673 (create_string_text_block): Use `CHARC_ASCII_EQ' and
675 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
677 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
679 (x_output_display_block): Use `CHARC_CHARSET' and
682 * redisplay-tty.c (tty_output_display_block): Use
684 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
686 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
688 * insdel.c (find_charsets_in_charc_string): Use
690 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
691 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
692 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
693 (convert_charc_string_into_malloced_string): Likewise.
695 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
697 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
698 instead of <Emchar_dynarr *> for buf; use
699 `convert_bufbyte_string_into_charc_dynarr' instead of
700 `convert_bufbyte_string_into_emchar_dynarr'; use
701 `find_charsets_in_charc_string' instead of
702 `find_charsets_in_emchar_string'.
705 - Include "character.h".
706 (struct rune): New member `cglyph'; delete member `chr'.
708 * redisplay.c (redisplay_text_width_charc_string): New function;
709 delete `redisplay_text_width_emchar_string'.
710 (rtw_charc_dynarr): New variable; renamed from
712 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
713 `rtw_emchar_dynarr'; use
714 `convert_bufbyte_string_into_charc_dynarr' instead of
715 `convert_bufbyte_string_into_emchar_dynarr'; use
716 `redisplay_text_width_charc_string' instead of
717 `redisplay_text_width_emchar_string'.
718 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
719 instead of `rtw_emchar_dynarr'; use
720 `convert_bufbyte_string_into_charc_dynarr' instead of
721 `convert_bufbyte_string_into_emchar_dynarr'.
722 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
723 `redisplay_text_width_charc_string' instead of
724 `redisplay_text_width_emchar_string'.
725 (create_text_block): Modify for <struct rune> change.
726 (generate_formatted_string_db): Likewise.
727 (create_string_text_block): Likewise.
728 (pixel_to_glyph_translation): Likewise.
730 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
731 instead of <const Emchar *>.
732 (x_text_width): Likewise.
733 (x_output_display_block): Use <Charc_dynarr *> instead
734 <Emchar_dynarr *>; modify for <structure rune> change.
735 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
738 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
739 <const Emchar *>; use `charc_string_displayed_columns' instead of
740 `emchar_string_displayed_columns'.
741 (tty_output_display_block): Use <Charc_dynarr *> instead of
742 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
743 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
744 (tty_output_charc_dynarr_dynarr): New variable; renamed from
745 `tty_output_emchar_dynarr_dynarr'.
746 (tty_output_charc_dynarr): New function; delete
747 `tty_output_charc_dynarr'.
749 * redisplay-output.c (compare_runes): Modify for `struct rune'.
750 (redisplay_output_layout): Use <Charc_dynarr *> instead of
751 <Emchar_dynarr *> for buf; use
752 `convert_bufbyte_string_into_charc_dynarr' instead of
753 `convert_bufbyte_string_into_emchar_dynarr'.
755 * frame.c (title_string_charc_dynarr): New variable; renamed from
756 `title_string_emchar_dynarr'.
757 (generate_title_string): Use `title_string_charc_dynarr' instead
758 of `title_string_emchar_dynarr'; use
759 `convert_charc_string_into_malloced_string' instead of
760 `convert_emchar_string_into_malloced_string'.
761 (init_frame): Use `title_string_charc_dynarr' instead of
762 `title_string_emchar_dynarr'.
765 - Include "character.h".
766 (struct console_methods): Use <const Charc *> instead of <const
767 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
768 <Emchar_dynarr *> in output_string_method.
770 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
773 * console-stream.c (stream_text_width): Use <const Charc *>
774 instead of <const Emchar *>.
776 * character.h (Charc_dynarr): New type.
778 * char-ucs.h (structure Charc): New structure; define new type
781 * char-lb.h (DECODE_CHAR): New inline function.
782 (encode_char_1): New inline function.
783 (ENCODE_CHAR): New macro.
784 (structure Charc): New structure; define new type `Charc'.
786 * char-1byte.h (Vcharset_control_1): New macro.
787 (Vcharset_latin_iso8859_1): New macro.
788 (DECODE_CHAR): New inline function.
789 (encode_char_1): New inline function.
790 (ENCODE_CHAR): New macro.
791 (structure Charc): New structure; define new type `Charc'.
793 * insdel.c (find_charsets_in_charc_string): New function; delete
794 `find_charsets_in_emchar_string'.
795 (charc_string_displayed_columns): New function; delete
796 `emchar_string_displayed_columns'.
797 (convert_bufbyte_string_into_charc_dynarr): New function; delete
798 `convert_bufbyte_string_into_emchar_dynarr'.
799 (convert_charc_string_into_bufbyte_dynarr): New function; delete
800 `convert_charc_string_into_bufbyte_dynarr'.
801 (convert_charc_string_into_malloced_string): New function; delete
802 `convert_charc_string_into_malloced_string'.
804 * buffer.h (find_charsets_in_charc_string): New prototype; delete
805 `find_charsets_in_emchar_string'.
806 (charc_string_displayed_columns): New prototype; delete
807 `emchar_string_displayed_columns'.
808 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
809 `convert_charc_string_into_bufbyte_dynarr'.
810 (convert_charc_string_into_malloced_string): New prototype; delete
811 `convert_charc_string_into_malloced_string'.
813 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
815 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
817 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
819 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
821 * char-ucs.h: Use <short> for <Charset_ID>.
823 * mule-charset.h, char-1byte.h: Use <unsigned char> for
826 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
828 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
831 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
833 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
835 (Qmorohashi_daikanwa): New variable.
836 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
837 for `morohashi-daikanwa' attribute.
838 (Fget_char_attribute): Likewise.
839 (Fput_char_attribute): Likewise.
840 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
841 has the same value of `ideograph-daikanwa'.
842 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
843 (vars_of_mule_charset): Setup
844 `Vcharacter_morohashi_daikanwa_table'.
846 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
848 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
850 (add_charset_to_list_mapper): Add `key' instead of
851 `XCHARSET_NAME (value)' to return aliases.
853 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
855 * mule-charset.c (Vcharacter_ideographic_radical_table): New
857 (Vcharacter_ideographic_strokes_table): New variable.
858 (Qideographic_radical): New variable.
859 (Qideographic_strokes): New variable.
860 (Fchar_attribute_alist): Use
861 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
862 attribute; use `Vcharacter_ideographic_strokes_table' for
863 `ideographic-strokes' attribute.
864 (Fget_char_attribute): Likewise.
865 (Fput_char_attribute): Likewise.
866 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
867 `ideographic-strokes'.
868 (vars_of_mule_charset): Setup
869 `Vcharacter_ideographic_radical_table' and
870 `Vcharacter_ideographic_strokes_table'.
872 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
874 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
875 (Qtotal_strokes): New variable.
876 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
877 `total-strokes' attribute.
878 (Fget_char_attribute): Likewise.
879 (Fput_char_attribute): Likewise.
880 (syms_of_mule_charset): Add new symbol `total-strokes'.
881 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
883 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
885 * mule-charset.c (Vcharacter_decomposition_table): New variable.
886 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
888 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
889 `->decomposition' attribute.
890 (Fput_char_attribute): Likewise.
891 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
893 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
895 * mule-charset.c (decoding_table_check_elements): New function.
896 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
898 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
900 * mule-charset.c (Fset_charset_mapping_table): Use
901 `put_char_ccs_code_point'.
903 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
905 * mule-charset.c (decoding_table_put_char): New inline function.
906 (put_char_ccs_code_point): Use `decoding_table_put_char'.
908 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
910 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
911 (XCHARSET_BYTE_SIZE): New macro.
912 (decoding_table_remove_char): New inline function.
913 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
914 `decoding_table_remove_char'.
915 (remove_char_ccs): Use `decoding_table_remove_char'.
916 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
918 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
920 * mule-charset.c (Vcharacter_name_table): New variable.
921 (Qname): New variable.
922 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
924 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
925 `Vcharacter_name_table' for `name' attribute.
926 (Fremove_char_attribute): Use function `remove_char_ccs'.
927 (put_char_ccs_code_point): New function.
928 (remove_char_ccs): New function.
929 (syms_of_mule_charset): Add new symbol `name'.
930 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
932 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
934 * mule-charset.c (make_byte_table): Add new argument `older'.
935 (make_char_id_table): Likewise.
936 (copy_char_id_table): Comment out because it is not used.
937 (put_char_id_table): Modify for `make_byte_table'.
938 (Fput_char_attribute): Make encoding_table as older object;
939 inherit older bit of `Vcharacter_composition_table'.
940 (mark_charset): Don't mark `cs->encoding_table'.
941 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
942 normal object; make `Vcharacter_composition_table' as an older
943 object; delete staticpro for `Vcharacter_composition_table'; make
944 `Vcharacter_variant_table' as a normal object.
946 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
947 (mark_object): Don't check older object in UTF-2000.
949 * lrecord.h (struct lrecord_header): Add new member `older' in
951 (set_lheader_implementation): Setup `SLI_header->older' in
953 (set_lheader_older_implementation): New macro in UTF-2000.
954 (OLDER_RECORD_P): New macro in UTF-2000.
955 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
956 (alloc_older_lcrecord): New prototype in UTF-2000.
957 (alloc_older_lcrecord_type): New macro in UTF-2000.
959 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
961 * mule-charset.c (byte_table_description): Use
962 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
963 (char_id_table_description): Delete bogus `, 1'.
964 (Fget_char_attribute): Refer encoding_table of each coded-charset
965 to get value of coded-charset attribute of a character.
966 (Fput_char_attribute): Use `make_older_vector' instead of
967 `make_vector'; use encoding_table of each coded-charset to store
968 value of coded-charset attribute of a character.
969 (Fremove_char_attribute): Use encoding_table of each coded-charset
970 to store value of coded-charset attribute of a character.
971 (mark_charset): Mark `cs->encoding_table'; don't mark
972 `cs->decoding_table'.
973 (charset_description): Add description of new member
975 (make_charset): Initialize `encoding_table'.
977 * char-ucs.h (struct Lisp_Charset): Add new member
979 (CHARSET_ENCODING_TABLE): New macro.
980 (XCHARSET_ENCODING_TABLE): New macro.
981 (charset_code_point): New implementation.
982 (encode_char_1): Likewise.
984 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
985 (disksave_object_finalization_1): Call finalizers of
986 `all_older_lcrecords' in UTF-2000.
987 (make_older_vector): New function in UTF-2000.
988 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
991 * lisp.h (make_older_vector): New prototype in UTF-2000.
993 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
995 * lrecord.h (enum lrecord_type): Rename
996 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
998 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
999 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1000 `get_char_code_table'.
1002 * mule-charset.c (mark_char_id_table): Renamed from
1003 `mark_char_code_table'.
1004 (char_id_table_equal): Renamed from `char_code_table_equal'.
1005 (char_id_table_hash): Renamed from `char_code_table_hash'.
1006 (make_char_id_table): Renamed from `make_char_code_table'.
1007 (copy_char_id_table): Renamed from `copy_char_code_table'.
1008 (get_char_id_table): Renamed from `get_char_code_table'.
1009 (put_char_id_table): Renamed from `put_char_code_table'.
1010 (to_char_id): Renamed from `to_char_code'.
1012 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1013 `Lisp_Char_Code_Table'.
1014 (char_id_table): Renamed from `char_code_table'.
1015 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1016 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1017 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1018 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1019 (get_char_id_table): Renamed from `get_char_code_table'.
1021 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1023 * lrecord.h (enum lrecord_type): Rename
1024 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1026 * mule-charset.c (mark_byte_table): Renamed from
1027 `mark_char_byte_table'.
1028 (byte_table_equal): Renamed from `char_byte_table_equal'.
1029 (byte_table_hash): Renamed from `byte_table_hash'.
1030 (make_byte_table): Renamed from `make_byte_table'.
1031 (copy_byte_table): Renamed from `copy_char_byte_table'.
1033 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1034 `Lisp_Char_Byte_Table'.
1035 (byte_table): Renamed from `char_byte_table'.
1036 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1037 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1038 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1039 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1041 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1043 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1044 (dfc_convert_to_internal_format): Likewise.
1046 * text-coding.c (Fcoding_system_canonical_name_p): New function.
1047 * text-coding.c (Fcoding_system_alias_p): New function.
1048 * text-coding.c (Fcoding_system_aliasee): New function.
1049 * text-coding.c (append_suffix_to_symbol): New function.
1050 * text-coding.c (dangling_coding_system_alias_p): New function.
1051 * text-coding.c (Ffind_coding_system):
1052 * text-coding.c (Fcopy_coding_system):
1053 * text-coding.c (encode_coding_no_conversion):
1054 * text-coding.c (syms_of_file_coding):
1055 * text-coding.c (vars_of_file_coding):
1056 Rewrite coding system alias code.
1057 Allow nested aliases, like symbolic links.
1058 Allow redefinition of coding system aliases.
1059 Prevent existence of dangling coding system aliases.
1060 Eliminate convert_to_external_format.
1061 Eliminate convert_to_internal_format.
1063 * text-coding.c: Change enum eol_type to eol_type_t.
1065 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1067 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1068 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1070 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1071 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1073 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1075 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1076 `ideograph-daikanwa'.
1078 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1079 (Vcharset_ucs_bmp): Likewise.
1080 (Vcharset_mojikyo): Add new extern variable definition.
1081 (Vcharset_latin_iso8859_2): Deleted because it is not used.
1082 (Vcharset_latin_iso8859_3): Likewise.
1083 (Vcharset_latin_iso8859_4): Likewise.
1084 (Vcharset_latin_iso8859_9): Likewise.
1085 (Vcharset_latin_viscii_lower): Likewise.
1086 (Vcharset_latin_viscii_upper): Likewise.
1087 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1088 `mojikyo' code-point is used to decode.
1089 (encode_char_2): New function [to convert `mojikyo' code-point to
1090 Mojikyo font encoding].
1091 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1092 (breakup_char_1): Likewise.
1093 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1095 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097 * text-coding.c (Fmake_coding_system): Add document about
1098 `disable-composition' property.
1100 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102 * text-coding.c (Qdisable_composition): New variable; delete
1104 (Fmake_coding_system): Add new property `disable-composite';
1105 delete property `composite'.
1106 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1107 instead of `!CODING_SYSTEM_COMPOSITE'.
1108 (syms_of_file_coding): Add new symbol `disable-composition';
1109 delete symbol `composite'.
1111 * file-coding.h (struct Lisp_Coding_System): Add
1112 `disable_composition'; delete `enable_composition'.
1113 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1114 `CODING_SYSTEM_COMPOSITE'.
1115 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1116 `XCODING_SYSTEM_COMPOSITE'.
1118 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1120 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1123 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1125 * text-coding.c (Qcomposite): New variable.
1126 (Fmake_coding_system): Add new property `composite'.
1127 (struct decoding_stream): Add `combined_char_count',
1128 `combined_chars' and `combining_table' in UTF-2000.
1129 (COMPOSE_FLUSH_CHARS): New macro.
1130 (COMPOSE_ADD_CHAR): New macro.
1131 (reset_decoding_stream): Reset `str->combined_char_count' and
1132 `str->combining_table' in UTF-2000.
1133 (decode_coding_iso2022): Modify for character-decomposition.
1134 (syms_of_file_coding): Add new symbol `composite'.
1136 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1139 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1140 of `Vcharacter_composition_table' if `->decomposition' property
1142 (Qlatin_tcvn5712): New variable.
1143 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1144 (complex_vars_of_mule_charset): Add new coded-charset
1147 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1149 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151 * file-coding.h (struct Lisp_Coding_System): Add
1152 `enable_composition'.
1153 (CODING_SYSTEM_COMPOSITE): New macro.
1154 (XCODING_SYSTEM_COMPOSITE): New macro.
1156 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
1158 * mule-canna.c (c2mu): Fix problem with UTF-2000.
1160 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
1162 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1163 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1165 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
1167 * mule-charset.c (Vcharset_mojikyo): New variable.
1168 (Fdefine_char): Don't use coded-charset which does not have
1169 non-builtin character range to allocate character-id.
1170 (Qmojikyo): New variable.
1171 (syms_of_mule_charset): Add new symbol `mojikyo'.
1172 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1174 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1175 (LEADING_BYTE_MOJIKYO): New macro.
1176 (MIN_CHAR_MOJIKYO): New macro.
1177 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1178 (MAX_CHAR_MOJIKYO): New macro.
1180 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
1182 * mule-charset.c (remove_char_attribute): Fixed.
1184 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
1186 * mule-charset.c (remove_char_attribute): New function.
1187 (Fremove_char_attribute): New function.
1188 (encode_builtin_char_1): Comment out builtin-support for
1189 greek-iso8859-7 and cyrillic-iso8859-5.
1190 (Fdecode_char): Check `code' is an integer.
1191 (syms_of_mule_charset): Add `remove-char-attribute'.
1192 (MIN_CHAR_GREEK): Deleted.
1193 (MAX_CHAR_GREEK): Likewise.
1194 (MIN_CHAR_CYRILLIC): Likewise.
1195 (MAX_CHAR_CYRILLIC): Likewise.
1196 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1197 MAX_CHAR_GREEK for `greek-iso8859-7'.
1199 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1200 (MAX_CHAR_GREEK): Likewise.
1201 (MIN_CHAR_CYRILLIC): Likewise.
1202 (MAX_CHAR_CYRILLIC): Likewise.
1204 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
1206 * mule-charset.c (Fdefine_char): Fix problem when new code-point
1207 format is used without `ucs' property.
1208 (Fdecode_char): Fix problem with GR representation.
1209 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1210 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1212 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1214 * mule-charset.c (make_builtin_char): New function.
1215 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1216 (Fset_charset_mapping_table): Modify for new representation of
1218 (Fdecode_char): New function.
1219 (syms_of_mule_charset): Add new builtin function `decode-char' in
1222 * char-ucs.h (make_builtin_char): New prototype.
1223 (DECODE_CHAR): New inline function.
1224 (MAKE_CHAR): Use `DECODE_CHAR'.
1226 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
1228 * text-coding.c (parse_charset_conversion_specs): Use
1229 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1231 (iso2022_designate): Likewise.
1233 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1234 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1236 * mule-charset.c (Vcharset_ucs): New variable.
1237 (print_charset): Change design; use `CHARSET_CHARS' and
1238 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1239 (make_charset): Change signature to specify `chars' and
1240 `dimension' instead of `type'.
1241 (range_charset_code_point): Modify for 256^n-set.
1242 (encode_builtin_char_1): Encode as `ucs' in default.
1243 (Fmake_charset): Modify for `make_charset'.
1244 (Fmake_reverse_direction_charset): Likewise.
1245 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1247 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1250 * char-ucs.h (Vcharset_ucs): New variable.
1251 (LEADING_BYTE_UCS): New macro.
1252 (struct Lisp_Charset): Delete `type'; change type of `dimension'
1253 and `chars' to `unsigned short' from `unsigned int'.
1254 (CHARSET_TYPE): Deleted.
1255 (XCHARSET_TYPE): Deleted.
1257 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
1259 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1261 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1262 (ENCODE_CHAR): New macro.
1264 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1266 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1267 to 0.14 (Kawachi-Katakami).
1269 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1271 * text-coding.c (char_encode_shift_jis): Modify for
1272 `charset_code_point'.
1273 (char_encode_iso2022): Likewise.
1275 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1276 (integer) instead of list of <Lisp_Object>s (integers) as the
1277 format of code-point of a coded-charset.
1278 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1279 (encode_builtin_char_1): New function; delete
1280 `split_builtin_char'.
1281 (charset_code_point): Return <int> instead of <Lisp_Object>.
1282 (Fsplit_char): Don't use `SPLIT_CHAR'.
1284 * char-ucs.h (encode_builtin_char_1): New prototype; delete
1285 prototype for `split_builtin_char'.
1286 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1287 (charset_code_point): Likewise.
1288 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1289 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1291 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
1293 * mule-charset.c (complex_vars_of_mule_charset): Don't define
1294 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1296 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1298 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1300 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1301 (MAX_CHAR_OBS_94x94): Deleted.
1303 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1305 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1307 * char-ucs.h (MAX_CHAR_BMP): New macro.
1309 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1311 * text-coding.c: Sync with r21-2-24.
1313 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
1315 * file-coding.c: Modify for UTF-2000.
1317 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1319 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1322 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
1324 * mule-charset.c (split_builtin_char): Delete builtin support for
1325 `katakana-jisx0201'.
1326 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1327 BMP area in builtin representation.
1329 * char-ucs.h (MAKE_CHAR): Delete builtin support for
1330 `Vcharset_katakana_jisx0201'.
1332 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
1334 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1335 (Qisolated): New variable.
1336 (Qinitial): New variable.
1337 (Qmedial): New variable.
1338 (Qfinal): New variable.
1339 (Qvertical): New variable.
1340 (Qsmall): New variable.
1341 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1342 `Qvertical' and `Qsmall'.
1343 (Qmojikyo_pj_[1 .. 21]): New variable.
1344 (syms_of_mule_charset): Add new symbols `isolated', `initial',
1345 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1346 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1349 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
1351 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1352 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1353 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1355 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1357 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1358 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1360 (Qjapanese_jisx0208_1990): New variable.
1361 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1362 (complex_vars_of_mule_charset): Add new coded-charset
1363 `japanese-jisx0208-1990'.
1365 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1366 (MIN_CHAR_JIS_X0208_1990): New macro.
1367 (MAX_CHAR_JIS_X0208_1990): New macro.
1369 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
1371 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1372 coded-charset is not found.
1374 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
1376 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1377 (Fdefine_char): Use `Fmake_char'.
1379 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1381 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1382 (Vcharset_hiragana_jisx0208): Deleted.
1383 (Vcharset_katakana_jisx0208): Deleted.
1384 (Qideograph_daikanwa): New variable.
1385 (Qhiragana_jisx0208): Deleted.
1386 (Qkatakana_jisx0208): Deleted.
1387 (split_builtin_char): Split `ideograph-daikanwa'.
1388 (Fsplit_char): New implementation for UTF-2000.
1389 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1390 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1391 (complex_vars_of_mule_charset): Add new coded-charset
1392 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1393 `katakana-jisx0208'.
1395 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1396 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1397 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1398 (MIN_CHAR_DAIKANWA): New macro.
1399 (MAX_CHAR_DAIKANWA): New macro.
1401 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1403 * data.c (Fstring_to_number): Don't recognize floating point if
1406 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1408 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1410 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1412 * mule-charset.c (Qsquare): New variable.
1413 (to_char_code): Add `Qsquare'.
1414 (syms_of_mule_charset): Add new symbol `square'.
1416 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1418 * mule-charset.c (Qcircle): New variable.
1419 (to_char_code): Add `Qcircle'.
1420 (syms_of_mule_charset): Add new symbol `circle'.
1422 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1424 * mule-charset.c (Qfont): New variable.
1425 (to_char_code): Add `Qfont'.
1426 (syms_of_mule_charset): Add new symbol `font'.
1428 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1430 * mule-charset.c (Qsub): New variable.
1431 (to_char_code): Add `Qsub'.
1432 (syms_of_mule_charset): Add new symbol `sub'.
1434 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1436 * mule-charset.c (Fput_char_attribute): Convert each element of
1437 VALUE to GL position if ATTRIBUTE is a GR-set,
1439 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1441 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1442 coded-charset is a GR-set.
1444 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1446 * mule-charset.c (Fput_char_attribute): Check each element of
1447 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1449 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1451 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1453 (Qethiopic_ucs): New variable in UTF-2000.
1454 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1455 (complex_vars_of_mule_charset): Add new coded-charset
1456 `ethiopic-ucs' in UTF-2000.
1458 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1459 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1461 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1463 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1465 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
1467 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1470 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1472 * mule-charset.c (Vcharacter_variant_table): New variable.
1473 (Q_ucs): New variable.
1474 (Fchar_variants): New function.
1475 (Fput_char_attribute): Register `->ucs' value to
1476 `Vcharacter_variant_table'.
1477 (syms_of_mule_charset): Add new function `char-variants' and new
1479 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1481 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1483 * mule-charset.c (get_char_code_table): Allow negative character
1485 (put_char_code_table): Likewise.
1486 (Vcharacter_composition_table): New variable.
1487 (Q_decomposition): New variable.
1488 (Qwide): New variable.
1489 (Qnarrow): New variable.
1490 (Qcompat): New variable.
1491 (QnoBreak): New variable.
1492 (Qsuper): New variable.
1493 (Qfraction): New variable.
1494 (to_char_code): New function.
1495 (Fget_composite_char): New function.
1496 (Fput_char_attribute): Register `->decomposition' value to
1497 `Vcharacter_composition_table'.
1498 (syms_of_mule_charset): Add new function `get-composite-char', new
1499 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1500 `super' and `fraction'.
1501 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1503 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1505 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1506 character; copy the return value.
1508 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1510 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1512 * mule-charset.c (range_charset_code_point): Must use make_int.
1513 (split_builtin_char): New function.
1515 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1517 * mule-charset.c (char_byte_table): Change name from
1518 "char-code-table" to "char-byte-table".
1519 (mark_char_code_table): New function.
1520 (char_code_table_equal): New function.
1521 (char_code_table_hash): New function.
1522 (char_code_table_description): New constant.
1523 (char_code_table): New type.
1524 (make_char_code_table): New function.
1525 (copy_char_code_table): New function.
1526 (get_char_code_table): Modify for `char_code_table' type.
1527 (put_char_code_table): Likewise.
1528 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1531 * char-ucs.h (char_code_table): New type.
1532 (XCHAR_CODE_TABLE): New macro.
1533 (XSETCHAR_CODE_TABLE): New macro.
1534 (CHAR_CODE_TABLE_P): New macro.
1535 (GC_CHAR_CODE_TABLE_P): New macro.
1536 (struct Lisp_Char_Code_Table): New structure.
1538 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1540 * mule-charset.c (Fmake_charset): Setup byte_offset for
1543 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
1545 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
1548 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1550 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
1553 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1555 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
1556 charset, it is regarded as a charset.
1557 (put_char_attribute): New function in UTF-2000.
1558 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
1559 charset, mapping-table of the charset is modified.
1560 (Fdefine_char): New function in UTF-2000.
1561 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
1562 `Fput_char_attribute'.
1563 (syms_of_mule_charset): Add new function `define-char' and new
1564 symbol `ucs' in UTF-2000.
1565 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
1567 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1569 * mule-charset.c (Fcharset_name): Define `byte_offset' in
1570 non-UTF-2000 configuration.
1572 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1574 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
1575 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
1577 * mule-charset.c (mark_charset): `cs->encoding_table' has been
1579 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
1580 (Fset_charset_mapping_table): Likewise.
1582 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
1583 (CHARSET_ENCODING_TABLE): Delete.
1584 (XCHARSET_ENCODING_TABLE): Delete.
1585 (charset_code_point): New interface.
1587 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1589 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
1590 instead of `charset_get_byte1' and `charset_get_byte2'.
1592 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
1593 (charset_get_byte2): Deleted.
1595 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1597 * char-ucs.h (SPLIT_CHAR): New inline function.
1598 (breakup_char_1): Use `SPLIT_CHAR'.
1600 * mule-charset.c (range_charset_code_point): New function.
1601 (charset_code_point): New function.
1603 * char-ucs.h (range_charset_code_point): New interface.
1604 (breakup_char_1): Use `range_charset_code_point'.
1606 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1608 * mule-charset.c (Fmake_charset): Delete unused local variable
1611 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
1612 (breakup_char_1): Find a charset and code-point in
1613 `Vcharacter_attribute_table'.
1615 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1617 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1620 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
1622 * mule-charset.c (Vcharacter_attribute_table): New variable.
1623 (Fchar_attribute_alist): New function.
1624 (Fget_char_attribute): New function.
1625 (Fput_char_attribute): New function.
1626 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
1628 (syms_of_mule_charset): Add new function `char-attribute-alist',
1629 `get-char-attribute' and `put-char-attribute'.
1630 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
1632 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
1634 * mule-charset.c (Fmake_charset): Just use
1635 `get_unallocated_leading_byte'.
1637 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
1638 sets; don't use final-byte based number for private sets.
1640 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1642 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
1645 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1647 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1650 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1652 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
1653 of `CHAR_LEADING_BYTE' in UTF-2000.
1655 * insdel.c (find_charsets_in_bufbyte_string): Use
1656 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1657 (find_charsets_in_emchar_string): Likewise.
1659 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
1660 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1662 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
1663 (CHAR_CHARSET_ID): New macro.
1665 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1667 * chartab.c (get_char_table): Don't use type `Charset_ID' for
1668 charset-id - MIN_LEADING_BYTE.
1669 (put_char_table): Likewise.
1671 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1673 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
1674 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
1675 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
1676 (CHARSET_ID_OFFSET): New macro.
1677 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
1678 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
1679 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
1680 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1682 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1684 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
1685 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
1686 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
1687 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
1688 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
1690 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1692 * mule-charset.c (next_allocated_leading_byte): New variable in
1694 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
1695 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
1696 (get_unallocated_leading_byte): Simply use
1697 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
1698 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
1701 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
1702 (MAX_LEADING_BYTE_PRIVATE): New macro.
1703 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
1704 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
1706 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1708 * mule-charset.c (Fmake_charset): Allocate final-byte based
1709 charset-id for 94-set, 96-set and 94x94-set.
1711 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1713 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
1715 (Fmake_charset): Likewise.
1716 (complex_vars_of_mule_charset): Modify the font registry of
1717 `ucs-bmp' not to match `Ethiopic-Unicode'.
1719 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
1721 * mule-charset.c (complex_vars_of_mule_charset): Add font
1722 registory of `ucs-bmp'.
1724 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
1726 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
1727 coded-charsets in `default-coded-charset-priority-list' when
1728 breaking up a character.
1730 * mule-charset.c (Vcharset_latin_viscii): New variable.
1731 (Qlatin_viscii): New variable.
1732 (make_charset): Don't use `decoding_table'.
1733 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
1735 (Fset_charset_mapping_table): New implementation.
1736 (syms_of_mule_charset): Add new symbol `latin-viscii'.
1737 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
1738 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
1739 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
1740 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
1741 charset `latin_viscii'.
1743 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
1744 (CHARSET_TYPE_94X94): Change to 1 from 2.
1745 (CHARSET_TYPE_96): Change to 2 from 1.
1746 (CHARSET_TYPE_128): New macro.
1747 (CHARSET_TYPE_128X128): Change to 5 from 4.
1748 (CHARSET_TYPE_256): New macro.
1749 (CHARSET_TYPE_256X256): Change to 7 from 5.
1750 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
1752 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
1754 * text-coding.c (char_encode_shift_jis): Refer
1755 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
1756 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
1758 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
1759 (char_byte_table_equal): New function in UTF-2000.
1760 (char_byte_table_hash): New function in UTF-2000.
1761 (char_byte_table_description): New constant in UTF-2000.
1762 (char_byte_table): New type in UTF-2000.
1763 (make_char_byte_table): New function in UTF-2000.
1764 (copy_char_byte_table): New function in UTF-2000.
1765 (make_char_code_table): New macro in UTF-2000.
1766 (get_char_code_table): New function in UTF-2000.
1767 (put_char_code_table): New function in UTF-2000.
1768 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1769 (charset_description): Add setting in UTF-2000.
1770 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
1771 `CHARSET_TO_BYTE1_TABLE(cs)'.
1772 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
1773 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
1774 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
1775 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
1776 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
1777 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
1778 `CHARSET_TO_BYTE2_TABLE(cs)'.
1780 * char-ucs.h (char_byte_table): New type.
1781 (XCHAR_BYTE_TABLE): New macro.
1782 (XSETCHAR_BYTE_TABLE): New macro.
1783 (CHAR_BYTE_TABLE_P): New macro.
1784 (GC_CHAR_BYTE_TABLE_P): New macro.
1785 (struct Lisp_Char_Byte_Table): New structure.
1786 (get_char_code_table): New interface.
1787 (Emchar_to_byte_table): Deleted.
1788 (get_byte_from_character_table): Deleted.
1789 (struct Lisp_Charset): Add `encoding_table'; delete
1790 `to_byte1_table' and `to_byte2_table'.
1791 (CHARSET_ENCODING_TABLE): New macro.
1792 (CHARSET_TO_BYTE1_TABLE): Deleted.
1793 (CHARSET_TO_BYTE2_TABLE): Deleted.
1794 (XCHARSET_ENCODING_TABLE): New macro.
1795 (XCHARSET_TO_BYTE1_TABLE): Deleted.
1796 (XCHARSET_TO_BYTE2_TABLE): Deleted.
1798 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
1800 * mule-charset.c (syms_of_mule_charset): Delete charset alias
1801 `vietnamese-viscii-*'.
1803 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
1805 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
1806 (Qvietnamese_viscii_upper): New variable.
1807 (Fdefine_charset_alias): New function.
1808 (syms_of_mule_charset): Add new function `define-charset-alias'.
1809 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
1810 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
1813 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
1815 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
1816 (MAX_CHAR_OBS_94x94): New macro.
1817 (breakup_char_1): Support obsolete XEmacs-UCS private code space
1820 * mule-charset.c (put_byte_from_character_table): Change unit size
1822 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
1824 (Fmake_reverse_direction_charset): Modify dummy argument of
1825 `make_charset' for non-UTF-2000 environment.
1827 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
1829 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
1831 * mule-charset.c (destroy_byte_from_character_table): New macro.
1832 (latin_jisx0201_to_ucs): Deleted.
1833 (latin_iso8859_2_to_ucs): Deleted.
1834 (latin_iso8859_3_to_ucs): Deleted.
1835 (latin_iso8859_4_to_ucs): Deleted.
1836 (latin_iso8859_9_to_ucs): Deleted.
1837 (latin_viscii_lower_to_ucs): Deleted.
1838 (latin_viscii_upper_to_ucs): Deleted.
1839 (mark_charset): Mark `cs->decoding_table'.
1840 (Fcharset_mapping_table): Fix DOC-string.
1841 (Fset_charset_mapping_table): New function.
1842 (syms_of_mule_charset): Add nwe function
1843 `set-charset-mapping-table'.
1844 (complex_vars_of_mule_charset): Don't setup and use
1847 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
1849 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
1852 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
1854 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
1855 (Vcharset_katakana_jisx0208): New variable.
1856 (Qhiragana_jisx0208): New variable.
1857 (Qkatakana_jisx0208): New variable.
1858 (make_charset): Add new argument `byte_offset'.
1859 (charset_get_byte1): Modify for new coded-charset definition; use
1860 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1861 `XCHARSET_BYTE_OFFSET'.
1862 (Fmake_charset): Modify for `make_charset'.
1863 (Fmake_reverse_direction_charset): Likewise.
1864 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
1865 `katakana-jisx0208'.
1866 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
1867 `.' in font registry of charset `katakana-jisx0201',
1868 `latin-jisx0201', `vietnamese-viscii-lower' and
1869 `vietnamese-viscii-upper'; modify DOC-string of charset
1870 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
1871 registry of charset `japanese-jisx0208' not to use font for JIS
1872 X0208:1990; add new charset `hiragana-jisx0208' and
1873 `katakana-jisx0208'.
1875 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
1876 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
1877 (struct Lisp_Charset): Add `byte_offset'.
1878 (CHARSET_BYTE_OFFSET): New macro.
1879 (XCHARSET_UCS_MIN): New macro.
1880 (XCHARSET_UCS_MAX): New macro.
1881 (XCHARSET_CODE_OFFSET): New macro.
1882 (XCHARSET_BYTE_OFFSET): New macro.
1883 (MIN_CHAR_HIRAGANA): New macro.
1884 (MAX_CHAR_HIRAGANA): New macro.
1885 (MIN_CHAR_KATAKANA): New macro.
1886 (MAX_CHAR_KATAKANA): New macro.
1887 (MAKE_CHAR): Modify for new coded-charset definition; use
1888 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1889 `XCHARSET_BYTE_OFFSET'.
1891 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1893 * mule-charset.c (CHAR96): Deleted.
1894 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
1896 (latin_iso8859_2_to_ucs): Likewise.
1897 (latin_iso8859_3_to_ucs): Likewise.
1898 (latin_iso8859_4_to_ucs): Likewise.
1899 (latin_iso8859_9_to_ucs): Likewise.
1900 (latin_viscii_lower_to_ucs): Likewise.
1901 (latin_viscii_upper_to_ucs): Likewise.
1902 (latin_tcvn5712_to_ucs): Commented out.
1903 (make_charset): Change type of argument `decoding_table' from
1904 <Emchar*> to <Lisp_Object> [vector of characters].
1905 (Fmake_charset): Modify for `make_charset'.
1906 (Fmake_reverse_direction_charset): Likewise.
1907 (Fcharset_mapping_table): New function in UTF-2000.
1908 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
1910 (complex_vars_of_mule_charset): Modify for type change of
1911 `*_to_ucs'; modify for `make_charset'.
1913 * char-ucs.h (struct Lisp_Charset): Change type of
1914 `decoding_table' from <Emchar*> to <Lisp_Object>.
1915 (MAKE_CHAR): Modify for new specification of `decoding_table'.
1917 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
1919 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
1920 error with non-UTF-2000-Mule.
1922 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
1924 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
1926 (Vcharset_chinese_cns11643_4): Likewise.
1927 (Vcharset_chinese_cns11643_5): Likewise.
1928 (Vcharset_chinese_cns11643_6): Likewise.
1929 (Vcharset_chinese_cns11643_7): Likewise.
1930 (Qchinese_cns11643_3): Likewise.
1931 (Qchinese_cns11643_4): Likewise.
1932 (Qchinese_cns11643_5): Likewise.
1933 (Qchinese_cns11643_6): Likewise.
1934 (Qchinese_cns11643_7): Likewise.
1935 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
1936 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
1937 and `chinese-cns11643-7' to lisp/mule/chinese.el.
1938 (complex_vars_of_mule_charset): Likewise.
1940 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1942 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
1944 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
1945 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
1947 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
1949 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
1951 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
1952 (breakup_char_1): Likewise.
1954 * text-coding.c (char_encode_iso2022): Keep designated charsets if
1955 one of them includes the specified character.
1957 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1959 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
1961 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1963 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
1965 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1967 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
1968 definition for non-UTF-2000 Mule.
1969 (latin_iso8859_3_to_ucs): Likewise.
1970 (latin_iso8859_4_to_ucs): Likewise.
1971 (latin_iso8859_9_to_ucs): Likewise.
1972 (latin_jisx0201_to_ucs): Likewise.
1973 (MIN_CHAR_THAI): Likewise.
1974 (MAX_CHAR_THAI): Likewise.
1975 (MIN_CHAR_GREEK): Likewise.
1976 (MAX_CHAR_GREEK): Likewise.
1977 (MIN_CHAR_HEBREW): Likewise.
1978 (MAX_CHAR_HEBREW): Likewise.
1979 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
1980 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
1981 (MIN_CHAR_CYRILLIC): Likewise.
1982 (MAX_CHAR_CYRILLIC): Likewise.
1984 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1986 * char-ucs.h (breakup_char_1): Use
1987 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
1988 thai-tis620 and katakana-jisx0201 area.
1990 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1992 * char-ucs.h (breakup_char_1): Use
1993 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
1996 * text-coding.c (reset_encoding_stream): Fixed.
1997 (char_encode_ucs4): Delete `& 255'.
1999 * char-ucs.h (breakup_char_1): Use
2000 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2002 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2004 * file-coding.c (Fmake_coding_system): Don't set up
2005 `codesys->fixed.size'.
2006 (encode_coding_no_conversion): Don't refer
2007 `str->codesys->fixed.size'.
2009 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2011 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2012 (latin_a_char_to_byte1): Deleted.
2013 (latin_a_char_to_byte2): Deleted.
2015 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2017 * mule-charset.c (make_charset): Add new argument `ucs_min',
2018 `ucs_max' and `code_offset'.
2019 (charset_get_byte1): New implementation [delete specific charset
2020 depended implementations].
2021 (Fmake_charset): Modify for `make_charset'.
2022 (Fmake_reverse_direction_charset): Likewise.
2023 (complex_vars_of_mule_charset): Likewise.
2025 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2027 (CHARSET_UCS_MIN): New macro.
2028 (CHARSET_UCS_MAX): New macro.
2029 (CHARSET_CODE_OFFSET): New macro.
2030 (MAKE_CHAR): Delete charset depended definitions [except
2033 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2035 * char-ucs.h (breakup_char_1): Use
2036 `Vdefault_coded_charset_priority_list' for C0-Controls,
2037 Basic-Latin, C1-Controls and Latin-1-Supplement area.
2039 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2041 * char-ucs.h (charset_get_byte1): New function.
2042 (XCHARSET_GET_BYTE1): Deleted.
2043 (charset_get_byte2): New function.
2044 (XCHARSET_GET_BYTE2): Deleted.
2045 (Vdefault_coded_charset_priority_list): New external variable.
2046 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2047 `Vdefault_preferred_coded_charset_list'.
2049 * mule-charset.c (charset_get_byte1): New function.
2050 (charset_get_byte2): New function.
2051 (Vdefault_coded_charset_priority_list): New variable.
2052 (vars_of_mule_charset): Add new variable
2053 `default-coded-charset-priority-list'.
2055 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2057 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2058 (XCHARSET_GET_BYTE2): New inline function.
2059 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2060 `XCHARSET_GET_BYTE2'.
2062 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2064 * mule-charset.c (make_charset): Initialize
2065 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2066 NULL if table is not defined.
2068 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2070 * text-coding.c (char_encode_shift_jis): Use
2071 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2072 `ucs_to_latin_jisx0201'.
2074 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2075 (ucs_to_latin_iso8859_2): Deleted.
2076 (ucs_to_latin_iso8859_3): Deleted.
2077 (ucs_to_latin_iso8859_4): Deleted.
2078 (ucs_to_latin_iso8859_9): Deleted.
2079 (ucs_to_latin_viscii_lower): Deleted.
2080 (ucs_to_latin_viscii_upper): Deleted.
2081 (ucs_to_latin_tcvn5712): Deleted.
2082 (make_charset): Add new argument `decoding_table'; set up
2083 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2084 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2085 `decoding_table' is defined in UTF-2000.
2086 (Fmake_charset): Modify for `make_charset'.
2087 (Fmake_reverse_direction_charset): Likewise.
2088 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2089 and `GENERATE_96_SET'.
2091 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2092 (ucs_to_latin_jisx0201): Deleted.
2093 (latin_iso8859_2_to_ucs): Deleted.
2094 (ucs_to_latin_iso8859_2): Deleted.
2095 (latin_iso8859_3_to_ucs): Deleted.
2096 (ucs_to_latin_iso8859_3): Deleted.
2097 (latin_iso8859_4_to_ucs): Deleted.
2098 (ucs_to_latin_iso8859_4): Deleted.
2099 (latin_iso8859_9_to_ucs): Deleted.
2100 (ucs_to_latin_iso8859_9): Deleted.
2101 (latin_viscii_lower_to_ucs): Deleted.
2102 (ucs_to_latin_viscii_lower): Deleted.
2103 (latin_viscii_upper_to_ucs): Deleted.
2104 (ucs_to_latin_viscii_upper): Deleted.
2105 (struct Lisp_Charset): Renamed `encoding_table' to
2106 `to_byte1_table'; add `to_byte2_table'.
2107 (CHARSET_DECODING_TABLE): New macro.
2108 (CHARSET_TO_BYTE1_TABLE): New macro.
2109 (CHARSET_TO_BYTE2_TABLE): New macro.
2110 (XCHARSET_DECODING_TABLE): New macro.
2111 (XCHARSET_TO_BYTE1_TABLE): New macro.
2112 (XCHARSET_TO_BYTE2_TABLE): New macro.
2113 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2115 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2116 don't use `ucs_to_*' tables.
2118 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2120 * text-coding.c (Fmake_coding_system): Don't set up
2121 `codesys->fixed.size'.
2122 (encode_coding_no_conversion): Use `if' instead of `switch'.
2124 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2126 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2128 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2129 (Fmake_charset): Modify for `make_charset'.
2130 (Fmake_reverse_direction_charset): Likewise.
2131 (complex_vars_of_mule_charset): Likewise.
2133 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2135 * text-coding.c (char_encode_shift_jis): Use table
2136 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2138 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2140 * text-coding.c (text_encode_generic): Use `if' instead of
2142 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2145 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2147 * text-coding.c (encode_coding_sjis): Deleted.
2148 (char_encode_shift_jis): New function.
2149 (char_finish_shift_jis): New function.
2150 (reset_encoding_stream): Set up `encode_char' and `finish' for
2151 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2152 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2153 (char_encode_utf8): Treat `eol_type'.
2155 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2157 * file-coding.c (decode_coding_iso2022): Use
2158 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2160 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2162 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2165 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2167 * char-lb.h (CHAR_COLUMNS): New macro.
2169 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2171 * text-coding.c (char_encode_ucs4): New function.
2172 (char_finish_ucs4): New function.
2173 (encode_coding_ucs4): Deleted.
2174 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2175 (text_encode_generic): Delete local variable `charset' and `half'.
2176 (ucs_to_mule_table): Deleted.
2177 (mule_to_ucs_table): Deleted.
2178 (Fset_ucs_char): Deleted.
2179 (ucs_to_char): Deleted.
2180 (Fucs_char): Deleted.
2181 (Fset_char_ucs): Deleted.
2182 (Fchar_ucs): Deleted.
2183 (decode_ucs4): Deleted.
2184 (mule_char_to_ucs4): Deleted.
2185 (encode_ucs4): Deleted.
2186 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2187 (decode_coding_utf8): Likewise.
2188 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2189 (char_encode_iso2022): Fixed.
2190 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2191 `Fset_char_ucs' and `Fchar_ucs'.
2192 (complex_vars_of_file_coding): Don't initialize
2193 `ucs_to_mule_table'.
2195 * objects-tty.c (tty_initialize_font_instance): Don't use
2198 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2201 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2202 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2204 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2205 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2206 (emchar_string_displayed_columns): Likewise.
2208 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2209 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2210 (string_column_at_point): Likewise.
2211 (Fmove_to_column): Likewise.
2213 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2214 `encoding_table' and `decoding_table'.
2215 (CHARSET_REP_BYTES): Deleted.
2216 (XCHARSET_REP_BYTES): Deleted.
2217 (XCHARSET_COLUMNS): Deleted.
2218 (CHAR_COLUMNS): New macro.
2219 (lookup_composite_char): Deleted unconditionally.
2220 (composite_char_string): Likewise.
2222 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2224 * char-ucs.h (Emchar_to_byte_table): New type.
2225 (get_byte_from_character_table): New function interface.
2226 (Vcharset_latin_jisx0201): New variable.
2227 (latin_jisx0201_to_ucs): New variable.
2228 (ucs_to_latin_jisx0201): New variable.
2229 (Vcharset_latin_iso8859_2): New variable.
2230 (latin_iso8859_2_to_ucs): New variable.
2231 (ucs_to_latin_iso8859_2): New variable.
2232 (Vcharset_latin_iso8859_3): New variable.
2233 (latin_iso8859_3_to_ucs): New variable.
2234 (ucs_to_latin_iso8859_3): New variable.
2235 (Vcharset_latin_iso8859_4): New variable.
2236 (latin_iso8859_4_to_ucs): New variable.
2237 (ucs_to_latin_iso8859_4): New variable.
2238 (Vcharset_latin_iso8859_9): New variable.
2239 (latin_iso8859_9_to_ucs): New variable.
2240 (ucs_to_latin_iso8859_9): New variable.
2241 (Vcharset_latin_viscii_lower): New variable.
2242 (latin_viscii_lower_to_ucs): New variable.
2243 (ucs_to_latin_viscii_lower): New variable.
2244 (Vcharset_latin_viscii_upper): New variable.
2245 (latin_viscii_upper_to_ucs): New variable.
2246 (ucs_to_latin_viscii_upper): New variable.
2247 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2248 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2249 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2250 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2251 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2252 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2253 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2254 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2255 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2256 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2258 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2259 (Vcharset_latin_viscii_upper): New variable.
2260 (make_byte_from_character_table): New function.
2261 (put_byte_from_character_table): New function.
2262 (get_byte_from_character_table): New function.
2263 (CHAR96): New macro.
2264 (ucs_to_latin_jisx0201): New variable.
2265 (latin_jisx0201_to_ucs): New variable.
2266 (ucs_to_latin_iso8859_2): New variable.
2267 (latin_iso8859_2_to_ucs): New variable.
2268 (ucs_to_latin_iso8859_3): New variable.
2269 (latin_iso8859_3_to_ucs): New variable.
2270 (ucs_to_latin_iso8859_4): New variable.
2271 (latin_iso8859_4_to_ucs): New variable.
2272 (ucs_to_latin_iso8859_9): New variable.
2273 (latin_iso8859_9_to_ucs): New variable.
2274 (ucs_to_latin_viscii_lower): New variable.
2275 (latin_viscii_lower_to_ucs): New variable.
2276 (ucs_to_latin_viscii_upper): New variable.
2277 (latin_viscii_upper_to_ucs): New variable.
2278 (ucs_to_latin_tcvn5712): New variable.
2279 (latin_tcvn5712_to_ucs): New variable.
2280 (Qlatin_viscii_lower): New variable.
2281 (Qlatin_viscii_upper): New variable.
2282 (syms_of_mule_charset): Set up new symbol
2283 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2284 (complex_vars_of_mule_charset): Set up new charset
2285 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2286 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2287 `ucs_to_<CHARSET>' tables.
2289 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2291 * text-coding.c: New file.
2293 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2295 * mule-charset.c (Fmake_char): Fix problem of 256-set.
2297 * char-ucs.h (Vcharset_ucs_bmp): New variable.
2298 (MAKE_CHAR): Modify for `ucs-bmp'.
2299 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2300 non-MULE characters of BMP.
2302 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
2304 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2307 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
2310 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2311 - Include character.h for `CHAR_ASCII_P'.
2313 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2315 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2316 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2318 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2319 (BYTE_C0_P): Likewise.
2320 (BYTE_C1_P): Likewise.
2321 (Lstream_get_emchar_1): Likewise.
2322 (Lstream_fput_emchar): Likewise.
2323 (Lstream_funget_emchar): Likewise.
2324 (copy_internal_to_external): Likewise.
2325 (copy_external_to_internal): Likewise.
2327 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2328 (BYTE_C0_P): Likewise.
2329 (BYTE_C1_P): Likewise.
2330 (Lstream_get_emchar_1): Likewise.
2331 (Lstream_fput_emchar): Likewise.
2332 (Lstream_funget_emchar): Likewise.
2333 (copy_internal_to_external): Likewise.
2334 (copy_external_to_internal): Likewise.
2336 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2337 (REP_BYTES_BY_FIRST_BYTE): Likewise.
2339 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2340 (BYTE_ASCII_P): Moved to mb-1byte.h.
2342 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
2344 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2346 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2347 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2348 (VALID_CHARPTR_P): Moved to mb-*byte.h.
2349 (VALIDATE_CHARPTR_BACKWARD): Likewise.
2350 (VALIDATE_CHARPTR_FORWARD): Likewise.
2351 (simple_charptr_emchar): Moved to mb-multibyte.h.
2352 (simple_set_charptr_emchar): Likewise.
2353 (simple_charptr_copy_char): Likewise.
2354 (non_ascii_charptr_emchar): Likewise.
2355 (non_ascii_set_charptr_emchar): Likewise.
2356 (non_ascii_charptr_copy_char): Likewise.
2357 (charptr_emchar): Moved to mb-*byte.h.
2358 (set_charptr_emchar): Likewise.
2359 (charptr_copy_char): Likewise.
2361 * mb-1byte.h, mb-multibyte.h: New files.
2363 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2365 * mb-utf-8.h (MULTIBYTE): New macro.
2366 (MAX_EMCHAR_LEN): Moved from buffer.h.
2367 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2369 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2371 * mb-lb.h, multibyte.h: New files.
2373 * char-1byte.h (Charset_ID): Moved from buffer.h.
2374 (MIN_LEADING_BYTE): Likewise.
2375 (LEADING_BYTE_ASCII): Likewise.
2376 (NUM_LEADING_BYTES): Likewise.
2377 (CHARSETP): Likewise.
2378 (CHARSET_BY_LEADING_BYTE): Likewise.
2379 (XCHARSET_LEADING_BYTE): Likewise.
2380 (XCHARSET_GRAPHIC): Likewise.
2381 (XCHARSET_COLUMNS): Likewise.
2382 (XCHARSET_DIMENSION): Likewise.
2383 (CHAR_CHARSET): Likewise.
2384 (CHAR_LEADING_BYTE): Likewise.
2385 (BREAKUP_CHAR): Likewise.
2386 (Vcharset_ascii): Likewise.
2388 * buffer.h: Include multibyte.h unconditionally.
2389 (VALID_CHARPTR_P): Moved to multibyte.h.
2390 (ASSERT_VALID_CHARPTR): Likewise.
2391 (REAL_INC_CHARPTR): Likewise.
2392 (REAL_INC_CHARBYTIND): Likewise.
2393 (REAL_DEC_CHARPTR): Likewise.
2394 (INC_CHARPTR): Likewise.
2395 (INC_CHARBYTIND): Likewise.
2396 (DEC_CHARPTR): Likewise.
2397 (VALIDATE_CHARPTR_BACKWARD): Likewise.
2398 (VALIDATE_CHARPTR_FORWARD): Likewise.
2399 (charptr_n_addr): Likewise.
2400 (MAX_EMCHAR_LEN): Moved to mb-*.h.
2401 (simple_charptr_emchar): Moved to multibyte.h.
2402 (simple_set_charptr_emchar): Likewise.
2403 (simple_charptr_copy_char): Likewise.
2404 (non_ascii_charptr_emchar): Likewise.
2405 (non_ascii_set_charptr_emchar): Likewise.
2406 (non_ascii_charptr_copy_char): Likewise.
2407 (charptr_emchar): Likewise.
2408 (set_charptr_emchar): Likewise.
2409 (charptr_copy_char): Likewise.
2410 (charptr_emchar_n): Likewise.
2411 (Charset_ID): Moved to char-1byte.h.
2412 (Vcharset_ascii): Likewise.
2413 (CHAR_CHARSET): Likewise.
2414 (CHAR_LEADING_BYTE): Likewise.
2415 (LEADING_BYTE_ASCII): Likewise.
2416 (NUM_LEADING_BYTES): Likewise.
2417 (MIN_LEADING_BYTE): Likewise.
2418 (CHARSETP): Likewise.
2419 (CHARSET_BY_LEADING_BYTE): Likewise.
2420 (XCHARSET_LEADING_BYTE): Likewise.
2421 (XCHARSET_GRAPHIC): Likewise.
2422 (XCHARSET_COLUMNS): Likewise.
2423 (XCHARSET_DIMENSION): Likewise.
2424 (BREAKUP_CHAR): Likewise.
2426 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2428 * character.h: Add document about interface for characters.
2430 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2431 (MAKE_CHAR): Delete comment about
2432 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2433 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2434 (BREAKUP_CHAR): Modify name of arguments.
2435 (CHAR_CHARSET): Modify name of argument.
2437 * buffer.h: Delete document about Emchar accessors.
2439 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2441 * character.h (CHAR_INTP): Moved from buffer.h
2442 (CHAR_OR_CHAR_INTP): Likewise.
2443 (XCHAR_OR_CHAR_INT): Likewise.
2444 (CHECK_CHAR_COERCE_INT): Likewise.
2446 * buffer.h (CHAR_INTP): Moved to character.h
2447 (CHAR_OR_CHAR_INTP): Likewise.
2448 (XCHAR_OR_CHAR_INT): Likewise.
2449 (CHECK_CHAR_COERCE_INT): Likewise.
2451 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2454 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2455 - Include char-1byte.h, char-lb.h or char-ucs.h.
2457 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2459 * buffer.h: Include character unconditionally.
2460 (valid_char_p): Moved to char-*.h.
2461 (non_ascii_valid_char_p): Moved to char-lb.h.
2463 * char-1byte.h, char-lb.h, char-ucs.h: New files.
2465 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2467 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2468 in UTF-2000 because it is not ported yet and not to use
2469 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2470 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2471 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2473 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2474 (CHAR_ASCII_P): Moved from character.h.
2476 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2477 (CHAR_ASCII_P): Likewise.
2478 (CHAR_FIELD1_MASK): Deleted.
2479 (CHAR_FIELD2_MASK): Deleted.
2480 (CHAR_FIELD3_MASK): Deleted.
2481 (MAX_CHAR_BASIC_LATIN): New macro.
2482 (CHAR_FIELD1): Deleted.
2483 (CHAR_FIELD2_INTERNAL): Deleted.
2484 (CHAR_FIELD3_INTERNAL): Deleted.
2485 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2486 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2487 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2488 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2489 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2490 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2491 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2492 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2493 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2494 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2495 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2496 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2497 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2498 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2499 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2500 (MIN_CHAR_COMPOSITION): Deleted.
2501 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2502 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2504 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
2506 * buffer.h: Include mb-utf-8.h in UTF-2000.
2508 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2510 * mb-utf-8.h: New file.
2512 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
2514 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2517 * mule-charset.h, buffer.h (Charset_ID): New type.
2519 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
2521 * mule-canna.c (c2mu): Use `MAKE_CHAR',
2522 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2523 instead of `MULE_CHAR_PRIVATE_OFFSET',
2524 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2525 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2526 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2528 * character.h (Vcharset_japanese_jisx0212): New variable
2531 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
2533 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2534 (charset_by_attributes): Delete array about direction.
2535 (latin_a_char_to_charset): New variable in UTF-2000.
2536 (latin_a_char_to_byte1): New variable in UTF-2000.
2537 (latin_a_char_to_byte2): New variable in UTF-2000.
2538 (Qucs_bmp): New variable.
2539 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
2541 (next_allocated_2_byte_leading_byte): Likewise.
2542 (non_ascii_set_charptr_emchar): Likewise.
2543 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
2544 `CHARSET_TYPE_256X256' in UTF-2000; modify for
2545 `charset_by_attributes'.
2546 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
2547 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
2548 and `CHARSET_BY_LEADING_BYTE'.
2549 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
2550 `utf-2000-version' to `vars_of_mule_charset'.
2551 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
2552 define `leading-code-private-11' in UTF-2000; move setting of
2553 `utf-2000-version' from `syms_of_mule_charset'.
2554 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
2557 * character.h (Charset_ID): New type.
2558 (LEADING_BYTE_UCS_BMP): New macro.
2559 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
2560 (CHARSET_ID_OFFSET_94): New macro.
2561 (MIN_CHARSET_ID_PRIVATE_94): New macro.
2562 (MAX_CHARSET_ID_PRIVATE_94): New macro.
2563 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
2565 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
2566 (LEADING_BYTE_LATIN_JISX0201): Likewise.
2567 (CHARSET_ID_OFFSET_96): New macro.
2568 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
2569 CHARSET_ID_OFFSET_96 and final-byte.
2570 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
2571 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
2572 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
2573 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
2574 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
2575 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
2576 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
2577 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
2578 (LEADING_BYTE_THAI_TIS620): Likewise.
2579 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
2580 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
2581 (CHARSET_ID_OFFSET_94x94): New macro.
2582 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
2583 CHARSET_ID_OFFSET_94x94 and final-byte.
2584 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
2585 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
2586 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
2587 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
2588 (LEADING_BYTE_CHINESE_GB2312): Likewise.
2589 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
2590 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
2591 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
2592 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
2593 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
2594 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
2595 (CHARSET_TYPE_128X128): New macro.
2596 (CHARSET_TYPE_256X256): New macro.
2597 (XCHARSET_PRIVATE_P): Delete unconditionally.
2598 (charset_by_attributes): Delete array about direction.
2599 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
2600 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
2601 (MIN_CHAR_94): New macro.
2602 (MAX_CHAR_94): New macro.
2603 (MIN_CHAR_96): New macro.
2604 (MAX_CHAR_96): New macro.
2605 (MIN_CHAR_94x94): New macro.
2606 (MAX_CHAR_94x94): New macro.
2607 (MIN_CHAR_96x96): New macro.
2608 (MAX_CHAR_96x96): New macro.
2609 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
2610 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2611 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
2613 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
2614 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
2615 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
2616 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
2617 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
2618 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
2619 `XCHARSET_LEADING_BYTE' to make code-point.
2620 (latin_a_char_to_charset): New variable.
2621 (latin_a_char_to_byte1): New variable.
2622 (latin_a_char_to_byte2): New variable.
2623 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
2624 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
2625 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
2627 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
2628 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
2629 (find_charsets_in_emchar_string): Likewise.
2630 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
2632 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
2634 (decode_coding_iso2022): Likewise.
2636 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
2639 * redisplay.c (redisplay_text_width_emchar_string): Use
2640 `Charset_ID' instead of `unsigned char'.
2641 (redisplay_frame_text_width_string): Likewise.
2643 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
2646 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
2647 instead of `unsigned char'.
2648 (face_cachel_charset_font_metric_info): Likewise.
2650 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
2651 (get_non_ascii_char_table_value): Likewise.
2652 (get_char_table): Likewise.
2653 (put_char_table): Likewise.
2654 (map_over_other_charset): Likewise.
2655 (map_char_table): Likewise.
2657 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
2658 instead of `unsigned char'.
2660 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
2662 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
2663 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
2665 * mule-charset.c (leading_code_private_11): Don't define in
2668 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
2669 in UTF-2000 because it is not ported yet and not to use
2670 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
2672 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
2674 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
2676 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2678 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
2681 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
2682 of unsigned char to store leading-byte.
2684 * chartab.c (get_non_ascii_char_table_value): Don't use
2685 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
2687 * file-coding.c (encode_coding_big5): Delete bogus implementation
2690 * character.h (LEADING_BYTE_*): Delete definition for
2692 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
2693 (LEADING_BYTE_PREFIX_P): Deleted.
2694 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
2695 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
2696 (BUFBYTE_LEADING_BYTE_P): Deleted.
2697 (CHARSET_PRIVATE_P): Deleted unconditionally.
2698 (rep_bytes_by_first_byte): Deleted unconditionally.
2699 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
2700 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
2701 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2702 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
2703 (CHAR_FIELD2): Deleted.
2704 (CHAR_FIELD3): Deleted.
2705 (MAKE_CHAR): Delete definition for non-UTF-2000.
2706 (BREAKUP_CHAR_1_UNSAFE): Deleted.
2707 (breakup_char_1): New implementation.
2708 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
2709 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
2711 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2713 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
2716 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2718 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
2719 (CHARSET_PRIVATE_P): Likewise.
2720 (XCHARSET_PRIVATE_P): Likewise.
2721 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
2723 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
2725 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
2727 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2729 * character.h (LEADING_BYTE_*): Changed in UTF2000.
2730 (NUM_LEADING_BYTES): Changed from 128 to 256.
2731 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
2732 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
2734 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
2736 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
2738 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
2739 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
2740 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
2741 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
2742 (Qchinese_cns11643_3): New variable in UTF2000.
2743 (Qchinese_cns11643_4): New variable in UTF2000.
2744 (Qchinese_cns11643_5): New variable in UTF2000.
2745 (Qchinese_cns11643_6): New variable in UTF2000.
2746 (Qchinese_cns11643_7): New variable in UTF2000.
2747 (syms_of_mule_charset): Define `chinese-cns11643-3',
2748 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2749 and `chinese-cns11643-7' in UTF2000.
2750 (vars_of_mule_charset): Initialize
2751 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
2753 (complex_vars_of_mule_charset): Setup charset
2754 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
2755 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
2757 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2759 * mule-charset.c: Move setting for `leading-code-private-11' from
2760 `syms_of_mule_charset' to `vars_of_mule_charset'.
2762 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2764 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
2765 and `NUM_LEADING_BYTES' in assert.
2767 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2769 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
2771 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
2772 `NUM_LEADING_BYTES' instead of 128.
2774 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2776 * mule-charset.h (charset_by_leading_byte): Use
2777 `NUM_LEADING_BYTES' instead of 128.
2778 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
2780 * mule-charset.c (charset_by_leading_byte): Use
2781 `NUM_LEADING_BYTES' instead of 128.
2782 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
2784 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
2787 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2789 * mule-charset.c (syms_of_mule_charset): Update to
2792 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
2794 * file-coding.c (encode_coding_sjis): New implementation for
2795 UTF2000. (decode_coding_sjis): Ditto.
2797 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2799 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
2800 Don't define in UTF2000.
2802 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
2805 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2806 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
2809 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2811 * config.h.in (CHAR_IS_UCS4): New macro.
2813 * mule-charset.c (rep_bytes_by_first_byte): Modify for
2814 conventional MULE representation.
2815 (syms_of_mule_charset): Update to 0.3 (Imamiya).
2817 * mule-charset.h: Reverted to original.
2819 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2820 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
2821 "mule-charset.h" if CHAR_IS_UCS4 is defined.
2823 * character.h: New file.
2825 * file-coding.c (Fmake_coding_system): Set 1 to
2826 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
2828 (encode_coding_no_conversion): New implementation for UTF2000.
2830 * file-coding.h (struct Lisp_Coding_System): Add new member
2833 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
2835 * file-coding.c (decode_coding_iso2022): Code-point arguments of
2836 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
2837 (encode_coding_iso2022): New implementation for UTF2000.
2839 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2841 * mule-canna.c (c2mu): New implementation for UTF2000.
2844 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2846 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
2848 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2850 * file-coding.c (reset_encoding_stream): Set 0 to
2851 `str->iso2022.current_char_boundary' in UTF2000.
2852 (encode_utf8): Don't define in UTF2000.
2853 (encode_coding_utf8): New implementation for UTF-8 representation
2855 (complex_vars_of_file_coding): Define coding-system `utf-8'.
2857 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2859 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
2861 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
2863 (REP_BYTES_BY_FIRST_BYTE): Likewise.
2865 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
2867 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
2868 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
2869 as UTF-8 in UTF2000.
2870 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
2871 (non_ascii_valid_char_p): Don't define in UTF2000.
2872 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
2873 (Lstream_get_emchar_1): Likewise.
2874 (utf-2000-version): New variable in UTF2000.
2876 * lread.c (read_escape): Add new reader `u'.
2878 * insdel.c (three_to_one_table): Don't define in UTF2000.
2879 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
2880 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2882 (bytind_to_bufpos_func): Likewise.
2883 (buffer_mule_signal_inserted_region): Likewise.
2884 (vars_of_insdel): Don't initialize `three_to_one_table'.
2885 (init_buffer_text): Use `buf->text->mule_size' instead of
2886 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2889 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
2890 UTF-8 representation in UTF2000.
2891 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
2892 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
2893 (decode_coding_iso2022): Don't define local variable `lb' in
2894 UTF2000; don't use LEADING_BYTE in UTF2000; use
2895 `DECODE_ADD_UCS_CHAR' in UTF2000.
2896 (convert_to_external_format): Decode as UTF-8 in UTF2000.
2898 * config.h.in (UTF2000): New macro.
2900 * buffer.h (struct buffer_text): Add new member `mule_size' and
2901 don't add `mule_shifter' and `mule_three_p' in UTF2000.
2902 (valid_char_p): Return always 1 in UTF2000.
2903 (MAX_EMCHAR_LEN): 6 in UTF2000.
2904 (three_to_one_table): Don't define in UTF2000.
2905 (real_bufpos_to_bytind): Modify for UTF-8 representation in
2907 (real_bytind_to_bufpos): Likewise.
2909 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
2911 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2913 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
2914 representation change.
2915 (Vutf_2000_version): New variable.
2916 (leading_code_private_11): New variable.
2917 (syms_of_mule_charset): Add new variables `utf-2000-version' and
2918 `leading-code-private-11'.
2920 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
2921 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
2922 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
2923 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
2924 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
2925 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
2926 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
2927 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
2928 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
2929 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
2930 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
2931 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
2932 (MIN_CHAR_GREEK): New macro.
2933 (MAX_CHAR_GREEK): New macro.
2934 (MIN_CHAR_CYRILLIC): New macro.
2935 (MAX_CHAR_CYRILLIC): New macro.
2936 (MIN_CHAR_HEBREW): New macro.
2937 (MAX_CHAR_HEBREW): New macro.
2938 (MIN_CHAR_THAI): New macro.
2939 (MAX_CHAR_THAI): New macro.
2940 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
2941 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
2942 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
2943 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
2944 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
2945 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
2946 (CHAR_FIELD2): New inline function.
2947 (CHAR_FIELD3): New inline function.
2948 (MULE_CHAR_PRIVATE_OFFSET): New macro.
2949 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
2950 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
2951 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
2952 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
2953 (MIN_CHAR_COMPOSITION): Likewise.
2954 (CHAR_LEADING_BYTE): Modified for character representation change.
2955 (MAKE_CHAR): Likewise.
2957 * lisp.h (Vcharset_latin_iso8859_1): New variable.
2958 (Vcharset_greek_iso8859_7): Likewise.
2959 (Vcharset_cyrillic_iso8859_5): Likewise.
2960 (Vcharset_hebrew_iso8859_8): Likewise.
2961 (Vcharset_thai_tis620): Likewise.
2962 (Vcharset_katakana_jisx0201): Likewise.
2964 2001-01-17 Martin Buchholz <martin@xemacs.org>
2966 * XEmacs 21.2.41 "Polyhymnia" is released.
2968 2001-01-16 Didier Verna <didier@xemacs.org>
2970 * glyphs.c (image_instantiate): don't use fallbacks when
2971 instantiating a face's background pixmap by inheritance.
2973 2001-01-14 Mike Sperber <mike@xemacs.org>
2975 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
2976 Conditionalize accordingly.
2978 2001-01-16 Martin Buchholz <martin@xemacs.org>
2980 * dumper.c (pdump_file_get): Fix a compiler warning.
2982 2001-01-15 Martin Buchholz <martin@xemacs.org>
2984 Make Purify happy when pdumping.
2985 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
2986 iniitalizing all bits of new lisp object memory.
2987 * symbols.c (Fmake_local_variable): Likewise.
2988 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
2989 * symbols.c (Fdefvaralias): Likewise.
2990 * mule-charset.c (vars_of_mule_charset): Likewise.
2992 2001-01-15 Martin Buchholz <martin@xemacs.org>
2993 Add the `-nd' flag when running pre-dump operations under the debugger.
2994 * .dbxrc (run-temacs): Add `-nd'.
2995 * .dbxrc (update-elc): Likewise.
2996 * .dbxrc (dump-temacs): Likewise.
2997 * .gdbinit (run-temacs): Likewise.
2998 * .gdbinit (check-temacs): Likewise.
2999 * .gdbinit (update-elc): Likewise.
3000 * .gdbinit (dump-temacs): Likewise.
3002 2001-01-14 Martin Buchholz <martin@xemacs.org>
3004 Allow building 64-bit executables on AIX with GNU malloc, e.g.
3005 export OBJECT_MODE=64
3006 configure --pdump --use-union-type=no
3007 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3008 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3010 * miscplay.c (sndcnv8U_2mono):
3011 Avoid two uses of `++' in the same expression.
3012 Suppresses a GCC warning.
3014 2001-01-13 Martin Buchholz <martin@xemacs.org>
3016 Make sure future compilers don't miscompile alloc.c.
3018 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3019 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3021 2001-01-12 Martin Buchholz <martin@xemacs.org>
3023 * dumper.c: A little post-pdump-rename comment fixup.
3025 2001-01-09 Jerry James <james@eecs.ku.edu>
3027 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3029 2001-01-13 Martin Buchholz <martin@xemacs.org>
3031 * *.[ch]: Globally rename symbols using the following `pdump-rename'
3035 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3038 replace_symbol pdump_wire_lists pdump_weak_object_chains
3039 replace_symbol pdump_wire_list dump_add_weak_object_chain
3041 replace_symbol pdump_wires pdump_root_objects
3042 replace_symbol pdump_wire dump_add_root_object
3044 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3045 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3047 replace_symbol dumpstructinfos pdump_root_struct_ptrs
3048 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3049 replace_symbol dumpstructinfo pdump_root_struct_ptr
3050 replace_symbol dumpstruct dump_add_root_struct_ptr
3052 replace_symbol dumpopaque dump_add_opaque
3053 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3054 replace_symbol dumpopaqueinfos pdump_opaques
3055 replace_symbol dumpopaqueinfo pdump_opaque
3057 replace_symbol nb_structdump nb_root_struct_ptrs
3058 replace_symbol nb_opaquedump nb_opaques
3060 replace_symbol align_table pdump_align_table
3061 replace_symbol dump_header pdump_header
3063 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3064 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3067 2001-01-12 Martin Buchholz <martin@xemacs.org>
3069 * s/aix4.h: Keep the C for AIX compiler from overaggressively
3070 optimizing bytecount_to_charcount().
3072 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
3075 (HAVE_DLFCN_H): Removed.
3076 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3078 2001-01-06 Martin Buchholz <martin@xemacs.org>
3080 Portable dumper maintainability improvements.
3081 * alloc.c (staticpro):
3082 * alloc.c (staticpro_nodump):
3083 * alloc.c (garbage_collect_1):
3084 * alloc.c (reinit_alloc_once_early):
3085 * alloc.c (init_alloc_once_early):
3086 * alloc.c: Move dumper functions to alloc.c.
3087 * dumper.c (pdump_backtrace):
3088 * dumper.c (pdump_dump_structs):
3089 * dumper.c (pdump_dump_opaques):
3090 * dumper.c (pdump_dump_rtables):
3091 * dumper.c (pdump_dump_wired):
3093 * dumper.c (pdump_load_check):
3094 * dumper.c (pdump_load_finish):
3095 * dumper.c (pdump_file_unmap):
3096 * dumper.c (pdump_file_get):
3097 * dumper.c (pdump_resource_free):
3098 * dumper.c (pdump_resource_get):
3099 * dumper.c (pdump_file_free):
3100 * dumper.c (pdump_file_try):
3101 * dumper.c (pdump_load):
3102 Remove fixed size limits on staticpro(), staticpro_nodump(),
3103 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3104 Remove custom code for dumping lrecord_implementations_table - use
3106 Remove (most of the) custom code for dumping staticpros - dump it
3107 like any other dynarr.
3109 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
3110 * dumper.c: Moved functions from alloc.c.
3111 * alloc.c (dumpstruct): Moved to dumper.c.
3112 * alloc.c (dumpopaque): Likewise.
3113 * alloc.c (pdump_wire): Likewise.
3114 * alloc.c (pdump_wire_list): Likewise.
3116 * lisp.h (Dynarr_sizeof): New.
3117 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
3118 * lisp.h (Dynarr_end): New. Very slightly C++oid.
3119 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
3121 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3122 * lisp.h (dumpopaque): ditto.
3123 * lisp.h (pdump_wire): ditto.
3124 * lisp.h (pdump_wire_list): ditto.
3126 2001-01-09 Martin Buchholz <martin@xemacs.org>
3128 * make-src-depend (PrintPatternDeps):
3129 Use `sort' to make output independent of perl version.
3131 2001-01-08 Martin Buchholz <martin@xemacs.org>
3134 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3135 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3137 2001-01-03 Didier Verna <didier@xemacs.org>
3139 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3140 that `focus_frame' is alive before thinking of calling
3141 `redisplay_redraw_cursor' on it.
3143 2001-01-08 Martin Buchholz <martin@xemacs.org>
3145 * XEmacs 21.2.40 is released.
3147 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
3149 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3151 2001-01-06 Martin Buchholz <martin@xemacs.org>
3153 * alloc.c (dbg_valmask): Make const.
3154 * alloc.c (dbg_typemask): Make const.
3155 * alloc.c (dbg_USE_UNION_TYPE): Make const.
3156 * alloc.c (dbg_valbits): Make const.
3157 * alloc.c (dbg_gctypebits): Make const.
3159 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
3161 * redisplay-x.c (x_bevel_area):
3162 redisplay.h (struct rune):
3163 Typo fixes in comments.
3165 2001-01-05 Andy Piper <andy@xemacs.org>
3167 * glyphs-x.c (x_redisplay_widget): use size changed for offset
3170 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3172 2001-01-05 Martin Buchholz <martin@xemacs.org>
3174 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3176 * mule-ccl.c (stack_idx_of_map_multiple):
3177 Non const global data must not be initialized!
3178 Found by MIYASHITA Hisashi.
3180 2001-01-02 Andy Piper <andy@xemacs.org>
3182 * frame.c (change_frame_size): make sure frame size is always
3185 * glyphs.c (image_instance_layout): minor code reuse.
3187 * window.c (Fcurrent_window_configuration): revert previous
3190 2001-01-02 Martin Buchholz <martin@xemacs.org>
3193 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3195 2000-12-31 Andy Piper <andy@xemacs.org>
3197 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3198 when widget gets unmapped.
3200 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3201 function. Make sure widgets losing focus don't just drop it.
3202 (handle_focus_event_1): record the widget with focus.
3204 2000-12-31 Andy Piper <andy@xemacs.org>
3206 * window.c (allocate_window): use
3207 make_image_instance_cache_hash_table.
3208 (make_dummy_parent): ditto.
3209 (Fset_window_configuration): ditto.
3211 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
3213 * glyphs.c (process_image_string_instantiator): use
3215 (get_image_instantiator_governing_domain): ditto.
3216 (normalize_image_instantiator): ditto.
3217 (instantiate_image_instantiator): ditto.
3218 (make_image_instance_1): ditto.
3219 (image_instantiate): ditto. Key on glyph *and* instantiator type.
3220 (instantiator_eq_equal): new function for use with instance hash
3222 (instantiator_eq_hash): ditto.
3223 (make_image_instance_cache_hash_table): create a suitable hash
3224 table for storing image instances.
3226 * elhash.h (hash_table_weakness): new internal weakness type
3227 HASH_TABLE_KEY_CAR_VALUE_WEAK.
3228 declare new functions.
3230 * elhash.c (finish_marking_weak_hash_tables): introduce yet
3231 another weakness type for glyphs.
3232 (make_standard_lisp_hash_table): new function split out from
3233 make_general_lisp_hash_table.
3234 (make_lisp_hash_table): call make_standard_lisp_hash_table.
3235 (hash_table_instantiate): ditto.
3236 (Fmake_hash_table): ditto.
3238 2000-12-31 Martin Buchholz <martin@xemacs.org>
3240 * XEmacs 21.2.39 is released.
3242 2000-12-29 Andy Piper <andy@xemacs.org>
3244 * menubar.c (menubar_visible_p_changed): signal the frame changed.
3246 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3247 the frame has changed so that we pick up geometry changes such as
3250 2000-12-28 Andy Piper <andy@xemacs.org>
3252 * lastfile.c (my_ebss): make a char array so we can pad the
3253 bss. Fixes cygwin unexec.
3255 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3257 2000-12-26 Andy Piper <andy@xemacs.org>
3259 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3260 comments and try and be more precise about a non-/SIGIO world.
3261 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3264 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3265 we don't normalize to zero width or height.
3267 2000-12-24 Andy Piper <andy@xemacs.org>
3269 * Makefile.in.in (ldflags): add -mwindows when appropriate.
3271 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
3273 * s/sco5.h: SCO 5 has pty support.
3275 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
3277 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3278 input-method-xlib.c contains whole contents of input-method-xfs.c,
3279 so we can use input-method-xlib.c's code for USE_XFONTSET
3281 * input-method-xfs.c: removed.
3283 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
3285 * file-coding.h (enum coding_category_type): reorder enumerators to
3286 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
3287 (now one greater than largest real coding_category_type enumerator).
3288 * file-coding.c (coding_category_symbol, coding_category_by_priority,
3289 coding_category_system, fcd_descriptihon_1, decode_coding_category,
3290 Fcoding_category_list, Fset_coding_priority_list,
3291 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3292 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3294 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
3296 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3297 * redisplay-output.c (redisplay_output_window): Clear top of window
3298 when face is changed.
3299 * redisplay-x.c (x_redraw_exposed_window): Call
3300 redisplay_clear_top_of_window.
3301 * redisplay.h: Publish redisplay_clear_top_of_window.
3303 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
3305 * buffer.c (Fkill_buffer): Map over all devices.
3306 * window.c (window_loop): Remove UNSHOW_BUFFER code.
3307 (list_windows): New function.
3308 (list_all_windows): Ditto.
3309 (Freplace_buffer_in_windows): Use them.
3311 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3313 * database.c (berkdb_subtype): Recognize new subtype `queue'.
3314 (Fopen_database): Use `db_create' instead of `db_open'.
3315 (syms_of_database): Initialize Qqueue.
3317 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
3319 * buffer.c (common_init_complex_vars_of_buffer): Initialize
3320 buffer_local_face_property.
3321 * buffer.h (struct buffer): New member buffer_local_face_property.
3322 * window.c (Fset_window_buffer): Mark window's face as changed
3323 when buffer has buffer local face.
3324 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3325 * objects.c (color_after_change): Set buffer_local_face_property
3326 when locale of face specifier is buffer.
3327 * objects.c (font_after_change): Ditto.
3328 * objects.c (face_boolean_after_change): Ditto.
3329 * glyphs.c (image_after_change): Ditto.
3331 2000-12-09 Dan Holmsand <dan@eyebee.com>
3333 * nt.c (mswindows_fstat): Report file permissions, volume serial
3334 number, etc. Code adapted from FSF Emacs 20.7.
3336 2000-12-09 Dan Holmsand <dan@eyebee.com>
3338 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3339 of stat when we don't have symbolic links, to make sure
3340 mswindows_stat is called on mswindows.
3342 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
3344 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3346 2000-12-12 Martin Buchholz <martin@xemacs.org>
3348 * doprnt.c (emacs_doprnt_1): More printing fixes.
3349 Make printing of numbers compatible with libc and FSF Emacs.
3350 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3351 Use the system printf to do most of the hard work of formatting,
3352 instead of doprnt_1().
3353 Calculate memory to allocate for format string.
3354 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3355 (doprnt_1): Cleaner code and documentation.
3357 2000-12-01 Jerry James <james@eecs.ukans.edu>
3359 * Makefile.in.in: Use the loop variable to install headers.
3361 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
3363 * window.c (Fsplit_window): Don't invalidate face cache.
3365 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
3367 * minibuf.c (Fall_completions): Undo the previous change
3368 which removed checking elements start with space.
3370 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
3372 * mule-canna.c: Didier suppression.
3374 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
3376 * mule-canna.c: rename static unsigned char buf[] to key_buffer
3377 (warning suppression). Add English comment translations.
3379 2000-12-05 Martin Buchholz <martin@xemacs.org>
3381 * unexelfsgi.c (unexec): Better test for mmap failure.
3383 2000-12-05 Martin Buchholz <martin@xemacs.org>
3385 * XEmacs 21.2.38 is released.
3387 2000-12-05 Martin Buchholz <martin@xemacs.org>
3389 * redisplay.c (bar-cursor): Make a user variable.
3391 * symsinit.h: Add init_postgresql_from_environment.
3393 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
3395 * regex.c: Convert to clean C.
3397 2000-12-05 Dan Holmsand <dan@eyebee.com>
3400 Don't #include sysfile.h. Revert to duplicating PATH_MAX
3402 (sys_readlink): renamed to system_readlink to avoid conflict with
3403 the other sys_readlink.
3405 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
3407 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3409 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
3411 * postgresql.c (init_postgresql_from_environment): new function.
3412 (vars_of_postgresql): Move code initializing Lisp variables out and
3413 into init_postgresql_from_environment.
3414 emacs.c (main_1): Call init_postgresql_from_environment if and only
3415 if running a dumped XEmacs.
3417 2000-08-31 Dan Holmsand <dan@eyebee.com>
3419 * buffer.c: Make find-file-compare-truenames default to true on
3422 * realpath.c (win32_abs_start):
3424 (win32_readlink): New functions.
3425 (xrealpath): Return really real filenames on windows.
3427 * fileio.c (Ffile_truename): Make file-truename work on windows.
3429 2000-11-29 Didier Verna <didier@xemacs.org>
3431 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3432 * faces.c (update_face_cachel_data): use it.
3433 * faces.c (add_face_cachel): use it. Complete background pixmap
3434 frobbing in face cache if `update_face_cachel_data' has not done so.
3436 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
3438 * search.c (string_match_1): Don't set last_thing_searched
3441 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
3443 * buffer.c: Include casetab.h
3444 (common_init_complex_vars_of_buffer): Use new case-table object.
3445 * buffer.h: Include casetab.h
3446 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3447 (DOWNCASE_TABLE_OF): Ditto.
3448 * bufslots.h: Remove char-tables and add case-table.
3449 * casetab.c: Include casetab.h
3450 (CASE_TABLE_P): Removed.
3451 (mark_case_table): New function.
3452 (allocate_case_table): New function.
3453 (Fcase_table_p): Use new case-table.
3454 (case_table_char): New function.
3455 (Fget_case_table): Ditto.
3456 (Fput_case_table): Ditto.
3457 (Fput_case_table_pair): Ditto.
3458 (Fcopy_case_table): Ditto.
3459 (Fcurrent_case_table): Return case-table.
3460 (Fstandard_case_table): Return case-table.
3461 (Fset_case_table): Fix doc-string.
3462 (set_case_table): Use case-table
3463 (syms_of_casetab): DEFSUBR new functions.
3464 (complex_vars_of_casetab): Set up standard case-table.
3465 * casetab.h: New file.
3466 * editfns.c: Include casetab.h
3467 (Fcompare_buffer_substrings): Use case-table.
3468 * inline.c: Include casetab.h
3469 * lisp.h: Remove bogus extern.
3470 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
3471 * search.c: Include casetab.h
3472 (TRANSLATE_ASCII): Removed.
3473 (TRANSLATE): Unconditionally translate character.
3474 (looking_at_1): Use case-table.
3475 (string_match_1): Ditto.
3476 (fast_string_match): Ditto.
3477 (search_command): Ditto.
3478 (search_buffer): Separate boyer_moore. Check whether
3479 boyer_moore is poosible.
3480 (simple_search): New function.
3481 (boyer_moore): Separated from search_buffer. Translate char.
3483 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
3485 * regex.c (RE_TR_ASCII): Removed.
3486 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
3487 (PATFETCH): Call PATFETCH_RAW.
3488 (PATFETCH_RAW): Fetch Emchar.
3489 (PATUNFETCH): Decrement charptr.
3490 (GET_BUFFER_SPACE): Rename b to buf_end.
3492 (BUF_PUSH_2): Ditto.
3493 (BUF_PUSH_3): Ditto.
3494 (EXTEND_BUFFER): Ditto.
3495 (SET_LIST_BIT): Ditto.
3496 (regex_compile): Ditto. Translate non ASCII char.
3497 (compile_range): Ditto.
3498 (re_search_2): Ditto.
3499 (re_match_2_internal): Compare Emchar.
3500 (bcmp_translate): Ditto.
3502 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
3504 * lisp.h (basic char/int typedefs): comment improvement.
3506 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
3508 * emacs.c (main_1): unconditional pdump unstomping; don't save and
3509 unstomp inhibit_site_lisp. Improve comments.
3511 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
3513 * mule-charset.c (Fcharset_property): improve type checking, comments.
3515 2000-11-28 Andy Piper <andy@xemacs.org>
3517 * redisplay-output.c (redisplay_output_subwindow): make sure we do
3518 clipped display for windows in the gutter also.
3519 (redisplay_display_boxes_in_window_p): change semantics of return
3520 codes to be more intuitive.
3522 * gutter.h: declare display_boxes_in_gutter_p.
3524 * gutter.c (display_boxes_in_gutter_p): new function for
3527 2000-11-22 Andy Piper <andy@xemacs.org>
3529 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
3532 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
3534 * callproc.c (Fold_call_process_internal):
3535 * gpm.c (Freceive_gpm_event):
3536 (tty_get_foreign_selection): Might be just warning supression.
3537 * fileio.c (Fwrite_region_internal):
3538 (Fset_visited_file_modtime):
3539 * keymap.c (event_matches_key_specifier_p):
3540 Initialize GCPROed variable.
3542 * menubar-x.c (command_builder_find_menu_accelerator):
3543 Initialize before use.
3545 2000-11-23 Andy Piper <andy@xemacs.org>
3547 * unexcw.c (unexec): make the resulting executable executable.
3549 2000-11-21 Martin Buchholz <martin@xemacs.org>
3551 * doc.c (get_doc_string):
3552 Use size_t, not int, for result of XSTRING_LENGTH.
3554 * cmds.c (Fdelete_char):
3555 * cmds.c (Fpoint_at_eol):
3556 * cmds.c (Fself_insert_command):
3557 Use EMACS_INT, not int, for result of XINT.
3558 Someday, someone will want to insert more than 2**31 identical characters.
3560 * cmds.c (Fdelete_char):
3561 * cmds.c (Fdelete_backward_char):
3562 * syntax.c (Fforward_word):
3563 * syntax.c (Fforward_comment):
3564 Make COUNT argument optional, for consistency with forward-char et al.
3566 2000-11-22 Martin Buchholz <martin@xemacs.org>
3569 * print.c (long_to_string):
3570 Return a useful value: the pointer at end of data written.
3573 Use `static const char * const' for constant strings.
3574 (union printf_arg): Delete `i', `ui' members.
3577 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
3578 Do all printf-ing via the `l' specifier.
3579 Use EMACS_INT instead of int.
3582 2000-11-20 Didier Verna <didier@xemacs.org>
3584 * faces.c (update_face_cachel_data): don't frob the background
3585 pixmap when the window is being created. The face is needed but
3588 2000-11-20 Andy Piper <andy@xemacs.org>
3590 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
3591 messing with a debug environment.
3593 2000-11-20 Martin Buchholz <martin@xemacs.org>
3595 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
3597 2000-11-20 Martin Buchholz <martin@xemacs.org>
3599 * casetab.c (Fcase_table_p): Fix compile error and crash.
3601 2000-11-18 Philip Aston <philipa@mail.com>
3603 * s/cygwin32.h: Cygwin has SVR4-like pty support.
3605 2000-11-18 Martin Buchholz <martin@xemacs.org>
3607 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
3608 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
3610 2000-11-17 Martin Buchholz <martin@xemacs.org>
3612 * config.h.in: Define HAVE_ELF_H if elf.h exists.
3613 * unexelf.c: Use HAVE_ELF_H.
3614 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
3615 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
3616 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
3617 Greg Harrington <greg_harrington@hotmail.com> provided a machine
3619 So this is an unexelfsgi.c from a different line of development.
3621 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
3623 * regex.c (RE_TR_ASCII): New function.
3624 (RE_TRANSLATE): Call it.
3626 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
3628 * buffer.h (TRT_TABLE_OF): Remove assert.
3629 (IN_TRT_TABLE_DOMAIN): Removed.
3631 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
3633 * free-hook.c (log_gcpro):
3634 (show_gcprohist): Add support for GCPRO5.
3636 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
3638 * emacs.c (main_1): Improve -sd error message when --pdump=no.
3640 2000-11-16 Olivier Galibert <galibert@xemacs.org>
3642 * symeval.h: Declare flush_all_buffer_local_cache.
3644 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
3645 (flush_buffer_local_cache): Added.
3646 (flush_all_buffer_local_cache): Added.
3648 * lrecord.h: Remove unused XD_LO_RESET_NIL.
3650 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
3651 (pdump_dump_data): Ditto.
3652 (pdump_reloc_one): Ditto.
3653 (pdump): Remove unused pdump_qnil. Flush buffer local caches
3657 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
3659 * buffer.c: Remove if 0'ed entry.
3660 * buffer.h: Rewrite TRT to use char-table.
3661 * bufslots.h: Remove mirror tables.
3662 * casetab.c: Remove mirror tables.
3663 (CASE_TABLE_P): New macro.
3664 (Fcase_table_p): Element of a case table is string or char-table.
3665 (make_mirror_trt_table): Removed.
3666 (set_case_table): Setup char-table from strings for backward
3668 * dired.c (Fdirectory_files):
3669 * dired-msw.c: (mswindows_get_files):
3670 * lisp.h: Change prototype of re_pattern_buffer.
3671 * regex.c: (RE_TRANSLATE): New macro.
3672 (TRANSLATE_P): Ditto.
3673 Change translate to type RE_TRANSLATE_TYPE.
3674 * regex.h: Define RE_TRANSLATE_TYPE
3675 * search.c (TRANSLATE): New macro.
3676 (TRANSLATE_ASCII): New macro.
3677 Translate table is changed to Lisp_Object.
3678 (signal_failure): Inhibit return.
3680 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
3687 Do UNGCPRO before return.
3689 2000-11-14 Martin Buchholz <martin@xemacs.org>
3691 * XEmacs 21.2.37 is released.
3693 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
3695 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
3696 Add comments about discarded return value.
3698 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
3701 * event-stream.c: Fix comments. Remove some #if 0'ed part.
3703 2000-10-27 Andy Piper <andy@xemacs.org>
3705 * gutter.c (Fset_default_gutter_position): default left and right
3707 (calculate_gutter_size): calculate resonable heuristic for left
3708 and right gutter sizes.
3709 (specifier_vars_of_gutter): change left and right gutter sizes to
3711 (calculate_gutter_size_from_display_lines): new function.
3712 (output_gutter): check for resizing on left and right gutters.
3713 (clear_gutter): don't special case top and left gutters.
3714 (specifier_vars_of_gutter): use new signature for
3715 set_specifier_caching.
3717 * glyphs-x.c (x_redisplay_widget): spelling fix.
3718 * glyphs.c (specifier_vars_of_glyphs):
3719 * menubar.c (specifier_vars_of_menubar):
3720 * redisplay.c (specifier_vars_of_redisplay):
3721 * toolbar.c (specifier_vars_of_toolbar):
3722 * window.c (specifier_vars_of_window):
3723 * scrollbar.c (specifier_vars_of_scrollbar):
3724 (complex_vars_of_scrollbar): use new signature for
3725 set_specifier_caching.
3727 * specifier.c (set_specifier_caching): include recompute flag.
3728 (recompute_one_cached_specifier_in_window): always recompute if
3730 (recompute_one_cached_specifier_in_frame): ditto.
3732 * specifier.h (struct specifier_caching): add recompute flag.
3734 2000-10-24 Andy Piper <andy@xemacs.org>
3736 * unexcw.c (copy_executable_and_dump_data_section): add new
3737 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
3740 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
3742 * console-x.h (x_device): New member modifier_release_time.
3743 * event-Xt.c (x_handle_sticky_modifiers):
3744 Bound interval modifier keys are sticky.
3745 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
3746 * events.h: extern it.
3748 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
3750 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
3752 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
3754 * event-stream.c (execute_command_event): Preserve current_events
3755 and the like when event is misc-user-event.
3756 Inhibit quit during the call to maybe_echo_keys.
3758 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
3760 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
3761 symlink when buffer is killed.
3762 (inhibit_clash_detection): New variable.
3764 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
3766 * console.c (Fset_input_method): Trigger redisplay on tty.
3768 2000-11-07 Martin Buchholz <martin@xemacs.org>
3770 * process.c (Fprocess_status): Revert to previous behavior:
3771 (process-status "nosuchprocess") ==> nil
3773 2000-11-06 Martin Buchholz <martin@xemacs.org>
3775 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
3776 Work around another GCC 2.95.2 optimizer bug.
3778 2000-11-02 Martin Buchholz <martin@xemacs.org>
3780 * process.c (Fget_process): Use LIST_LOOP_2.
3781 (kill_buffer_processes): Use LIST_LOOP_2.
3783 * minibuf.c (Fall_completions):
3784 Delete old non-functional code for FSF fourth argument.
3786 * frame.c (frame_matches_frame_spec):
3787 Renamed from `frame_matches_frametype'. Update all callers.
3788 (device_matches_device_spec):
3789 Renamed from 'device_matches_console_spec'. Update all callers.
3791 * doc.c (Fsubstitute_command_keys):
3792 Remove buffer overflow crash. Small code cleanups.
3794 * casetab.c (check_case_table): Simpler code.
3796 * window.c (Freplace_buffer_in_windows):
3797 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
3798 (and similar implementation) as Fdelete_windows_on.
3801 * alloc.c (Fmake_list):
3802 * alloc.c (make_vector):
3803 * alloc.c (Fmake_vector):
3804 * alloc.c (make_bit_vector):
3805 * alloc.c (Fmake_bit_vector):
3806 * alloc.c (Fbit_vector):
3807 * alloc.c (Fmake_string):
3808 * alloc.c (Fpurecopy):
3809 * alloc.c (Fmemory_limit):
3811 * buffer.c (Fget_buffer):
3812 * buffer.c (Fkill_buffer):
3813 * buffer.c (complex_vars_of_buffer):
3814 * bytecode.c (Fcompiled_function_stack_depth):
3815 * callint.c (Fprefix_numeric_value):
3817 * event-stream.c (Fread_key_sequence):
3819 * casetab.c (Fcase_table_p):
3820 * casetab.c (check_case_table):
3821 * casetab.c (Fset_case_table):
3822 * casetab.c (Fset_standard_case_table):
3824 * chartab.c (Fchar_table_type):
3825 * chartab.c (Freset_char_table):
3826 * chartab.c (Fget_char_table):
3827 * chartab.c (Fget_range_char_table):
3828 * chartab.c (Fput_char_table):
3829 * chartab.c (Fmap_char_table):
3830 * chartab.c (Fcategory_table_p):
3831 * chartab.c (Fcheck_category_at):
3832 * chartab.c (Fchar_in_category_p):
3833 * chartab.c (Fcategory_table):
3834 * chartab.c (Fcopy_category_table):
3835 * chartab.c (Fset_category_table):
3836 * chartab.c (Fcategory_designator_p):
3837 * chartab.c (Fcategory_table_value_p):
3838 * cmds.c (Fdelete_char):
3839 * cmds.c (Fdelete_backward_char):
3840 * cmds.c (Fself_insert_command):
3841 * cmds.c (Fself_insert_internal):
3842 * console.c (Fvalid_console_type_p):
3843 * console.c (Fcdfw_console):
3844 * console.c (Fconsole_type):
3845 * console.c (Fconsole_name):
3846 * console.c (Fconsole_device_list):
3847 * console.c (Fconsole_on_window_system_p):
3851 * data.c (Fsubr_interactive):
3852 * data.c (Fchar_to_int):
3853 * data.c (Fint_to_char):
3856 * data.c (Fnumber_to_string):
3857 * data.c (Fstring_to_number):
3859 * database.c (mark_database):
3860 * database.c (finalize_database):
3861 * database.c (Fdatabase_live_p):
3862 * database.c (Fdatabasep):
3863 * device-x.c (Fx_get_resource):
3864 * device.c (Fdfw_device):
3866 * dired.c (Ffile_name_completion):
3867 * dired.c (Ffile_name_all_completions):
3868 * dired.c (Fuser_name_completion):
3869 * dired.c (Fuser_name_completion_1):
3870 * dired.c (Fuser_name_all_completions):
3871 * doc.c (Fdocumentation):
3872 * doc.c (Fdocumentation_property):
3873 * doc.c (Fsubstitute_command_keys):
3875 * editfns.c (Fchar_to_string):
3876 * editfns.c (Fstring_to_char):
3877 * editfns.c (Ftemp_directory):
3878 * editfns.c (Finsert_char):
3879 * editfns.c (Fbuffer_substring_no_properties):
3880 * editfns.c (Fnarrow_to_region):
3881 * editfns.c (Fchar_equal):
3882 * editfns.c (Fchar_Equal):
3883 * editfns.c (Ftranspose_regions):
3884 * emacs.c (Fdump_emacs):
3886 * eval.c (Fcommand_execute):
3887 * eval.c (Fautoload):
3888 * eval.c (Fbacktrace):
3889 * eval.c (Fbacktrace_frame):
3891 * events.c (Fcopy_event):
3892 * events.c (Fcharacter_to_event):
3893 * events.c (Fevent_button):
3894 * events.c (Fevent_process):
3896 * extents.c (Fnext_extent_change):
3897 * extents.c (Fextent_property):
3899 * faces.c (Fmake_face):
3901 * file-coding.c (Fencode_shift_jis_char):
3902 * file-coding.c (Fencode_big5_char):
3903 * fileio.c (Ffile_name_directory):
3904 * fileio.c (Ffile_name_nondirectory):
3905 * fileio.c (Ffile_name_as_directory):
3906 * fileio.c (Fdirectory_file_name):
3907 * fileio.c (Ffile_truename):
3908 * fileio.c (Fsubstitute_in_file_name):
3909 * fileio.c (Ffile_modes):
3910 * fileio.c (Fset_file_modes):
3911 * fileio.c (Fset_default_file_modes):
3912 * fileio.c (Fverify_visited_file_modtime):
3913 * floatfns.c (Facos):
3914 * floatfns.c (Fasin):
3915 * floatfns.c (Fatan):
3916 * floatfns.c (Fcos):
3917 * floatfns.c (Fsin):
3918 * floatfns.c (Ftan):
3919 * floatfns.c (Fbessel_j0):
3920 * floatfns.c (Fbessel_j1):
3921 * floatfns.c (Fbessel_jn):
3922 * floatfns.c (Fbessel_y0):
3923 * floatfns.c (Fbessel_y1):
3924 * floatfns.c (Fbessel_yn):
3925 * floatfns.c (Ferf):
3926 * floatfns.c (Ferfc):
3927 * floatfns.c (Flog_gamma):
3928 * floatfns.c (Fexp):
3929 * floatfns.c (Fexpt):
3930 * floatfns.c (Flog):
3931 * floatfns.c (Flog10):
3932 * floatfns.c (Fsqrt):
3933 * floatfns.c (Fcube_root):
3934 * floatfns.c (Facosh):
3935 * floatfns.c (Fasinh):
3936 * floatfns.c (Fatanh):
3937 * floatfns.c (Fcosh):
3938 * floatfns.c (Fsinh):
3939 * floatfns.c (Ftanh):
3940 * floatfns.c (Fabs):
3941 * floatfns.c (Ffloat):
3942 * floatfns.c (Flogb):
3943 * floatfns.c (Fceiling):
3944 * floatfns.c (Ffloor):
3945 * floatfns.c (Fround):
3946 * floatfns.c (Ftruncate):
3947 * floatfns.c (Ffceiling):
3948 * floatfns.c (Fffloor):
3949 * floatfns.c (Ffround):
3950 * floatfns.c (Fftruncate):
3951 * fns.c (Fstring_equal):
3952 * fns.c (Fstring_lessp):
3957 * fns.c (Fsubstring):
3959 * fns.c (Fold_assoc):
3960 * fns.c (assoc_no_quit):
3962 * fns.c (Fold_assq):
3963 * fns.c (assq_no_quit):
3965 * fns.c (Fold_rassoc):
3967 * fns.c (Fold_rassq):
3968 * fns.c (rassq_no_quit):
3969 * fns.c (Fremassoc):
3970 * fns.c (remassoc_no_quit):
3972 * fns.c (remassq_no_quit):
3973 * fns.c (Fremrassoc):
3974 * fns.c (Fremrassq):
3975 * fns.c (remrassq_no_quit):
3977 * fns.c (Fplist_get):
3978 * fns.c (Fplist_put):
3979 * fns.c (Fplist_remprop):
3980 * fns.c (Fplist_member):
3981 * fns.c (Flax_plist_get):
3982 * fns.c (Flax_plist_put):
3983 * fns.c (Flax_plist_remprop):
3984 * fns.c (Flax_plist_member):
3986 * fns.c (Fold_equal):
3988 * fns.c (Fbase64_encode_region):
3989 * fns.c (Fbase64_encode_string):
3990 * fns.c (Fbase64_decode_region):
3992 * frame.c (frame_matches_frame_spec):
3993 * frame.c (device_matches_device_spec):
3994 * frame.c (next_frame):
3995 * frame.c (previous_frame):
3996 * frame.c (Fnext_frame):
3997 * frame.c (Fprevious_frame):
3998 * frame.c (Fframe_property):
3999 * frame.c (Fset_frame_height):
4000 * frame.c (Fset_frame_size):
4004 * glyphs.c (decode_error_behavior_flag):
4005 * glyphs.c (Fmake_image_instance):
4006 * indent.c (Findent_to):
4007 * intl.c (Fignore_defer_gettext):
4008 * keymap.c (Fkeymapp):
4009 * keymap.c (Flookup_key):
4011 * lread.c (Fload_internal):
4012 * lread.c (Feval_buffer):
4013 * lread.c (Feval_region):
4014 * macros.c (Fexecute_kbd_macro):
4015 * marker.c (set_marker_internal):
4016 * marker.c (Fset_marker):
4017 * marker.c (set_marker_restricted):
4018 * marker.c (Fcopy_marker):
4019 * marker.c (noseeum_copy_marker):
4021 * menubar.c (Fpopup_menu):
4023 * mule-charset.c (Fcharset_name):
4024 * mule-charset.c (Fchar_charset):
4025 * mule-charset.c (Fchar_octet):
4026 * mule-charset.c (Fsplit_char):
4027 * mule-wnnfns.c (Fwnn_open):
4028 * mule-wnnfns.c (Fwnn_dict_comment):
4029 * mule-wnnfns.c (Fwnn_quit_henkan):
4030 * mule-wnnfns.c (Fwnn_word_toroku):
4031 * mule-wnnfns.c (Fwnn_word_sakujo):
4032 * mule-wnnfns.c (Fwnn_word_use):
4033 * mule-wnnfns.c (Fwnn_hindo_set):
4035 * objects.c (Fmake_color_instance):
4036 * objects.c (Fmake_font_instance):
4037 * print.c (Fwrite_char):
4039 * process.c (mark_process):
4040 * process.c (print_process):
4041 * process.c (get_process_from_usid):
4042 * process.c (Fprocessp):
4043 * process.c (Fprocess_live_p):
4044 * process.c (Fget_process):
4045 * process.c (Fget_buffer_process):
4046 * process.c (get_process):
4047 * process.c (Fprocess_id):
4048 * process.c (Fprocess_name):
4049 * process.c (Fprocess_command):
4050 * process.c (init_process_io_handles):
4051 * process.c (start_process_unwind):
4052 * process.c (Fstart_process_internal):
4053 * process.c (Fopen_multicast_group_internal):
4054 * process.c (Fset_process_window_size):
4055 * process.c (read_process_output):
4056 * process.c (send_process):
4057 * process.c (Fprocess_tty_name):
4058 * process.c (Fset_process_buffer):
4059 * process.c (Fprocess_buffer):
4060 * process.c (Fprocess_mark):
4061 * process.c (set_process_filter):
4062 * process.c (Fset_process_filter):
4063 * process.c (Fprocess_filter):
4064 * process.c (Fprocess_send_region):
4065 * process.c (Fprocess_send_string):
4066 * process.c (exec_sentinel):
4067 * process.c (Fset_process_sentinel):
4068 * process.c (Fprocess_sentinel):
4069 * process.c (status_notify):
4070 * process.c (Fprocess_status):
4071 * process.c (Fprocess_exit_status):
4072 * process.c (process_send_signal):
4073 * process.c (Fprocess_send_eof):
4074 * process.c (deactivate_process):
4075 * process.c (remove_process):
4076 * process.c (Fdelete_process):
4077 * process.c (kill_buffer_processes):
4078 * process.c (Fprocess_kill_without_query):
4079 * process.c (Fprocess_kill_without_query_p):
4081 * rangetab.c (Fget_range_table):
4082 * rangetab.c (Fput_range_table):
4083 * rangetab.c (Fremove_range_table):
4084 * rangetab.c (Fclear_range_table):
4086 * search.c (Fskip_chars_forward):
4087 * search.c (Fskip_chars_backward):
4088 * search.c (Fskip_syntax_forward):
4089 * search.c (Fskip_syntax_backward):
4090 * search.c (search_command):
4091 * search.c (Freplace_match):
4092 * search.c (Fregexp_quote):
4093 * select.c (Fown_selection_internal):
4094 * select.c (Fselection_owner_p):
4095 * select.c (Fselection_exists_p):
4096 * select.c (Fget_selection_internal):
4099 * symbols.c (Fintern):
4100 * symbols.c (Fintern_soft):
4101 * symbols.c (Funintern):
4102 * symbols.c (Fapropos_internal):
4103 * symbols.c (Fset_default):
4105 * syntax.c (Fsyntax_table_p):
4106 * syntax.c (Fcopy_syntax_table):
4107 * syntax.c (Fset_syntax_table):
4108 * syntax.c (Fchar_syntax):
4109 * syntax.c (syntax_match):
4110 * syntax.c (Fmatching_paren):
4111 * syntax.c (Fforward_word):
4112 * syntax.c (scan_lists):
4113 * syntax.c (Fscan_lists):
4114 * syntax.c (Fscan_sexps):
4115 * syntax.c (Fparse_partial_sexp):
4116 * toolbar.c (Fcheck_toolbar_button_syntax):
4119 * window.c (Fwindowp):
4120 * window.c (Fwindow_live_p):
4121 * window.c (Fwindow_point):
4122 * window.c (Fdelete_window):
4123 * window.c (Fnext_window):
4124 * window.c (Fprevious_window):
4125 * window.c (Fother_window):
4126 * window.c (window_loop):
4127 * window.c (Fget_lru_window):
4128 * window.c (Fsplit_window):
4129 * window.c (Fenlarge_window):
4130 * window.c (Fenlarge_window_pixels):
4131 * window.c (Fshrink_window):
4132 * window.c (Fshrink_window_pixels):
4133 * window.c (change_window_height):
4134 * window.c (Fwindow_configuration_p):
4135 * window.c (Fcurrent_window_configuration):
4137 * casefiddle.c (casify_object):
4138 * casefiddle.c (Fupcase):
4139 * casefiddle.c (Fdowncase):
4140 * casefiddle.c (Fcapitalize):
4141 * casefiddle.c (Fupcase_initials):
4142 * casefiddle.c (casify_region_internal):
4143 * casefiddle.c (casify_region):
4144 * casefiddle.c (Fupcase_region):
4145 * casefiddle.c (Fdowncase_region):
4146 * casefiddle.c (Fcapitalize_region):
4147 * casefiddle.c (Fupcase_initials_region):
4148 * casefiddle.c (Fupcase_word):
4149 * casefiddle.c (Fdowncase_word):
4150 * casefiddle.c (Fcapitalize_word):
4151 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
4152 Replace 0 with '\0' when working with bytes.
4153 Replace initial "(" with "\(" in docstrings.
4155 2000-11-01 Martin Buchholz <martin@xemacs.org>
4157 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4159 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4161 2000-10-31 Martin Buchholz <martin@xemacs.org>
4163 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
4165 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
4167 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4170 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
4172 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4173 (inhibit_auto_save_session): New variable.
4174 (vars_of_fileio): Declare and initialize them.
4175 * fileio.c (Fdo_auto_save): Don't create session file if
4176 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4178 2000-10-31 Martin Buchholz <martin@xemacs.org>
4180 * sgiplay.c (play_internal): C++ compilability.
4181 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4182 * callproc.c (Fold_call_process_internal):
4183 Remove unused vars `env', `first'.
4184 * scrollbar.c (update_scrollbar_instance):
4185 #### unused var `current_window'.
4186 * redisplay-tty.c: Put currently unused vars insert_mode_on,
4187 etc. within #ifdef NOT_YET.
4188 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4189 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4190 * specifier.c (specifier_instance):
4191 #### unused var `tag'.
4192 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4194 2000-10-27 Martin Buchholz <martin@xemacs.org>
4197 * fns.c (list_sort):
4198 * fns.c (Ffillarray):
4199 * fns.c (bytecode_nconc2):
4202 * fns.c (Fmapconcat):
4203 Be pedantically 64-bit correct. For the time when someone will
4204 want to have a list with length > 2**32.
4206 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4207 Work around MIPSpro compiler bug.
4209 * process-unix.c (unix_kill_child_process): Add snarky comment.
4210 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
4212 * config.h.in: Oops, _getpt ==> _getpty
4214 2000-10-26 Martin Buchholz <martin@xemacs.org>
4218 Use void*, not char*, as return type of alloca().
4220 * alloc.c (free_marker): Side effect inside assert expression!
4222 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
4224 * mule-charset.c (Fset_charset_ccl_program): To check
4225 if the given ccl program is valid, use setup_ccl_program()
4226 instead of CHECK_VECTOR().
4227 (Fmake_charset): Likewise.
4229 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
4231 * faces.c (get_extent_fragment_face_cache_index):
4232 Fix cachel.merged_faces memory leak.
4234 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
4236 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4237 Reset MSB of octets obtained by DECODE_SJIS
4238 because of the incompatibility with Emacs.
4239 (ccl_driver)<CCL_ENCODE_SJIS>:
4240 Set MSB of octets before passing them to
4241 ENCODE_SJIS because of the incompatibility
4244 2000-10-18 Daiki Ueno <ueno@unixuser.org>
4246 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4247 (DECLARE_LRECORD): Undo the last change.
4248 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4250 2000-10-17 Daiki Ueno <ueno@unixuser.org>
4252 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4253 the implementation to lrecord_implementations_table.
4255 2000-10-14 Daiki Ueno <ueno@unixuser.org>
4257 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4258 initial value of `lrecord_type_##c_name' and
4259 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4260 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4261 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4262 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4263 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4265 2000-10-17 Martin Buchholz <martin@xemacs.org>
4267 * miscplay.c (sndcnv8S_2mono):
4268 (sndcnv2monounsigned):
4269 (sndcnvULaw_2linear):
4271 Remove implementation-defined behavior.
4273 2000-10-12 Martin Buchholz <martin@xemacs.org>
4275 * input-method-xlib.c: Warning suppression.
4277 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
4279 * mule-ccl.c: Sync up with Emacs 21.0.90.
4280 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4282 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4284 (ccl_driver[WriteMultibyteChar2]): Bug fix.
4285 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4286 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4287 leading char belongs to official 2-dimensional charset.
4288 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4289 write the given character as is. Otherwise,
4290 if it is a multibyte char, convert it by
4291 non_ascii_set_charptr_emchar, then write it.
4292 (CCL_WRITE_STRING): Likewise.
4293 (ccl_get_compiled_code): New function.
4294 (setup_ccl_program): When ccl_prog is invalid,
4296 (Fregister_code_conversion_map): New function.
4297 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4299 * mule-ccl.h: Sync up with Emacs 21.0.90.
4300 (Fregister_ccl_program): export it.
4302 * redisplay-msw.c (separate_textual_runs):
4303 If ccl program is not valid, don't do ccl conversion.
4305 * redisplay-x.c (separate_textual_runs): Ditto.
4307 * file-coding.c (Fmake_coding_system):
4308 When type is ccl and value is vector, register it
4309 with a proper symbol. And checks whether the
4310 given ccl program is valid.
4311 (mule_decode): When calling ccl_driver, if src indicates
4312 NULL pointer, set an empty string instead.
4313 (mule_encode): Likewise.
4315 2000-10-11 Martin Buchholz <martin@xemacs.org>
4317 The following large batch of changes gets us back to a state of
4318 C++ compilability. Extbyte is now a char, which means that
4319 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4321 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4323 * sound.c (Fplay_sound): Type correctness.
4325 * select-x.c (hack_motif_clipboard_selection): Type correctness.
4326 (x_get_window_property): Type correctness.
4327 (receive_incremental_selection): unsigned char ==> Extbyte
4328 (selection_data_to_lisp_data): unsigned char ==> Extbyte
4329 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4330 (Fx_store_cutbuffer_internal): Type correctness.
4332 * process-unix.c (try_to_initialize_subtty): Type correctness.
4334 * objects-x.c (x_print_color_instance): Type correctness.
4335 (x_print_font_instance): Type correctness.
4336 (x_list_fonts): SExtbyte ==> Extbyte.
4337 (valid_x_font_name_p): SExtbyte ==> Extbyte.
4338 (x_find_charset_font): SExtbyte ==> Extbyte.
4339 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
4340 (truename_via_XListFonts): SExtbyte ==> Extbyte.
4341 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4344 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4345 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4346 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4347 (BYTE_C0_P): Use bit ops for char-signedness safety.
4348 (BYTE_C1_P): Use bit ops for char-signedness safety.
4349 (CHARSET_BY_LEADING_BYTE):
4350 (CHARSET_BY_ATTRIBUTES):
4351 Always use inline function.
4352 Use type_checking_assert.
4355 * mule-charset.c (non_ascii_charptr_copy_char):
4356 Modify to work with both ASCII and non-ASCII characters.
4357 Improve docs and variable names.
4358 Replace over-clever fall-through switch with a simple loop.
4359 (Lstream_get_emchar_1):
4360 Replace over-clever fall-through switch with a simple loop.
4362 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4363 Warning suppression.
4365 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4366 the return value of Lstream_getc, which could be EOF as well.
4368 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4370 * lisp.h: Make Extbyte a char, not unsigned char, so that external
4371 APIs can be used on Extbytes without casts. Risky!
4375 * input-method-xlib.c (XIM_init_device):
4376 Use Xlib.h instead of IntrinsicP.h.
4377 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4378 which will break in X11R7.
4379 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4380 to call XRegisterIMInstantiateCallback with correct types.
4382 * gui-x.c (button_item_to_widget_value): Type correctness.
4384 * glyphs.c (bitmap_to_lisp_data): Type correctness.
4386 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4387 (xbm_instantiate_1): Type correctness.
4388 (BUILD_GLYPH_INST): Type correctness.
4390 * fileio.c (Fsubstitute_in_file_name): Type correctness.
4393 (decode_coding_sjis):
4394 (decode_coding_big5):
4395 (decode_coding_ucs4):
4396 (decode_coding_utf8):
4397 (decode_coding_iso2022):
4398 (decode_coding_no_conversion):
4399 Make all decoding functions take an Extbyte * arg.
4400 (encode_coding_sjis):
4401 (encode_coding_big5):
4402 (encode_coding_ucs4):
4403 (encode_coding_utf8):
4404 (encode_coding_iso2022):
4405 (encode_coding_no_conversion):
4406 Make all encoding functions take a Bufbyte * arg.
4407 Use size_t instead of unsigned int for memory sizes.
4408 Only cast to unsigned char whenever dereferencing Extbyte *.
4410 * doc.c (unparesseuxify_doc_string): Type correctness.
4412 * console-x.c (split_up_display_spec):
4413 Rewrite without using details of internal string representation.
4414 (x_semi_canonicalize_device_connection): Type correctness.
4417 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4418 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4419 (HAVE_XFREE386): Removed.
4421 * buffer.h (DEC_CHARPTR): `const' correctness.
4422 (bufbyte_strcmp): New.
4423 (bufbyte_memcmp): New.
4425 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4427 * buffer.h (XCHAR_OR_CHAR_INT):
4428 Always use inline function.
4429 Remove redundant type checking assert() - XINT will abort quite nicely.
4431 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
4433 * search.c (Freplace_match): Set newtext to an empty string.
4435 2000-10-10 Martin Buchholz <martin@xemacs.org>
4437 * s/decosf1-3.h: Remove #include of stropts.h
4438 * s/ptx.h: Remove #include of stropts.h
4439 * s/usg5-4.h: Remove #include of stropts.h
4442 Use stropts.h, not sys/stropts.h.
4443 Use strtio.h, not sys/strtio.h.
4445 2000-10-04 Martin Buchholz <martin@xemacs.org>
4447 * XEmacs 21.2.36 is released.
4449 2000-09-21 Andy Piper <andy@xemacs.org>
4451 * glyphs-x.c (x_redisplay_widget): make sure non-structural
4452 changes still involve copying the widget tree.
4453 (update_widget_face): make sure a change is register in the widget
4454 tree. Call update_tab_widget_face appropriately.
4455 (update_tab_widget_face): ditto.
4456 (x_tab_control_redisplay): make sure non-structural changes still
4457 involve copying the widget tree.
4459 2000-08-31 Daiki Ueno <ueno@unixuser.org>
4461 * lread.c (locate_file): Check the path element is non-nil.
4463 2000-10-02 Martin Buchholz <martin@xemacs.org>
4465 * lisp.h: Warning suppression for SCO compilers.
4467 * redisplay-tty.c (reset_tty_modes): Fix crash.
4468 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
4470 2000-09-27 Martin Buchholz <martin@xemacs.org>
4472 Big signal/process handling overhaul. Bugs fixed:
4473 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
4474 M-x comint-kill-subjob should work for both values nil and t of
4475 process-connection-type. It was broken on most platforms.
4476 Testing on Irix and Cygwin still needed. Other plaforms tested.
4477 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
4478 * process-unix.c: Signal/Process handling overhaul.
4479 (pty_name): make 64 bytes, as `expect' does, for paranoia.
4480 (allocate_pty): Use all available modern methods of allocating
4481 ptys, falling back to old style BSD allocation as a last resort.
4482 Use allegedly more secure Unix98 pty allocation by default.
4483 (allocate_pty_the_old_fashioned_way): New. the last resort.
4484 (unix_create_process): Push ptem, ldterm, ttcompat where
4485 available. Autoconfiscate.
4486 (try_to_initialize_subtty): New.
4487 (unix_kill_child_process): Proper signal handling for ptys on most
4488 platforms, using special knowledge of AIX, BSD, etc...
4489 (unix_create_process): Always disconnect_controlling_terminal() for
4490 subprocesses, whether using ptys or not.
4491 * process.h: Remove old getpt-dependent PTY code.
4492 * process.c (Fprocess_send_signal): New, obvious generic function.
4493 (decode_signal): New.
4494 (Finterrupt_process):
4498 (Fcontinue_process):
4499 (Fsignal_process): Use decode_signal.
4500 (process_send_signal):
4501 Many docstring corrections.
4502 Allow any signal to be sent to a process object.
4503 * config.h.in: Add symbols for big signal/process overhaul.
4504 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
4505 * sysproc.h: Include process-related headers, where available:
4506 sys/stropts.h sys/strtio.h pty.h libutil.h
4514 Remove old S&M pty stuff.
4515 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
4516 * systty.h: Simplify cpp hackery, improve comments.
4517 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
4519 * editfns.c (Fformat_time_string):
4520 Be a little more paranoid with the return value of ctime.
4522 * fileio.c (check_executable):
4524 Use symbolic constants X_OK, W_OK.
4526 * console-x.c (split_up_display_spec): Fix a warning.
4528 2000-10-02 Martin Buchholz <martin@xemacs.org>
4530 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
4531 * ntproc.c (sys_spawnve): make_string ==> build_string
4532 Small clarity improvements.
4534 2000-09-30 Martin Buchholz <martin@xemacs.org>
4536 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
4538 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
4540 * config.h.in (HAVE_STRCASECMP): Remove.
4542 2000-09-29 Martin Buchholz <martin@xemacs.org>
4544 * redisplay-output.c (redisplay_output_pixmap):
4545 Cleaner and possibly more 64-bit correct code.
4547 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
4549 * dumper.c (pdump_load_finish): move restoration of
4550 `noninteractive1' to emacs.c (main_1).
4551 * emacs.c (main_1): protect LISP-visible command-line flags
4554 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
4556 * Makefile.in.in (versionclean): Use EXE_TARGET and
4557 DUMP_TARGET instead of literal program names.
4559 2000-09-20 Martin Buchholz <martin@xemacs.org>
4561 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
4563 2000-09-19 Martin Buchholz <martin@xemacs.org>
4565 * *: Spelling mega-patch
4567 2000-09-19 Martin Buchholz <martin@xemacs.org>
4569 * fns.c (bad_bad_turtle):
4570 Delete "Eek!" comment, since we fixed the bug to which it refers.
4572 2000-09-16 Martin Buchholz <martin@xemacs.org>
4574 * alloca.c: Replace REGISTER with register.
4576 2000-09-16 Daiki Ueno <ueno@unixuser.org>
4578 * file-coding.c (ucs_to_char): Use countof.
4580 2000-09-16 Martin Buchholz <martin@xemacs.org>
4582 * file-coding.c: (ucs_to_char):
4583 (complex_vars_of_file_coding):
4584 Use countof instead of sizeof.
4585 Use CHECK_NATNUM instead of CHECK_INT.
4587 * sysdep.c (strcasecmp): Remove.
4588 * device-x.c (ascii_strcasecmp): New.
4589 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
4590 Avoid using non-standard non-portable strcasecmp.
4592 2000-09-16 Martin Buchholz <martin@xemacs.org>
4594 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
4595 * font-lock.c: remove reference to emacsfns.h.
4596 * search.c: small doc improvement.
4597 * event-Xt.c: correct file names in comments.
4598 * console-x.h Correct file names in comments.
4599 * frame.c: Correct file names in comments.
4600 * event-stream.c: remove Energize from comments.
4602 2000-09-15 Martin Buchholz <martin@xemacs.org>
4604 * symeval.h (DEFERROR_STANDARD):
4607 (DEFSYMBOL_NO_DUMP):
4608 (DEFSYMBOL_MULTIWORD_PREDICATE):
4609 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
4611 The construct &##name is not sensible C.
4612 Fixes compilation errors with Unixware native compiler.
4614 2000-09-14 Martin Buchholz <martin@xemacs.org>
4616 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
4617 (next_frame_internal): Removed. We now just have next_frame.
4619 Write a simpler and cleaner one-pass algorithm.
4620 Remove called_from_delete_device arg and #ifdefed-out code.
4622 Renamed from prev_frame. Update callers.
4623 Cleaned up to have an analogous implementation to next_frame.
4624 (other_visible_frames_internal): Remove the
4625 called_from_delete_device bogus arg, and hence, remove this
4626 function. Just use other_visible_frames().
4628 * window.c (Fnext_window):
4630 Since next_frame() is guaranteed to return a frame, remove check
4631 for nil inserted in previous patch.
4634 Make code look more like Fnext_window.
4636 Respect the `console' arg when iterating through windows.
4637 Fixes bug: (get-buffer-window buffer t device) not respecting
4639 This function needs more work, as others have pointed out.
4641 * frame.h: Rename prev_frame to previous_frame.
4642 device_matches_console_spec no longer takes a `frame' arg.
4647 Use EMACS_BLOCK_SIGNAL instead of sigblock.
4648 From "Golubev I. N." <gin@mo.msk.ru>.
4650 * make-src-depend: Fix typo.
4652 2000-09-13 Martin Buchholz <martin@xemacs.org>
4654 * window.c (Fnext_window):
4655 next_frame() might return nil, not a frame.
4657 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4659 * frame.c (next_frame_internal):
4660 We've passed a frame if we've passed its device.
4662 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4663 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
4665 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
4667 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
4668 Allow option to suppress accelerators in menu/dialog items.
4669 (populate_or_checksum_helper): Pass dialog title through above.
4671 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
4673 * event-msw.c (mswindows_key_to_emacs_keysym):
4674 Add "pause" key, fix "menu" key.
4676 2000-09-09 Martin Buchholz <martin@xemacs.org>
4678 * eval.c (reinit_vars_of_eval):
4679 Increase max_lisp_eval_depth to 1000,
4680 required for thai-xtis.el to byte-compile under some circumstances.
4682 2000-09-04 Martin Buchholz <martin@xemacs.org>
4684 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
4687 2000-09-01 Martin Buchholz <martin@xemacs.org>
4689 * make-src-depend: Make the generated Makefiles smaller.
4691 * s/hpux.h (SETUP_SLAVE_PTY):
4692 Provide a %d in the format string for the errno argument.
4694 * editfns.c (Ftemp_directory):
4696 Avoid buffer overrun on very long file name.
4698 * input-method-xlib.c (XIM_init_device):
4699 6th parameter of XRegisterIMInstantiateCallback has different
4700 pointer types on different OSes, so simply cast to (void *).
4702 * unexhp9k800.c: Warning fixes. Fiddly changes.
4704 * sysdll.c (dll_open):
4705 shl_load will hang hard if passed a NULL filename.
4706 Simply return NULL for compatibility with dlopen.
4707 * sysdll.c: Conform to XEmacs coding standards.
4709 * sysdep.c (get_pty_max_bytes):
4710 Support pty input lines longer than 512 bytes on HP-UX 10.20.
4712 2000-08-31 Martin Buchholz <martin@xemacs.org>
4714 * tooltalk.c: Add #include <syssignal.h>
4716 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
4718 * s/hpux.h: Don't use undefined function sigunblock().
4720 2000-08-31 Martin Buchholz <martin@xemacs.org>
4722 * config.h.in: Add HAVE_BALLOON_HELP.
4723 * emacs.c: Use HAVE_BALLOON_HELP.
4724 * Makefile.in.in (x_objs):
4725 Make Balloon Help conditional on finding shape.h.
4727 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
4729 * syntax.c (regex_emacs_buffer_p): New variable.
4730 * syntax.h (regex_emacs_buffer_p): extern.
4731 * search.c (looking_at_1):
4733 (fast_string_match):
4734 (search_buffer): Set regex_emacs_buffer_p.
4735 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
4736 when before_dot, at_dot, after_dot.
4738 2000-08-23 Andy Piper <andy@xemacs.org>
4740 * gui-x.c (popup_selection_callback): Only set action_occurred
4741 when we really have an image instance.
4742 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
4744 2000-08-23 Andy Piper <andy@xemacs.org>
4746 * gui-msw.c (mswindows_handle_gui_wm_command): set
4748 * gui-x.c (popup_selection_callback): ditto.
4750 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
4751 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
4752 (struct Lisp_Image_Instance): add action_occurred flag.
4754 * glyphs.c (redisplay_subwindow): use action_occurred flag.
4755 (image_instance_changed): ditto.
4756 (reset_frame_subwindow_instance_cache): only unmap windows - do
4757 not remove them from the cache also.
4759 * glyphs-widget.c (tab_control_update): better debug.
4760 (progress_gauge_update): ditto.
4761 (layout_update): ditto.
4762 (layout_instantiate): ditto.
4763 (tab_control_order_only_changed): cope with null pending items.
4765 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
4766 debug. Force selection of an item when an action occurred. Cope
4767 with null pending_items.
4768 (mswindows_progress_gauge_redisplay): better debug.
4769 * glyphs-x.c (x_tab_control_redisplay): ditto.
4771 * redisplay.c (redisplay_frame): reset the frame cache if the
4774 * window.c (Fset_window_configuration): potentially re-enable
4776 (window_unmap_subwindows): need to finalize instances here since
4777 it is only used in mark_window_as_deleted.
4779 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
4781 * nas.c (SndOpenDataForReading):
4782 nas.c (WaveOpenDataForReading):
4783 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
4784 Somehow escaped from the 2000-08-14 patch.
4786 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4788 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
4789 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
4791 2000-08-21 Andy Piper <andy@xemacs.org>
4793 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
4794 window if it is not already displayed.
4796 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
4797 it is not already displayed.
4799 * window.c (Fset_window_configuration): don't reset the frame
4802 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
4803 instances from the frame cache if we are actually finalizing them.
4804 (reset_frame_subwindow_instance_cache): reset frame cache only
4805 after unmapping everything.
4806 (map_subwindow): set displayed flag after mapping.
4808 2000-08-21 Martin Buchholz <martin@xemacs.org>
4810 * data.c (indirect_function):
4811 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
4813 * eval.c (function_argcount):
4814 Use original function when signaling errors.
4816 2000-08-18 Andy Piper <andy@xemacs.org>
4818 * frame.c (delete_frame_internal): use new
4819 free_frame_subwindow_instances name.
4821 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
4822 (add_tab_item): make return type correct.
4823 (mswindows_tab_control_instantiate): assert index of tab.
4824 (mswindows_tab_control_redisplay): Re-code to use
4825 gui_item_equal_sans_selected and gui_item_list_find_selected.
4827 * glyphs-widget.c (tab_control_update): Correct comment.
4829 * window.c (window_unmap_subwindows): use new
4830 unmap_subwindow_instance_cache_mapper.
4831 (window_unmap_subwindows_cache_mapper): deleted.
4832 (Fset_window_configuration): comparisons should now be with
4833 EQ. Preserve the subwindow instance cache across configuration
4835 (allocate_window): ditto.
4836 (make_dummy_parent): ditto.
4838 * glyphs.c (free_frame_subwindow_instances): rename from
4839 free_frame_subwindow_instance_cache. finalize all instances rather
4840 than just those in the display cache.
4841 (finalize_all_subwindow_instances): walk windows unmapping and
4842 finalizing subwindows.
4843 (unmap_subwindow_instance_cache_mapper): moved from
4844 window.c. Allow finalization as well as unmapping.
4846 * gui.c (gui_item_list_find_selected): new function.
4848 * gui.h (gui_item_list_find_selected): declare.
4850 * glyphs-x.c (x_tab_control_redisplay): pick tab
4851 explicitly. Re-code to use gui_item_equal_sans_selected and
4852 gui_item_list_find_selected.
4854 * glyphs-x.h: add lwlib-utils.h
4856 * buffer.c (Frecord_buffer): undo previous change.
4858 2000-08-09 Vin Shelton <acs@xemacs.org>
4860 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
4861 possible. Create temporary files more securely. The patch was
4862 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
4863 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
4864 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
4867 2000-08-07 Ben Wing <ben@xemacs.org>
4869 * getloadavg.c: remove duplicate (and windows-breaking)
4870 includes of fcntl.h and sys/file.h.
4872 * nt.c: remove duplicate getloadavg() definition.
4874 * sysdll.h (Qdll_filename_encoding): add missing stand-in
4877 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
4879 * eval.c (function_argcount): If function needs to be autoloaded
4880 actually use the loaded definition.
4883 2000-08-05 Ben Wing <ben@xemacs.org>
4885 * getloadavg.c: add prototype for getloadavg(). remove
4886 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
4887 of the code). remove duplicate header includes.
4889 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
4891 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
4892 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
4893 useful load average.
4895 * alloc.c (reinit_alloc_once_early): removed references to
4896 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
4897 the lisp vars are the only things referencing the malloc_sbrk_*
4898 vars, and they were already if 0'd out. these vars only exist
4899 in the older malloc.c, which is basically unused, and they're
4900 only for informational purposes.
4902 * m\*.h: removed useless VIRT_ADDR_VARIES.
4904 * m\powerpc.h: removed stray NO_ARG_ARRAY.
4906 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
4908 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
4909 color if the image is a mono pixmap.
4911 2000-07-30 Ben Wing <ben@xemacs.org>
4913 * Makefile.in.in (release):
4916 * buffer.c (directory_is_current_directory):
4917 * dired-msw.c (mswindows_get_files):
4919 * dired.c (Fdirectory_files):
4920 * dired.c (file_name_completion_stat):
4921 * dired.c (Ffile_attributes):
4922 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
4923 preprocessor tricks, to avoid problems on some machines
4926 * callproc.c (egetenv): GC docs.
4929 * console-msw.h (struct mswindows_dialog_id):
4930 * lrecord.h (lrecord_type):
4931 New object for use with MSW dialogs.
4933 * console.h (struct console_methods):
4934 New enable/disable frame methods, for proper modal dialogs.
4936 * device-msw.c (msprinter_default_printer): Fix to follow
4937 proper Mule conventions.
4940 * device-msw.c (signal_open_printer_error):
4941 * device-msw.c (msprinter_init_device):
4942 * device-msw.c (ensure_not_printing):
4943 * device-msw.c (plist_get_margin):
4944 * device-msw.c (Fmsprinter_select_settings):
4945 * device-msw.c (finalize_devmode):
4946 * device-msw.c (Fmsprinter_settings_despecialize):
4947 * device-msw.c (signal_enum_priner_error):
4948 * extents.c (decode_extent):
4949 * extents.c (decode_map_extents_flags):
4950 * extents.c (decode_extent_at_flag):
4951 * extents.c (Fextent_at):
4952 * extents.c (Fextents_at):
4953 * extents.c (symbol_to_glyph_layout):
4954 [[[[2]]]] Use structured errors.
4957 * dialog-msw.c (mswindows_is_dialog_msg):
4958 * dialog-msw.c (mark_mswindows_dialog_id):
4959 * dialog-msw.c (dialog_proc):
4960 * dialog-msw.c (handle_question_dialog_box):
4961 * dialog-msw.c (syms_of_dialog_mswindows):
4962 Define new object to clean up marking; use it as a dialog identifier.
4963 Call new delete-dialog-box-hook.
4965 * dialog-x.c (dbox_selection_callback):
4966 * dialog-x.c (dbox_descriptor_to_widget_value):
4967 * dialog-x.c (x_make_dialog_box_internal):
4968 Call new delete-dialog-box-hook.
4972 * dialog.c (syms_of_dialog):
4973 * dialog.c (vars_of_dialog):
4974 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
4977 * eval.c (signal_call_debugger):
4978 when noninteractive, output stack traces on the console instead
4979 of in a (never-seen) buffer.
4981 * eval.c (signal_type_error):
4982 * eval.c (invalid_argument_2):
4984 new funs for use w/structured errors.
4987 * event-Xt.c (x_to_emacs_keysym):
4988 * event-Xt.c (describe_event):
4989 * event-Xt.c (emacs_Xt_event_handler):
4990 * event-Xt.c (vars_of_event_Xt):
4992 * event-msw.c (mswindows_wnd_proc):
4993 * event-msw.c (vars_of_event_mswindows):
4994 rename {x,mswindows}-debug-events to debug-{}-events for
4995 consistency with other debug-foo variables.
4998 document next-event more clearly.
5000 * fileio.c (Ffile_name_directory):
5001 * fileio.c (Ffile_name_nondirectory):
5002 * fileio.c (Funhandled_file_name_directory):
5003 * fileio.c (file_name_as_directory):
5004 * fileio.c (Ffile_name_as_directory):
5005 * fileio.c (directory_file_name):
5006 * fileio.c (Fdirectory_file_name):
5007 * fileio.c (Fmake_temp_name):
5008 * fileio.c (Ffile_truename):
5009 * fileio.c (Fsubstitute_in_file_name):
5010 * fileio.c (expand_and_dir_to_file):
5011 * fileio.c (barf_or_query_if_file_exists):
5012 * fileio.c (check_executable):
5013 * fileio.c (Ffile_exists_p):
5014 * fileio.c (Ffile_writable_p):
5015 * fileio.c (Ffile_directory_p):
5016 * fileio.c (Ffile_regular_p):
5017 * fileio.c (Ffile_modes):
5018 * fileio.c (Ffile_newer_than_file_p):
5019 * fileio.c (Fverify_visited_file_modtime):
5020 * fileio.c (Fset_visited_file_modtime):
5021 * fileio.c (auto_save_1):
5026 * frame-msw.c (mswindows_init_frame_1):
5027 * frame-msw.c (mswindows_enable_frame):
5028 * frame-msw.c (error_frame_unsizable):
5029 * frame-msw.c (msprinter_init_frame_1):
5030 * frame-msw.c (msprinter_init_frame_3):
5031 * frame-msw.c (console_type_create_frame_mswindows):
5033 implement new enable/disable frame methods.
5036 * frame-x.c (x_enable_frame):
5037 * frame-x.c (console_type_create_frame_x):
5038 implement new enable/disable frame methods.
5041 * frame.c (Fdisable_frame):
5042 * frame.c (syms_of_frame):
5043 * frame.h (struct frame):
5044 implement new enable/disable frame methods/functions.
5049 * glyphs-msw.c (mswindows_widget_instantiate):
5050 comment that initial-focus should be implemented.
5053 * glyphs-widget.c (check_valid_instantiator):
5054 * glyphs-widget.c (check_valid_orientation):
5055 * glyphs-widget.c (check_valid_tab_orientation):
5056 * glyphs-widget.c (check_valid_justification):
5057 * glyphs-widget.c (check_valid_border):
5058 * glyphs-widget.c (check_valid_callback):
5059 * glyphs-widget.c (check_valid_int_or_function):
5060 * glyphs-widget.c (check_valid_string_or_vector):
5061 * glyphs-widget.c (check_valid_item_list_1):
5062 * glyphs-widget.c (widget_validate):
5063 * glyphs-widget.c (combo_box_validate):
5064 * glyphs-widget.c (widget_instantiate):
5065 * glyphs-widget.c (syms_of_glyphs_widget):
5066 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5067 * glyphs-widget.c (image_instantiator_combo_box):
5068 * glyphs-widget.c (image_instantiator_scrollbar):
5069 * glyphs-widget.c (image_instantiator_tab_control):
5070 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5072 support (unimplemented) keyword initial-focus.
5073 reindent long macros.
5075 * glyphs-x.c (x_redisplay_widget):
5076 * glyphs-x.c (x_button_instantiate):
5077 * glyphs-x.c (x_button_redisplay):
5078 * glyphs-x.c (x_progress_gauge_instantiate):
5079 * glyphs-x.c (x_edit_field_instantiate):
5080 * glyphs-x.c (x_combo_box_instantiate):
5081 * glyphs-x.c (x_tab_control_instantiate):
5082 * glyphs-x.c (x_label_instantiate):
5084 * gui-x.c (button_item_to_widget_value):
5085 * gui-x.c (gui_items_to_widget_values_1):
5086 * gui-x.c (gui_item_children_to_widget_values):
5087 * gui-x.c (gui_items_to_widget_values):
5089 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5090 add new flag to gui-parsing routines to indicate whether
5091 accelerator specs should be supported.
5093 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5095 * glyphs.h (struct Lisp_Image_Instance):
5096 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5097 add initial-focus flag.
5100 * gui.c (syms_of_gui):
5101 * gui.c (vars_of_gui):
5102 clean up menu-no-selection-hook.
5105 support delete-dialog-box-hook.
5107 * lread.c (Fload_internal):
5108 * lread.c (locate_file_in_directory_mapper):
5112 * lrecord.h (struct toolbar_button):
5113 * lrecord.h (syms_of_toolbar):
5114 document how to create a new object.
5116 * menubar-msw.c (mswindows_char_is_accelerator):
5117 may be called on frames w/o menus.
5119 * menubar.c (vars_of_menubar):
5120 clean up :filter docs.
5127 * process-nt.c (validate_signal_number):
5128 * process-nt.c (signal_cannot_launch):
5129 * process-nt.c (nt_create_process):
5130 * process-nt.c (nt_send_process):
5131 * process-nt.c (nt_kill_child_process):
5132 * process-nt.c (nt_open_network_stream):
5133 * process-nt.c (syms_of_process_nt):
5135 delete quote-handling. call new lisp code that does it better.
5137 * process-unix.c (connect_to_file_descriptor):
5138 * process-unix.c (allocate_pty):
5139 * process-unix.c (unix_send_process):
5140 * process-unix.c (unix_kill_child_process):
5141 * process-unix.c (unix_open_network_stream):
5142 * process-unix.c (unix_open_multicast_group):
5146 * process.c (Fstart_process_internal):
5147 (2). need to canonicalize process path even if absolute.
5149 * select-msw.c (symbol_to_ms_cf):
5150 * select-msw.c (ms_cf_to_symbol):
5151 * select-msw.c (cf_is_autofreed):
5152 * select-msw.c (mswindows_destroy_selection):
5154 * select.c (syms_of_select):
5156 support dibv5, fix bugs. (from Mike Alexander)
5158 * select.c (Fget_selection_internal):
5159 * select.c (select_convert_out):
5162 * sysdep.c (xemacs_stat):
5167 but keep original stat() here because we provide encapsulation
5171 * sysfile.h (fstat):
5172 remove stat garbage.
5176 don't include tchar.h. it's inappropriate because it makes
5177 compile-time distinctions when we want runtime distinctions.
5178 (we provide our own tchar replacements)
5181 use default object printer for toolbar-button.
5184 make sure we don't encapsulate.
5186 * window.c (vars_of_window):
5187 emphasize that temp-buffer-show-hook is obsolete.
5189 2000-08-05 Martin Buchholz <martin@xemacs.org>
5191 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5192 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5194 * events.c (Fevent_timestamp_lessp):
5195 Not 64-bit clean. Use EMACS_INT, not int.
5197 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
5199 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5200 unsigned int and changed the last enum to
5201 lrecord_type_last_built_in_type.
5202 (lrecord_implementations_table): changed prototype to know how
5203 long the array is supposed to be.
5204 (lrecord_type_count): new unsigned int to keep track of the
5205 current number of lisp lrecord types.
5206 (DEFINE_EXTERNAL_LRECORD):
5207 (DECLARE_EXTERNAL_LRECORD): Added these two for external
5208 dynamic-modules to declare new lisp types. They are the same
5209 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5210 int for each new type, and increment lrecord_type_count by 1.
5212 * alloc.c (lrecord_implementations_table): Changed to reference
5213 lrecord_type_last_built_in_type for the size of the array.
5214 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5216 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5218 * glyphs.h (check_valid_item_list): Renamed from
5219 check_valid_item_list_1.
5221 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5223 * select.c (Qselect_coerce): New.
5224 * select.c (Vselection_coercion_alist): New.
5225 * select.c (syms_of_select): Declare.
5226 * select.c (get-selection-internal): Use it.
5227 Use the new select-coerce functionality.
5229 * select.c (select_coerce): New.
5230 * select.h (select_coerce): Declare.
5231 New function to coerce one type of data into another.
5233 2000-08-03 Martin Buchholz <martin@xemacs.org>
5235 * callproc.c (Fcall_process_internal):
5236 (Fcall_process_internal):
5237 * process-unix.c (unix_create_process):
5238 Save and restore the value of errno, so that error messages are accurate.
5240 2000-08-01 Martin Buchholz <martin@xemacs.org>
5242 * elhash.c (print_hash_table):
5243 Fix printing of hash tables to also use `key-and-value' instead of `t'.
5244 Prettify docstrings and indentation.
5246 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5248 * window.c (Fwindow_pixel_edges): Subtract frame border and
5251 2000-07-31 Andy Piper <andy@xemacs.org>
5253 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5254 will acknowledge the change.
5256 * glyphs.h: declare tab_control_order_only_changed.
5258 * glyphs-x.c (x_tab_control_redisplay): use
5259 tab_control_order_only_changed.
5261 * glyphs-widget.c (tab_control_order_only_changed): new function.
5263 * glyphs-msw.c (mswindows_tab_control_redisplay): use
5264 tab_control_order_only_changed.
5266 * gui.c (gui_item_equal_sans_selected): new function.
5267 (gui_item_equal): use it.
5269 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5270 :properties in favor of :items..
5272 * glyphs-widget.c (check_valid_item_list): rename from
5273 check_valid_item_list_1.
5274 (check_valid_item_list_1): renamed.
5275 (combo_box_validate): deprecate :properties in favor of :items.
5276 (widget_instantiate): ditto.
5277 (tab_control_update): ditto.
5278 (image_instantiator_combo_box): ditto.
5279 (image_instantiator_tree_view): ditto.
5280 (image_instantiator_tab_control): ditto.
5281 (layout_post_instantiate): remove dead code.
5283 * print.c (debug_print_no_newline): only write to debugger if in
5286 * elhash.c (Fmake_hash_table): update doc string.
5288 * event-msw.c (mswindows_wnd_proc): don't allow processing of
5289 messages whilst in GC. This at least stops XEmacs crashing but has
5290 the potential for wierd behaviour.
5292 2000-07-31 Martin Buchholz <martin@xemacs.org>
5295 Make existence of s&m files optional.
5297 * s/bsd386.h: Remove HAVE_GETLOADAVG.
5298 * s/freebsd.h: Remove HAVE_GETLOADAVG.
5299 * s/gnu.h: Remove HAVE_GETLOADAVG.
5300 * s/netbsd.h: Remove HAVE_GETLOADAVG.
5301 * s/sol2.h: Remove HAVE_GETLOADAVG.
5302 * lisp.h: Remove getloadavg() declaration.
5304 Include <sys/loadavg.h> if available.
5305 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5306 * config.h.in: Group together getloadavg()-related macros.
5307 Use only configure-time tests to detect getloadavg().
5309 2000-07-30 Martin Buchholz <martin@xemacs.org>
5311 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5313 2000-07-25 Andy Piper <andy@xemacs.org>
5315 * syswindows.h: add tchar.h for native builds.
5317 * frame.c (syms_of_frame): remove set-glyph-image.
5319 * general-slots.h: add Qset_glyph_image.
5321 * glyphs-widget.c (layout_update): add domain arg to
5323 (syms_of_glyphs_widget): remove set-glyph-image.
5325 2000-07-23 Ben Wing <ben@xemacs.org>
5327 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5330 2000-07-22 Andy Piper <andy@xemacs.org>
5332 * symsinit.h: add syms_of_win32().
5334 * gui-msw.c (syms_of_gui_mswindows): remove
5335 Fmswindows_shell_execute.
5336 (Fmswindows_shell_execute): moved to win32.c.
5338 * emacs.c (main_1): add syms_of_win32 ().
5340 * win32.c (init_potentially_nonexistent_functions): rewrite in
5341 compiler-friendly terms.
5342 (Fmswindows_shell_execute): move here from gui-msw.c.
5343 (syms_of_win32): new.
5345 * device-msw.c (Fmswindows_printer_list): clean up args to
5347 Don't include tchar under cygwin or mingw.
5348 (msprinter_default_printer): make cygwin-friendly.
5350 2000-07-21 Andy Piper <andy@xemacs.org>
5352 * glyphs-widget.c (image_instantiator_tree_view): use tab
5353 control's update function.
5354 (layout_property): new function. Retrieve items.
5356 * glyphs-msw.c (mswindows_tree_view_redisplay): new
5357 function. Re-populate the tree view from the pending items.
5359 * glyphs.c (instantiate_image_instantiator): Make sure the domain
5360 is designated the parent if the domain is an image instance. This
5361 is needed so that dirtiness can be cascade up the hierarchy and
5362 thus for layout children to be redisplayed correctly.
5363 (allocate_image_instance): rename glyph -> parent.
5365 * redisplay.h: change redisplay_output_layout signature.
5367 * redisplay-msw.c (mswindows_output_display_block): use domain
5370 * redisplay-x.c (x_output_display_block): use domain arg.
5372 2000-07-10 Andy Piper <andy@xemacs.org>
5374 * window.c (Fset_window_configuration): add comment.
5376 * redisplay-output.c (compare_runes):
5377 (redisplay_output_subwindow): redisplay rather than update subwindow.
5378 (redisplay_output_layout): ditto.
5380 * redisplay-msw.c (mswindows_frame_output_end):
5381 (mswindows_frame_output_end): make defer window pos optional.
5383 * lisp.h: add Flast.
5385 * glyphs.h (struct image_instantiator_methods): add dest_mask top
5386 normalize method. Change update method to be for changed
5387 instantiators. Add redisplay method. Change signature of layout
5389 (struct Lisp_Image_Instance): add instantiator.
5390 (IMAGE_INSTANCE_INSTANTIATOR): new.
5391 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5392 (XIMAGE_INSTANCE_INSTANTIATOR): new.
5393 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5396 (find_instantiator_differences): new function.
5397 (Fset_instantiator_property): new convenience function.
5398 (check_image_instance_structure): strictly check for vector
5400 (normalize_image_instantiator): make non-static.
5401 (instantiate_image_instantiator): pass on dest_mask and use new
5402 signatures for image_instance_layout and friends.
5403 (mark_image_instance): mark the instantiator. Mark the subwindow
5404 face not the widget face.
5405 (image_instance_equal): add instantiator.
5406 (image_instance_hash): ditto.
5407 (allocate_image_instance): ditto.
5408 (Fset_image_instance_property): removed.
5409 (Fimage_instance_file_name): ditto.
5410 (Fcolorize_image_instance): ditto.
5411 (image_instance_layout): add offsets to be set.
5412 (update_image_instance): new function. update an image instance
5413 from its changed instantiator.
5414 (inherit_normalize): add dest_mask.
5415 (xbm_normalize): ditto.
5416 (xface_normalize): ditto.
5417 (xpm_normalize): ditto.
5418 (text_update): set_property -> update.
5419 (image_instantiate): use the glyph identity as a hash key, not the
5421 (glyph_width): use new image_instance_layout signature.
5422 (glyph_ascent): ditto.
5423 (glyph_descent): ditto.
5424 (glyph_height): ditto.
5425 (glyph_query_geometry): ressurrect.
5426 (glyph_layout): ditto.
5427 (redisplay_subwindow): update -> redisplay.
5428 (syms_of_glyphs): add Fset_instantiator_property.
5429 (image_instantiator_format_create): set_property -> update.
5432 (autodetect_normalize): add dest_maks to signature.
5433 (x_redisplay_subwindow): update -> redisplay.
5434 (x_redisplay_widget): ditto.
5435 (x_button_redisplay): ditto.
5436 (x_progress_gauge_redisplay): ditto.
5437 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5439 (console_type_create_glyphs_x): update -> redisplay.
5440 (image_instantiator_format_create_glyphs_x): ditto.
5443 (check_valid_instantiator): disallow glyphs in the instantiator,
5444 they must now be vectors.
5445 (check_valid_instantiator_list): ditto.
5446 (glyph_instantiator_to_glyph): use internal symbol rather than
5448 (widget_update): renamed from widget_set_property. Call cascaded
5450 (redisplay_widget): renamed from update_widget.
5451 (widget_layout): image_instance_layout now takes position as well
5453 (widget_normalize): ditto.
5454 (widget_instantiate): ditto.
5455 (tab_control_query_geometry) ditto.:
5456 (tab_control_update): renamed from tab_control_set_property.
5457 (progress_gauge_update): set_property -> update.
5458 (layout_normalize): rewrite so that child instantiators are
5460 (layout_update): new function. Create glyphs from the normalized
5461 children and cope with any other layout keywords. We do not
5462 instantiate children here that will be take care of by
5463 redisplay_output_layout.
5464 (layout_instantiate): call layout_update and not much else.
5465 (layout_post_instantiate): not sure whether this is needed
5467 (layout_query_geometry): query glyph geometry rather than
5468 image_instance geometry.
5469 (layout_layout): set offsets from pass in parameters. Use glyph
5470 geometry and layout functions rather than image instance ones.
5471 (native_layout_layout): ditto.
5472 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
5473 (image_instantiator_widget): set_property -> update.
5474 (image_instantiator_buttons): ditto.
5475 (image_instantiator_progress_guage): ditto.
5476 (image_instantiator_tab_control): ditto.
5477 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
5478 (image_instantiator_layout): add update method.
5480 * glyphs-msw.c (bmp_normalize):
5481 (mswindows_resource_normalize): add dest_mask so that it can be
5482 proprogated by layout_normalize.
5483 (begin_defer_window_pos): make optional because it may not be the
5484 right thing to do and it introduces differences with X.
5485 (mswindows_unmap_subwindow): ditto.
5486 (mswindows_map_subwindow): ditto.
5487 (mswindows_redisplay_subwindow): renamed from
5488 mswindows_update_subwindow.
5489 (mswindows_redisplay_widget): ditto.
5490 (mswindows_button_redisplay): renamed from
5491 mswindows_button_update. Update is now what the instantiation
5492 function does for a changed instantiator.
5493 (mswindows_progress_gauge_instantiate): set the progress value
5494 here if appropriate.
5495 (mswindows_tab_control_redisplay): cope with re-ordering of the
5496 members of the tab widget by simply selecting the new top
5497 widget. This makes things appear ok if you click on a tab.
5498 (mswindows_combo_box_instantiate): image_instance_layout now takes
5499 position as well as size.
5500 (mswindows_progress_gauge_redisplay): renamed from
5501 mswindows_progress_gauge_update.
5502 (console_type_create_glyphs_mswindows): fix update -> redisplay.
5503 (image_instantiator_format_create_glyphs_mswindows): ditto.
5505 * glyphs-eimage.c (jpeg_normalize):
5508 (tiff_normalize): add dest_mask so that it can be proprogated by
5513 (hash_table_weakness_validate):
5514 (decode_hash_table_weakness):
5515 (Fhash_table_weakness):
5517 (syms_of_elhash): use Ben's naming scheme for hashtable types..
5519 * console.h (struct console_methods): move update_* to
5522 2000-07-20 Ben Wing <ben@xemacs.org>
5524 * *.[ch] (XSETOBJ): remove unused middle argument.
5525 lisp-disunion.h: correct wrap_object() to one argument.
5527 2000-07-15 Ben Wing <ben@xemacs.org>
5530 * s/cygwin32.h (CYGWIN_CONV_PATH):
5531 Add missing logb prototype for v1.1.
5532 Use post-b20 names and alias to pre-b20 names when pre-b20.
5534 * s/windowsnt.h: [5].
5536 2000-07-15 Ben Wing <ben@xemacs.org>
5538 * Makefile.in.in (x_objs):
5539 * Makefile.in.in (sheap_objs):
5540 * Makefile.in.in (objs):
5541 added win32.o, cosmetic cleanups.
5543 * alloc.c (Fmake_byte_code):
5544 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
5545 etc. macros which declare their own args now.
5547 * alloc.c (syms_of_alloc):
5548 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
5551 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
5553 * buffer.c (Fget_file_buffer):
5554 Fixed GCPRO problem.
5556 * buffer.c (get_truename_buffer):
5557 Fixed comment about GC checking.
5559 * buffer.c (syms_of_buffer):
5560 Undeclared those dedicated frame funs.
5564 Define convenience macros for internal/external conversions.
5565 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
5566 and Qenvironment_variable_encoding for cleaner code.
5569 Remove dedicated-frame; in lisp.
5571 * bytecode.c (funcall_compiled_function):
5574 * bytecode.c (syms_of_bytecode):
5578 * console-msw.c (mswindows_show_console): Rewrote.
5580 * console-msw.c (Fmswindows_debugging_output): New.
5581 Sends to OutputDebugString (special MSWin debugger interface).
5583 * console-msw.c (Fmswindows_message_box):
5584 Fixed stupid bugs so it works when called from kill-emacs.
5586 * console-msw.c (syms_of_console_mswindows):
5587 Declare Fmswindows_debugging_output.
5590 New MSWin prototypes.
5592 * console-msw.h (struct mswindows_frame):
5593 New entry last-click-mods for improved button-modifier support.
5595 * console-msw.h (FRAME_MSWINDOWS_POPUP):
5596 New struct entry `popup' with corresponding accessor.
5599 * console-x.c (split_up_display_spec):
5600 * console-x.c (get_display_arg_connection):
5601 * console-x.c (x_semi_canonicalize_console_connection):
5602 * console-x.c (x_canonicalize_device_connection):
5603 [[[6]]]: Change char to more specific type.
5604 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
5606 * console-x.c (x_semi_canonicalize_console_connection):
5607 * console-x.c (x_canonicalize_device_connection):
5608 [[[9]]]: Fix up error signalling to use new structured error system.
5611 [[[4]]]: Define codesys aliases:
5612 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
5613 Qx_color_name_encoding, Qx_display_name_encoding.
5615 * console.h (struct console_methods):
5616 New method make_dialog_box_internal supersedes older
5617 popup_dialog_box method.
5620 Define many new errors, part of new structured errors.
5622 * data.c (init_errors_once_early):
5623 * data.c (syms_of_data):
5626 * device-msw.c (mswindows_init_device):
5627 [[[5]]]: Cleanup to support NT 3.51.
5629 * device-msw.c (decode_devmode): Cleanup.
5631 * device-msw.c (mswindows_handle_print_setup_dialog_box):
5632 * device-msw.c (mswindows_handle_print_dialog_box):
5633 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5634 * device-msw.c (syms_of_device_mswindows):
5635 Delete the dialog box primitives recently introduced by Kirill and
5636 instead interface to general dialog box interface.
5639 * device-x.c (compute_x_app_name):
5640 * device-x.c (x_init_device):
5641 * device-x.c (Fx_valid_keysym_name_p):
5642 * device-x.c (Fx_set_font_path):
5646 * device.h (wrap_device): New.
5647 First of its kind; meant to replace XSETDEVICE.
5649 * dialog-msw.c: Many file-dialog symbols.
5651 * dialog-msw.c (mswindows_register_popup_frame): New.
5652 * dialog-msw.c (mswindows_is_dialog_msg): New.
5653 For supporting kbd traversal in dialog boxes.
5655 * dialog-msw.c (dialog_proc):
5656 Support hitting ESC in dialogs.
5658 * dialog-msw.c (struct):
5659 Common dialog box errors.
5661 * dialog-msw.c (handle_file_dialog_box): New.
5662 Add file dialog code.
5664 * dialog-msw.c (handle_question_dialog_box):
5665 Redo existing code to support new question dialog syntax.
5667 * dialog-msw.c (console_type_create_dialog_mswindows):
5668 We support new dialog console method.
5670 * dialog-msw.c (syms_of_dialog_mswindows):
5671 * dialog-msw.c (vars_of_dialog_mswindows):
5672 New file dialog symbols, vars.
5675 * dialog-x.c (maybe_run_dbox_text_callback):
5676 * dialog-x.c (dbox_descriptor_to_widget_value):
5677 * dialog-x.c (x_make_dialog_box_internal):
5678 * dialog-x.c (console_type_create_dialog_x):
5679 Mule-ize entire file.
5680 Redo to support question dialog syntax.
5684 * dialog.c (Fmake_dialog_box_internal):
5685 * dialog.c (syms_of_dialog):
5686 Kill old popup-dialog-box, replace with new primitive.
5687 Just call device method or signal error.
5689 * eldap.c (Fldap_open):
5690 * eldap.c (Fldap_search_basic):
5691 * eldap.c (Fldap_add):
5692 * eldap.c (Fldap_modify):
5697 * emacs.c (make_arg_list_1):
5698 * emacs.c (make_arg_list):
5699 Mule-ize call to dll_init().
5703 * emacs.c (make_argc_argv):
5704 * emacs.c (free_argc_argv):
5705 * emacs.c (init_cmdargs):
5707 * emacs.c (Fkill_emacs):
5708 * emacs.c (Fdump_emacs):
5709 Update comments about what can be used in syms_* etc.
5710 Call init_win32() when necessary.
5711 Fix up MS Win dialog box in kill-buffer to actually work right.
5722 * eval.c (condition_case_3):
5724 * eval.c (function_argcount):
5725 * eval.c (funcall_lambda):
5728 * eval.c (type_error): New.
5729 * eval.c (maybe_type_error): New.
5730 * eval.c (continuable_type_error): New.
5731 * eval.c (maybe_continuable_type_error): New.
5732 * eval.c (type_error_with_frob): New.
5733 * eval.c (maybe_type_error_with_frob): New.
5734 * eval.c (continuable_type_error_with_frob): New.
5735 * eval.c (maybe_continuable_type_error_with_frob): New.
5736 New functions for use with structured errors.
5739 * event-Xt.c (x_event_to_emacs_event):
5740 Buttons are now modifiers too.
5742 * event-Xt.c (emacs_Xt_current_event_timestamp):
5743 Implement new event method.
5744 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
5747 * event-msw.c (ntpipe_shove_writer): [5].
5748 * event-msw.c (mswindows_enqueue_mouse_button_event):
5749 * event-msw.c (mswindows_drain_windows_queue):
5750 * event-msw.c (mswindows_wnd_proc): [7].
5751 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
5752 * event-msw.c (mswindows_modifier_state):
5753 Throughout: support new button modifiers.
5755 * event-msw.c (emacs_mswindows_current_event_timestamp):
5756 Implement new event method.
5757 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
5760 * event-stream.c (event_stream_current_event_timestamp): New.
5761 * event-stream.c (maybe_kbd_translate): New functionality.
5762 * event-stream.c (vars_of_event_stream):
5763 Document new kbd-translate-table functionality.
5765 * event-stream.c (Fcurrent_event_timestamp): New.
5766 New primitive for use in fabricated events.
5767 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
5769 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
5772 * events.c (Fmake_event):
5773 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
5777 * events.c (format_event_object): fix gcc warnings.
5779 * events.c (Fevent_timestamp): Document new primitives.
5781 * events.c (TIMESTAMP_HALFSPACE): New.
5783 * events.c (Fevent_timestamp_lessp): New. New primitive for
5784 comparing timestamps correctly (half-space algorithm).
5786 * events.c (Fevent_modifier_bits): Doc fix.
5788 * events.c (Fevent_modifiers): Major doc addition.
5789 * events.c (event_x_y_pixel_internal): Typo fix.
5790 * events.c (syms_of_events): Declare new primitives.
5793 Update long comment for button modifiers, timestamps.
5795 * events.h (struct event_stream):
5796 New current_event_timestamp method.
5799 * extents.c (extent_in_region_p):
5800 * extents.c (decode_extent):
5801 * extents.c (Fset_extent_parent):
5802 * extents.c (decode_map_extents_flags):
5806 * extents.c (struct extent_at_arg):
5807 * extents.c (decode_extent_at_flag):
5808 * extents.c (extent_at_mapper):
5809 * extents.c (extent_at_bytind):
5810 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
5811 * extents.c (Fextents_at): New primitive. [9].
5812 * extents.c (symbol_to_glyph_layout): [9].
5813 Support new primitive `extents-at'.
5816 * extents.c (get_text_property_bytind):
5817 extent_at_bytind has another arg.
5820 * extents.c (syms_of_extents): New primitive.
5822 * file-coding.c (Fmake_coding_system): [1].
5823 * file-coding.c (subsidiary_coding_system): fix gcc warning
5824 * file-coding.c (syms_of_file_coding): [2].
5826 * fileio.c (Fexpand_file_name):
5827 * fileio.c (Fsysnetunam):
5828 * fileio.c (Ffile_exists_p):
5829 * fileio.c (Ffile_executable_p):
5830 * fileio.c (Fverify_visited_file_modtime):
5833 * fileio.c (syms_of_fileio): [2].
5835 * filelock.c (lock_file_1):
5836 * filelock.c (current_lock_owner):
5837 * filelock.c (lock_if_free):
5838 * filelock.c (lock_file):
5839 * filelock.c (unlock_file):
5842 * fns.c (concat): Fix gcc warning.
5845 * fns.c (Fold_member):
5847 * fns.c (Fold_memq):
5848 * fns.c (memq_no_quit):
5850 * fns.c (Fold_assoc):
5852 * fns.c (Fold_assq):
5853 * fns.c (assq_no_quit):
5855 * fns.c (Fold_rassoc):
5857 * fns.c (Fold_rassq):
5858 * fns.c (rassq_no_quit):
5860 * fns.c (Fold_delete):
5862 * fns.c (Fold_delq):
5863 * fns.c (delq_no_quit):
5864 * fns.c (Fremassoc):
5866 * fns.c (remassq_no_quit):
5867 * fns.c (Fremrassoc):
5868 * fns.c (Fremrassq):
5869 * fns.c (remrassq_no_quit):
5874 * frame-msw.c (mswindows_init_frame_1):
5875 * frame-msw.c (mswindows_delete_frame):
5876 Register popups with dialog code so keyboard traversing works.
5878 * frame-tty.c (tty_raise_frame_no_select): [1].
5881 * frame-x.c (x_set_frame_text_value):
5882 * frame-x.c (x_set_frame_properties):
5883 * frame-x.c (x_create_widgets):
5887 * frame.c (Fmouse_pixel_position): Minor doc fixes.
5889 * frame.h (wrap_frame): New.
5890 Macro like wrap_device.
5893 * general.c (SYMBOL):
5894 * general.c (syms_of_general):
5895 Major reorg. This is now just a wrapper and symbols themselves
5896 are listed in general-slots.h.
5898 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
5899 * glyphs-msw.c (mswindows_resource_instantiate): [5].
5901 * glyphs-msw.c (mswindows_native_layout_instantiate):
5902 Add DS_CONTROL so keyboard traversal will work.
5905 * glyphs-widget.c (syms_of_glyphs_widget):
5906 Move some symbols to general-slots.h.
5909 * glyphs-x.c (xbm_instantiate_1):
5910 * glyphs-x.c (x_xbm_instantiate):
5911 * glyphs-x.c (x_xface_instantiate):
5912 * glyphs-x.c (autodetect_instantiate):
5913 * glyphs-x.c (cursor_font_instantiate):
5914 * glyphs-x.c (x_update_widget):
5915 * glyphs-x.c (x_widget_instantiate):
5916 * glyphs.c (bitmap_to_lisp_data):
5917 * glyphs.c (pixmap_to_lisp_data):
5920 * glyphs.c (syms_of_glyphs):
5924 * gui-x.c (print_widget_value):
5925 * gui-x.c (menu_separator_style_and_to_external):
5926 * gui-x.c (add_accel_and_to_external):
5927 * gui-x.c (button_item_to_widget_value):
5928 * gui-x.c (gui_items_to_widget_values_1):
5929 * gui-x.c (gui_items_to_widget_values):
5930 * gui-x.c (syms_of_gui_x):
5931 * gui-x.c (vars_of_gui_x):
5932 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
5936 Muleize, prototype changes matching gui-x.c.
5939 * gui.c (separator_string_p):
5940 * gui.c (gui_item_add_keyval_pair):
5941 * gui.c (make_gui_item_from_keywords_internal):
5942 * gui.c (signal_too_long_error):
5943 * gui.c (parse_gui_item_tree_item):
5944 * gui.c (syms_of_gui):
5945 * gui.c (vars_of_gui):
5947 menu-no-selection-hook moved here (used by MSWin).
5948 Move some symbols to general-slots.h.
5952 * insdel.c (get_buffer_pos_char):
5953 * insdel.c (get_buffer_range_char):
5956 * keymap.c (keymap_lookup_directly):
5957 * keymap.c (keymap_store):
5958 * keymap.c (ensure_meta_prefix_char_keymapp):
5959 * keymap.c (describe_map):
5961 Support new button modifiers.
5963 * lisp-disunion.h (wrap_object):
5964 * lisp-disunion.h (XSETOBJ):
5965 Rename make_obj to wrap_object.
5968 * lisp-union.h (make_int):
5969 * lisp-union.h (make_char):
5970 Support wrap_object.
5973 * lisp.h (LIST_LOOP):
5974 * lisp.h (EXTERNAL_LIST_LOOP):
5975 * lisp.h (LIST_LOOP_2):
5976 * lisp.h (EXTERNAL_LIST_LOOP_1):
5977 * lisp.h (EXTERNAL_LIST_LOOP_2):
5978 * lisp.h (EXTERNAL_LIST_LOOP_3):
5979 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
5980 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5981 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
5982 * lisp.h (EXTERNAL_ALIST_LOOP_5):
5983 * lisp.h (EXTERNAL_ALIST_LOOP_6):
5984 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
5985 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
5986 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
5987 * lisp.h (struct Lisp_Symbol):
5988 * lisp.h (maybe_continuable_error_with_frob):
5989 Fix up section comments.
5990 Add new types for char to indicate usage.
5991 Delete symbols auto-generated from general-slots.h.
5992 Add prototypes for structured error functions.
5993 Add long comments describing looping macros and change interface
5994 so that lvalues are automatically declared.
5995 Add NO_DECLARE macro in case callers want to declare lvalues
5998 * lread.c (read_syntax_error):
5999 * lread.c (continuable_read_syntax_error):
6000 * lread.c (read_structure):
6001 * lread.c (sequence_reader):
6002 * lread.c (read_list_conser):
6003 * lread.c (read_compiled_function):
6004 Rename syntax_error and continuable_syntax_error to avoid clash
6005 with same-named structured error functions.
6007 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6008 * menubar-msw.c (populate_menu_add_item):
6009 * menubar-msw.c (populate_or_checksum_helper):
6014 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6015 Mule-ize whole file.
6017 * menubar.c (Fnormalize_menu_item_name): Add optimization.
6019 * mule-charset.c (Fmake_charset):
6020 * mule-wnnfns.c (Fwnn_set_param):
6023 * ntproc.c (create_child):
6024 * ntproc.c (Fwin32_set_current_locale):
6025 Add comments portending doom.
6028 * objects-msw.c (old_font_enum_callback_2):
6029 * objects-msw.c (font_enum_callback_1):
6030 * objects-msw.c (mswindows_enumerate_fonts):
6034 * objects-x.c (allocate_nearest_color):
6035 * objects-x.c (x_parse_nearest_color):
6036 * objects-x.c (x_initialize_color_instance):
6037 * objects-x.c (x_print_color_instance):
6038 * objects-x.c (x_finalize_color_instance):
6039 * objects-x.c (x_valid_color_name_p):
6040 * objects-x.c (x_initialize_font_instance):
6041 * objects-x.c (x_print_font_instance):
6042 * objects-x.c (valid_x_font_name_p):
6043 * objects-x.c (truename_via_FONT_prop):
6044 * objects-x.c (truename_via_random_props):
6045 * objects-x.c (truename_via_XListFonts):
6046 * objects-x.c (x_font_truename):
6047 * objects-x.c (x_font_instance_truename):
6048 * objects-x.c (x_font_instance_properties):
6049 * objects-x.c (x_list_fonts):
6050 * objects-x.c (x_find_charset_font):
6051 Mule-ize entire file.
6058 * print.c (std_handle_out_external):
6059 * print.c (debug_print_no_newline):
6060 * print.c (syms_of_print):
6061 Output to all debugger kinds in debug-print.
6062 Fix console-output code under MSWin to actually work.
6064 * process-nt.c (send_signal):
6065 * process-nt.c (nt_create_process):
6066 Use newer Unicode macros.
6068 * process-unix.c (unix_create_process):
6069 * process-unix.c (unix_canonicalize_host_name):
6070 * process-unix.c (unix_open_network_stream):
6076 * search.c (syms_of_search):
6079 * select-msw.c (mswindows_destroy_selection):
6082 * select-x.c (symbol_to_x_atom):
6085 * select.c (syms_of_select):
6088 * sound.c (Fplay_sound_file):
6092 * specifier.c (decode_specifier_type):
6093 * specifier.c (Fvalid_specifier_locale_type_p):
6094 * specifier.c (check_valid_locale_or_locale_type):
6095 * specifier.c (decode_locale):
6096 * specifier.c (decode_locale_type):
6097 * specifier.c (decode_locale_list):
6098 * specifier.c (check_valid_domain):
6099 * specifier.c (decode_specifier_tag_set):
6100 * specifier.c (Fcanonicalize_tag_set):
6101 * specifier.c (Fdefine_specifier_tag):
6102 * specifier.c (Fspecifier_tag_predicate):
6103 * specifier.c (check_valid_inst_list):
6104 * specifier.c (check_valid_spec_list):
6105 * specifier.c (decode_how_to_add_specification):
6106 * specifier.c (check_modifiable_specifier):
6107 * specifier.c (specifier_add_spec):
6108 * specifier.c (boolean_validate):
6109 * specifier.c (display_table_validate):
6112 * specifier.c (syms_of_specifier):
6113 Move some symbols to general-slots.h.
6117 * symbols.c (Fmapatoms):
6118 * symbols.c (Fapropos_internal):
6121 * symbols.c (set_default_buffer_slot_variable):
6122 * symbols.c (set_default_console_slot_variable):
6125 * symbols.c (defsymbol_massage_name_1):
6126 * symbols.c (defkeyword_massage_name):
6127 * symbols.c (deferror_1):
6128 * symbols.c (deferror):
6129 * symbols.c (deferror_massage_name_and_message):
6131 * symeval.h (DEFSYMBOL):
6132 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6134 * symbols.c (syms_of_symbols):
6138 * symsinit.h (init_win32): New.
6139 Also new is syms_of_dialog_mswindows.
6142 Add new Unicode macros, missing Cygwin wide-char functions,
6143 convenience conversion macros for Qmswindows_tstr, macros for
6144 encapsulating required MSWin <-> Cygwin filename conversions,
6145 prototype for dynamically-extracted (not in NT 3.51) functions.
6150 * tooltalk.c (Fadd_tooltalk_message_arg):
6151 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6152 * tooltalk.c (Fadd_tooltalk_pattern_arg):
6155 * tooltalk.c (syms_of_tooltalk):
6159 * unexnt.c (unexec):
6160 Fix up headers, declaration of unexec() to be more standard.
6162 2000-07-20 Martin Buchholz <martin@xemacs.org>
6164 * offix.h: Revert change to guard macros - they're used in offix.c!
6166 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6168 * lisp.h: Defsubred Fdelete.
6170 * console-msw.h: (msprinter_default_printer): Added.
6172 * console-msw.c (msprinter_canonicalize_console_connection):
6173 (msprinter_canonicalize_device_connection): Added.
6175 * device-msw.c (msprinter_default_printer):
6176 (Fmswingows_get_default_printer):
6177 (signal_enum_priner_error):
6178 (Fmswingows_printer_list): Added.
6180 2000-07-19 Martin Buchholz <martin@xemacs.org>
6182 * XEmacs 21.2.35 is released.
6184 2000-07-19 Martin Buchholz <martin@xemacs.org>
6186 * select-x.c (x_handle_selection_request):
6187 Text selected in xemacs and pasted into xterm failed to appear.
6188 Spelling fixes and cosmetic changes.
6190 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6192 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6193 XEmacs frame (fix for doubling chars in dialog boxes).
6195 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6197 * select.c (select_convert_in, select_convert_out):
6198 Don't call intern() every time.
6200 * select.c (Qselect_convert_in, Qselect_convert_out): New.
6201 * select.c (vars_of_select): Initialise them.
6203 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6205 * select.c (selection-coercible-types): New.
6207 * select.c (own-selection-internal):
6208 * select.c (get-selection-internal):
6209 MULE bug fix - these should default to COMPOUND_TEXT and not
6210 STRING for MULE. I think.
6212 * select.c (select_convert_out): Use selection-coercible-types
6213 to find types that we can attempt to perform coercions on.
6215 2000-07-18 Martin Buchholz <martin@xemacs.org>
6219 Add coding: cookie to identify encoding.
6221 * mule-canna.c (CANNA_mode_keys): make static.
6222 Use proper prototypes, even for functions of no arguments.
6223 Remove external prototype for Fding().
6225 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6227 * select.c (syms_of_select): Add missing DEFSUBR.
6229 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6231 * select.c (get_selection_internal, own_selection_internal):
6232 Make the type default to STRING, rather than placing a nil type
6233 into Vselection_alist.
6235 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6237 * gpmevent.c (tty_selection_exists_p):
6238 * gpmevent.c (tty_own_selection):
6239 Updated parameter lists.
6241 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6243 * select.h (selection-alist): Removed declaration.
6245 * select.h (get_local_selection):
6246 * select.c (get_local_selection):
6249 * select.h (convert_selection): Removed declaration.
6250 * select.c (convert_selection): Removed.
6251 This function belongs in Lisp.
6253 * select.h (select_convert_in): Declare.
6254 * select.h (select_convert_out): Declare.
6255 * select.c (select_convert_in): New.
6256 * select.c (select_convert_out): New.
6257 New conversion functions for other files to call.
6259 * select.h (select_notify_buffer_kill): Declare.
6260 * select.c (select_notify_buffer_kill): New.
6261 New functions that get called from kill-buffer.
6263 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6264 X-specific lisp code.
6266 * select.h: Declare some of the lisp-visible functions for
6269 * select.c (clean_local_selection_data): Removed. This was
6270 a disgusting function, and previously should have been in
6271 select-x.c in any case. The functionality is now provided
6272 in select-convert-from-integer (select.el).
6274 * select.c (available-selection-types): Fixed stupidity where
6275 INTEGER and ATOM got added twice. Also add STRING when we see an
6278 * select.c (get-selection-internal): Removed symbol stripping. No
6279 longer causes conversion when data comes from the internal cache.
6281 * select.c (syms_of_select): Added new functions.
6283 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6284 error checking - previously this called abort!
6286 * select-x.c (x_own_selection): Changed comment.
6288 * select-x.c (x_handle_selection_request): Use select_convert_out.
6289 Don't mess with selection-alist; it's an internal variable of select.c.
6291 * select-x.c (x_get_foreign_selection): Use select_convert_in.
6293 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6294 rather than messing with selection-alist.
6296 * select-msw.c (mswindows_get_foreign_selection):
6297 Use TO_INTERNAL_FORMAT rather than hacking.
6299 2000-07-14 Martin Buchholz <martin@xemacs.org>
6301 * process-unix.c (unix_open_multicast_group):
6302 (unix_open_multicast_group): Remove useless casts.
6304 2000-07-13 Martin Buchholz <martin@xemacs.org>
6306 * sound.c (Fplay_sound): Fix `unused variable' warning.
6308 * emacs.c (main): Use correct type for _environ on SCO5.
6310 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6312 * console.h (own_selection_method):
6313 * console.h (selection_exists_p_method):
6314 * console.h (available_selection_types_method): New.
6315 * console.h (register_selection_data_type_method): New.
6316 * console.h (selection_data_type_name): New.
6318 * console-msw.h (mswindows_destroy_selection): Declare it. New
6319 function & alist to track GlobalAlloc()'d handles that need
6320 releasing when the clipboard data gets replaced or emptied.
6322 * event-msw.c (mswindows_wnd_proc): Call it.
6324 * lisp.h, general.c (Qappend): New symbol representing a
6327 * select.c (own-selection-internal):
6328 * select.c (selection-exists-p):
6329 * select.c (available-selection-types): New.
6330 * select.c (register-selection-data-type): New.
6331 * select.c (selection-data-type-name): New. New functions to deal
6332 with device-specific selection data formats.
6333 * select.c (selection-converter-out-alist): Renamed.
6334 * select.c (selection-converter-in-alist): New.
6335 * select.c (selection-appender-alist): New. Added new alists.
6336 * select.c (syms_of_select, vars_of_select): Added new symbols &
6338 * select.c (get_local_selection): Split.
6339 * select.c: Removed spurious type checking - selections may now be
6340 of any type, not just strings.
6341 * select.c (own-selection-internal):
6343 * select.h, select.c (convert_selection): New. Created
6344 convert_selection() function based on get_local_selection().
6345 * select.h, select.c (QCF_*): New symbols representing mswindows
6347 * select.h, select.c (Qreplace_all, Qreplace_existing): New
6348 symbols representing `how-to-add' modes.
6350 * select-msw.c (x_sym_p): New.
6351 * select-msw.c (symbol_to_ms_cf): New.
6352 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6353 symbols & clipboard formats. Can also handle string names.
6354 * select-msw.c (mswindows_own_selection):
6355 * select-msw.c (mswindows_selection_exists_p):
6356 Added `data-type' parameter. Use it.
6357 * select-msw.c (mswindows_available_selection_types): New.
6358 * select-msw.c (mswindows_register_selection_data_type): New.
6359 * select-msw.c (mswindows_selection_data_type_name): New.
6360 * select-msw.c (mswindows_own_selection):
6361 * select-msw.c (mswindows_get_foreign_selection):
6362 * select-msw.c (mswindows_selection_exists_p): Rewrote.
6363 * select-msw.c (console_create_select_mswindows): Added new methods.
6364 * select-msw.c (mswindows_destroy_selection): New.
6365 * select-msw.c (Vhandle_alist): New list.
6366 * select-msw.c (mswindows_own_selection):
6368 * select-x.c (x_own_selection):
6369 * select-x.c (x_selection_exists_p):
6370 * select-x.c: Added some comments about maybe using new
6372 * select-x.c (x_own_selection):
6374 * specifier.c: Remove definition of Qappend (now in general.c)
6375 * specifier.c (syms_of_specifier): Remove Qappend.
6377 2000-07-12 Martin Buchholz <martin@xemacs.org>
6379 * config.h.in: Add socklen_t.
6381 * s/decosf4-0.h: No special compiler flags needed or desired.
6382 In particular, undefine _BSD for DEC OSF 4.0.
6384 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6386 * redisplay-msw.c (msprinter_frame_output_end): Added.
6387 (console_type_create_redisplay_mswindows): Referred the above.
6389 * frame.c (setup_frame_without_minibuffer): Do not create a
6390 default minibuffer frame on a printer device.
6392 * frame-msw.c (apply_dc_geometry): Added.
6393 (msprinter_start_page):
6394 (msprinter_init_frame_3):
6395 (msprinter_eject_page): Use it.
6397 * console-msw.h (struct msprinter_frame): Added pix_left and top,
6398 and removed residual duplex and orientation properties.
6400 2000-07-11 Martin Buchholz <martin@xemacs.org>
6402 * eval.c (function_argcount): Work around a DEC CC compiler bug.
6404 * unexalpha.c: Remove system prototypes from C sources!
6406 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
6408 * eval.c: Remove references to M-x edit-options in DEFUNs for
6409 `defvar' and `defconst'.
6411 2000-07-09 Martin Buchholz <martin@xemacs.org>
6413 * config.h.in: Remove SMART_INCLUDE hackery.
6416 * config.h.in: Don't use SMART_INCLUDE.
6418 * postgresql.h: Include libpq-fe.h here. Fix typo.
6419 * inline.c: Simply #include "postgresql.h"
6421 - Don't use SMART_INCLUDE
6422 - Use simply "const".
6423 - Use standard doc string conventions.
6424 - Use correct type for result of PQstatus.
6426 2000-07-09 Martin Buchholz <martin@xemacs.org>
6428 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6430 C++ compilation changes.
6431 * config.h.in (EXTERN_C): Define.
6432 * config.h.in (not): This is also a C++ keyword.
6433 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6434 * cm.c: Use EXTERN_C.
6435 * redisplay-tty.c: Use EXTERN_C.
6436 * sysdep.c: Use EXTERN_C. Remove Gould support.
6438 2000-07-09 Martin Buchholz <martin@xemacs.org>
6440 * general.c: Remove duplicate definition for Qfunction.
6442 2000-07-08 Ben Wing <ben@xemacs.org>
6444 * device-msw.c (msprinter_init_device):
6445 * device-msw.c (sync_printer_with_devmode):
6446 * device-msw.c (handle_devmode_changes):
6447 * device-msw.c (print_dialog_worker):
6448 * device-msw.c (Fmsprinter_apply_settings):
6449 * device-msw.c (hash_devmode):
6450 * device-msw.c (Fmsprinter_settings_despecialize):
6451 use Qmswindows_tstr, not Qctext.
6453 * vm-limit.c (check_memory_limits):
6454 avoid infinite loop printing warning messages.
6456 2000-07-05 Craig Lanning <lanning@scra.org>
6458 * Makefile.in.in: Add support for including the Windows resources
6459 when building with the cygwin and mingw targets.
6461 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
6462 not set or not correct.
6463 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
6464 (init_initial_directory): Don't try to use $PWD on the
6465 WIN32_NATIVE target.
6468 [[Add -mwindows to eliminate console window.]] not required --ben
6469 (HAVE_NATIVE_SOUND): removed; now handled by configure.
6470 (MAIL_USE_POP): removed; now handled by configure.
6472 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
6473 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
6474 (HAVE_NATIVE_SOUND): removed; now handled by configure.
6475 (MAIL_USE_POP): removed; now handled by configure.
6476 (ENCAPSULATE_STAT): from Dan Holmsand, added.
6477 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
6478 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
6480 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
6481 up from <winsock.h> via systime.h.
6482 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
6483 (getpagesize): from Dan Holmsand, added.
6484 Added #endif which was left dangling by Ben's mega patch; added
6485 comment to help prevent this in the future.
6487 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
6489 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
6491 * console-msw.h (struct mswindows_device): Removed unnecessary
6492 cached device geometry values.
6493 Added update_tick and an accessor macro.
6494 (Lisp_Devmode): Added lrecord declaration.
6495 (struct msprinter_device): Contain devmode as a Lisp object.
6496 Added mswindows_get_selected_frame_hwnd();
6498 * console.h (struct console_methods): Indentation nitpicking.
6500 * device-msw.c (mswindows_init_device): Do not initialize geometry
6501 cache. Initialize update tick.
6502 (mswindows_device_system_metrics): Ask the device for its geometry.
6503 (global_free_2_maybe):
6504 (devmode_to_hglobal):
6505 (handle_printer_changes):
6506 (ensure_not_printing):
6507 (print_dialog_worker):
6508 (Fmsprinter_print_setup_dialog):
6509 (Fmsprinter_print_dialog):
6512 (Fmsprinter_page_setup_dialog): Added functions.
6513 (sync_printer_with_devmode):
6514 (handle_devmode_changes):
6515 (Fmsprinter_get_settings):
6516 (Fmsprinter_select_settings):
6517 (Fmsprinter_apply_settings):
6519 (Fmsprinter_settings_copy):
6520 (Fmsprinter_settings_despecialize):
6524 (hash_devmode): Added functions
6525 (syms_of_device_mswindows): Init devmode lrecord class.
6527 * device.h: Added an exfun for find-device.
6529 * event-msw.c (mswindows_wnd_proc): Do not update the cached
6530 geometry; although, recreate the device compatible DC.
6532 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
6533 (msprinter_init_frame_3):
6534 (msprinter_frame_property):
6535 (msprinter_internal_frame_property_p):
6536 (msprinter_frame_properties):
6537 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
6538 print job properties (will move to device settings).
6540 * lisp.h: Added symbols.
6542 * general.c (syms_of_general): Declared them.
6544 * hash.c (string_hash): Added.
6546 * lrecord.h (lrecord_type): Added devmode lrecord type.
6548 2000-07-02 Mike Sperber <mike@xemacs.org>
6550 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
6553 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
6555 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
6558 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
6560 * data.c (Fstring_to_number): Don't recognize floating point if
6563 2000-06-22 Martin Buchholz <martin@xemacs.org>
6565 * glyphs-widget.c (tab_control_query_geometry):
6566 (widget_query_geometry):
6567 (button_query_geometry):
6568 * glyphs.c (text_query_geometry):
6569 Enforce type correctness.
6571 2000-06-18 Martin Buchholz <martin@xemacs.org>
6573 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
6574 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
6576 2000-06-17 Martin Buchholz <martin@xemacs.org>
6578 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
6579 conflicts with gcc's fixincluded version of FOO.h.
6581 * glyphs.h (image_instance_geometry): Remove trailing `,'
6583 2000-06-08 Mike Alexander <mta@arbortext.com>
6585 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
6586 (shove_thread): Don't write the same output twice
6587 (make_ntpipe_output_stream): Increase priority of shove thread
6588 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
6590 (ntpipe_shove_closer): Don't delete the pipe until we're done with
6593 2000-06-12 Ben Wing <ben@xemacs.org>
6595 * s\mingw32.h (sigset):
6596 * s\windowsnt.h (sigset):
6597 rename msw_ to mswindows_ for consistency with general convention.
6599 2000-06-12 Ben Wing <ben@xemacs.org>
6602 * console-msw.c (mswindows_get_console_hwnd):
6603 * console-msw.c (mswindows_ensure_console_allocated):
6604 * console-msw.c (mswindows_hide_console):
6605 * console-msw.c (mswindows_show_console):
6606 * console-msw.c (mswindows_ensure_console_buffered):
6607 * console-msw.c (mswindows_output_console_string):
6608 * console-msw.c (mswindows_windows9x_p):
6610 * device-msw.c (mswindows_get_workspace_coords):
6611 * device-msw.c (mswindows_device_system_metrics):
6612 * dialog-msw.c (mswindows_popup_dialog_box):
6613 * event-msw.c (mswindows_wnd_proc):
6614 * frame-msw.c (mswindows_size_frame_internal):
6615 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6616 * menubar-msw.c (displayable_menu_item):
6617 * menubar-msw.c (mswindows_char_is_accelerator):
6619 * nt.c (mswindows_sigset):
6620 * nt.c (mswindows_sigrelse):
6621 * nt.c (mswindows_sigpause):
6622 * nt.c (mswindows_raise):
6623 * nt.c (timer_proc):
6625 * ntproc.c (find_child_console):
6626 * ntproc.c (sys_kill):
6628 * print.c (std_handle_out_external):
6629 * process-nt.c (find_child_console):
6630 * process-nt.c (send_signal_the_95_way):
6631 * process-nt.c (ensure_console_window_exists):
6632 * process-nt.c (nt_create_process):
6634 rename msw_ to mswindows_ for consistency with general convention.
6638 include nt.h, not syswindows.h.
6640 * nt.c (mswindows_fstat):
6641 * nt.c (mswindows_stat):
6642 prefix mswindows_ instead of attempting to directly override the
6643 library functions. fix declarations.
6646 include syswindows.h. move some sysdep.h stuff here.
6649 include syswindows.h, not <windows.h>.
6657 * sysdep.c (sys_fstat):
6658 * sysdep.c (sys_stat):
6659 call mswindows versions when appropriate.
6662 move mswin decls to nt.h.
6665 add long comment describing appropriate use of the various windows
6668 2000-06-11 Ben Wing <ben@xemacs.org>
6670 * device-x.c: Correct doc string for sixth arg of x-get-resource.
6672 2000-06-10 Ben Wing <ben@xemacs.org>
6674 * Makefile.in.in (release):
6675 Correction to make sure xemacs.exe always dumped when correct.
6679 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
6681 * buffer.c (set_buffer_internal):
6682 [[[[2]]]]: Remove HAVE_FEP code.
6684 * buffer.c (init_initial_directory):
6688 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
6692 * callproc.c (call_process_cleanup):
6693 * callproc.c (Fold_call_process_internal):
6694 * callproc.c (child_setup):
6695 * callproc.c (getenv_internal):
6696 * callproc.c (init_callproc):
6697 * callproc.c (vars_of_callproc):
6698 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
6699 __CYGWIN32__ -> CYGWIN.
6700 DOS_NT -> WIN32_NATIVE.
6701 Remove MSDOS support/references, converting to WIN32_NATIVE
6703 __MINGW32__ -> MINGW.
6704 Fix windows.h includes.
6705 Remove bogus HAVE_NTGUI.
6711 mswindows_message_outputted added for use in allowing startup
6712 errors on the console to be seen.
6714 * console-msw.c (msw_ensure_console_allocated):
6715 * console-msw.c (msw_output_console_string):
6716 * console-msw.c (DHEADER):
6717 * console-msw.c (DOPAQUE_DATA):
6718 * console-msw.c (DEVENT):
6719 * console-msw.c (DCONS):
6720 * console-msw.c (DCONSCDR):
6721 * console-msw.c (DSTRING):
6722 * console-msw.c (DVECTOR):
6723 * console-msw.c (DSYMBOL):
6724 * console-msw.c (DSYMNAME):
6727 * console-stream.c (stream_init_console):
6728 Fix text/binary problems.
6731 * device-msw.c (mswindows_finish_init_device):
6732 * device-msw.c (mswindows_delete_device):
6735 * device.c (handle_asynch_device_change):
6739 * dgif_lib.c (DGifOpenFileName):
6740 * dgif_lib.c (DGifOpenFileHandle):
6741 * dgif_lib.c (DGifGetLine):
6742 * dgif_lib.c (DGifGetPixel):
6743 Added config.h/lisp.h, fix up includes.
6750 * dired.c (file_name_completion):
6751 * dired.c (Ffile_attributes):
6752 * dired.c (syms_of_dired):
6756 * dumper.c (pdump_file_unmap):
6757 * dumper.c (pdump_load):
6761 * editfns.c (Ftemp_directory):
6762 * editfns.c (user_login_name):
6763 * editfns.c (Fuser_real_login_name):
6764 * editfns.c (get_home_directory):
6767 * elhash.c (finish_marking_weak_hash_tables):
6768 [[[[5]]]]: Fix GCC warnings.
6771 * emacs.c (mswindows_handle_hardware_exceptions):
6772 * emacs.c (make_arg_list_1):
6774 * emacs.c (Fkill_emacs):
6775 * emacs.c (Fdump_emacs):
6777 Fix problems with nested crashes, add long comment.
6779 * event-Xt.c (init_event_Xt_late):
6783 * event-msw.c (mswindows_dde_callback):
6784 * event-msw.c (mswindows_handle_sticky_modifiers):
6785 * event-msw.c (mswindows_wnd_proc):
6789 * events.c (character_to_event):
6793 * fileio.c (Ffile_name_directory):
6794 * fileio.c (Ffile_name_nondirectory):
6795 * fileio.c (directory_file_name):
6796 * fileio.c (Fexpand_file_name):
6797 * fileio.c (Fsubstitute_in_file_name):
6798 * fileio.c (Ffile_name_absolute_p):
6799 * fileio.c (check_executable):
6800 * fileio.c (Ffile_readable_p):
6801 * fileio.c (Ffile_accessible_directory_p):
6802 * fileio.c (Ffile_modes):
6803 * fileio.c (Funix_sync):
6804 * fileio.c (vars_of_fileio):
6807 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
6809 Expand getdefdir defn.
6810 Fix bogus rename() comment.
6812 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
6813 to use standard XEmacs include files, e.g. sysfile.h, rather
6814 than system-specific includes.
6820 * frame.c (vars_of_frame):
6824 * getloadavg.c (getloadavg):
6826 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
6827 (We don't use it elsewhere in the code; just add a comment.)
6834 * glyphs-msw.c (mswindows_resource_instantiate):
6837 * glyphs-x.c (x_native_layout_instantiate):
6840 * gui-msw.c (Fmswindows_shell_execute):
6849 * lread.c (locate_file_in_directory_mapper):
6856 * mem-limits.h (get_lim_data):
6868 * nt.c (rva_to_section):
6869 * nt.c (mswindows_executable_type):
6871 Fix closedir() defn.
6874 [[[[8]]]]: *_OK defs moved to sysfile.h.
6883 * print.c (std_handle_out_external):
6887 * process-nt.c (nt_create_process):
6889 try to fix process quoting somewhat.
6891 * process-unix.c (unix_create_process):
6895 * process.c (vars_of_process):
6902 * realpath.c (xrealpath):
6905 * redisplay-tty.c (init_tty_for_redisplay):
6915 * sheap.c (more_static_core):
6916 * sheap.c (report_sheap_usage):
6920 * signal.c (alarm_signal):
6927 * strftime.c (zone_name):
6930 * symsinit.h (init_sunpro):
6934 commctrl.h not in Cygwin b20.1.
6938 * sysdep.c (sys_subshell):
6939 * sysdep.c (init_baud_rate):
6940 * sysdep.c (emacs_get_tty):
6941 * sysdep.c (emacs_set_tty):
6942 * sysdep.c (tty_init_sys_modes_on_device):
6943 * sysdep.c (init_system_name):
6944 * sysdep.c (sys_open):
6945 * sysdep.c (interruptible_open):
6946 * sysdep.c (sys_fopen):
6947 * sysdep.c (sys_mkdir):
6948 * sysdep.c (sys_rename):
6949 * sysdep.c (get_process_times_1):
6956 * sysdir.h (DIRENTRY_NONEMPTY):
6959 * sysdll.c (dll_init):
6965 added text/binary defs.
6971 * sysproc.h (EDESTADDRREQ):
6972 * sysproc.h (poll_fds_for_input):
6989 Always define WIN32_LEAN_AND_MEAN.
6991 * unexcw.c (unexec):
6995 * unexec.c (copy_text_and_data):
6996 * unexec.c (adjust_lnnoptrs):
7000 * unexnt.c (_start):
7003 2000-06-07 Ben Wing <ben@xemacs.org>
7005 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
7006 was used only as a model. We've long since extracted any useful
7007 logic or code out of this. (I just did an exhaustive search.)
7009 * s\msdos.h: Removed.
7011 * s\windows95.h: Removed.
7013 2000-06-10 Ben Wing <ben@xemacs.org>
7017 Don't use extern with fun defs.
7021 Remove nt\inc include.
7022 Remove getdisk, getdefdir. (The former is unused, the latter
7023 expanded in fileio.h.)
7026 * s\windowsnt.h (WIN32_NATIVE):
7027 * s\windowsnt.h (HAVE_STRCASECMP):
7029 Add long comment about preprocessor changes.
7030 Remove getdisk, getdefdir. (The former is unused, the latter
7031 expanded in fileio.h.)
7033 2000-06-10 Ben Wing <ben@xemacs.org>
7042 Remove bogus/unused NO_SOCK_SIGIO.
7044 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
7046 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7049 2000-06-04 Mike Sperber <mike@xemacs.org>
7051 * casetab.c (set_case_table): For `set-standard-case-table',
7052 actually deposit the new case tables where the rest of XEmacs can
7055 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
7057 * data.c (Faset): Don't cast XCHAR() to unsigned char.
7059 2000-06-05 Ben Wing <ben@xemacs.org>
7061 * callproc.c (child_setup): Don't do close_load_descs() under
7062 MS Windows. Put in a comment explaining why.
7064 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
7066 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7067 Toolkit shell" which breaks `kill-compilation' on Windows NT
7068 native, retaining STDERR handling improvements.
7070 2000-06-01 Andreas Jaeger <aj@suse.de>
7072 * s/s390.h: Support for S390, based on a patch by Martin
7073 Schwidefsky <schwidefsky@de.ibm.com>.
7075 2000-05-30 Andy Piper <andy@xemacs.org>
7077 * window.c (allocate_window):
7078 (make_dummy_parent):
7079 (Fset_window_configuration): use new hashtable type.
7081 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7082 (struct image_instantiator_methods):
7083 (struct Lisp_Image_Instance): make instance geometry signed.
7085 * glyphs.c (instantiate_image_instantiator):
7086 (image_instance_query_geometry):
7087 (image_instance_layout):
7088 (image_instance_layout):
7089 (query_string_geometry):
7090 (text_query_geometry):
7091 (image_instantiate):
7092 (image_instantiate):
7093 (cache_subwindow_instance_in_frame_maybe):
7094 (subwindow_query_geometry): make instance geometry signed.
7096 * glyphs-widget.c (widget_query_geometry):
7098 (button_query_geometry):
7099 (tree_view_query_geometry):
7100 (tab_control_query_geometry):
7101 (layout_query_geometry):
7103 (native_layout_layout): make instance geometry signed.
7105 2000-05-29 Olivier Galibert <galibert@pobox.com>
7107 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7110 * general.c (syms_of_general): Add Qfull_assoc symbol.
7112 * data.c (finish_marking_weak_lists): Mark full-assoc lists
7114 (decode_weak_list_type): Decode full-assoc type.
7115 (encode_weak_list_type): Encode full-assoc type.
7116 (Fmake_weak_list): Update doc string.
7118 2000-05-30 Andy Piper <andy@xemacs.org>
7120 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7122 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7123 (decode_hash_table_weakness): ditto.
7124 (Fhash_table_weakness): ditto.
7125 (Fhash_table_type): ditto.
7126 (finish_marking_weak_hash_tables): ditto.
7127 (hash_table_weakness_validate): ditto.
7128 (syms_of_elhash): ditto.
7130 2000-05-28 Martin Buchholz <martin@xemacs.org>
7132 * XEmacs 21.2.34 is released.
7134 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
7136 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7138 (updating_line_start_cache): Gone.
7139 (regenerate_window): Replace resetting of VERTICAL_CLIP by
7140 generic code to force a minimum of 1 line laid out in the
7143 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
7145 * glyphs.c (instantiate_image_instantiator): Check for initialized
7146 height & width no longer special cases IMAGE_NOTHING.
7147 (nothing_instantiate): Set height and width of instance.
7149 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
7151 * unexelf.c (unexec): Search for ".data" section.
7152 Initialize new_data2_offset from old_data_index.
7153 Remove redundant check for ElfW.
7155 2000-05-23 Andy Piper <andy@xemacs.org>
7157 * glyphs.c (get_image_instantiator_governing_domain): allow more
7158 specific domains as the governing domain rather than expecting an
7159 exact match. This fixes problems with layouts.
7161 2000-05-22 Andy Piper <andy@xemacs.org>
7163 * redisplay-output.c (compare_runes): check for non-images
7165 * glyphs.c (set_glyph_dirty_p): ditto.
7166 (update_glyph_cachel_data): ditto.
7168 * glyphs-widget.c (layout_post_instantiate): ditto.
7169 (layout_post_instantiate): ditto.
7171 * event-msw.c (mswindows_wnd_proc): warning removal.
7173 2000-05-12 Craig Lanning <CraigL@DyCon.com>
7175 * s\mingw32.h: Added #undef for CLASH_DETECTION.
7177 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7179 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7181 * nt.c (rva_to_section): mingw32 needs rva_to_section.
7182 (mswindows_executable_type): mingw32 now has enough headers for
7185 2000-05-20 Andy Piper <andy@xemacs.org>
7187 * console-msw.c (mswindows_output_last_error): ; -> ,
7189 2000-05-12 Andy Piper <andy@xemacs.org>
7191 * console-msw.c (FROB): compare ints with ints.
7193 2000-05-11 Andy Piper <andy@xemacs.org>
7195 * glyphs-x.c (x_finalize_image_instance): make minimal build
7198 2000-05-20 Ben Wing <ben@xemacs.org>
7201 * event-Xt.c (vars_of_event_Xt):
7202 move modifier-keys-are-sticky to event-stream.c.
7205 * event-msw.c (mswindows_enqueue_mouse_button_event):
7206 * event-msw.c (key_needs_default_processing_p):
7207 * event-msw.c (XEMSW_LCONTROL):
7208 * event-msw.c (mswindows_handle_sticky_modifiers):
7209 * event-msw.c (FROB):
7210 * event-msw.c (clear_sticky_modifiers):
7211 * event-msw.c (output_modifier_keyboard_state):
7212 * event-msw.c (output_alt_keyboard_state):
7213 * event-msw.c (mswindows_wnd_proc):
7214 * event-msw.c (mswindows_modifier_state):
7215 * event-msw.c (emacs_mswindows_handle_magic_event):
7216 implement sticky modifiers.
7219 * event-stream.c (vars_of_event_stream):
7220 move modifier-keys-are-sticky here.
7226 implement map-range-table.
7229 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
7231 * redisplay-tty.c (reset_tty_modes):
7232 (tty_redisplay_shutdown): Adjust argument type to
7233 tty_frame_output_end.
7235 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
7237 * eval.c (Fbacktrace): Don't output a line with only right
7240 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
7242 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7243 (Fpq_reset_poll): Ditto.
7245 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
7247 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7249 2000-05-16 Ben Wing <ben@xemacs.org>
7252 * buffer.c (dfc_convert_to/from_internal_format):
7253 * buffer.c (reinit_vars_of_buffer):
7254 Fix conversion functions to allow reentrancy.
7257 * console-msw.c (mswindows_output_last_error):
7258 New fun, generally useful -- output a human-readable
7259 version of GetLastError() on the console.
7262 * console-msw.h (struct mswindows_frame):
7263 Changes for DeferWindowPos. Declare mswindows_output_last_error().
7265 * console-stream.c (stream_output_begin):
7266 * console-stream.c (stream_output_end):
7267 * console-stream.c (stream_output_vertical_divider):
7268 * console-stream.c (stream_clear_region):
7269 * console-stream.c (stream_flash):
7270 * console-stream.c (console_type_create_stream):
7271 Delete blank stream methods, not needed.
7273 * console.h (struct console_methods):
7274 Split begin/end methods into window and frame.
7277 * event-msw.c (mswindows_handle_paint):
7278 * event-msw.c (output_alt_keyboard_state):
7279 * event-msw.c (mswindows_wnd_proc):
7280 * event-msw.c (vars_of_event_mswindows):
7281 Comment about problems with ignored-expose.
7282 Define mswindows-debug-events; not really implemented.
7284 * frame-msw.c (mswindows_init_frame_1):
7288 * glyphs-msw.c (begin_defer_window_pos):
7289 * glyphs-msw.c (mswindows_unmap_subwindow):
7290 * glyphs-msw.c (mswindows_map_subwindow):
7291 * glyphs-msw.c (mswindows_resize_subwindow):
7292 Use DeferWindowPos to reduce flashing when mapping/unmapping.
7294 * glyphs.c (make_image_instance_1):
7297 * gutter.c (Fredisplay_gutter_area):
7298 Use new begin/end methods.
7300 * lisp.h (Dynarr_new2):
7304 * redisplay-msw.c (mswindows_frame_output_begin):
7305 * redisplay-msw.c (mswindows_frame_output_end):
7306 * redisplay-msw.c (console_type_create_redisplay_mswindows):
7307 New begin/end methods -- handle DeferWindowPos.
7309 * redisplay-output.c (redisplay_move_cursor):
7310 * redisplay-output.c (redraw_cursor_in_window):
7311 * redisplay-output.c (redisplay_update_line):
7312 * redisplay-output.c (redisplay_output_window):
7313 New begin/end methods.
7316 * redisplay-tty.c (tty_frame_output_begin):
7317 * redisplay-tty.c (tty_frame_output_end):
7318 * redisplay-tty.c (console_type_create_redisplay_tty):
7319 New begin/end methods.
7322 * redisplay-x.c (x_window_output_begin):
7323 * redisplay-x.c (x_window_output_end):
7324 * redisplay-x.c (console_type_create_redisplay_x):
7325 New begin/end methods.
7327 * redisplay.c (redisplay_frame):
7328 * redisplay.c (Fredisplay_echo_area):
7329 New begin/end methods.
7330 use MAYBE_DEVMETH for clear_frame; it may not exist.
7332 * window.h (WINDOW_XFRAME):
7333 WINDOW_XFOO macros -- get locale and decode struct pointer.
7336 2000-05-12 Ben Wing <ben@xemacs.org>
7339 * emacs.c (ensure_no_quitting_from_now_on):
7340 * emacs.c (fatal_error_signal):
7341 * emacs.c (mswindows_handle_hardware_exceptions):
7343 * emacs.c (Fkill_emacs):
7344 * emacs.c (shut_down_emacs):
7345 * emacs.c (assert_failed):
7346 various improvements in fatal error handling.
7349 move preparing_for_armageddon to emacs.c.
7352 declare fatal_error_in_progress.
7355 * print.c (std_handle_out_external):
7356 * print.c (std_handle_out_va):
7357 * print.c (stderr_out):
7358 * print.c (stdout_out):
7359 use console under mswin when no standard output.
7360 don't do code conversion during fatal error.
7362 * scrollbar.c (Fscrollbar_page_up):
7363 * scrollbar.c (Fscrollbar_page_down):
7364 fix missing else. reindent.
7366 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
7370 * glyphs.h (GLYPH_CACHEL_DESCENT):
7371 (GLYPH_CACHEL_DESCENT):
7372 (GLYPH_CACHEL_DESCENT):
7373 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7374 used in case these are inline functions.
7375 Use more absurd values to error check.
7377 include window.h for error check functions.
7379 2000-05-11 Ben Wing <ben@xemacs.org>
7381 * cmdloop.c (Freally_early_error_handler):
7382 Display message box under windows; otherwise, message will disappear
7383 before it can be viewed.
7386 * console-msw.c (Fmswindows_message_box):
7387 * console-msw.c (FROB):
7388 * console-msw.c (syms_of_console_mswindows):
7389 Define new fun `mswindows-message-box'.
7390 #### I will merge this into `popup-dialog-box'; just give me
7394 * general.c (syms_of_general):
7395 Some new symbols used in `mswindows-message-box'.
7398 * glyphs.c (Fset_image_instance_property):
7399 put warning in this fun.
7402 * glyphs.h (GLYPH_CACHEL_WIDTH):
7403 * glyphs.h (GLYPH_CACHEL_ASCENT):
7404 * glyphs.h (GLYPH_CACHEL):
7405 * glyphs.h (GLYPH_CACHEL_GLYPH):
7406 define error-checking versions to try to catch a bug i've seen --
7407 redisplay gets in an infinite loop because the glyph width of the
7408 continuation glyph is 65535.
7411 Extern message-box stuff.
7413 * window.c (allocate_window):
7414 * window.c (make_dummy_parent):
7415 * window.c (Fset_window_configuration):
7416 Use EQUAL not EQ for subwindow caches to make them work a bit
7417 better. (Something is still very broken.)
7420 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
7422 * glyphs.c (image_instantiate): Suppress gcc warnings.
7423 (Fmake_image_instance): Fix doc string.
7424 * specifier.c (Fmake_specifier): Ditto.
7426 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
7428 * paths.h.in (PATH_LOCK): Removed.
7429 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7430 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7432 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
7434 * fns.c (Ffeaturep): Update e-mail address in doc-string.
7435 Document (featurep '(and xemacs 21.02)).
7437 2000-05-09 Ben Wing <ben@xemacs.org>
7439 * buffer.c (complex_vars_of_buffer):
7440 update modeline-format doc.
7443 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7446 timeline of all released versions of Emacs, for use in creating
7447 authorship comments and in synching up.
7449 * glyphs-widget.c (image_instantiator_buttons):
7450 * glyphs-widget.c (image_instantiator_edit_fields):
7451 * glyphs-widget.c (image_instantiator_combo_box):
7452 * glyphs-widget.c (image_instantiator_scrollbar):
7453 * glyphs-widget.c (image_instantiator_progress_guage):
7454 * glyphs-widget.c (image_instantiator_tree_view):
7455 * glyphs-widget.c (image_instantiator_tab_control):
7456 * glyphs-widget.c (image_instantiator_labels):
7457 * glyphs-widget.c (image_instantiator_layout):
7458 * glyphs-widget.c (image_instantiator_native_layout):
7459 rename decode_domain method to governing_domain.
7462 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
7463 * glyphs.c (add_entry_to_device_ii_format_list):
7464 make sure we don't put an entry more than once into the list.
7465 * glyphs.c (check_instance_cache_mapper):
7466 *************************************************************
7467 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7469 *************************************************************
7470 * glyphs.c (get_image_instantiator_governing_domain):
7471 clean up, expand on new concept of governing domain.
7472 * glyphs.c (instantiate_image_instantiator):
7473 * glyphs.c (allocate_image_instance):
7474 use governing_domain instead of cache_domain in naming.
7475 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
7476 * glyphs.c (make_image_instance_1):
7477 * glyphs.c (Fmake_image_instance):
7478 allow for any domain (not just device), and process the
7479 governing domain correctly. very big doc fix.
7480 * glyphs.c (Fimage_instance_domain):
7481 new primitive, to retrieve the governing domain of an image instance.
7482 * glyphs.c (image_instantiate):
7483 use new governing_domain stuff. this fixes a crash you could get
7484 by instantiating certain widget glyphs in frame locales. (should
7485 signal an error instead of crashing.)
7486 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
7487 * glyphs.c (Fglyphp): clean up doc.
7488 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
7489 * glyphs.c (syms_of_glyphs):
7490 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
7491 * glyphs.c (image_instantiator_format_create): add some comments about
7493 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
7494 for current-display-table. (Apparently Hrjove implemented in 1998 a
7495 design I wrote up in 1996, but didn't update the doc string.)
7497 * glyphs.h: clean up a doc string.
7498 * glyphs.h (governing_domain):
7499 * glyphs.h (struct image_instantiator_methods):
7500 changes for governing_domain stuff.
7503 * gutter.c (Fgutter_specifier_p):
7504 * gutter.c (Fgutter_size_specifier_p):
7505 * gutter.c (Fgutter_visible_specifier_p):
7507 * objects.c (Fcolor_specifier_p):
7508 * objects.c (Ffont_specifier_p):
7509 * objects.c (Fface_boolean_specifier_p):
7510 doc strings moved to make-*-specifier.
7512 * redisplay.c (add_disp_table_entry_runes_1):
7513 * redisplay.c (generate_fstring_runes):
7514 * redisplay.c (screen):
7515 add random comments and doc strings.
7518 * specifier.c (Fmake_specifier):
7519 major overhaul of this doc string.
7521 * specifier.c (Fvalid_specifier_domain_p):
7522 comment about the bogosity of image instances being domains.
7523 * specifier.c (decode_domain):
7524 now non-static, used in glyphs.c.
7525 * specifier.c (specifier_instance):
7526 comment about the bogosity of image instances being domains.
7527 * specifier.c (Fgeneric_specifier_p):
7528 move doc string to make-generic-specifier.
7529 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
7533 * specifier.h (DOMAIN_FRAME):
7534 * specifier.h (DOMAIN_LIVE_P):
7535 * specifier.h (DOMAIN_XDEVICE):
7537 add comments about problems with these macros.
7538 prototype for decode_domain.
7541 * toolbar.c (Ftoolbar_specifier_p):
7542 move doc string to `make-toolbar-specifier'.
7544 * window.c (window_unmap_subwindows_cache_mapper):
7545 *************************************************************
7546 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7548 *************************************************************
7550 2000-05-09 Andy Piper <andy@xemacs.org>
7552 * glyphs.h: declare reset_frame_subwindow_instance_cache.
7554 * window.c (Fset_window_configuration): reset the frame subwindow
7555 cache and re-initialize the window subwindow caches.
7557 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
7559 2000-05-09 Ben Wing <ben@xemacs.org>
7561 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
7564 2000-04-26 Mike Woolley <mike@bulsara.com>
7566 * ntheap.c: Changed recreate_heap to limit the amount reserved
7567 for the heap to that which is actually available. Also now
7568 displays a message box (with some dignostics) in the event that
7569 it still can't start.
7571 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
7573 * callproc.c (Fold_call_process_internal): GCPRO path
7575 2000-05-08 Jan Vroonhof <jan@xemacs.org>
7577 Patch by Bill Perry.
7579 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
7580 back data instead of #ifdef.
7581 (Fscrollbar_page_down): ditto.
7583 2000-05-07 Ben Wing <ben@xemacs.org>
7586 Kludge for defining Qmswindows_tstr.
7589 * nt.c (open_input_file):
7590 * nt.c (open_output_file):
7591 * nt.c (rva_to_section):
7592 * nt.c (mswindows_executable_type):
7593 Move all memory-mapped-file routines here (some were in unexnt.c,
7594 which is bad because they are used by process-nt.c, and unexnt
7595 won't be around when portable dumping). Synched the above routines
7599 Removed ifdef'd out bogus code.
7600 Fixed some prototypes.
7603 * nt.h (OFFSET_TO_RVA):
7604 * nt.h (RVA_TO_OFFSET):
7605 * nt.h (RVA_TO_PTR):
7606 Moved the memory-mapped-file structures, macros and prototypes
7607 here, to parallel nt.c. ntheap.h should really be removed
7608 entirely, and it's a non-portable-dumper specific file.
7610 * ntheap.h (round_to_next):
7611 Moved the memory-mapped-file structures, macros and prototypes
7614 * ntproc.c (compare_env):
7615 Moved rva_to_section and mswindows_executable_type to nt.c.
7616 Moved compare_env to process-nt.c.
7617 ntproc.c will die, one day.
7619 * ntproc.c (sys_spawnve):
7620 Account for win32_ -> mswindows_.
7623 * process-nt.c (struct nt_process_data):
7624 * process-nt.c (ensure_console_window_exists):
7625 * process-nt.c (compare_env):
7626 * process-nt.c (nt_create_process):
7627 * process-nt.c (nt_kill_process_by_pid):
7628 * process-nt.c (syms_of_process_nt):
7629 * process-nt.c (vars_of_process_nt):
7630 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
7631 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
7632 changes). Eliminate our old `nt-quote-process-args' mechanism.
7633 Synch up nt_create_process with FSF 20.6 sys_spawnve.
7634 Move compare_env here from ntproc.c.
7636 * process.c (Fprocess_send_region):
7637 Takes an optional fourth argument, BUFFER, which should fix some
7638 problems with call-process.
7641 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
7644 Move ICC_BAR_CLASSES to syscommctrl.h.
7645 Add preliminary macros for MSWindows/Mule. More to come.
7648 * unexnt.c (unexec):
7649 open_output_file moved to nt.c.
7652 2000-05-05 Andy Piper <andy@xemacs.org>
7654 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
7655 instance from the frame cache also since GC may catch up too late
7656 to make frame deletion sane.
7658 2000-05-04 Andy Piper <andy@xemacs.org>
7660 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
7661 (x_finalize_image_instance): ungcpro on deletion.
7663 * glyphs.c (image_instantiator_format_create): give pointers a
7664 query geometry method so that the geometry is at least set.
7666 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
7667 initialize layouts if using widgets.
7669 2000-05-03 Andy Piper <andy@xemacs.org>
7671 * nt.c: remove bogus reference to sysmmsystem.h
7673 * gui-x.c (popup_selection_callback): fix no selection abort.
7675 2000-05-02 Andy Piper <andy@xemacs.org>
7677 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
7678 (mswindows_widget_instantiate): ditto.
7680 * glyphs-widget.c (initialize_widget_image_instance): initialize
7682 (widget_instantiate): cope with children and items in the same
7685 * glyphs.c (mark_image_instance): cope with children as a first
7687 (image_instance_equal): ditto.
7688 (image_instance_hash): ditto.
7689 (image_instance_changed): ditto.
7691 2000-04-30 Andy Piper <andy@xemacs.org>
7693 * glyphs.c (subwindow_query_geometry): new function. Return some
7695 (subwindow_instantiate): don't assign dimensions if none have been
7697 (image_instantiator_format_create): add subwindow_query_geometry.
7698 (print_image_instance): cope with layouts as widgets.
7700 2000-04-29 Andy Piper <andy@xemacs.org>
7702 * frame.c (delete_frame_internal): call
7703 free_frame_subwindow_instance_cache so that all subwindows are
7704 finalized before their parent.
7705 (mark_frame): remove subwindow_cachels.
7706 (Fmake_frame): remove subwindow_cachel manipulation.
7707 (allocate_frame_core): subwindow_instance_cache is a weak list.
7708 (delete_frame_internal): set subwindow_instance_cache to nil.
7710 * glyphs-msw.c (mswindows_finalize_image_instance): make double
7712 (mswindows_finalize_image_instance): use the device
7713 not the domain as the domain may have died already.
7715 * glyphs-x.c (x_finalize_image_instance): ditto.
7716 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
7719 * redisplay-output.c (redisplay_unmap_subwindows): update for
7720 subwindow instance cache as a weak list.
7721 (redisplay_unmap_subwindows_maybe): ditto.
7722 (redisplay_unmap_subwindows_except_us): ditto.
7724 * glyphs.c (unmap_subwindow): error checking will check the domain
7725 so don't deal with it here. Don't use cachels anymore.
7726 (map_subwindow): ditto.
7727 (update_subwindow_cachel_data): remove old accessor names.
7728 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
7729 (Fresize_subwindow): don't update cachel.
7730 (mark_subwindow_cachels):
7731 (update_subwindow_cachel_data):
7732 (add_subwindow_cachel):
7733 (get_subwindow_cachel_index):
7734 (update_subwindow_cachel):
7735 (reset_subwindow_cachels):
7736 (mark_subwindow_cachels_as_not_updated): deleted.
7737 (cache_subwindow_instance_in_frame_maybe): new function. Add a
7738 subwindow instance to the frame cache.
7739 (find_matching_subwindow): update for subwindow instance cache as
7741 (update_widget_instances): ditto.
7742 (image_instance_type_to_mask):inlined.
7743 (free_frame_subwindow_instance_cache): new function. finalize all
7744 subwindows that are instantiated.
7746 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
7747 of cachel information.
7748 (IMAGE_INSTANCE_DISPLAY_X):
7749 (IMAGE_INSTANCE_DISPLAY_Y):
7750 (IMAGE_INSTANCE_DISPLAY_WIDTH):
7751 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
7752 (XIMAGE_INSTANCE_DISPLAY_X):
7753 (XIMAGE_INSTANCE_DISPLAY_Y):
7754 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
7755 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
7756 remove subwindow_cachel structure and function references.
7757 (image_instance_type_to_mask): inline from glyphs.c
7759 * redisplay.c (redisplay_frame): remove subwindow_cachel
7762 * frame.h (struct frame): remove subwindow_cachels.
7763 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
7765 * frameslots.h: add subwindow_instance_cache.
7767 * window.c (replace_window): check subwindow cache of replacement.
7768 (window_unmap_subwindows_cache_mapper):
7769 (window_unmap_subwindows): new functions. Unmap all subwindows
7770 cached on this window.
7771 (mark_window_as_deleted): unmap all subwindows.
7773 2000-04-27 Andy Piper <andy@xemacs.org>
7775 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
7777 * glyphs-widget.c (widget_layout): return something.
7778 (layout_layout): return something. Fail if not initialized.
7779 (layout_query_geometry): ditto.
7780 (image_instantiator_native_layout): new function. Initialized the
7782 (widget_instantiate): don't do layout stuff here.
7784 * glyphs.c (instantiate_image_instantiator): reorded calling or
7785 instantiate and post_instantiate with layout in between.
7786 (image_instance_layout): be more selective about deciding whether
7787 the layout has been done or not.
7789 * glyphs.h (struct image_instantiator_methods): return a value
7792 2000-04-26 Andy Piper <andy@xemacs.org>
7794 * glyphs.c (allocate_image_instance): make initial width and
7795 height unspecified. Set initialized to 0.
7797 * syscommctrl.h new file. Encapsulates commctrl.h.
7799 * syswindows.h new file. Encapsulates windows.h.
7801 * ntplay.c: use new syswindows.h and syscommctrl.h header.
7803 * console-msw.h: ditto.
7805 * redisplay-tty.c (tty_output_display_block): remove layout references.
7807 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
7808 window handle rather than just the frame.
7810 * glyphs.c (mark_image_instance): remove layout references.
7811 (print_image_instance): ditto.
7812 (image_instance_equal): ditto.
7813 (image_instance_hash): ditto.
7814 (decode_image_instance_type): ditto.
7815 (encode_image_instance_type): ditto.
7816 (image_instantiate): ditto.
7817 (allocate_glyph): ditto.
7818 (Fimage_instance_height): ditto.
7819 (Fimage_instance_width): ditto.
7820 (update_subwindow): ditto.
7822 * redisplay-x.c (x_output_display_block): recode for layouts as
7825 * redisplay-output.c (redisplay_output_layout): recode for layouts
7827 (compare_runes): remove layout references.
7829 * redisplay-msw.c (mswindows_output_display_block): recode for
7832 * glyphs-widget.c (image_instantiator_layout): remove
7833 layout_possible_dest_types.
7834 (layout_possible_dest_types): deleted.
7836 * glyphs.h (image_instance_type): remove layout references.
7837 (struct Lisp_Image_Instance): ditto. Add initialized flag.
7838 (IMAGE_INSTANCE_INITIALIZED): new accessor.
7839 (XIMAGE_INSTANCE_INITIALIZED): ditto.
7841 2000-04-25 Andy Piper <andy@xemacs.org>
7843 * glyphs-widget.c (image_instantiator_buttons):
7844 (image_instantiator_edit_fields):
7845 (image_instantiator_combo_box):
7846 (image_instantiator_scrollbar):
7847 (image_instantiator_progress_guage):
7848 (image_instantiator_tree_view):
7849 (image_instantiator_tab_control):
7850 (image_instantiator_labels):
7851 (image_instantiator_layout): call default post_instantiate method.
7852 (widget_post_instantiate): new function. Simply lays out the
7855 * glyphs.h (struct image_instantiator_methods): add
7856 post_instantiate method.
7858 * glyphs.c (instantiate_image_instantiator): add post_instantiate
7861 2000-04-23 Andy Piper <andy@xemacs.org>
7863 * glyphs.h (struct image_instantiator_methods): add
7864 decode_domain_method.
7865 (struct Lisp_Image_Instance): remove subwindow frame - it can be
7866 derived from the domain.
7867 (IMAGE_INSTANCE_FRAME): new accessor.
7868 (XIMAGE_INSTANCE_FRAME): ditto.
7870 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
7871 instead of _SUBWINDOW_FRAME.
7872 (finalize_image_instance): ditto.
7873 (Fimage_instance_foreground): ditto.
7874 (Fimage_instance_background): ditto.
7875 (image_instantiate): ditto.
7876 (update_subwindow_cachel): ditto.
7877 (update_subwindow): ditto.
7878 (unmap_subwindow): ditto.
7879 (map_subwindow): ditto
7880 (subwindow_instantiate): ditto.
7881 * glyphs-msw.c (mswindows_update_widget): ditto.
7882 (mswindows_progress_gauge_instantiate): ditto.
7883 (mswindows_tab_control_update): ditto.
7884 * glyphs-x.c (x_update_widget): ditto.
7885 (x_widget_instantiate): ditto.
7886 (x_tab_control_instantiate): ditto.
7887 (x_tab_control_update): ditto.
7888 * event-msw.c (mswindows_wnd_proc): ditto
7890 * glyphs-widget.c (image_instantiator_layout): use
7891 subwindow_decode_domain.
7892 (image_instantiator_buttons): ditto.
7893 (image_instantiator_edit_fields): ditto.
7894 (image_instantiator_combo_box): ditto.
7895 (image_instantiator_scrollbar): ditto.
7896 (image_instantiator_progress_guage): ditto.
7897 (image_instantiator_tree_view): ditto.
7898 (image_instantiator_tab_control): ditto.
7899 (image_instantiator_labels): ditto.
7900 (image_instantiator_layout): ditto.
7902 * glyphs.c: add instance error checking to many functions.
7903 (instantiate_image_instantiator): decode device from cache_domain.
7904 (image_instantiate): partially rewrite by using
7905 decode_image_instantiator_domain to determine what domain the
7906 instance needs to be cached in.
7907 (decode_image_instantiator_domain): new function. Determine what
7908 domain the image needs to be cached in.
7909 (check_window_subwindow_cache): new error checking function.
7910 (check_instance_cache_mapper): ditto.
7911 (check_image_instance_structure): ditto.
7912 (subwindow_decode_domain): new function. Encodes a window as a
7913 subwindow's cache domain.
7914 (image_instantiator_format_create): use it for text and
7917 2000-04-21 Andy Piper <andy@xemacs.org>
7919 * glyphs.c (image_instance_device): new function.
7920 (image_instance_frame): new function.
7921 (image_instance_window): new function.
7922 (image_instance_live_p): new function.
7924 * window.c (mark_window_as_deleted): reset the subwindow_instance_
7927 * glyphs.h (struct Lisp_Image_Instance): device->domain.
7928 (IMAGE_INSTANCE_DOMAIN): new accessor.
7929 (XIMAGE_INSTANCE_DOMAIN): ditto.
7931 * glyphs-x.c (x_finalize_image_instance): device->domain.
7933 * glyphs-msw.c (init_image_instance_geometry): device->domain.
7934 (mswindows_finalize_image_instance): ditto.
7936 * glyphs-eimage.c (jpeg_instantiate): device->domain.
7937 (gif_instantiate): ditto.
7938 (png_instantiate): ditto.
7939 (tiff_instantiate): ditto.
7941 * glyphs.c (instantiate_image_instantiator): use domain rather
7943 (mark_image_instance): device -> domain.
7944 (print_image_instance): ditto.
7945 (finalize_image_instance): ditto.
7946 (image_instance_equal): ditto.
7947 (allocate_image_instance): ditto.
7948 (Fcolorize_image_instance): ditto.
7949 (query_string_geometry): ditto.
7950 (image_instantiate): ditto
7951 (query_string_font): ditto.
7952 (image_instantiate): ditto.
7953 (update_subwindow): ditto.
7954 (unmap_subwindow): ditto.
7955 (map_subwindow): ditto.
7956 (subwindow_instantiate): ditto.
7958 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
7959 (DOMAIN_FRAME): ditto.
7960 (DOMAIN_WINDOW): ditto.
7961 (DOMAIN_LIVE_P): ditto.
7962 (XDOMAIN_DEVICE): ditto.
7963 (XDOMAIN_FRAME): ditto.
7964 (XDOMAIN_WINDOW): ditto.
7966 * specifier.c (Fvalid_specifier_domain_p): add image instances as
7967 a valid specifier domain.
7969 2000-04-19 Andy Piper <andy@xemacs.org>
7971 * glyphs-widget.c (syms_of_glyphs_widget): remove
7972 widget-callback-current-channel.
7973 (vars_of_glyphs_widget): ditto.
7976 * gui.c (get_gui_callback): revert to previous behaviour.
7978 2000-04-18 Andy Piper <andy@xemacs.org>
7980 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
7981 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
7982 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
7984 * glyphs.c (image_instance_equal): add margin_width.
7985 (image_instance_hash): ditto.
7987 * glyphs-widget.c (widget_instantiate): deal with margin-width.
7988 (layout_query_geometry): ditto.
7989 (layout_layout): ditto.
7990 (syms_of_glyphs_widget): add margin-width.
7991 (image_instantiator_layout): allow margin-width.
7993 * glyphs.c (update_widget_instances): make a normal function.
7994 (syms_of_glyphs): remove Qupdate_widget_instances.
7997 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
7998 so that we don't corrupt ideas about the last event or
7999 command. Remove widget-callback-current-channel fiddling.
8000 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8002 2000-05-01 Martin Buchholz <martin@xemacs.org>
8004 * XEmacs 21.2.33 is released.
8006 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
8008 * make-src-depend: Allow dots in header file name.
8010 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
8012 * mule-charset.h (struct charset_lookup): Add
8013 next_allocated_1_byte_leading_byte and
8014 next_allocated_2_byte_leading_byte.
8015 * mule-charset.c: Move above two variables so that those values
8018 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
8020 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8021 when string length is zero.
8022 (find_charsets_in_emchar_string): Ditto.
8024 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
8026 * lisp.h: extern Qdialog and Qmenubar.
8028 * gui-x.c: added events.h.
8029 also fixed typo which made the file uncompilable.
8031 * general.c: Added Qmenubar and Qdialog
8033 2000-04-28 Ben Wing <ben@xemacs.org>
8035 * frame-msw.c (mswindows_init_frame_1):
8036 * frame-msw.c (mswindows_mark_frame):
8037 * event-msw.c (mswindows_enqueue_dispatch_event):
8039 * console-msw.h (struct mswindows_frame):
8040 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8041 there are now three hash tables for callbacks.
8042 mswindows_enqueue_dispatch_event is no longer static.
8044 * dialog-x.c (maybe_run_dbox_text_callback):
8045 * dialog-x.c (dbox_descriptor_to_widget_value):
8046 switch to new cons3 form for callbacks.
8048 * glyphs-msw.c (mswindows_register_gui_item):
8049 * glyphs-msw.c (mswindows_widget_instantiate):
8050 * glyphs-msw.c (add_tree_item):
8051 * glyphs-msw.c (add_tab_item):
8052 new image instance parameter, so it can be passed to callback-ex.
8053 respect :callback-ex as well as :callback.
8055 * glyphs-widget.c (VALID_GUI_KEYWORDS):
8058 * glyphs.c (print_image_instance):
8059 prettify, e.g. now prints widget type.
8062 certain funs have new image instance parameter.
8065 * gui.c (get_gui_callback):
8066 * gui.c (gui_item_add_keyval_pair):
8067 * gui.c (gui_item_init):
8068 * gui.c (gui_add_item_keywords_to_plist):
8069 * gui.c (mark_gui_item):
8070 * gui.c (gui_item_hash):
8071 * gui.c (gui_item_equal):
8072 * gui.c (copy_gui_item):
8073 * gui.c (syms_of_gui):
8074 recognize callback-ex in a number of places.
8075 also, fix the annoying "can't get out of yes-no dialog" bug.
8078 * gui.h (struct Lisp_Gui_Item):
8079 recognize callback-ex in a number of places.
8081 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8082 new parameter in button_item_to_widget_value.
8084 * glyphs-x.c (x_update_widget):
8085 * glyphs-x.c (x_button_instantiate):
8086 * glyphs-x.c (x_button_update):
8087 * glyphs-x.c (x_progress_gauge_instantiate):
8088 * glyphs-x.c (x_edit_field_instantiate):
8089 * glyphs-x.c (x_combo_box_instantiate):
8090 * glyphs-x.c (x_tab_control_instantiate):
8091 * glyphs-x.c (x_label_instantiate):
8092 new image instance parameter in various places.
8095 * event-Xt.c (enqueue_Xt_dispatch_event):
8096 this fun gets exported.
8099 * gui-msw.c (mswindows_handle_gui_wm_command):
8100 handle both :callback and :callback-ex, and generate our own
8101 event because it's one of the callback-ex arguments.
8104 * gui-x.c (popup_selection_callback):
8105 handle both :callback and :callback-ex, and generate our own
8106 event because it's one of the callback-ex arguments.
8107 * gui-x.c (button_item_to_widget_value):
8108 * gui-x.c (gui_items_to_widget_values_1):
8109 * gui-x.c (gui_item_children_to_widget_values):
8110 * gui-x.c (gui_items_to_widget_values):
8111 new image instance parameter in various places.
8113 * fns.c (Freplace_list):
8114 fix small typo in doc string.
8117 declare enqueue_Xt_dispatch_event.
8119 2000-04-28 Ben Wing <ben@xemacs.org>
8122 * buffer.c (Frecord_buffer):
8123 * buffer.c (syms_of_buffer):
8124 delete record-buffer-hook.
8127 * fns.c (Freplace_list):
8128 * fns.c (syms_of_fns):
8129 new primitive replace-list.
8132 slot for old buffer-alist.
8138 * redisplay.c (redisplay_frame):
8139 * redisplay.c (syms_of_redisplay):
8140 * redisplay.c (vars_of_redisplay):
8141 new hook buffer-list-changed-hook.
8144 2000-04-27 Ben Wing <ben@xemacs.org>
8146 * extents.h: extern in_modeline_generation.
8148 * redisplay.c (generate_formatted_string_db): set
8149 in_modeline_generation.
8151 * extents.c (extent_changed_for_redisplay): don't mark redisplay
8152 flags if in modeline generation. otherwise frame-modified-tick
8153 is ticked far too often.
8154 Declare in_modeline_generation.
8156 2000-04-26 Ben Wing <ben@xemacs.org>
8158 * emacs.c (vars_of_emacs): document quick-build "error-checking"
8160 (vars_of_emacs): add quick-build as an error-checking option.
8161 A bit kludgy, but there doesn't seem much point in creating
8162 a real var for this.
8164 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8166 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
8168 * redisplay.h (struct display_line): Add a new variable,
8171 * redisplay.c (create_text_block): Set dl->line_continuation if
8173 (create_string_text_block): Ditto.
8174 (regenerate_window_incrementally): Use line_continuation instead
8175 of searching continuation glyph.
8176 (add_margin_runes): Call add_glyph_rune.
8177 (add_glyph_rune): Handle margin glyph.
8179 2000-04-20 Martin Buchholz <martin@xemacs.org>
8181 * filelock.c (fill_in_lock_file_name):
8183 Check for IS_ANY_SEP instead of '/'.
8185 Avoid generating gratuitous garbage. Call user_login_name() directly.
8186 Never check errno without first seeing that system call failed.
8187 (unlock_file): Add GCPRO.
8188 (Flock_buffer): Fix docstring.
8189 (Ffile_locked_p): Fix docstring. Add GCPRO.
8191 2000-04-19 Martin Buchholz <martin@xemacs.org>
8193 * sysdep.c (get_pty_max_bytes):
8194 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8195 strings longer than 252 bytes.
8197 * md5.c: Unconditionally include ANSI header <limits.h>
8199 * glyphs-x.c (convert_EImage_to_XImage):
8200 * lisp-union.h (union Lisp_Object):
8201 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8203 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
8205 * filelock.c (current_lock_owner): Remove unused variable o, p.
8207 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
8209 * callint.c: Remove multiply defined symbol Qlet
8210 (syms_of_callint): ditto.
8212 2000-04-14 Andy Piper <andy@xemacs.org>
8214 * general.c (syms_of_general): add last-command, this-command, let
8217 * lisp.h: declare various symbols.
8219 * glyphs.h: declare Qwidget_callback_current_channel;
8221 * glyphs-widget.c (syms_of_glyphs_widget): add
8222 Qgui_callback_current_channel.
8223 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8225 * gui-msw.c (mswindows_handle_gui_wm_command): bind
8226 widget-callback-current-channel when invoking the interactive
8227 arg. Also bind last-command and next-command when invoking the
8229 * gui-x.c (popup_selection_callback): ditto.
8231 * gui.c (get_gui_callback): massage args so that we are always
8232 calling eval. This allows us to add our own variable bindings
8235 * glyphs-x.c (x_button_instantiate): use
8236 gui_items_to_widget_values since this is GC safe.
8237 (x_progress_gauge_instantiate): ditto.
8238 (x_edit_field_instantiate): ditto.
8239 (x_label_instantiate): ditto.
8241 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8242 (emacs_Xt_event_widget_focus_out): new function
8243 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8245 (emacs_Xt_event_add_widget_actions): new function. add focus
8246 functions as actions.
8247 (init_event_Xt_late): use it.
8249 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
8251 * event-stream.c (Fdispatch_event): Doc fix.
8253 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
8255 * postgresql.c: Remove all references to PQsetenv*.
8257 * postgresql.h: Remove references to PGsetenvHandler object.
8258 * lrecord.h (lrecord_type): Ditto.
8260 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8262 * glyphs-msw.h (struct mswindows_image_instance_data): Added
8263 real_heigh and real_width members, and accessor macros for these.
8265 * glyphs-msw.c (init_image_instance_geometry): New function.
8266 (init_image_instance_from_dibitmap): Use it.
8267 (mswindows_resource_instantiate): Use it.
8268 (init_image_instance_from_xbm_inline): Use it.
8269 (mswindows_initialize_image_instance_mask): Use real bitmap
8271 (mswindows_create_resized_bitmap): Ditto.
8272 (mswindows_create_resized_mask): Ditto.
8274 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8275 and bitmap to their surface size.
8277 2000-04-11 Jan Vroonhof <jan@xemacs.org>
8279 * process-unix.c (unix_send_process): Guard against process MIA
8280 after Faccept_process_output.
8282 2000-04-11 Ben Wing <ben@xemacs.org>
8284 * eval.c (unbind_to_hairy): fix brokenness introduced by
8285 nanosecond speed improvements.
8287 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
8289 * sunplay.c (init_device): To play sounds correctly, the device
8290 apparently needs to be initialized at least once by XEmacs. Make
8293 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
8295 * redisplay.c (add_margin_runes): Add text image glyph
8298 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
8300 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8301 gcc is newer than 2.5.
8303 2000-04-06 Colin Rafferty <colin@xemacs.org>
8305 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8307 * fns.c (size_bit_vector):
8308 * alloc.c (size_vector):
8309 (make_vector_internal):
8310 (make_bit_vector_internal):
8311 (sweep_bit_vectors_1):
8312 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8314 2000-04-06 Andy Piper <andy@xemacs.org>
8316 * gmalloc.c (malloc): undo previous change.
8321 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
8323 * line-number.c (buffer_line_number): Revert to former version.
8325 2000-04-06 Andy Piper <andy@xemacs.org>
8327 * gmalloc.c (malloc): add error checking.
8332 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8333 button_item_to_widget_value arg.
8335 * glyphs-x.c (x_button_instantiate): add extra
8336 button_item_to_widget_value arg.
8337 (x_progress_gauge_instantiate): ditto.
8338 (x_edit_field_instantiate): ditto.
8339 (x_label_instantiate): ditto.
8341 * gui-x.c (gui_items_to_widget_values_1): add extra
8342 button_item_to_widget_value arg.
8343 (button_item_to_widget_value): add extra menu_item_p arg.
8345 * gui-x.h: change signature of button_item_to_widget_value.
8347 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8348 button_item_to_widget_value arg.
8350 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
8352 * buffer.h (struct buffer): auto_save_modified should be long.
8354 2000-04-05 Andy Piper <andy@xemacs.org>
8356 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8358 (button_query_geometry): give a little more room so that athena
8361 2000-04-05 Andy Piper <andy@xemacs.org>
8363 * faces.c (complex_vars_of_faces): The widget face should inherit
8364 the font of the gui-element face.
8366 2000-04-04 Andy Piper <andy@xemacs.org>
8368 * glyphs-x.c (x_button_update): new function. unconditionally
8369 update a button's state when the instance is dirty.
8370 (image_instantiator_format_create_glyphs_x): add x_button_update.
8371 (x_widget_instantiate): remove old resize cruft.
8373 2000-04-02 Andy Piper <andy@xemacs.org>
8375 * frame.c (change_frame_size_1): The introduction of gutters means
8376 that we need to allow 0 as a potential frame dimension.
8378 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
8380 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8381 image glyph if allow_cursor.
8382 (add_hscroll_rune): Don't allow cursor to border glyph.
8383 (create_text_block): Ditto.
8385 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8387 (redisplay_output_layout): Call ensure_face_cachel_complete for
8391 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
8393 * redisplay.c (add_glyph_rune): Adding text image as text runes.
8395 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8398 * redisplay-tty.c (tty_output_display_block): Delete the routine
8399 for text image glyph
8400 * redisplay-x.c (x_output_display_block): ditto
8401 * redisplay-msw.c (mswindows_output_display_block): ditto
8403 2000-02-02 Mike Alexander <mta@arbortext.com>
8405 Note: Some of these were committed by accident as part of other
8408 * regex.c (regex_compile): Avoid compiler warnings.
8410 * ntproc.c (sys_spawnve): Avoid compiler warnings.
8412 * nt.h: Declare term_ntproc correctly.
8414 * nt.c: Remove incorrect declaration of get_home_directory which
8415 is declared correctly in lisp.h.
8417 * keymap.c (get_keyelt): Avoid compiler warnings.
8418 (raw_lookup_key_mapper): Avoid compiler warnings.
8420 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8422 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8424 * filemode.c (mode_string): Avoid compiler warnings.
8426 * file-coding.c (Fcoding_system_aliasee): Add return statement to
8429 * events-mod.h: Undef some things that winuser.h defines differently.
8431 * data.c (Faset): Avoid compiler warnings.
8433 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8435 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
8437 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8438 Fall through to simple beep on error.
8439 Replace "extern" by real header file.
8441 * linuxplay.c: Use nativesound.h
8442 (play_sound_data): Return error code. Be less verbose on error.
8444 * sunplay.c: Use nativesound.h
8445 (play_sound_data): Return error code. Be less verbose on error.
8447 * ntplay.c: Use nativesound.h
8448 (play_sound_data): Return fake error code
8450 * sgiplay.c: Use nativesound.h
8451 (play_sound_data): Return error code
8453 * hpplay.c: Use nativesound.h, partially implement
8454 new error code. Break compilation until finished.
8455 (play_sound_data): error code.
8457 * nativesound.h (play_sound_file):
8458 (play_sound_data): Prototype in new header.
8460 2000-03-31 Andy Piper <andy@xemacs.org>
8462 * glyphs-widget.c: (button_query_geometry): new function. Adjust
8463 for toggle and radio buttons.
8464 (image_instantiator_buttons): use it.
8466 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
8468 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
8469 (x_update_horizontal_scrollbar_callback): Return if no mirror was
8470 found. Scrollbar event probably belonged to some old config.
8472 2000-03-31 Andy Piper <andy@xemacs.org>
8474 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
8476 (initialize_widget_image_instance): default layout to
8477 LAYOUT_HORIZONTAL rather than 0.
8478 (widget_instantiate): reverse the item list at the end rather than
8480 (layout_layout): re-code for the border text at the front of the
8481 item list rather than at the end.
8482 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
8483 provided by the user.
8484 (widget_query_geometry): comment.
8486 2000-03-30 Andy Piper <andy@xemacs.org>
8488 * glyphs-widget.c (image_instantiator_layout): allow standard
8489 widget keywords in layouts.
8491 * gutter.c (output_gutter): cope with nil gutter contents.
8493 * frame.c (Fset_frame_properties): add gutter docs.
8495 2000-03-29 Andy Piper <andy@xemacs.org>
8497 * toolbar-msw.c (TBSTYLE_FLAT): add.
8498 (mswindows_output_toolbar): minor fiddling.
8500 2000-03-29 Andy Piper <andy@xemacs.org>
8502 * gutter.c (output_gutter): force gutter size recalculation if
8503 what we are trying to display won't fit.
8504 (update_gutter_geometry): new function. A per-gutter version of
8505 update_frame_gutter_geometry.
8506 (update_frame_gutter_geometry): use it.
8507 (redraw_exposed_gutter): add extra debugging output.
8509 2000-03-28 Mike Alexander <mta@arbortext.com>
8511 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
8512 (pdump_file_unmap): Implement it on Windows
8513 (pdump_file_get): Save alocated handles for pdump_file_unmap
8515 2000-03-28 Andy Piper <andy@xemacs.org>
8517 * gui.c (get_gui_callback): treat Quit specially.
8519 2000-03-27 Andy Piper <andy@xemacs.org>
8521 * glyphs.c (image_instantiate): be careful to check in the same
8524 2000-03-27 Didier Verna <didier@xemacs.org>
8526 * config.h.in: define the proper SMART_INCLUDE macro.
8527 handle renaming of `foo_h_path' to `foo_h_file'.
8529 * database.c: ditto.
8533 * linuxplay.c: ditto.
8535 * terminfo.c: ditto.
8537 * tooltalk.h: ditto.
8539 2000-03-27 Andy Piper <andy@xemacs.org>
8541 * glyphs-msw.c (mswindows_update_widget): make sure the widget
8542 gets updated whenever the face might have changed.
8544 2000-03-26 Mike Alexander <mta@arbortext.com>
8546 * dumper.c (pdump_resource_free): Fix the comment.
8548 2000-03-21 Olivier Galibert <galibert@pobox.com>
8550 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
8552 2000-03-22 Mike Alexander <mta@arbortext.com>
8554 * dumper.c: Include Windows headers on Windows
8555 (pdump_resource_free): Add a body to the function
8556 (pdump_load): exe_name -> exe_path and add some comments.
8558 2000-03-25 Mike Alexander <mta@arbortext.com>
8560 * gui.c (copy_gui_item_tree): Return a value in all cases
8562 2000-03-21 Didier Verna <didier@xemacs.org>
8564 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
8566 (SMART_INCLUDE): new macro.
8567 (POSTGRES_INCLUDE): new macro to include postgresql headers from
8568 the proper location.
8570 * postgresql.c: use it.
8574 2000-03-24 Andy Piper <andy@xemacs.org>
8576 * gutter.c (redraw_exposed_gutters): must be "in display" when we
8579 2000-03-24 Andy Piper <andy@xemacs.org>
8581 * redisplay-output.c (compare_runes): use image_instance_changed
8582 to detect changes. Do not depend on glyphs_changed, only depend on
8584 (redisplay_output_layout): add debug messages.
8585 (compare_runes): ditto.
8587 * glyphs.h: declare new functions.
8588 (struct Lisp_Image_Instance): remove percent and associated
8591 * gui.h: declare new copying functions.
8593 * gui.c (copy_gui_item_tree): new function.
8594 (copy_gui_item): new function.
8595 (gui_item_id_hash): revert to standard hash.
8596 (gui_item_hash): ditto.
8597 (gui_item_hash_internal): deleted.
8598 (mark_gui_item): mark value.
8599 (gui_item_add_keyval_pair): add value.
8600 (gui_item_init): ditto.
8601 (gui_add_item_keywords_to_plist): ditto.
8602 (gui_item_equal): ditto.
8603 (syms_of_gui): add Q_value.
8605 * glyphs-x.c (x_progress_gauge_update): use pending items and
8606 value for setting the state.
8607 (x_update_widget): don't set items from pending here.
8609 * glyphs-widget.c (update_widget): update items here.
8610 (progress_gauge_set_property): use items for storing value. Put
8611 new value in pending items.
8613 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
8614 items for new value. Convert percent -> value.
8615 (mswindows_tab_control_update): don't update items here.
8617 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
8618 (update_subwindow): ditto.
8619 (image_instance_changed): new function. Compare hash values and
8620 past and present widget items.
8621 (image_instantiate): We more careful about where we instantiate
8623 (image_instantiate): add error checking.
8625 * gutter.c (syms_of_gutter): use -hook.
8627 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
8629 * console-tty.c (Fset_console_tty_input_coding_system): Use
8631 (Fset_console_tty_output_coding_system): Use Qterminal.
8632 (tty_init_console): Use Qkeyboard and Qterminal.
8634 2000-03-21 Ben Wing <ben@xemacs.org>
8636 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
8637 From Mike Alexander <mta@arbortext.com>.
8639 2000-03-21 Ben Wing <ben@xemacs.org>
8641 * event-msw.c (mswindows_need_event): Horrible kludge to fix
8642 process brokenness. Proper implementation to come.
8644 Rename call-process-internal to old-call-process-internal.
8645 New impl. in process.el.
8647 2000-03-21 Martin Buchholz <martin@xemacs.org>
8649 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
8651 2000-03-20 Andy Piper <andy@xemacs.org>
8653 * glyphs.c (full_list_hash): make hashes of the same elements in
8654 different orders return different values.
8656 2000-03-20 Martin Buchholz <martin@xemacs.org>
8658 * XEmacs 21.2.32 is released.
8660 2000-03-20 Martin Buchholz <martin@xemacs.org>
8662 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
8663 (DFC_MALLOC_USE_CONVERTED_DATA):
8664 Add aliasing-safe casts to allow use with char* or unsigned char*
8667 * eldap.c (Fldap_open):
8668 (Fldap_search_basic):
8671 Make C++-compilable.
8672 Make sure GCPRO'ed variables are initialized.
8673 Use temp variables to avoid repeated calls to Flength.
8675 2000-03-16 Martin Buchholz <martin@xemacs.org>
8678 Make sure PATH_MAX is always defined.
8679 Include limits.h for PATH_MAX.
8680 Deprecate use of MAXPATHLEN.
8682 2000-03-10 Martin Buchholz <martin@xemacs.org>
8684 * emacs.c: Add reinit_vars_of_fileio.
8685 * symsinit.h: Add reinit_vars_of_fileio.
8686 * fileio.c (reinit_vars_of_fileio): New.
8687 * fileio.c (Fmake_temp_name):
8688 Initialize temp_name random number from microseconds to make
8689 collisions even less likely. Initialize always at process startup
8690 time. (make-temp-name) used to return the same file name twice in
8692 Random stylistic fiddling.
8695 2000-03-20 Andy Piper <andy@xemacs.org>
8697 * glyphs.c (image_instantiate): allow text glyphs to be
8698 instantiated in the minibuffer window.
8700 2000-03-19 Andy Piper <andy@xemacs.org>
8702 * glyphs.c (image_instance_hash): be careful about which items we
8705 * glyphs-widget.c (tab_control_set_property): record into pending
8706 items rather than the actual items.
8708 * glyphs-x.c (x_update_widget): use pending items to update with.
8710 * glyphs-msw.c (mswindows_tab_control_update): use pending items
8713 * glyphs.c (mark_image_instance): mark pending items.
8715 * window.c (Fset_window_configuration): record the buffer.
8716 (Fselect_window): totally revert previous change which breaks many
8719 2000-03-18 Andy Piper <andy@xemacs.org>
8721 * glyphs-msw.c (mswindows_tab_control_update): force selected
8724 * glyphs.c (image_instantiate): don't allow the minibuffer as a
8725 window domain cache, otherwise we get inconsistencies at
8726 startup. There is something fishy at startup which can lead to the
8727 minibuffer being the selected window when the gutter content is
8730 * gui.c (parse_gui_item_tree_list): add probably unnecessary
8732 (parse_gui_item_tree_children): ditto.
8733 (parse_gui_item_tree_item): ditto.
8735 * glyphs.c (Fupdate_widget_instances): return something.
8737 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
8739 * window.c (Fselect_window): Undo 2000-03-17 change.
8741 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
8743 * postgresql.c (Fpq_setenv): Remove this turkey when linking
8744 against v7.0 libraries. Insta-coredump city until the postgres
8747 2000-03-17 Andy Piper <andy@xemacs.org>
8749 * faces.c (complex_vars_of_faces): don't give the widget face an
8750 inherited background pixmap.
8752 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
8755 * event-stream.c (Fdispatch_non_command_events): return something.
8757 * gutter.c (output_gutter): use widget face.
8758 (clear_gutter): ditto.
8760 * NEWS: adjust again.
8762 * window.c (Fselect_window): make sure this runs to completion to
8763 avoid oddities with Fset_window_configuration.
8764 (Fcurrent_window_configuration): in general do not save the
8765 minibuffer as the selected window.
8767 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
8769 2000-03-16 Olivier Galibert <galibert@pobox.com>
8771 * emacs.c (Frunning_temacs_p): Revert previous patch.
8772 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
8774 2000-03-16 Andy Piper <andy@xemacs.org>
8776 * glyphs-x.c (x_tab_control_update): if no widget values then
8779 * NEWS: update for new features.
8781 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
8782 synthetic event to the native system.
8783 (reinit_vars_of_event_Xt): set force_event_pending to
8784 emacs_Xt_force_event_pending.
8786 * events.h (struct event_stream): add force_event_pending.
8788 * specifier.c (recompute_one_cached_specifier_in_window): add
8791 * redisplay.c (redisplay_frame): don't call
8792 update_frame_subwindows. Reset subwindow cachels when
8793 subwindows_changed, removing this was an optimization too far.
8795 * redisplay-output.c (compare_runes): reorganize so that we catch
8796 glyph changes when we want them. Set optimize_output when this
8798 (redisplay_output_layout): remove frame_really_changed, use
8799 optimize_output instead.
8801 * redisplay-msw.c (mswindows_output_display_block): reset
8802 optimize_output after outputting a glyph.
8803 * redisplay-x.c (x_output_display_block): ditto.
8804 * redisplay-tty.c (tty_output_display_block): ditto.
8806 * gutter.c: (specifier_vars_of_gutter): use new spec changed
8808 (gutter_specs_changed): do specific gutter positions.
8809 (top_gutter_specs_changed): new function. Only update the
8810 specified gutter specs.
8811 (bottom_gutter_specs_changed): ditto.
8812 (left_gutter_specs_changed): ditto.
8813 (right_gutter_specs_changed): ditto.
8815 * gui.c (gui_item_hash_internal): new function, does a real hash.
8816 (gui_item_id_hash): use it.
8817 (gui_item_hash): hash the eval'ed gui_item.
8819 * gui-x.c (popup_selection_callback): send an eval event to call
8820 Fupdate_widget_instances.
8822 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
8823 to call Fupdate_widget_instances.
8825 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
8826 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
8828 * glyphs.c: (update_frame_subwindows): deleted.
8829 (Fupdate_widget_instances): new function for updating the dirty
8830 state of widgets that might have changed.
8831 (syms_of_glyphs): add Qupdate_widget_instances.
8832 (full_list_hash): hash a list completely.
8833 (image_instance_hash): use it for items and properties.
8835 * frame-msw.c (mswindows_size_frame_internal): remove unused
8838 * faces.h (struct face_cachel): fix comment.
8840 * event-stream.c (Fdispatch_non_command_events): new
8841 function. Process non-command events, forcing an event cycle
8843 (syms_of_event_stream): declare.
8844 (event_stream_force_event_pending): new function. Force an event
8845 on the native event queue so that an event cycle will occur next
8849 (struct ntpipe_shove_stream):
8850 (mswindows_enqueue_dispatch_event):
8851 (mswindows_dequeue_dispatch_event):
8852 (mswindows_cancel_dispatch_event):
8853 (mswindows_pump_outstanding_events):
8854 (mswindows_drain_windows_queue):
8855 (mswindows_handle_paint):
8856 (mswindows_wnd_proc):
8857 (mswindows_key_to_emacs_keysym):
8858 (get_process_input_waitable):
8859 (emacs_mswindows_delete_stream_pair): re-indent file.
8860 (mswindows_need_event): do not process further fds if the windows
8861 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
8862 fixes the 100% cpu problem.
8863 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
8865 2000-03-15 Olivier Galibert <galibert@pobox.com>
8871 * emacs.c: Moved dump file searching to dumper.c.
8872 (Frunning_temacs_p): Fixed.
8874 * alloc.c: Moved everything pdump-related to dumper.c. Removed
8875 last_lrecord_type_index_assigned.
8877 2000-02-20 Olivier Galibert <galibert@pobox.com>
8879 * symsinit.h: Added reinit parameter to init_console_stream
8882 * lisp.h: Added file parameter to pdump_load declaration.
8884 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
8885 support. Added dump file searching.
8887 * config.h.in: Added EMACS_PROGNAME.
8889 * console-stream.c (init_console_stream): Fix reinitialisation
8890 when running from temacs.
8892 * alloc.c (pdump): Add id support.
8893 (pdump_load): Add file parameter and signature/id support.
8895 * Makefile.in.in: Add full pdump support.
8897 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
8899 * postgresql.c: Update documentation to reflect latest code
8901 (print_result): Show tuple counts in printed representation when
8903 (Fpq_put_nbytes): MULE-ize.
8904 (Fpq_get_line_async): Ditto.
8906 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
8908 * postgresql.c (Fpq_lo_import): Fix return value.
8909 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
8911 2000-03-13 Ben Wing <ben@xemacs.org>
8913 * alloc.c (pdump_load):
8914 Fix compile warning under mswin.
8916 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
8918 * postgresql.c: Mule-ization, bug fixes.
8919 Use PG_CODING to encapsulate coding system name changes.
8920 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
8921 (pg-coding-system): Create.
8923 (Fpq_conn_defaults): Mule-ize.
8924 (Fpq_connectdb): Mule-ize & bug fix.
8925 (Fpq_connect_start): Mule-ize.
8926 (Fpq_set_client_encoding): Mule-ize.
8927 (Fpq_finish): Document `DEAD' connection status.
8929 (Fpq_pgconn): Mule-ize.
8930 (Fpq_exec): Mule-ize & bug fix.
8931 (Fpq_send_query): Ditto.
8932 (Fpq_get_result): Ditto.
8933 (Fpq_res_status): Mule-ize.
8934 (Fpq_result_error_message): Mule-ize.
8935 (Fpq_ntuples): fix comments.
8936 (Fpq_fname): Mule-ize.
8937 (Fpq_fnumber): Mule-ize.
8938 (Fpq_ftype): fix comments.
8939 (Fpq_get_value): Mule-ize.
8940 (Fpq_cmd_status): Ditto.
8941 (Fpq_cmd_tuples): Ditto.
8942 (Fpq_oid_value): Ditto.
8943 (Fpq_notifies): Ditto.
8944 (Fpq_lo_import): Ditto.
8945 (Fpq_lo_export): Ditto.
8946 (Fpq_get_line): Ditto.
8947 (Fpq_put_line): Mule-ize and bug fix.
8948 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
8950 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
8952 * postgresql.c (vars_of_postgresql): Mule-ize.
8953 (Fpq_conn_defaults): Ditto.
8955 2000-03-12 Ben Wing <ben@xemacs.org>
8957 * alloc.c (Fmake_byte_code):
8958 * alloc.c (debug_string_purity_print):
8959 * alloc.c (pdump_backtrace):
8960 * alloc.c (pdump_get_indirect_count):
8961 * alloc.c (pdump_register_sub):
8962 * alloc.c (pdump_register_object):
8963 * alloc.c (pdump_register_struct):
8964 * alloc.c (pdump_dump_data):
8965 * alloc.c (pdump_reloc_one):
8969 * console-msw.c (GetConsoleHwnd):
8970 * console-msw.c (msw_hide_console):
8971 * console-msw.c (msw_show_console):
8972 * console-msw.c (msw_ensure_console_buffered):
8973 * console-msw.c (msw_output_console_string):
8974 * console-msw.c (console_type_create_mswindows):
8976 a) Added functions to manipulate the console window for use with
8979 b) Added support for writing text to the console, which is now
8980 used under Windows when xemacs is not being run non-interactively,
8981 to write text that would otherwise be destined for stdout because
8982 under these circumstances, text written to stdout tends to
8983 disappear and not be seen.
8987 * event-Xt.c (x_event_to_emacs_event):
8988 * event-Xt.c (describe_event_window):
8989 * events-mod.h (XEMACS_MOD_CONTROL):
8991 * events.c (Fmake_event):
8992 * events.c (character_to_event):
8993 * events.c (event_to_character):
8994 * events.c (format_event_object):
8995 * events.c (Fevent_modifiers):
8997 * events.h (struct key_data):
8998 * events.h (struct button_data):
8999 * events.h (struct misc_user_data):
9000 * frame-x.c (Fcde_start_drag_internal):
9001 * frame-x.c (Foffix_start_drag_internal):
9002 * gpmevent.c (Freceive_gpm_event):
9004 * keymap.c (bucky_sym_to_bucky_bit):
9005 * keymap.c (control_meta_superify):
9006 * keymap.c (make_key_description):
9007 * keymap.c (keymap_lookup_directly):
9008 * keymap.c (create_bucky_submap):
9009 * keymap.c (keymap_store):
9010 * keymap.c (define_key_check_and_coerce_keysym):
9011 * keymap.c (define_key_parser):
9012 * keymap.c (define_key_alternate_name):
9013 * keymap.c (Fdefine_key):
9014 * keymap.c (raw_lookup_key_mapper):
9015 * keymap.c (struct map_keymap_unsorted_closure):
9016 * keymap.c (map_keymap_unsorted_mapper):
9017 * keymap.c (map_keymap_sort_predicate):
9018 * keymap.c (map_keymap_sorted):
9019 * keymap.c (accessible_keymaps_mapper_1):
9020 * keymap.c (where_is_recursive_mapper):
9021 * keymap.c (describe_map_mapper):
9022 * keymap.c (describe_map_sort_predicate):
9023 * keymap.c (describe_map):
9024 * keymap.c (complex_vars_of_keymap):
9025 And a number of other files, the key modifier preprocessor
9026 constants that xemacs uses have names that conflict with constants
9027 defined under MS Windows for other purposes, so they were renamed
9028 to begin with the prefix XEMACS_. The variables that hold such
9029 modifiers were changed to consistently be of type int to fix
9030 various compile warnings.
9032 * console.c (complex_vars_of_console):
9035 * device-msw.c (mswindows_finish_init_device):
9036 * device-msw.c (msw_get_workspace_coords):
9037 * device-msw.c (mswindows_device_system_metrics):
9038 and various other files, added support for a new
9039 device property called offset-workspace which returns the position
9040 of the upper left corner of the workspace area and goes along with
9041 the existing size-workspace property.
9044 * dialog-msw.c (push_bufbyte_string_as_unicode):
9045 * dialog-msw.c (mswindows_popup_dialog_box):
9046 Added support for XEmacs-style accelerator specifications in
9047 button text. Note: I didn't add support for this under X Windows,
9048 and somebody needs to do this.
9051 * dialog.c (Fpopup_dialog_box):
9052 Documented the support for accelerators that was just mentioned.
9054 editfns.c (get_home_directory): Changed behavior under Windows
9055 when HOME not defined; former behavior was irretrievably broken.
9060 * minibuf.c (clear_echo_area_internal):
9061 * minibuf.c (echo_area_append):
9063 * print.c (std_handle_out_external):
9064 * print.c (std_handle_out_va):
9066 * print.c (write_string_to_stdio_stream):
9067 * print.c (output_string):
9068 * print.c (debug_print):
9069 * print.c (debug_backtrace):
9070 * print.c (debug_short_backtrace):
9071 Cleaned up the code that prints text to stdout so that this can be
9072 changed to output into a console window instead under MS Windows,
9076 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9077 * eval.c (internal_catch):
9078 * eval.c (unwind_to_catch):
9079 * eval.c (throw_or_bomb_out):
9080 * eval.c (condition_case_1):
9081 * eval.c (signal_1):
9082 * eval.c (check_error_state_sanity):
9083 * eval.c (call_with_suspended_errors_1):
9084 * eval.c (call_with_suspended_errors):
9085 * eval.c (reinit_vars_of_eval):
9086 Added code to catch throw loops and check for a pesky bug that may
9090 * event-msw.c (key_needs_default_processing_p):
9091 * event-msw.c (mswindows_wnd_proc):
9092 * event-msw.c (mswindows_modifier_state):
9093 * event-msw.c (emacs_mswindows_quit_p):
9094 * event-msw.c (vars_of_event_mswindows):
9095 a) Added support for using the alt key to select menu items as is
9096 standard under MS Windows. This is controlled using the variable
9097 menu-accelerator-enabled, just like under X Windows. There is an
9098 option on the options menu to turn this support on. I really
9099 think that it should be on by default under Windows, but I'm not
9100 going to make this change yet.
9102 b) Added support for dynamic display size changes under Windows.
9105 * event-stream.c (maybe_echo_keys):
9106 * event-stream.c (Fnext_event):
9107 * event-stream.c (command_builder_find_leaf):
9108 * event-stream.c (lookup_command_event):
9109 * event-stream.c (execute_command_event):
9110 * event-stream.c (pre_command_hook):
9111 * event-stream.c (post_command_hook):
9112 * event-stream.c (syms_of_event_stream):
9113 * event-stream.c (vars_of_event_stream):
9114 * event-stream.c (complex_vars_of_event_stream):
9115 * events.h (struct command_builder):
9117 a) Tried to clean up a little bit the horribly written x-specific
9118 accelerator code that crept into this file. I moved this code
9119 into menubar-x.c where it belongs. I also needed to move the
9120 command builder structure into the file events.h because it is
9121 accessed directly by this accelerator code. What I didn't do, but
9122 which should be done at some point, is to properly abstract this
9123 code using device methods instead of the kludgy way that it
9124 currently hooks into the event code.
9126 b) Added the lisp variables this-command-properties and
9127 last-command- properties, which should be used to synchronize two
9128 adjacent commands in preference to playing games with the variable
9129 this-command, which is typically what happens.
9131 c) Added some slightly nasty code to hook into the lisp support
9132 for shifted- motion-key selection. This is actually necessary for
9133 somewhat complicated reasons, which are described in
9134 simple.el. (NB: I think the proper thing would be to have the code
9135 that calls the pre and post command hooks also call out to generic
9136 lisp functions in simple.el, where all built-in stuff could be
9137 added. I will think about this more.)
9139 * event-unixoid.c (poll_fds_for_input):
9140 * lread.c (readchar):
9141 * redisplay-tty.c (tty_clear_frame):
9142 * redisplay-x.c (x_get_gc):
9143 * signal.c (interrupt_signal):
9144 And a whole bunch of other files: fixed up places that printed
9145 directly to stderr to instead call the function stderr_out so that
9146 the changes I made under Windows work correctly.
9148 * filemode.c (mode_string):
9152 * frame-msw.c (mswindows_size_frame_internal):
9153 Fixed the computation of frame size and position to keep the frame
9154 within the workspace area, rather than within the physical
9155 dimensions of the screen, so that the frame doesn't overlap window
9156 manager decorations, such as the start menu and toolbar, typically
9157 at the bottom of the screen.
9159 * frame.c (vars_of_frame):
9160 Changed the default frame title format under MS Windows to consist
9161 of buffername-XEmacs, which is standard under MS Windows. I think
9162 it might be a good idea to change this everywhere because I think
9163 it is superior to the current frame title format, but this is the
9164 kind of change that is likely to cause some people to get annoyed,
9165 so I'm not making it.
9167 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9169 * gui-msw.c (mswindows_handle_gui_wm_command):
9170 Fixed compile warnings.
9173 * gui-x.c (strdup_and_add_accel):
9174 * gui-x.c (button_item_to_widget_value):
9176 Added code to automatically put an accelerator onto the beginning
9177 of menu items that don't have one as is now the standard, and is
9178 described more later. Also fixed things so that the menu item
9179 name can be an evaluated expression, again a new standard.
9182 * gui.c (gui_item_add_keyval_pair):
9183 * gui.c (make_gui_item_from_keywords_internal):
9184 * gui.c (gui_add_item_keywords_to_plist):
9185 * gui.c (gui_item_accelerator):
9186 * gui.c (gui_name_accelerator):
9187 * gui.c (gui_item_included_p):
9188 * gui.c (gui_item_display_flush_left):
9189 * gui.c (gui_item_display_flush_right):
9190 * gui.c (parse_gui_item_tree_item):
9191 * gui.c (parse_gui_item_tree_children):
9192 * gui.c (parse_gui_item_tree_list):
9193 Mule-ized. Cleanup. GCPRO addition.
9195 * line-number.c (buffer_line_number):
9197 * lisp.h (EMACS_INT_MAX):
9198 Added the manifest constant EMACS_INT_MIN corresponding to the
9199 existing constant EMACS_INT_MAX. This is partially to fix compile
9200 warnings under Windows, and partly for cleanliness.
9203 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9204 * menubar-msw.c (msw_translate_menu_or_dialog_item):
9205 * menubar-msw.c (displayable_menu_item):
9206 * menubar-msw.c (populate_menu_add_item):
9207 * menubar-msw.c (populate_or_checksum_helper):
9208 * menubar-msw.c (populate_menu):
9209 * menubar-msw.c (update_frame_menubar_maybe):
9210 * menubar-msw.c (prune_menubar):
9211 * menubar-msw.c (msw_char_is_accelerator):
9212 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9213 * menubar-msw.c (mswindows_handle_wm_command):
9214 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9215 * menubar-msw.c (mswindows_handle_wm_initmenu):
9216 * menubar-msw.c (mswindows_update_frame_menubars):
9217 * menubar-msw.c (mswindows_free_frame_menubars):
9218 * menubar-msw.c (mswindows_popup_menu):
9219 Fixed a bug in handling accelerators where an extra character
9220 would be displayed in the menu item. Also generalized the
9221 function displayable_menu_item because it is now used by the
9222 dialog box code as well. And finally, added code in the functions
9223 that create the menubar to extract a list of accelerators for the
9224 top level menubar, which is used in the event code to determine
9225 whether a particular alt-key combination should be used to invoke
9226 a menu item, or should be passed through to access the standard
9227 XEmacs keymap binding for this key combination.
9229 Much needed GCPROing.
9232 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9233 * menubar-x.c (menu_item_descriptor_to_widget_value):
9234 * menubar-x.c (restore_in_menu_callback):
9235 * menubar-x.c (x_popup_menu):
9236 * menubar-x.c (menu_move_up):
9237 * menubar-x.c (menu_move_down):
9238 * menubar-x.c (menu_move_left):
9239 * menubar-x.c (menu_move_right):
9240 * menubar-x.c (menu_select_item):
9241 * menubar-x.c (command_builder_operate_menu_accelerator):
9242 * menubar-x.c (menu_accelerator_junk_on_error):
9243 * menubar-x.c (command_builder_find_menu_accelerator):
9244 * menubar-x.c (Faccelerate_menu):
9246 Moved a whole bunch of code here that was previously in
9247 event-stream.c as described above. There is also code connected
9248 to the new standard of adding an accelerator to the beginning of
9249 menu items that don't have one as described above and below.
9252 * menubar.c (menu_parse_submenu_keywords):
9253 * menubar.c (Fmenu_find_real_submenu):
9254 * menubar.c (Fnormalize_menu_item_name):
9255 * menubar.c (syms_of_menubar):
9256 * menubar.c (vars_of_menubar):
9257 * menubar.c (complex_vars_of_menubar):
9259 a) Cleaned up a bunch of documentation and improved it.
9261 b) XEmacs now automatically adds an accelerator onto the beginning
9262 of any menu items that don't have one. I did this because there
9263 will inevitably be some menu items on the main menubar that don't
9264 have accelerators on them because the package that adds that
9265 particular menu item hasn't yet been fixed up to have accelerators
9266 in them and it looked rather strange to have some items with and
9267 some items without accelerators, especially since even in items
9268 without accelerators, you can, at least under windows, still
9269 access the item through an accelerator corresponding to the first
9270 character in the item's name. If people don't like this behavior,
9271 I can add a variable to turn it off optionally, but I'm not sure
9272 this is a good idea because we really do need to have accelerators
9273 on all of the menu items, and if a package doesn't like the
9274 accelerators being put on the first character, then it should put
9275 the accelerators where they belong.
9277 c) I made a behavior change, which is that the descriptor that
9278 specifies the text of the menu item, which formerly was just a
9279 string, can now also be an evaluated expression. This makes this
9280 descriptor parallel with all of the others, which could also be
9281 evaluated expressions. This also obviates the need for the
9282 keyword :label, which was previously listed in the documentation
9283 as unimplemented, and which was for the same purpose.
9288 * ntproc.c (new_child):
9289 * ntproc.c (sys_spawnve):
9290 * ntproc.c (find_child_console):
9291 * ntproc.c (sys_kill):
9292 Fixed compile warnings. By the way, this file should really go
9293 away entirely, and this will happen as soon as Kirill makes his
9294 final round of process cleanups, which affect the function
9298 * process-nt.c (struct nt_process_data):
9299 * process-nt.c (find_process_from_pid):
9300 * process-nt.c (send_signal_the_nt_way):
9301 * process-nt.c (enable_child_signals):
9302 * process-nt.c (find_child_console):
9303 * process-nt.c (send_signal_the_95_way):
9304 * process-nt.c (nt_finalize_process_data):
9305 * process-nt.c (ensure_console_window_exists):
9306 * process-nt.c (nt_create_process):
9307 * process-nt.c (nt_kill_child_process):
9308 * process-nt.c (nt_kill_process_by_pid):
9309 * process-nt.c (nt_open_network_stream):
9310 * process-nt.c (vars_of_process_nt):
9311 Copied over code from Emacs 20.5 to correctly send signals to sub-
9312 processes under Windows 95. Also added code to automatically
9313 create and hide console window when a sub-process is created under
9314 Windows 95, which obviates the need for the separate runemacs.exe
9315 executable, and finally implemented some variables that were
9316 implemented in Emacs 20.5, but previously not in XEmacs. These
9317 include mswindows- start-process-share-console and
9318 mswindows-start-process-inherit-error-mode. (Both of these only
9319 apply to Windows 95.)
9321 * regex.c (regex_compile): Fixed a compile warning.
9324 * select-msw.c (mswindows_own_selection):
9325 * select-msw.c (mswindows_get_foreign_selection):
9326 * select-msw.c (mswindows_disown_selection):
9327 * select-msw.c (console_type_create_select_mswindows):
9328 * select-msw.c (syms_of_select_mswindows):
9329 Cleaned up the file and implemented the device method
9330 selection_exists_p, which had accidentally been left out. Also
9331 removed four lisp functions that were remnants from before the
9332 time when the selection code was properly device abstracted.
9333 These functions are no longer needed because there are generic
9334 equivalents, and because they were added recently and don't exist
9335 in FSF Emacs, I don't think there's any problem with just deleting
9339 * sysdep.c (sys_subshell):
9340 Fixed a compile warning, although in this case there's probably
9341 something wrong with this code, and it ought to be looked into
9342 more thoroughly by somebody who understands it.
9345 * window.c (Fwindow_text_area_height):
9346 * window.c (Fwindow_width):
9347 * window.c (Fwindow_full_width):
9348 * window.c (Fwindow_pixel_width):
9349 * window.c (debug_print_window):
9350 * window.c (syms_of_window):
9351 Added functions window-text-area-height and window-full-width,
9352 which are functions for returning various width and height
9353 characteristics of a window. (One of these functions is necessary
9354 for making the file dialog box work correctly, and the other one
9355 was added for completeness.) Also added a table to the
9356 documentation for window-height which describes the entire scheme
9357 for accessing width and height characteristics of a window.
9359 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9361 * nt.c (fstat): Added a comment for another problem with
9362 non-encapsulated [f]stat(), reported by Adrian Aichner
9363 <aichner@ecf.teradyne.com>.
9365 2000-03-11 Andy Piper <andy@xemacs.org>
9367 * window.c (make_dummy_parent): initialize subwindow instance
9369 (Fset_window_configuration): zero extent_modiff.
9371 2000-03-10 Andy Piper <andy@xemacs.org>
9373 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9374 more changes can be triggered.
9375 (Fredisplay_frame): ditto.
9376 (Fredraw_device): ditto.
9377 (Fredisplay_device): ditto.
9378 (redisplay_frame): make non-static.
9379 (redisplay_frame): call update_frame_gutter_geometry outside of
9382 * gutter.h: declare update_frame_gutter_geometry.
9384 * redisplay.h: declare redisplay_frame.
9386 * gutter.c (update_frame_gutter_geometry): move geometry changes
9387 in update_frame_gutters here. Geometry changes can only occur
9388 outside of redisplay.
9389 (update_frame_gutters): remove geometry change code.
9390 (Fredisplay_gutter_area): make sure that we are in display when we
9391 update and that we have flushed any size changes.
9393 2000-03-11 Andy Piper <andy@xemacs.org>
9395 * alloc.c (pdump_dump_data): remove i & count shadows.
9397 2000-02-27 Mike Alexander <mta@arbortext.com>
9399 * sysdep.h: Declare pdump_read_file
9401 * sysdep.c (pdump_read_file): New function
9403 * alloc.c (pdump_load): Call pdump_read_file to get the portable
9406 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
9408 * lrecord.h: add `lrecord_type_pgsetenv'.
9410 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
9412 * symsinit.h: declare (vars|syms)_of* functions.
9413 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9415 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
9417 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9419 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9422 * emacs.c (main_1): Call postgres initialization code.
9424 * postgresql.h: New file. PostgreSQL RDBMS support.
9425 * postgresql.c: New file.
9427 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
9429 * redisplay-output.c (redisplay_output_display_block): Disable
9432 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
9434 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9435 (Fcanna_henkan_next): Ditto.
9436 (Fcanna_bunsetu_henkou): Ditto.
9437 (Fcanna_henkan_kakutei): Ditto.
9438 (Fcanna_henkan_end): Ditto.
9439 (Fcanna_henkan_quit): Ditto.
9440 (Fcanna_henkan_next): Set retun value correctly.
9441 (c2mu): Use unsigned char instead of signed char.
9443 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
9445 * emacs.c (main_1): Always call syms_of_gui.
9446 * inline.c: include gui.h
9448 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
9450 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
9451 converted to Lisp_Object.
9452 (Qtop_bottom): New variable.
9453 (syms_of_redisplay): Initialize it.
9454 * redisplay.h (Vvisible_bell): Ditto.
9455 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
9456 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
9457 only flash top and bottom.
9459 2000-03-08 Andy Piper <andy@xemacs.org>
9461 * buffer.c (Frename_buffer): record new buffer name the right way.
9463 2000-03-08 Andy Piper <andy@xemacs.org>
9465 * glyphs.c (update_subwindow): increase hash depth so that widget
9466 items get picked up properly.
9468 * redisplay-output.c (compare_runes): increase hash depth so that
9469 widget items get picked up properly.
9471 2000-03-08 Andy Piper <andy@xemacs.org>
9473 * gutter.c (output_gutter): add some debug.
9475 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
9476 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
9477 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
9479 * redisplay-output.c (compare_runes): use display_hash to
9480 determine if glyphs really are not the same.
9482 * glyphs.c (update_subwindow): check display_hash to see if
9483 anything really needs to be updated. If not then do
9484 nothing. Record the display_hash after updating.
9485 (image_instance_equal): compare the image_instance face also.
9487 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
9489 * redisplay.h: Fix comment style.
9491 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
9493 * consle-msw.h (struct mswindows_frame):
9494 Added new member paint_pending to indicate whether a WM_PAINT
9495 magic event has been queued for this frame.
9497 * event-msw.c (mswindows_drain_windows_queue):
9498 Don't queue a WM_PAINT magic event if one is already queued.
9499 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
9501 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
9503 2000-03-07 Didier Verna <didier@xemacs.org>
9505 * dired.c: #include `regex.h' after `sysfile.h'.
9507 2000-03-06 Martin Buchholz <martin@xemacs.org>
9509 * sound.c (init_nas_sound): Fix compiler warning.
9511 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
9513 (MARK_STRUCT_AS_FREE):
9514 (MARK_STRUCT_AS_NOT_FREE):
9515 Make `gcc -fstrict-aliasing' work properly.
9517 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
9519 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
9520 (mswindows_delete_device): Call CoUnnitialize().
9522 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
9524 2000-02-25 <CraigL@DyCon.com>
9526 * process-nt.c: MinGW now has <shellapi.h>, but still needs
9529 * sysdep.c: This extern declaration for environ prevents MinGW
9530 from finding the variable in CRTDLL.DLL.
9532 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
9536 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
9538 (MMRESULT): Removed, now defined in cygwin's windows headers.
9540 (uid_t,gid_t,pid_t,ssize_t): ..
9541 (_timeb): Removed, MinGW defines both _timeb and timeb.
9542 (HAVE_H_ERRNO): Added.
9543 (HAVE_TZNAME): Added, configure is not detecting this.
9545 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
9547 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
9548 * syntax.c (syntax_match): Use it.
9550 * cmds.c: Import auto-fill-chars from FSF Emacs.
9551 (Vauto_fill_chars): New variables.
9552 (internal_self_insert): Check Vauto_fill_chars.
9554 Declare auto-fill-chars as a Lisp variable and initialize it.
9556 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
9558 * fileio.c (Fmake_symbolic_link):
9560 Run handlers even if local machine doesn't have symlinks.
9562 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
9564 * event-msw.c (mswindows_drain_windows_queue):
9565 Don't generate paint magic events for non-XEmacs frames.
9567 2000-03-05 Andy Piper <andy@xemacs.org>
9569 * redisplay.c (redisplay_frame): generate_displayable_area and
9570 friends assumes that we are not in GC, we therefore have to make
9571 sure that this doesn't happen.
9573 * gutter.c (calculate_gutter_size): generate_displayable_area
9574 assumes that we are not in GC, we therefore have to make sure that
9575 this doesn't happen.
9577 2000-03-05 Martin Buchholz <martin@xemacs.org>
9579 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
9581 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9583 * redisplay.c (regenerate_window): Make sure we set a sane value
9584 for end_pos even if we jump out of the loop.
9585 (regenerate_window): Answer Ben's question :-).
9586 (start_end_of_last_line): Add may_error argument.
9587 (start_of_last_line):
9588 (end_of_last_line): Pass may_error = 0.
9589 (end_of_last_line_may_error): New function.
9590 (pixel_to_glyph_translation): Use it, so we don't crash in
9593 2000-03-04 Andy Piper <andy@xemacs.org>
9595 * window.h (struct window): add gutter_extent_modiff.
9597 * window.c (allocate_window): zero out gutter_extent_modiff.
9599 * redisplay.h: declare sync_display_line_structs.
9601 * redisplay.c (add_glyph_rune): add a better comment.
9603 * redisplay-output.c (sync_display_line_structs): made non-static.
9604 (compare_runes): remove unneccesary glyph cachel access.
9606 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
9608 * gutter.c (output_gutter): don't output the gutter if extent
9609 changes only involve extents in buffers. use 4 sets of display
9611 (gutter_extent_signal_changed_region_maybe): new function. Mark
9612 extents in gutters as changed.
9613 (update_frame_gutters): use 4 sets of display lines.
9614 (reset_gutter_display_lines): ditto.
9615 (free_frame_gutters): ditto.
9616 (redraw_exposed_gutter): force output of gutters.
9618 * frame.h (struct frame): add 4 sets of gutter display lines.
9620 * extents.c: (extent_changed_for_redisplay): signal changes to
9621 extents in strings in the gutter as well as extents in buffers.
9623 2000-03-02 Andy Piper <andy@xemacs.org>
9625 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
9627 * frame.c (Fmake_frame): make sure the gutters get initialized
9628 after the frame is visible.
9629 (set_frame_selected_window): re-arrange compilation macros a
9631 (change_frame_size_1): mark gutters changed.
9633 * device.c (Fset_device_class): mark gutters changed.
9635 2000-03-01 Andy Piper <andy@xemacs.org>
9637 * window.c (window_top_frame_gutter_height): deleted.
9638 (window_bottom_frame_gutter_height): ditto.
9639 (window_left_frame_gutter_height): ditto.
9640 (window_right_frame_gutter_height): ditto.
9641 (window_top_gutter_height): don't use them.
9642 (window_bottom_gutter_height): ditto.
9643 (window_left_gutter_width): ditto.
9644 (window_right_gutter_width): ditto.
9645 (Fsplit_window): ditto.
9646 (Fwindow_pixel_edges): don't use border dimensions here.
9648 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
9649 (update_scrollbar_instance): ditto.
9651 * redisplay.c (generate_modeline): don't take gutters into account.
9652 (generate_modeline): ditto.
9653 (redisplay_frame): small gutter display optimization.
9655 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
9657 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
9658 gutters into account.
9660 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
9661 for window position and type.
9663 * gutter.c (get_gutter_coords): fix for frame gutters.
9664 (update_frame_gutters): update frame geometry if the gutters have
9666 (init_frame_gutters): record current gutter geometries.
9668 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
9670 (mswindows_widget_instantiate): ditto.
9672 * frame.h (struct frame): add current_gutter_bounds.
9674 * frame.c (change_frame_size_1): position window and minibuffer
9675 appropriately taking into account the frame gutters.
9677 * frame-x.c: (x_initialize_frame_size): take into account the
9680 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
9682 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
9684 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
9686 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
9688 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
9690 * file-coding.c (reset_decoding_stream): Clear previous
9691 detection state when autodetect.
9693 2000-02-29 Didier Verna <didier@xemacs.org>
9695 * extents.c (set_extent_glyph_1): don't require extents to be
9698 2000-02-27 Andy Piper <andy@xemacs.org>
9700 * gutter.c (Fset_default_gutter_position): don't default left and
9701 right gutter visibility to t.
9702 (Fset_default_gutter_position): run
9703 default-gutter-position-changed-hook.
9704 (syms_of_gutter): add default-gutter-position-changed-hook.
9706 2000-02-26 Andy Piper <andy@xemacs.org>
9708 * specifier.c (Fmake_specifier): add gutter references.
9710 * gutter.h (RAW_WINDOW_GUTTER): new macro.
9712 * lisp.h: declare Fvalid_plist_p.
9714 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
9716 (default_gutter_visible_p_changed_in_window): invalidate gutter as
9717 well as its visibility so that it gets reconstructed.
9718 (construct_window_gutter_spec): new function. Construct a string
9719 to be displayed in the gutter from a plist of strings. Take care
9720 to only use elements that are declared as visible.
9721 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
9723 (gutter_validate): allow plists of strings in the specifier.
9724 (gutter_specs_changed): construct the real_gutter from the gutter
9725 specs using construct_window_gutter_spec.
9726 (gutter_visible_validate): gutter-visible is a new specifier type.
9727 (Fgutter_visible_specifier_p): new function for the new specifier.
9728 (syms_of_gutter): declare gutter-visible and
9729 Fgutter_visible_specifier_p.
9730 (specifier_type_create_gutter): intitalize new gutter-visible
9732 (reinit_specifier_type_create_gutter): ditto.
9733 (specifier_vars_of_gutter): use new specifier type for gutter
9735 (init_frame_gutters): construct real_gutter correctly.
9736 (Fgutter_specifier_p): beef up documentation.
9737 (Fgutter_size_specifier_p): ditto.
9739 * winslots.h: add real_gutter slots.
9741 2000-02-25 Andy Piper <andy@xemacs.org>
9743 * device-msw.c: Be kind to older cygwin versions. From Raymond
9744 Toy <toy@rtp.ericsson.se>.
9746 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
9747 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
9749 2000-02-25 Martin Buchholz <martin@xemacs.org>
9751 * elhash.c (MARK_OBJ): Practice macro hygiene.
9753 2000-02-24 Martin Buchholz <martin@xemacs.org>
9755 * miscplay.c: s/__inline__/inline/g;
9756 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
9757 (get_device_compdc): INLINE ==> static inline
9758 * *.[ch]: Change INLINE to INLINE_HEADER globally.
9759 find -name '*.h' | \
9760 xargs global-replace \
9761 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
9763 2000-02-25 Andy Piper <andy@xemacs.org>
9765 * window.c (window_top_frame_gutter_height): new function.
9766 (window_top_window_gutter_height): ditto.
9767 (window_top_gutter_height): use them.
9768 (window_bottom_frame_gutter_height): new function.
9769 (window_bottom_window_gutter_height): ditto.
9770 (window_bottom_gutter_height): use them.
9771 (window_left_window_gutter_width): new function.
9772 (window_left_frame_gutter_width): ditto.
9773 (window_left_gutter_width): use them.
9774 (window_right_window_gutter_width): new function.
9775 (window_right_frame_gutter_width): ditto.
9776 (window_right_gutter_width): use them.
9777 (window_pixel_height): new function. calulate window pixel height
9778 with frame gutter involvement.
9779 (Fsplit_window): calculate new sizes taking frame gutters into
9781 (window_char_height_to_pixel_height): don't include frame gutters.
9782 (window_char_height): use window_pixel_height.
9783 (window_pixheight): rename from window_pixel_height.
9784 (change_window_height): use it.
9785 (window_pixel_height_to_char_height): don't include frame gutters.
9786 (window_char_width_to_pixel_width): ditto.
9788 2000-02-25 Andy Piper <andy@xemacs.org>
9790 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
9793 2000-02-24 Martin Buchholz <martin@xemacs.org>
9795 * alloc.c (staticpro):
9801 (compact_string_chars):
9803 Convert: if (foo) abort(); ==> assert (! foo);
9805 * eldap.c (Fldap_search_basic):
9809 Fix compiler warnings, and possible crashes if (random) return
9810 value were to be used.
9812 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9814 * device-msw.c: Workaround ResetDC failure.
9816 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
9819 * redisplay-msw.c (get_frame_dc): Added start_page_p.
9820 (mswindows_text_width): Do not start printer page.
9822 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
9824 * glyphs-msw.c: Added image methods to msprinter console and
9825 msprinter-specific image instantiation.
9827 2000-02-20 Mike Alexander <mta@arbortext.com>
9829 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
9830 to avoid crashes when selection-sets-clipboard is on
9831 (mswindows_own_selection): ditto
9833 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9836 * redisplay-msw.c (get_frame_dc):
9839 * device-msw.c (mswindows_init_device):
9840 (mswindows_delete_device):
9841 (msprinter_init_device):
9842 (msprinter_delete_device):
9843 * frame-msw.c (mswindows_init_frame_1):
9844 (mswindows_delete_frame):
9845 (msprinter_init_frame_3):
9846 (msprinter_delete_frame): Move compatible DC to device object from
9847 frame object, for both mswindows and msprinter. Only one at a time
9848 is needed, it is a real waste to have one per frame!
9850 2000-02-23 Andy Piper <andy@xemacs.org>
9852 * glyphs.c: add dynamic width and height elements.
9853 (image_instance_equal): ditto.
9855 * glyphs-widget.c (widget_query_geometry): calculate width and
9856 height dynamically if required.
9857 (initialize_widget_image_instance): initialize dynamic dimensions.
9858 (widget_instantiate): pick-up dynamic dimensions.
9860 * glyphs.h (struct Lisp_Image_Instance): add width and height for
9861 dynamic determination. Add appropriate macros.
9863 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
9865 (WINDOW_GUTTER_SIZE): ditto.
9866 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
9868 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
9870 (get_frame_dc): ditto.
9872 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
9875 2000-02-23 Martin Buchholz <martin@xemacs.org>
9877 * XEmacs 21.2.31 is released.
9879 2000-02-22 Ben Wing <ben@xemacs.org>
9881 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
9883 2000-02-22 Andy Piper <andy@xemacs.org>
9885 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
9887 2000-02-21 Mike Sperber <mike@xemacs.org>
9891 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
9894 2000-02-21 Mike Sperber <mike@xemacs.org>
9896 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
9898 2000-02-21 Martin Buchholz <martin@xemacs.org>
9900 * XEmacs 21.2.30 is released.
9902 2000-02-20 Martin Buchholz <martin@xemacs.org>
9904 Performance hacking.
9906 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
9907 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
9910 * console.c (DEFVAR_CONSOLE_LOCAL_1):
9911 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
9912 * symeval.h (DEFVAR_SYMVAL_FWD):
9913 * symbols.c (guts_of_unbound_marker):
9914 Make all c_readonly objects also lisp_readonly and marked for life.
9915 * lrecord.h (struct lrecord_implementation):
9916 Document flags better.
9917 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
9918 * lrecord.h (DECLARE_LRECORD):
9919 * lrecord.h (XSETRECORD):
9920 * lrecord.h (RECORDP):
9921 * lrecord.h (RECORD_TYPEP):
9922 * lrecord.h (RECORD_MARKER): New.
9923 * lrecord.h (error_check_*):
9924 * lrecord.h (CONCHECK_NONRECORD):
9925 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
9926 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
9927 * lrecord.h (set_lheader_implementation):
9928 * lrecord.h (enum lrecord_type): New.
9929 * symeval.h (SYMBOL_VALUE_MAGIC_P):
9930 * alloc.c (disksave_object_finalization_1):
9931 * alloc.c (mark_object):
9932 * alloc.c (lrecord_type_index):
9933 * alloc.c (tick_lcrecord_stats):
9934 * alloc.c (Fgarbage_collect):
9935 * alloc.c (init_alloc_once_early):
9936 * alloc.c (pdump_load):
9937 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
9938 * alloc.c (lrecord_type_index): Delete.
9939 Make lisp object type indexes be constant.
9940 Makes (byte-compile) 5% faster.
9941 Put all marker functions into their own array.
9942 Makes (garbage-collect) 5% faster.
9943 Optimize SYMBOL_VALUE_MAGIC_P.
9944 Makes (byte-compile) 2-3% faster.
9945 * config.h.in (gc_checking_assert): New.
9946 * alloc.c: Use gc_checking_assert().
9947 * .dbxrc: Make compatible with new object type implementation.
9948 * .gdbinit: Make compatible with new object type implementation.
9949 * alloc.c: Delete all symbols defined only for debugging, such as
9950 Lisp_Type_Vector and lrecord_charset.
9952 2000-02-21 Andy Piper <andy@xemacs.org>
9954 * gui-msw.c (Fmswindows_shell_execute): fix file location
9957 * buffer.c (Fkill_buffer): remove buffer from alist buffer
9958 unshowing so that set_window_buffer doesn't undo
9959 kill_buffer_hook's hard work.
9961 * glyphs-widget.c (tab_control_query_geometry): don't count the
9962 first item when calculating geometry.
9964 * glyphs.c (map_subwindow): remove redundant code.
9965 (update_frame_subwindows): be more circumspect about when to
9968 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
9969 when items haven't changed. Update faces if faces have changed as
9970 well as just the widget face.
9971 (x_tab_control_update): Update faces if faces have changed as well
9972 as just the widget face.
9974 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
9976 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
9978 (build_syscolor_string): Use mswindows_color_to_string to try to
9980 (mswindows_device_system_metrics): Reverse the foreground and
9981 background colors so that they match the documentation.
9983 * objects-msw.c: (mswindows_X_color_map): tweak some values so
9984 they match the default Windows palette.
9985 (mswindows_color_to_string): New function.
9987 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
9989 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
9991 2000-02-18 Olivier Galibert <galibert@pobox.com>
9993 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
9994 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
9996 * symbols.c (init_symbols_once_early): Removed obsolete
9997 DATA_SEG_BITS related kludge.
9998 (defvar_magic): Ditto.
10000 * malloc.c: Removed obsolete DATA_SEG_BITS
10002 * mem-limits.h: Ditto.
10004 * Makefile.in.in: Removed obsolete HAVE_SHM
10007 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
10009 * device-msw.c (mswindows_delete_device): Free DDE string
10012 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10014 * keymap.c (get_keyelt):
10015 * unexnt.c (unexec):
10016 * vm-limit.c (memory_warnings):
10017 * ntheap.c (recreate_heap):
10018 * ntheap.h (UNINIT_PTR):
10019 * select-msw.c (Fmswindows_get_clipboard):
10020 (Fmswindows_set_clipboard):
10021 * objects-msw.h (MSWINDOWS_BAD_HFONT):
10023 * menubar-msw.c (displayable_menu_item):
10025 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10026 * sysdep.c (sys_subshell):
10027 * process-nt.c (nt_create_process):
10028 * nt.c (normalize_filename):
10029 (dostounix_filename):
10030 (unixtodos_filename):
10031 * ntproc.c (win32_executable_type):
10032 * ntplay.c (play_sound_data_1):
10034 * editfns.c (get_home_directory):
10035 * event-msw.c (struct winsock_stream):
10036 (mswindows_dde_callback):
10037 * device-msw.c (msprinter_init_device):
10038 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10040 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10041 mswindows_clear_toolbar were swapped!
10043 * objects-msw.c:(colormap_t):
10045 * emacs.c (struct standard_args): Fixed const jumble.
10047 * glyphs-widget.c (update_widget): Fixed comparison notation.
10049 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10051 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10052 __declspec(noreturn) syntax.
10054 2000-02-19 Martin Buchholz <martin@xemacs.org>
10056 * eldap.c (Fldap_open):
10057 (Fldap_search_basic):
10060 Use new coding system conversion macros.
10062 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10064 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10066 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
10068 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10069 (Fldap_add, Fldap_modify, Fldap_delete): New functions
10071 * eldap.c (Qadd, Qreplace): New constant symbols
10072 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10073 interruptions by XEmacs signals
10074 Remove unnecessary calls to slow_down_interrupts and
10075 speed_up_interrupts
10076 (Fldap_search_basic): Renamed from Fldap_search_internal
10077 Added new optional parameter VERBOSE that triggers the
10078 display of progress messages
10079 Remove unnecessary calls to slow_down_interrupts and
10080 speed_up_interrupts
10081 LDAP result code analysis rewritten
10082 (Fldap_add, Fldap_modify, Fldap_delete): New functions
10083 (syms_of_eldap): Define the new symbols and functions
10086 2000-02-17 Martin Buchholz <martin@xemacs.org>
10088 * realpath.c: Determine PATH_MAX maximally portably.
10090 * insdel.c (bytecount_to_charcount): Optimize.
10091 The function used to be optimized for entirely ASCII sequences.
10092 Now it is optimized for successive characters from the same
10093 charset. This also wins big for _mostly_ ASCII sequences.
10095 * fileio.c (Ffile_truename): convert return from realpath() using
10096 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
10097 - Rewrite GCPROing slightly.
10099 * sysdep.c (sys_open): Do filename conversion, like all other
10100 sys_* functions. Fixes bug:
10101 (let ((file-name-coding-system 'iso-8859-2))
10102 (write-region x y latin2-name))
10103 ==> writes filename using internal encoding.
10105 2000-02-18 Martin Buchholz <martin@xemacs.org>
10107 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10108 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10109 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10110 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10111 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10112 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10113 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10114 (CONST_IF_NOT_DEBUG): Delete.
10115 * alloc.c (this_one_is_unmarkable): Delete.
10116 (mark_object): Don't check for this_one_is_unmarkable. Use the
10117 c_readonly flag instead.
10118 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10120 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
10122 * event-msw.c (mswindows_drain_windows_queue):
10123 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10124 away redundant repaint events.
10126 2000-02-17 Andy Piper <andy@xemacs.org>
10128 * redisplay.h: declare mark_redisplay_structs.
10130 * redisplay.c (redisplay_window):
10131 (redisplay_frame): don't check subwindows_state_changed.
10132 (mark_redisplay): mark gutters here.
10134 * glyphs.c: (instantiate_image_instantiator): always layout if we
10135 haven't done so already.
10136 (allocate_image_instance): don't mark as dirty.
10137 (update_subwindow): bind inhibit_quit.
10139 * gutter.c (mark_gutters): new function.
10141 * glyphs-x.c (x_update_widget): Always resize to get round a
10144 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10145 breaking absolutely everything.
10147 * gutter.h: declare mark_gutters.
10149 2000-02-16 Martin Buchholz <martin@xemacs.org>
10151 * XEmacs 21.2.29 is released.
10153 2000-02-15 Olivier Galibert <galibert@pobox.com>
10155 * fns.c (size_bit_vector): Fix computation of the size.
10157 2000-02-15 Martin Buchholz <martin@xemacs.org>
10159 * *.[ch]: Change CONST to const globally.
10160 find -name '*.[ch]' | \
10161 xargs global-replace \
10162 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10163 - Remove vestigial references to CONST_IS_LOSING
10165 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
10167 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10168 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10169 events instead of dispatching them directly.
10170 (mswindows_handle_paint): New function to do repainting.
10171 (mswindows_wnd_proc):
10172 (emacs_mswindows_handle_magic_event): Call above function.
10174 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
10176 * objects-msw.c (mswindows_create_font_variant): Return the new
10178 (initialize_font_instance): Get font metrics from the underlined
10179 variant of the font to cope with the case where the underlined
10180 font has a bigger descent.
10182 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10184 * gui.c (gui_item_accelerator): Return the first underlined
10185 character in item name.
10187 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10189 * lisp.h: Added Qprinter.
10191 * general.c (syms_of_general): Initialized it.
10193 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10195 (get_frame_compdc): Made inline.
10197 * console.h (struct console_methods): Added eject_page method.
10199 * frame.h: Added FRAME_DISPLAY_P and friends.
10200 Aligned backslahes in many macros in more readable fashion.
10201 Added page_number to struct frame, and an accessor macro
10204 * defice.h: Added DEVICE_DISPLAY_P and friends.
10206 * device.c (Fdevice_printer_p): Used these.
10208 * frame.c (allocate_frame_core): Initialize page number.
10209 (Fprint_job_page_number):
10210 (Fprint_job_eject_page): Implemented.
10212 * frame-msw.c (msprinter_eject_page): Added method.
10213 (msprinter_start_page): Added.
10215 * window.c (Fwindow_truncated_p): Fixed docstring.
10216 (Fwindow_last_line_visible_height): Implemented.
10218 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10220 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10222 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10224 * syntax.c (scan_words): Always advance at least one character.
10226 2000-02-13 Andy Piper <andy@xemacs.org>
10228 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10229 to make sure the glyph is in the cachels.
10231 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10232 global image instance flag.
10233 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10234 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10236 * glyphs.c (allocate_image_instance): set dirty bits correctly.
10237 (Fset_image_instance_property): mark layout as changed.
10238 (invalidate_glyph_geometry_maybe): mark layout as changed.
10239 (glyph_width): use new NEEDS_LAYOUT macro.
10240 (glyph_ascent): ditto.
10241 (glyph_descent): ditto.
10242 (glyph_height): ditto.
10243 (image_instance_layout): mark layout as clean after laying out.
10244 (update_subwindow): don't mark layout as clean here.
10246 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10247 should no longer be needed.
10249 * glyphs-x.c (x_update_widget): sanitize asserts.
10250 (x_finalize_image_instance): sanitize assignment to widgets.
10252 * glyphs-widget.c (widget_instantiate): don't need to clear the
10255 2000-02-13 Martin Buchholz <martin@xemacs.org>
10257 * sysdep.c (getcwd): Use standard prototype.
10258 * sysdep.h (getcwd): Use standard prototype.
10260 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10261 (sequence, start, end).
10262 Remove redundant type checking.
10263 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10264 view of `caller-protects') to avoid a crash where the real fix was
10267 2000-02-12 Martin Buchholz <martin@xemacs.org>
10269 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10271 * s/sol2.h: Remove feature macro initialization.
10273 * alloc.c (alloc_lcrecord): Add more type checking assertions.
10274 (vector_hash): New. Code from internal_hash.
10276 Fix up allocation subsystem comments.
10278 * config.h.in: Add __EXTENSIONS__ for Solaris.
10280 * systime.h (EMACS_GETTIMEOFDAY): New.
10281 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10282 Remove Solaris-specific code.
10283 Use void* for the (ignored) second arg for gettimeofday().
10285 * elhash.c (hash_table_hash): Implement it, finally.
10286 * elhash.c: Use hashcode_t.
10288 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10289 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10291 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10292 * fns.c (size_bit_vector):
10293 * alloc.c (size_vector):
10294 (make_vector_internal):
10295 (make_bit_vector_internal):
10296 (sweep_bit_vectors_1):
10297 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10299 2000-02-10 Martin Buchholz <martin@xemacs.org>
10301 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10302 Include strings.h to avoid warnings for bzero and strcasecmp.
10304 2000-02-10 Olivier Galibert <galibert@pobox.com>
10306 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10307 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10309 * fns.c (size_bit_vector): New. Declare bit vectors as a
10312 2000-02-10 Olivier Galibert <galibert@pobox.com>
10314 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10315 use a value field instead.
10316 (symbol_value_forward_forward): Use value field.
10317 (DEFVAR_SYMVAL_FWD): Use value field.
10318 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
10319 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10320 (DEFVAR_CONST_INT): Ditto.
10321 (DEFVAR_BOOL): Ditto.
10322 (DEFVAR_CONST_BOOL): Ditto.
10323 (DEFVAR_INT_MAGIC): Ditto.
10324 (DEFVAR_BOOL_MAGIC): Ditto.
10326 * symbols.c (guts_of_unbound_marker): Use value field.
10327 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10328 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10330 * lisp.h: Declare dumpopaque and noninteractive1.
10332 * alloc.c (dumpopaque): Added.
10333 (pdump_dump_opaquevec): Added.
10334 (pdump): Call pdump_dump_opaquevec to dump opaque data.
10335 (pdump_load): Reload opaque data. Sync noninteractive1 with
10338 2000-02-10 Andy Piper <andy@xemacs.org>
10340 * glyphs.c (image_instance_layout): if the size changes, mark it
10343 * redisplay-output.c (redisplay_output_layout): Update the
10345 (redisplay_output_subwindow): ditto.
10347 * glyphs.c (update_subwindow): make sure we reset flags for
10348 layouts as well as everything else.
10350 * glyphs-widget.c (layout_layout): don't need to set the instances
10353 2000-02-09 Martin Buchholz <martin@xemacs.org>
10355 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
10356 not HAVE_DLOPEN, which is a lower-level thing.
10358 * .cvsignore: Ignore gmon.out
10360 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
10362 * .cvsignore: Ignore portable dumper xemacs.dmp file
10364 2000-02-09 Andy Piper <andy@xemacs.org>
10366 * redisplay-output.c (redisplay_output_layout): be more clever
10367 about when we output based on the changed flags.
10369 * glyphs.h (struct image_instantiator_methods): add update_method.
10370 (struct Lisp_Image_Instance): add changed flags. Declare new
10371 macros for manipulating them.
10373 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10374 (image_instance_parent_glyph): find an image_instance's parent
10375 glyph or image_instance.
10376 (image_instance_layout): mark the size as changed.
10377 (set_image_instance_dirty_p): new function. mark an image
10378 instance, plus all of its parents, as dirty.
10379 (Fset_image_instance_property): use it.
10380 (Fglyph_animated_timeout_handler): use it.
10381 (update_subwindow): call update_widget and device methods for
10382 update_subwindow. Mark all changed flags as clean.
10383 (Fresize_subwindow): mark size as changed.
10385 * glyphs-x.c (x_finalize_image_instance): try and detect gc
10387 (x_update_subwindow): only resize subwindows here.
10388 (x_update_widget): new function. Update all changed properties of
10390 (x_resize_subwindow): deleted.
10391 (x_widget_set_property): deleted.
10392 (x_progress_gauge_set_property): deleted.
10393 (x_progress_gauge_update): new function. Implement recorded
10395 (x_tab_control_update): ditto.
10396 (x_tab_control_set_property): deleted.
10397 (console_type_create_glyphs_x): declare new functions.
10398 (image_instantiator_format_create_glyphs_x): ditto.
10400 * glyphs-widget.c (widget_set_property): mark text changed.
10401 (update_widget): new function. Update properties of a widget.
10402 (widget_instantiate): for layouts make sure we set their
10403 children's parent correctly.
10404 (tab_control_set_property): new function. Record changes that will
10405 take place under redisplay's control.
10406 (progress_gauge_set_property): ditto.
10407 (image_instantiator_progress_guage): declare new functions.
10408 (image_instantiator_tab_control): ditto.
10410 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10412 (mswindows_update_widget): new function. Update all properties on
10413 a widget that have changed.
10414 (mswindows_button_update): new function. Update a button's set
10416 (mswindows_tab_control_update): new function. Update the items in
10418 (mswindows_tab_control_set_property): deleted.
10419 (mswindows_progress_gauge_update): new function. Update the
10420 progress gauge's progress.
10421 (mswindows_widget_set_property): deleted. This is all done
10422 asynchronously now.
10423 (mswindows_progress_gauge_set_property): ditto.
10424 (console_type_create_glyphs_mswindows): declare new methods.
10425 (image_instantiator_format_create_glyphs_mswindows): ditto.
10427 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10428 (msprinter_set_frame_properties): ditto.
10430 * console.h (struct console_methods): Add update_widget_method.
10432 2000-02-09 Andy Piper <andy@xemacs.org>
10434 * gui-msw.c (Fmswindows_shell_execute): Make
10435 mswindows-shell-execute industrial strength.
10437 2000-02-08 Martin Buchholz <martin@xemacs.org>
10439 * lrecord.h: Make macro argument `props' match member function `plist'.
10442 * fns.c (Fremprop):
10443 * fns.c (Fobject_plist):
10446 Object property list frobbing cleanup.
10447 - Allow any lisp object (compared with `eq'), not just symbols, as
10448 keys in object plists.
10449 - Move symbol plist frobbing into symbols.c, where it belongs.
10450 - Move string plist frobbing into alloc.c, where it belongs.
10451 - Everything's an lrecord now, so no need to test for symbolp, etc.
10452 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
10454 * extents.c: Reorder code to remove declarations.
10456 * frame.h (store_in_alist): Remove useless declaration.
10458 2000-02-07 Martin Buchholz <martin@xemacs.org>
10460 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
10461 * config.h.in: Add HAVE_XCONVERTCASE.
10463 2000-02-07 Andy Piper <andy@xemacs.org>
10465 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
10466 it breaks many things.
10468 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
10470 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
10471 actually can start a common comment type.
10472 * src/syntax.h (SYNTAX_END_P): ditto for end.
10474 2000-02-07 Martin Buchholz <martin@xemacs.org>
10476 * XEmacs 21.2.28 is released.
10478 2000-02-06 Martin Buchholz <martin@xemacs.org>
10480 * event-Xt.c (x_keysym_to_character): New.
10481 (maybe_define_x_key_as_self_inserting_character): New.
10482 (x_has_keysym): New.
10483 Auto-define all keys on the keyboard as self-insert-key.
10485 2000-02-02 Martin Buchholz <martin@xemacs.org>
10487 * menubar.c (vars_of_menubar): A small code simplification.
10489 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
10492 * ExternalClient.c:
10493 * EmacsShell-sub.c:
10496 Use consistent style for specifying X resources.
10498 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
10499 This makes (dontusethis-set-symbol-value-handler) actually usable.
10501 * lrecord.h (lrecord_decription_type):
10502 * alloc.c (pdump_register_sub):
10505 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
10506 Comply with XEmacs coding style.
10507 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
10508 args, and XD_LISP_OBJECT_ARRAY with 3 args.
10510 * keymap.c (Faccessible_keymaps):
10511 Make (accessible-keymaps map "\C-h") do the Right Thing.
10512 Make (accessible-keymaps map []) do the Right Thing.
10513 Make (accessible-keymaps map "") do the Right Thing.
10514 (check_keymap_definition_loop): New function.
10515 (keymap_store_internal): Keep luser from shooting self in foot,
10516 via (define-key ctl-x-4-map "p" global-map).
10517 Remove fullness slot from struct Lisp_Keymap, since hash tables
10519 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
10521 2000-01-30 Martin Buchholz <martin@xemacs.org>
10523 * redisplay.c (init_redisplay): Fix small memory leak.
10525 * elhash.c (pdump_reorganize_hash_table):
10526 Rename from reorganize_hash_table. Change prototype.
10527 Reuse the original memory for hentries. Save 100k.
10528 * alloc.c (PDUMP_READ): new macro.
10529 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
10530 * alloc.c: No need to #ifndef before #undef.
10532 * print.c: Allow debug_print() to print readably by modifying
10533 debug_print_readably. Use consistent variable names.
10535 * .dbxrc: Try to get things to work even if stopped in a function
10536 without source available by explicitly specifying source files.
10537 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10539 * unexnt.c (_start): Removed bogus code which caused loading heap
10540 from differrent executable file.
10541 Removed bogus assignment to _fmode, which caused inconsistencies.
10543 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10545 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
10546 Have spawnve encapsulation regard DONT_ENCAPSULATE.
10547 Do not preliminary `#define signal sigset'.
10549 * systime.h: Do not prototype environ on windows nt and cygwin,
10550 this conflicts with system header.
10552 * syssignal.h: Use correct define for WINDOWSNT
10554 * sysdep.h: Do not prototype environ on windows nt, this conflicts
10555 with system header.
10557 * sysdep.c (near start of file): Fixed commentary and rearranged
10558 ifdefs in readable order.
10559 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
10562 (end_of_data): Do not compile in if using PDUMP.
10564 * symsinit.h: Prototyped vars_of_nt().
10566 * ntproc.c (windows9x_p): Added, instead of os_subtype.
10567 (find_child_console): Use it.
10568 (sys_kill): Use it.
10570 * ntheap.h: Do not extern os_subtype.
10572 * ntheap.c (cache_system_info): Do not cache unneeded:
10573 nt_major_version, nt_minor_version and os_subtype.
10574 (recreate_heap): Do not compile in when PDUMPing.
10576 * nt.c (geteuid and friends): Use the new varibale
10577 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
10578 (init_user_info): Removed the above mentioned hackery.
10579 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
10580 stat has been fixed in the C runtime.
10581 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
10583 * file-coding.c (struct file_coding_dump): Do not define
10584 ucs_to_mule_table in the struct if not MULE.
10585 (struct struct lrecord_description fcd_description_1): Do not dump
10588 * emacs.c (main_1): Call vars_of_nt().
10589 (right before Fdump_emacs_data): Don't need lastfile if using both
10590 portabe dumper and system malloc.
10592 * alloc.c (Fmemory_limit): Conditionalized out.
10593 (pdump): Use OPEN_BINARY for the portable dump file.
10594 (pdump_load): Ditto.
10596 2000-02-02 Mike Alexander <mta@arbortext.com>
10598 * nt.c (convert_time): Set tm_isdst before calling mktime and
10599 avoid calling it at all if the compiler supports 64 bit integers.
10600 Also initialize utc_base_ft before using it.
10602 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10604 * frame.c (change_frame_size_1): Take f->internal_border_width
10605 into consideration when calculating the width of the frame.
10607 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10609 * window.c (frame_min_height):
10610 (frame_size_valid_p):
10611 (frame_pixsize_valid_p): Added.
10612 (check_frame_size): Generalized.
10614 * window.h: Prototyped the above.
10617 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
10618 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
10619 Deleted Vwin32_* and Vbinary_process_* unused variables.
10621 * device-msw.c (msprinter_init_device): Do not get printer font
10622 list; Added DEVMODE functions.
10624 * frame-msw.c: Added lots of printer code.
10626 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
10629 * console-msw.h: Added more msprinter device private slots.
10631 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10633 * event-msw.c (key_needs_default_processing_p): Added.
10634 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
10636 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10638 * glyphs.c (image_instance_layout): Mark image instance as clean
10640 (glyph_dirty_p): Removed redundant function.
10641 (invalidate_glyph_geometry_maybe): Added.
10642 (update_glyph_cachel_data): Call it.
10644 * glyphs.h: Prototyped it.
10646 * redisplay.c (add_glyph_rune): Call it.
10647 (redisplay_window): Reset glyphs cachels when frame faces have
10648 changed, thus forcing recomputation of built-in border glyphs.
10650 2000-01-30 Martin Buchholz <martin@xemacs.org>
10652 * Makefile.in.in: Make portable dumper and purify play well together.
10653 Add imperfect, but better than nothing, support for pdump.
10654 Remove xemacs.dmp when temacs is re-generated.
10655 Don't ignore errors when dumping xemacs.
10657 * symbols.c (maybe_call_magic_handler): Remove one magic number.
10659 2000-01-28 Andy Piper <andy@xemacs.org>
10661 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
10662 (setup_normal_frame): ditto.
10663 (setup_frame_without_minibuffer): ditto.
10664 (setup_minibuffer_frame): ditto.
10665 (delete_frame_internal): ditto.
10666 (Fmake_frame_invisible): ditto.
10667 (Ficonify_frame): ditto.
10669 * window.h: change Fset_window_buffer signature.
10671 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
10672 (Fset_window_buffer): allow recording of buffer if the window is
10673 the selected window.
10674 (window_loop): Use new Fset_window signature.
10676 2000-01-23 Daniel Pittman <daniel@danann.net>
10678 * config.h.in: Added template for `HAVE_ATHENA_3D'
10680 2000-01-29 Andy Piper <andy@xemacs.org>
10682 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
10684 * gutter.c (output_gutter): Don't output if the window isn't live.
10686 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10688 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
10689 of 01/12/00: Moved SetFocus back here where it belongs.
10691 2000-01-23 Andy Piper <andy@xemacs.org>
10693 * s/cygwin32.h: declare printer things.
10695 2000-01-26 Andy Piper <andy@xemacs.org>
10697 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
10700 2000-01-24 Andy Piper <andy@xemacs.org>
10702 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
10703 (mswindows_button_instantiate): Make sure glyph is a pixmap.
10705 * glyphs-widget.c (widget_instantiate): Avoid shadows.
10707 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
10709 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
10711 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
10712 (mswindows_output_display_block): Avoid local shadows.
10714 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
10715 (mswindows_enqueue_mouse_button_event): ditto.
10716 (mswindows_handle_gui_wm_command): remove declaration.
10718 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
10721 * console-msw.h: Avoid shadows.
10722 (mswindows_get_toolbar_button_text):
10723 (emacs_mswindows_create_stream_pair):
10724 (emacs_mswindows_delete_stream_pair):
10725 (mswindows_handle_toolbar_wm_command): declare.
10727 * device-msw.c (build_syscolor_string): Avoid shadows.
10729 2000-01-23 Andy Piper <andy@xemacs.org>
10731 * glyphs-widget.c (widget_instantiate): reverse the items for
10732 layouts so that children are in the expected order.
10734 2000-01-28 Martin Buchholz <martin@xemacs.org>
10736 * ralloc.c: safe_bcopy ==> memmove
10737 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
10738 * s/msdos.h: Remove BCOPY macros.
10739 * insdel.c (gap_right): Remove BCOPY conditional code.
10740 * insdel.c (gap_left): Remove BCOPY conditional code.
10741 XEmacs demands a working ANSI C compiler - hence memmove.
10743 * regex.c (regex_compile): Remove accidental use of trigraphs.
10745 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10747 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
10750 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10752 * event-msw.c (mswindows_drain_windows_queue): Added the
10754 (mswindows_need_event): Commented the call to
10755 mswindows_drain_windows_queue().
10756 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
10759 * console-msw.h: Moved a few function prototypes here from
10762 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
10763 parameter from unsigned short to unsigned long.
10764 (Fmswindows_shell_execute): Added return value.
10766 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
10768 * sysdep.c (init_system_name):
10769 process-unix.c (unix_canonicalized_host_name):
10770 Don't call freeaddrinfo() if getaddrinfo() fails.
10772 * process-unix.c (unix_open_unix_network_stream):
10773 Moved the code to get a port # into address loop.
10775 2000-01-27 Martin Buchholz <martin@xemacs.org>
10777 * buffer.c (reinit_vars_of_buffer):
10778 The right place to initialize conversion_in_dynarr and
10779 conversion_out_dynarr.
10781 * alloc.c (pdump): Use the real open() till sys_open() is functional.
10783 * process-unix.c (unix_canonicalize_host_name): Muleize.
10784 (unix_open_network_stream): Muleize.
10786 * buffer.h: Fix up prototypes for ralloc.c functions.
10788 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
10789 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
10790 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
10791 instead of gethostbyname()
10792 * process-unix.c: In unix_canonicalize_host_name() and
10793 unix_open_network_stream(), add code to use getaddrinfo()
10794 instead of gethostbyname().
10796 2000-01-27 Daniel Pittman <daniel@danann.net>
10798 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
10799 libs when built with flat Athena.
10801 2000-01-27 Martin Buchholz <martin@xemacs.org>
10803 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
10804 Use coding standards for function prototypes.
10806 2000-01-25 Martin Buchholz <martin@xemacs.org>
10808 * dialog-msw.c (push_lisp_string_as_unicode):
10809 * doc.c (unparesseuxify_doc_string):
10810 * dired.c (Fuser_name_completion_1):
10811 * dired.c (Fuser_name_all_completions):
10812 * dired.c (free_user_cache):
10813 * dired.c (user_name_completion):
10814 * console-x.c (get_display_arg_connection):
10815 * minibuf.c (clear_echo_area_internal):
10816 * minibuf.c (echo_area_append):
10817 * eldap.c (Fldap_open):
10818 * eldap.c (Fldap_search_internal):
10819 * frame-x.c (x_set_frame_text_value):
10820 * frame-x.c (x_set_frame_properties):
10821 * frame-x.c (x_create_widgets):
10822 * redisplay-tty.c (term_get_fkeys_1):
10823 * objects-x.c (x_parse_nearest_color):
10824 * objects-x.c (x_valid_color_name_p):
10825 * objects-x.c (x_initialize_font_instance):
10826 * objects-x.c (x_list_fonts):
10827 * objects-x.c (x_find_charset_font):
10828 * tooltalk.c (Fadd_tooltalk_message_arg):
10829 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10830 * tooltalk.c (Fadd_tooltalk_pattern_arg):
10831 * process-unix.c (unix_create_process):
10832 * ntproc.c (sys_spawnve):
10833 * sound.c (Fplay_sound_file):
10834 * sound.c (Fplay_sound):
10835 * buffer.c (init_initial_directory):
10836 * buffer.c (init_buffer):
10837 * editfns.c (init_editfns):
10838 * editfns.c (Ftemp_directory):
10839 * editfns.c (Fuser_full_name):
10840 * editfns.c (uncache_home_directory):
10841 * editfns.c (get_home_directory):
10842 * editfns.c (Fuser_home_directory):
10843 * editfns.c (Fformat_time_string):
10844 * editfns.c (Fcurrent_time_string):
10845 * gui-x.c (button_item_to_widget_value):
10846 * database.c (Fopen_database):
10847 * event-Xt.c (x_to_emacs_keysym):
10848 * event-Xt.c (x_event_to_emacs_event):
10849 * event-Xt.c (describe_event_window):
10850 * event-msw.c (mswindows_wnd_proc):
10851 * glyphs-eimage.c (jpeg_instantiate):
10852 * glyphs-eimage.c (gif_instantiate):
10853 * glyphs-eimage.c (png_instantiate):
10854 * glyphs-eimage.c (tiff_instantiate):
10855 * glyphs-x.c (xbm_instantiate_1):
10856 * glyphs-x.c (x_xbm_instantiate):
10857 * glyphs-x.c (x_xface_instantiate):
10858 * glyphs-x.c (autodetect_instantiate):
10859 * glyphs-x.c (cursor_font_instantiate):
10860 * glyphs-x.c (x_widget_instantiate):
10861 * glyphs-x.c (x_widget_set_property):
10862 * glyphs-x.c (x_widget_property):
10863 * glyphs-x.c (BUILD_GLYPH_INST):
10864 * print.c (write_string_to_stdio_stream):
10865 * print.c (output_string):
10866 * print.c (Falternate_debugging_output):
10867 * print.c (Fexternal_debugging_output):
10868 * glyphs-msw.c (extract_xpm_color_names):
10869 * glyphs-msw.c (mswindows_xpm_instantiate):
10870 * glyphs-msw.c (bmp_instantiate):
10871 * glyphs-msw.c (resource_name_to_resource):
10872 * glyphs-msw.c (mswindows_resource_instantiate):
10873 * glyphs-msw.c (xbm_instantiate_1):
10874 * glyphs-msw.c (mswindows_xbm_instantiate):
10875 * glyphs-msw.c (mswindows_xface_instantiate):
10876 * glyphs-msw.c (mswindows_widget_instantiate):
10877 * glyphs-msw.c (add_tree_item):
10878 * glyphs-msw.c (add_tab_item):
10879 * glyphs-msw.c (mswindows_combo_box_instantiate):
10880 * glyphs-msw.c (mswindows_widget_property):
10881 * glyphs-msw.c (mswindows_combo_box_property):
10882 * glyphs-msw.c (mswindows_widget_set_property):
10883 * console.c (stuff_buffered_input):
10884 * objects-msw.c (mswindows_initialize_color_instance):
10885 * objects-msw.c (mswindows_valid_color_name_p):
10886 * objects-msw.c (mswindows_list_fonts):
10887 * objects-msw.c (mswindows_font_instance_truename):
10888 * bytecode.c (optimize_compiled_function):
10889 * select-x.c (symbol_to_x_atom):
10890 * select-x.c (x_atom_to_symbol):
10891 * select-x.c (hack_motif_clipboard_selection):
10892 * select-x.c (selection_data_to_lisp_data):
10893 * select-x.c (lisp_data_to_selection_data):
10894 * select-x.c (Fx_get_cutbuffer_internal):
10895 * select-x.c (Fx_store_cutbuffer_internal):
10896 * buffer.h (TO_EXTERNAL_FORMAT): New function.
10897 * buffer.h (TO_INTERNAL_FORMAT): New function.
10898 * emacs.c (make_arg_list_1):
10899 * emacs.c (make_argc_argv):
10900 * emacs.c (main_1):
10901 * emacs.c (Fdump_emacs):
10902 * emacs.c (split_string_by_emchar_1):
10907 * device-x.c (x_init_device):
10908 * device-x.c (Fx_valid_keysym_name_p):
10909 * device-x.c (Fx_get_font_path):
10910 * device-x.c (Fx_set_font_path):
10911 * glyphs.c (bitmap_to_lisp_data):
10912 * glyphs.c (pixmap_to_lisp_data):
10913 * alloc.c (make_ext_string): Use coding system arguments. Update
10915 * alloc.c (build_string):
10916 * callproc.c (child_setup):
10917 * callproc.c (init_callproc):
10918 * fileio.c (lisp_strerror):
10919 * fileio.c (directory_file_name):
10920 * fileio.c (Fexpand_file_name):
10921 * fileio.c (Ffile_truename):
10922 * fileio.c (Fsysnetunam):
10923 * fileio.c (Fdo_auto_save):
10924 * sysdep.c (sys_readdir):
10925 * tests.c: New file. Allow adding C tests.
10926 Replace GET_* macros with a more comprehensible and flexible
10927 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
10929 Any coding system can be used to do format conversion.
10930 Eliminate enum external_data_format.
10931 Eliminate convert_to_external_format.
10932 Eliminate convert_to_internal_format.
10933 Make sure file-name, keyboard, terminal, and ctext are always
10934 defined as coding systems or aliases. Make
10935 file-name-coding-system, terminal-coding-system, and
10936 keyboard-coding-system magical variables that are equivalent to
10937 defining the corresponding coding system aliases.
10939 * file-coding.c (Fcoding_system_canonical_name_p): New function.
10940 * file-coding.c (Fcoding_system_alias_p): New function.
10941 * file-coding.c (Fcoding_system_aliasee): New function.
10942 * file-coding.c (append_suffix_to_symbol): New function.
10943 * file-coding.c (dangling_coding_system_alias_p): New function.
10944 * file-coding.c (Ffind_coding_system):
10945 * file-coding.c (Fcopy_coding_system):
10946 * file-coding.c (encode_coding_no_conversion):
10947 * file-coding.c (syms_of_file_coding):
10948 * file-coding.c (vars_of_file_coding):
10949 Rewrite coding system alias code.
10950 Allow nested aliases, like symbolic links.
10951 Allow redefinition of coding system aliases.
10952 Prevent existence of dangling coding system aliases.
10954 * dired.c (Fuser_name_completion_1):
10955 * dired.c (Fuser_name_all_completions):
10956 A crash would happen if user did QUIT in the middle of building
10957 user_name_cache. Remove redundant code in mainline and unwind_protect.
10960 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
10962 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
10963 an unsigned char *. Update all callers.
10965 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10967 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
10969 2000-01-25 Martin Buchholz <martin@xemacs.org>
10971 * elhash.c (hentry_description): Use more portable definition.
10972 (resize_hash_table): Initialize new hentries using
10973 xnew_array_and_zero, thereby simplifying the code.
10975 * mule-charset.c (make_charset): Make sure entire object is
10976 initialized, to avoid Purify warnings.
10978 * alloc.c (resize_string): Fix unlikely crash with big strings.
10980 2000-01-24 Martin Buchholz <martin@xemacs.org>
10982 * realpath.c (xrealpath):
10983 Don't call getwd().
10985 2000-01-25 Martin Buchholz <martin@xemacs.org>
10987 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
10989 1999-12-28 Max Matveev <max@melbourne.sgi.com>
10991 * unexelfsgi.c (unexec): Change the way we decide which segment
10992 should be extended.
10994 Assumption that .bss section should be outside the PT_LOADable
10995 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
10996 it's present) is inside the 'data' segment. This would fail the
10997 test which was used to find a segment to grow and cover new
10998 heap. Instead of this assumption, I created another one - on IRIX
10999 the segment to grow should start below .bss and it's address
11000 should extent above the end of .bss. Once this segment is
11001 identified, it's grown to accommodate the new heap and new
11002 zero-length .bss section is added at the end of .data2.
11004 2000-01-25 Martin Buchholz <martin@xemacs.org>
11006 * eval.c (Feval): Wrong number of arguments should use original
11007 function, not the indirect_function version of it.
11009 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
11011 * glyphs-x.c (x_button_instantiate): Don't add image if
11012 it is not a pixmap.
11013 (x_locate_pixmap_file): Call Fexpand_file_name when file name
11016 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
11018 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11020 (DEFVAR_INT_MAGIC): Ditto.
11021 (DEFVAR_BOOL_MAGIC): Ditto.
11022 * glyphs.h: Reindent backslash.
11024 2000-01-24 Martin Buchholz <martin@xemacs.org>
11026 * glyphs-widget.c (layout_query_geometry):
11027 (layout_layout): Use correct types for gheight, gwidth.
11029 2000-01-24 Martin Buchholz <martin@xemacs.org>
11031 * EmacsManager.c (QueryGeometry): Purified.
11033 2000-01-23 Martin Buchholz <martin@xemacs.org>
11035 * alloc.c (make_float): Make sure entire object is initialized, to
11036 avoid Purify warnings.
11037 (pdump_register_sub): Remove useless assignment.
11038 (pdump): Use xmalloc, not malloc.
11039 (pdump_load): Use xmalloc, not malloc.
11041 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11048 * sysdep.c: Removed redundant #include <windows.h>
11050 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11052 * frame.c (delete_frame_internal): Do not delete device when its
11053 implementation so declares.
11054 (delete_frame_internal): Set device selected frame to nil when
11055 last frame goes away.
11057 * device-msw.c (msprinter_device_system_metrics): Implemented.
11058 (mswindows_device_system_metrics): Added 'device-dpi property.
11060 * device.c: (Fdevice_printer_p): Added.
11061 Added 'offset-workspace device metric.
11063 * console.h (device_metrics): Declared DM_offset_workspace.
11065 2000-01-23 Martin Buchholz <martin@xemacs.org>
11067 * fileio.c (Ffile_truename): Remove pointless and confusing
11068 initialization of elen.
11070 * glyphs-widget.c: Compiler warning fixes.
11072 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
11074 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11075 instead of a Lisp_Object as argument to make it consistent with
11076 the other LIVE_P macros.
11077 (CHECK_LIVE_PROCESS): New macro.
11079 * process.c: Declare Qprocess_live_p.
11080 (Fprocess_live_p): New function.
11081 (create_process): Use PROCESS_LIVE_P.
11082 (read_process_output): Ditto.
11083 (set_process_filter): Ditto.
11084 (Fdelete_process): Ditto.
11085 (kill_buffer_processes): Ditto
11086 (process_send_signal): Use CHECK_LIVE_PROCESS.
11087 (Fprocess_input_coding_system): Check whether process is still
11088 alive (fix PR#1061).
11089 (Fprocess_output_coding_system): Ditto.
11090 (Fprocess_coding_system): Ditto.
11091 (Fset_process_input_coding_system): Ditto.
11092 (Fset_process_output_coding_system): Ditto.
11094 2000-01-23 Andy Piper <andy@xemacs.org>
11096 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11099 * glyphs.c (mark_image_instance): take into account changed
11100 image_instance format.
11101 (image_instance_equal): ditto.
11102 (image_instance_hash): ditto.
11104 * glyphs-widget.c (widget_instantiate): Incorporate layout
11105 instantiation here. Delay layout of the layout until later.
11106 (layout_instantiate): deleted.
11107 (layout_query_geometry): new function. get the geometry of a
11109 (layout_layout): layout a layout dynamically.
11110 (image_instantiator_widget): New function - splitting up
11111 image_instantiator_format_create_glyphs_widget for netwinder
11113 (image_instantiator_buttons):
11114 (image_instantiator_edit_fields):
11115 (image_instantiator_combo_box):
11116 (image_instantiator_scrollbar):
11117 (image_instantiator_progress_guage):
11118 (image_instantiator_tree_view):
11119 (image_instantiator_tab_control):
11120 (image_instantiator_labels):
11121 (image_instantiator_layout): ditto.
11122 (image_instantiator_format_create_glyphs_widget): Call preceding
11125 2000-01-22 Martin Buchholz <martin@xemacs.org>
11127 * process.c (Fset_process_coding_system):
11128 * device-x.c (Fx_keysym_hash_table):
11131 * lstream.c (Lstream_write): Return documented value, not 0.
11133 * fileio.c (directory_file_name):
11134 (Fsubstitute_in_file_name):
11135 (Fsubstitute_insert_file_contents_internal):
11136 (Fwrite_region_internal):
11141 Remove vestigial APOLLO-conditional code.
11143 2000-01-21 Martin Buchholz <martin@xemacs.org>
11145 * getpagesize.h: Add guard macros.
11146 * libsst.h: Add guard macros.
11147 * libst.h: Add guard macros.
11148 * line-number.h: Add guard macros.
11149 * ndir.h: Add guard macros.
11150 * sysfloat.h: Add guard macros.
11151 * sysfile.h: Add guard macros.
11152 * sysproc.h: Add guard macros.
11153 * syswait.h: Add guard macros.
11154 * xintrinsic.h: Add guard macros.
11155 * xintrinsicp.h: Add guard macros.
11156 * xmmanager.h: Add guard macros.
11157 * xmmanagerp.h: Add guard macros.
11158 * xmprimitive.h: Add guard macros.
11159 * xmu.h: Add guard macros.
11160 * gpmevent.h: Add copyright statement. Add guard macros.
11161 * miscplay.h: Add guard macros.
11162 * *.h: Use consistent C-standards-approved guard macro names.
11164 * opaque.c (make_opaque): Switch parameter order.
11165 * opaque.h (make_opaque): Switch parameter order.
11166 Update all callers.
11167 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11169 * config.h.in (type_checking_assert): Added.
11170 (bufpos_checking_assert): Added.
11172 2000-01-21 Martin Buchholz <martin@xemacs.org>
11174 * alloc.c: Harmless pdump changes.
11176 - spell alignment correctly.
11177 * sysdep.c: Use countof()
11179 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11181 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11182 initially_selected_for_input() console method, default to 0.
11183 (semi_canonicalize_console_connection): Try to delegate to
11184 canonicalize_console_connection if no such console method.
11185 (canonicalize_console_connection): Vice versa.
11186 (print_console): Do not print nil connection.
11188 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11189 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11190 (XDEVIMPF_FRAMELESS_OK): Added.
11191 (CONSOLE_INHERITS_METHOD): Added.
11193 * console-msw.c (mswindows_canonicalize_console_connection):
11195 (mswindows_canonicalize_device_connection): Added.
11197 * console-msw.h (struct msprinter_device): Added this struct and
11199 (mswindows_device): Made fontlist a lisp object.
11201 * device.c (semi_canonicalize_device_connection): Try to delegate
11202 to canonicalize_device_connection if no such console method.
11203 (canonicalize_device_connection): Vice versa.
11204 (print_device): Do not print nil connection.
11206 * device-msw.c (mswindows_init_device): Call InitCommonControls
11208 (mswindows_delete_device): Removed fontlist deallocation.
11209 (mswindows_mark_device): Added.
11211 * events.c (event_equal): Added abort() at unreached code.
11212 (event_hash): Ditto.
11214 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11215 fallback tags of Windows devices.
11217 * general.c (syms_of_general): Initialized Qmsprinter.
11219 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11220 of fallback tags of Windows devices.
11222 * lisp.h: Declared Qmsprinter.
11224 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11226 (mswindows_list_fonts): Ditto.
11227 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11228 that it can be used by both mswindows and msprinter devices.
11229 (initialize_font_instance): Added.
11230 (mswindows_initialize_font_instance): Use it.
11231 (msprinter_initialize_font_instance): Added.
11233 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11234 and implementation flags check.
11235 (redisplay_without_hooks): Changed the call to the above.
11236 (Fredraw_device): Ditto.
11237 (Fredisplay_device): Ditto.
11239 * redisplay-msw.c (get_frame_dc): Implemented.
11240 (get_frame_compdc): Implemented.
11241 (many functions): Use the two functions above to get device
11242 contexts, ether for a window or a printer.
11244 2000-01-21 Olivier Galibert <galibert@pobox.com>
11246 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11247 initialization here.
11248 (init_symbols_once_early): Call it.
11249 * emacs.c (main_1): Call it.
11250 * symsinit.h: Declare it.
11252 2000-01-19 Olivier Galibert <galibert@pobox.com>
11254 * alloc.c: Use a lrecord_header * in the backtrace instead of a
11256 (pdump_backtrace): Ditto.
11257 (pdump_register_object): Ditto. Cleanup use of the pointers.
11258 (pdump_get_entry): Abort if trying to register a null pointer.
11259 (pdump_dump_data): Cleanup types when relocating.
11260 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11261 (pdump_dump_rtables): Remove bad casts.
11262 (pdump_load): Cleanup relocation w.r.t union type. Use a
11263 Lisp_Object instead of a EMACS_INT for the hashtable
11266 2000-01-20 Martin Buchholz <martin@xemacs.org>
11268 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11270 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11272 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11274 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11276 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11278 * faces.h (FACE_STRIKETHRU_P): Added.
11280 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11283 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11284 (mswindows_set_dc_font): New function, aware of font variants,
11285 separated from mswindows_update_dc.
11287 * objects-msw.h (struct mswindows_font_instance_data): Added
11290 * objects-msw.c (mswindows_finalize_font_instance): Delete all
11291 cached fonts and the data structure.
11292 (mswindows_initialize_font_instance): Added creation of font data
11294 (mswindows_print_font_instance): Print at least something.
11295 (mswindows_create_font_variant): Implemented.
11296 (mswindows_get_hfont): Implemented.
11298 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
11300 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11301 prototyping problem with msvc.
11303 * emacs.c (main_1): added syms_of_gui_mswindows() call
11305 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11306 syms_of_gui_mswindows() function
11308 * symsinit.h: added the prototype for syms_of_gui_mswindows()
11310 2000-01-18 Martin Buchholz <martin@xemacs.org>
11312 * XEmacs 21.2.27 is released.
11314 2000-01-18 Martin Buchholz <martin@xemacs.org>
11316 * glyphs-eimage.c (struct tiff_error_struct):
11318 (tiff_warning_func):
11319 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11324 * unexec.c: Remove vestigial Lucid C code.
11328 * libsst.c: Ansify.
11329 Remove declarations of errno and strerror().
11331 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
11333 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11335 2000-01-16 Martin Buchholz <martin@xemacs.org>
11337 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11340 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11345 Change enum eol_type to eol_type_t.
11347 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11349 * gui.c (get_gui_callback): Check cons before accessing car.
11351 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11353 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11354 (XSETSPECIFIER_TYPE): Ditto.
11356 2000-01-17 Didier Verna <didier@xemacs.org>
11358 * redisplay.c (generate_fstring_runes): compute string size in
11359 characters, not bytes.
11361 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
11363 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11365 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
11367 * print.c (print_error_message): Call print_prepare().
11369 2000-01-14 Martin Buchholz <martin@xemacs.org>
11371 * .dbxrc: Renamed from dbxrc.
11373 * events.c (event_to_character):
11374 Use `assert (foo)' instead of `if (!foo) abort()'
11376 * .gdbinit (xtype): Add documentation.
11377 * .gdbinit (check-temacs): New function.
11378 * .gdbinit (check-xemacs): New function.
11379 * dbxrc (check-xemacs): New function.
11380 * dbxrc (check-xemacs): New function.
11382 2000-01-14 Andy Piper <andy@xemacs.org>
11384 * glyphs-widget.c (widget_query_geometry): Make sure that we
11385 calculate default dimensions correctly.
11387 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11389 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11391 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11392 pdump_wire'd variable.
11394 * emacs.c: (main_1): Conditionalized calls to
11395 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11397 2000-01-13 Martin Buchholz <martin@xemacs.org>
11399 * window.c (Fset_window_configuration):
11400 * sysdep.c (_start):
11401 * input-method-motif.c (res):
11402 * event-Xt.c (Xt_process_to_emacs_event):
11403 Simple compiler warning fixes.
11405 * bytecode.c (funcall_compiled_function): Use the original
11406 function symbol on the backtrace list in preference to the
11407 compiled_function object in error messages.
11409 2000-01-13 Andy Piper <andy@xemacs.org>
11411 * glyphs-x.c (update_widget_face): Make sure we update the widget
11412 background as well as foreground.
11414 2000-01-13 Andy Piper <andy@xemacs.org>
11416 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11417 fields to subwindow.
11418 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11419 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11420 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11421 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11423 * glyphs-widget.c (check_valid_tab_orientation): new function.
11424 (initialize_widget_image_instance): zero orientation and
11426 (widget_instantiate): pick up orientation.
11427 (tab_control_query_geometry): return appropriate values for
11430 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11431 appropriate creation flags for left, right and bottom tabs.
11433 * s/cygwin32.h: add tab definitions.
11435 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11437 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11438 frame upon hiding a subwindow.
11439 (mswindows_button_instantiate): Changed the push button style to
11441 (mswindows_button_instantiate): Removed button BS_NOTIFY
11443 (mswindows_button_instantiate): Removed redundant check for
11444 a disabled gui item.
11445 (mswindows_button_instantiate): Made use of WS_TABSTOP
11446 consistent: "operable" controls (edit, button, tree, scroll) have
11447 this style, "display-only" ones (static, progress gauge) do
11448 not. This style is currently ignored by XEmacs though. Also,
11449 removed the WS_EX_CONTROLPARENT style - it is not for children,
11450 it is for their parents!
11451 (mswindows_edit_field_instantiate): Ditto.
11452 (mswindows_progress_gauge_instantiate): Ditto.
11453 (mswindows_tree_view_instantiate): Ditto.
11454 (mswindows_tab_control_instantiate): Ditto.
11455 (mswindows_scrollbar_instantiate): Ditto.
11456 (mswindows_combo_box_instantiate): Ditto.
11457 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
11458 style to the "clip" window.
11459 (mswindows_button_instantiate): Removed compilation warning by
11460 equally typing terms of the ?: operator.
11462 2000-01-12 Didier Verna <didier@xemacs.org>
11464 * redisplay.c (generate_fstring_runes): new parameter holding the
11465 last modeline-format extent.
11466 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
11467 extent, fill the glyph block with it.
11468 (generate_fstring_runes): handle these parameters.
11469 (generate_formatted_string_db): ditto.
11471 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
11472 glyphs'extents in the modeline.
11474 1999-01-11 Mike Woolley <mike@bulsara.com>
11476 * ntheap.c: Reduced the reserved heap space from 1Gb down to
11477 256Mb, as a workaround for the non-starting problem many people
11480 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11482 * console-tty.c (Fset_console_tty_output_coding_system):
11483 Force redrawing tty frame.
11485 2000-01-10 Didier Verna <didier@xemacs.org>
11487 * redisplay.c (generate_fstring_runes): fix size computation bug.
11489 2000-01-09 William M. Perry <wmperry@aventail.com>
11491 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
11493 2000-01-09 Andy Piper <andy@xemacs.org>
11495 * glyphs-msw.c: index -> i to avoid shadows.
11496 (xbm_create_bitmap_from_data): make static.
11497 (check_valid_string_or_int): deleted.
11498 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
11500 * glyphs-x.c (x_update_subwindow): remove unused args.
11502 * glyphs.c (glyph_image_instance): return the thing. Don't set the
11503 back pointer - this is done in allocate_image_instance.
11504 (query_string_font): return Qnil to make the compiler happy.
11505 (unmap_subwindow): set to ~0 to make the compiler happy.
11506 (glyph_query_geometry): comment out until used.
11507 (glyph_layout): ditto.
11509 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
11511 * insdel.c (signal_after_change): Remove extraneous unbind_to().