1 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
4 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
7 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
9 * mule-charset.c (Vcharset_ucs_big5): New variable.
10 (Qucs_big5): Likewise.
11 (syms_of_mule_charset): Add new symbol `ucs-big5'.
12 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
14 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
16 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
18 * mule-charset.c (decode_builtin_char): Check Big5 code range
19 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
21 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
23 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
24 (Qchinese_gb12345): Likewise.
25 (Fdecode_builtin_char): Fixed.
26 (syms_of_mule_charset): Add `chinese-gb12345'.
27 (complex_vars_of_mule_charset): Add coded-charset
30 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
31 (LEADING_BYTE_CHINESE_GB12345): New macro.
33 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
35 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
36 and `latin-viscii-upper' for `latin-viscii'.
38 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
40 * mule-charset.c (Fdecode_builtin_char): Comment out
41 regularization code for ISO-IR GR representation.
43 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
45 * mule-charset.c (decode_builtin_char): New function; renamed from
46 `make_builtin_char'; return -1 instead of signal.
47 (Fdecode_builtin_char): Use `decode_builtin_char'.
49 * char-ucs.h (decode_builtin_char): New prototype; renamed from
51 (DECODE_CHAR): Use `decode_builtin_char' instead of
52 `make_builtin_char'; use mapping table of `chinese-big5' for
55 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
57 * text-coding.c (char_encode_big5): New function.
58 (char_finish_big5): Likewise.
59 (reset_encoding_stream): Use `char_encode_big5' and
60 `char_finish_big5' for CODESYS_BIG5.
61 (mule_encode): Don't use `encode_coding_big5'.
62 (encode_coding_big5): Deleted.
64 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
66 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
67 0x81- in XEmacs UTF-2000.
68 (detect_coding_big5): Likewise.
70 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
72 * mule-charset.c (Fdefine_char): Don't use a CCS property to
73 generate character-id if the CCS property does not have
74 corresponding predefined character.
75 (make_builtin_char): Return -1 if corresponding predefined
76 character is not found.
77 (Fdecode_char): Return nil if corresponding character is not
79 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
80 don't map to builtin ucs space.
82 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
84 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
85 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
87 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
89 * mule-charset.c (Vcharset_ideograph_gt): New variable.
90 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
91 (Qideograph_gt): Likewise.
92 (Qideograph_gt_pj_{1..11}): Likewise.
93 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
94 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
96 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
97 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
98 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
100 * char-ucs.h (LEADING_BYTE_GT): New macro.
101 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
102 (MIN_CHAR_GT): Likewise.
103 (MAX_CHAR_GT): Likewise.
105 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
107 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
108 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
110 * doprnt.c (unsigned_int_converters): Add `c'.
111 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
113 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
114 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
116 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
117 (MAX_CHAR_MOJIKYO_0): New macro.
118 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
120 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
122 * mule-charset.c (Fdefine_char): Delete cemented out code.
123 (encode_builtin_char_1): Modify for new allocation of builtin
126 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
128 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
130 * mule-charset.c (Vcharset_ucs_cns): New variable.
131 (Qucs_cns): New variable.
132 (syms_of_mule_charset): Add new symbol `ucs-cns'.
133 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
135 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
137 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
139 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
141 * search.c (search_buffer): Make `charset_base_code' as
142 character-id >> 6 to eliminate the corresponding last byte in
143 UTF-8 representation [I'm not sure it is right thing].
144 (boyer_moore): Likewise.
146 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
148 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
149 representation in MULE.
151 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
153 * text-coding.c (Fmake_coding_system): Use
154 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
155 `EXTERNAL_PROPERTY_LIST_LOOP'.
157 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
159 * text-coding.c (decode_output_utf8_partial_char): New function.
160 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
162 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
164 * text-coding.c (decode_coding_utf8): Output original byte
165 sequence if it is broken; change order of conditions.
167 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
170 * mb-multibyte.h (BYTE_ASCII_P):
171 Use bit ops for char-signedness safety.
172 (BYTE_C0_P): Use bit ops for char-signedness safety.
173 (BYTE_C1_P): Use bit ops for char-signedness safety.
175 * character.h: (XCHAR_OR_CHAR_INT):
176 Always use inline function.
177 Remove redundant type checking assert() - XINT will abort quite
180 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
182 * text-coding.c: (Fencode_shift_jis_char):
184 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
185 Replace 0 with '\0' when working with bytes.
186 Replace initial "(" with "\(" in docstrings.
188 (Fmake_coding_system):
189 When type is ccl and value is vector, register it with a proper
190 symbol. And checks whether the given ccl program is valid.
191 (mule_decode): When calling ccl_driver, if src indicates
192 NULL pointer, set an empty string instead.
193 (mule_encode): Likewise.
196 (detect_coding_sjis):
197 (decode_coding_sjis):
198 (detect_coding_big5):
199 (decode_coding_big5):
200 (detect_coding_ucs4):
201 (decode_coding_ucs4):
202 (detect_coding_utf8):
203 (decode_coding_utf8):
204 (detect_coding_iso2022):
205 (decode_coding_iso2022):
206 (decode_coding_no_conversion):
208 Make all detecting and decoding functions take an Extbyte * arg.
209 (text_encode_generic):
210 (encode_coding_big5):
211 (encode_coding_no_conversion):
213 Make all encoding functions take a Bufbyte * arg.
214 Use size_t instead of unsigned int for memory sizes.
215 Only cast to unsigned char whenever dereferencing Extbyte *.
217 (struct lrecord_description fcd_description_1): Use countof.
218 (complex_vars_of_file_coding):
219 Use countof instead of sizeof.
220 Use CHECK_NATNUM instead of CHECK_INT.
222 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
224 * mule-charset.c (Fget_char_attribute): Add new optional argument
226 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
227 (remove_char_ccs): Likewise.
229 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
231 * text-coding.c (char_encode_shift_jis): New implementation in
233 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
236 * mule-charset.c (Vcharset_chinese_big5): New variable in
238 (Qchinese_big5): New variable in UTF-2000.
239 (BIG5_SAME_ROW): New macro in UTF-2000.
240 (make_builtin_char): Use builtin characters of
241 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
242 characters of `Vcharset_chinese_big5'.
243 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
244 (complex_vars_of_mule_charset): Add new coded-charset
245 `chinese-big5' in UTF-2000.
247 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
248 (Vcharset_chinese_big5): New external variable declaration.
249 (Vcharset_japanese_jisx0208_1990): Likewise.
251 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
253 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
255 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
257 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
259 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
260 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
261 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
264 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
266 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
268 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
270 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
273 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
275 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
276 for `CHARSET_BY_ATTRIBUTES'.
277 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
278 `CHARSET_BY_ATTRIBUTES'.
280 * text-coding.c (struct decoding_stream): Rename member `CH' to
282 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
283 (decode_coding_sjis): Likewise.
284 (decode_coding_big5): Likewise.
285 (decode_coding_ucs4): Likewise.
286 (decode_coding_utf8): Likewise.
287 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
288 `CHARSET_BY_ATTRIBUTES'.
289 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
290 `str->counter'; decode 3, 4 bytes sets.
291 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
293 (decode_coding_no_conversion): Use `str->cpos' instead of
296 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
297 (Qmojikyo_2022_1): New variable.
298 (make_charset): Don't use `CHARSET_TYPE_*'.
299 (range_charset_code_point): Support coded-charset
301 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
302 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
303 `CHARSET_BY_ATTRIBUTES'.
304 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
305 `CHARSET_BY_ATTRIBUTES'.
306 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
307 (complex_vars_of_mule_charset): Add new coded-charset
310 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
311 interface; changed to inline function.
313 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
314 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
315 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
316 (CHARSET_TYPE_94): Deleted.
317 (CHARSET_TYPE_94X94): Deleted.
318 (CHARSET_TYPE_96): Deleted.
319 (CHARSET_TYPE_96X96): Deleted.
320 (CHARSET_TYPE_128): Deleted.
321 (CHARSET_TYPE_128X128): Deleted.
322 (CHARSET_TYPE_256): Deleted.
323 (CHARSET_TYPE_256X256): Deleted.
324 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
326 (DECODE_MOJIKYO_2022): New inline function.
327 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
328 `Vcharset_mojikyo_2022_1'.
330 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
332 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
334 (put_byte_table): Likewise.
335 (char_id_table_equal): Use `get_byte_table' [new implementation].
337 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
339 * mule-charset.c: Include <limits.h> in UTF-2000.
340 (BT_UINT8_MIN): New macro in UTF-2000.
341 (BT_UINT8_MAX): New macro in UTF-2000.
342 (BT_UINT8_t): New macro in UTF-2000.
343 (BT_UINT8_nil): New macro in UTF-2000.
344 (BT_UINT8_unbound): New macro in UTF-2000.
345 (INT_UINT8_P): New inline function in UTF-2000.
346 (UINT8_VALUE_P): New inline function in UTF-2000.
347 (UINT8_ENCODE): New inline function in UTF-2000.
348 (UINT8_DECODE): New inline function in UTF-2000.
349 (mark_uint8_byte_table): New function in UTF-2000.
350 (print_uint8_byte_table): New function in UTF-2000.
351 (uint8_byte_table_equal): New function in UTF-2000.
352 (uint8_byte_table_hash): New function in UTF-2000.
353 (make_uint8_byte_table): New function in UTF-2000.
354 (uint8_byte_table_same_value_p): New function in UTF-2000.
355 (BT_UINT16_MIN): New macro in UTF-2000.
356 (BT_UINT16_MAX): New macro in UTF-2000.
357 (BT_UINT16_t): New macro in UTF-2000.
358 (BT_UINT16_nil): New macro in UTF-2000.
359 (BT_UINT16_unbound): New macro in UTF-2000.
360 (INT_UINT16_P): New inline function in UTF-2000.
361 (UINT16_VALUE_P): New inline function in UTF-2000.
362 (UINT16_ENCODE): New inline function in UTF-2000.
363 (UINT16_DECODE): New inline function in UTF-2000.
364 (UINT8_TO_UINT16): New inline function in UTF-2000.
365 (mark_uint16_byte_table): New function in UTF-2000.
366 (print_uint16_byte_table): New function in UTF-2000.
367 (uint16_byte_table_equal): New function in UTF-2000.
368 (uint16_byte_table_hash): New function in UTF-2000.
369 (make_uint16_byte_table): New function in UTF-2000.
370 (uint16_byte_table_same_value_p): New function in UTF-2000.
371 (print_byte_table): New function in UTF-2000.
372 (byte-table): Use `print_byte_table' as printer.
373 (make_byte_table): Delete second argument `older'.
374 (byte_table_same_value_p): New function in UTF-2000.
375 (copy_byte_table): Deleted.
376 (get_byte_table): New function in UTF-2000.
377 (put_byte_table): New function in UTF-2000.
378 (print_char_id_table): New function in UTF-2000.
379 (char-id-table): Use `print_char_id_table' as printer.
380 (make_char_id_table): Delete second argument `older'.
381 (get_char_id_table): Use `get_byte_table [new implementation].
382 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
384 (Ffind_char_attribute_table): New function in UTF-2000.
385 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
386 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
387 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
388 (syms_of_mule_charset): Add new function
389 `find-char-attribute-table' in UTF-2000.
391 * lrecord.h (enum lrecord_type): Add
392 `lrecord_type_uint16_byte_table' and
393 `lrecord_type_uint8_byte_table'.
395 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
396 (Lisp_Uint8_Byte_Table): New type.
397 (XUINT8_BYTE_TABLE): New macro.
398 (XSETUINT8_BYTE_TABLE): New macro.
399 (UINT8_BYTE_TABLE_P): New macro.
400 (GC_UINT8_BYTE_TABLE_P): New macro.
401 (struct Lisp_Uint16_Byte_Table): New structure.
402 (Lisp_Uint16_Byte_Table): New type.
403 (XUINT16_BYTE_TABLE): New macro.
404 (XSETUINT16_BYTE_TABLE): New macro.
405 (UINT16_BYTE_TABLE_P): New macro.
406 (GC_UINT16_BYTE_TABLE_P): New macro.
408 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
410 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
411 (Vcharacter_ideographic_strokes_table): Deleted.
412 (Vcharacter_total_strokes_table): Deleted.
413 (Vcharacter_morohashi_daikanwa_table): Deleted.
414 (Vcharacter_decomposition_table): Deleted.
415 (Qname): Deleted because it is duplicated.
416 (Qideographic_radical): Deleted.
417 (Qideographic_strokes): Deleted.
418 (Qtotal_strokes): Deleted.
419 (Qmorohashi_daikanwa): Deleted.
420 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
421 `ideographic-radical', `ideographic-strokes', `total-strokes',
422 `morohashi-daikanwa' and `->decomposition'.
423 (Fget_char_attribute): Likewise.
424 (Fput_char_attribute): Likewise; use `make-vector' instead of
425 `make_older_vector' for `->decomposition' value.
426 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
427 `ideograph-daikanwa'.
428 (syms_of_mule_charset): Delete builtin symbols `name',
429 `ideographic-radical', `ideographic-strokes', `total-strokes' and
430 `morohashi-daikanwa'.
431 (vars_of_mule_charset): Don't setup
432 `Vcharacter_ideographic_radical_table',
433 `Vcharacter_ideographic_strokes_table',
434 `Vcharacter_total_strokes_table',
435 `Vcharacter_morohashi_daikanwa_table' and
436 `Vcharacter_decomposition_table'.
438 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
440 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
441 `make_older_vector', `make_vector_newer_1' and
444 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
445 `make_older_vector' and `make_vector_newer'.
447 * config.h.in (HAVE_GGC): New macro.
449 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
451 * mule-charset.c (struct char_attribute_list_closure): New
452 structure in UTF-2000.
453 (add_char_attribute_to_list_mapper): New function in UTF-2000.
454 (Fchar_attribute_list): Likewise.
455 (Fset_charset_mapping_table): Use `make_vector_newer'.
456 (Fdecode_builtin_char): New function in UTF-2000.
457 (syms_of_mule_charset): Add new function `char-attribute-list' and
458 `decode-builtin-char' in UTF-2000.
460 * lisp.h (make_vector_newer): New prototype.
462 * alloc.c (make_vector_newer_1): New function.
463 (make_vector_newer): New function.
465 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
467 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
470 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
472 * mule-charset.c (Vchar_attribute_hash_table): New variable.
473 (Vcharacter_attribute_table): Deleted.
474 (Vcharacter_name_table): Deleted.
475 (put_char_attribute): Deleted.
476 (remove_char_attribute): Deleted.
477 (struct char_attribute_alist_closure): New structure.
478 (add_char_attribute_alist_mapper): New function.
479 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
480 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
481 (Fget_char_attribute): Likewise.
482 (Fput_char_attribute): Likewise.
483 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
484 of `remove_char_attribute'.
485 (Fdefine_char): Return character.
486 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
487 and `Vcharacter_name_table'.
488 (complex_vars_of_mule_charset): Likewise
489 `Vchar_attribute_hash_table'.
491 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
493 * character.h (CHARC_CHARSET): New macro.
494 (CHARC_CHARSET_ID): New macro.
495 (CHARC_CODE_POINT): New macro.
496 (CHARC_COLUMNS): New macro.
497 (CHARC_TO_CHAR): New inline function.
498 (CHARC_EQ): New inline function.
499 (CHARC_ASCII_EQ): New inline function.
500 (CHARC_IS_SPACE): New inline function.
501 (ASCII_TO_CHARC): New inline function.
503 * char-ucs.h (encode_char_2): Deleted.
504 (ENCODE_CHAR): Use `encode_char_1' again.
505 (breakup_char_1): Likewise.
506 (CHAR_TO_CHARC): New inline function.
508 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
510 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
512 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
513 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
514 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
515 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
516 (create_string_text_block): Use `CHARC_ASCII_EQ' and
518 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
520 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
522 (x_output_display_block): Use `CHARC_CHARSET' and
525 * redisplay-tty.c (tty_output_display_block): Use
527 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
529 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
531 * insdel.c (find_charsets_in_charc_string): Use
533 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
534 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
535 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
536 (convert_charc_string_into_malloced_string): Likewise.
538 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
540 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
541 instead of <Emchar_dynarr *> for buf; use
542 `convert_bufbyte_string_into_charc_dynarr' instead of
543 `convert_bufbyte_string_into_emchar_dynarr'; use
544 `find_charsets_in_charc_string' instead of
545 `find_charsets_in_emchar_string'.
548 - Include "character.h".
549 (struct rune): New member `cglyph'; delete member `chr'.
551 * redisplay.c (redisplay_text_width_charc_string): New function;
552 delete `redisplay_text_width_emchar_string'.
553 (rtw_charc_dynarr): New variable; renamed from
555 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
556 `rtw_emchar_dynarr'; use
557 `convert_bufbyte_string_into_charc_dynarr' instead of
558 `convert_bufbyte_string_into_emchar_dynarr'; use
559 `redisplay_text_width_charc_string' instead of
560 `redisplay_text_width_emchar_string'.
561 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
562 instead of `rtw_emchar_dynarr'; use
563 `convert_bufbyte_string_into_charc_dynarr' instead of
564 `convert_bufbyte_string_into_emchar_dynarr'.
565 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
566 `redisplay_text_width_charc_string' instead of
567 `redisplay_text_width_emchar_string'.
568 (create_text_block): Modify for <struct rune> change.
569 (generate_formatted_string_db): Likewise.
570 (create_string_text_block): Likewise.
571 (pixel_to_glyph_translation): Likewise.
573 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
574 instead of <const Emchar *>.
575 (x_text_width): Likewise.
576 (x_output_display_block): Use <Charc_dynarr *> instead
577 <Emchar_dynarr *>; modify for <structure rune> change.
578 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
581 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
582 <const Emchar *>; use `charc_string_displayed_columns' instead of
583 `emchar_string_displayed_columns'.
584 (tty_output_display_block): Use <Charc_dynarr *> instead of
585 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
586 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
587 (tty_output_charc_dynarr_dynarr): New variable; renamed from
588 `tty_output_emchar_dynarr_dynarr'.
589 (tty_output_charc_dynarr): New function; delete
590 `tty_output_charc_dynarr'.
592 * redisplay-output.c (compare_runes): Modify for `struct rune'.
593 (redisplay_output_layout): Use <Charc_dynarr *> instead of
594 <Emchar_dynarr *> for buf; use
595 `convert_bufbyte_string_into_charc_dynarr' instead of
596 `convert_bufbyte_string_into_emchar_dynarr'.
598 * frame.c (title_string_charc_dynarr): New variable; renamed from
599 `title_string_emchar_dynarr'.
600 (generate_title_string): Use `title_string_charc_dynarr' instead
601 of `title_string_emchar_dynarr'; use
602 `convert_charc_string_into_malloced_string' instead of
603 `convert_emchar_string_into_malloced_string'.
604 (init_frame): Use `title_string_charc_dynarr' instead of
605 `title_string_emchar_dynarr'.
608 - Include "character.h".
609 (struct console_methods): Use <const Charc *> instead of <const
610 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
611 <Emchar_dynarr *> in output_string_method.
613 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
616 * console-stream.c (stream_text_width): Use <const Charc *>
617 instead of <const Emchar *>.
619 * character.h (Charc_dynarr): New type.
621 * char-ucs.h (structure Charc): New structure; define new type
624 * char-lb.h (DECODE_CHAR): New inline function.
625 (encode_char_1): New inline function.
626 (ENCODE_CHAR): New macro.
627 (structure Charc): New structure; define new type `Charc'.
629 * char-1byte.h (Vcharset_control_1): New macro.
630 (Vcharset_latin_iso8859_1): New macro.
631 (DECODE_CHAR): New inline function.
632 (encode_char_1): New inline function.
633 (ENCODE_CHAR): New macro.
634 (structure Charc): New structure; define new type `Charc'.
636 * insdel.c (find_charsets_in_charc_string): New function; delete
637 `find_charsets_in_emchar_string'.
638 (charc_string_displayed_columns): New function; delete
639 `emchar_string_displayed_columns'.
640 (convert_bufbyte_string_into_charc_dynarr): New function; delete
641 `convert_bufbyte_string_into_emchar_dynarr'.
642 (convert_charc_string_into_bufbyte_dynarr): New function; delete
643 `convert_charc_string_into_bufbyte_dynarr'.
644 (convert_charc_string_into_malloced_string): New function; delete
645 `convert_charc_string_into_malloced_string'.
647 * buffer.h (find_charsets_in_charc_string): New prototype; delete
648 `find_charsets_in_emchar_string'.
649 (charc_string_displayed_columns): New prototype; delete
650 `emchar_string_displayed_columns'.
651 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
652 `convert_charc_string_into_bufbyte_dynarr'.
653 (convert_charc_string_into_malloced_string): New prototype; delete
654 `convert_charc_string_into_malloced_string'.
656 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
658 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
660 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
662 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
664 * char-ucs.h: Use <short> for <Charset_ID>.
666 * mule-charset.h, char-1byte.h: Use <unsigned char> for
669 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
671 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
674 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
676 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
678 (Qmorohashi_daikanwa): New variable.
679 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
680 for `morohashi-daikanwa' attribute.
681 (Fget_char_attribute): Likewise.
682 (Fput_char_attribute): Likewise.
683 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
684 has the same value of `ideograph-daikanwa'.
685 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
686 (vars_of_mule_charset): Setup
687 `Vcharacter_morohashi_daikanwa_table'.
689 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
691 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
693 (add_charset_to_list_mapper): Add `key' instead of
694 `XCHARSET_NAME (value)' to return aliases.
696 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
698 * mule-charset.c (Vcharacter_ideographic_radical_table): New
700 (Vcharacter_ideographic_strokes_table): New variable.
701 (Qideographic_radical): New variable.
702 (Qideographic_strokes): New variable.
703 (Fchar_attribute_alist): Use
704 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
705 attribute; use `Vcharacter_ideographic_strokes_table' for
706 `ideographic-strokes' attribute.
707 (Fget_char_attribute): Likewise.
708 (Fput_char_attribute): Likewise.
709 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
710 `ideographic-strokes'.
711 (vars_of_mule_charset): Setup
712 `Vcharacter_ideographic_radical_table' and
713 `Vcharacter_ideographic_strokes_table'.
715 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
717 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
718 (Qtotal_strokes): New variable.
719 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
720 `total-strokes' attribute.
721 (Fget_char_attribute): Likewise.
722 (Fput_char_attribute): Likewise.
723 (syms_of_mule_charset): Add new symbol `total-strokes'.
724 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
726 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
728 * mule-charset.c (Vcharacter_decomposition_table): New variable.
729 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
731 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
732 `->decomposition' attribute.
733 (Fput_char_attribute): Likewise.
734 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
736 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
738 * mule-charset.c (decoding_table_check_elements): New function.
739 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
741 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
743 * mule-charset.c (Fset_charset_mapping_table): Use
744 `put_char_ccs_code_point'.
746 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
748 * mule-charset.c (decoding_table_put_char): New inline function.
749 (put_char_ccs_code_point): Use `decoding_table_put_char'.
751 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
753 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
754 (XCHARSET_BYTE_SIZE): New macro.
755 (decoding_table_remove_char): New inline function.
756 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
757 `decoding_table_remove_char'.
758 (remove_char_ccs): Use `decoding_table_remove_char'.
759 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
761 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
763 * mule-charset.c (Vcharacter_name_table): New variable.
764 (Qname): New variable.
765 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
767 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
768 `Vcharacter_name_table' for `name' attribute.
769 (Fremove_char_attribute): Use function `remove_char_ccs'.
770 (put_char_ccs_code_point): New function.
771 (remove_char_ccs): New function.
772 (syms_of_mule_charset): Add new symbol `name'.
773 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
775 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
777 * mule-charset.c (make_byte_table): Add new argument `older'.
778 (make_char_id_table): Likewise.
779 (copy_char_id_table): Comment out because it is not used.
780 (put_char_id_table): Modify for `make_byte_table'.
781 (Fput_char_attribute): Make encoding_table as older object;
782 inherit older bit of `Vcharacter_composition_table'.
783 (mark_charset): Don't mark `cs->encoding_table'.
784 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
785 normal object; make `Vcharacter_composition_table' as an older
786 object; delete staticpro for `Vcharacter_composition_table'; make
787 `Vcharacter_variant_table' as a normal object.
789 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
790 (mark_object): Don't check older object in UTF-2000.
792 * lrecord.h (struct lrecord_header): Add new member `older' in
794 (set_lheader_implementation): Setup `SLI_header->older' in
796 (set_lheader_older_implementation): New macro in UTF-2000.
797 (OLDER_RECORD_P): New macro in UTF-2000.
798 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
799 (alloc_older_lcrecord): New prototype in UTF-2000.
800 (alloc_older_lcrecord_type): New macro in UTF-2000.
802 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
804 * mule-charset.c (byte_table_description): Use
805 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
806 (char_id_table_description): Delete bogus `, 1'.
807 (Fget_char_attribute): Refer encoding_table of each coded-charset
808 to get value of coded-charset attribute of a character.
809 (Fput_char_attribute): Use `make_older_vector' instead of
810 `make_vector'; use encoding_table of each coded-charset to store
811 value of coded-charset attribute of a character.
812 (Fremove_char_attribute): Use encoding_table of each coded-charset
813 to store value of coded-charset attribute of a character.
814 (mark_charset): Mark `cs->encoding_table'; don't mark
815 `cs->decoding_table'.
816 (charset_description): Add description of new member
818 (make_charset): Initialize `encoding_table'.
820 * char-ucs.h (struct Lisp_Charset): Add new member
822 (CHARSET_ENCODING_TABLE): New macro.
823 (XCHARSET_ENCODING_TABLE): New macro.
824 (charset_code_point): New implementation.
825 (encode_char_1): Likewise.
827 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
828 (disksave_object_finalization_1): Call finalizers of
829 `all_older_lcrecords' in UTF-2000.
830 (make_older_vector): New function in UTF-2000.
831 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
834 * lisp.h (make_older_vector): New prototype in UTF-2000.
836 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
838 * lrecord.h (enum lrecord_type): Rename
839 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
841 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
842 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
843 `get_char_code_table'.
845 * mule-charset.c (mark_char_id_table): Renamed from
846 `mark_char_code_table'.
847 (char_id_table_equal): Renamed from `char_code_table_equal'.
848 (char_id_table_hash): Renamed from `char_code_table_hash'.
849 (make_char_id_table): Renamed from `make_char_code_table'.
850 (copy_char_id_table): Renamed from `copy_char_code_table'.
851 (get_char_id_table): Renamed from `get_char_code_table'.
852 (put_char_id_table): Renamed from `put_char_code_table'.
853 (to_char_id): Renamed from `to_char_code'.
855 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
856 `Lisp_Char_Code_Table'.
857 (char_id_table): Renamed from `char_code_table'.
858 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
859 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
860 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
861 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
862 (get_char_id_table): Renamed from `get_char_code_table'.
864 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
866 * lrecord.h (enum lrecord_type): Rename
867 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
869 * mule-charset.c (mark_byte_table): Renamed from
870 `mark_char_byte_table'.
871 (byte_table_equal): Renamed from `char_byte_table_equal'.
872 (byte_table_hash): Renamed from `byte_table_hash'.
873 (make_byte_table): Renamed from `make_byte_table'.
874 (copy_byte_table): Renamed from `copy_char_byte_table'.
876 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
877 `Lisp_Char_Byte_Table'.
878 (byte_table): Renamed from `char_byte_table'.
879 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
880 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
881 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
882 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
884 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
886 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
887 (dfc_convert_to_internal_format): Likewise.
889 * text-coding.c (Fcoding_system_canonical_name_p): New function.
890 * text-coding.c (Fcoding_system_alias_p): New function.
891 * text-coding.c (Fcoding_system_aliasee): New function.
892 * text-coding.c (append_suffix_to_symbol): New function.
893 * text-coding.c (dangling_coding_system_alias_p): New function.
894 * text-coding.c (Ffind_coding_system):
895 * text-coding.c (Fcopy_coding_system):
896 * text-coding.c (encode_coding_no_conversion):
897 * text-coding.c (syms_of_file_coding):
898 * text-coding.c (vars_of_file_coding):
899 Rewrite coding system alias code.
900 Allow nested aliases, like symbolic links.
901 Allow redefinition of coding system aliases.
902 Prevent existence of dangling coding system aliases.
903 Eliminate convert_to_external_format.
904 Eliminate convert_to_internal_format.
906 * text-coding.c: Change enum eol_type to eol_type_t.
908 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
910 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
911 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
913 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
914 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
916 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
918 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
919 `ideograph-daikanwa'.
921 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
922 (Vcharset_ucs_bmp): Likewise.
923 (Vcharset_mojikyo): Add new extern variable definition.
924 (Vcharset_latin_iso8859_2): Deleted because it is not used.
925 (Vcharset_latin_iso8859_3): Likewise.
926 (Vcharset_latin_iso8859_4): Likewise.
927 (Vcharset_latin_iso8859_9): Likewise.
928 (Vcharset_latin_viscii_lower): Likewise.
929 (Vcharset_latin_viscii_upper): Likewise.
930 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
931 `mojikyo' code-point is used to decode.
932 (encode_char_2): New function [to convert `mojikyo' code-point to
933 Mojikyo font encoding].
934 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
935 (breakup_char_1): Likewise.
936 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
938 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
940 * text-coding.c (Fmake_coding_system): Add document about
941 `disable-composition' property.
943 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
945 * text-coding.c (Qdisable_composition): New variable; delete
947 (Fmake_coding_system): Add new property `disable-composite';
948 delete property `composite'.
949 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
950 instead of `!CODING_SYSTEM_COMPOSITE'.
951 (syms_of_file_coding): Add new symbol `disable-composition';
952 delete symbol `composite'.
954 * file-coding.h (struct Lisp_Coding_System): Add
955 `disable_composition'; delete `enable_composition'.
956 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
957 `CODING_SYSTEM_COMPOSITE'.
958 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
959 `XCODING_SYSTEM_COMPOSITE'.
961 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
963 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
966 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
968 * text-coding.c (Qcomposite): New variable.
969 (Fmake_coding_system): Add new property `composite'.
970 (struct decoding_stream): Add `combined_char_count',
971 `combined_chars' and `combining_table' in UTF-2000.
972 (COMPOSE_FLUSH_CHARS): New macro.
973 (COMPOSE_ADD_CHAR): New macro.
974 (reset_decoding_stream): Reset `str->combined_char_count' and
975 `str->combining_table' in UTF-2000.
976 (decode_coding_iso2022): Modify for character-decomposition.
977 (syms_of_file_coding): Add new symbol `composite'.
979 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
981 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
982 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
983 of `Vcharacter_composition_table' if `->decomposition' property
985 (Qlatin_tcvn5712): New variable.
986 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
987 (complex_vars_of_mule_charset): Add new coded-charset
990 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
992 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
994 * file-coding.h (struct Lisp_Coding_System): Add
995 `enable_composition'.
996 (CODING_SYSTEM_COMPOSITE): New macro.
997 (XCODING_SYSTEM_COMPOSITE): New macro.
999 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
1001 * mule-canna.c (c2mu): Fix problem with UTF-2000.
1003 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
1005 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1006 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1008 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
1010 * mule-charset.c (Vcharset_mojikyo): New variable.
1011 (Fdefine_char): Don't use coded-charset which does not have
1012 non-builtin character range to allocate character-id.
1013 (Qmojikyo): New variable.
1014 (syms_of_mule_charset): Add new symbol `mojikyo'.
1015 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1017 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1018 (LEADING_BYTE_MOJIKYO): New macro.
1019 (MIN_CHAR_MOJIKYO): New macro.
1020 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1021 (MAX_CHAR_MOJIKYO): New macro.
1023 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
1025 * mule-charset.c (remove_char_attribute): Fixed.
1027 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
1029 * mule-charset.c (remove_char_attribute): New function.
1030 (Fremove_char_attribute): New function.
1031 (encode_builtin_char_1): Comment out builtin-support for
1032 greek-iso8859-7 and cyrillic-iso8859-5.
1033 (Fdecode_char): Check `code' is an integer.
1034 (syms_of_mule_charset): Add `remove-char-attribute'.
1035 (MIN_CHAR_GREEK): Deleted.
1036 (MAX_CHAR_GREEK): Likewise.
1037 (MIN_CHAR_CYRILLIC): Likewise.
1038 (MAX_CHAR_CYRILLIC): Likewise.
1039 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1040 MAX_CHAR_GREEK for `greek-iso8859-7'.
1042 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1043 (MAX_CHAR_GREEK): Likewise.
1044 (MIN_CHAR_CYRILLIC): Likewise.
1045 (MAX_CHAR_CYRILLIC): Likewise.
1047 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
1049 * mule-charset.c (Fdefine_char): Fix problem when new code-point
1050 format is used without `ucs' property.
1051 (Fdecode_char): Fix problem with GR representation.
1052 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1053 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1055 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1057 * mule-charset.c (make_builtin_char): New function.
1058 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1059 (Fset_charset_mapping_table): Modify for new representation of
1061 (Fdecode_char): New function.
1062 (syms_of_mule_charset): Add new builtin function `decode-char' in
1065 * char-ucs.h (make_builtin_char): New prototype.
1066 (DECODE_CHAR): New inline function.
1067 (MAKE_CHAR): Use `DECODE_CHAR'.
1069 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
1071 * text-coding.c (parse_charset_conversion_specs): Use
1072 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1074 (iso2022_designate): Likewise.
1076 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1077 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1079 * mule-charset.c (Vcharset_ucs): New variable.
1080 (print_charset): Change design; use `CHARSET_CHARS' and
1081 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1082 (make_charset): Change signature to specify `chars' and
1083 `dimension' instead of `type'.
1084 (range_charset_code_point): Modify for 256^n-set.
1085 (encode_builtin_char_1): Encode as `ucs' in default.
1086 (Fmake_charset): Modify for `make_charset'.
1087 (Fmake_reverse_direction_charset): Likewise.
1088 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1090 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1093 * char-ucs.h (Vcharset_ucs): New variable.
1094 (LEADING_BYTE_UCS): New macro.
1095 (struct Lisp_Charset): Delete `type'; change type of `dimension'
1096 and `chars' to `unsigned short' from `unsigned int'.
1097 (CHARSET_TYPE): Deleted.
1098 (XCHARSET_TYPE): Deleted.
1100 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
1102 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1104 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1105 (ENCODE_CHAR): New macro.
1107 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1109 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1110 to 0.14 (Kawachi-Katakami).
1112 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
1114 * text-coding.c (char_encode_shift_jis): Modify for
1115 `charset_code_point'.
1116 (char_encode_iso2022): Likewise.
1118 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1119 (integer) instead of list of <Lisp_Object>s (integers) as the
1120 format of code-point of a coded-charset.
1121 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1122 (encode_builtin_char_1): New function; delete
1123 `split_builtin_char'.
1124 (charset_code_point): Return <int> instead of <Lisp_Object>.
1125 (Fsplit_char): Don't use `SPLIT_CHAR'.
1127 * char-ucs.h (encode_builtin_char_1): New prototype; delete
1128 prototype for `split_builtin_char'.
1129 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1130 (charset_code_point): Likewise.
1131 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1132 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1134 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
1136 * mule-charset.c (complex_vars_of_mule_charset): Don't define
1137 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1139 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1141 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1143 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1144 (MAX_CHAR_OBS_94x94): Deleted.
1146 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1148 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1150 * char-ucs.h (MAX_CHAR_BMP): New macro.
1152 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1154 * text-coding.c: Sync with r21-2-24.
1156 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
1158 * file-coding.c: Modify for UTF-2000.
1160 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1162 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1165 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
1167 * mule-charset.c (split_builtin_char): Delete builtin support for
1168 `katakana-jisx0201'.
1169 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1170 BMP area in builtin representation.
1172 * char-ucs.h (MAKE_CHAR): Delete builtin support for
1173 `Vcharset_katakana_jisx0201'.
1175 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
1177 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1178 (Qisolated): New variable.
1179 (Qinitial): New variable.
1180 (Qmedial): New variable.
1181 (Qfinal): New variable.
1182 (Qvertical): New variable.
1183 (Qsmall): New variable.
1184 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1185 `Qvertical' and `Qsmall'.
1186 (Qmojikyo_pj_[1 .. 21]): New variable.
1187 (syms_of_mule_charset): Add new symbols `isolated', `initial',
1188 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1189 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1192 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
1194 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1195 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1196 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1198 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1200 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1201 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1203 (Qjapanese_jisx0208_1990): New variable.
1204 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1205 (complex_vars_of_mule_charset): Add new coded-charset
1206 `japanese-jisx0208-1990'.
1208 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1209 (MIN_CHAR_JIS_X0208_1990): New macro.
1210 (MAX_CHAR_JIS_X0208_1990): New macro.
1212 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
1214 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1215 coded-charset is not found.
1217 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
1219 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1220 (Fdefine_char): Use `Fmake_char'.
1222 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1224 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1225 (Vcharset_hiragana_jisx0208): Deleted.
1226 (Vcharset_katakana_jisx0208): Deleted.
1227 (Qideograph_daikanwa): New variable.
1228 (Qhiragana_jisx0208): Deleted.
1229 (Qkatakana_jisx0208): Deleted.
1230 (split_builtin_char): Split `ideograph-daikanwa'.
1231 (Fsplit_char): New implementation for UTF-2000.
1232 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1233 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1234 (complex_vars_of_mule_charset): Add new coded-charset
1235 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1236 `katakana-jisx0208'.
1238 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1239 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1240 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1241 (MIN_CHAR_DAIKANWA): New macro.
1242 (MAX_CHAR_DAIKANWA): New macro.
1244 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1246 * data.c (Fstring_to_number): Don't recognize floating point if
1249 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
1251 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1253 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1255 * mule-charset.c (Qsquare): New variable.
1256 (to_char_code): Add `Qsquare'.
1257 (syms_of_mule_charset): Add new symbol `square'.
1259 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1261 * mule-charset.c (Qcircle): New variable.
1262 (to_char_code): Add `Qcircle'.
1263 (syms_of_mule_charset): Add new symbol `circle'.
1265 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1267 * mule-charset.c (Qfont): New variable.
1268 (to_char_code): Add `Qfont'.
1269 (syms_of_mule_charset): Add new symbol `font'.
1271 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1273 * mule-charset.c (Qsub): New variable.
1274 (to_char_code): Add `Qsub'.
1275 (syms_of_mule_charset): Add new symbol `sub'.
1277 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1279 * mule-charset.c (Fput_char_attribute): Convert each element of
1280 VALUE to GL position if ATTRIBUTE is a GR-set,
1282 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
1284 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1285 coded-charset is a GR-set.
1287 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1289 * mule-charset.c (Fput_char_attribute): Check each element of
1290 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1292 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1294 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1296 (Qethiopic_ucs): New variable in UTF-2000.
1297 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1298 (complex_vars_of_mule_charset): Add new coded-charset
1299 `ethiopic-ucs' in UTF-2000.
1301 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1302 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1304 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1306 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1308 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
1310 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1313 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1315 * mule-charset.c (Vcharacter_variant_table): New variable.
1316 (Q_ucs): New variable.
1317 (Fchar_variants): New function.
1318 (Fput_char_attribute): Register `->ucs' value to
1319 `Vcharacter_variant_table'.
1320 (syms_of_mule_charset): Add new function `char-variants' and new
1322 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1324 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1326 * mule-charset.c (get_char_code_table): Allow negative character
1328 (put_char_code_table): Likewise.
1329 (Vcharacter_composition_table): New variable.
1330 (Q_decomposition): New variable.
1331 (Qwide): New variable.
1332 (Qnarrow): New variable.
1333 (Qcompat): New variable.
1334 (QnoBreak): New variable.
1335 (Qsuper): New variable.
1336 (Qfraction): New variable.
1337 (to_char_code): New function.
1338 (Fget_composite_char): New function.
1339 (Fput_char_attribute): Register `->decomposition' value to
1340 `Vcharacter_composition_table'.
1341 (syms_of_mule_charset): Add new function `get-composite-char', new
1342 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1343 `super' and `fraction'.
1344 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1346 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1348 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1349 character; copy the return value.
1351 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1353 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1355 * mule-charset.c (range_charset_code_point): Must use make_int.
1356 (split_builtin_char): New function.
1358 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1360 * mule-charset.c (char_byte_table): Change name from
1361 "char-code-table" to "char-byte-table".
1362 (mark_char_code_table): New function.
1363 (char_code_table_equal): New function.
1364 (char_code_table_hash): New function.
1365 (char_code_table_description): New constant.
1366 (char_code_table): New type.
1367 (make_char_code_table): New function.
1368 (copy_char_code_table): New function.
1369 (get_char_code_table): Modify for `char_code_table' type.
1370 (put_char_code_table): Likewise.
1371 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1374 * char-ucs.h (char_code_table): New type.
1375 (XCHAR_CODE_TABLE): New macro.
1376 (XSETCHAR_CODE_TABLE): New macro.
1377 (CHAR_CODE_TABLE_P): New macro.
1378 (GC_CHAR_CODE_TABLE_P): New macro.
1379 (struct Lisp_Char_Code_Table): New structure.
1381 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1383 * mule-charset.c (Fmake_charset): Setup byte_offset for
1386 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
1388 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
1391 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1393 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
1396 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
1398 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
1399 charset, it is regarded as a charset.
1400 (put_char_attribute): New function in UTF-2000.
1401 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
1402 charset, mapping-table of the charset is modified.
1403 (Fdefine_char): New function in UTF-2000.
1404 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
1405 `Fput_char_attribute'.
1406 (syms_of_mule_charset): Add new function `define-char' and new
1407 symbol `ucs' in UTF-2000.
1408 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
1410 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1412 * mule-charset.c (Fcharset_name): Define `byte_offset' in
1413 non-UTF-2000 configuration.
1415 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1417 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
1418 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
1420 * mule-charset.c (mark_charset): `cs->encoding_table' has been
1422 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
1423 (Fset_charset_mapping_table): Likewise.
1425 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
1426 (CHARSET_ENCODING_TABLE): Delete.
1427 (XCHARSET_ENCODING_TABLE): Delete.
1428 (charset_code_point): New interface.
1430 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
1432 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
1433 instead of `charset_get_byte1' and `charset_get_byte2'.
1435 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
1436 (charset_get_byte2): Deleted.
1438 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
1440 * char-ucs.h (SPLIT_CHAR): New inline function.
1441 (breakup_char_1): Use `SPLIT_CHAR'.
1443 * mule-charset.c (range_charset_code_point): New function.
1444 (charset_code_point): New function.
1446 * char-ucs.h (range_charset_code_point): New interface.
1447 (breakup_char_1): Use `range_charset_code_point'.
1449 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1451 * mule-charset.c (Fmake_charset): Delete unused local variable
1454 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
1455 (breakup_char_1): Find a charset and code-point in
1456 `Vcharacter_attribute_table'.
1458 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1460 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1463 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
1465 * mule-charset.c (Vcharacter_attribute_table): New variable.
1466 (Fchar_attribute_alist): New function.
1467 (Fget_char_attribute): New function.
1468 (Fput_char_attribute): New function.
1469 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
1471 (syms_of_mule_charset): Add new function `char-attribute-alist',
1472 `get-char-attribute' and `put-char-attribute'.
1473 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
1475 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
1477 * mule-charset.c (Fmake_charset): Just use
1478 `get_unallocated_leading_byte'.
1480 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
1481 sets; don't use final-byte based number for private sets.
1483 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1485 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
1488 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
1490 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1493 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1495 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
1496 of `CHAR_LEADING_BYTE' in UTF-2000.
1498 * insdel.c (find_charsets_in_bufbyte_string): Use
1499 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1500 (find_charsets_in_emchar_string): Likewise.
1502 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
1503 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1505 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
1506 (CHAR_CHARSET_ID): New macro.
1508 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1510 * chartab.c (get_char_table): Don't use type `Charset_ID' for
1511 charset-id - MIN_LEADING_BYTE.
1512 (put_char_table): Likewise.
1514 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1516 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
1517 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
1518 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
1519 (CHARSET_ID_OFFSET): New macro.
1520 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
1521 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
1522 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
1523 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1525 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1527 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
1528 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
1529 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
1530 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
1531 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
1533 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1535 * mule-charset.c (next_allocated_leading_byte): New variable in
1537 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
1538 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
1539 (get_unallocated_leading_byte): Simply use
1540 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
1541 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
1544 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
1545 (MAX_LEADING_BYTE_PRIVATE): New macro.
1546 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
1547 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
1549 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1551 * mule-charset.c (Fmake_charset): Allocate final-byte based
1552 charset-id for 94-set, 96-set and 94x94-set.
1554 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1556 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
1558 (Fmake_charset): Likewise.
1559 (complex_vars_of_mule_charset): Modify the font registry of
1560 `ucs-bmp' not to match `Ethiopic-Unicode'.
1562 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
1564 * mule-charset.c (complex_vars_of_mule_charset): Add font
1565 registory of `ucs-bmp'.
1567 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
1569 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
1570 coded-charsets in `default-coded-charset-priority-list' when
1571 breaking up a character.
1573 * mule-charset.c (Vcharset_latin_viscii): New variable.
1574 (Qlatin_viscii): New variable.
1575 (make_charset): Don't use `decoding_table'.
1576 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
1578 (Fset_charset_mapping_table): New implementation.
1579 (syms_of_mule_charset): Add new symbol `latin-viscii'.
1580 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
1581 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
1582 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
1583 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
1584 charset `latin_viscii'.
1586 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
1587 (CHARSET_TYPE_94X94): Change to 1 from 2.
1588 (CHARSET_TYPE_96): Change to 2 from 1.
1589 (CHARSET_TYPE_128): New macro.
1590 (CHARSET_TYPE_128X128): Change to 5 from 4.
1591 (CHARSET_TYPE_256): New macro.
1592 (CHARSET_TYPE_256X256): Change to 7 from 5.
1593 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
1595 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
1597 * text-coding.c (char_encode_shift_jis): Refer
1598 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
1599 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
1601 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
1602 (char_byte_table_equal): New function in UTF-2000.
1603 (char_byte_table_hash): New function in UTF-2000.
1604 (char_byte_table_description): New constant in UTF-2000.
1605 (char_byte_table): New type in UTF-2000.
1606 (make_char_byte_table): New function in UTF-2000.
1607 (copy_char_byte_table): New function in UTF-2000.
1608 (make_char_code_table): New macro in UTF-2000.
1609 (get_char_code_table): New function in UTF-2000.
1610 (put_char_code_table): New function in UTF-2000.
1611 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1612 (charset_description): Add setting in UTF-2000.
1613 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
1614 `CHARSET_TO_BYTE1_TABLE(cs)'.
1615 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
1616 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
1617 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
1618 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
1619 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
1620 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
1621 `CHARSET_TO_BYTE2_TABLE(cs)'.
1623 * char-ucs.h (char_byte_table): New type.
1624 (XCHAR_BYTE_TABLE): New macro.
1625 (XSETCHAR_BYTE_TABLE): New macro.
1626 (CHAR_BYTE_TABLE_P): New macro.
1627 (GC_CHAR_BYTE_TABLE_P): New macro.
1628 (struct Lisp_Char_Byte_Table): New structure.
1629 (get_char_code_table): New interface.
1630 (Emchar_to_byte_table): Deleted.
1631 (get_byte_from_character_table): Deleted.
1632 (struct Lisp_Charset): Add `encoding_table'; delete
1633 `to_byte1_table' and `to_byte2_table'.
1634 (CHARSET_ENCODING_TABLE): New macro.
1635 (CHARSET_TO_BYTE1_TABLE): Deleted.
1636 (CHARSET_TO_BYTE2_TABLE): Deleted.
1637 (XCHARSET_ENCODING_TABLE): New macro.
1638 (XCHARSET_TO_BYTE1_TABLE): Deleted.
1639 (XCHARSET_TO_BYTE2_TABLE): Deleted.
1641 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
1643 * mule-charset.c (syms_of_mule_charset): Delete charset alias
1644 `vietnamese-viscii-*'.
1646 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
1648 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
1649 (Qvietnamese_viscii_upper): New variable.
1650 (Fdefine_charset_alias): New function.
1651 (syms_of_mule_charset): Add new function `define-charset-alias'.
1652 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
1653 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
1656 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
1658 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
1659 (MAX_CHAR_OBS_94x94): New macro.
1660 (breakup_char_1): Support obsolete XEmacs-UCS private code space
1663 * mule-charset.c (put_byte_from_character_table): Change unit size
1665 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
1667 (Fmake_reverse_direction_charset): Modify dummy argument of
1668 `make_charset' for non-UTF-2000 environment.
1670 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
1672 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
1674 * mule-charset.c (destroy_byte_from_character_table): New macro.
1675 (latin_jisx0201_to_ucs): Deleted.
1676 (latin_iso8859_2_to_ucs): Deleted.
1677 (latin_iso8859_3_to_ucs): Deleted.
1678 (latin_iso8859_4_to_ucs): Deleted.
1679 (latin_iso8859_9_to_ucs): Deleted.
1680 (latin_viscii_lower_to_ucs): Deleted.
1681 (latin_viscii_upper_to_ucs): Deleted.
1682 (mark_charset): Mark `cs->decoding_table'.
1683 (Fcharset_mapping_table): Fix DOC-string.
1684 (Fset_charset_mapping_table): New function.
1685 (syms_of_mule_charset): Add nwe function
1686 `set-charset-mapping-table'.
1687 (complex_vars_of_mule_charset): Don't setup and use
1690 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
1692 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
1695 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
1697 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
1698 (Vcharset_katakana_jisx0208): New variable.
1699 (Qhiragana_jisx0208): New variable.
1700 (Qkatakana_jisx0208): New variable.
1701 (make_charset): Add new argument `byte_offset'.
1702 (charset_get_byte1): Modify for new coded-charset definition; use
1703 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1704 `XCHARSET_BYTE_OFFSET'.
1705 (Fmake_charset): Modify for `make_charset'.
1706 (Fmake_reverse_direction_charset): Likewise.
1707 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
1708 `katakana-jisx0208'.
1709 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
1710 `.' in font registry of charset `katakana-jisx0201',
1711 `latin-jisx0201', `vietnamese-viscii-lower' and
1712 `vietnamese-viscii-upper'; modify DOC-string of charset
1713 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
1714 registry of charset `japanese-jisx0208' not to use font for JIS
1715 X0208:1990; add new charset `hiragana-jisx0208' and
1716 `katakana-jisx0208'.
1718 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
1719 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
1720 (struct Lisp_Charset): Add `byte_offset'.
1721 (CHARSET_BYTE_OFFSET): New macro.
1722 (XCHARSET_UCS_MIN): New macro.
1723 (XCHARSET_UCS_MAX): New macro.
1724 (XCHARSET_CODE_OFFSET): New macro.
1725 (XCHARSET_BYTE_OFFSET): New macro.
1726 (MIN_CHAR_HIRAGANA): New macro.
1727 (MAX_CHAR_HIRAGANA): New macro.
1728 (MIN_CHAR_KATAKANA): New macro.
1729 (MAX_CHAR_KATAKANA): New macro.
1730 (MAKE_CHAR): Modify for new coded-charset definition; use
1731 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1732 `XCHARSET_BYTE_OFFSET'.
1734 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
1736 * mule-charset.c (CHAR96): Deleted.
1737 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
1739 (latin_iso8859_2_to_ucs): Likewise.
1740 (latin_iso8859_3_to_ucs): Likewise.
1741 (latin_iso8859_4_to_ucs): Likewise.
1742 (latin_iso8859_9_to_ucs): Likewise.
1743 (latin_viscii_lower_to_ucs): Likewise.
1744 (latin_viscii_upper_to_ucs): Likewise.
1745 (latin_tcvn5712_to_ucs): Commented out.
1746 (make_charset): Change type of argument `decoding_table' from
1747 <Emchar*> to <Lisp_Object> [vector of characters].
1748 (Fmake_charset): Modify for `make_charset'.
1749 (Fmake_reverse_direction_charset): Likewise.
1750 (Fcharset_mapping_table): New function in UTF-2000.
1751 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
1753 (complex_vars_of_mule_charset): Modify for type change of
1754 `*_to_ucs'; modify for `make_charset'.
1756 * char-ucs.h (struct Lisp_Charset): Change type of
1757 `decoding_table' from <Emchar*> to <Lisp_Object>.
1758 (MAKE_CHAR): Modify for new specification of `decoding_table'.
1760 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
1762 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
1763 error with non-UTF-2000-Mule.
1765 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
1767 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
1769 (Vcharset_chinese_cns11643_4): Likewise.
1770 (Vcharset_chinese_cns11643_5): Likewise.
1771 (Vcharset_chinese_cns11643_6): Likewise.
1772 (Vcharset_chinese_cns11643_7): Likewise.
1773 (Qchinese_cns11643_3): Likewise.
1774 (Qchinese_cns11643_4): Likewise.
1775 (Qchinese_cns11643_5): Likewise.
1776 (Qchinese_cns11643_6): Likewise.
1777 (Qchinese_cns11643_7): Likewise.
1778 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
1779 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
1780 and `chinese-cns11643-7' to lisp/mule/chinese.el.
1781 (complex_vars_of_mule_charset): Likewise.
1783 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
1785 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
1787 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
1788 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
1790 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
1792 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
1794 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
1795 (breakup_char_1): Likewise.
1797 * text-coding.c (char_encode_iso2022): Keep designated charsets if
1798 one of them includes the specified character.
1800 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1802 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
1804 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1806 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
1808 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1810 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
1811 definition for non-UTF-2000 Mule.
1812 (latin_iso8859_3_to_ucs): Likewise.
1813 (latin_iso8859_4_to_ucs): Likewise.
1814 (latin_iso8859_9_to_ucs): Likewise.
1815 (latin_jisx0201_to_ucs): Likewise.
1816 (MIN_CHAR_THAI): Likewise.
1817 (MAX_CHAR_THAI): Likewise.
1818 (MIN_CHAR_GREEK): Likewise.
1819 (MAX_CHAR_GREEK): Likewise.
1820 (MIN_CHAR_HEBREW): Likewise.
1821 (MAX_CHAR_HEBREW): Likewise.
1822 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
1823 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
1824 (MIN_CHAR_CYRILLIC): Likewise.
1825 (MAX_CHAR_CYRILLIC): Likewise.
1827 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
1829 * char-ucs.h (breakup_char_1): Use
1830 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
1831 thai-tis620 and katakana-jisx0201 area.
1833 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1835 * char-ucs.h (breakup_char_1): Use
1836 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
1839 * text-coding.c (reset_encoding_stream): Fixed.
1840 (char_encode_ucs4): Delete `& 255'.
1842 * char-ucs.h (breakup_char_1): Use
1843 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
1845 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1847 * file-coding.c (Fmake_coding_system): Don't set up
1848 `codesys->fixed.size'.
1849 (encode_coding_no_conversion): Don't refer
1850 `str->codesys->fixed.size'.
1852 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1854 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
1855 (latin_a_char_to_byte1): Deleted.
1856 (latin_a_char_to_byte2): Deleted.
1858 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1860 * mule-charset.c (make_charset): Add new argument `ucs_min',
1861 `ucs_max' and `code_offset'.
1862 (charset_get_byte1): New implementation [delete specific charset
1863 depended implementations].
1864 (Fmake_charset): Modify for `make_charset'.
1865 (Fmake_reverse_direction_charset): Likewise.
1866 (complex_vars_of_mule_charset): Likewise.
1868 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
1870 (CHARSET_UCS_MIN): New macro.
1871 (CHARSET_UCS_MAX): New macro.
1872 (CHARSET_CODE_OFFSET): New macro.
1873 (MAKE_CHAR): Delete charset depended definitions [except
1876 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
1878 * char-ucs.h (breakup_char_1): Use
1879 `Vdefault_coded_charset_priority_list' for C0-Controls,
1880 Basic-Latin, C1-Controls and Latin-1-Supplement area.
1882 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
1884 * char-ucs.h (charset_get_byte1): New function.
1885 (XCHARSET_GET_BYTE1): Deleted.
1886 (charset_get_byte2): New function.
1887 (XCHARSET_GET_BYTE2): Deleted.
1888 (Vdefault_coded_charset_priority_list): New external variable.
1889 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
1890 `Vdefault_preferred_coded_charset_list'.
1892 * mule-charset.c (charset_get_byte1): New function.
1893 (charset_get_byte2): New function.
1894 (Vdefault_coded_charset_priority_list): New variable.
1895 (vars_of_mule_charset): Add new variable
1896 `default-coded-charset-priority-list'.
1898 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1900 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
1901 (XCHARSET_GET_BYTE2): New inline function.
1902 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
1903 `XCHARSET_GET_BYTE2'.
1905 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
1907 * mule-charset.c (make_charset): Initialize
1908 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
1909 NULL if table is not defined.
1911 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1913 * text-coding.c (char_encode_shift_jis): Use
1914 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
1915 `ucs_to_latin_jisx0201'.
1917 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
1918 (ucs_to_latin_iso8859_2): Deleted.
1919 (ucs_to_latin_iso8859_3): Deleted.
1920 (ucs_to_latin_iso8859_4): Deleted.
1921 (ucs_to_latin_iso8859_9): Deleted.
1922 (ucs_to_latin_viscii_lower): Deleted.
1923 (ucs_to_latin_viscii_upper): Deleted.
1924 (ucs_to_latin_tcvn5712): Deleted.
1925 (make_charset): Add new argument `decoding_table'; set up
1926 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
1927 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
1928 `decoding_table' is defined in UTF-2000.
1929 (Fmake_charset): Modify for `make_charset'.
1930 (Fmake_reverse_direction_charset): Likewise.
1931 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
1932 and `GENERATE_96_SET'.
1934 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
1935 (ucs_to_latin_jisx0201): Deleted.
1936 (latin_iso8859_2_to_ucs): Deleted.
1937 (ucs_to_latin_iso8859_2): Deleted.
1938 (latin_iso8859_3_to_ucs): Deleted.
1939 (ucs_to_latin_iso8859_3): Deleted.
1940 (latin_iso8859_4_to_ucs): Deleted.
1941 (ucs_to_latin_iso8859_4): Deleted.
1942 (latin_iso8859_9_to_ucs): Deleted.
1943 (ucs_to_latin_iso8859_9): Deleted.
1944 (latin_viscii_lower_to_ucs): Deleted.
1945 (ucs_to_latin_viscii_lower): Deleted.
1946 (latin_viscii_upper_to_ucs): Deleted.
1947 (ucs_to_latin_viscii_upper): Deleted.
1948 (struct Lisp_Charset): Renamed `encoding_table' to
1949 `to_byte1_table'; add `to_byte2_table'.
1950 (CHARSET_DECODING_TABLE): New macro.
1951 (CHARSET_TO_BYTE1_TABLE): New macro.
1952 (CHARSET_TO_BYTE2_TABLE): New macro.
1953 (XCHARSET_DECODING_TABLE): New macro.
1954 (XCHARSET_TO_BYTE1_TABLE): New macro.
1955 (XCHARSET_TO_BYTE2_TABLE): New macro.
1956 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
1958 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
1959 don't use `ucs_to_*' tables.
1961 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
1963 * text-coding.c (Fmake_coding_system): Don't set up
1964 `codesys->fixed.size'.
1965 (encode_coding_no_conversion): Use `if' instead of `switch'.
1967 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
1969 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1971 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
1972 (Fmake_charset): Modify for `make_charset'.
1973 (Fmake_reverse_direction_charset): Likewise.
1974 (complex_vars_of_mule_charset): Likewise.
1976 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1978 * text-coding.c (char_encode_shift_jis): Use table
1979 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
1981 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
1983 * text-coding.c (text_encode_generic): Use `if' instead of
1985 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
1988 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
1990 * text-coding.c (encode_coding_sjis): Deleted.
1991 (char_encode_shift_jis): New function.
1992 (char_finish_shift_jis): New function.
1993 (reset_encoding_stream): Set up `encode_char' and `finish' for
1994 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
1995 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
1996 (char_encode_utf8): Treat `eol_type'.
1998 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2000 * file-coding.c (decode_coding_iso2022): Use
2001 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2003 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2005 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2008 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2010 * char-lb.h (CHAR_COLUMNS): New macro.
2012 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2014 * text-coding.c (char_encode_ucs4): New function.
2015 (char_finish_ucs4): New function.
2016 (encode_coding_ucs4): Deleted.
2017 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2018 (text_encode_generic): Delete local variable `charset' and `half'.
2019 (ucs_to_mule_table): Deleted.
2020 (mule_to_ucs_table): Deleted.
2021 (Fset_ucs_char): Deleted.
2022 (ucs_to_char): Deleted.
2023 (Fucs_char): Deleted.
2024 (Fset_char_ucs): Deleted.
2025 (Fchar_ucs): Deleted.
2026 (decode_ucs4): Deleted.
2027 (mule_char_to_ucs4): Deleted.
2028 (encode_ucs4): Deleted.
2029 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2030 (decode_coding_utf8): Likewise.
2031 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2032 (char_encode_iso2022): Fixed.
2033 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2034 `Fset_char_ucs' and `Fchar_ucs'.
2035 (complex_vars_of_file_coding): Don't initialize
2036 `ucs_to_mule_table'.
2038 * objects-tty.c (tty_initialize_font_instance): Don't use
2041 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2044 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2045 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2047 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2048 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2049 (emchar_string_displayed_columns): Likewise.
2051 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2052 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2053 (string_column_at_point): Likewise.
2054 (Fmove_to_column): Likewise.
2056 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2057 `encoding_table' and `decoding_table'.
2058 (CHARSET_REP_BYTES): Deleted.
2059 (XCHARSET_REP_BYTES): Deleted.
2060 (XCHARSET_COLUMNS): Deleted.
2061 (CHAR_COLUMNS): New macro.
2062 (lookup_composite_char): Deleted unconditionally.
2063 (composite_char_string): Likewise.
2065 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2067 * char-ucs.h (Emchar_to_byte_table): New type.
2068 (get_byte_from_character_table): New function interface.
2069 (Vcharset_latin_jisx0201): New variable.
2070 (latin_jisx0201_to_ucs): New variable.
2071 (ucs_to_latin_jisx0201): New variable.
2072 (Vcharset_latin_iso8859_2): New variable.
2073 (latin_iso8859_2_to_ucs): New variable.
2074 (ucs_to_latin_iso8859_2): New variable.
2075 (Vcharset_latin_iso8859_3): New variable.
2076 (latin_iso8859_3_to_ucs): New variable.
2077 (ucs_to_latin_iso8859_3): New variable.
2078 (Vcharset_latin_iso8859_4): New variable.
2079 (latin_iso8859_4_to_ucs): New variable.
2080 (ucs_to_latin_iso8859_4): New variable.
2081 (Vcharset_latin_iso8859_9): New variable.
2082 (latin_iso8859_9_to_ucs): New variable.
2083 (ucs_to_latin_iso8859_9): New variable.
2084 (Vcharset_latin_viscii_lower): New variable.
2085 (latin_viscii_lower_to_ucs): New variable.
2086 (ucs_to_latin_viscii_lower): New variable.
2087 (Vcharset_latin_viscii_upper): New variable.
2088 (latin_viscii_upper_to_ucs): New variable.
2089 (ucs_to_latin_viscii_upper): New variable.
2090 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2091 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2092 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2093 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2094 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2095 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2096 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2097 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2098 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2099 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2101 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2102 (Vcharset_latin_viscii_upper): New variable.
2103 (make_byte_from_character_table): New function.
2104 (put_byte_from_character_table): New function.
2105 (get_byte_from_character_table): New function.
2106 (CHAR96): New macro.
2107 (ucs_to_latin_jisx0201): New variable.
2108 (latin_jisx0201_to_ucs): New variable.
2109 (ucs_to_latin_iso8859_2): New variable.
2110 (latin_iso8859_2_to_ucs): New variable.
2111 (ucs_to_latin_iso8859_3): New variable.
2112 (latin_iso8859_3_to_ucs): New variable.
2113 (ucs_to_latin_iso8859_4): New variable.
2114 (latin_iso8859_4_to_ucs): New variable.
2115 (ucs_to_latin_iso8859_9): New variable.
2116 (latin_iso8859_9_to_ucs): New variable.
2117 (ucs_to_latin_viscii_lower): New variable.
2118 (latin_viscii_lower_to_ucs): New variable.
2119 (ucs_to_latin_viscii_upper): New variable.
2120 (latin_viscii_upper_to_ucs): New variable.
2121 (ucs_to_latin_tcvn5712): New variable.
2122 (latin_tcvn5712_to_ucs): New variable.
2123 (Qlatin_viscii_lower): New variable.
2124 (Qlatin_viscii_upper): New variable.
2125 (syms_of_mule_charset): Set up new symbol
2126 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2127 (complex_vars_of_mule_charset): Set up new charset
2128 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2129 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2130 `ucs_to_<CHARSET>' tables.
2132 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2134 * text-coding.c: New file.
2136 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2138 * mule-charset.c (Fmake_char): Fix problem of 256-set.
2140 * char-ucs.h (Vcharset_ucs_bmp): New variable.
2141 (MAKE_CHAR): Modify for `ucs-bmp'.
2142 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2143 non-MULE characters of BMP.
2145 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
2147 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2150 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
2153 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2154 - Include character.h for `CHAR_ASCII_P'.
2156 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2158 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2159 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2161 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2162 (BYTE_C0_P): Likewise.
2163 (BYTE_C1_P): Likewise.
2164 (Lstream_get_emchar_1): Likewise.
2165 (Lstream_fput_emchar): Likewise.
2166 (Lstream_funget_emchar): Likewise.
2167 (copy_internal_to_external): Likewise.
2168 (copy_external_to_internal): Likewise.
2170 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2171 (BYTE_C0_P): Likewise.
2172 (BYTE_C1_P): Likewise.
2173 (Lstream_get_emchar_1): Likewise.
2174 (Lstream_fput_emchar): Likewise.
2175 (Lstream_funget_emchar): Likewise.
2176 (copy_internal_to_external): Likewise.
2177 (copy_external_to_internal): Likewise.
2179 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2180 (REP_BYTES_BY_FIRST_BYTE): Likewise.
2182 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2183 (BYTE_ASCII_P): Moved to mb-1byte.h.
2185 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
2187 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2189 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2190 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2191 (VALID_CHARPTR_P): Moved to mb-*byte.h.
2192 (VALIDATE_CHARPTR_BACKWARD): Likewise.
2193 (VALIDATE_CHARPTR_FORWARD): Likewise.
2194 (simple_charptr_emchar): Moved to mb-multibyte.h.
2195 (simple_set_charptr_emchar): Likewise.
2196 (simple_charptr_copy_char): Likewise.
2197 (non_ascii_charptr_emchar): Likewise.
2198 (non_ascii_set_charptr_emchar): Likewise.
2199 (non_ascii_charptr_copy_char): Likewise.
2200 (charptr_emchar): Moved to mb-*byte.h.
2201 (set_charptr_emchar): Likewise.
2202 (charptr_copy_char): Likewise.
2204 * mb-1byte.h, mb-multibyte.h: New files.
2206 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2208 * mb-utf-8.h (MULTIBYTE): New macro.
2209 (MAX_EMCHAR_LEN): Moved from buffer.h.
2210 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2212 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2214 * mb-lb.h, multibyte.h: New files.
2216 * char-1byte.h (Charset_ID): Moved from buffer.h.
2217 (MIN_LEADING_BYTE): Likewise.
2218 (LEADING_BYTE_ASCII): Likewise.
2219 (NUM_LEADING_BYTES): Likewise.
2220 (CHARSETP): Likewise.
2221 (CHARSET_BY_LEADING_BYTE): Likewise.
2222 (XCHARSET_LEADING_BYTE): Likewise.
2223 (XCHARSET_GRAPHIC): Likewise.
2224 (XCHARSET_COLUMNS): Likewise.
2225 (XCHARSET_DIMENSION): Likewise.
2226 (CHAR_CHARSET): Likewise.
2227 (CHAR_LEADING_BYTE): Likewise.
2228 (BREAKUP_CHAR): Likewise.
2229 (Vcharset_ascii): Likewise.
2231 * buffer.h: Include multibyte.h unconditionally.
2232 (VALID_CHARPTR_P): Moved to multibyte.h.
2233 (ASSERT_VALID_CHARPTR): Likewise.
2234 (REAL_INC_CHARPTR): Likewise.
2235 (REAL_INC_CHARBYTIND): Likewise.
2236 (REAL_DEC_CHARPTR): Likewise.
2237 (INC_CHARPTR): Likewise.
2238 (INC_CHARBYTIND): Likewise.
2239 (DEC_CHARPTR): Likewise.
2240 (VALIDATE_CHARPTR_BACKWARD): Likewise.
2241 (VALIDATE_CHARPTR_FORWARD): Likewise.
2242 (charptr_n_addr): Likewise.
2243 (MAX_EMCHAR_LEN): Moved to mb-*.h.
2244 (simple_charptr_emchar): Moved to multibyte.h.
2245 (simple_set_charptr_emchar): Likewise.
2246 (simple_charptr_copy_char): Likewise.
2247 (non_ascii_charptr_emchar): Likewise.
2248 (non_ascii_set_charptr_emchar): Likewise.
2249 (non_ascii_charptr_copy_char): Likewise.
2250 (charptr_emchar): Likewise.
2251 (set_charptr_emchar): Likewise.
2252 (charptr_copy_char): Likewise.
2253 (charptr_emchar_n): Likewise.
2254 (Charset_ID): Moved to char-1byte.h.
2255 (Vcharset_ascii): Likewise.
2256 (CHAR_CHARSET): Likewise.
2257 (CHAR_LEADING_BYTE): Likewise.
2258 (LEADING_BYTE_ASCII): Likewise.
2259 (NUM_LEADING_BYTES): Likewise.
2260 (MIN_LEADING_BYTE): Likewise.
2261 (CHARSETP): Likewise.
2262 (CHARSET_BY_LEADING_BYTE): Likewise.
2263 (XCHARSET_LEADING_BYTE): Likewise.
2264 (XCHARSET_GRAPHIC): Likewise.
2265 (XCHARSET_COLUMNS): Likewise.
2266 (XCHARSET_DIMENSION): Likewise.
2267 (BREAKUP_CHAR): Likewise.
2269 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2271 * character.h: Add document about interface for characters.
2273 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2274 (MAKE_CHAR): Delete comment about
2275 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2276 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2277 (BREAKUP_CHAR): Modify name of arguments.
2278 (CHAR_CHARSET): Modify name of argument.
2280 * buffer.h: Delete document about Emchar accessors.
2282 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2284 * character.h (CHAR_INTP): Moved from buffer.h
2285 (CHAR_OR_CHAR_INTP): Likewise.
2286 (XCHAR_OR_CHAR_INT): Likewise.
2287 (CHECK_CHAR_COERCE_INT): Likewise.
2289 * buffer.h (CHAR_INTP): Moved to character.h
2290 (CHAR_OR_CHAR_INTP): Likewise.
2291 (XCHAR_OR_CHAR_INT): Likewise.
2292 (CHECK_CHAR_COERCE_INT): Likewise.
2294 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2297 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2298 - Include char-1byte.h, char-lb.h or char-ucs.h.
2300 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2302 * buffer.h: Include character unconditionally.
2303 (valid_char_p): Moved to char-*.h.
2304 (non_ascii_valid_char_p): Moved to char-lb.h.
2306 * char-1byte.h, char-lb.h, char-ucs.h: New files.
2308 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
2310 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2311 in UTF-2000 because it is not ported yet and not to use
2312 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2313 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2314 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2316 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2317 (CHAR_ASCII_P): Moved from character.h.
2319 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2320 (CHAR_ASCII_P): Likewise.
2321 (CHAR_FIELD1_MASK): Deleted.
2322 (CHAR_FIELD2_MASK): Deleted.
2323 (CHAR_FIELD3_MASK): Deleted.
2324 (MAX_CHAR_BASIC_LATIN): New macro.
2325 (CHAR_FIELD1): Deleted.
2326 (CHAR_FIELD2_INTERNAL): Deleted.
2327 (CHAR_FIELD3_INTERNAL): Deleted.
2328 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2329 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2330 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2331 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2332 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2333 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2334 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2335 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2336 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2337 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2338 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2339 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2340 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2341 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2342 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2343 (MIN_CHAR_COMPOSITION): Deleted.
2344 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2345 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2347 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
2349 * buffer.h: Include mb-utf-8.h in UTF-2000.
2351 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2353 * mb-utf-8.h: New file.
2355 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
2357 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2360 * mule-charset.h, buffer.h (Charset_ID): New type.
2362 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
2364 * mule-canna.c (c2mu): Use `MAKE_CHAR',
2365 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2366 instead of `MULE_CHAR_PRIVATE_OFFSET',
2367 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2368 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2369 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2371 * character.h (Vcharset_japanese_jisx0212): New variable
2374 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
2376 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2377 (charset_by_attributes): Delete array about direction.
2378 (latin_a_char_to_charset): New variable in UTF-2000.
2379 (latin_a_char_to_byte1): New variable in UTF-2000.
2380 (latin_a_char_to_byte2): New variable in UTF-2000.
2381 (Qucs_bmp): New variable.
2382 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
2384 (next_allocated_2_byte_leading_byte): Likewise.
2385 (non_ascii_set_charptr_emchar): Likewise.
2386 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
2387 `CHARSET_TYPE_256X256' in UTF-2000; modify for
2388 `charset_by_attributes'.
2389 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
2390 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
2391 and `CHARSET_BY_LEADING_BYTE'.
2392 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
2393 `utf-2000-version' to `vars_of_mule_charset'.
2394 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
2395 define `leading-code-private-11' in UTF-2000; move setting of
2396 `utf-2000-version' from `syms_of_mule_charset'.
2397 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
2400 * character.h (Charset_ID): New type.
2401 (LEADING_BYTE_UCS_BMP): New macro.
2402 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
2403 (CHARSET_ID_OFFSET_94): New macro.
2404 (MIN_CHARSET_ID_PRIVATE_94): New macro.
2405 (MAX_CHARSET_ID_PRIVATE_94): New macro.
2406 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
2408 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
2409 (LEADING_BYTE_LATIN_JISX0201): Likewise.
2410 (CHARSET_ID_OFFSET_96): New macro.
2411 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
2412 CHARSET_ID_OFFSET_96 and final-byte.
2413 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
2414 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
2415 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
2416 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
2417 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
2418 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
2419 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
2420 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
2421 (LEADING_BYTE_THAI_TIS620): Likewise.
2422 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
2423 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
2424 (CHARSET_ID_OFFSET_94x94): New macro.
2425 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
2426 CHARSET_ID_OFFSET_94x94 and final-byte.
2427 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
2428 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
2429 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
2430 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
2431 (LEADING_BYTE_CHINESE_GB2312): Likewise.
2432 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
2433 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
2434 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
2435 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
2436 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
2437 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
2438 (CHARSET_TYPE_128X128): New macro.
2439 (CHARSET_TYPE_256X256): New macro.
2440 (XCHARSET_PRIVATE_P): Delete unconditionally.
2441 (charset_by_attributes): Delete array about direction.
2442 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
2443 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
2444 (MIN_CHAR_94): New macro.
2445 (MAX_CHAR_94): New macro.
2446 (MIN_CHAR_96): New macro.
2447 (MAX_CHAR_96): New macro.
2448 (MIN_CHAR_94x94): New macro.
2449 (MAX_CHAR_94x94): New macro.
2450 (MIN_CHAR_96x96): New macro.
2451 (MAX_CHAR_96x96): New macro.
2452 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
2453 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2454 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
2456 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
2457 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
2458 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
2459 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
2460 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
2461 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
2462 `XCHARSET_LEADING_BYTE' to make code-point.
2463 (latin_a_char_to_charset): New variable.
2464 (latin_a_char_to_byte1): New variable.
2465 (latin_a_char_to_byte2): New variable.
2466 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
2467 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
2468 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
2470 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
2471 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
2472 (find_charsets_in_emchar_string): Likewise.
2473 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
2475 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
2477 (decode_coding_iso2022): Likewise.
2479 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
2482 * redisplay.c (redisplay_text_width_emchar_string): Use
2483 `Charset_ID' instead of `unsigned char'.
2484 (redisplay_frame_text_width_string): Likewise.
2486 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
2489 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
2490 instead of `unsigned char'.
2491 (face_cachel_charset_font_metric_info): Likewise.
2493 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
2494 (get_non_ascii_char_table_value): Likewise.
2495 (get_char_table): Likewise.
2496 (put_char_table): Likewise.
2497 (map_over_other_charset): Likewise.
2498 (map_char_table): Likewise.
2500 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
2501 instead of `unsigned char'.
2503 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
2505 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
2506 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
2508 * mule-charset.c (leading_code_private_11): Don't define in
2511 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
2512 in UTF-2000 because it is not ported yet and not to use
2513 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
2515 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
2517 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
2519 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2521 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
2524 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
2525 of unsigned char to store leading-byte.
2527 * chartab.c (get_non_ascii_char_table_value): Don't use
2528 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
2530 * file-coding.c (encode_coding_big5): Delete bogus implementation
2533 * character.h (LEADING_BYTE_*): Delete definition for
2535 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
2536 (LEADING_BYTE_PREFIX_P): Deleted.
2537 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
2538 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
2539 (BUFBYTE_LEADING_BYTE_P): Deleted.
2540 (CHARSET_PRIVATE_P): Deleted unconditionally.
2541 (rep_bytes_by_first_byte): Deleted unconditionally.
2542 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
2543 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
2544 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2545 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
2546 (CHAR_FIELD2): Deleted.
2547 (CHAR_FIELD3): Deleted.
2548 (MAKE_CHAR): Delete definition for non-UTF-2000.
2549 (BREAKUP_CHAR_1_UNSAFE): Deleted.
2550 (breakup_char_1): New implementation.
2551 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
2552 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
2554 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2556 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
2559 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2561 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
2562 (CHARSET_PRIVATE_P): Likewise.
2563 (XCHARSET_PRIVATE_P): Likewise.
2564 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
2566 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
2568 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
2570 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2572 * character.h (LEADING_BYTE_*): Changed in UTF2000.
2573 (NUM_LEADING_BYTES): Changed from 128 to 256.
2574 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
2575 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
2577 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
2579 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
2581 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
2582 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
2583 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
2584 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
2585 (Qchinese_cns11643_3): New variable in UTF2000.
2586 (Qchinese_cns11643_4): New variable in UTF2000.
2587 (Qchinese_cns11643_5): New variable in UTF2000.
2588 (Qchinese_cns11643_6): New variable in UTF2000.
2589 (Qchinese_cns11643_7): New variable in UTF2000.
2590 (syms_of_mule_charset): Define `chinese-cns11643-3',
2591 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2592 and `chinese-cns11643-7' in UTF2000.
2593 (vars_of_mule_charset): Initialize
2594 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
2596 (complex_vars_of_mule_charset): Setup charset
2597 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
2598 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
2600 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2602 * mule-charset.c: Move setting for `leading-code-private-11' from
2603 `syms_of_mule_charset' to `vars_of_mule_charset'.
2605 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2607 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
2608 and `NUM_LEADING_BYTES' in assert.
2610 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2612 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
2614 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
2615 `NUM_LEADING_BYTES' instead of 128.
2617 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2619 * mule-charset.h (charset_by_leading_byte): Use
2620 `NUM_LEADING_BYTES' instead of 128.
2621 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
2623 * mule-charset.c (charset_by_leading_byte): Use
2624 `NUM_LEADING_BYTES' instead of 128.
2625 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
2627 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
2630 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2632 * mule-charset.c (syms_of_mule_charset): Update to
2635 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
2637 * file-coding.c (encode_coding_sjis): New implementation for
2638 UTF2000. (decode_coding_sjis): Ditto.
2640 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2642 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
2643 Don't define in UTF2000.
2645 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
2648 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2649 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
2652 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2654 * config.h.in (CHAR_IS_UCS4): New macro.
2656 * mule-charset.c (rep_bytes_by_first_byte): Modify for
2657 conventional MULE representation.
2658 (syms_of_mule_charset): Update to 0.3 (Imamiya).
2660 * mule-charset.h: Reverted to original.
2662 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2663 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
2664 "mule-charset.h" if CHAR_IS_UCS4 is defined.
2666 * character.h: New file.
2668 * file-coding.c (Fmake_coding_system): Set 1 to
2669 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
2671 (encode_coding_no_conversion): New implementation for UTF2000.
2673 * file-coding.h (struct Lisp_Coding_System): Add new member
2676 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
2678 * file-coding.c (decode_coding_iso2022): Code-point arguments of
2679 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
2680 (encode_coding_iso2022): New implementation for UTF2000.
2682 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2684 * mule-canna.c (c2mu): New implementation for UTF2000.
2687 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2689 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
2691 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2693 * file-coding.c (reset_encoding_stream): Set 0 to
2694 `str->iso2022.current_char_boundary' in UTF2000.
2695 (encode_utf8): Don't define in UTF2000.
2696 (encode_coding_utf8): New implementation for UTF-8 representation
2698 (complex_vars_of_file_coding): Define coding-system `utf-8'.
2700 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2702 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
2704 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
2706 (REP_BYTES_BY_FIRST_BYTE): Likewise.
2708 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
2710 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
2711 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
2712 as UTF-8 in UTF2000.
2713 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
2714 (non_ascii_valid_char_p): Don't define in UTF2000.
2715 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
2716 (Lstream_get_emchar_1): Likewise.
2717 (utf-2000-version): New variable in UTF2000.
2719 * lread.c (read_escape): Add new reader `u'.
2721 * insdel.c (three_to_one_table): Don't define in UTF2000.
2722 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
2723 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2725 (bytind_to_bufpos_func): Likewise.
2726 (buffer_mule_signal_inserted_region): Likewise.
2727 (vars_of_insdel): Don't initialize `three_to_one_table'.
2728 (init_buffer_text): Use `buf->text->mule_size' instead of
2729 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2732 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
2733 UTF-8 representation in UTF2000.
2734 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
2735 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
2736 (decode_coding_iso2022): Don't define local variable `lb' in
2737 UTF2000; don't use LEADING_BYTE in UTF2000; use
2738 `DECODE_ADD_UCS_CHAR' in UTF2000.
2739 (convert_to_external_format): Decode as UTF-8 in UTF2000.
2741 * config.h.in (UTF2000): New macro.
2743 * buffer.h (struct buffer_text): Add new member `mule_size' and
2744 don't add `mule_shifter' and `mule_three_p' in UTF2000.
2745 (valid_char_p): Return always 1 in UTF2000.
2746 (MAX_EMCHAR_LEN): 6 in UTF2000.
2747 (three_to_one_table): Don't define in UTF2000.
2748 (real_bufpos_to_bytind): Modify for UTF-8 representation in
2750 (real_bytind_to_bufpos): Likewise.
2752 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
2754 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2756 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
2757 representation change.
2758 (Vutf_2000_version): New variable.
2759 (leading_code_private_11): New variable.
2760 (syms_of_mule_charset): Add new variables `utf-2000-version' and
2761 `leading-code-private-11'.
2763 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
2764 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
2765 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
2766 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
2767 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
2768 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
2769 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
2770 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
2771 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
2772 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
2773 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
2774 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
2775 (MIN_CHAR_GREEK): New macro.
2776 (MAX_CHAR_GREEK): New macro.
2777 (MIN_CHAR_CYRILLIC): New macro.
2778 (MAX_CHAR_CYRILLIC): New macro.
2779 (MIN_CHAR_HEBREW): New macro.
2780 (MAX_CHAR_HEBREW): New macro.
2781 (MIN_CHAR_THAI): New macro.
2782 (MAX_CHAR_THAI): New macro.
2783 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
2784 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
2785 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
2786 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
2787 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
2788 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
2789 (CHAR_FIELD2): New inline function.
2790 (CHAR_FIELD3): New inline function.
2791 (MULE_CHAR_PRIVATE_OFFSET): New macro.
2792 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
2793 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
2794 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
2795 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
2796 (MIN_CHAR_COMPOSITION): Likewise.
2797 (CHAR_LEADING_BYTE): Modified for character representation change.
2798 (MAKE_CHAR): Likewise.
2800 * lisp.h (Vcharset_latin_iso8859_1): New variable.
2801 (Vcharset_greek_iso8859_7): Likewise.
2802 (Vcharset_cyrillic_iso8859_5): Likewise.
2803 (Vcharset_hebrew_iso8859_8): Likewise.
2804 (Vcharset_thai_tis620): Likewise.
2805 (Vcharset_katakana_jisx0201): Likewise.
2807 2000-12-05 Martin Buchholz <martin@xemacs.org>
2809 * XEmacs 21.2.38 is released.
2811 2000-12-05 Martin Buchholz <martin@xemacs.org>
2813 * symsinit.h: Add init_postgresql_from_environment.
2815 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
2817 * regex.c: Convert to clean C.
2819 2000-12-05 Dan Holmsand <dan@eyebee.com>
2822 Don't #include sysfile.h. Revert to duplicating PATH_MAX
2824 (sys_readlink): renamed to system_readlink to avoid conflict with
2825 the other sys_readlink.
2827 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
2829 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
2831 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
2833 * postgresql.c (init_postgresql_from_environment): new function.
2834 (vars_of_postgresql): Move code initializing Lisp variables out and
2835 into init_postgresql_from_environment.
2836 emacs.c (main_1): Call init_postgresql_from_environment if and only
2837 if running a dumped XEmacs.
2839 2000-08-31 Dan Holmsand <dan@eyebee.com>
2841 * buffer.c: Make find-file-compare-truenames default to true on
2844 * realpath.c (win32_abs_start):
2846 (win32_readlink): New functions.
2847 (xrealpath): Return really real filenames on windows.
2849 * fileio.c (Ffile_truename): Make file-truename work on windows.
2851 2000-11-29 Didier Verna <didier@xemacs.org>
2853 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
2854 * faces.c (update_face_cachel_data): use it.
2855 * faces.c (add_face_cachel): use it. Complete background pixmap
2856 frobbing in face cache if `update_face_cachel_data' has not done so.
2858 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
2860 * search.c (string_match_1): Don't set last_thing_searched
2863 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
2865 * buffer.c: Include casetab.h
2866 (common_init_complex_vars_of_buffer): Use new case-table object.
2867 * buffer.h: Include casetab.h
2868 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
2869 (DOWNCASE_TABLE_OF): Ditto.
2870 * bufslots.h: Remove char-tables and add case-table.
2871 * casetab.c: Include casetab.h
2872 (CASE_TABLE_P): Removed.
2873 (mark_case_table): New function.
2874 (allocate_case_table): New function.
2875 (Fcase_table_p): Use new case-table.
2876 (case_table_char): New function.
2877 (Fget_case_table): Ditto.
2878 (Fput_case_table): Ditto.
2879 (Fput_case_table_pair): Ditto.
2880 (Fcopy_case_table): Ditto.
2881 (Fcurrent_case_table): Return case-table.
2882 (Fstandard_case_table): Return case-table.
2883 (Fset_case_table): Fix doc-string.
2884 (set_case_table): Use case-table
2885 (syms_of_casetab): DEFSUBR new functions.
2886 (complex_vars_of_casetab): Set up standard case-table.
2887 * casetab.h: New file.
2888 * editfns.c: Include casetab.h
2889 (Fcompare_buffer_substrings): Use case-table.
2890 * inline.c: Include casetab.h
2891 * lisp.h: Remove bogus extern.
2892 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
2893 * search.c: Include casetab.h
2894 (TRANSLATE_ASCII): Removed.
2895 (TRANSLATE): Unconditionally translate character.
2896 (looking_at_1): Use case-table.
2897 (string_match_1): Ditto.
2898 (fast_string_match): Ditto.
2899 (search_command): Ditto.
2900 (search_buffer): Separate boyer_moore. Check whether
2901 boyer_moore is poosible.
2902 (simple_search): New function.
2903 (boyer_moore): Separated from search_buffer. Translate char.
2905 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
2907 * regex.c (RE_TR_ASCII): Removed.
2908 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
2909 (PATFETCH): Call PATFETCH_RAW.
2910 (PATFETCH_RAW): Fetch Emchar.
2911 (PATUNFETCH): Decrement charptr.
2912 (GET_BUFFER_SPACE): Rename b to buf_end.
2914 (BUF_PUSH_2): Ditto.
2915 (BUF_PUSH_3): Ditto.
2916 (EXTEND_BUFFER): Ditto.
2917 (SET_LIST_BIT): Ditto.
2918 (regex_compile): Ditto. Translate non ASCII char.
2919 (compile_range): Ditto.
2920 (re_search_2): Ditto.
2921 (re_match_2_internal): Compare Emchar.
2922 (bcmp_translate): Ditto.
2924 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
2926 * lisp.h (basic char/int typedefs): comment improvement.
2928 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
2930 * emacs.c (main_1): unconditional pdump unstomping; don't save and
2931 unstomp inhibit_site_lisp. Improve comments.
2933 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
2935 * mule-charset.c (Fcharset_property): improve type checking, comments.
2937 2000-11-28 Andy Piper <andy@xemacs.org>
2939 * redisplay-output.c (redisplay_output_subwindow): make sure we do
2940 clipped display for windows in the gutter also.
2941 (redisplay_display_boxes_in_window_p): change semantics of return
2942 codes to be more intuitive.
2944 * gutter.h: declare display_boxes_in_gutter_p.
2946 * gutter.c (display_boxes_in_gutter_p): new function for
2949 2000-11-22 Andy Piper <andy@xemacs.org>
2951 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
2954 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
2956 * callproc.c (Fold_call_process_internal):
2957 * gpm.c (Freceive_gpm_event):
2958 (tty_get_foreign_selection): Might be just warning supression.
2959 * fileio.c (Fwrite_region_internal):
2960 (Fset_visited_file_modtime):
2961 * keymap.c (event_matches_key_specifier_p):
2962 Initialize GCPROed variable.
2964 * menubar-x.c (command_builder_find_menu_accelerator):
2965 Initialize before use.
2967 2000-11-23 Andy Piper <andy@xemacs.org>
2969 * unexcw.c (unexec): make the resulting executable executable.
2971 2000-11-21 Martin Buchholz <martin@xemacs.org>
2973 * doc.c (get_doc_string):
2974 Use size_t, not int, for result of XSTRING_LENGTH.
2976 * cmds.c (Fdelete_char):
2977 * cmds.c (Fpoint_at_eol):
2978 * cmds.c (Fself_insert_command):
2979 Use EMACS_INT, not int, for result of XINT.
2980 Someday, someone will want to insert more than 2**31 identical characters.
2982 * cmds.c (Fdelete_char):
2983 * cmds.c (Fdelete_backward_char):
2984 * syntax.c (Fforward_word):
2985 * syntax.c (Fforward_comment):
2986 Make COUNT argument optional, for consistency with forward-char et al.
2988 2000-11-22 Martin Buchholz <martin@xemacs.org>
2991 * print.c (long_to_string):
2992 Return a useful value: the pointer at end of data written.
2995 Use `static const char * const' for constant strings.
2996 (union printf_arg): Delete `i', `ui' members.
2999 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
3000 Do all printf-ing via the `l' specifier.
3001 Use EMACS_INT instead of int.
3004 2000-11-20 Didier Verna <didier@xemacs.org>
3006 * faces.c (update_face_cachel_data): don't frob the background
3007 pixmap when the window is being created. The face is needed but
3010 2000-11-20 Andy Piper <andy@xemacs.org>
3012 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
3013 messing with a debug environment.
3015 2000-11-20 Martin Buchholz <martin@xemacs.org>
3017 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
3019 2000-11-20 Martin Buchholz <martin@xemacs.org>
3021 * casetab.c (Fcase_table_p): Fix compile error and crash.
3023 2000-11-18 Philip Aston <philipa@mail.com>
3025 * s/cygwin32.h: Cygwin has SVR4-like pty support.
3027 2000-11-18 Martin Buchholz <martin@xemacs.org>
3029 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
3030 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
3032 2000-11-17 Martin Buchholz <martin@xemacs.org>
3034 * config.h.in: Define HAVE_ELF_H if elf.h exists.
3035 * unexelf.c: Use HAVE_ELF_H.
3036 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
3037 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
3038 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
3039 Greg Harrington <greg_harrington@hotmail.com> provided a machine
3041 So this is an unexelfsgi.c from a different line of development.
3043 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
3045 * regex.c (RE_TR_ASCII): New function.
3046 (RE_TRANSLATE): Call it.
3048 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
3050 * buffer.h (TRT_TABLE_OF): Remove assert.
3051 (IN_TRT_TABLE_DOMAIN): Removed.
3053 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
3055 * free-hook.c (log_gcpro):
3056 (show_gcprohist): Add support for GCPRO5.
3058 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
3060 * emacs.c (main_1): Improve -sd error message when --pdump=no.
3062 2000-11-16 Olivier Galibert <galibert@xemacs.org>
3064 * symeval.h: Declare flush_all_buffer_local_cache.
3066 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
3067 (flush_buffer_local_cache): Added.
3068 (flush_all_buffer_local_cache): Added.
3070 * lrecord.h: Remove unused XD_LO_RESET_NIL.
3072 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
3073 (pdump_dump_data): Ditto.
3074 (pdump_reloc_one): Ditto.
3075 (pdump): Remove unused pdump_qnil. Flush buffer local caches
3079 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
3081 * buffer.c: Remove if 0'ed entry.
3082 * buffer.h: Rewrite TRT to use char-table.
3083 * bufslots.h: Remove mirror tables.
3084 * casetab.c: Remove mirror tables.
3085 (CASE_TABLE_P): New macro.
3086 (Fcase_table_p): Element of a case table is string or char-table.
3087 (make_mirror_trt_table): Removed.
3088 (set_case_table): Setup char-table from strings for backward
3090 * dired.c (Fdirectory_files):
3091 * dired-msw.c: (mswindows_get_files):
3092 * lisp.h: Change prototype of re_pattern_buffer.
3093 * regex.c: (RE_TRANSLATE): New macro.
3094 (TRANSLATE_P): Ditto.
3095 Change translate to type RE_TRANSLATE_TYPE.
3096 * regex.h: Define RE_TRANSLATE_TYPE
3097 * search.c (TRANSLATE): New macro.
3098 (TRANSLATE_ASCII): New macro.
3099 Translate table is changed to Lisp_Object.
3100 (signal_failure): Inhibit return.
3102 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
3109 Do UNGCPRO before return.
3111 2000-11-14 Martin Buchholz <martin@xemacs.org>
3113 * XEmacs 21.2.37 is released.
3115 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
3117 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
3118 Add comments about discarded return value.
3120 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
3123 * event-stream.c: Fix comments. Remove some #if 0'ed part.
3125 2000-10-27 Andy Piper <andy@xemacs.org>
3127 * gutter.c (Fset_default_gutter_position): default left and right
3129 (calculate_gutter_size): calculate resonable heuristic for left
3130 and right gutter sizes.
3131 (specifier_vars_of_gutter): change left and right gutter sizes to
3133 (calculate_gutter_size_from_display_lines): new function.
3134 (output_gutter): check for resizing on left and right gutters.
3135 (clear_gutter): don't special case top and left gutters.
3136 (specifier_vars_of_gutter): use new signature for
3137 set_specifier_caching.
3139 * glyphs-x.c (x_redisplay_widget): spelling fix.
3140 * glyphs.c (specifier_vars_of_glyphs):
3141 * menubar.c (specifier_vars_of_menubar):
3142 * redisplay.c (specifier_vars_of_redisplay):
3143 * toolbar.c (specifier_vars_of_toolbar):
3144 * window.c (specifier_vars_of_window):
3145 * scrollbar.c (specifier_vars_of_scrollbar):
3146 (complex_vars_of_scrollbar): use new signature for
3147 set_specifier_caching.
3149 * specifier.c (set_specifier_caching): include recompute flag.
3150 (recompute_one_cached_specifier_in_window): always recompute if
3152 (recompute_one_cached_specifier_in_frame): ditto.
3154 * specifier.h (struct specifier_caching): add recompute flag.
3156 2000-10-24 Andy Piper <andy@xemacs.org>
3158 * unexcw.c (copy_executable_and_dump_data_section): add new
3159 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
3162 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
3164 * console-x.h (x_device): New member modifier_release_time.
3165 * event-Xt.c (x_handle_sticky_modifiers):
3166 Bound interval modifier keys are sticky.
3167 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
3168 * events.h: extern it.
3170 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
3172 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
3174 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
3176 * event-stream.c (execute_command_event): Preserve current_events
3177 and the like when event is misc-user-event.
3178 Inhibit quit during the call to maybe_echo_keys.
3180 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
3182 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
3183 symlink when buffer is killed.
3184 (inhibit_clash_detection): New variable.
3186 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
3188 * console.c (Fset_input_method): Trigger redisplay on tty.
3190 2000-11-07 Martin Buchholz <martin@xemacs.org>
3192 * process.c (Fprocess_status): Revert to previous behavior:
3193 (process-status "nosuchprocess") ==> nil
3195 2000-11-06 Martin Buchholz <martin@xemacs.org>
3197 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
3198 Work around another GCC 2.95.2 optimizer bug.
3200 2000-11-02 Martin Buchholz <martin@xemacs.org>
3202 * process.c (Fget_process): Use LIST_LOOP_2.
3203 (kill_buffer_processes): Use LIST_LOOP_2.
3205 * minibuf.c (Fall_completions):
3206 Delete old non-functional code for FSF fourth argument.
3208 * frame.c (frame_matches_frame_spec):
3209 Renamed from `frame_matches_frametype'. Update all callers.
3210 (device_matches_device_spec):
3211 Renamed from 'device_matches_console_spec'. Update all callers.
3213 * doc.c (Fsubstitute_command_keys):
3214 Remove buffer overflow crash. Small code cleanups.
3216 * casetab.c (check_case_table): Simpler code.
3218 * window.c (Freplace_buffer_in_windows):
3219 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
3220 (and similar implementation) as Fdelete_windows_on.
3223 * alloc.c (Fmake_list):
3224 * alloc.c (make_vector):
3225 * alloc.c (Fmake_vector):
3226 * alloc.c (make_bit_vector):
3227 * alloc.c (Fmake_bit_vector):
3228 * alloc.c (Fbit_vector):
3229 * alloc.c (Fmake_string):
3230 * alloc.c (Fpurecopy):
3231 * alloc.c (Fmemory_limit):
3233 * buffer.c (Fget_buffer):
3234 * buffer.c (Fkill_buffer):
3235 * buffer.c (complex_vars_of_buffer):
3236 * bytecode.c (Fcompiled_function_stack_depth):
3237 * callint.c (Fprefix_numeric_value):
3239 * event-stream.c (Fread_key_sequence):
3241 * casetab.c (Fcase_table_p):
3242 * casetab.c (check_case_table):
3243 * casetab.c (Fset_case_table):
3244 * casetab.c (Fset_standard_case_table):
3246 * chartab.c (Fchar_table_type):
3247 * chartab.c (Freset_char_table):
3248 * chartab.c (Fget_char_table):
3249 * chartab.c (Fget_range_char_table):
3250 * chartab.c (Fput_char_table):
3251 * chartab.c (Fmap_char_table):
3252 * chartab.c (Fcategory_table_p):
3253 * chartab.c (Fcheck_category_at):
3254 * chartab.c (Fchar_in_category_p):
3255 * chartab.c (Fcategory_table):
3256 * chartab.c (Fcopy_category_table):
3257 * chartab.c (Fset_category_table):
3258 * chartab.c (Fcategory_designator_p):
3259 * chartab.c (Fcategory_table_value_p):
3260 * cmds.c (Fdelete_char):
3261 * cmds.c (Fdelete_backward_char):
3262 * cmds.c (Fself_insert_command):
3263 * cmds.c (Fself_insert_internal):
3264 * console.c (Fvalid_console_type_p):
3265 * console.c (Fcdfw_console):
3266 * console.c (Fconsole_type):
3267 * console.c (Fconsole_name):
3268 * console.c (Fconsole_device_list):
3269 * console.c (Fconsole_on_window_system_p):
3273 * data.c (Fsubr_interactive):
3274 * data.c (Fchar_to_int):
3275 * data.c (Fint_to_char):
3278 * data.c (Fnumber_to_string):
3279 * data.c (Fstring_to_number):
3281 * database.c (mark_database):
3282 * database.c (finalize_database):
3283 * database.c (Fdatabase_live_p):
3284 * database.c (Fdatabasep):
3285 * device-x.c (Fx_get_resource):
3286 * device.c (Fdfw_device):
3288 * dired.c (Ffile_name_completion):
3289 * dired.c (Ffile_name_all_completions):
3290 * dired.c (Fuser_name_completion):
3291 * dired.c (Fuser_name_completion_1):
3292 * dired.c (Fuser_name_all_completions):
3293 * doc.c (Fdocumentation):
3294 * doc.c (Fdocumentation_property):
3295 * doc.c (Fsubstitute_command_keys):
3297 * editfns.c (Fchar_to_string):
3298 * editfns.c (Fstring_to_char):
3299 * editfns.c (Ftemp_directory):
3300 * editfns.c (Finsert_char):
3301 * editfns.c (Fbuffer_substring_no_properties):
3302 * editfns.c (Fnarrow_to_region):
3303 * editfns.c (Fchar_equal):
3304 * editfns.c (Fchar_Equal):
3305 * editfns.c (Ftranspose_regions):
3306 * emacs.c (Fdump_emacs):
3308 * eval.c (Fcommand_execute):
3309 * eval.c (Fautoload):
3310 * eval.c (Fbacktrace):
3311 * eval.c (Fbacktrace_frame):
3313 * events.c (Fcopy_event):
3314 * events.c (Fcharacter_to_event):
3315 * events.c (Fevent_button):
3316 * events.c (Fevent_process):
3318 * extents.c (Fnext_extent_change):
3319 * extents.c (Fextent_property):
3321 * faces.c (Fmake_face):
3323 * file-coding.c (Fencode_shift_jis_char):
3324 * file-coding.c (Fencode_big5_char):
3325 * fileio.c (Ffile_name_directory):
3326 * fileio.c (Ffile_name_nondirectory):
3327 * fileio.c (Ffile_name_as_directory):
3328 * fileio.c (Fdirectory_file_name):
3329 * fileio.c (Ffile_truename):
3330 * fileio.c (Fsubstitute_in_file_name):
3331 * fileio.c (Ffile_modes):
3332 * fileio.c (Fset_file_modes):
3333 * fileio.c (Fset_default_file_modes):
3334 * fileio.c (Fverify_visited_file_modtime):
3335 * floatfns.c (Facos):
3336 * floatfns.c (Fasin):
3337 * floatfns.c (Fatan):
3338 * floatfns.c (Fcos):
3339 * floatfns.c (Fsin):
3340 * floatfns.c (Ftan):
3341 * floatfns.c (Fbessel_j0):
3342 * floatfns.c (Fbessel_j1):
3343 * floatfns.c (Fbessel_jn):
3344 * floatfns.c (Fbessel_y0):
3345 * floatfns.c (Fbessel_y1):
3346 * floatfns.c (Fbessel_yn):
3347 * floatfns.c (Ferf):
3348 * floatfns.c (Ferfc):
3349 * floatfns.c (Flog_gamma):
3350 * floatfns.c (Fexp):
3351 * floatfns.c (Fexpt):
3352 * floatfns.c (Flog):
3353 * floatfns.c (Flog10):
3354 * floatfns.c (Fsqrt):
3355 * floatfns.c (Fcube_root):
3356 * floatfns.c (Facosh):
3357 * floatfns.c (Fasinh):
3358 * floatfns.c (Fatanh):
3359 * floatfns.c (Fcosh):
3360 * floatfns.c (Fsinh):
3361 * floatfns.c (Ftanh):
3362 * floatfns.c (Fabs):
3363 * floatfns.c (Ffloat):
3364 * floatfns.c (Flogb):
3365 * floatfns.c (Fceiling):
3366 * floatfns.c (Ffloor):
3367 * floatfns.c (Fround):
3368 * floatfns.c (Ftruncate):
3369 * floatfns.c (Ffceiling):
3370 * floatfns.c (Fffloor):
3371 * floatfns.c (Ffround):
3372 * floatfns.c (Fftruncate):
3373 * fns.c (Fstring_equal):
3374 * fns.c (Fstring_lessp):
3379 * fns.c (Fsubstring):
3381 * fns.c (Fold_assoc):
3382 * fns.c (assoc_no_quit):
3384 * fns.c (Fold_assq):
3385 * fns.c (assq_no_quit):
3387 * fns.c (Fold_rassoc):
3389 * fns.c (Fold_rassq):
3390 * fns.c (rassq_no_quit):
3391 * fns.c (Fremassoc):
3392 * fns.c (remassoc_no_quit):
3394 * fns.c (remassq_no_quit):
3395 * fns.c (Fremrassoc):
3396 * fns.c (Fremrassq):
3397 * fns.c (remrassq_no_quit):
3399 * fns.c (Fplist_get):
3400 * fns.c (Fplist_put):
3401 * fns.c (Fplist_remprop):
3402 * fns.c (Fplist_member):
3403 * fns.c (Flax_plist_get):
3404 * fns.c (Flax_plist_put):
3405 * fns.c (Flax_plist_remprop):
3406 * fns.c (Flax_plist_member):
3408 * fns.c (Fold_equal):
3410 * fns.c (Fbase64_encode_region):
3411 * fns.c (Fbase64_encode_string):
3412 * fns.c (Fbase64_decode_region):
3414 * frame.c (frame_matches_frame_spec):
3415 * frame.c (device_matches_device_spec):
3416 * frame.c (next_frame):
3417 * frame.c (previous_frame):
3418 * frame.c (Fnext_frame):
3419 * frame.c (Fprevious_frame):
3420 * frame.c (Fframe_property):
3421 * frame.c (Fset_frame_height):
3422 * frame.c (Fset_frame_size):
3426 * glyphs.c (decode_error_behavior_flag):
3427 * glyphs.c (Fmake_image_instance):
3428 * indent.c (Findent_to):
3429 * intl.c (Fignore_defer_gettext):
3430 * keymap.c (Fkeymapp):
3431 * keymap.c (Flookup_key):
3433 * lread.c (Fload_internal):
3434 * lread.c (Feval_buffer):
3435 * lread.c (Feval_region):
3436 * macros.c (Fexecute_kbd_macro):
3437 * marker.c (set_marker_internal):
3438 * marker.c (Fset_marker):
3439 * marker.c (set_marker_restricted):
3440 * marker.c (Fcopy_marker):
3441 * marker.c (noseeum_copy_marker):
3443 * menubar.c (Fpopup_menu):
3445 * mule-charset.c (Fcharset_name):
3446 * mule-charset.c (Fchar_charset):
3447 * mule-charset.c (Fchar_octet):
3448 * mule-charset.c (Fsplit_char):
3449 * mule-wnnfns.c (Fwnn_open):
3450 * mule-wnnfns.c (Fwnn_dict_comment):
3451 * mule-wnnfns.c (Fwnn_quit_henkan):
3452 * mule-wnnfns.c (Fwnn_word_toroku):
3453 * mule-wnnfns.c (Fwnn_word_sakujo):
3454 * mule-wnnfns.c (Fwnn_word_use):
3455 * mule-wnnfns.c (Fwnn_hindo_set):
3457 * objects.c (Fmake_color_instance):
3458 * objects.c (Fmake_font_instance):
3459 * print.c (Fwrite_char):
3461 * process.c (mark_process):
3462 * process.c (print_process):
3463 * process.c (get_process_from_usid):
3464 * process.c (Fprocessp):
3465 * process.c (Fprocess_live_p):
3466 * process.c (Fget_process):
3467 * process.c (Fget_buffer_process):
3468 * process.c (get_process):
3469 * process.c (Fprocess_id):
3470 * process.c (Fprocess_name):
3471 * process.c (Fprocess_command):
3472 * process.c (init_process_io_handles):
3473 * process.c (start_process_unwind):
3474 * process.c (Fstart_process_internal):
3475 * process.c (Fopen_multicast_group_internal):
3476 * process.c (Fset_process_window_size):
3477 * process.c (read_process_output):
3478 * process.c (send_process):
3479 * process.c (Fprocess_tty_name):
3480 * process.c (Fset_process_buffer):
3481 * process.c (Fprocess_buffer):
3482 * process.c (Fprocess_mark):
3483 * process.c (set_process_filter):
3484 * process.c (Fset_process_filter):
3485 * process.c (Fprocess_filter):
3486 * process.c (Fprocess_send_region):
3487 * process.c (Fprocess_send_string):
3488 * process.c (exec_sentinel):
3489 * process.c (Fset_process_sentinel):
3490 * process.c (Fprocess_sentinel):
3491 * process.c (status_notify):
3492 * process.c (Fprocess_status):
3493 * process.c (Fprocess_exit_status):
3494 * process.c (process_send_signal):
3495 * process.c (Fprocess_send_eof):
3496 * process.c (deactivate_process):
3497 * process.c (remove_process):
3498 * process.c (Fdelete_process):
3499 * process.c (kill_buffer_processes):
3500 * process.c (Fprocess_kill_without_query):
3501 * process.c (Fprocess_kill_without_query_p):
3503 * rangetab.c (Fget_range_table):
3504 * rangetab.c (Fput_range_table):
3505 * rangetab.c (Fremove_range_table):
3506 * rangetab.c (Fclear_range_table):
3508 * search.c (Fskip_chars_forward):
3509 * search.c (Fskip_chars_backward):
3510 * search.c (Fskip_syntax_forward):
3511 * search.c (Fskip_syntax_backward):
3512 * search.c (search_command):
3513 * search.c (Freplace_match):
3514 * search.c (Fregexp_quote):
3515 * select.c (Fown_selection_internal):
3516 * select.c (Fselection_owner_p):
3517 * select.c (Fselection_exists_p):
3518 * select.c (Fget_selection_internal):
3521 * symbols.c (Fintern):
3522 * symbols.c (Fintern_soft):
3523 * symbols.c (Funintern):
3524 * symbols.c (Fapropos_internal):
3525 * symbols.c (Fset_default):
3527 * syntax.c (Fsyntax_table_p):
3528 * syntax.c (Fcopy_syntax_table):
3529 * syntax.c (Fset_syntax_table):
3530 * syntax.c (Fchar_syntax):
3531 * syntax.c (syntax_match):
3532 * syntax.c (Fmatching_paren):
3533 * syntax.c (Fforward_word):
3534 * syntax.c (scan_lists):
3535 * syntax.c (Fscan_lists):
3536 * syntax.c (Fscan_sexps):
3537 * syntax.c (Fparse_partial_sexp):
3538 * toolbar.c (Fcheck_toolbar_button_syntax):
3541 * window.c (Fwindowp):
3542 * window.c (Fwindow_live_p):
3543 * window.c (Fwindow_point):
3544 * window.c (Fdelete_window):
3545 * window.c (Fnext_window):
3546 * window.c (Fprevious_window):
3547 * window.c (Fother_window):
3548 * window.c (window_loop):
3549 * window.c (Fget_lru_window):
3550 * window.c (Fsplit_window):
3551 * window.c (Fenlarge_window):
3552 * window.c (Fenlarge_window_pixels):
3553 * window.c (Fshrink_window):
3554 * window.c (Fshrink_window_pixels):
3555 * window.c (change_window_height):
3556 * window.c (Fwindow_configuration_p):
3557 * window.c (Fcurrent_window_configuration):
3559 * casefiddle.c (casify_object):
3560 * casefiddle.c (Fupcase):
3561 * casefiddle.c (Fdowncase):
3562 * casefiddle.c (Fcapitalize):
3563 * casefiddle.c (Fupcase_initials):
3564 * casefiddle.c (casify_region_internal):
3565 * casefiddle.c (casify_region):
3566 * casefiddle.c (Fupcase_region):
3567 * casefiddle.c (Fdowncase_region):
3568 * casefiddle.c (Fcapitalize_region):
3569 * casefiddle.c (Fupcase_initials_region):
3570 * casefiddle.c (Fupcase_word):
3571 * casefiddle.c (Fdowncase_word):
3572 * casefiddle.c (Fcapitalize_word):
3573 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
3574 Replace 0 with '\0' when working with bytes.
3575 Replace initial "(" with "\(" in docstrings.
3577 2000-11-01 Martin Buchholz <martin@xemacs.org>
3579 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
3581 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
3583 2000-10-31 Martin Buchholz <martin@xemacs.org>
3585 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
3587 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
3589 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
3592 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
3594 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
3595 (inhibit_auto_save_session): New variable.
3596 (vars_of_fileio): Declare and initialize them.
3597 * fileio.c (Fdo_auto_save): Don't create session file if
3598 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
3600 2000-10-31 Martin Buchholz <martin@xemacs.org>
3602 * sgiplay.c (play_internal): C++ compilability.
3603 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
3604 * callproc.c (Fold_call_process_internal):
3605 Remove unused vars `env', `first'.
3606 * scrollbar.c (update_scrollbar_instance):
3607 #### unused var `current_window'.
3608 * redisplay-tty.c: Put currently unused vars insert_mode_on,
3609 etc. within #ifdef NOT_YET.
3610 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
3611 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
3612 * specifier.c (specifier_instance):
3613 #### unused var `tag'.
3614 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
3616 2000-10-27 Martin Buchholz <martin@xemacs.org>
3619 * fns.c (list_sort):
3620 * fns.c (Ffillarray):
3621 * fns.c (bytecode_nconc2):
3624 * fns.c (Fmapconcat):
3625 Be pedantically 64-bit correct. For the time when someone will
3626 want to have a list with length > 2**32.
3628 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
3629 Work around MIPSpro compiler bug.
3631 * process-unix.c (unix_kill_child_process): Add snarky comment.
3632 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
3634 * config.h.in: Oops, _getpt ==> _getpty
3636 2000-10-26 Martin Buchholz <martin@xemacs.org>
3640 Use void*, not char*, as return type of alloca().
3642 * alloc.c (free_marker): Side effect inside assert expression!
3644 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
3646 * mule-charset.c (Fset_charset_ccl_program): To check
3647 if the given ccl program is valid, use setup_ccl_program()
3648 instead of CHECK_VECTOR().
3649 (Fmake_charset): Likewise.
3651 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
3653 * faces.c (get_extent_fragment_face_cache_index):
3654 Fix cachel.merged_faces memory leak.
3656 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
3658 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
3659 Reset MSB of octets obtained by DECODE_SJIS
3660 because of the incompatibility with Emacs.
3661 (ccl_driver)<CCL_ENCODE_SJIS>:
3662 Set MSB of octets before passing them to
3663 ENCODE_SJIS because of the incompatibility
3666 2000-10-18 Daiki Ueno <ueno@unixuser.org>
3668 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
3669 (DECLARE_LRECORD): Undo the last change.
3670 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
3672 2000-10-17 Daiki Ueno <ueno@unixuser.org>
3674 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
3675 the implementation to lrecord_implementations_table.
3677 2000-10-14 Daiki Ueno <ueno@unixuser.org>
3679 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
3680 initial value of `lrecord_type_##c_name' and
3681 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
3682 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
3683 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
3684 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
3685 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
3687 2000-10-17 Martin Buchholz <martin@xemacs.org>
3689 * miscplay.c (sndcnv8S_2mono):
3690 (sndcnv2monounsigned):
3691 (sndcnvULaw_2linear):
3693 Remove implementation-defined behavior.
3695 2000-10-12 Martin Buchholz <martin@xemacs.org>
3697 * input-method-xlib.c: Warning suppression.
3699 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
3701 * mule-ccl.c: Sync up with Emacs 21.0.90.
3702 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
3704 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
3706 (ccl_driver[WriteMultibyteChar2]): Bug fix.
3707 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
3708 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
3709 leading char belongs to official 2-dimensional charset.
3710 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
3711 write the given character as is. Otherwise,
3712 if it is a multibyte char, convert it by
3713 non_ascii_set_charptr_emchar, then write it.
3714 (CCL_WRITE_STRING): Likewise.
3715 (ccl_get_compiled_code): New function.
3716 (setup_ccl_program): When ccl_prog is invalid,
3718 (Fregister_code_conversion_map): New function.
3719 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
3721 * mule-ccl.h: Sync up with Emacs 21.0.90.
3722 (Fregister_ccl_program): export it.
3724 * redisplay-msw.c (separate_textual_runs):
3725 If ccl program is not valid, don't do ccl conversion.
3727 * redisplay-x.c (separate_textual_runs): Ditto.
3729 * file-coding.c (Fmake_coding_system):
3730 When type is ccl and value is vector, register it
3731 with a proper symbol. And checks whether the
3732 given ccl program is valid.
3733 (mule_decode): When calling ccl_driver, if src indicates
3734 NULL pointer, set an empty string instead.
3735 (mule_encode): Likewise.
3737 2000-10-11 Martin Buchholz <martin@xemacs.org>
3739 The following large batch of changes gets us back to a state of
3740 C++ compilability. Extbyte is now a char, which means that
3741 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
3743 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
3745 * sound.c (Fplay_sound): Type correctness.
3747 * select-x.c (hack_motif_clipboard_selection): Type correctness.
3748 (x_get_window_property): Type correctness.
3749 (receive_incremental_selection): unsigned char ==> Extbyte
3750 (selection_data_to_lisp_data): unsigned char ==> Extbyte
3751 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
3752 (Fx_store_cutbuffer_internal): Type correctness.
3754 * process-unix.c (try_to_initialize_subtty): Type correctness.
3756 * objects-x.c (x_print_color_instance): Type correctness.
3757 (x_print_font_instance): Type correctness.
3758 (x_list_fonts): SExtbyte ==> Extbyte.
3759 (valid_x_font_name_p): SExtbyte ==> Extbyte.
3760 (x_find_charset_font): SExtbyte ==> Extbyte.
3761 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
3762 (truename_via_XListFonts): SExtbyte ==> Extbyte.
3763 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
3766 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
3767 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
3768 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
3769 (BYTE_C0_P): Use bit ops for char-signedness safety.
3770 (BYTE_C1_P): Use bit ops for char-signedness safety.
3771 (CHARSET_BY_LEADING_BYTE):
3772 (CHARSET_BY_ATTRIBUTES):
3773 Always use inline function.
3774 Use type_checking_assert.
3777 * mule-charset.c (non_ascii_charptr_copy_char):
3778 Modify to work with both ASCII and non-ASCII characters.
3779 Improve docs and variable names.
3780 Replace over-clever fall-through switch with a simple loop.
3781 (Lstream_get_emchar_1):
3782 Replace over-clever fall-through switch with a simple loop.
3784 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
3785 Warning suppression.
3787 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
3788 the return value of Lstream_getc, which could be EOF as well.
3790 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
3792 * lisp.h: Make Extbyte a char, not unsigned char, so that external
3793 APIs can be used on Extbytes without casts. Risky!
3797 * input-method-xlib.c (XIM_init_device):
3798 Use Xlib.h instead of IntrinsicP.h.
3799 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
3800 which will break in X11R7.
3801 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
3802 to call XRegisterIMInstantiateCallback with correct types.
3804 * gui-x.c (button_item_to_widget_value): Type correctness.
3806 * glyphs.c (bitmap_to_lisp_data): Type correctness.
3808 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
3809 (xbm_instantiate_1): Type correctness.
3810 (BUILD_GLYPH_INST): Type correctness.
3812 * fileio.c (Fsubstitute_in_file_name): Type correctness.
3815 (decode_coding_sjis):
3816 (decode_coding_big5):
3817 (decode_coding_ucs4):
3818 (decode_coding_utf8):
3819 (decode_coding_iso2022):
3820 (decode_coding_no_conversion):
3821 Make all decoding functions take an Extbyte * arg.
3822 (encode_coding_sjis):
3823 (encode_coding_big5):
3824 (encode_coding_ucs4):
3825 (encode_coding_utf8):
3826 (encode_coding_iso2022):
3827 (encode_coding_no_conversion):
3828 Make all encoding functions take a Bufbyte * arg.
3829 Use size_t instead of unsigned int for memory sizes.
3830 Only cast to unsigned char whenever dereferencing Extbyte *.
3832 * doc.c (unparesseuxify_doc_string): Type correctness.
3834 * console-x.c (split_up_display_spec):
3835 Rewrite without using details of internal string representation.
3836 (x_semi_canonicalize_device_connection): Type correctness.
3839 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
3840 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
3841 (HAVE_XFREE386): Removed.
3843 * buffer.h (DEC_CHARPTR): `const' correctness.
3844 (bufbyte_strcmp): New.
3845 (bufbyte_memcmp): New.
3847 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
3849 * buffer.h (XCHAR_OR_CHAR_INT):
3850 Always use inline function.
3851 Remove redundant type checking assert() - XINT will abort quite nicely.
3853 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
3855 * search.c (Freplace_match): Set newtext to an empty string.
3857 2000-10-10 Martin Buchholz <martin@xemacs.org>
3859 * s/decosf1-3.h: Remove #include of stropts.h
3860 * s/ptx.h: Remove #include of stropts.h
3861 * s/usg5-4.h: Remove #include of stropts.h
3864 Use stropts.h, not sys/stropts.h.
3865 Use strtio.h, not sys/strtio.h.
3867 2000-10-04 Martin Buchholz <martin@xemacs.org>
3869 * XEmacs 21.2.36 is released.
3871 2000-09-21 Andy Piper <andy@xemacs.org>
3873 * glyphs-x.c (x_redisplay_widget): make sure non-structural
3874 changes still involve copying the widget tree.
3875 (update_widget_face): make sure a change is register in the widget
3876 tree. Call update_tab_widget_face appropriately.
3877 (update_tab_widget_face): ditto.
3878 (x_tab_control_redisplay): make sure non-structural changes still
3879 involve copying the widget tree.
3881 2000-08-31 Daiki Ueno <ueno@unixuser.org>
3883 * lread.c (locate_file): Check the path element is non-nil.
3885 2000-10-02 Martin Buchholz <martin@xemacs.org>
3887 * lisp.h: Warning suppression for SCO compilers.
3889 * redisplay-tty.c (reset_tty_modes): Fix crash.
3890 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
3892 2000-09-27 Martin Buchholz <martin@xemacs.org>
3894 Big signal/process handling overhaul. Bugs fixed:
3895 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
3896 M-x comint-kill-subjob should work for both values nil and t of
3897 process-connection-type. It was broken on most platforms.
3898 Testing on Irix and Cygwin still needed. Other plaforms tested.
3899 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
3900 * process-unix.c: Signal/Process handling overhaul.
3901 (pty_name): make 64 bytes, as `expect' does, for paranoia.
3902 (allocate_pty): Use all available modern methods of allocating
3903 ptys, falling back to old style BSD allocation as a last resort.
3904 Use allegedly more secure Unix98 pty allocation by default.
3905 (allocate_pty_the_old_fashioned_way): New. the last resort.
3906 (unix_create_process): Push ptem, ldterm, ttcompat where
3907 available. Autoconfiscate.
3908 (try_to_initialize_subtty): New.
3909 (unix_kill_child_process): Proper signal handling for ptys on most
3910 platforms, using special knowledge of AIX, BSD, etc...
3911 (unix_create_process): Always disconnect_controlling_terminal() for
3912 subprocesses, whether using ptys or not.
3913 * process.h: Remove old getpt-dependent PTY code.
3914 * process.c (Fprocess_send_signal): New, obvious generic function.
3915 (decode_signal): New.
3916 (Finterrupt_process):
3920 (Fcontinue_process):
3921 (Fsignal_process): Use decode_signal.
3922 (process_send_signal):
3923 Many docstring corrections.
3924 Allow any signal to be sent to a process object.
3925 * config.h.in: Add symbols for big signal/process overhaul.
3926 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
3927 * sysproc.h: Include process-related headers, where available:
3928 sys/stropts.h sys/strtio.h pty.h libutil.h
3936 Remove old S&M pty stuff.
3937 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
3938 * systty.h: Simplify cpp hackery, improve comments.
3939 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
3941 * editfns.c (Fformat_time_string):
3942 Be a little more paranoid with the return value of ctime.
3944 * fileio.c (check_executable):
3946 Use symbolic constants X_OK, W_OK.
3948 * console-x.c (split_up_display_spec): Fix a warning.
3950 2000-10-02 Martin Buchholz <martin@xemacs.org>
3952 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
3953 * ntproc.c (sys_spawnve): make_string ==> build_string
3954 Small clarity improvements.
3956 2000-09-30 Martin Buchholz <martin@xemacs.org>
3958 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
3960 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
3962 * config.h.in (HAVE_STRCASECMP): Remove.
3964 2000-09-29 Martin Buchholz <martin@xemacs.org>
3966 * redisplay-output.c (redisplay_output_pixmap):
3967 Cleaner and possibly more 64-bit correct code.
3969 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
3971 * dumper.c (pdump_load_finish): move restoration of
3972 `noninteractive1' to emacs.c (main_1).
3973 * emacs.c (main_1): protect LISP-visible command-line flags
3976 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
3978 * Makefile.in.in (versionclean): Use EXE_TARGET and
3979 DUMP_TARGET instead of literal program names.
3981 2000-09-20 Martin Buchholz <martin@xemacs.org>
3983 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
3985 2000-09-19 Martin Buchholz <martin@xemacs.org>
3987 * *: Spelling mega-patch
3989 2000-09-19 Martin Buchholz <martin@xemacs.org>
3991 * fns.c (bad_bad_turtle):
3992 Delete "Eek!" comment, since we fixed the bug to which it refers.
3994 2000-09-16 Martin Buchholz <martin@xemacs.org>
3996 * alloca.c: Replace REGISTER with register.
3998 2000-09-16 Daiki Ueno <ueno@unixuser.org>
4000 * file-coding.c (ucs_to_char): Use countof.
4002 2000-09-16 Martin Buchholz <martin@xemacs.org>
4004 * file-coding.c: (ucs_to_char):
4005 (complex_vars_of_file_coding):
4006 Use countof instead of sizeof.
4007 Use CHECK_NATNUM instead of CHECK_INT.
4009 * sysdep.c (strcasecmp): Remove.
4010 * device-x.c (ascii_strcasecmp): New.
4011 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
4012 Avoid using non-standard non-portable strcasecmp.
4014 2000-09-16 Martin Buchholz <martin@xemacs.org>
4016 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
4017 * font-lock.c: remove reference to emacsfns.h.
4018 * search.c: small doc improvement.
4019 * event-Xt.c: correct file names in comments.
4020 * console-x.h Correct file names in comments.
4021 * frame.c: Correct file names in comments.
4022 * event-stream.c: remove Energize from comments.
4024 2000-09-15 Martin Buchholz <martin@xemacs.org>
4026 * symeval.h (DEFERROR_STANDARD):
4029 (DEFSYMBOL_NO_DUMP):
4030 (DEFSYMBOL_MULTIWORD_PREDICATE):
4031 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
4033 The construct &##name is not sensible C.
4034 Fixes compilation errors with Unixware native compiler.
4036 2000-09-14 Martin Buchholz <martin@xemacs.org>
4038 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
4039 (next_frame_internal): Removed. We now just have next_frame.
4041 Write a simpler and cleaner one-pass algorithm.
4042 Remove called_from_delete_device arg and #ifdefed-out code.
4044 Renamed from prev_frame. Update callers.
4045 Cleaned up to have an analogous implementation to next_frame.
4046 (other_visible_frames_internal): Remove the
4047 called_from_delete_device bogus arg, and hence, remove this
4048 function. Just use other_visible_frames().
4050 * window.c (Fnext_window):
4052 Since next_frame() is guaranteed to return a frame, remove check
4053 for nil inserted in previous patch.
4056 Make code look more like Fnext_window.
4058 Respect the `console' arg when iterating through windows.
4059 Fixes bug: (get-buffer-window buffer t device) not respecting
4061 This function needs more work, as others have pointed out.
4063 * frame.h: Rename prev_frame to previous_frame.
4064 device_matches_console_spec no longer takes a `frame' arg.
4069 Use EMACS_BLOCK_SIGNAL instead of sigblock.
4070 From "Golubev I. N." <gin@mo.msk.ru>.
4072 * make-src-depend: Fix typo.
4074 2000-09-13 Martin Buchholz <martin@xemacs.org>
4076 * window.c (Fnext_window):
4077 next_frame() might return nil, not a frame.
4079 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4081 * frame.c (next_frame_internal):
4082 We've passed a frame if we've passed its device.
4084 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4085 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
4087 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
4089 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
4090 Allow option to suppress accelerators in menu/dialog items.
4091 (populate_or_checksum_helper): Pass dialog title through above.
4093 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
4095 * event-msw.c (mswindows_key_to_emacs_keysym):
4096 Add "pause" key, fix "menu" key.
4098 2000-09-09 Martin Buchholz <martin@xemacs.org>
4100 * eval.c (reinit_vars_of_eval):
4101 Increase max_lisp_eval_depth to 1000,
4102 required for thai-xtis.el to byte-compile under some circumstances.
4104 2000-09-04 Martin Buchholz <martin@xemacs.org>
4106 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
4109 2000-09-01 Martin Buchholz <martin@xemacs.org>
4111 * make-src-depend: Make the generated Makefiles smaller.
4113 * s/hpux.h (SETUP_SLAVE_PTY):
4114 Provide a %d in the format string for the errno argument.
4116 * editfns.c (Ftemp_directory):
4118 Avoid buffer overrun on very long file name.
4120 * input-method-xlib.c (XIM_init_device):
4121 6th parameter of XRegisterIMInstantiateCallback has different
4122 pointer types on different OSes, so simply cast to (void *).
4124 * unexhp9k800.c: Warning fixes. Fiddly changes.
4126 * sysdll.c (dll_open):
4127 shl_load will hang hard if passed a NULL filename.
4128 Simply return NULL for compatibility with dlopen.
4129 * sysdll.c: Conform to XEmacs coding standards.
4131 * sysdep.c (get_pty_max_bytes):
4132 Support pty input lines longer than 512 bytes on HP-UX 10.20.
4134 2000-08-31 Martin Buchholz <martin@xemacs.org>
4136 * tooltalk.c: Add #include <syssignal.h>
4138 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
4140 * s/hpux.h: Don't use undefined function sigunblock().
4142 2000-08-31 Martin Buchholz <martin@xemacs.org>
4144 * config.h.in: Add HAVE_BALLOON_HELP.
4145 * emacs.c: Use HAVE_BALLOON_HELP.
4146 * Makefile.in.in (x_objs):
4147 Make Balloon Help conditional on finding shape.h.
4149 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
4151 * syntax.c (regex_emacs_buffer_p): New variable.
4152 * syntax.h (regex_emacs_buffer_p): extern.
4153 * search.c (looking_at_1):
4155 (fast_string_match):
4156 (search_buffer): Set regex_emacs_buffer_p.
4157 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
4158 when before_dot, at_dot, after_dot.
4160 2000-08-23 Andy Piper <andy@xemacs.org>
4162 * gui-x.c (popup_selection_callback): Only set action_occurred
4163 when we really have an image instance.
4164 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
4166 2000-08-23 Andy Piper <andy@xemacs.org>
4168 * gui-msw.c (mswindows_handle_gui_wm_command): set
4170 * gui-x.c (popup_selection_callback): ditto.
4172 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
4173 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
4174 (struct Lisp_Image_Instance): add action_occurred flag.
4176 * glyphs.c (redisplay_subwindow): use action_occurred flag.
4177 (image_instance_changed): ditto.
4178 (reset_frame_subwindow_instance_cache): only unmap windows - do
4179 not remove them from the cache also.
4181 * glyphs-widget.c (tab_control_update): better debug.
4182 (progress_gauge_update): ditto.
4183 (layout_update): ditto.
4184 (layout_instantiate): ditto.
4185 (tab_control_order_only_changed): cope with null pending items.
4187 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
4188 debug. Force selection of an item when an action occurred. Cope
4189 with null pending_items.
4190 (mswindows_progress_gauge_redisplay): better debug.
4191 * glyphs-x.c (x_tab_control_redisplay): ditto.
4193 * redisplay.c (redisplay_frame): reset the frame cache if the
4196 * window.c (Fset_window_configuration): potentially re-enable
4198 (window_unmap_subwindows): need to finalize instances here since
4199 it is only used in mark_window_as_deleted.
4201 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
4203 * nas.c (SndOpenDataForReading):
4204 nas.c (WaveOpenDataForReading):
4205 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
4206 Somehow escaped from the 2000-08-14 patch.
4208 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4210 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
4211 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
4213 2000-08-21 Andy Piper <andy@xemacs.org>
4215 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
4216 window if it is not already displayed.
4218 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
4219 it is not already displayed.
4221 * window.c (Fset_window_configuration): don't reset the frame
4224 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
4225 instances from the frame cache if we are actually finalizing them.
4226 (reset_frame_subwindow_instance_cache): reset frame cache only
4227 after unmapping everything.
4228 (map_subwindow): set displayed flag after mapping.
4230 2000-08-21 Martin Buchholz <martin@xemacs.org>
4232 * data.c (indirect_function):
4233 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
4235 * eval.c (function_argcount):
4236 Use original function when signaling errors.
4238 2000-08-18 Andy Piper <andy@xemacs.org>
4240 * frame.c (delete_frame_internal): use new
4241 free_frame_subwindow_instances name.
4243 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
4244 (add_tab_item): make return type correct.
4245 (mswindows_tab_control_instantiate): assert index of tab.
4246 (mswindows_tab_control_redisplay): Re-code to use
4247 gui_item_equal_sans_selected and gui_item_list_find_selected.
4249 * glyphs-widget.c (tab_control_update): Correct comment.
4251 * window.c (window_unmap_subwindows): use new
4252 unmap_subwindow_instance_cache_mapper.
4253 (window_unmap_subwindows_cache_mapper): deleted.
4254 (Fset_window_configuration): comparisons should now be with
4255 EQ. Preserve the subwindow instance cache across configuration
4257 (allocate_window): ditto.
4258 (make_dummy_parent): ditto.
4260 * glyphs.c (free_frame_subwindow_instances): rename from
4261 free_frame_subwindow_instance_cache. finalize all instances rather
4262 than just those in the display cache.
4263 (finalize_all_subwindow_instances): walk windows unmapping and
4264 finalizing subwindows.
4265 (unmap_subwindow_instance_cache_mapper): moved from
4266 window.c. Allow finalization as well as unmapping.
4268 * gui.c (gui_item_list_find_selected): new function.
4270 * gui.h (gui_item_list_find_selected): declare.
4272 * glyphs-x.c (x_tab_control_redisplay): pick tab
4273 explicitly. Re-code to use gui_item_equal_sans_selected and
4274 gui_item_list_find_selected.
4276 * glyphs-x.h: add lwlib-utils.h
4278 * buffer.c (Frecord_buffer): undo previous change.
4280 2000-08-09 Vin Shelton <acs@xemacs.org>
4282 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
4283 possible. Create temporary files more securely. The patch was
4284 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
4285 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
4286 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
4289 2000-08-07 Ben Wing <ben@xemacs.org>
4291 * getloadavg.c: remove duplicate (and windows-breaking)
4292 includes of fcntl.h and sys/file.h.
4294 * nt.c: remove duplicate getloadavg() definition.
4296 * sysdll.h (Qdll_filename_encoding): add missing stand-in
4299 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
4301 * eval.c (function_argcount): If function needs to be autoloaded
4302 actually use the loaded definition.
4305 2000-08-05 Ben Wing <ben@xemacs.org>
4307 * getloadavg.c: add prototype for getloadavg(). remove
4308 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
4309 of the code). remove duplicate header includes.
4311 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
4313 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
4314 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
4315 useful load average.
4317 * alloc.c (reinit_alloc_once_early): removed references to
4318 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
4319 the lisp vars are the only things referencing the malloc_sbrk_*
4320 vars, and they were already if 0'd out. these vars only exist
4321 in the older malloc.c, which is basically unused, and they're
4322 only for informational purposes.
4324 * m\*.h: removed useless VIRT_ADDR_VARIES.
4326 * m\powerpc.h: removed stray NO_ARG_ARRAY.
4328 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
4330 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
4331 color if the image is a mono pixmap.
4333 2000-07-30 Ben Wing <ben@xemacs.org>
4335 * Makefile.in.in (release):
4338 * buffer.c (directory_is_current_directory):
4339 * dired-msw.c (mswindows_get_files):
4341 * dired.c (Fdirectory_files):
4342 * dired.c (file_name_completion_stat):
4343 * dired.c (Ffile_attributes):
4344 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
4345 preprocessor tricks, to avoid problems on some machines
4348 * callproc.c (egetenv): GC docs.
4351 * console-msw.h (struct mswindows_dialog_id):
4352 * lrecord.h (lrecord_type):
4353 New object for use with MSW dialogs.
4355 * console.h (struct console_methods):
4356 New enable/disable frame methods, for proper modal dialogs.
4358 * device-msw.c (msprinter_default_printer): Fix to follow
4359 proper Mule conventions.
4362 * device-msw.c (signal_open_printer_error):
4363 * device-msw.c (msprinter_init_device):
4364 * device-msw.c (ensure_not_printing):
4365 * device-msw.c (plist_get_margin):
4366 * device-msw.c (Fmsprinter_select_settings):
4367 * device-msw.c (finalize_devmode):
4368 * device-msw.c (Fmsprinter_settings_despecialize):
4369 * device-msw.c (signal_enum_priner_error):
4370 * extents.c (decode_extent):
4371 * extents.c (decode_map_extents_flags):
4372 * extents.c (decode_extent_at_flag):
4373 * extents.c (Fextent_at):
4374 * extents.c (Fextents_at):
4375 * extents.c (symbol_to_glyph_layout):
4376 [[[[2]]]] Use structured errors.
4379 * dialog-msw.c (mswindows_is_dialog_msg):
4380 * dialog-msw.c (mark_mswindows_dialog_id):
4381 * dialog-msw.c (dialog_proc):
4382 * dialog-msw.c (handle_question_dialog_box):
4383 * dialog-msw.c (syms_of_dialog_mswindows):
4384 Define new object to clean up marking; use it as a dialog identifier.
4385 Call new delete-dialog-box-hook.
4387 * dialog-x.c (dbox_selection_callback):
4388 * dialog-x.c (dbox_descriptor_to_widget_value):
4389 * dialog-x.c (x_make_dialog_box_internal):
4390 Call new delete-dialog-box-hook.
4394 * dialog.c (syms_of_dialog):
4395 * dialog.c (vars_of_dialog):
4396 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
4399 * eval.c (signal_call_debugger):
4400 when noninteractive, output stack traces on the console instead
4401 of in a (never-seen) buffer.
4403 * eval.c (signal_type_error):
4404 * eval.c (invalid_argument_2):
4406 new funs for use w/structured errors.
4409 * event-Xt.c (x_to_emacs_keysym):
4410 * event-Xt.c (describe_event):
4411 * event-Xt.c (emacs_Xt_event_handler):
4412 * event-Xt.c (vars_of_event_Xt):
4414 * event-msw.c (mswindows_wnd_proc):
4415 * event-msw.c (vars_of_event_mswindows):
4416 rename {x,mswindows}-debug-events to debug-{}-events for
4417 consistency with other debug-foo variables.
4420 document next-event more clearly.
4422 * fileio.c (Ffile_name_directory):
4423 * fileio.c (Ffile_name_nondirectory):
4424 * fileio.c (Funhandled_file_name_directory):
4425 * fileio.c (file_name_as_directory):
4426 * fileio.c (Ffile_name_as_directory):
4427 * fileio.c (directory_file_name):
4428 * fileio.c (Fdirectory_file_name):
4429 * fileio.c (Fmake_temp_name):
4430 * fileio.c (Ffile_truename):
4431 * fileio.c (Fsubstitute_in_file_name):
4432 * fileio.c (expand_and_dir_to_file):
4433 * fileio.c (barf_or_query_if_file_exists):
4434 * fileio.c (check_executable):
4435 * fileio.c (Ffile_exists_p):
4436 * fileio.c (Ffile_writable_p):
4437 * fileio.c (Ffile_directory_p):
4438 * fileio.c (Ffile_regular_p):
4439 * fileio.c (Ffile_modes):
4440 * fileio.c (Ffile_newer_than_file_p):
4441 * fileio.c (Fverify_visited_file_modtime):
4442 * fileio.c (Fset_visited_file_modtime):
4443 * fileio.c (auto_save_1):
4448 * frame-msw.c (mswindows_init_frame_1):
4449 * frame-msw.c (mswindows_enable_frame):
4450 * frame-msw.c (error_frame_unsizable):
4451 * frame-msw.c (msprinter_init_frame_1):
4452 * frame-msw.c (msprinter_init_frame_3):
4453 * frame-msw.c (console_type_create_frame_mswindows):
4455 implement new enable/disable frame methods.
4458 * frame-x.c (x_enable_frame):
4459 * frame-x.c (console_type_create_frame_x):
4460 implement new enable/disable frame methods.
4463 * frame.c (Fdisable_frame):
4464 * frame.c (syms_of_frame):
4465 * frame.h (struct frame):
4466 implement new enable/disable frame methods/functions.
4471 * glyphs-msw.c (mswindows_widget_instantiate):
4472 comment that initial-focus should be implemented.
4475 * glyphs-widget.c (check_valid_instantiator):
4476 * glyphs-widget.c (check_valid_orientation):
4477 * glyphs-widget.c (check_valid_tab_orientation):
4478 * glyphs-widget.c (check_valid_justification):
4479 * glyphs-widget.c (check_valid_border):
4480 * glyphs-widget.c (check_valid_callback):
4481 * glyphs-widget.c (check_valid_int_or_function):
4482 * glyphs-widget.c (check_valid_string_or_vector):
4483 * glyphs-widget.c (check_valid_item_list_1):
4484 * glyphs-widget.c (widget_validate):
4485 * glyphs-widget.c (combo_box_validate):
4486 * glyphs-widget.c (widget_instantiate):
4487 * glyphs-widget.c (syms_of_glyphs_widget):
4488 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
4489 * glyphs-widget.c (image_instantiator_combo_box):
4490 * glyphs-widget.c (image_instantiator_scrollbar):
4491 * glyphs-widget.c (image_instantiator_tab_control):
4492 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
4494 support (unimplemented) keyword initial-focus.
4495 reindent long macros.
4497 * glyphs-x.c (x_redisplay_widget):
4498 * glyphs-x.c (x_button_instantiate):
4499 * glyphs-x.c (x_button_redisplay):
4500 * glyphs-x.c (x_progress_gauge_instantiate):
4501 * glyphs-x.c (x_edit_field_instantiate):
4502 * glyphs-x.c (x_combo_box_instantiate):
4503 * glyphs-x.c (x_tab_control_instantiate):
4504 * glyphs-x.c (x_label_instantiate):
4506 * gui-x.c (button_item_to_widget_value):
4507 * gui-x.c (gui_items_to_widget_values_1):
4508 * gui-x.c (gui_item_children_to_widget_values):
4509 * gui-x.c (gui_items_to_widget_values):
4511 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4512 add new flag to gui-parsing routines to indicate whether
4513 accelerator specs should be supported.
4515 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
4517 * glyphs.h (struct Lisp_Image_Instance):
4518 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
4519 add initial-focus flag.
4522 * gui.c (syms_of_gui):
4523 * gui.c (vars_of_gui):
4524 clean up menu-no-selection-hook.
4527 support delete-dialog-box-hook.
4529 * lread.c (Fload_internal):
4530 * lread.c (locate_file_in_directory_mapper):
4534 * lrecord.h (struct toolbar_button):
4535 * lrecord.h (syms_of_toolbar):
4536 document how to create a new object.
4538 * menubar-msw.c (mswindows_char_is_accelerator):
4539 may be called on frames w/o menus.
4541 * menubar.c (vars_of_menubar):
4542 clean up :filter docs.
4549 * process-nt.c (validate_signal_number):
4550 * process-nt.c (signal_cannot_launch):
4551 * process-nt.c (nt_create_process):
4552 * process-nt.c (nt_send_process):
4553 * process-nt.c (nt_kill_child_process):
4554 * process-nt.c (nt_open_network_stream):
4555 * process-nt.c (syms_of_process_nt):
4557 delete quote-handling. call new lisp code that does it better.
4559 * process-unix.c (connect_to_file_descriptor):
4560 * process-unix.c (allocate_pty):
4561 * process-unix.c (unix_send_process):
4562 * process-unix.c (unix_kill_child_process):
4563 * process-unix.c (unix_open_network_stream):
4564 * process-unix.c (unix_open_multicast_group):
4568 * process.c (Fstart_process_internal):
4569 (2). need to canonicalize process path even if absolute.
4571 * select-msw.c (symbol_to_ms_cf):
4572 * select-msw.c (ms_cf_to_symbol):
4573 * select-msw.c (cf_is_autofreed):
4574 * select-msw.c (mswindows_destroy_selection):
4576 * select.c (syms_of_select):
4578 support dibv5, fix bugs. (from Mike Alexander)
4580 * select.c (Fget_selection_internal):
4581 * select.c (select_convert_out):
4584 * sysdep.c (xemacs_stat):
4589 but keep original stat() here because we provide encapsulation
4593 * sysfile.h (fstat):
4594 remove stat garbage.
4598 don't include tchar.h. it's inappropriate because it makes
4599 compile-time distinctions when we want runtime distinctions.
4600 (we provide our own tchar replacements)
4603 use default object printer for toolbar-button.
4606 make sure we don't encapsulate.
4608 * window.c (vars_of_window):
4609 emphasize that temp-buffer-show-hook is obsolete.
4611 2000-08-05 Martin Buchholz <martin@xemacs.org>
4613 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
4614 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
4616 * events.c (Fevent_timestamp_lessp):
4617 Not 64-bit clean. Use EMACS_INT, not int.
4619 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
4621 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
4622 unsigned int and changed the last enum to
4623 lrecord_type_last_built_in_type.
4624 (lrecord_implementations_table): changed prototype to know how
4625 long the array is supposed to be.
4626 (lrecord_type_count): new unsigned int to keep track of the
4627 current number of lisp lrecord types.
4628 (DEFINE_EXTERNAL_LRECORD):
4629 (DECLARE_EXTERNAL_LRECORD): Added these two for external
4630 dynamic-modules to declare new lisp types. They are the same
4631 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
4632 int for each new type, and increment lrecord_type_count by 1.
4634 * alloc.c (lrecord_implementations_table): Changed to reference
4635 lrecord_type_last_built_in_type for the size of the array.
4636 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
4638 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
4640 * glyphs.h (check_valid_item_list): Renamed from
4641 check_valid_item_list_1.
4643 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
4645 * select.c (Qselect_coerce): New.
4646 * select.c (Vselection_coercion_alist): New.
4647 * select.c (syms_of_select): Declare.
4648 * select.c (get-selection-internal): Use it.
4649 Use the new select-coerce functionality.
4651 * select.c (select_coerce): New.
4652 * select.h (select_coerce): Declare.
4653 New function to coerce one type of data into another.
4655 2000-08-03 Martin Buchholz <martin@xemacs.org>
4657 * callproc.c (Fcall_process_internal):
4658 (Fcall_process_internal):
4659 * process-unix.c (unix_create_process):
4660 Save and restore the value of errno, so that error messages are accurate.
4662 2000-08-01 Martin Buchholz <martin@xemacs.org>
4664 * elhash.c (print_hash_table):
4665 Fix printing of hash tables to also use `key-and-value' instead of `t'.
4666 Prettify docstrings and indentation.
4668 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
4670 * window.c (Fwindow_pixel_edges): Subtract frame border and
4673 2000-07-31 Andy Piper <andy@xemacs.org>
4675 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
4676 will acknowledge the change.
4678 * glyphs.h: declare tab_control_order_only_changed.
4680 * glyphs-x.c (x_tab_control_redisplay): use
4681 tab_control_order_only_changed.
4683 * glyphs-widget.c (tab_control_order_only_changed): new function.
4685 * glyphs-msw.c (mswindows_tab_control_redisplay): use
4686 tab_control_order_only_changed.
4688 * gui.c (gui_item_equal_sans_selected): new function.
4689 (gui_item_equal): use it.
4691 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
4692 :properties in favor of :items..
4694 * glyphs-widget.c (check_valid_item_list): rename from
4695 check_valid_item_list_1.
4696 (check_valid_item_list_1): renamed.
4697 (combo_box_validate): deprecate :properties in favor of :items.
4698 (widget_instantiate): ditto.
4699 (tab_control_update): ditto.
4700 (image_instantiator_combo_box): ditto.
4701 (image_instantiator_tree_view): ditto.
4702 (image_instantiator_tab_control): ditto.
4703 (layout_post_instantiate): remove dead code.
4705 * print.c (debug_print_no_newline): only write to debugger if in
4708 * elhash.c (Fmake_hash_table): update doc string.
4710 * event-msw.c (mswindows_wnd_proc): don't allow processing of
4711 messages whilst in GC. This at least stops XEmacs crashing but has
4712 the potential for wierd behaviour.
4714 2000-07-31 Martin Buchholz <martin@xemacs.org>
4717 Make existence of s&m files optional.
4719 * s/bsd386.h: Remove HAVE_GETLOADAVG.
4720 * s/freebsd.h: Remove HAVE_GETLOADAVG.
4721 * s/gnu.h: Remove HAVE_GETLOADAVG.
4722 * s/netbsd.h: Remove HAVE_GETLOADAVG.
4723 * s/sol2.h: Remove HAVE_GETLOADAVG.
4724 * lisp.h: Remove getloadavg() declaration.
4726 Include <sys/loadavg.h> if available.
4727 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
4728 * config.h.in: Group together getloadavg()-related macros.
4729 Use only configure-time tests to detect getloadavg().
4731 2000-07-30 Martin Buchholz <martin@xemacs.org>
4733 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
4735 2000-07-25 Andy Piper <andy@xemacs.org>
4737 * syswindows.h: add tchar.h for native builds.
4739 * frame.c (syms_of_frame): remove set-glyph-image.
4741 * general-slots.h: add Qset_glyph_image.
4743 * glyphs-widget.c (layout_update): add domain arg to
4745 (syms_of_glyphs_widget): remove set-glyph-image.
4747 2000-07-23 Ben Wing <ben@xemacs.org>
4749 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
4752 2000-07-22 Andy Piper <andy@xemacs.org>
4754 * symsinit.h: add syms_of_win32().
4756 * gui-msw.c (syms_of_gui_mswindows): remove
4757 Fmswindows_shell_execute.
4758 (Fmswindows_shell_execute): moved to win32.c.
4760 * emacs.c (main_1): add syms_of_win32 ().
4762 * win32.c (init_potentially_nonexistent_functions): rewrite in
4763 compiler-friendly terms.
4764 (Fmswindows_shell_execute): move here from gui-msw.c.
4765 (syms_of_win32): new.
4767 * device-msw.c (Fmswindows_printer_list): clean up args to
4769 Don't include tchar under cygwin or mingw.
4770 (msprinter_default_printer): make cygwin-friendly.
4772 2000-07-21 Andy Piper <andy@xemacs.org>
4774 * glyphs-widget.c (image_instantiator_tree_view): use tab
4775 control's update function.
4776 (layout_property): new function. Retrieve items.
4778 * glyphs-msw.c (mswindows_tree_view_redisplay): new
4779 function. Re-populate the tree view from the pending items.
4781 * glyphs.c (instantiate_image_instantiator): Make sure the domain
4782 is designated the parent if the domain is an image instance. This
4783 is needed so that dirtiness can be cascade up the hierarchy and
4784 thus for layout children to be redisplayed correctly.
4785 (allocate_image_instance): rename glyph -> parent.
4787 * redisplay.h: change redisplay_output_layout signature.
4789 * redisplay-msw.c (mswindows_output_display_block): use domain
4792 * redisplay-x.c (x_output_display_block): use domain arg.
4794 2000-07-10 Andy Piper <andy@xemacs.org>
4796 * window.c (Fset_window_configuration): add comment.
4798 * redisplay-output.c (compare_runes):
4799 (redisplay_output_subwindow): redisplay rather than update subwindow.
4800 (redisplay_output_layout): ditto.
4802 * redisplay-msw.c (mswindows_frame_output_end):
4803 (mswindows_frame_output_end): make defer window pos optional.
4805 * lisp.h: add Flast.
4807 * glyphs.h (struct image_instantiator_methods): add dest_mask top
4808 normalize method. Change update method to be for changed
4809 instantiators. Add redisplay method. Change signature of layout
4811 (struct Lisp_Image_Instance): add instantiator.
4812 (IMAGE_INSTANCE_INSTANTIATOR): new.
4813 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
4814 (XIMAGE_INSTANCE_INSTANTIATOR): new.
4815 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
4818 (find_instantiator_differences): new function.
4819 (Fset_instantiator_property): new convenience function.
4820 (check_image_instance_structure): strictly check for vector
4822 (normalize_image_instantiator): make non-static.
4823 (instantiate_image_instantiator): pass on dest_mask and use new
4824 signatures for image_instance_layout and friends.
4825 (mark_image_instance): mark the instantiator. Mark the subwindow
4826 face not the widget face.
4827 (image_instance_equal): add instantiator.
4828 (image_instance_hash): ditto.
4829 (allocate_image_instance): ditto.
4830 (Fset_image_instance_property): removed.
4831 (Fimage_instance_file_name): ditto.
4832 (Fcolorize_image_instance): ditto.
4833 (image_instance_layout): add offsets to be set.
4834 (update_image_instance): new function. update an image instance
4835 from its changed instantiator.
4836 (inherit_normalize): add dest_mask.
4837 (xbm_normalize): ditto.
4838 (xface_normalize): ditto.
4839 (xpm_normalize): ditto.
4840 (text_update): set_property -> update.
4841 (image_instantiate): use the glyph identity as a hash key, not the
4843 (glyph_width): use new image_instance_layout signature.
4844 (glyph_ascent): ditto.
4845 (glyph_descent): ditto.
4846 (glyph_height): ditto.
4847 (glyph_query_geometry): ressurrect.
4848 (glyph_layout): ditto.
4849 (redisplay_subwindow): update -> redisplay.
4850 (syms_of_glyphs): add Fset_instantiator_property.
4851 (image_instantiator_format_create): set_property -> update.
4854 (autodetect_normalize): add dest_maks to signature.
4855 (x_redisplay_subwindow): update -> redisplay.
4856 (x_redisplay_widget): ditto.
4857 (x_button_redisplay): ditto.
4858 (x_progress_gauge_redisplay): ditto.
4859 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
4861 (console_type_create_glyphs_x): update -> redisplay.
4862 (image_instantiator_format_create_glyphs_x): ditto.
4865 (check_valid_instantiator): disallow glyphs in the instantiator,
4866 they must now be vectors.
4867 (check_valid_instantiator_list): ditto.
4868 (glyph_instantiator_to_glyph): use internal symbol rather than
4870 (widget_update): renamed from widget_set_property. Call cascaded
4872 (redisplay_widget): renamed from update_widget.
4873 (widget_layout): image_instance_layout now takes position as well
4875 (widget_normalize): ditto.
4876 (widget_instantiate): ditto.
4877 (tab_control_query_geometry) ditto.:
4878 (tab_control_update): renamed from tab_control_set_property.
4879 (progress_gauge_update): set_property -> update.
4880 (layout_normalize): rewrite so that child instantiators are
4882 (layout_update): new function. Create glyphs from the normalized
4883 children and cope with any other layout keywords. We do not
4884 instantiate children here that will be take care of by
4885 redisplay_output_layout.
4886 (layout_instantiate): call layout_update and not much else.
4887 (layout_post_instantiate): not sure whether this is needed
4889 (layout_query_geometry): query glyph geometry rather than
4890 image_instance geometry.
4891 (layout_layout): set offsets from pass in parameters. Use glyph
4892 geometry and layout functions rather than image instance ones.
4893 (native_layout_layout): ditto.
4894 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
4895 (image_instantiator_widget): set_property -> update.
4896 (image_instantiator_buttons): ditto.
4897 (image_instantiator_progress_guage): ditto.
4898 (image_instantiator_tab_control): ditto.
4899 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
4900 (image_instantiator_layout): add update method.
4902 * glyphs-msw.c (bmp_normalize):
4903 (mswindows_resource_normalize): add dest_mask so that it can be
4904 proprogated by layout_normalize.
4905 (begin_defer_window_pos): make optional because it may not be the
4906 right thing to do and it introduces differences with X.
4907 (mswindows_unmap_subwindow): ditto.
4908 (mswindows_map_subwindow): ditto.
4909 (mswindows_redisplay_subwindow): renamed from
4910 mswindows_update_subwindow.
4911 (mswindows_redisplay_widget): ditto.
4912 (mswindows_button_redisplay): renamed from
4913 mswindows_button_update. Update is now what the instantiation
4914 function does for a changed instantiator.
4915 (mswindows_progress_gauge_instantiate): set the progress value
4916 here if appropriate.
4917 (mswindows_tab_control_redisplay): cope with re-ordering of the
4918 members of the tab widget by simply selecting the new top
4919 widget. This makes things appear ok if you click on a tab.
4920 (mswindows_combo_box_instantiate): image_instance_layout now takes
4921 position as well as size.
4922 (mswindows_progress_gauge_redisplay): renamed from
4923 mswindows_progress_gauge_update.
4924 (console_type_create_glyphs_mswindows): fix update -> redisplay.
4925 (image_instantiator_format_create_glyphs_mswindows): ditto.
4927 * glyphs-eimage.c (jpeg_normalize):
4930 (tiff_normalize): add dest_mask so that it can be proprogated by
4935 (hash_table_weakness_validate):
4936 (decode_hash_table_weakness):
4937 (Fhash_table_weakness):
4939 (syms_of_elhash): use Ben's naming scheme for hashtable types..
4941 * console.h (struct console_methods): move update_* to
4944 2000-07-20 Ben Wing <ben@xemacs.org>
4946 * *.[ch] (XSETOBJ): remove unused middle argument.
4947 lisp-disunion.h: correct wrap_object() to one argument.
4949 2000-07-15 Ben Wing <ben@xemacs.org>
4952 * s/cygwin32.h (CYGWIN_CONV_PATH):
4953 Add missing logb prototype for v1.1.
4954 Use post-b20 names and alias to pre-b20 names when pre-b20.
4956 * s/windowsnt.h: [5].
4958 2000-07-15 Ben Wing <ben@xemacs.org>
4960 * Makefile.in.in (x_objs):
4961 * Makefile.in.in (sheap_objs):
4962 * Makefile.in.in (objs):
4963 added win32.o, cosmetic cleanups.
4965 * alloc.c (Fmake_byte_code):
4966 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
4967 etc. macros which declare their own args now.
4969 * alloc.c (syms_of_alloc):
4970 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
4973 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
4975 * buffer.c (Fget_file_buffer):
4976 Fixed GCPRO problem.
4978 * buffer.c (get_truename_buffer):
4979 Fixed comment about GC checking.
4981 * buffer.c (syms_of_buffer):
4982 Undeclared those dedicated frame funs.
4986 Define convenience macros for internal/external conversions.
4987 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
4988 and Qenvironment_variable_encoding for cleaner code.
4991 Remove dedicated-frame; in lisp.
4993 * bytecode.c (funcall_compiled_function):
4996 * bytecode.c (syms_of_bytecode):
5000 * console-msw.c (mswindows_show_console): Rewrote.
5002 * console-msw.c (Fmswindows_debugging_output): New.
5003 Sends to OutputDebugString (special MSWin debugger interface).
5005 * console-msw.c (Fmswindows_message_box):
5006 Fixed stupid bugs so it works when called from kill-emacs.
5008 * console-msw.c (syms_of_console_mswindows):
5009 Declare Fmswindows_debugging_output.
5012 New MSWin prototypes.
5014 * console-msw.h (struct mswindows_frame):
5015 New entry last-click-mods for improved button-modifier support.
5017 * console-msw.h (FRAME_MSWINDOWS_POPUP):
5018 New struct entry `popup' with corresponding accessor.
5021 * console-x.c (split_up_display_spec):
5022 * console-x.c (get_display_arg_connection):
5023 * console-x.c (x_semi_canonicalize_console_connection):
5024 * console-x.c (x_canonicalize_device_connection):
5025 [[[6]]]: Change char to more specific type.
5026 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
5028 * console-x.c (x_semi_canonicalize_console_connection):
5029 * console-x.c (x_canonicalize_device_connection):
5030 [[[9]]]: Fix up error signalling to use new structured error system.
5033 [[[4]]]: Define codesys aliases:
5034 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
5035 Qx_color_name_encoding, Qx_display_name_encoding.
5037 * console.h (struct console_methods):
5038 New method make_dialog_box_internal supersedes older
5039 popup_dialog_box method.
5042 Define many new errors, part of new structured errors.
5044 * data.c (init_errors_once_early):
5045 * data.c (syms_of_data):
5048 * device-msw.c (mswindows_init_device):
5049 [[[5]]]: Cleanup to support NT 3.51.
5051 * device-msw.c (decode_devmode): Cleanup.
5053 * device-msw.c (mswindows_handle_print_setup_dialog_box):
5054 * device-msw.c (mswindows_handle_print_dialog_box):
5055 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5056 * device-msw.c (syms_of_device_mswindows):
5057 Delete the dialog box primitives recently introduced by Kirill and
5058 instead interface to general dialog box interface.
5061 * device-x.c (compute_x_app_name):
5062 * device-x.c (x_init_device):
5063 * device-x.c (Fx_valid_keysym_name_p):
5064 * device-x.c (Fx_set_font_path):
5068 * device.h (wrap_device): New.
5069 First of its kind; meant to replace XSETDEVICE.
5071 * dialog-msw.c: Many file-dialog symbols.
5073 * dialog-msw.c (mswindows_register_popup_frame): New.
5074 * dialog-msw.c (mswindows_is_dialog_msg): New.
5075 For supporting kbd traversal in dialog boxes.
5077 * dialog-msw.c (dialog_proc):
5078 Support hitting ESC in dialogs.
5080 * dialog-msw.c (struct):
5081 Common dialog box errors.
5083 * dialog-msw.c (handle_file_dialog_box): New.
5084 Add file dialog code.
5086 * dialog-msw.c (handle_question_dialog_box):
5087 Redo existing code to support new question dialog syntax.
5089 * dialog-msw.c (console_type_create_dialog_mswindows):
5090 We support new dialog console method.
5092 * dialog-msw.c (syms_of_dialog_mswindows):
5093 * dialog-msw.c (vars_of_dialog_mswindows):
5094 New file dialog symbols, vars.
5097 * dialog-x.c (maybe_run_dbox_text_callback):
5098 * dialog-x.c (dbox_descriptor_to_widget_value):
5099 * dialog-x.c (x_make_dialog_box_internal):
5100 * dialog-x.c (console_type_create_dialog_x):
5101 Mule-ize entire file.
5102 Redo to support question dialog syntax.
5106 * dialog.c (Fmake_dialog_box_internal):
5107 * dialog.c (syms_of_dialog):
5108 Kill old popup-dialog-box, replace with new primitive.
5109 Just call device method or signal error.
5111 * eldap.c (Fldap_open):
5112 * eldap.c (Fldap_search_basic):
5113 * eldap.c (Fldap_add):
5114 * eldap.c (Fldap_modify):
5119 * emacs.c (make_arg_list_1):
5120 * emacs.c (make_arg_list):
5121 Mule-ize call to dll_init().
5125 * emacs.c (make_argc_argv):
5126 * emacs.c (free_argc_argv):
5127 * emacs.c (init_cmdargs):
5129 * emacs.c (Fkill_emacs):
5130 * emacs.c (Fdump_emacs):
5131 Update comments about what can be used in syms_* etc.
5132 Call init_win32() when necessary.
5133 Fix up MS Win dialog box in kill-buffer to actually work right.
5144 * eval.c (condition_case_3):
5146 * eval.c (function_argcount):
5147 * eval.c (funcall_lambda):
5150 * eval.c (type_error): New.
5151 * eval.c (maybe_type_error): New.
5152 * eval.c (continuable_type_error): New.
5153 * eval.c (maybe_continuable_type_error): New.
5154 * eval.c (type_error_with_frob): New.
5155 * eval.c (maybe_type_error_with_frob): New.
5156 * eval.c (continuable_type_error_with_frob): New.
5157 * eval.c (maybe_continuable_type_error_with_frob): New.
5158 New functions for use with structured errors.
5161 * event-Xt.c (x_event_to_emacs_event):
5162 Buttons are now modifiers too.
5164 * event-Xt.c (emacs_Xt_current_event_timestamp):
5165 Implement new event method.
5166 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
5169 * event-msw.c (ntpipe_shove_writer): [5].
5170 * event-msw.c (mswindows_enqueue_mouse_button_event):
5171 * event-msw.c (mswindows_drain_windows_queue):
5172 * event-msw.c (mswindows_wnd_proc): [7].
5173 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
5174 * event-msw.c (mswindows_modifier_state):
5175 Throughout: support new button modifiers.
5177 * event-msw.c (emacs_mswindows_current_event_timestamp):
5178 Implement new event method.
5179 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
5182 * event-stream.c (event_stream_current_event_timestamp): New.
5183 * event-stream.c (maybe_kbd_translate): New functionality.
5184 * event-stream.c (vars_of_event_stream):
5185 Document new kbd-translate-table functionality.
5187 * event-stream.c (Fcurrent_event_timestamp): New.
5188 New primitive for use in fabricated events.
5189 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
5191 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
5194 * events.c (Fmake_event):
5195 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
5199 * events.c (format_event_object): fix gcc warnings.
5201 * events.c (Fevent_timestamp): Document new primitives.
5203 * events.c (TIMESTAMP_HALFSPACE): New.
5205 * events.c (Fevent_timestamp_lessp): New. New primitive for
5206 comparing timestamps correctly (half-space algorithm).
5208 * events.c (Fevent_modifier_bits): Doc fix.
5210 * events.c (Fevent_modifiers): Major doc addition.
5211 * events.c (event_x_y_pixel_internal): Typo fix.
5212 * events.c (syms_of_events): Declare new primitives.
5215 Update long comment for button modifiers, timestamps.
5217 * events.h (struct event_stream):
5218 New current_event_timestamp method.
5221 * extents.c (extent_in_region_p):
5222 * extents.c (decode_extent):
5223 * extents.c (Fset_extent_parent):
5224 * extents.c (decode_map_extents_flags):
5228 * extents.c (struct extent_at_arg):
5229 * extents.c (decode_extent_at_flag):
5230 * extents.c (extent_at_mapper):
5231 * extents.c (extent_at_bytind):
5232 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
5233 * extents.c (Fextents_at): New primitive. [9].
5234 * extents.c (symbol_to_glyph_layout): [9].
5235 Support new primitive `extents-at'.
5238 * extents.c (get_text_property_bytind):
5239 extent_at_bytind has another arg.
5242 * extents.c (syms_of_extents): New primitive.
5244 * file-coding.c (Fmake_coding_system): [1].
5245 * file-coding.c (subsidiary_coding_system): fix gcc warning
5246 * file-coding.c (syms_of_file_coding): [2].
5248 * fileio.c (Fexpand_file_name):
5249 * fileio.c (Fsysnetunam):
5250 * fileio.c (Ffile_exists_p):
5251 * fileio.c (Ffile_executable_p):
5252 * fileio.c (Fverify_visited_file_modtime):
5255 * fileio.c (syms_of_fileio): [2].
5257 * filelock.c (lock_file_1):
5258 * filelock.c (current_lock_owner):
5259 * filelock.c (lock_if_free):
5260 * filelock.c (lock_file):
5261 * filelock.c (unlock_file):
5264 * fns.c (concat): Fix gcc warning.
5267 * fns.c (Fold_member):
5269 * fns.c (Fold_memq):
5270 * fns.c (memq_no_quit):
5272 * fns.c (Fold_assoc):
5274 * fns.c (Fold_assq):
5275 * fns.c (assq_no_quit):
5277 * fns.c (Fold_rassoc):
5279 * fns.c (Fold_rassq):
5280 * fns.c (rassq_no_quit):
5282 * fns.c (Fold_delete):
5284 * fns.c (Fold_delq):
5285 * fns.c (delq_no_quit):
5286 * fns.c (Fremassoc):
5288 * fns.c (remassq_no_quit):
5289 * fns.c (Fremrassoc):
5290 * fns.c (Fremrassq):
5291 * fns.c (remrassq_no_quit):
5296 * frame-msw.c (mswindows_init_frame_1):
5297 * frame-msw.c (mswindows_delete_frame):
5298 Register popups with dialog code so keyboard traversing works.
5300 * frame-tty.c (tty_raise_frame_no_select): [1].
5303 * frame-x.c (x_set_frame_text_value):
5304 * frame-x.c (x_set_frame_properties):
5305 * frame-x.c (x_create_widgets):
5309 * frame.c (Fmouse_pixel_position): Minor doc fixes.
5311 * frame.h (wrap_frame): New.
5312 Macro like wrap_device.
5315 * general.c (SYMBOL):
5316 * general.c (syms_of_general):
5317 Major reorg. This is now just a wrapper and symbols themselves
5318 are listed in general-slots.h.
5320 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
5321 * glyphs-msw.c (mswindows_resource_instantiate): [5].
5323 * glyphs-msw.c (mswindows_native_layout_instantiate):
5324 Add DS_CONTROL so keyboard traversal will work.
5327 * glyphs-widget.c (syms_of_glyphs_widget):
5328 Move some symbols to general-slots.h.
5331 * glyphs-x.c (xbm_instantiate_1):
5332 * glyphs-x.c (x_xbm_instantiate):
5333 * glyphs-x.c (x_xface_instantiate):
5334 * glyphs-x.c (autodetect_instantiate):
5335 * glyphs-x.c (cursor_font_instantiate):
5336 * glyphs-x.c (x_update_widget):
5337 * glyphs-x.c (x_widget_instantiate):
5338 * glyphs.c (bitmap_to_lisp_data):
5339 * glyphs.c (pixmap_to_lisp_data):
5342 * glyphs.c (syms_of_glyphs):
5346 * gui-x.c (print_widget_value):
5347 * gui-x.c (menu_separator_style_and_to_external):
5348 * gui-x.c (add_accel_and_to_external):
5349 * gui-x.c (button_item_to_widget_value):
5350 * gui-x.c (gui_items_to_widget_values_1):
5351 * gui-x.c (gui_items_to_widget_values):
5352 * gui-x.c (syms_of_gui_x):
5353 * gui-x.c (vars_of_gui_x):
5354 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
5358 Muleize, prototype changes matching gui-x.c.
5361 * gui.c (separator_string_p):
5362 * gui.c (gui_item_add_keyval_pair):
5363 * gui.c (make_gui_item_from_keywords_internal):
5364 * gui.c (signal_too_long_error):
5365 * gui.c (parse_gui_item_tree_item):
5366 * gui.c (syms_of_gui):
5367 * gui.c (vars_of_gui):
5369 menu-no-selection-hook moved here (used by MSWin).
5370 Move some symbols to general-slots.h.
5374 * insdel.c (get_buffer_pos_char):
5375 * insdel.c (get_buffer_range_char):
5378 * keymap.c (keymap_lookup_directly):
5379 * keymap.c (keymap_store):
5380 * keymap.c (ensure_meta_prefix_char_keymapp):
5381 * keymap.c (describe_map):
5383 Support new button modifiers.
5385 * lisp-disunion.h (wrap_object):
5386 * lisp-disunion.h (XSETOBJ):
5387 Rename make_obj to wrap_object.
5390 * lisp-union.h (make_int):
5391 * lisp-union.h (make_char):
5392 Support wrap_object.
5395 * lisp.h (LIST_LOOP):
5396 * lisp.h (EXTERNAL_LIST_LOOP):
5397 * lisp.h (LIST_LOOP_2):
5398 * lisp.h (EXTERNAL_LIST_LOOP_1):
5399 * lisp.h (EXTERNAL_LIST_LOOP_2):
5400 * lisp.h (EXTERNAL_LIST_LOOP_3):
5401 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
5402 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5403 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
5404 * lisp.h (EXTERNAL_ALIST_LOOP_5):
5405 * lisp.h (EXTERNAL_ALIST_LOOP_6):
5406 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
5407 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
5408 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
5409 * lisp.h (struct Lisp_Symbol):
5410 * lisp.h (maybe_continuable_error_with_frob):
5411 Fix up section comments.
5412 Add new types for char to indicate usage.
5413 Delete symbols auto-generated from general-slots.h.
5414 Add prototypes for structured error functions.
5415 Add long comments describing looping macros and change interface
5416 so that lvalues are automatically declared.
5417 Add NO_DECLARE macro in case callers want to declare lvalues
5420 * lread.c (read_syntax_error):
5421 * lread.c (continuable_read_syntax_error):
5422 * lread.c (read_structure):
5423 * lread.c (sequence_reader):
5424 * lread.c (read_list_conser):
5425 * lread.c (read_compiled_function):
5426 Rename syntax_error and continuable_syntax_error to avoid clash
5427 with same-named structured error functions.
5429 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5430 * menubar-msw.c (populate_menu_add_item):
5431 * menubar-msw.c (populate_or_checksum_helper):
5436 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5437 Mule-ize whole file.
5439 * menubar.c (Fnormalize_menu_item_name): Add optimization.
5441 * mule-charset.c (Fmake_charset):
5442 * mule-wnnfns.c (Fwnn_set_param):
5445 * ntproc.c (create_child):
5446 * ntproc.c (Fwin32_set_current_locale):
5447 Add comments portending doom.
5450 * objects-msw.c (old_font_enum_callback_2):
5451 * objects-msw.c (font_enum_callback_1):
5452 * objects-msw.c (mswindows_enumerate_fonts):
5456 * objects-x.c (allocate_nearest_color):
5457 * objects-x.c (x_parse_nearest_color):
5458 * objects-x.c (x_initialize_color_instance):
5459 * objects-x.c (x_print_color_instance):
5460 * objects-x.c (x_finalize_color_instance):
5461 * objects-x.c (x_valid_color_name_p):
5462 * objects-x.c (x_initialize_font_instance):
5463 * objects-x.c (x_print_font_instance):
5464 * objects-x.c (valid_x_font_name_p):
5465 * objects-x.c (truename_via_FONT_prop):
5466 * objects-x.c (truename_via_random_props):
5467 * objects-x.c (truename_via_XListFonts):
5468 * objects-x.c (x_font_truename):
5469 * objects-x.c (x_font_instance_truename):
5470 * objects-x.c (x_font_instance_properties):
5471 * objects-x.c (x_list_fonts):
5472 * objects-x.c (x_find_charset_font):
5473 Mule-ize entire file.
5480 * print.c (std_handle_out_external):
5481 * print.c (debug_print_no_newline):
5482 * print.c (syms_of_print):
5483 Output to all debugger kinds in debug-print.
5484 Fix console-output code under MSWin to actually work.
5486 * process-nt.c (send_signal):
5487 * process-nt.c (nt_create_process):
5488 Use newer Unicode macros.
5490 * process-unix.c (unix_create_process):
5491 * process-unix.c (unix_canonicalize_host_name):
5492 * process-unix.c (unix_open_network_stream):
5498 * search.c (syms_of_search):
5501 * select-msw.c (mswindows_destroy_selection):
5504 * select-x.c (symbol_to_x_atom):
5507 * select.c (syms_of_select):
5510 * sound.c (Fplay_sound_file):
5514 * specifier.c (decode_specifier_type):
5515 * specifier.c (Fvalid_specifier_locale_type_p):
5516 * specifier.c (check_valid_locale_or_locale_type):
5517 * specifier.c (decode_locale):
5518 * specifier.c (decode_locale_type):
5519 * specifier.c (decode_locale_list):
5520 * specifier.c (check_valid_domain):
5521 * specifier.c (decode_specifier_tag_set):
5522 * specifier.c (Fcanonicalize_tag_set):
5523 * specifier.c (Fdefine_specifier_tag):
5524 * specifier.c (Fspecifier_tag_predicate):
5525 * specifier.c (check_valid_inst_list):
5526 * specifier.c (check_valid_spec_list):
5527 * specifier.c (decode_how_to_add_specification):
5528 * specifier.c (check_modifiable_specifier):
5529 * specifier.c (specifier_add_spec):
5530 * specifier.c (boolean_validate):
5531 * specifier.c (display_table_validate):
5534 * specifier.c (syms_of_specifier):
5535 Move some symbols to general-slots.h.
5539 * symbols.c (Fmapatoms):
5540 * symbols.c (Fapropos_internal):
5543 * symbols.c (set_default_buffer_slot_variable):
5544 * symbols.c (set_default_console_slot_variable):
5547 * symbols.c (defsymbol_massage_name_1):
5548 * symbols.c (defkeyword_massage_name):
5549 * symbols.c (deferror_1):
5550 * symbols.c (deferror):
5551 * symbols.c (deferror_massage_name_and_message):
5553 * symeval.h (DEFSYMBOL):
5554 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
5556 * symbols.c (syms_of_symbols):
5560 * symsinit.h (init_win32): New.
5561 Also new is syms_of_dialog_mswindows.
5564 Add new Unicode macros, missing Cygwin wide-char functions,
5565 convenience conversion macros for Qmswindows_tstr, macros for
5566 encapsulating required MSWin <-> Cygwin filename conversions,
5567 prototype for dynamically-extracted (not in NT 3.51) functions.
5572 * tooltalk.c (Fadd_tooltalk_message_arg):
5573 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
5574 * tooltalk.c (Fadd_tooltalk_pattern_arg):
5577 * tooltalk.c (syms_of_tooltalk):
5581 * unexnt.c (unexec):
5582 Fix up headers, declaration of unexec() to be more standard.
5584 2000-07-20 Martin Buchholz <martin@xemacs.org>
5586 * offix.h: Revert change to guard macros - they're used in offix.c!
5588 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5590 * lisp.h: Defsubred Fdelete.
5592 * console-msw.h: (msprinter_default_printer): Added.
5594 * console-msw.c (msprinter_canonicalize_console_connection):
5595 (msprinter_canonicalize_device_connection): Added.
5597 * device-msw.c (msprinter_default_printer):
5598 (Fmswingows_get_default_printer):
5599 (signal_enum_priner_error):
5600 (Fmswingows_printer_list): Added.
5602 2000-07-19 Martin Buchholz <martin@xemacs.org>
5604 * XEmacs 21.2.35 is released.
5606 2000-07-19 Martin Buchholz <martin@xemacs.org>
5608 * select-x.c (x_handle_selection_request):
5609 Text selected in xemacs and pasted into xterm failed to appear.
5610 Spelling fixes and cosmetic changes.
5612 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5614 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
5615 XEmacs frame (fix for doubling chars in dialog boxes).
5617 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
5619 * select.c (select_convert_in, select_convert_out):
5620 Don't call intern() every time.
5622 * select.c (Qselect_convert_in, Qselect_convert_out): New.
5623 * select.c (vars_of_select): Initialise them.
5625 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
5627 * select.c (selection-coercible-types): New.
5629 * select.c (own-selection-internal):
5630 * select.c (get-selection-internal):
5631 MULE bug fix - these should default to COMPOUND_TEXT and not
5632 STRING for MULE. I think.
5634 * select.c (select_convert_out): Use selection-coercible-types
5635 to find types that we can attempt to perform coercions on.
5637 2000-07-18 Martin Buchholz <martin@xemacs.org>
5641 Add coding: cookie to identify encoding.
5643 * mule-canna.c (CANNA_mode_keys): make static.
5644 Use proper prototypes, even for functions of no arguments.
5645 Remove external prototype for Fding().
5647 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
5649 * select.c (syms_of_select): Add missing DEFSUBR.
5651 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
5653 * select.c (get_selection_internal, own_selection_internal):
5654 Make the type default to STRING, rather than placing a nil type
5655 into Vselection_alist.
5657 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
5659 * gpmevent.c (tty_selection_exists_p):
5660 * gpmevent.c (tty_own_selection):
5661 Updated parameter lists.
5663 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
5665 * select.h (selection-alist): Removed declaration.
5667 * select.h (get_local_selection):
5668 * select.c (get_local_selection):
5671 * select.h (convert_selection): Removed declaration.
5672 * select.c (convert_selection): Removed.
5673 This function belongs in Lisp.
5675 * select.h (select_convert_in): Declare.
5676 * select.h (select_convert_out): Declare.
5677 * select.c (select_convert_in): New.
5678 * select.c (select_convert_out): New.
5679 New conversion functions for other files to call.
5681 * select.h (select_notify_buffer_kill): Declare.
5682 * select.c (select_notify_buffer_kill): New.
5683 New functions that get called from kill-buffer.
5685 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
5686 X-specific lisp code.
5688 * select.h: Declare some of the lisp-visible functions for
5691 * select.c (clean_local_selection_data): Removed. This was
5692 a disgusting function, and previously should have been in
5693 select-x.c in any case. The functionality is now provided
5694 in select-convert-from-integer (select.el).
5696 * select.c (available-selection-types): Fixed stupidity where
5697 INTEGER and ATOM got added twice. Also add STRING when we see an
5700 * select.c (get-selection-internal): Removed symbol stripping. No
5701 longer causes conversion when data comes from the internal cache.
5703 * select.c (syms_of_select): Added new functions.
5705 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
5706 error checking - previously this called abort!
5708 * select-x.c (x_own_selection): Changed comment.
5710 * select-x.c (x_handle_selection_request): Use select_convert_out.
5711 Don't mess with selection-alist; it's an internal variable of select.c.
5713 * select-x.c (x_get_foreign_selection): Use select_convert_in.
5715 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
5716 rather than messing with selection-alist.
5718 * select-msw.c (mswindows_get_foreign_selection):
5719 Use TO_INTERNAL_FORMAT rather than hacking.
5721 2000-07-14 Martin Buchholz <martin@xemacs.org>
5723 * process-unix.c (unix_open_multicast_group):
5724 (unix_open_multicast_group): Remove useless casts.
5726 2000-07-13 Martin Buchholz <martin@xemacs.org>
5728 * sound.c (Fplay_sound): Fix `unused variable' warning.
5730 * emacs.c (main): Use correct type for _environ on SCO5.
5732 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
5734 * console.h (own_selection_method):
5735 * console.h (selection_exists_p_method):
5736 * console.h (available_selection_types_method): New.
5737 * console.h (register_selection_data_type_method): New.
5738 * console.h (selection_data_type_name): New.
5740 * console-msw.h (mswindows_destroy_selection): Declare it. New
5741 function & alist to track GlobalAlloc()'d handles that need
5742 releasing when the clipboard data gets replaced or emptied.
5744 * event-msw.c (mswindows_wnd_proc): Call it.
5746 * lisp.h, general.c (Qappend): New symbol representing a
5749 * select.c (own-selection-internal):
5750 * select.c (selection-exists-p):
5751 * select.c (available-selection-types): New.
5752 * select.c (register-selection-data-type): New.
5753 * select.c (selection-data-type-name): New. New functions to deal
5754 with device-specific selection data formats.
5755 * select.c (selection-converter-out-alist): Renamed.
5756 * select.c (selection-converter-in-alist): New.
5757 * select.c (selection-appender-alist): New. Added new alists.
5758 * select.c (syms_of_select, vars_of_select): Added new symbols &
5760 * select.c (get_local_selection): Split.
5761 * select.c: Removed spurious type checking - selections may now be
5762 of any type, not just strings.
5763 * select.c (own-selection-internal):
5765 * select.h, select.c (convert_selection): New. Created
5766 convert_selection() function based on get_local_selection().
5767 * select.h, select.c (QCF_*): New symbols representing mswindows
5769 * select.h, select.c (Qreplace_all, Qreplace_existing): New
5770 symbols representing `how-to-add' modes.
5772 * select-msw.c (x_sym_p): New.
5773 * select-msw.c (symbol_to_ms_cf): New.
5774 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
5775 symbols & clipboard formats. Can also handle string names.
5776 * select-msw.c (mswindows_own_selection):
5777 * select-msw.c (mswindows_selection_exists_p):
5778 Added `data-type' parameter. Use it.
5779 * select-msw.c (mswindows_available_selection_types): New.
5780 * select-msw.c (mswindows_register_selection_data_type): New.
5781 * select-msw.c (mswindows_selection_data_type_name): New.
5782 * select-msw.c (mswindows_own_selection):
5783 * select-msw.c (mswindows_get_foreign_selection):
5784 * select-msw.c (mswindows_selection_exists_p): Rewrote.
5785 * select-msw.c (console_create_select_mswindows): Added new methods.
5786 * select-msw.c (mswindows_destroy_selection): New.
5787 * select-msw.c (Vhandle_alist): New list.
5788 * select-msw.c (mswindows_own_selection):
5790 * select-x.c (x_own_selection):
5791 * select-x.c (x_selection_exists_p):
5792 * select-x.c: Added some comments about maybe using new
5794 * select-x.c (x_own_selection):
5796 * specifier.c: Remove definition of Qappend (now in general.c)
5797 * specifier.c (syms_of_specifier): Remove Qappend.
5799 2000-07-12 Martin Buchholz <martin@xemacs.org>
5801 * config.h.in: Add socklen_t.
5803 * s/decosf4-0.h: No special compiler flags needed or desired.
5804 In particular, undefine _BSD for DEC OSF 4.0.
5806 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5808 * redisplay-msw.c (msprinter_frame_output_end): Added.
5809 (console_type_create_redisplay_mswindows): Referred the above.
5811 * frame.c (setup_frame_without_minibuffer): Do not create a
5812 default minibuffer frame on a printer device.
5814 * frame-msw.c (apply_dc_geometry): Added.
5815 (msprinter_start_page):
5816 (msprinter_init_frame_3):
5817 (msprinter_eject_page): Use it.
5819 * console-msw.h (struct msprinter_frame): Added pix_left and top,
5820 and removed residual duplex and orientation properties.
5822 2000-07-11 Martin Buchholz <martin@xemacs.org>
5824 * eval.c (function_argcount): Work around a DEC CC compiler bug.
5826 * unexalpha.c: Remove system prototypes from C sources!
5828 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
5830 * eval.c: Remove references to M-x edit-options in DEFUNs for
5831 `defvar' and `defconst'.
5833 2000-07-09 Martin Buchholz <martin@xemacs.org>
5835 * config.h.in: Remove SMART_INCLUDE hackery.
5838 * config.h.in: Don't use SMART_INCLUDE.
5840 * postgresql.h: Include libpq-fe.h here. Fix typo.
5841 * inline.c: Simply #include "postgresql.h"
5843 - Don't use SMART_INCLUDE
5844 - Use simply "const".
5845 - Use standard doc string conventions.
5846 - Use correct type for result of PQstatus.
5848 2000-07-09 Martin Buchholz <martin@xemacs.org>
5850 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
5852 C++ compilation changes.
5853 * config.h.in (EXTERN_C): Define.
5854 * config.h.in (not): This is also a C++ keyword.
5855 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
5856 * cm.c: Use EXTERN_C.
5857 * redisplay-tty.c: Use EXTERN_C.
5858 * sysdep.c: Use EXTERN_C. Remove Gould support.
5860 2000-07-09 Martin Buchholz <martin@xemacs.org>
5862 * general.c: Remove duplicate definition for Qfunction.
5864 2000-07-08 Ben Wing <ben@xemacs.org>
5866 * device-msw.c (msprinter_init_device):
5867 * device-msw.c (sync_printer_with_devmode):
5868 * device-msw.c (handle_devmode_changes):
5869 * device-msw.c (print_dialog_worker):
5870 * device-msw.c (Fmsprinter_apply_settings):
5871 * device-msw.c (hash_devmode):
5872 * device-msw.c (Fmsprinter_settings_despecialize):
5873 use Qmswindows_tstr, not Qctext.
5875 * vm-limit.c (check_memory_limits):
5876 avoid infinite loop printing warning messages.
5878 2000-07-05 Craig Lanning <lanning@scra.org>
5880 * Makefile.in.in: Add support for including the Windows resources
5881 when building with the cygwin and mingw targets.
5883 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
5884 not set or not correct.
5885 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
5886 (init_initial_directory): Don't try to use $PWD on the
5887 WIN32_NATIVE target.
5890 [[Add -mwindows to eliminate console window.]] not required --ben
5891 (HAVE_NATIVE_SOUND): removed; now handled by configure.
5892 (MAIL_USE_POP): removed; now handled by configure.
5894 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
5895 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
5896 (HAVE_NATIVE_SOUND): removed; now handled by configure.
5897 (MAIL_USE_POP): removed; now handled by configure.
5898 (ENCAPSULATE_STAT): from Dan Holmsand, added.
5899 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
5900 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
5902 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
5903 up from <winsock.h> via systime.h.
5904 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
5905 (getpagesize): from Dan Holmsand, added.
5906 Added #endif which was left dangling by Ben's mega patch; added
5907 comment to help prevent this in the future.
5909 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
5911 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5913 * console-msw.h (struct mswindows_device): Removed unnecessary
5914 cached device geometry values.
5915 Added update_tick and an accessor macro.
5916 (Lisp_Devmode): Added lrecord declaration.
5917 (struct msprinter_device): Contain devmode as a Lisp object.
5918 Added mswindows_get_selected_frame_hwnd();
5920 * console.h (struct console_methods): Indentation nitpicking.
5922 * device-msw.c (mswindows_init_device): Do not initialize geometry
5923 cache. Initialize update tick.
5924 (mswindows_device_system_metrics): Ask the device for its geometry.
5925 (global_free_2_maybe):
5926 (devmode_to_hglobal):
5927 (handle_printer_changes):
5928 (ensure_not_printing):
5929 (print_dialog_worker):
5930 (Fmsprinter_print_setup_dialog):
5931 (Fmsprinter_print_dialog):
5934 (Fmsprinter_page_setup_dialog): Added functions.
5935 (sync_printer_with_devmode):
5936 (handle_devmode_changes):
5937 (Fmsprinter_get_settings):
5938 (Fmsprinter_select_settings):
5939 (Fmsprinter_apply_settings):
5941 (Fmsprinter_settings_copy):
5942 (Fmsprinter_settings_despecialize):
5946 (hash_devmode): Added functions
5947 (syms_of_device_mswindows): Init devmode lrecord class.
5949 * device.h: Added an exfun for find-device.
5951 * event-msw.c (mswindows_wnd_proc): Do not update the cached
5952 geometry; although, recreate the device compatible DC.
5954 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
5955 (msprinter_init_frame_3):
5956 (msprinter_frame_property):
5957 (msprinter_internal_frame_property_p):
5958 (msprinter_frame_properties):
5959 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
5960 print job properties (will move to device settings).
5962 * lisp.h: Added symbols.
5964 * general.c (syms_of_general): Declared them.
5966 * hash.c (string_hash): Added.
5968 * lrecord.h (lrecord_type): Added devmode lrecord type.
5970 2000-07-02 Mike Sperber <mike@xemacs.org>
5972 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
5975 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
5977 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
5980 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
5982 * data.c (Fstring_to_number): Don't recognize floating point if
5985 2000-06-22 Martin Buchholz <martin@xemacs.org>
5987 * glyphs-widget.c (tab_control_query_geometry):
5988 (widget_query_geometry):
5989 (button_query_geometry):
5990 * glyphs.c (text_query_geometry):
5991 Enforce type correctness.
5993 2000-06-18 Martin Buchholz <martin@xemacs.org>
5995 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
5996 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
5998 2000-06-17 Martin Buchholz <martin@xemacs.org>
6000 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
6001 conflicts with gcc's fixincluded version of FOO.h.
6003 * glyphs.h (image_instance_geometry): Remove trailing `,'
6005 2000-06-08 Mike Alexander <mta@arbortext.com>
6007 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
6008 (shove_thread): Don't write the same output twice
6009 (make_ntpipe_output_stream): Increase priority of shove thread
6010 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
6012 (ntpipe_shove_closer): Don't delete the pipe until we're done with
6015 2000-06-12 Ben Wing <ben@xemacs.org>
6017 * s\mingw32.h (sigset):
6018 * s\windowsnt.h (sigset):
6019 rename msw_ to mswindows_ for consistency with general convention.
6021 2000-06-12 Ben Wing <ben@xemacs.org>
6024 * console-msw.c (mswindows_get_console_hwnd):
6025 * console-msw.c (mswindows_ensure_console_allocated):
6026 * console-msw.c (mswindows_hide_console):
6027 * console-msw.c (mswindows_show_console):
6028 * console-msw.c (mswindows_ensure_console_buffered):
6029 * console-msw.c (mswindows_output_console_string):
6030 * console-msw.c (mswindows_windows9x_p):
6032 * device-msw.c (mswindows_get_workspace_coords):
6033 * device-msw.c (mswindows_device_system_metrics):
6034 * dialog-msw.c (mswindows_popup_dialog_box):
6035 * event-msw.c (mswindows_wnd_proc):
6036 * frame-msw.c (mswindows_size_frame_internal):
6037 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6038 * menubar-msw.c (displayable_menu_item):
6039 * menubar-msw.c (mswindows_char_is_accelerator):
6041 * nt.c (mswindows_sigset):
6042 * nt.c (mswindows_sigrelse):
6043 * nt.c (mswindows_sigpause):
6044 * nt.c (mswindows_raise):
6045 * nt.c (timer_proc):
6047 * ntproc.c (find_child_console):
6048 * ntproc.c (sys_kill):
6050 * print.c (std_handle_out_external):
6051 * process-nt.c (find_child_console):
6052 * process-nt.c (send_signal_the_95_way):
6053 * process-nt.c (ensure_console_window_exists):
6054 * process-nt.c (nt_create_process):
6056 rename msw_ to mswindows_ for consistency with general convention.
6060 include nt.h, not syswindows.h.
6062 * nt.c (mswindows_fstat):
6063 * nt.c (mswindows_stat):
6064 prefix mswindows_ instead of attempting to directly override the
6065 library functions. fix declarations.
6068 include syswindows.h. move some sysdep.h stuff here.
6071 include syswindows.h, not <windows.h>.
6079 * sysdep.c (sys_fstat):
6080 * sysdep.c (sys_stat):
6081 call mswindows versions when appropriate.
6084 move mswin decls to nt.h.
6087 add long comment describing appropriate use of the various windows
6090 2000-06-11 Ben Wing <ben@xemacs.org>
6092 * device-x.c: Correct doc string for sixth arg of x-get-resource.
6094 2000-06-10 Ben Wing <ben@xemacs.org>
6096 * Makefile.in.in (release):
6097 Correction to make sure xemacs.exe always dumped when correct.
6101 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
6103 * buffer.c (set_buffer_internal):
6104 [[[[2]]]]: Remove HAVE_FEP code.
6106 * buffer.c (init_initial_directory):
6110 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
6114 * callproc.c (call_process_cleanup):
6115 * callproc.c (Fold_call_process_internal):
6116 * callproc.c (child_setup):
6117 * callproc.c (getenv_internal):
6118 * callproc.c (init_callproc):
6119 * callproc.c (vars_of_callproc):
6120 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
6121 __CYGWIN32__ -> CYGWIN.
6122 DOS_NT -> WIN32_NATIVE.
6123 Remove MSDOS support/references, converting to WIN32_NATIVE
6125 __MINGW32__ -> MINGW.
6126 Fix windows.h includes.
6127 Remove bogus HAVE_NTGUI.
6133 mswindows_message_outputted added for use in allowing startup
6134 errors on the console to be seen.
6136 * console-msw.c (msw_ensure_console_allocated):
6137 * console-msw.c (msw_output_console_string):
6138 * console-msw.c (DHEADER):
6139 * console-msw.c (DOPAQUE_DATA):
6140 * console-msw.c (DEVENT):
6141 * console-msw.c (DCONS):
6142 * console-msw.c (DCONSCDR):
6143 * console-msw.c (DSTRING):
6144 * console-msw.c (DVECTOR):
6145 * console-msw.c (DSYMBOL):
6146 * console-msw.c (DSYMNAME):
6149 * console-stream.c (stream_init_console):
6150 Fix text/binary problems.
6153 * device-msw.c (mswindows_finish_init_device):
6154 * device-msw.c (mswindows_delete_device):
6157 * device.c (handle_asynch_device_change):
6161 * dgif_lib.c (DGifOpenFileName):
6162 * dgif_lib.c (DGifOpenFileHandle):
6163 * dgif_lib.c (DGifGetLine):
6164 * dgif_lib.c (DGifGetPixel):
6165 Added config.h/lisp.h, fix up includes.
6172 * dired.c (file_name_completion):
6173 * dired.c (Ffile_attributes):
6174 * dired.c (syms_of_dired):
6178 * dumper.c (pdump_file_unmap):
6179 * dumper.c (pdump_load):
6183 * editfns.c (Ftemp_directory):
6184 * editfns.c (user_login_name):
6185 * editfns.c (Fuser_real_login_name):
6186 * editfns.c (get_home_directory):
6189 * elhash.c (finish_marking_weak_hash_tables):
6190 [[[[5]]]]: Fix GCC warnings.
6193 * emacs.c (mswindows_handle_hardware_exceptions):
6194 * emacs.c (make_arg_list_1):
6196 * emacs.c (Fkill_emacs):
6197 * emacs.c (Fdump_emacs):
6199 Fix problems with nested crashes, add long comment.
6201 * event-Xt.c (init_event_Xt_late):
6205 * event-msw.c (mswindows_dde_callback):
6206 * event-msw.c (mswindows_handle_sticky_modifiers):
6207 * event-msw.c (mswindows_wnd_proc):
6211 * events.c (character_to_event):
6215 * fileio.c (Ffile_name_directory):
6216 * fileio.c (Ffile_name_nondirectory):
6217 * fileio.c (directory_file_name):
6218 * fileio.c (Fexpand_file_name):
6219 * fileio.c (Fsubstitute_in_file_name):
6220 * fileio.c (Ffile_name_absolute_p):
6221 * fileio.c (check_executable):
6222 * fileio.c (Ffile_readable_p):
6223 * fileio.c (Ffile_accessible_directory_p):
6224 * fileio.c (Ffile_modes):
6225 * fileio.c (Funix_sync):
6226 * fileio.c (vars_of_fileio):
6229 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
6231 Expand getdefdir defn.
6232 Fix bogus rename() comment.
6234 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
6235 to use standard XEmacs include files, e.g. sysfile.h, rather
6236 than system-specific includes.
6242 * frame.c (vars_of_frame):
6246 * getloadavg.c (getloadavg):
6248 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
6249 (We don't use it elsewhere in the code; just add a comment.)
6256 * glyphs-msw.c (mswindows_resource_instantiate):
6259 * glyphs-x.c (x_native_layout_instantiate):
6262 * gui-msw.c (Fmswindows_shell_execute):
6271 * lread.c (locate_file_in_directory_mapper):
6278 * mem-limits.h (get_lim_data):
6290 * nt.c (rva_to_section):
6291 * nt.c (mswindows_executable_type):
6293 Fix closedir() defn.
6296 [[[[8]]]]: *_OK defs moved to sysfile.h.
6305 * print.c (std_handle_out_external):
6309 * process-nt.c (nt_create_process):
6311 try to fix process quoting somewhat.
6313 * process-unix.c (unix_create_process):
6317 * process.c (vars_of_process):
6324 * realpath.c (xrealpath):
6327 * redisplay-tty.c (init_tty_for_redisplay):
6337 * sheap.c (more_static_core):
6338 * sheap.c (report_sheap_usage):
6342 * signal.c (alarm_signal):
6349 * strftime.c (zone_name):
6352 * symsinit.h (init_sunpro):
6356 commctrl.h not in Cygwin b20.1.
6360 * sysdep.c (sys_subshell):
6361 * sysdep.c (init_baud_rate):
6362 * sysdep.c (emacs_get_tty):
6363 * sysdep.c (emacs_set_tty):
6364 * sysdep.c (tty_init_sys_modes_on_device):
6365 * sysdep.c (init_system_name):
6366 * sysdep.c (sys_open):
6367 * sysdep.c (interruptible_open):
6368 * sysdep.c (sys_fopen):
6369 * sysdep.c (sys_mkdir):
6370 * sysdep.c (sys_rename):
6371 * sysdep.c (get_process_times_1):
6378 * sysdir.h (DIRENTRY_NONEMPTY):
6381 * sysdll.c (dll_init):
6387 added text/binary defs.
6393 * sysproc.h (EDESTADDRREQ):
6394 * sysproc.h (poll_fds_for_input):
6411 Always define WIN32_LEAN_AND_MEAN.
6413 * unexcw.c (unexec):
6417 * unexec.c (copy_text_and_data):
6418 * unexec.c (adjust_lnnoptrs):
6422 * unexnt.c (_start):
6425 2000-06-07 Ben Wing <ben@xemacs.org>
6427 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
6428 was used only as a model. We've long since extracted any useful
6429 logic or code out of this. (I just did an exhaustive search.)
6431 * s\msdos.h: Removed.
6433 * s\windows95.h: Removed.
6435 2000-06-10 Ben Wing <ben@xemacs.org>
6439 Don't use extern with fun defs.
6443 Remove nt\inc include.
6444 Remove getdisk, getdefdir. (The former is unused, the latter
6445 expanded in fileio.h.)
6448 * s\windowsnt.h (WIN32_NATIVE):
6449 * s\windowsnt.h (HAVE_STRCASECMP):
6451 Add long comment about preprocessor changes.
6452 Remove getdisk, getdefdir. (The former is unused, the latter
6453 expanded in fileio.h.)
6455 2000-06-10 Ben Wing <ben@xemacs.org>
6464 Remove bogus/unused NO_SOCK_SIGIO.
6466 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
6468 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
6471 2000-06-04 Mike Sperber <mike@xemacs.org>
6473 * casetab.c (set_case_table): For `set-standard-case-table',
6474 actually deposit the new case tables where the rest of XEmacs can
6477 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
6479 * data.c (Faset): Don't cast XCHAR() to unsigned char.
6481 2000-06-05 Ben Wing <ben@xemacs.org>
6483 * callproc.c (child_setup): Don't do close_load_descs() under
6484 MS Windows. Put in a comment explaining why.
6486 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
6488 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
6489 Toolkit shell" which breaks `kill-compilation' on Windows NT
6490 native, retaining STDERR handling improvements.
6492 2000-06-01 Andreas Jaeger <aj@suse.de>
6494 * s/s390.h: Support for S390, based on a patch by Martin
6495 Schwidefsky <schwidefsky@de.ibm.com>.
6497 2000-05-30 Andy Piper <andy@xemacs.org>
6499 * window.c (allocate_window):
6500 (make_dummy_parent):
6501 (Fset_window_configuration): use new hashtable type.
6503 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
6504 (struct image_instantiator_methods):
6505 (struct Lisp_Image_Instance): make instance geometry signed.
6507 * glyphs.c (instantiate_image_instantiator):
6508 (image_instance_query_geometry):
6509 (image_instance_layout):
6510 (image_instance_layout):
6511 (query_string_geometry):
6512 (text_query_geometry):
6513 (image_instantiate):
6514 (image_instantiate):
6515 (cache_subwindow_instance_in_frame_maybe):
6516 (subwindow_query_geometry): make instance geometry signed.
6518 * glyphs-widget.c (widget_query_geometry):
6520 (button_query_geometry):
6521 (tree_view_query_geometry):
6522 (tab_control_query_geometry):
6523 (layout_query_geometry):
6525 (native_layout_layout): make instance geometry signed.
6527 2000-05-29 Olivier Galibert <galibert@pobox.com>
6529 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
6532 * general.c (syms_of_general): Add Qfull_assoc symbol.
6534 * data.c (finish_marking_weak_lists): Mark full-assoc lists
6536 (decode_weak_list_type): Decode full-assoc type.
6537 (encode_weak_list_type): Encode full-assoc type.
6538 (Fmake_weak_list): Update doc string.
6540 2000-05-30 Andy Piper <andy@xemacs.org>
6542 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
6544 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
6545 (decode_hash_table_weakness): ditto.
6546 (Fhash_table_weakness): ditto.
6547 (Fhash_table_type): ditto.
6548 (finish_marking_weak_hash_tables): ditto.
6549 (hash_table_weakness_validate): ditto.
6550 (syms_of_elhash): ditto.
6552 2000-05-28 Martin Buchholz <martin@xemacs.org>
6554 * XEmacs 21.2.34 is released.
6556 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
6558 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
6560 (updating_line_start_cache): Gone.
6561 (regenerate_window): Replace resetting of VERTICAL_CLIP by
6562 generic code to force a minimum of 1 line laid out in the
6565 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
6567 * glyphs.c (instantiate_image_instantiator): Check for initialized
6568 height & width no longer special cases IMAGE_NOTHING.
6569 (nothing_instantiate): Set height and width of instance.
6571 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
6573 * unexelf.c (unexec): Search for ".data" section.
6574 Initialize new_data2_offset from old_data_index.
6575 Remove redundant check for ElfW.
6577 2000-05-23 Andy Piper <andy@xemacs.org>
6579 * glyphs.c (get_image_instantiator_governing_domain): allow more
6580 specific domains as the governing domain rather than expecting an
6581 exact match. This fixes problems with layouts.
6583 2000-05-22 Andy Piper <andy@xemacs.org>
6585 * redisplay-output.c (compare_runes): check for non-images
6587 * glyphs.c (set_glyph_dirty_p): ditto.
6588 (update_glyph_cachel_data): ditto.
6590 * glyphs-widget.c (layout_post_instantiate): ditto.
6591 (layout_post_instantiate): ditto.
6593 * event-msw.c (mswindows_wnd_proc): warning removal.
6595 2000-05-12 Craig Lanning <CraigL@DyCon.com>
6597 * s\mingw32.h: Added #undef for CLASH_DETECTION.
6599 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
6601 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
6603 * nt.c (rva_to_section): mingw32 needs rva_to_section.
6604 (mswindows_executable_type): mingw32 now has enough headers for
6607 2000-05-20 Andy Piper <andy@xemacs.org>
6609 * console-msw.c (mswindows_output_last_error): ; -> ,
6611 2000-05-12 Andy Piper <andy@xemacs.org>
6613 * console-msw.c (FROB): compare ints with ints.
6615 2000-05-11 Andy Piper <andy@xemacs.org>
6617 * glyphs-x.c (x_finalize_image_instance): make minimal build
6620 2000-05-20 Ben Wing <ben@xemacs.org>
6623 * event-Xt.c (vars_of_event_Xt):
6624 move modifier-keys-are-sticky to event-stream.c.
6627 * event-msw.c (mswindows_enqueue_mouse_button_event):
6628 * event-msw.c (key_needs_default_processing_p):
6629 * event-msw.c (XEMSW_LCONTROL):
6630 * event-msw.c (mswindows_handle_sticky_modifiers):
6631 * event-msw.c (FROB):
6632 * event-msw.c (clear_sticky_modifiers):
6633 * event-msw.c (output_modifier_keyboard_state):
6634 * event-msw.c (output_alt_keyboard_state):
6635 * event-msw.c (mswindows_wnd_proc):
6636 * event-msw.c (mswindows_modifier_state):
6637 * event-msw.c (emacs_mswindows_handle_magic_event):
6638 implement sticky modifiers.
6641 * event-stream.c (vars_of_event_stream):
6642 move modifier-keys-are-sticky here.
6648 implement map-range-table.
6651 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
6653 * redisplay-tty.c (reset_tty_modes):
6654 (tty_redisplay_shutdown): Adjust argument type to
6655 tty_frame_output_end.
6657 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
6659 * eval.c (Fbacktrace): Don't output a line with only right
6662 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
6664 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
6665 (Fpq_reset_poll): Ditto.
6667 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
6669 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
6671 2000-05-16 Ben Wing <ben@xemacs.org>
6674 * buffer.c (dfc_convert_to/from_internal_format):
6675 * buffer.c (reinit_vars_of_buffer):
6676 Fix conversion functions to allow reentrancy.
6679 * console-msw.c (mswindows_output_last_error):
6680 New fun, generally useful -- output a human-readable
6681 version of GetLastError() on the console.
6684 * console-msw.h (struct mswindows_frame):
6685 Changes for DeferWindowPos. Declare mswindows_output_last_error().
6687 * console-stream.c (stream_output_begin):
6688 * console-stream.c (stream_output_end):
6689 * console-stream.c (stream_output_vertical_divider):
6690 * console-stream.c (stream_clear_region):
6691 * console-stream.c (stream_flash):
6692 * console-stream.c (console_type_create_stream):
6693 Delete blank stream methods, not needed.
6695 * console.h (struct console_methods):
6696 Split begin/end methods into window and frame.
6699 * event-msw.c (mswindows_handle_paint):
6700 * event-msw.c (output_alt_keyboard_state):
6701 * event-msw.c (mswindows_wnd_proc):
6702 * event-msw.c (vars_of_event_mswindows):
6703 Comment about problems with ignored-expose.
6704 Define mswindows-debug-events; not really implemented.
6706 * frame-msw.c (mswindows_init_frame_1):
6710 * glyphs-msw.c (begin_defer_window_pos):
6711 * glyphs-msw.c (mswindows_unmap_subwindow):
6712 * glyphs-msw.c (mswindows_map_subwindow):
6713 * glyphs-msw.c (mswindows_resize_subwindow):
6714 Use DeferWindowPos to reduce flashing when mapping/unmapping.
6716 * glyphs.c (make_image_instance_1):
6719 * gutter.c (Fredisplay_gutter_area):
6720 Use new begin/end methods.
6722 * lisp.h (Dynarr_new2):
6726 * redisplay-msw.c (mswindows_frame_output_begin):
6727 * redisplay-msw.c (mswindows_frame_output_end):
6728 * redisplay-msw.c (console_type_create_redisplay_mswindows):
6729 New begin/end methods -- handle DeferWindowPos.
6731 * redisplay-output.c (redisplay_move_cursor):
6732 * redisplay-output.c (redraw_cursor_in_window):
6733 * redisplay-output.c (redisplay_update_line):
6734 * redisplay-output.c (redisplay_output_window):
6735 New begin/end methods.
6738 * redisplay-tty.c (tty_frame_output_begin):
6739 * redisplay-tty.c (tty_frame_output_end):
6740 * redisplay-tty.c (console_type_create_redisplay_tty):
6741 New begin/end methods.
6744 * redisplay-x.c (x_window_output_begin):
6745 * redisplay-x.c (x_window_output_end):
6746 * redisplay-x.c (console_type_create_redisplay_x):
6747 New begin/end methods.
6749 * redisplay.c (redisplay_frame):
6750 * redisplay.c (Fredisplay_echo_area):
6751 New begin/end methods.
6752 use MAYBE_DEVMETH for clear_frame; it may not exist.
6754 * window.h (WINDOW_XFRAME):
6755 WINDOW_XFOO macros -- get locale and decode struct pointer.
6758 2000-05-12 Ben Wing <ben@xemacs.org>
6761 * emacs.c (ensure_no_quitting_from_now_on):
6762 * emacs.c (fatal_error_signal):
6763 * emacs.c (mswindows_handle_hardware_exceptions):
6765 * emacs.c (Fkill_emacs):
6766 * emacs.c (shut_down_emacs):
6767 * emacs.c (assert_failed):
6768 various improvements in fatal error handling.
6771 move preparing_for_armageddon to emacs.c.
6774 declare fatal_error_in_progress.
6777 * print.c (std_handle_out_external):
6778 * print.c (std_handle_out_va):
6779 * print.c (stderr_out):
6780 * print.c (stdout_out):
6781 use console under mswin when no standard output.
6782 don't do code conversion during fatal error.
6784 * scrollbar.c (Fscrollbar_page_up):
6785 * scrollbar.c (Fscrollbar_page_down):
6786 fix missing else. reindent.
6788 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
6792 * glyphs.h (GLYPH_CACHEL_DESCENT):
6793 (GLYPH_CACHEL_DESCENT):
6794 (GLYPH_CACHEL_DESCENT):
6795 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
6796 used in case these are inline functions.
6797 Use more absurd values to error check.
6799 include window.h for error check functions.
6801 2000-05-11 Ben Wing <ben@xemacs.org>
6803 * cmdloop.c (Freally_early_error_handler):
6804 Display message box under windows; otherwise, message will disappear
6805 before it can be viewed.
6808 * console-msw.c (Fmswindows_message_box):
6809 * console-msw.c (FROB):
6810 * console-msw.c (syms_of_console_mswindows):
6811 Define new fun `mswindows-message-box'.
6812 #### I will merge this into `popup-dialog-box'; just give me
6816 * general.c (syms_of_general):
6817 Some new symbols used in `mswindows-message-box'.
6820 * glyphs.c (Fset_image_instance_property):
6821 put warning in this fun.
6824 * glyphs.h (GLYPH_CACHEL_WIDTH):
6825 * glyphs.h (GLYPH_CACHEL_ASCENT):
6826 * glyphs.h (GLYPH_CACHEL):
6827 * glyphs.h (GLYPH_CACHEL_GLYPH):
6828 define error-checking versions to try to catch a bug i've seen --
6829 redisplay gets in an infinite loop because the glyph width of the
6830 continuation glyph is 65535.
6833 Extern message-box stuff.
6835 * window.c (allocate_window):
6836 * window.c (make_dummy_parent):
6837 * window.c (Fset_window_configuration):
6838 Use EQUAL not EQ for subwindow caches to make them work a bit
6839 better. (Something is still very broken.)
6842 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
6844 * glyphs.c (image_instantiate): Suppress gcc warnings.
6845 (Fmake_image_instance): Fix doc string.
6846 * specifier.c (Fmake_specifier): Ditto.
6848 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
6850 * paths.h.in (PATH_LOCK): Removed.
6851 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
6852 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
6854 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
6856 * fns.c (Ffeaturep): Update e-mail address in doc-string.
6857 Document (featurep '(and xemacs 21.02)).
6859 2000-05-09 Ben Wing <ben@xemacs.org>
6861 * buffer.c (complex_vars_of_buffer):
6862 update modeline-format doc.
6865 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
6868 timeline of all released versions of Emacs, for use in creating
6869 authorship comments and in synching up.
6871 * glyphs-widget.c (image_instantiator_buttons):
6872 * glyphs-widget.c (image_instantiator_edit_fields):
6873 * glyphs-widget.c (image_instantiator_combo_box):
6874 * glyphs-widget.c (image_instantiator_scrollbar):
6875 * glyphs-widget.c (image_instantiator_progress_guage):
6876 * glyphs-widget.c (image_instantiator_tree_view):
6877 * glyphs-widget.c (image_instantiator_tab_control):
6878 * glyphs-widget.c (image_instantiator_labels):
6879 * glyphs-widget.c (image_instantiator_layout):
6880 * glyphs-widget.c (image_instantiator_native_layout):
6881 rename decode_domain method to governing_domain.
6884 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
6885 * glyphs.c (add_entry_to_device_ii_format_list):
6886 make sure we don't put an entry more than once into the list.
6887 * glyphs.c (check_instance_cache_mapper):
6888 *************************************************************
6889 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
6891 *************************************************************
6892 * glyphs.c (get_image_instantiator_governing_domain):
6893 clean up, expand on new concept of governing domain.
6894 * glyphs.c (instantiate_image_instantiator):
6895 * glyphs.c (allocate_image_instance):
6896 use governing_domain instead of cache_domain in naming.
6897 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
6898 * glyphs.c (make_image_instance_1):
6899 * glyphs.c (Fmake_image_instance):
6900 allow for any domain (not just device), and process the
6901 governing domain correctly. very big doc fix.
6902 * glyphs.c (Fimage_instance_domain):
6903 new primitive, to retrieve the governing domain of an image instance.
6904 * glyphs.c (image_instantiate):
6905 use new governing_domain stuff. this fixes a crash you could get
6906 by instantiating certain widget glyphs in frame locales. (should
6907 signal an error instead of crashing.)
6908 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
6909 * glyphs.c (Fglyphp): clean up doc.
6910 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
6911 * glyphs.c (syms_of_glyphs):
6912 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
6913 * glyphs.c (image_instantiator_format_create): add some comments about
6915 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
6916 for current-display-table. (Apparently Hrjove implemented in 1998 a
6917 design I wrote up in 1996, but didn't update the doc string.)
6919 * glyphs.h: clean up a doc string.
6920 * glyphs.h (governing_domain):
6921 * glyphs.h (struct image_instantiator_methods):
6922 changes for governing_domain stuff.
6925 * gutter.c (Fgutter_specifier_p):
6926 * gutter.c (Fgutter_size_specifier_p):
6927 * gutter.c (Fgutter_visible_specifier_p):
6929 * objects.c (Fcolor_specifier_p):
6930 * objects.c (Ffont_specifier_p):
6931 * objects.c (Fface_boolean_specifier_p):
6932 doc strings moved to make-*-specifier.
6934 * redisplay.c (add_disp_table_entry_runes_1):
6935 * redisplay.c (generate_fstring_runes):
6936 * redisplay.c (screen):
6937 add random comments and doc strings.
6940 * specifier.c (Fmake_specifier):
6941 major overhaul of this doc string.
6943 * specifier.c (Fvalid_specifier_domain_p):
6944 comment about the bogosity of image instances being domains.
6945 * specifier.c (decode_domain):
6946 now non-static, used in glyphs.c.
6947 * specifier.c (specifier_instance):
6948 comment about the bogosity of image instances being domains.
6949 * specifier.c (Fgeneric_specifier_p):
6950 move doc string to make-generic-specifier.
6951 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
6955 * specifier.h (DOMAIN_FRAME):
6956 * specifier.h (DOMAIN_LIVE_P):
6957 * specifier.h (DOMAIN_XDEVICE):
6959 add comments about problems with these macros.
6960 prototype for decode_domain.
6963 * toolbar.c (Ftoolbar_specifier_p):
6964 move doc string to `make-toolbar-specifier'.
6966 * window.c (window_unmap_subwindows_cache_mapper):
6967 *************************************************************
6968 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
6970 *************************************************************
6972 2000-05-09 Andy Piper <andy@xemacs.org>
6974 * glyphs.h: declare reset_frame_subwindow_instance_cache.
6976 * window.c (Fset_window_configuration): reset the frame subwindow
6977 cache and re-initialize the window subwindow caches.
6979 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
6981 2000-05-09 Ben Wing <ben@xemacs.org>
6983 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
6986 2000-04-26 Mike Woolley <mike@bulsara.com>
6988 * ntheap.c: Changed recreate_heap to limit the amount reserved
6989 for the heap to that which is actually available. Also now
6990 displays a message box (with some dignostics) in the event that
6991 it still can't start.
6993 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
6995 * callproc.c (Fold_call_process_internal): GCPRO path
6997 2000-05-08 Jan Vroonhof <jan@xemacs.org>
6999 Patch by Bill Perry.
7001 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
7002 back data instead of #ifdef.
7003 (Fscrollbar_page_down): ditto.
7005 2000-05-07 Ben Wing <ben@xemacs.org>
7008 Kludge for defining Qmswindows_tstr.
7011 * nt.c (open_input_file):
7012 * nt.c (open_output_file):
7013 * nt.c (rva_to_section):
7014 * nt.c (mswindows_executable_type):
7015 Move all memory-mapped-file routines here (some were in unexnt.c,
7016 which is bad because they are used by process-nt.c, and unexnt
7017 won't be around when portable dumping). Synched the above routines
7021 Removed ifdef'd out bogus code.
7022 Fixed some prototypes.
7025 * nt.h (OFFSET_TO_RVA):
7026 * nt.h (RVA_TO_OFFSET):
7027 * nt.h (RVA_TO_PTR):
7028 Moved the memory-mapped-file structures, macros and prototypes
7029 here, to parallel nt.c. ntheap.h should really be removed
7030 entirely, and it's a non-portable-dumper specific file.
7032 * ntheap.h (round_to_next):
7033 Moved the memory-mapped-file structures, macros and prototypes
7036 * ntproc.c (compare_env):
7037 Moved rva_to_section and mswindows_executable_type to nt.c.
7038 Moved compare_env to process-nt.c.
7039 ntproc.c will die, one day.
7041 * ntproc.c (sys_spawnve):
7042 Account for win32_ -> mswindows_.
7045 * process-nt.c (struct nt_process_data):
7046 * process-nt.c (ensure_console_window_exists):
7047 * process-nt.c (compare_env):
7048 * process-nt.c (nt_create_process):
7049 * process-nt.c (nt_kill_process_by_pid):
7050 * process-nt.c (syms_of_process_nt):
7051 * process-nt.c (vars_of_process_nt):
7052 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
7053 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
7054 changes). Eliminate our old `nt-quote-process-args' mechanism.
7055 Synch up nt_create_process with FSF 20.6 sys_spawnve.
7056 Move compare_env here from ntproc.c.
7058 * process.c (Fprocess_send_region):
7059 Takes an optional fourth argument, BUFFER, which should fix some
7060 problems with call-process.
7063 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
7066 Move ICC_BAR_CLASSES to syscommctrl.h.
7067 Add preliminary macros for MSWindows/Mule. More to come.
7070 * unexnt.c (unexec):
7071 open_output_file moved to nt.c.
7074 2000-05-05 Andy Piper <andy@xemacs.org>
7076 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
7077 instance from the frame cache also since GC may catch up too late
7078 to make frame deletion sane.
7080 2000-05-04 Andy Piper <andy@xemacs.org>
7082 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
7083 (x_finalize_image_instance): ungcpro on deletion.
7085 * glyphs.c (image_instantiator_format_create): give pointers a
7086 query geometry method so that the geometry is at least set.
7088 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
7089 initialize layouts if using widgets.
7091 2000-05-03 Andy Piper <andy@xemacs.org>
7093 * nt.c: remove bogus reference to sysmmsystem.h
7095 * gui-x.c (popup_selection_callback): fix no selection abort.
7097 2000-05-02 Andy Piper <andy@xemacs.org>
7099 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
7100 (mswindows_widget_instantiate): ditto.
7102 * glyphs-widget.c (initialize_widget_image_instance): initialize
7104 (widget_instantiate): cope with children and items in the same
7107 * glyphs.c (mark_image_instance): cope with children as a first
7109 (image_instance_equal): ditto.
7110 (image_instance_hash): ditto.
7111 (image_instance_changed): ditto.
7113 2000-04-30 Andy Piper <andy@xemacs.org>
7115 * glyphs.c (subwindow_query_geometry): new function. Return some
7117 (subwindow_instantiate): don't assign dimensions if none have been
7119 (image_instantiator_format_create): add subwindow_query_geometry.
7120 (print_image_instance): cope with layouts as widgets.
7122 2000-04-29 Andy Piper <andy@xemacs.org>
7124 * frame.c (delete_frame_internal): call
7125 free_frame_subwindow_instance_cache so that all subwindows are
7126 finalized before their parent.
7127 (mark_frame): remove subwindow_cachels.
7128 (Fmake_frame): remove subwindow_cachel manipulation.
7129 (allocate_frame_core): subwindow_instance_cache is a weak list.
7130 (delete_frame_internal): set subwindow_instance_cache to nil.
7132 * glyphs-msw.c (mswindows_finalize_image_instance): make double
7134 (mswindows_finalize_image_instance): use the device
7135 not the domain as the domain may have died already.
7137 * glyphs-x.c (x_finalize_image_instance): ditto.
7138 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
7141 * redisplay-output.c (redisplay_unmap_subwindows): update for
7142 subwindow instance cache as a weak list.
7143 (redisplay_unmap_subwindows_maybe): ditto.
7144 (redisplay_unmap_subwindows_except_us): ditto.
7146 * glyphs.c (unmap_subwindow): error checking will check the domain
7147 so don't deal with it here. Don't use cachels anymore.
7148 (map_subwindow): ditto.
7149 (update_subwindow_cachel_data): remove old accessor names.
7150 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
7151 (Fresize_subwindow): don't update cachel.
7152 (mark_subwindow_cachels):
7153 (update_subwindow_cachel_data):
7154 (add_subwindow_cachel):
7155 (get_subwindow_cachel_index):
7156 (update_subwindow_cachel):
7157 (reset_subwindow_cachels):
7158 (mark_subwindow_cachels_as_not_updated): deleted.
7159 (cache_subwindow_instance_in_frame_maybe): new function. Add a
7160 subwindow instance to the frame cache.
7161 (find_matching_subwindow): update for subwindow instance cache as
7163 (update_widget_instances): ditto.
7164 (image_instance_type_to_mask):inlined.
7165 (free_frame_subwindow_instance_cache): new function. finalize all
7166 subwindows that are instantiated.
7168 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
7169 of cachel information.
7170 (IMAGE_INSTANCE_DISPLAY_X):
7171 (IMAGE_INSTANCE_DISPLAY_Y):
7172 (IMAGE_INSTANCE_DISPLAY_WIDTH):
7173 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
7174 (XIMAGE_INSTANCE_DISPLAY_X):
7175 (XIMAGE_INSTANCE_DISPLAY_Y):
7176 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
7177 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
7178 remove subwindow_cachel structure and function references.
7179 (image_instance_type_to_mask): inline from glyphs.c
7181 * redisplay.c (redisplay_frame): remove subwindow_cachel
7184 * frame.h (struct frame): remove subwindow_cachels.
7185 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
7187 * frameslots.h: add subwindow_instance_cache.
7189 * window.c (replace_window): check subwindow cache of replacement.
7190 (window_unmap_subwindows_cache_mapper):
7191 (window_unmap_subwindows): new functions. Unmap all subwindows
7192 cached on this window.
7193 (mark_window_as_deleted): unmap all subwindows.
7195 2000-04-27 Andy Piper <andy@xemacs.org>
7197 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
7199 * glyphs-widget.c (widget_layout): return something.
7200 (layout_layout): return something. Fail if not initialized.
7201 (layout_query_geometry): ditto.
7202 (image_instantiator_native_layout): new function. Initialized the
7204 (widget_instantiate): don't do layout stuff here.
7206 * glyphs.c (instantiate_image_instantiator): reorded calling or
7207 instantiate and post_instantiate with layout in between.
7208 (image_instance_layout): be more selective about deciding whether
7209 the layout has been done or not.
7211 * glyphs.h (struct image_instantiator_methods): return a value
7214 2000-04-26 Andy Piper <andy@xemacs.org>
7216 * glyphs.c (allocate_image_instance): make initial width and
7217 height unspecified. Set initialized to 0.
7219 * syscommctrl.h new file. Encapsulates commctrl.h.
7221 * syswindows.h new file. Encapsulates windows.h.
7223 * ntplay.c: use new syswindows.h and syscommctrl.h header.
7225 * console-msw.h: ditto.
7227 * redisplay-tty.c (tty_output_display_block): remove layout references.
7229 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
7230 window handle rather than just the frame.
7232 * glyphs.c (mark_image_instance): remove layout references.
7233 (print_image_instance): ditto.
7234 (image_instance_equal): ditto.
7235 (image_instance_hash): ditto.
7236 (decode_image_instance_type): ditto.
7237 (encode_image_instance_type): ditto.
7238 (image_instantiate): ditto.
7239 (allocate_glyph): ditto.
7240 (Fimage_instance_height): ditto.
7241 (Fimage_instance_width): ditto.
7242 (update_subwindow): ditto.
7244 * redisplay-x.c (x_output_display_block): recode for layouts as
7247 * redisplay-output.c (redisplay_output_layout): recode for layouts
7249 (compare_runes): remove layout references.
7251 * redisplay-msw.c (mswindows_output_display_block): recode for
7254 * glyphs-widget.c (image_instantiator_layout): remove
7255 layout_possible_dest_types.
7256 (layout_possible_dest_types): deleted.
7258 * glyphs.h (image_instance_type): remove layout references.
7259 (struct Lisp_Image_Instance): ditto. Add initialized flag.
7260 (IMAGE_INSTANCE_INITIALIZED): new accessor.
7261 (XIMAGE_INSTANCE_INITIALIZED): ditto.
7263 2000-04-25 Andy Piper <andy@xemacs.org>
7265 * glyphs-widget.c (image_instantiator_buttons):
7266 (image_instantiator_edit_fields):
7267 (image_instantiator_combo_box):
7268 (image_instantiator_scrollbar):
7269 (image_instantiator_progress_guage):
7270 (image_instantiator_tree_view):
7271 (image_instantiator_tab_control):
7272 (image_instantiator_labels):
7273 (image_instantiator_layout): call default post_instantiate method.
7274 (widget_post_instantiate): new function. Simply lays out the
7277 * glyphs.h (struct image_instantiator_methods): add
7278 post_instantiate method.
7280 * glyphs.c (instantiate_image_instantiator): add post_instantiate
7283 2000-04-23 Andy Piper <andy@xemacs.org>
7285 * glyphs.h (struct image_instantiator_methods): add
7286 decode_domain_method.
7287 (struct Lisp_Image_Instance): remove subwindow frame - it can be
7288 derived from the domain.
7289 (IMAGE_INSTANCE_FRAME): new accessor.
7290 (XIMAGE_INSTANCE_FRAME): ditto.
7292 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
7293 instead of _SUBWINDOW_FRAME.
7294 (finalize_image_instance): ditto.
7295 (Fimage_instance_foreground): ditto.
7296 (Fimage_instance_background): ditto.
7297 (image_instantiate): ditto.
7298 (update_subwindow_cachel): ditto.
7299 (update_subwindow): ditto.
7300 (unmap_subwindow): ditto.
7301 (map_subwindow): ditto
7302 (subwindow_instantiate): ditto.
7303 * glyphs-msw.c (mswindows_update_widget): ditto.
7304 (mswindows_progress_gauge_instantiate): ditto.
7305 (mswindows_tab_control_update): ditto.
7306 * glyphs-x.c (x_update_widget): ditto.
7307 (x_widget_instantiate): ditto.
7308 (x_tab_control_instantiate): ditto.
7309 (x_tab_control_update): ditto.
7310 * event-msw.c (mswindows_wnd_proc): ditto
7312 * glyphs-widget.c (image_instantiator_layout): use
7313 subwindow_decode_domain.
7314 (image_instantiator_buttons): ditto.
7315 (image_instantiator_edit_fields): ditto.
7316 (image_instantiator_combo_box): ditto.
7317 (image_instantiator_scrollbar): ditto.
7318 (image_instantiator_progress_guage): ditto.
7319 (image_instantiator_tree_view): ditto.
7320 (image_instantiator_tab_control): ditto.
7321 (image_instantiator_labels): ditto.
7322 (image_instantiator_layout): ditto.
7324 * glyphs.c: add instance error checking to many functions.
7325 (instantiate_image_instantiator): decode device from cache_domain.
7326 (image_instantiate): partially rewrite by using
7327 decode_image_instantiator_domain to determine what domain the
7328 instance needs to be cached in.
7329 (decode_image_instantiator_domain): new function. Determine what
7330 domain the image needs to be cached in.
7331 (check_window_subwindow_cache): new error checking function.
7332 (check_instance_cache_mapper): ditto.
7333 (check_image_instance_structure): ditto.
7334 (subwindow_decode_domain): new function. Encodes a window as a
7335 subwindow's cache domain.
7336 (image_instantiator_format_create): use it for text and
7339 2000-04-21 Andy Piper <andy@xemacs.org>
7341 * glyphs.c (image_instance_device): new function.
7342 (image_instance_frame): new function.
7343 (image_instance_window): new function.
7344 (image_instance_live_p): new function.
7346 * window.c (mark_window_as_deleted): reset the subwindow_instance_
7349 * glyphs.h (struct Lisp_Image_Instance): device->domain.
7350 (IMAGE_INSTANCE_DOMAIN): new accessor.
7351 (XIMAGE_INSTANCE_DOMAIN): ditto.
7353 * glyphs-x.c (x_finalize_image_instance): device->domain.
7355 * glyphs-msw.c (init_image_instance_geometry): device->domain.
7356 (mswindows_finalize_image_instance): ditto.
7358 * glyphs-eimage.c (jpeg_instantiate): device->domain.
7359 (gif_instantiate): ditto.
7360 (png_instantiate): ditto.
7361 (tiff_instantiate): ditto.
7363 * glyphs.c (instantiate_image_instantiator): use domain rather
7365 (mark_image_instance): device -> domain.
7366 (print_image_instance): ditto.
7367 (finalize_image_instance): ditto.
7368 (image_instance_equal): ditto.
7369 (allocate_image_instance): ditto.
7370 (Fcolorize_image_instance): ditto.
7371 (query_string_geometry): ditto.
7372 (image_instantiate): ditto
7373 (query_string_font): ditto.
7374 (image_instantiate): ditto.
7375 (update_subwindow): ditto.
7376 (unmap_subwindow): ditto.
7377 (map_subwindow): ditto.
7378 (subwindow_instantiate): ditto.
7380 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
7381 (DOMAIN_FRAME): ditto.
7382 (DOMAIN_WINDOW): ditto.
7383 (DOMAIN_LIVE_P): ditto.
7384 (XDOMAIN_DEVICE): ditto.
7385 (XDOMAIN_FRAME): ditto.
7386 (XDOMAIN_WINDOW): ditto.
7388 * specifier.c (Fvalid_specifier_domain_p): add image instances as
7389 a valid specifier domain.
7391 2000-04-19 Andy Piper <andy@xemacs.org>
7393 * glyphs-widget.c (syms_of_glyphs_widget): remove
7394 widget-callback-current-channel.
7395 (vars_of_glyphs_widget): ditto.
7398 * gui.c (get_gui_callback): revert to previous behaviour.
7400 2000-04-18 Andy Piper <andy@xemacs.org>
7402 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
7403 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
7404 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
7406 * glyphs.c (image_instance_equal): add margin_width.
7407 (image_instance_hash): ditto.
7409 * glyphs-widget.c (widget_instantiate): deal with margin-width.
7410 (layout_query_geometry): ditto.
7411 (layout_layout): ditto.
7412 (syms_of_glyphs_widget): add margin-width.
7413 (image_instantiator_layout): allow margin-width.
7415 * glyphs.c (update_widget_instances): make a normal function.
7416 (syms_of_glyphs): remove Qupdate_widget_instances.
7419 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
7420 so that we don't corrupt ideas about the last event or
7421 command. Remove widget-callback-current-channel fiddling.
7422 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
7424 2000-05-01 Martin Buchholz <martin@xemacs.org>
7426 * XEmacs 21.2.33 is released.
7428 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
7430 * make-src-depend: Allow dots in header file name.
7432 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
7434 * mule-charset.h (struct charset_lookup): Add
7435 next_allocated_1_byte_leading_byte and
7436 next_allocated_2_byte_leading_byte.
7437 * mule-charset.c: Move above two variables so that those values
7440 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
7442 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
7443 when string length is zero.
7444 (find_charsets_in_emchar_string): Ditto.
7446 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
7448 * lisp.h: extern Qdialog and Qmenubar.
7450 * gui-x.c: added events.h.
7451 also fixed typo which made the file uncompilable.
7453 * general.c: Added Qmenubar and Qdialog
7455 2000-04-28 Ben Wing <ben@xemacs.org>
7457 * frame-msw.c (mswindows_init_frame_1):
7458 * frame-msw.c (mswindows_mark_frame):
7459 * event-msw.c (mswindows_enqueue_dispatch_event):
7461 * console-msw.h (struct mswindows_frame):
7462 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
7463 there are now three hash tables for callbacks.
7464 mswindows_enqueue_dispatch_event is no longer static.
7466 * dialog-x.c (maybe_run_dbox_text_callback):
7467 * dialog-x.c (dbox_descriptor_to_widget_value):
7468 switch to new cons3 form for callbacks.
7470 * glyphs-msw.c (mswindows_register_gui_item):
7471 * glyphs-msw.c (mswindows_widget_instantiate):
7472 * glyphs-msw.c (add_tree_item):
7473 * glyphs-msw.c (add_tab_item):
7474 new image instance parameter, so it can be passed to callback-ex.
7475 respect :callback-ex as well as :callback.
7477 * glyphs-widget.c (VALID_GUI_KEYWORDS):
7480 * glyphs.c (print_image_instance):
7481 prettify, e.g. now prints widget type.
7484 certain funs have new image instance parameter.
7487 * gui.c (get_gui_callback):
7488 * gui.c (gui_item_add_keyval_pair):
7489 * gui.c (gui_item_init):
7490 * gui.c (gui_add_item_keywords_to_plist):
7491 * gui.c (mark_gui_item):
7492 * gui.c (gui_item_hash):
7493 * gui.c (gui_item_equal):
7494 * gui.c (copy_gui_item):
7495 * gui.c (syms_of_gui):
7496 recognize callback-ex in a number of places.
7497 also, fix the annoying "can't get out of yes-no dialog" bug.
7500 * gui.h (struct Lisp_Gui_Item):
7501 recognize callback-ex in a number of places.
7503 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7504 new parameter in button_item_to_widget_value.
7506 * glyphs-x.c (x_update_widget):
7507 * glyphs-x.c (x_button_instantiate):
7508 * glyphs-x.c (x_button_update):
7509 * glyphs-x.c (x_progress_gauge_instantiate):
7510 * glyphs-x.c (x_edit_field_instantiate):
7511 * glyphs-x.c (x_combo_box_instantiate):
7512 * glyphs-x.c (x_tab_control_instantiate):
7513 * glyphs-x.c (x_label_instantiate):
7514 new image instance parameter in various places.
7517 * event-Xt.c (enqueue_Xt_dispatch_event):
7518 this fun gets exported.
7521 * gui-msw.c (mswindows_handle_gui_wm_command):
7522 handle both :callback and :callback-ex, and generate our own
7523 event because it's one of the callback-ex arguments.
7526 * gui-x.c (popup_selection_callback):
7527 handle both :callback and :callback-ex, and generate our own
7528 event because it's one of the callback-ex arguments.
7529 * gui-x.c (button_item_to_widget_value):
7530 * gui-x.c (gui_items_to_widget_values_1):
7531 * gui-x.c (gui_item_children_to_widget_values):
7532 * gui-x.c (gui_items_to_widget_values):
7533 new image instance parameter in various places.
7535 * fns.c (Freplace_list):
7536 fix small typo in doc string.
7539 declare enqueue_Xt_dispatch_event.
7541 2000-04-28 Ben Wing <ben@xemacs.org>
7544 * buffer.c (Frecord_buffer):
7545 * buffer.c (syms_of_buffer):
7546 delete record-buffer-hook.
7549 * fns.c (Freplace_list):
7550 * fns.c (syms_of_fns):
7551 new primitive replace-list.
7554 slot for old buffer-alist.
7560 * redisplay.c (redisplay_frame):
7561 * redisplay.c (syms_of_redisplay):
7562 * redisplay.c (vars_of_redisplay):
7563 new hook buffer-list-changed-hook.
7566 2000-04-27 Ben Wing <ben@xemacs.org>
7568 * extents.h: extern in_modeline_generation.
7570 * redisplay.c (generate_formatted_string_db): set
7571 in_modeline_generation.
7573 * extents.c (extent_changed_for_redisplay): don't mark redisplay
7574 flags if in modeline generation. otherwise frame-modified-tick
7575 is ticked far too often.
7576 Declare in_modeline_generation.
7578 2000-04-26 Ben Wing <ben@xemacs.org>
7580 * emacs.c (vars_of_emacs): document quick-build "error-checking"
7582 (vars_of_emacs): add quick-build as an error-checking option.
7583 A bit kludgy, but there doesn't seem much point in creating
7584 a real var for this.
7586 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
7588 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
7590 * redisplay.h (struct display_line): Add a new variable,
7593 * redisplay.c (create_text_block): Set dl->line_continuation if
7595 (create_string_text_block): Ditto.
7596 (regenerate_window_incrementally): Use line_continuation instead
7597 of searching continuation glyph.
7598 (add_margin_runes): Call add_glyph_rune.
7599 (add_glyph_rune): Handle margin glyph.
7601 2000-04-20 Martin Buchholz <martin@xemacs.org>
7603 * filelock.c (fill_in_lock_file_name):
7605 Check for IS_ANY_SEP instead of '/'.
7607 Avoid generating gratuitous garbage. Call user_login_name() directly.
7608 Never check errno without first seeing that system call failed.
7609 (unlock_file): Add GCPRO.
7610 (Flock_buffer): Fix docstring.
7611 (Ffile_locked_p): Fix docstring. Add GCPRO.
7613 2000-04-19 Martin Buchholz <martin@xemacs.org>
7615 * sysdep.c (get_pty_max_bytes):
7616 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
7617 strings longer than 252 bytes.
7619 * md5.c: Unconditionally include ANSI header <limits.h>
7621 * glyphs-x.c (convert_EImage_to_XImage):
7622 * lisp-union.h (union Lisp_Object):
7623 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
7625 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7627 * filelock.c (current_lock_owner): Remove unused variable o, p.
7629 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
7631 * callint.c: Remove multiply defined symbol Qlet
7632 (syms_of_callint): ditto.
7634 2000-04-14 Andy Piper <andy@xemacs.org>
7636 * general.c (syms_of_general): add last-command, this-command, let
7639 * lisp.h: declare various symbols.
7641 * glyphs.h: declare Qwidget_callback_current_channel;
7643 * glyphs-widget.c (syms_of_glyphs_widget): add
7644 Qgui_callback_current_channel.
7645 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
7647 * gui-msw.c (mswindows_handle_gui_wm_command): bind
7648 widget-callback-current-channel when invoking the interactive
7649 arg. Also bind last-command and next-command when invoking the
7651 * gui-x.c (popup_selection_callback): ditto.
7653 * gui.c (get_gui_callback): massage args so that we are always
7654 calling eval. This allows us to add our own variable bindings
7657 * glyphs-x.c (x_button_instantiate): use
7658 gui_items_to_widget_values since this is GC safe.
7659 (x_progress_gauge_instantiate): ditto.
7660 (x_edit_field_instantiate): ditto.
7661 (x_label_instantiate): ditto.
7663 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
7664 (emacs_Xt_event_widget_focus_out): new function
7665 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
7667 (emacs_Xt_event_add_widget_actions): new function. add focus
7668 functions as actions.
7669 (init_event_Xt_late): use it.
7671 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
7673 * event-stream.c (Fdispatch_event): Doc fix.
7675 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
7677 * postgresql.c: Remove all references to PQsetenv*.
7679 * postgresql.h: Remove references to PGsetenvHandler object.
7680 * lrecord.h (lrecord_type): Ditto.
7682 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7684 * glyphs-msw.h (struct mswindows_image_instance_data): Added
7685 real_heigh and real_width members, and accessor macros for these.
7687 * glyphs-msw.c (init_image_instance_geometry): New function.
7688 (init_image_instance_from_dibitmap): Use it.
7689 (mswindows_resource_instantiate): Use it.
7690 (init_image_instance_from_xbm_inline): Use it.
7691 (mswindows_initialize_image_instance_mask): Use real bitmap
7693 (mswindows_create_resized_bitmap): Ditto.
7694 (mswindows_create_resized_mask): Ditto.
7696 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
7697 and bitmap to their surface size.
7699 2000-04-11 Jan Vroonhof <jan@xemacs.org>
7701 * process-unix.c (unix_send_process): Guard against process MIA
7702 after Faccept_process_output.
7704 2000-04-11 Ben Wing <ben@xemacs.org>
7706 * eval.c (unbind_to_hairy): fix brokenness introduced by
7707 nanosecond speed improvements.
7709 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
7711 * sunplay.c (init_device): To play sounds correctly, the device
7712 apparently needs to be initialized at least once by XEmacs. Make
7715 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
7717 * redisplay.c (add_margin_runes): Add text image glyph
7720 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7722 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
7723 gcc is newer than 2.5.
7725 2000-04-06 Colin Rafferty <colin@xemacs.org>
7727 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
7729 * fns.c (size_bit_vector):
7730 * alloc.c (size_vector):
7731 (make_vector_internal):
7732 (make_bit_vector_internal):
7733 (sweep_bit_vectors_1):
7734 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
7736 2000-04-06 Andy Piper <andy@xemacs.org>
7738 * gmalloc.c (malloc): undo previous change.
7743 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
7745 * line-number.c (buffer_line_number): Revert to former version.
7747 2000-04-06 Andy Piper <andy@xemacs.org>
7749 * gmalloc.c (malloc): add error checking.
7754 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
7755 button_item_to_widget_value arg.
7757 * glyphs-x.c (x_button_instantiate): add extra
7758 button_item_to_widget_value arg.
7759 (x_progress_gauge_instantiate): ditto.
7760 (x_edit_field_instantiate): ditto.
7761 (x_label_instantiate): ditto.
7763 * gui-x.c (gui_items_to_widget_values_1): add extra
7764 button_item_to_widget_value arg.
7765 (button_item_to_widget_value): add extra menu_item_p arg.
7767 * gui-x.h: change signature of button_item_to_widget_value.
7769 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
7770 button_item_to_widget_value arg.
7772 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
7774 * buffer.h (struct buffer): auto_save_modified should be long.
7776 2000-04-05 Andy Piper <andy@xemacs.org>
7778 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
7780 (button_query_geometry): give a little more room so that athena
7783 2000-04-05 Andy Piper <andy@xemacs.org>
7785 * faces.c (complex_vars_of_faces): The widget face should inherit
7786 the font of the gui-element face.
7788 2000-04-04 Andy Piper <andy@xemacs.org>
7790 * glyphs-x.c (x_button_update): new function. unconditionally
7791 update a button's state when the instance is dirty.
7792 (image_instantiator_format_create_glyphs_x): add x_button_update.
7793 (x_widget_instantiate): remove old resize cruft.
7795 2000-04-02 Andy Piper <andy@xemacs.org>
7797 * frame.c (change_frame_size_1): The introduction of gutters means
7798 that we need to allow 0 as a potential frame dimension.
7800 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
7802 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
7803 image glyph if allow_cursor.
7804 (add_hscroll_rune): Don't allow cursor to border glyph.
7805 (create_text_block): Ditto.
7807 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
7809 (redisplay_output_layout): Call ensure_face_cachel_complete for
7813 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
7815 * redisplay.c (add_glyph_rune): Adding text image as text runes.
7817 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
7820 * redisplay-tty.c (tty_output_display_block): Delete the routine
7821 for text image glyph
7822 * redisplay-x.c (x_output_display_block): ditto
7823 * redisplay-msw.c (mswindows_output_display_block): ditto
7825 2000-02-02 Mike Alexander <mta@arbortext.com>
7827 Note: Some of these were committed by accident as part of other
7830 * regex.c (regex_compile): Avoid compiler warnings.
7832 * ntproc.c (sys_spawnve): Avoid compiler warnings.
7834 * nt.h: Declare term_ntproc correctly.
7836 * nt.c: Remove incorrect declaration of get_home_directory which
7837 is declared correctly in lisp.h.
7839 * keymap.c (get_keyelt): Avoid compiler warnings.
7840 (raw_lookup_key_mapper): Avoid compiler warnings.
7842 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
7844 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
7846 * filemode.c (mode_string): Avoid compiler warnings.
7848 * file-coding.c (Fcoding_system_aliasee): Add return statement to
7851 * events-mod.h: Undef some things that winuser.h defines differently.
7853 * data.c (Faset): Avoid compiler warnings.
7855 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
7857 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
7859 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
7860 Fall through to simple beep on error.
7861 Replace "extern" by real header file.
7863 * linuxplay.c: Use nativesound.h
7864 (play_sound_data): Return error code. Be less verbose on error.
7866 * sunplay.c: Use nativesound.h
7867 (play_sound_data): Return error code. Be less verbose on error.
7869 * ntplay.c: Use nativesound.h
7870 (play_sound_data): Return fake error code
7872 * sgiplay.c: Use nativesound.h
7873 (play_sound_data): Return error code
7875 * hpplay.c: Use nativesound.h, partially implement
7876 new error code. Break compilation until finished.
7877 (play_sound_data): error code.
7879 * nativesound.h (play_sound_file):
7880 (play_sound_data): Prototype in new header.
7882 2000-03-31 Andy Piper <andy@xemacs.org>
7884 * glyphs-widget.c: (button_query_geometry): new function. Adjust
7885 for toggle and radio buttons.
7886 (image_instantiator_buttons): use it.
7888 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
7890 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
7891 (x_update_horizontal_scrollbar_callback): Return if no mirror was
7892 found. Scrollbar event probably belonged to some old config.
7894 2000-03-31 Andy Piper <andy@xemacs.org>
7896 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
7898 (initialize_widget_image_instance): default layout to
7899 LAYOUT_HORIZONTAL rather than 0.
7900 (widget_instantiate): reverse the item list at the end rather than
7902 (layout_layout): re-code for the border text at the front of the
7903 item list rather than at the end.
7904 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
7905 provided by the user.
7906 (widget_query_geometry): comment.
7908 2000-03-30 Andy Piper <andy@xemacs.org>
7910 * glyphs-widget.c (image_instantiator_layout): allow standard
7911 widget keywords in layouts.
7913 * gutter.c (output_gutter): cope with nil gutter contents.
7915 * frame.c (Fset_frame_properties): add gutter docs.
7917 2000-03-29 Andy Piper <andy@xemacs.org>
7919 * toolbar-msw.c (TBSTYLE_FLAT): add.
7920 (mswindows_output_toolbar): minor fiddling.
7922 2000-03-29 Andy Piper <andy@xemacs.org>
7924 * gutter.c (output_gutter): force gutter size recalculation if
7925 what we are trying to display won't fit.
7926 (update_gutter_geometry): new function. A per-gutter version of
7927 update_frame_gutter_geometry.
7928 (update_frame_gutter_geometry): use it.
7929 (redraw_exposed_gutter): add extra debugging output.
7931 2000-03-28 Mike Alexander <mta@arbortext.com>
7933 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
7934 (pdump_file_unmap): Implement it on Windows
7935 (pdump_file_get): Save alocated handles for pdump_file_unmap
7937 2000-03-28 Andy Piper <andy@xemacs.org>
7939 * gui.c (get_gui_callback): treat Quit specially.
7941 2000-03-27 Andy Piper <andy@xemacs.org>
7943 * glyphs.c (image_instantiate): be careful to check in the same
7946 2000-03-27 Didier Verna <didier@xemacs.org>
7948 * config.h.in: define the proper SMART_INCLUDE macro.
7949 handle renaming of `foo_h_path' to `foo_h_file'.
7951 * database.c: ditto.
7955 * linuxplay.c: ditto.
7957 * terminfo.c: ditto.
7959 * tooltalk.h: ditto.
7961 2000-03-27 Andy Piper <andy@xemacs.org>
7963 * glyphs-msw.c (mswindows_update_widget): make sure the widget
7964 gets updated whenever the face might have changed.
7966 2000-03-26 Mike Alexander <mta@arbortext.com>
7968 * dumper.c (pdump_resource_free): Fix the comment.
7970 2000-03-21 Olivier Galibert <galibert@pobox.com>
7972 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
7974 2000-03-22 Mike Alexander <mta@arbortext.com>
7976 * dumper.c: Include Windows headers on Windows
7977 (pdump_resource_free): Add a body to the function
7978 (pdump_load): exe_name -> exe_path and add some comments.
7980 2000-03-25 Mike Alexander <mta@arbortext.com>
7982 * gui.c (copy_gui_item_tree): Return a value in all cases
7984 2000-03-21 Didier Verna <didier@xemacs.org>
7986 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
7988 (SMART_INCLUDE): new macro.
7989 (POSTGRES_INCLUDE): new macro to include postgresql headers from
7990 the proper location.
7992 * postgresql.c: use it.
7996 2000-03-24 Andy Piper <andy@xemacs.org>
7998 * gutter.c (redraw_exposed_gutters): must be "in display" when we
8001 2000-03-24 Andy Piper <andy@xemacs.org>
8003 * redisplay-output.c (compare_runes): use image_instance_changed
8004 to detect changes. Do not depend on glyphs_changed, only depend on
8006 (redisplay_output_layout): add debug messages.
8007 (compare_runes): ditto.
8009 * glyphs.h: declare new functions.
8010 (struct Lisp_Image_Instance): remove percent and associated
8013 * gui.h: declare new copying functions.
8015 * gui.c (copy_gui_item_tree): new function.
8016 (copy_gui_item): new function.
8017 (gui_item_id_hash): revert to standard hash.
8018 (gui_item_hash): ditto.
8019 (gui_item_hash_internal): deleted.
8020 (mark_gui_item): mark value.
8021 (gui_item_add_keyval_pair): add value.
8022 (gui_item_init): ditto.
8023 (gui_add_item_keywords_to_plist): ditto.
8024 (gui_item_equal): ditto.
8025 (syms_of_gui): add Q_value.
8027 * glyphs-x.c (x_progress_gauge_update): use pending items and
8028 value for setting the state.
8029 (x_update_widget): don't set items from pending here.
8031 * glyphs-widget.c (update_widget): update items here.
8032 (progress_gauge_set_property): use items for storing value. Put
8033 new value in pending items.
8035 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
8036 items for new value. Convert percent -> value.
8037 (mswindows_tab_control_update): don't update items here.
8039 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
8040 (update_subwindow): ditto.
8041 (image_instance_changed): new function. Compare hash values and
8042 past and present widget items.
8043 (image_instantiate): We more careful about where we instantiate
8045 (image_instantiate): add error checking.
8047 * gutter.c (syms_of_gutter): use -hook.
8049 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
8051 * console-tty.c (Fset_console_tty_input_coding_system): Use
8053 (Fset_console_tty_output_coding_system): Use Qterminal.
8054 (tty_init_console): Use Qkeyboard and Qterminal.
8056 2000-03-21 Ben Wing <ben@xemacs.org>
8058 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
8059 From Mike Alexander <mta@arbortext.com>.
8061 2000-03-21 Ben Wing <ben@xemacs.org>
8063 * event-msw.c (mswindows_need_event): Horrible kludge to fix
8064 process brokenness. Proper implementation to come.
8066 Rename call-process-internal to old-call-process-internal.
8067 New impl. in process.el.
8069 2000-03-21 Martin Buchholz <martin@xemacs.org>
8071 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
8073 2000-03-20 Andy Piper <andy@xemacs.org>
8075 * glyphs.c (full_list_hash): make hashes of the same elements in
8076 different orders return different values.
8078 2000-03-20 Martin Buchholz <martin@xemacs.org>
8080 * XEmacs 21.2.32 is released.
8082 2000-03-20 Martin Buchholz <martin@xemacs.org>
8084 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
8085 (DFC_MALLOC_USE_CONVERTED_DATA):
8086 Add aliasing-safe casts to allow use with char* or unsigned char*
8089 * eldap.c (Fldap_open):
8090 (Fldap_search_basic):
8093 Make C++-compilable.
8094 Make sure GCPRO'ed variables are initialized.
8095 Use temp variables to avoid repeated calls to Flength.
8097 2000-03-16 Martin Buchholz <martin@xemacs.org>
8100 Make sure PATH_MAX is always defined.
8101 Include limits.h for PATH_MAX.
8102 Deprecate use of MAXPATHLEN.
8104 2000-03-10 Martin Buchholz <martin@xemacs.org>
8106 * emacs.c: Add reinit_vars_of_fileio.
8107 * symsinit.h: Add reinit_vars_of_fileio.
8108 * fileio.c (reinit_vars_of_fileio): New.
8109 * fileio.c (Fmake_temp_name):
8110 Initialize temp_name random number from microseconds to make
8111 collisions even less likely. Initialize always at process startup
8112 time. (make-temp-name) used to return the same file name twice in
8114 Random stylistic fiddling.
8117 2000-03-20 Andy Piper <andy@xemacs.org>
8119 * glyphs.c (image_instantiate): allow text glyphs to be
8120 instantiated in the minibuffer window.
8122 2000-03-19 Andy Piper <andy@xemacs.org>
8124 * glyphs.c (image_instance_hash): be careful about which items we
8127 * glyphs-widget.c (tab_control_set_property): record into pending
8128 items rather than the actual items.
8130 * glyphs-x.c (x_update_widget): use pending items to update with.
8132 * glyphs-msw.c (mswindows_tab_control_update): use pending items
8135 * glyphs.c (mark_image_instance): mark pending items.
8137 * window.c (Fset_window_configuration): record the buffer.
8138 (Fselect_window): totally revert previous change which breaks many
8141 2000-03-18 Andy Piper <andy@xemacs.org>
8143 * glyphs-msw.c (mswindows_tab_control_update): force selected
8146 * glyphs.c (image_instantiate): don't allow the minibuffer as a
8147 window domain cache, otherwise we get inconsistencies at
8148 startup. There is something fishy at startup which can lead to the
8149 minibuffer being the selected window when the gutter content is
8152 * gui.c (parse_gui_item_tree_list): add probably unnecessary
8154 (parse_gui_item_tree_children): ditto.
8155 (parse_gui_item_tree_item): ditto.
8157 * glyphs.c (Fupdate_widget_instances): return something.
8159 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
8161 * window.c (Fselect_window): Undo 2000-03-17 change.
8163 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
8165 * postgresql.c (Fpq_setenv): Remove this turkey when linking
8166 against v7.0 libraries. Insta-coredump city until the postgres
8169 2000-03-17 Andy Piper <andy@xemacs.org>
8171 * faces.c (complex_vars_of_faces): don't give the widget face an
8172 inherited background pixmap.
8174 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
8177 * event-stream.c (Fdispatch_non_command_events): return something.
8179 * gutter.c (output_gutter): use widget face.
8180 (clear_gutter): ditto.
8182 * NEWS: adjust again.
8184 * window.c (Fselect_window): make sure this runs to completion to
8185 avoid oddities with Fset_window_configuration.
8186 (Fcurrent_window_configuration): in general do not save the
8187 minibuffer as the selected window.
8189 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
8191 2000-03-16 Olivier Galibert <galibert@pobox.com>
8193 * emacs.c (Frunning_temacs_p): Revert previous patch.
8194 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
8196 2000-03-16 Andy Piper <andy@xemacs.org>
8198 * glyphs-x.c (x_tab_control_update): if no widget values then
8201 * NEWS: update for new features.
8203 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
8204 synthetic event to the native system.
8205 (reinit_vars_of_event_Xt): set force_event_pending to
8206 emacs_Xt_force_event_pending.
8208 * events.h (struct event_stream): add force_event_pending.
8210 * specifier.c (recompute_one_cached_specifier_in_window): add
8213 * redisplay.c (redisplay_frame): don't call
8214 update_frame_subwindows. Reset subwindow cachels when
8215 subwindows_changed, removing this was an optimization too far.
8217 * redisplay-output.c (compare_runes): reorganize so that we catch
8218 glyph changes when we want them. Set optimize_output when this
8220 (redisplay_output_layout): remove frame_really_changed, use
8221 optimize_output instead.
8223 * redisplay-msw.c (mswindows_output_display_block): reset
8224 optimize_output after outputting a glyph.
8225 * redisplay-x.c (x_output_display_block): ditto.
8226 * redisplay-tty.c (tty_output_display_block): ditto.
8228 * gutter.c: (specifier_vars_of_gutter): use new spec changed
8230 (gutter_specs_changed): do specific gutter positions.
8231 (top_gutter_specs_changed): new function. Only update the
8232 specified gutter specs.
8233 (bottom_gutter_specs_changed): ditto.
8234 (left_gutter_specs_changed): ditto.
8235 (right_gutter_specs_changed): ditto.
8237 * gui.c (gui_item_hash_internal): new function, does a real hash.
8238 (gui_item_id_hash): use it.
8239 (gui_item_hash): hash the eval'ed gui_item.
8241 * gui-x.c (popup_selection_callback): send an eval event to call
8242 Fupdate_widget_instances.
8244 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
8245 to call Fupdate_widget_instances.
8247 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
8248 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
8250 * glyphs.c: (update_frame_subwindows): deleted.
8251 (Fupdate_widget_instances): new function for updating the dirty
8252 state of widgets that might have changed.
8253 (syms_of_glyphs): add Qupdate_widget_instances.
8254 (full_list_hash): hash a list completely.
8255 (image_instance_hash): use it for items and properties.
8257 * frame-msw.c (mswindows_size_frame_internal): remove unused
8260 * faces.h (struct face_cachel): fix comment.
8262 * event-stream.c (Fdispatch_non_command_events): new
8263 function. Process non-command events, forcing an event cycle
8265 (syms_of_event_stream): declare.
8266 (event_stream_force_event_pending): new function. Force an event
8267 on the native event queue so that an event cycle will occur next
8271 (struct ntpipe_shove_stream):
8272 (mswindows_enqueue_dispatch_event):
8273 (mswindows_dequeue_dispatch_event):
8274 (mswindows_cancel_dispatch_event):
8275 (mswindows_pump_outstanding_events):
8276 (mswindows_drain_windows_queue):
8277 (mswindows_handle_paint):
8278 (mswindows_wnd_proc):
8279 (mswindows_key_to_emacs_keysym):
8280 (get_process_input_waitable):
8281 (emacs_mswindows_delete_stream_pair): re-indent file.
8282 (mswindows_need_event): do not process further fds if the windows
8283 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
8284 fixes the 100% cpu problem.
8285 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
8287 2000-03-15 Olivier Galibert <galibert@pobox.com>
8293 * emacs.c: Moved dump file searching to dumper.c.
8294 (Frunning_temacs_p): Fixed.
8296 * alloc.c: Moved everything pdump-related to dumper.c. Removed
8297 last_lrecord_type_index_assigned.
8299 2000-02-20 Olivier Galibert <galibert@pobox.com>
8301 * symsinit.h: Added reinit parameter to init_console_stream
8304 * lisp.h: Added file parameter to pdump_load declaration.
8306 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
8307 support. Added dump file searching.
8309 * config.h.in: Added EMACS_PROGNAME.
8311 * console-stream.c (init_console_stream): Fix reinitialisation
8312 when running from temacs.
8314 * alloc.c (pdump): Add id support.
8315 (pdump_load): Add file parameter and signature/id support.
8317 * Makefile.in.in: Add full pdump support.
8319 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
8321 * postgresql.c: Update documentation to reflect latest code
8323 (print_result): Show tuple counts in printed representation when
8325 (Fpq_put_nbytes): MULE-ize.
8326 (Fpq_get_line_async): Ditto.
8328 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
8330 * postgresql.c (Fpq_lo_import): Fix return value.
8331 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
8333 2000-03-13 Ben Wing <ben@xemacs.org>
8335 * alloc.c (pdump_load):
8336 Fix compile warning under mswin.
8338 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
8340 * postgresql.c: Mule-ization, bug fixes.
8341 Use PG_CODING to encapsulate coding system name changes.
8342 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
8343 (pg-coding-system): Create.
8345 (Fpq_conn_defaults): Mule-ize.
8346 (Fpq_connectdb): Mule-ize & bug fix.
8347 (Fpq_connect_start): Mule-ize.
8348 (Fpq_set_client_encoding): Mule-ize.
8349 (Fpq_finish): Document `DEAD' connection status.
8351 (Fpq_pgconn): Mule-ize.
8352 (Fpq_exec): Mule-ize & bug fix.
8353 (Fpq_send_query): Ditto.
8354 (Fpq_get_result): Ditto.
8355 (Fpq_res_status): Mule-ize.
8356 (Fpq_result_error_message): Mule-ize.
8357 (Fpq_ntuples): fix comments.
8358 (Fpq_fname): Mule-ize.
8359 (Fpq_fnumber): Mule-ize.
8360 (Fpq_ftype): fix comments.
8361 (Fpq_get_value): Mule-ize.
8362 (Fpq_cmd_status): Ditto.
8363 (Fpq_cmd_tuples): Ditto.
8364 (Fpq_oid_value): Ditto.
8365 (Fpq_notifies): Ditto.
8366 (Fpq_lo_import): Ditto.
8367 (Fpq_lo_export): Ditto.
8368 (Fpq_get_line): Ditto.
8369 (Fpq_put_line): Mule-ize and bug fix.
8370 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
8372 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
8374 * postgresql.c (vars_of_postgresql): Mule-ize.
8375 (Fpq_conn_defaults): Ditto.
8377 2000-03-12 Ben Wing <ben@xemacs.org>
8379 * alloc.c (Fmake_byte_code):
8380 * alloc.c (debug_string_purity_print):
8381 * alloc.c (pdump_backtrace):
8382 * alloc.c (pdump_get_indirect_count):
8383 * alloc.c (pdump_register_sub):
8384 * alloc.c (pdump_register_object):
8385 * alloc.c (pdump_register_struct):
8386 * alloc.c (pdump_dump_data):
8387 * alloc.c (pdump_reloc_one):
8391 * console-msw.c (GetConsoleHwnd):
8392 * console-msw.c (msw_hide_console):
8393 * console-msw.c (msw_show_console):
8394 * console-msw.c (msw_ensure_console_buffered):
8395 * console-msw.c (msw_output_console_string):
8396 * console-msw.c (console_type_create_mswindows):
8398 a) Added functions to manipulate the console window for use with
8401 b) Added support for writing text to the console, which is now
8402 used under Windows when xemacs is not being run non-interactively,
8403 to write text that would otherwise be destined for stdout because
8404 under these circumstances, text written to stdout tends to
8405 disappear and not be seen.
8409 * event-Xt.c (x_event_to_emacs_event):
8410 * event-Xt.c (describe_event_window):
8411 * events-mod.h (XEMACS_MOD_CONTROL):
8413 * events.c (Fmake_event):
8414 * events.c (character_to_event):
8415 * events.c (event_to_character):
8416 * events.c (format_event_object):
8417 * events.c (Fevent_modifiers):
8419 * events.h (struct key_data):
8420 * events.h (struct button_data):
8421 * events.h (struct misc_user_data):
8422 * frame-x.c (Fcde_start_drag_internal):
8423 * frame-x.c (Foffix_start_drag_internal):
8424 * gpmevent.c (Freceive_gpm_event):
8426 * keymap.c (bucky_sym_to_bucky_bit):
8427 * keymap.c (control_meta_superify):
8428 * keymap.c (make_key_description):
8429 * keymap.c (keymap_lookup_directly):
8430 * keymap.c (create_bucky_submap):
8431 * keymap.c (keymap_store):
8432 * keymap.c (define_key_check_and_coerce_keysym):
8433 * keymap.c (define_key_parser):
8434 * keymap.c (define_key_alternate_name):
8435 * keymap.c (Fdefine_key):
8436 * keymap.c (raw_lookup_key_mapper):
8437 * keymap.c (struct map_keymap_unsorted_closure):
8438 * keymap.c (map_keymap_unsorted_mapper):
8439 * keymap.c (map_keymap_sort_predicate):
8440 * keymap.c (map_keymap_sorted):
8441 * keymap.c (accessible_keymaps_mapper_1):
8442 * keymap.c (where_is_recursive_mapper):
8443 * keymap.c (describe_map_mapper):
8444 * keymap.c (describe_map_sort_predicate):
8445 * keymap.c (describe_map):
8446 * keymap.c (complex_vars_of_keymap):
8447 And a number of other files, the key modifier preprocessor
8448 constants that xemacs uses have names that conflict with constants
8449 defined under MS Windows for other purposes, so they were renamed
8450 to begin with the prefix XEMACS_. The variables that hold such
8451 modifiers were changed to consistently be of type int to fix
8452 various compile warnings.
8454 * console.c (complex_vars_of_console):
8457 * device-msw.c (mswindows_finish_init_device):
8458 * device-msw.c (msw_get_workspace_coords):
8459 * device-msw.c (mswindows_device_system_metrics):
8460 and various other files, added support for a new
8461 device property called offset-workspace which returns the position
8462 of the upper left corner of the workspace area and goes along with
8463 the existing size-workspace property.
8466 * dialog-msw.c (push_bufbyte_string_as_unicode):
8467 * dialog-msw.c (mswindows_popup_dialog_box):
8468 Added support for XEmacs-style accelerator specifications in
8469 button text. Note: I didn't add support for this under X Windows,
8470 and somebody needs to do this.
8473 * dialog.c (Fpopup_dialog_box):
8474 Documented the support for accelerators that was just mentioned.
8476 editfns.c (get_home_directory): Changed behavior under Windows
8477 when HOME not defined; former behavior was irretrievably broken.
8482 * minibuf.c (clear_echo_area_internal):
8483 * minibuf.c (echo_area_append):
8485 * print.c (std_handle_out_external):
8486 * print.c (std_handle_out_va):
8488 * print.c (write_string_to_stdio_stream):
8489 * print.c (output_string):
8490 * print.c (debug_print):
8491 * print.c (debug_backtrace):
8492 * print.c (debug_short_backtrace):
8493 Cleaned up the code that prints text to stdout so that this can be
8494 changed to output into a console window instead under MS Windows,
8498 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
8499 * eval.c (internal_catch):
8500 * eval.c (unwind_to_catch):
8501 * eval.c (throw_or_bomb_out):
8502 * eval.c (condition_case_1):
8503 * eval.c (signal_1):
8504 * eval.c (check_error_state_sanity):
8505 * eval.c (call_with_suspended_errors_1):
8506 * eval.c (call_with_suspended_errors):
8507 * eval.c (reinit_vars_of_eval):
8508 Added code to catch throw loops and check for a pesky bug that may
8512 * event-msw.c (key_needs_default_processing_p):
8513 * event-msw.c (mswindows_wnd_proc):
8514 * event-msw.c (mswindows_modifier_state):
8515 * event-msw.c (emacs_mswindows_quit_p):
8516 * event-msw.c (vars_of_event_mswindows):
8517 a) Added support for using the alt key to select menu items as is
8518 standard under MS Windows. This is controlled using the variable
8519 menu-accelerator-enabled, just like under X Windows. There is an
8520 option on the options menu to turn this support on. I really
8521 think that it should be on by default under Windows, but I'm not
8522 going to make this change yet.
8524 b) Added support for dynamic display size changes under Windows.
8527 * event-stream.c (maybe_echo_keys):
8528 * event-stream.c (Fnext_event):
8529 * event-stream.c (command_builder_find_leaf):
8530 * event-stream.c (lookup_command_event):
8531 * event-stream.c (execute_command_event):
8532 * event-stream.c (pre_command_hook):
8533 * event-stream.c (post_command_hook):
8534 * event-stream.c (syms_of_event_stream):
8535 * event-stream.c (vars_of_event_stream):
8536 * event-stream.c (complex_vars_of_event_stream):
8537 * events.h (struct command_builder):
8539 a) Tried to clean up a little bit the horribly written x-specific
8540 accelerator code that crept into this file. I moved this code
8541 into menubar-x.c where it belongs. I also needed to move the
8542 command builder structure into the file events.h because it is
8543 accessed directly by this accelerator code. What I didn't do, but
8544 which should be done at some point, is to properly abstract this
8545 code using device methods instead of the kludgy way that it
8546 currently hooks into the event code.
8548 b) Added the lisp variables this-command-properties and
8549 last-command- properties, which should be used to synchronize two
8550 adjacent commands in preference to playing games with the variable
8551 this-command, which is typically what happens.
8553 c) Added some slightly nasty code to hook into the lisp support
8554 for shifted- motion-key selection. This is actually necessary for
8555 somewhat complicated reasons, which are described in
8556 simple.el. (NB: I think the proper thing would be to have the code
8557 that calls the pre and post command hooks also call out to generic
8558 lisp functions in simple.el, where all built-in stuff could be
8559 added. I will think about this more.)
8561 * event-unixoid.c (poll_fds_for_input):
8562 * lread.c (readchar):
8563 * redisplay-tty.c (tty_clear_frame):
8564 * redisplay-x.c (x_get_gc):
8565 * signal.c (interrupt_signal):
8566 And a whole bunch of other files: fixed up places that printed
8567 directly to stderr to instead call the function stderr_out so that
8568 the changes I made under Windows work correctly.
8570 * filemode.c (mode_string):
8574 * frame-msw.c (mswindows_size_frame_internal):
8575 Fixed the computation of frame size and position to keep the frame
8576 within the workspace area, rather than within the physical
8577 dimensions of the screen, so that the frame doesn't overlap window
8578 manager decorations, such as the start menu and toolbar, typically
8579 at the bottom of the screen.
8581 * frame.c (vars_of_frame):
8582 Changed the default frame title format under MS Windows to consist
8583 of buffername-XEmacs, which is standard under MS Windows. I think
8584 it might be a good idea to change this everywhere because I think
8585 it is superior to the current frame title format, but this is the
8586 kind of change that is likely to cause some people to get annoyed,
8587 so I'm not making it.
8589 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
8591 * gui-msw.c (mswindows_handle_gui_wm_command):
8592 Fixed compile warnings.
8595 * gui-x.c (strdup_and_add_accel):
8596 * gui-x.c (button_item_to_widget_value):
8598 Added code to automatically put an accelerator onto the beginning
8599 of menu items that don't have one as is now the standard, and is
8600 described more later. Also fixed things so that the menu item
8601 name can be an evaluated expression, again a new standard.
8604 * gui.c (gui_item_add_keyval_pair):
8605 * gui.c (make_gui_item_from_keywords_internal):
8606 * gui.c (gui_add_item_keywords_to_plist):
8607 * gui.c (gui_item_accelerator):
8608 * gui.c (gui_name_accelerator):
8609 * gui.c (gui_item_included_p):
8610 * gui.c (gui_item_display_flush_left):
8611 * gui.c (gui_item_display_flush_right):
8612 * gui.c (parse_gui_item_tree_item):
8613 * gui.c (parse_gui_item_tree_children):
8614 * gui.c (parse_gui_item_tree_list):
8615 Mule-ized. Cleanup. GCPRO addition.
8617 * line-number.c (buffer_line_number):
8619 * lisp.h (EMACS_INT_MAX):
8620 Added the manifest constant EMACS_INT_MIN corresponding to the
8621 existing constant EMACS_INT_MAX. This is partially to fix compile
8622 warnings under Windows, and partly for cleanliness.
8625 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
8626 * menubar-msw.c (msw_translate_menu_or_dialog_item):
8627 * menubar-msw.c (displayable_menu_item):
8628 * menubar-msw.c (populate_menu_add_item):
8629 * menubar-msw.c (populate_or_checksum_helper):
8630 * menubar-msw.c (populate_menu):
8631 * menubar-msw.c (update_frame_menubar_maybe):
8632 * menubar-msw.c (prune_menubar):
8633 * menubar-msw.c (msw_char_is_accelerator):
8634 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
8635 * menubar-msw.c (mswindows_handle_wm_command):
8636 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
8637 * menubar-msw.c (mswindows_handle_wm_initmenu):
8638 * menubar-msw.c (mswindows_update_frame_menubars):
8639 * menubar-msw.c (mswindows_free_frame_menubars):
8640 * menubar-msw.c (mswindows_popup_menu):
8641 Fixed a bug in handling accelerators where an extra character
8642 would be displayed in the menu item. Also generalized the
8643 function displayable_menu_item because it is now used by the
8644 dialog box code as well. And finally, added code in the functions
8645 that create the menubar to extract a list of accelerators for the
8646 top level menubar, which is used in the event code to determine
8647 whether a particular alt-key combination should be used to invoke
8648 a menu item, or should be passed through to access the standard
8649 XEmacs keymap binding for this key combination.
8651 Much needed GCPROing.
8654 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8655 * menubar-x.c (menu_item_descriptor_to_widget_value):
8656 * menubar-x.c (restore_in_menu_callback):
8657 * menubar-x.c (x_popup_menu):
8658 * menubar-x.c (menu_move_up):
8659 * menubar-x.c (menu_move_down):
8660 * menubar-x.c (menu_move_left):
8661 * menubar-x.c (menu_move_right):
8662 * menubar-x.c (menu_select_item):
8663 * menubar-x.c (command_builder_operate_menu_accelerator):
8664 * menubar-x.c (menu_accelerator_junk_on_error):
8665 * menubar-x.c (command_builder_find_menu_accelerator):
8666 * menubar-x.c (Faccelerate_menu):
8668 Moved a whole bunch of code here that was previously in
8669 event-stream.c as described above. There is also code connected
8670 to the new standard of adding an accelerator to the beginning of
8671 menu items that don't have one as described above and below.
8674 * menubar.c (menu_parse_submenu_keywords):
8675 * menubar.c (Fmenu_find_real_submenu):
8676 * menubar.c (Fnormalize_menu_item_name):
8677 * menubar.c (syms_of_menubar):
8678 * menubar.c (vars_of_menubar):
8679 * menubar.c (complex_vars_of_menubar):
8681 a) Cleaned up a bunch of documentation and improved it.
8683 b) XEmacs now automatically adds an accelerator onto the beginning
8684 of any menu items that don't have one. I did this because there
8685 will inevitably be some menu items on the main menubar that don't
8686 have accelerators on them because the package that adds that
8687 particular menu item hasn't yet been fixed up to have accelerators
8688 in them and it looked rather strange to have some items with and
8689 some items without accelerators, especially since even in items
8690 without accelerators, you can, at least under windows, still
8691 access the item through an accelerator corresponding to the first
8692 character in the item's name. If people don't like this behavior,
8693 I can add a variable to turn it off optionally, but I'm not sure
8694 this is a good idea because we really do need to have accelerators
8695 on all of the menu items, and if a package doesn't like the
8696 accelerators being put on the first character, then it should put
8697 the accelerators where they belong.
8699 c) I made a behavior change, which is that the descriptor that
8700 specifies the text of the menu item, which formerly was just a
8701 string, can now also be an evaluated expression. This makes this
8702 descriptor parallel with all of the others, which could also be
8703 evaluated expressions. This also obviates the need for the
8704 keyword :label, which was previously listed in the documentation
8705 as unimplemented, and which was for the same purpose.
8710 * ntproc.c (new_child):
8711 * ntproc.c (sys_spawnve):
8712 * ntproc.c (find_child_console):
8713 * ntproc.c (sys_kill):
8714 Fixed compile warnings. By the way, this file should really go
8715 away entirely, and this will happen as soon as Kirill makes his
8716 final round of process cleanups, which affect the function
8720 * process-nt.c (struct nt_process_data):
8721 * process-nt.c (find_process_from_pid):
8722 * process-nt.c (send_signal_the_nt_way):
8723 * process-nt.c (enable_child_signals):
8724 * process-nt.c (find_child_console):
8725 * process-nt.c (send_signal_the_95_way):
8726 * process-nt.c (nt_finalize_process_data):
8727 * process-nt.c (ensure_console_window_exists):
8728 * process-nt.c (nt_create_process):
8729 * process-nt.c (nt_kill_child_process):
8730 * process-nt.c (nt_kill_process_by_pid):
8731 * process-nt.c (nt_open_network_stream):
8732 * process-nt.c (vars_of_process_nt):
8733 Copied over code from Emacs 20.5 to correctly send signals to sub-
8734 processes under Windows 95. Also added code to automatically
8735 create and hide console window when a sub-process is created under
8736 Windows 95, which obviates the need for the separate runemacs.exe
8737 executable, and finally implemented some variables that were
8738 implemented in Emacs 20.5, but previously not in XEmacs. These
8739 include mswindows- start-process-share-console and
8740 mswindows-start-process-inherit-error-mode. (Both of these only
8741 apply to Windows 95.)
8743 * regex.c (regex_compile): Fixed a compile warning.
8746 * select-msw.c (mswindows_own_selection):
8747 * select-msw.c (mswindows_get_foreign_selection):
8748 * select-msw.c (mswindows_disown_selection):
8749 * select-msw.c (console_type_create_select_mswindows):
8750 * select-msw.c (syms_of_select_mswindows):
8751 Cleaned up the file and implemented the device method
8752 selection_exists_p, which had accidentally been left out. Also
8753 removed four lisp functions that were remnants from before the
8754 time when the selection code was properly device abstracted.
8755 These functions are no longer needed because there are generic
8756 equivalents, and because they were added recently and don't exist
8757 in FSF Emacs, I don't think there's any problem with just deleting
8761 * sysdep.c (sys_subshell):
8762 Fixed a compile warning, although in this case there's probably
8763 something wrong with this code, and it ought to be looked into
8764 more thoroughly by somebody who understands it.
8767 * window.c (Fwindow_text_area_height):
8768 * window.c (Fwindow_width):
8769 * window.c (Fwindow_full_width):
8770 * window.c (Fwindow_pixel_width):
8771 * window.c (debug_print_window):
8772 * window.c (syms_of_window):
8773 Added functions window-text-area-height and window-full-width,
8774 which are functions for returning various width and height
8775 characteristics of a window. (One of these functions is necessary
8776 for making the file dialog box work correctly, and the other one
8777 was added for completeness.) Also added a table to the
8778 documentation for window-height which describes the entire scheme
8779 for accessing width and height characteristics of a window.
8781 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8783 * nt.c (fstat): Added a comment for another problem with
8784 non-encapsulated [f]stat(), reported by Adrian Aichner
8785 <aichner@ecf.teradyne.com>.
8787 2000-03-11 Andy Piper <andy@xemacs.org>
8789 * window.c (make_dummy_parent): initialize subwindow instance
8791 (Fset_window_configuration): zero extent_modiff.
8793 2000-03-10 Andy Piper <andy@xemacs.org>
8795 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
8796 more changes can be triggered.
8797 (Fredisplay_frame): ditto.
8798 (Fredraw_device): ditto.
8799 (Fredisplay_device): ditto.
8800 (redisplay_frame): make non-static.
8801 (redisplay_frame): call update_frame_gutter_geometry outside of
8804 * gutter.h: declare update_frame_gutter_geometry.
8806 * redisplay.h: declare redisplay_frame.
8808 * gutter.c (update_frame_gutter_geometry): move geometry changes
8809 in update_frame_gutters here. Geometry changes can only occur
8810 outside of redisplay.
8811 (update_frame_gutters): remove geometry change code.
8812 (Fredisplay_gutter_area): make sure that we are in display when we
8813 update and that we have flushed any size changes.
8815 2000-03-11 Andy Piper <andy@xemacs.org>
8817 * alloc.c (pdump_dump_data): remove i & count shadows.
8819 2000-02-27 Mike Alexander <mta@arbortext.com>
8821 * sysdep.h: Declare pdump_read_file
8823 * sysdep.c (pdump_read_file): New function
8825 * alloc.c (pdump_load): Call pdump_read_file to get the portable
8828 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
8830 * lrecord.h: add `lrecord_type_pgsetenv'.
8832 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
8834 * symsinit.h: declare (vars|syms)_of* functions.
8835 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
8837 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
8839 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
8841 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
8844 * emacs.c (main_1): Call postgres initialization code.
8846 * postgresql.h: New file. PostgreSQL RDBMS support.
8847 * postgresql.c: New file.
8849 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8851 * redisplay-output.c (redisplay_output_display_block): Disable
8854 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
8856 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
8857 (Fcanna_henkan_next): Ditto.
8858 (Fcanna_bunsetu_henkou): Ditto.
8859 (Fcanna_henkan_kakutei): Ditto.
8860 (Fcanna_henkan_end): Ditto.
8861 (Fcanna_henkan_quit): Ditto.
8862 (Fcanna_henkan_next): Set retun value correctly.
8863 (c2mu): Use unsigned char instead of signed char.
8865 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
8867 * emacs.c (main_1): Always call syms_of_gui.
8868 * inline.c: include gui.h
8870 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
8872 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
8873 converted to Lisp_Object.
8874 (Qtop_bottom): New variable.
8875 (syms_of_redisplay): Initialize it.
8876 * redisplay.h (Vvisible_bell): Ditto.
8877 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
8878 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
8879 only flash top and bottom.
8881 2000-03-08 Andy Piper <andy@xemacs.org>
8883 * buffer.c (Frename_buffer): record new buffer name the right way.
8885 2000-03-08 Andy Piper <andy@xemacs.org>
8887 * glyphs.c (update_subwindow): increase hash depth so that widget
8888 items get picked up properly.
8890 * redisplay-output.c (compare_runes): increase hash depth so that
8891 widget items get picked up properly.
8893 2000-03-08 Andy Piper <andy@xemacs.org>
8895 * gutter.c (output_gutter): add some debug.
8897 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
8898 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
8899 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
8901 * redisplay-output.c (compare_runes): use display_hash to
8902 determine if glyphs really are not the same.
8904 * glyphs.c (update_subwindow): check display_hash to see if
8905 anything really needs to be updated. If not then do
8906 nothing. Record the display_hash after updating.
8907 (image_instance_equal): compare the image_instance face also.
8909 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
8911 * redisplay.h: Fix comment style.
8913 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
8915 * consle-msw.h (struct mswindows_frame):
8916 Added new member paint_pending to indicate whether a WM_PAINT
8917 magic event has been queued for this frame.
8919 * event-msw.c (mswindows_drain_windows_queue):
8920 Don't queue a WM_PAINT magic event if one is already queued.
8921 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
8923 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
8925 2000-03-07 Didier Verna <didier@xemacs.org>
8927 * dired.c: #include `regex.h' after `sysfile.h'.
8929 2000-03-06 Martin Buchholz <martin@xemacs.org>
8931 * sound.c (init_nas_sound): Fix compiler warning.
8933 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
8935 (MARK_STRUCT_AS_FREE):
8936 (MARK_STRUCT_AS_NOT_FREE):
8937 Make `gcc -fstrict-aliasing' work properly.
8939 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
8941 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
8942 (mswindows_delete_device): Call CoUnnitialize().
8944 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
8946 2000-02-25 <CraigL@DyCon.com>
8948 * process-nt.c: MinGW now has <shellapi.h>, but still needs
8951 * sysdep.c: This extern declaration for environ prevents MinGW
8952 from finding the variable in CRTDLL.DLL.
8954 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
8958 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
8960 (MMRESULT): Removed, now defined in cygwin's windows headers.
8962 (uid_t,gid_t,pid_t,ssize_t): ..
8963 (_timeb): Removed, MinGW defines both _timeb and timeb.
8964 (HAVE_H_ERRNO): Added.
8965 (HAVE_TZNAME): Added, configure is not detecting this.
8967 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
8969 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
8970 * syntax.c (syntax_match): Use it.
8972 * cmds.c: Import auto-fill-chars from FSF Emacs.
8973 (Vauto_fill_chars): New variables.
8974 (internal_self_insert): Check Vauto_fill_chars.
8976 Declare auto-fill-chars as a Lisp variable and initialize it.
8978 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
8980 * fileio.c (Fmake_symbolic_link):
8982 Run handlers even if local machine doesn't have symlinks.
8984 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
8986 * event-msw.c (mswindows_drain_windows_queue):
8987 Don't generate paint magic events for non-XEmacs frames.
8989 2000-03-05 Andy Piper <andy@xemacs.org>
8991 * redisplay.c (redisplay_frame): generate_displayable_area and
8992 friends assumes that we are not in GC, we therefore have to make
8993 sure that this doesn't happen.
8995 * gutter.c (calculate_gutter_size): generate_displayable_area
8996 assumes that we are not in GC, we therefore have to make sure that
8997 this doesn't happen.
8999 2000-03-05 Martin Buchholz <martin@xemacs.org>
9001 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
9003 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9005 * redisplay.c (regenerate_window): Make sure we set a sane value
9006 for end_pos even if we jump out of the loop.
9007 (regenerate_window): Answer Ben's question :-).
9008 (start_end_of_last_line): Add may_error argument.
9009 (start_of_last_line):
9010 (end_of_last_line): Pass may_error = 0.
9011 (end_of_last_line_may_error): New function.
9012 (pixel_to_glyph_translation): Use it, so we don't crash in
9015 2000-03-04 Andy Piper <andy@xemacs.org>
9017 * window.h (struct window): add gutter_extent_modiff.
9019 * window.c (allocate_window): zero out gutter_extent_modiff.
9021 * redisplay.h: declare sync_display_line_structs.
9023 * redisplay.c (add_glyph_rune): add a better comment.
9025 * redisplay-output.c (sync_display_line_structs): made non-static.
9026 (compare_runes): remove unneccesary glyph cachel access.
9028 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
9030 * gutter.c (output_gutter): don't output the gutter if extent
9031 changes only involve extents in buffers. use 4 sets of display
9033 (gutter_extent_signal_changed_region_maybe): new function. Mark
9034 extents in gutters as changed.
9035 (update_frame_gutters): use 4 sets of display lines.
9036 (reset_gutter_display_lines): ditto.
9037 (free_frame_gutters): ditto.
9038 (redraw_exposed_gutter): force output of gutters.
9040 * frame.h (struct frame): add 4 sets of gutter display lines.
9042 * extents.c: (extent_changed_for_redisplay): signal changes to
9043 extents in strings in the gutter as well as extents in buffers.
9045 2000-03-02 Andy Piper <andy@xemacs.org>
9047 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
9049 * frame.c (Fmake_frame): make sure the gutters get initialized
9050 after the frame is visible.
9051 (set_frame_selected_window): re-arrange compilation macros a
9053 (change_frame_size_1): mark gutters changed.
9055 * device.c (Fset_device_class): mark gutters changed.
9057 2000-03-01 Andy Piper <andy@xemacs.org>
9059 * window.c (window_top_frame_gutter_height): deleted.
9060 (window_bottom_frame_gutter_height): ditto.
9061 (window_left_frame_gutter_height): ditto.
9062 (window_right_frame_gutter_height): ditto.
9063 (window_top_gutter_height): don't use them.
9064 (window_bottom_gutter_height): ditto.
9065 (window_left_gutter_width): ditto.
9066 (window_right_gutter_width): ditto.
9067 (Fsplit_window): ditto.
9068 (Fwindow_pixel_edges): don't use border dimensions here.
9070 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
9071 (update_scrollbar_instance): ditto.
9073 * redisplay.c (generate_modeline): don't take gutters into account.
9074 (generate_modeline): ditto.
9075 (redisplay_frame): small gutter display optimization.
9077 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
9079 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
9080 gutters into account.
9082 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
9083 for window position and type.
9085 * gutter.c (get_gutter_coords): fix for frame gutters.
9086 (update_frame_gutters): update frame geometry if the gutters have
9088 (init_frame_gutters): record current gutter geometries.
9090 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
9092 (mswindows_widget_instantiate): ditto.
9094 * frame.h (struct frame): add current_gutter_bounds.
9096 * frame.c (change_frame_size_1): position window and minibuffer
9097 appropriately taking into account the frame gutters.
9099 * frame-x.c: (x_initialize_frame_size): take into account the
9102 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
9104 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
9106 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
9108 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
9110 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
9112 * file-coding.c (reset_decoding_stream): Clear previous
9113 detection state when autodetect.
9115 2000-02-29 Didier Verna <didier@xemacs.org>
9117 * extents.c (set_extent_glyph_1): don't require extents to be
9120 2000-02-27 Andy Piper <andy@xemacs.org>
9122 * gutter.c (Fset_default_gutter_position): don't default left and
9123 right gutter visibility to t.
9124 (Fset_default_gutter_position): run
9125 default-gutter-position-changed-hook.
9126 (syms_of_gutter): add default-gutter-position-changed-hook.
9128 2000-02-26 Andy Piper <andy@xemacs.org>
9130 * specifier.c (Fmake_specifier): add gutter references.
9132 * gutter.h (RAW_WINDOW_GUTTER): new macro.
9134 * lisp.h: declare Fvalid_plist_p.
9136 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
9138 (default_gutter_visible_p_changed_in_window): invalidate gutter as
9139 well as its visibility so that it gets reconstructed.
9140 (construct_window_gutter_spec): new function. Construct a string
9141 to be displayed in the gutter from a plist of strings. Take care
9142 to only use elements that are declared as visible.
9143 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
9145 (gutter_validate): allow plists of strings in the specifier.
9146 (gutter_specs_changed): construct the real_gutter from the gutter
9147 specs using construct_window_gutter_spec.
9148 (gutter_visible_validate): gutter-visible is a new specifier type.
9149 (Fgutter_visible_specifier_p): new function for the new specifier.
9150 (syms_of_gutter): declare gutter-visible and
9151 Fgutter_visible_specifier_p.
9152 (specifier_type_create_gutter): intitalize new gutter-visible
9154 (reinit_specifier_type_create_gutter): ditto.
9155 (specifier_vars_of_gutter): use new specifier type for gutter
9157 (init_frame_gutters): construct real_gutter correctly.
9158 (Fgutter_specifier_p): beef up documentation.
9159 (Fgutter_size_specifier_p): ditto.
9161 * winslots.h: add real_gutter slots.
9163 2000-02-25 Andy Piper <andy@xemacs.org>
9165 * device-msw.c: Be kind to older cygwin versions. From Raymond
9166 Toy <toy@rtp.ericsson.se>.
9168 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
9169 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
9171 2000-02-25 Martin Buchholz <martin@xemacs.org>
9173 * elhash.c (MARK_OBJ): Practice macro hygiene.
9175 2000-02-24 Martin Buchholz <martin@xemacs.org>
9177 * miscplay.c: s/__inline__/inline/g;
9178 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
9179 (get_device_compdc): INLINE ==> static inline
9180 * *.[ch]: Change INLINE to INLINE_HEADER globally.
9181 find -name '*.h' | \
9182 xargs global-replace \
9183 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
9185 2000-02-25 Andy Piper <andy@xemacs.org>
9187 * window.c (window_top_frame_gutter_height): new function.
9188 (window_top_window_gutter_height): ditto.
9189 (window_top_gutter_height): use them.
9190 (window_bottom_frame_gutter_height): new function.
9191 (window_bottom_window_gutter_height): ditto.
9192 (window_bottom_gutter_height): use them.
9193 (window_left_window_gutter_width): new function.
9194 (window_left_frame_gutter_width): ditto.
9195 (window_left_gutter_width): use them.
9196 (window_right_window_gutter_width): new function.
9197 (window_right_frame_gutter_width): ditto.
9198 (window_right_gutter_width): use them.
9199 (window_pixel_height): new function. calulate window pixel height
9200 with frame gutter involvement.
9201 (Fsplit_window): calculate new sizes taking frame gutters into
9203 (window_char_height_to_pixel_height): don't include frame gutters.
9204 (window_char_height): use window_pixel_height.
9205 (window_pixheight): rename from window_pixel_height.
9206 (change_window_height): use it.
9207 (window_pixel_height_to_char_height): don't include frame gutters.
9208 (window_char_width_to_pixel_width): ditto.
9210 2000-02-25 Andy Piper <andy@xemacs.org>
9212 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
9215 2000-02-24 Martin Buchholz <martin@xemacs.org>
9217 * alloc.c (staticpro):
9223 (compact_string_chars):
9225 Convert: if (foo) abort(); ==> assert (! foo);
9227 * eldap.c (Fldap_search_basic):
9231 Fix compiler warnings, and possible crashes if (random) return
9232 value were to be used.
9234 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9236 * device-msw.c: Workaround ResetDC failure.
9238 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
9241 * redisplay-msw.c (get_frame_dc): Added start_page_p.
9242 (mswindows_text_width): Do not start printer page.
9244 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
9246 * glyphs-msw.c: Added image methods to msprinter console and
9247 msprinter-specific image instantiation.
9249 2000-02-20 Mike Alexander <mta@arbortext.com>
9251 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
9252 to avoid crashes when selection-sets-clipboard is on
9253 (mswindows_own_selection): ditto
9255 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9258 * redisplay-msw.c (get_frame_dc):
9261 * device-msw.c (mswindows_init_device):
9262 (mswindows_delete_device):
9263 (msprinter_init_device):
9264 (msprinter_delete_device):
9265 * frame-msw.c (mswindows_init_frame_1):
9266 (mswindows_delete_frame):
9267 (msprinter_init_frame_3):
9268 (msprinter_delete_frame): Move compatible DC to device object from
9269 frame object, for both mswindows and msprinter. Only one at a time
9270 is needed, it is a real waste to have one per frame!
9272 2000-02-23 Andy Piper <andy@xemacs.org>
9274 * glyphs.c: add dynamic width and height elements.
9275 (image_instance_equal): ditto.
9277 * glyphs-widget.c (widget_query_geometry): calculate width and
9278 height dynamically if required.
9279 (initialize_widget_image_instance): initialize dynamic dimensions.
9280 (widget_instantiate): pick-up dynamic dimensions.
9282 * glyphs.h (struct Lisp_Image_Instance): add width and height for
9283 dynamic determination. Add appropriate macros.
9285 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
9287 (WINDOW_GUTTER_SIZE): ditto.
9288 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
9290 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
9292 (get_frame_dc): ditto.
9294 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
9297 2000-02-23 Martin Buchholz <martin@xemacs.org>
9299 * XEmacs 21.2.31 is released.
9301 2000-02-22 Ben Wing <ben@xemacs.org>
9303 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
9305 2000-02-22 Andy Piper <andy@xemacs.org>
9307 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
9309 2000-02-21 Mike Sperber <mike@xemacs.org>
9313 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
9316 2000-02-21 Mike Sperber <mike@xemacs.org>
9318 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
9320 2000-02-21 Martin Buchholz <martin@xemacs.org>
9322 * XEmacs 21.2.30 is released.
9324 2000-02-20 Martin Buchholz <martin@xemacs.org>
9326 Performance hacking.
9328 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
9329 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
9332 * console.c (DEFVAR_CONSOLE_LOCAL_1):
9333 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
9334 * symeval.h (DEFVAR_SYMVAL_FWD):
9335 * symbols.c (guts_of_unbound_marker):
9336 Make all c_readonly objects also lisp_readonly and marked for life.
9337 * lrecord.h (struct lrecord_implementation):
9338 Document flags better.
9339 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
9340 * lrecord.h (DECLARE_LRECORD):
9341 * lrecord.h (XSETRECORD):
9342 * lrecord.h (RECORDP):
9343 * lrecord.h (RECORD_TYPEP):
9344 * lrecord.h (RECORD_MARKER): New.
9345 * lrecord.h (error_check_*):
9346 * lrecord.h (CONCHECK_NONRECORD):
9347 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
9348 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
9349 * lrecord.h (set_lheader_implementation):
9350 * lrecord.h (enum lrecord_type): New.
9351 * symeval.h (SYMBOL_VALUE_MAGIC_P):
9352 * alloc.c (disksave_object_finalization_1):
9353 * alloc.c (mark_object):
9354 * alloc.c (lrecord_type_index):
9355 * alloc.c (tick_lcrecord_stats):
9356 * alloc.c (Fgarbage_collect):
9357 * alloc.c (init_alloc_once_early):
9358 * alloc.c (pdump_load):
9359 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
9360 * alloc.c (lrecord_type_index): Delete.
9361 Make lisp object type indexes be constant.
9362 Makes (byte-compile) 5% faster.
9363 Put all marker functions into their own array.
9364 Makes (garbage-collect) 5% faster.
9365 Optimize SYMBOL_VALUE_MAGIC_P.
9366 Makes (byte-compile) 2-3% faster.
9367 * config.h.in (gc_checking_assert): New.
9368 * alloc.c: Use gc_checking_assert().
9369 * .dbxrc: Make compatible with new object type implementation.
9370 * .gdbinit: Make compatible with new object type implementation.
9371 * alloc.c: Delete all symbols defined only for debugging, such as
9372 Lisp_Type_Vector and lrecord_charset.
9374 2000-02-21 Andy Piper <andy@xemacs.org>
9376 * gui-msw.c (Fmswindows_shell_execute): fix file location
9379 * buffer.c (Fkill_buffer): remove buffer from alist buffer
9380 unshowing so that set_window_buffer doesn't undo
9381 kill_buffer_hook's hard work.
9383 * glyphs-widget.c (tab_control_query_geometry): don't count the
9384 first item when calculating geometry.
9386 * glyphs.c (map_subwindow): remove redundant code.
9387 (update_frame_subwindows): be more circumspect about when to
9390 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
9391 when items haven't changed. Update faces if faces have changed as
9392 well as just the widget face.
9393 (x_tab_control_update): Update faces if faces have changed as well
9394 as just the widget face.
9396 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
9398 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
9400 (build_syscolor_string): Use mswindows_color_to_string to try to
9402 (mswindows_device_system_metrics): Reverse the foreground and
9403 background colors so that they match the documentation.
9405 * objects-msw.c: (mswindows_X_color_map): tweak some values so
9406 they match the default Windows palette.
9407 (mswindows_color_to_string): New function.
9409 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
9411 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
9413 2000-02-18 Olivier Galibert <galibert@pobox.com>
9415 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
9416 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
9418 * symbols.c (init_symbols_once_early): Removed obsolete
9419 DATA_SEG_BITS related kludge.
9420 (defvar_magic): Ditto.
9422 * malloc.c: Removed obsolete DATA_SEG_BITS
9424 * mem-limits.h: Ditto.
9426 * Makefile.in.in: Removed obsolete HAVE_SHM
9429 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
9431 * device-msw.c (mswindows_delete_device): Free DDE string
9434 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9436 * keymap.c (get_keyelt):
9437 * unexnt.c (unexec):
9438 * vm-limit.c (memory_warnings):
9439 * ntheap.c (recreate_heap):
9440 * ntheap.h (UNINIT_PTR):
9441 * select-msw.c (Fmswindows_get_clipboard):
9442 (Fmswindows_set_clipboard):
9443 * objects-msw.h (MSWINDOWS_BAD_HFONT):
9445 * menubar-msw.c (displayable_menu_item):
9447 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
9448 * sysdep.c (sys_subshell):
9449 * process-nt.c (nt_create_process):
9450 * nt.c (normalize_filename):
9451 (dostounix_filename):
9452 (unixtodos_filename):
9453 * ntproc.c (win32_executable_type):
9454 * ntplay.c (play_sound_data_1):
9456 * editfns.c (get_home_directory):
9457 * event-msw.c (struct winsock_stream):
9458 (mswindows_dde_callback):
9459 * device-msw.c (msprinter_init_device):
9460 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
9462 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
9463 mswindows_clear_toolbar were swapped!
9465 * objects-msw.c:(colormap_t):
9467 * emacs.c (struct standard_args): Fixed const jumble.
9469 * glyphs-widget.c (update_widget): Fixed comparison notation.
9471 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
9473 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
9474 __declspec(noreturn) syntax.
9476 2000-02-19 Martin Buchholz <martin@xemacs.org>
9478 * eldap.c (Fldap_open):
9479 (Fldap_search_basic):
9482 Use new coding system conversion macros.
9484 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
9486 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
9488 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
9490 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
9491 (Fldap_add, Fldap_modify, Fldap_delete): New functions
9493 * eldap.c (Qadd, Qreplace): New constant symbols
9494 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
9495 interruptions by XEmacs signals
9496 Remove unnecessary calls to slow_down_interrupts and
9498 (Fldap_search_basic): Renamed from Fldap_search_internal
9499 Added new optional parameter VERBOSE that triggers the
9500 display of progress messages
9501 Remove unnecessary calls to slow_down_interrupts and
9503 LDAP result code analysis rewritten
9504 (Fldap_add, Fldap_modify, Fldap_delete): New functions
9505 (syms_of_eldap): Define the new symbols and functions
9508 2000-02-17 Martin Buchholz <martin@xemacs.org>
9510 * realpath.c: Determine PATH_MAX maximally portably.
9512 * insdel.c (bytecount_to_charcount): Optimize.
9513 The function used to be optimized for entirely ASCII sequences.
9514 Now it is optimized for successive characters from the same
9515 charset. This also wins big for _mostly_ ASCII sequences.
9517 * fileio.c (Ffile_truename): convert return from realpath() using
9518 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
9519 - Rewrite GCPROing slightly.
9521 * sysdep.c (sys_open): Do filename conversion, like all other
9522 sys_* functions. Fixes bug:
9523 (let ((file-name-coding-system 'iso-8859-2))
9524 (write-region x y latin2-name))
9525 ==> writes filename using internal encoding.
9527 2000-02-18 Martin Buchholz <martin@xemacs.org>
9529 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
9530 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
9531 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
9532 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
9533 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
9534 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
9535 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
9536 (CONST_IF_NOT_DEBUG): Delete.
9537 * alloc.c (this_one_is_unmarkable): Delete.
9538 (mark_object): Don't check for this_one_is_unmarkable. Use the
9539 c_readonly flag instead.
9540 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
9542 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
9544 * event-msw.c (mswindows_drain_windows_queue):
9545 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
9546 away redundant repaint events.
9548 2000-02-17 Andy Piper <andy@xemacs.org>
9550 * redisplay.h: declare mark_redisplay_structs.
9552 * redisplay.c (redisplay_window):
9553 (redisplay_frame): don't check subwindows_state_changed.
9554 (mark_redisplay): mark gutters here.
9556 * glyphs.c: (instantiate_image_instantiator): always layout if we
9557 haven't done so already.
9558 (allocate_image_instance): don't mark as dirty.
9559 (update_subwindow): bind inhibit_quit.
9561 * gutter.c (mark_gutters): new function.
9563 * glyphs-x.c (x_update_widget): Always resize to get round a
9566 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
9567 breaking absolutely everything.
9569 * gutter.h: declare mark_gutters.
9571 2000-02-16 Martin Buchholz <martin@xemacs.org>
9573 * XEmacs 21.2.29 is released.
9575 2000-02-15 Olivier Galibert <galibert@pobox.com>
9577 * fns.c (size_bit_vector): Fix computation of the size.
9579 2000-02-15 Martin Buchholz <martin@xemacs.org>
9581 * *.[ch]: Change CONST to const globally.
9582 find -name '*.[ch]' | \
9583 xargs global-replace \
9584 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
9585 - Remove vestigial references to CONST_IS_LOSING
9587 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
9589 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
9590 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
9591 events instead of dispatching them directly.
9592 (mswindows_handle_paint): New function to do repainting.
9593 (mswindows_wnd_proc):
9594 (emacs_mswindows_handle_magic_event): Call above function.
9596 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
9598 * objects-msw.c (mswindows_create_font_variant): Return the new
9600 (initialize_font_instance): Get font metrics from the underlined
9601 variant of the font to cope with the case where the underlined
9602 font has a bigger descent.
9604 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9606 * gui.c (gui_item_accelerator): Return the first underlined
9607 character in item name.
9609 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9611 * lisp.h: Added Qprinter.
9613 * general.c (syms_of_general): Initialized it.
9615 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
9617 (get_frame_compdc): Made inline.
9619 * console.h (struct console_methods): Added eject_page method.
9621 * frame.h: Added FRAME_DISPLAY_P and friends.
9622 Aligned backslahes in many macros in more readable fashion.
9623 Added page_number to struct frame, and an accessor macro
9626 * defice.h: Added DEVICE_DISPLAY_P and friends.
9628 * device.c (Fdevice_printer_p): Used these.
9630 * frame.c (allocate_frame_core): Initialize page number.
9631 (Fprint_job_page_number):
9632 (Fprint_job_eject_page): Implemented.
9634 * frame-msw.c (msprinter_eject_page): Added method.
9635 (msprinter_start_page): Added.
9637 * window.c (Fwindow_truncated_p): Fixed docstring.
9638 (Fwindow_last_line_visible_height): Implemented.
9640 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
9642 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
9644 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
9646 * syntax.c (scan_words): Always advance at least one character.
9648 2000-02-13 Andy Piper <andy@xemacs.org>
9650 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
9651 to make sure the glyph is in the cachels.
9653 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
9654 global image instance flag.
9655 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
9656 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
9658 * glyphs.c (allocate_image_instance): set dirty bits correctly.
9659 (Fset_image_instance_property): mark layout as changed.
9660 (invalidate_glyph_geometry_maybe): mark layout as changed.
9661 (glyph_width): use new NEEDS_LAYOUT macro.
9662 (glyph_ascent): ditto.
9663 (glyph_descent): ditto.
9664 (glyph_height): ditto.
9665 (image_instance_layout): mark layout as clean after laying out.
9666 (update_subwindow): don't mark layout as clean here.
9668 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
9669 should no longer be needed.
9671 * glyphs-x.c (x_update_widget): sanitize asserts.
9672 (x_finalize_image_instance): sanitize assignment to widgets.
9674 * glyphs-widget.c (widget_instantiate): don't need to clear the
9677 2000-02-13 Martin Buchholz <martin@xemacs.org>
9679 * sysdep.c (getcwd): Use standard prototype.
9680 * sysdep.h (getcwd): Use standard prototype.
9682 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
9683 (sequence, start, end).
9684 Remove redundant type checking.
9685 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
9686 view of `caller-protects') to avoid a crash where the real fix was
9689 2000-02-12 Martin Buchholz <martin@xemacs.org>
9691 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
9693 * s/sol2.h: Remove feature macro initialization.
9695 * alloc.c (alloc_lcrecord): Add more type checking assertions.
9696 (vector_hash): New. Code from internal_hash.
9698 Fix up allocation subsystem comments.
9700 * config.h.in: Add __EXTENSIONS__ for Solaris.
9702 * systime.h (EMACS_GETTIMEOFDAY): New.
9703 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
9704 Remove Solaris-specific code.
9705 Use void* for the (ignored) second arg for gettimeofday().
9707 * elhash.c (hash_table_hash): Implement it, finally.
9708 * elhash.c: Use hashcode_t.
9710 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
9711 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
9713 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
9714 * fns.c (size_bit_vector):
9715 * alloc.c (size_vector):
9716 (make_vector_internal):
9717 (make_bit_vector_internal):
9718 (sweep_bit_vectors_1):
9719 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
9721 2000-02-10 Martin Buchholz <martin@xemacs.org>
9723 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
9724 Include strings.h to avoid warnings for bzero and strcasecmp.
9726 2000-02-10 Olivier Galibert <galibert@pobox.com>
9728 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
9729 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
9731 * fns.c (size_bit_vector): New. Declare bit vectors as a
9734 2000-02-10 Olivier Galibert <galibert@pobox.com>
9736 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
9737 use a value field instead.
9738 (symbol_value_forward_forward): Use value field.
9739 (DEFVAR_SYMVAL_FWD): Use value field.
9740 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
9741 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
9742 (DEFVAR_CONST_INT): Ditto.
9743 (DEFVAR_BOOL): Ditto.
9744 (DEFVAR_CONST_BOOL): Ditto.
9745 (DEFVAR_INT_MAGIC): Ditto.
9746 (DEFVAR_BOOL_MAGIC): Ditto.
9748 * symbols.c (guts_of_unbound_marker): Use value field.
9749 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
9750 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
9752 * lisp.h: Declare dumpopaque and noninteractive1.
9754 * alloc.c (dumpopaque): Added.
9755 (pdump_dump_opaquevec): Added.
9756 (pdump): Call pdump_dump_opaquevec to dump opaque data.
9757 (pdump_load): Reload opaque data. Sync noninteractive1 with
9760 2000-02-10 Andy Piper <andy@xemacs.org>
9762 * glyphs.c (image_instance_layout): if the size changes, mark it
9765 * redisplay-output.c (redisplay_output_layout): Update the
9767 (redisplay_output_subwindow): ditto.
9769 * glyphs.c (update_subwindow): make sure we reset flags for
9770 layouts as well as everything else.
9772 * glyphs-widget.c (layout_layout): don't need to set the instances
9775 2000-02-09 Martin Buchholz <martin@xemacs.org>
9777 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
9778 not HAVE_DLOPEN, which is a lower-level thing.
9780 * .cvsignore: Ignore gmon.out
9782 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
9784 * .cvsignore: Ignore portable dumper xemacs.dmp file
9786 2000-02-09 Andy Piper <andy@xemacs.org>
9788 * redisplay-output.c (redisplay_output_layout): be more clever
9789 about when we output based on the changed flags.
9791 * glyphs.h (struct image_instantiator_methods): add update_method.
9792 (struct Lisp_Image_Instance): add changed flags. Declare new
9793 macros for manipulating them.
9795 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
9796 (image_instance_parent_glyph): find an image_instance's parent
9797 glyph or image_instance.
9798 (image_instance_layout): mark the size as changed.
9799 (set_image_instance_dirty_p): new function. mark an image
9800 instance, plus all of its parents, as dirty.
9801 (Fset_image_instance_property): use it.
9802 (Fglyph_animated_timeout_handler): use it.
9803 (update_subwindow): call update_widget and device methods for
9804 update_subwindow. Mark all changed flags as clean.
9805 (Fresize_subwindow): mark size as changed.
9807 * glyphs-x.c (x_finalize_image_instance): try and detect gc
9809 (x_update_subwindow): only resize subwindows here.
9810 (x_update_widget): new function. Update all changed properties of
9812 (x_resize_subwindow): deleted.
9813 (x_widget_set_property): deleted.
9814 (x_progress_gauge_set_property): deleted.
9815 (x_progress_gauge_update): new function. Implement recorded
9817 (x_tab_control_update): ditto.
9818 (x_tab_control_set_property): deleted.
9819 (console_type_create_glyphs_x): declare new functions.
9820 (image_instantiator_format_create_glyphs_x): ditto.
9822 * glyphs-widget.c (widget_set_property): mark text changed.
9823 (update_widget): new function. Update properties of a widget.
9824 (widget_instantiate): for layouts make sure we set their
9825 children's parent correctly.
9826 (tab_control_set_property): new function. Record changes that will
9827 take place under redisplay's control.
9828 (progress_gauge_set_property): ditto.
9829 (image_instantiator_progress_guage): declare new functions.
9830 (image_instantiator_tab_control): ditto.
9832 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
9834 (mswindows_update_widget): new function. Update all properties on
9835 a widget that have changed.
9836 (mswindows_button_update): new function. Update a button's set
9838 (mswindows_tab_control_update): new function. Update the items in
9840 (mswindows_tab_control_set_property): deleted.
9841 (mswindows_progress_gauge_update): new function. Update the
9842 progress gauge's progress.
9843 (mswindows_widget_set_property): deleted. This is all done
9845 (mswindows_progress_gauge_set_property): ditto.
9846 (console_type_create_glyphs_mswindows): declare new methods.
9847 (image_instantiator_format_create_glyphs_mswindows): ditto.
9849 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
9850 (msprinter_set_frame_properties): ditto.
9852 * console.h (struct console_methods): Add update_widget_method.
9854 2000-02-09 Andy Piper <andy@xemacs.org>
9856 * gui-msw.c (Fmswindows_shell_execute): Make
9857 mswindows-shell-execute industrial strength.
9859 2000-02-08 Martin Buchholz <martin@xemacs.org>
9861 * lrecord.h: Make macro argument `props' match member function `plist'.
9865 * fns.c (Fobject_plist):
9868 Object property list frobbing cleanup.
9869 - Allow any lisp object (compared with `eq'), not just symbols, as
9870 keys in object plists.
9871 - Move symbol plist frobbing into symbols.c, where it belongs.
9872 - Move string plist frobbing into alloc.c, where it belongs.
9873 - Everything's an lrecord now, so no need to test for symbolp, etc.
9874 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
9876 * extents.c: Reorder code to remove declarations.
9878 * frame.h (store_in_alist): Remove useless declaration.
9880 2000-02-07 Martin Buchholz <martin@xemacs.org>
9882 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
9883 * config.h.in: Add HAVE_XCONVERTCASE.
9885 2000-02-07 Andy Piper <andy@xemacs.org>
9887 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
9888 it breaks many things.
9890 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
9892 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
9893 actually can start a common comment type.
9894 * src/syntax.h (SYNTAX_END_P): ditto for end.
9896 2000-02-07 Martin Buchholz <martin@xemacs.org>
9898 * XEmacs 21.2.28 is released.
9900 2000-02-06 Martin Buchholz <martin@xemacs.org>
9902 * event-Xt.c (x_keysym_to_character): New.
9903 (maybe_define_x_key_as_self_inserting_character): New.
9904 (x_has_keysym): New.
9905 Auto-define all keys on the keyboard as self-insert-key.
9907 2000-02-02 Martin Buchholz <martin@xemacs.org>
9909 * menubar.c (vars_of_menubar): A small code simplification.
9911 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
9918 Use consistent style for specifying X resources.
9920 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
9921 This makes (dontusethis-set-symbol-value-handler) actually usable.
9923 * lrecord.h (lrecord_decription_type):
9924 * alloc.c (pdump_register_sub):
9927 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
9928 Comply with XEmacs coding style.
9929 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
9930 args, and XD_LISP_OBJECT_ARRAY with 3 args.
9932 * keymap.c (Faccessible_keymaps):
9933 Make (accessible-keymaps map "\C-h") do the Right Thing.
9934 Make (accessible-keymaps map []) do the Right Thing.
9935 Make (accessible-keymaps map "") do the Right Thing.
9936 (check_keymap_definition_loop): New function.
9937 (keymap_store_internal): Keep luser from shooting self in foot,
9938 via (define-key ctl-x-4-map "p" global-map).
9939 Remove fullness slot from struct Lisp_Keymap, since hash tables
9941 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
9943 2000-01-30 Martin Buchholz <martin@xemacs.org>
9945 * redisplay.c (init_redisplay): Fix small memory leak.
9947 * elhash.c (pdump_reorganize_hash_table):
9948 Rename from reorganize_hash_table. Change prototype.
9949 Reuse the original memory for hentries. Save 100k.
9950 * alloc.c (PDUMP_READ): new macro.
9951 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
9952 * alloc.c: No need to #ifndef before #undef.
9954 * print.c: Allow debug_print() to print readably by modifying
9955 debug_print_readably. Use consistent variable names.
9957 * .dbxrc: Try to get things to work even if stopped in a function
9958 without source available by explicitly specifying source files.
9959 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9961 * unexnt.c (_start): Removed bogus code which caused loading heap
9962 from differrent executable file.
9963 Removed bogus assignment to _fmode, which caused inconsistencies.
9965 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9967 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
9968 Have spawnve encapsulation regard DONT_ENCAPSULATE.
9969 Do not preliminary `#define signal sigset'.
9971 * systime.h: Do not prototype environ on windows nt and cygwin,
9972 this conflicts with system header.
9974 * syssignal.h: Use correct define for WINDOWSNT
9976 * sysdep.h: Do not prototype environ on windows nt, this conflicts
9979 * sysdep.c (near start of file): Fixed commentary and rearranged
9980 ifdefs in readable order.
9981 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
9984 (end_of_data): Do not compile in if using PDUMP.
9986 * symsinit.h: Prototyped vars_of_nt().
9988 * ntproc.c (windows9x_p): Added, instead of os_subtype.
9989 (find_child_console): Use it.
9992 * ntheap.h: Do not extern os_subtype.
9994 * ntheap.c (cache_system_info): Do not cache unneeded:
9995 nt_major_version, nt_minor_version and os_subtype.
9996 (recreate_heap): Do not compile in when PDUMPing.
9998 * nt.c (geteuid and friends): Use the new varibale
9999 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
10000 (init_user_info): Removed the above mentioned hackery.
10001 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
10002 stat has been fixed in the C runtime.
10003 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
10005 * file-coding.c (struct file_coding_dump): Do not define
10006 ucs_to_mule_table in the struct if not MULE.
10007 (struct struct lrecord_description fcd_description_1): Do not dump
10010 * emacs.c (main_1): Call vars_of_nt().
10011 (right before Fdump_emacs_data): Don't need lastfile if using both
10012 portabe dumper and system malloc.
10014 * alloc.c (Fmemory_limit): Conditionalized out.
10015 (pdump): Use OPEN_BINARY for the portable dump file.
10016 (pdump_load): Ditto.
10018 2000-02-02 Mike Alexander <mta@arbortext.com>
10020 * nt.c (convert_time): Set tm_isdst before calling mktime and
10021 avoid calling it at all if the compiler supports 64 bit integers.
10022 Also initialize utc_base_ft before using it.
10024 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10026 * frame.c (change_frame_size_1): Take f->internal_border_width
10027 into consideration when calculating the width of the frame.
10029 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10031 * window.c (frame_min_height):
10032 (frame_size_valid_p):
10033 (frame_pixsize_valid_p): Added.
10034 (check_frame_size): Generalized.
10036 * window.h: Prototyped the above.
10039 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
10040 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
10041 Deleted Vwin32_* and Vbinary_process_* unused variables.
10043 * device-msw.c (msprinter_init_device): Do not get printer font
10044 list; Added DEVMODE functions.
10046 * frame-msw.c: Added lots of printer code.
10048 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
10051 * console-msw.h: Added more msprinter device private slots.
10053 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10055 * event-msw.c (key_needs_default_processing_p): Added.
10056 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
10058 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10060 * glyphs.c (image_instance_layout): Mark image instance as clean
10062 (glyph_dirty_p): Removed redundant function.
10063 (invalidate_glyph_geometry_maybe): Added.
10064 (update_glyph_cachel_data): Call it.
10066 * glyphs.h: Prototyped it.
10068 * redisplay.c (add_glyph_rune): Call it.
10069 (redisplay_window): Reset glyphs cachels when frame faces have
10070 changed, thus forcing recomputation of built-in border glyphs.
10072 2000-01-30 Martin Buchholz <martin@xemacs.org>
10074 * Makefile.in.in: Make portable dumper and purify play well together.
10075 Add imperfect, but better than nothing, support for pdump.
10076 Remove xemacs.dmp when temacs is re-generated.
10077 Don't ignore errors when dumping xemacs.
10079 * symbols.c (maybe_call_magic_handler): Remove one magic number.
10081 2000-01-28 Andy Piper <andy@xemacs.org>
10083 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
10084 (setup_normal_frame): ditto.
10085 (setup_frame_without_minibuffer): ditto.
10086 (setup_minibuffer_frame): ditto.
10087 (delete_frame_internal): ditto.
10088 (Fmake_frame_invisible): ditto.
10089 (Ficonify_frame): ditto.
10091 * window.h: change Fset_window_buffer signature.
10093 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
10094 (Fset_window_buffer): allow recording of buffer if the window is
10095 the selected window.
10096 (window_loop): Use new Fset_window signature.
10098 2000-01-23 Daniel Pittman <daniel@danann.net>
10100 * config.h.in: Added template for `HAVE_ATHENA_3D'
10102 2000-01-29 Andy Piper <andy@xemacs.org>
10104 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
10106 * gutter.c (output_gutter): Don't output if the window isn't live.
10108 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10110 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
10111 of 01/12/00: Moved SetFocus back here where it belongs.
10113 2000-01-23 Andy Piper <andy@xemacs.org>
10115 * s/cygwin32.h: declare printer things.
10117 2000-01-26 Andy Piper <andy@xemacs.org>
10119 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
10122 2000-01-24 Andy Piper <andy@xemacs.org>
10124 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
10125 (mswindows_button_instantiate): Make sure glyph is a pixmap.
10127 * glyphs-widget.c (widget_instantiate): Avoid shadows.
10129 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
10131 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
10133 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
10134 (mswindows_output_display_block): Avoid local shadows.
10136 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
10137 (mswindows_enqueue_mouse_button_event): ditto.
10138 (mswindows_handle_gui_wm_command): remove declaration.
10140 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
10143 * console-msw.h: Avoid shadows.
10144 (mswindows_get_toolbar_button_text):
10145 (emacs_mswindows_create_stream_pair):
10146 (emacs_mswindows_delete_stream_pair):
10147 (mswindows_handle_toolbar_wm_command): declare.
10149 * device-msw.c (build_syscolor_string): Avoid shadows.
10151 2000-01-23 Andy Piper <andy@xemacs.org>
10153 * glyphs-widget.c (widget_instantiate): reverse the items for
10154 layouts so that children are in the expected order.
10156 2000-01-28 Martin Buchholz <martin@xemacs.org>
10158 * ralloc.c: safe_bcopy ==> memmove
10159 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
10160 * s/msdos.h: Remove BCOPY macros.
10161 * insdel.c (gap_right): Remove BCOPY conditional code.
10162 * insdel.c (gap_left): Remove BCOPY conditional code.
10163 XEmacs demands a working ANSI C compiler - hence memmove.
10165 * regex.c (regex_compile): Remove accidental use of trigraphs.
10167 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10169 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
10172 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10174 * event-msw.c (mswindows_drain_windows_queue): Added the
10176 (mswindows_need_event): Commented the call to
10177 mswindows_drain_windows_queue().
10178 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
10181 * console-msw.h: Moved a few function prototypes here from
10184 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
10185 parameter from unsigned short to unsigned long.
10186 (Fmswindows_shell_execute): Added return value.
10188 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
10190 * sysdep.c (init_system_name):
10191 process-unix.c (unix_canonicalized_host_name):
10192 Don't call freeaddrinfo() if getaddrinfo() fails.
10194 * process-unix.c (unix_open_unix_network_stream):
10195 Moved the code to get a port # into address loop.
10197 2000-01-27 Martin Buchholz <martin@xemacs.org>
10199 * buffer.c (reinit_vars_of_buffer):
10200 The right place to initialize conversion_in_dynarr and
10201 conversion_out_dynarr.
10203 * alloc.c (pdump): Use the real open() till sys_open() is functional.
10205 * process-unix.c (unix_canonicalize_host_name): Muleize.
10206 (unix_open_network_stream): Muleize.
10208 * buffer.h: Fix up prototypes for ralloc.c functions.
10210 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
10211 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
10212 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
10213 instead of gethostbyname()
10214 * process-unix.c: In unix_canonicalize_host_name() and
10215 unix_open_network_stream(), add code to use getaddrinfo()
10216 instead of gethostbyname().
10218 2000-01-27 Daniel Pittman <daniel@danann.net>
10220 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
10221 libs when built with flat Athena.
10223 2000-01-27 Martin Buchholz <martin@xemacs.org>
10225 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
10226 Use coding standards for function prototypes.
10228 2000-01-25 Martin Buchholz <martin@xemacs.org>
10230 * dialog-msw.c (push_lisp_string_as_unicode):
10231 * doc.c (unparesseuxify_doc_string):
10232 * dired.c (Fuser_name_completion_1):
10233 * dired.c (Fuser_name_all_completions):
10234 * dired.c (free_user_cache):
10235 * dired.c (user_name_completion):
10236 * console-x.c (get_display_arg_connection):
10237 * minibuf.c (clear_echo_area_internal):
10238 * minibuf.c (echo_area_append):
10239 * eldap.c (Fldap_open):
10240 * eldap.c (Fldap_search_internal):
10241 * frame-x.c (x_set_frame_text_value):
10242 * frame-x.c (x_set_frame_properties):
10243 * frame-x.c (x_create_widgets):
10244 * redisplay-tty.c (term_get_fkeys_1):
10245 * objects-x.c (x_parse_nearest_color):
10246 * objects-x.c (x_valid_color_name_p):
10247 * objects-x.c (x_initialize_font_instance):
10248 * objects-x.c (x_list_fonts):
10249 * objects-x.c (x_find_charset_font):
10250 * tooltalk.c (Fadd_tooltalk_message_arg):
10251 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10252 * tooltalk.c (Fadd_tooltalk_pattern_arg):
10253 * process-unix.c (unix_create_process):
10254 * ntproc.c (sys_spawnve):
10255 * sound.c (Fplay_sound_file):
10256 * sound.c (Fplay_sound):
10257 * buffer.c (init_initial_directory):
10258 * buffer.c (init_buffer):
10259 * editfns.c (init_editfns):
10260 * editfns.c (Ftemp_directory):
10261 * editfns.c (Fuser_full_name):
10262 * editfns.c (uncache_home_directory):
10263 * editfns.c (get_home_directory):
10264 * editfns.c (Fuser_home_directory):
10265 * editfns.c (Fformat_time_string):
10266 * editfns.c (Fcurrent_time_string):
10267 * gui-x.c (button_item_to_widget_value):
10268 * database.c (Fopen_database):
10269 * event-Xt.c (x_to_emacs_keysym):
10270 * event-Xt.c (x_event_to_emacs_event):
10271 * event-Xt.c (describe_event_window):
10272 * event-msw.c (mswindows_wnd_proc):
10273 * glyphs-eimage.c (jpeg_instantiate):
10274 * glyphs-eimage.c (gif_instantiate):
10275 * glyphs-eimage.c (png_instantiate):
10276 * glyphs-eimage.c (tiff_instantiate):
10277 * glyphs-x.c (xbm_instantiate_1):
10278 * glyphs-x.c (x_xbm_instantiate):
10279 * glyphs-x.c (x_xface_instantiate):
10280 * glyphs-x.c (autodetect_instantiate):
10281 * glyphs-x.c (cursor_font_instantiate):
10282 * glyphs-x.c (x_widget_instantiate):
10283 * glyphs-x.c (x_widget_set_property):
10284 * glyphs-x.c (x_widget_property):
10285 * glyphs-x.c (BUILD_GLYPH_INST):
10286 * print.c (write_string_to_stdio_stream):
10287 * print.c (output_string):
10288 * print.c (Falternate_debugging_output):
10289 * print.c (Fexternal_debugging_output):
10290 * glyphs-msw.c (extract_xpm_color_names):
10291 * glyphs-msw.c (mswindows_xpm_instantiate):
10292 * glyphs-msw.c (bmp_instantiate):
10293 * glyphs-msw.c (resource_name_to_resource):
10294 * glyphs-msw.c (mswindows_resource_instantiate):
10295 * glyphs-msw.c (xbm_instantiate_1):
10296 * glyphs-msw.c (mswindows_xbm_instantiate):
10297 * glyphs-msw.c (mswindows_xface_instantiate):
10298 * glyphs-msw.c (mswindows_widget_instantiate):
10299 * glyphs-msw.c (add_tree_item):
10300 * glyphs-msw.c (add_tab_item):
10301 * glyphs-msw.c (mswindows_combo_box_instantiate):
10302 * glyphs-msw.c (mswindows_widget_property):
10303 * glyphs-msw.c (mswindows_combo_box_property):
10304 * glyphs-msw.c (mswindows_widget_set_property):
10305 * console.c (stuff_buffered_input):
10306 * objects-msw.c (mswindows_initialize_color_instance):
10307 * objects-msw.c (mswindows_valid_color_name_p):
10308 * objects-msw.c (mswindows_list_fonts):
10309 * objects-msw.c (mswindows_font_instance_truename):
10310 * bytecode.c (optimize_compiled_function):
10311 * select-x.c (symbol_to_x_atom):
10312 * select-x.c (x_atom_to_symbol):
10313 * select-x.c (hack_motif_clipboard_selection):
10314 * select-x.c (selection_data_to_lisp_data):
10315 * select-x.c (lisp_data_to_selection_data):
10316 * select-x.c (Fx_get_cutbuffer_internal):
10317 * select-x.c (Fx_store_cutbuffer_internal):
10318 * buffer.h (TO_EXTERNAL_FORMAT): New function.
10319 * buffer.h (TO_INTERNAL_FORMAT): New function.
10320 * emacs.c (make_arg_list_1):
10321 * emacs.c (make_argc_argv):
10322 * emacs.c (main_1):
10323 * emacs.c (Fdump_emacs):
10324 * emacs.c (split_string_by_emchar_1):
10329 * device-x.c (x_init_device):
10330 * device-x.c (Fx_valid_keysym_name_p):
10331 * device-x.c (Fx_get_font_path):
10332 * device-x.c (Fx_set_font_path):
10333 * glyphs.c (bitmap_to_lisp_data):
10334 * glyphs.c (pixmap_to_lisp_data):
10335 * alloc.c (make_ext_string): Use coding system arguments. Update
10337 * alloc.c (build_string):
10338 * callproc.c (child_setup):
10339 * callproc.c (init_callproc):
10340 * fileio.c (lisp_strerror):
10341 * fileio.c (directory_file_name):
10342 * fileio.c (Fexpand_file_name):
10343 * fileio.c (Ffile_truename):
10344 * fileio.c (Fsysnetunam):
10345 * fileio.c (Fdo_auto_save):
10346 * sysdep.c (sys_readdir):
10347 * tests.c: New file. Allow adding C tests.
10348 Replace GET_* macros with a more comprehensible and flexible
10349 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
10351 Any coding system can be used to do format conversion.
10352 Eliminate enum external_data_format.
10353 Eliminate convert_to_external_format.
10354 Eliminate convert_to_internal_format.
10355 Make sure file-name, keyboard, terminal, and ctext are always
10356 defined as coding systems or aliases. Make
10357 file-name-coding-system, terminal-coding-system, and
10358 keyboard-coding-system magical variables that are equivalent to
10359 defining the corresponding coding system aliases.
10361 * file-coding.c (Fcoding_system_canonical_name_p): New function.
10362 * file-coding.c (Fcoding_system_alias_p): New function.
10363 * file-coding.c (Fcoding_system_aliasee): New function.
10364 * file-coding.c (append_suffix_to_symbol): New function.
10365 * file-coding.c (dangling_coding_system_alias_p): New function.
10366 * file-coding.c (Ffind_coding_system):
10367 * file-coding.c (Fcopy_coding_system):
10368 * file-coding.c (encode_coding_no_conversion):
10369 * file-coding.c (syms_of_file_coding):
10370 * file-coding.c (vars_of_file_coding):
10371 Rewrite coding system alias code.
10372 Allow nested aliases, like symbolic links.
10373 Allow redefinition of coding system aliases.
10374 Prevent existence of dangling coding system aliases.
10376 * dired.c (Fuser_name_completion_1):
10377 * dired.c (Fuser_name_all_completions):
10378 A crash would happen if user did QUIT in the middle of building
10379 user_name_cache. Remove redundant code in mainline and unwind_protect.
10382 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
10384 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
10385 an unsigned char *. Update all callers.
10387 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10389 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
10391 2000-01-25 Martin Buchholz <martin@xemacs.org>
10393 * elhash.c (hentry_description): Use more portable definition.
10394 (resize_hash_table): Initialize new hentries using
10395 xnew_array_and_zero, thereby simplifying the code.
10397 * mule-charset.c (make_charset): Make sure entire object is
10398 initialized, to avoid Purify warnings.
10400 * alloc.c (resize_string): Fix unlikely crash with big strings.
10402 2000-01-24 Martin Buchholz <martin@xemacs.org>
10404 * realpath.c (xrealpath):
10405 Don't call getwd().
10407 2000-01-25 Martin Buchholz <martin@xemacs.org>
10409 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
10411 1999-12-28 Max Matveev <max@melbourne.sgi.com>
10413 * unexelfsgi.c (unexec): Change the way we decide which segment
10414 should be extended.
10416 Assumption that .bss section should be outside the PT_LOADable
10417 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
10418 it's present) is inside the 'data' segment. This would fail the
10419 test which was used to find a segment to grow and cover new
10420 heap. Instead of this assumption, I created another one - on IRIX
10421 the segment to grow should start below .bss and it's address
10422 should extent above the end of .bss. Once this segment is
10423 identified, it's grown to accommodate the new heap and new
10424 zero-length .bss section is added at the end of .data2.
10426 2000-01-25 Martin Buchholz <martin@xemacs.org>
10428 * eval.c (Feval): Wrong number of arguments should use original
10429 function, not the indirect_function version of it.
10431 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
10433 * glyphs-x.c (x_button_instantiate): Don't add image if
10434 it is not a pixmap.
10435 (x_locate_pixmap_file): Call Fexpand_file_name when file name
10438 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
10440 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
10442 (DEFVAR_INT_MAGIC): Ditto.
10443 (DEFVAR_BOOL_MAGIC): Ditto.
10444 * glyphs.h: Reindent backslash.
10446 2000-01-24 Martin Buchholz <martin@xemacs.org>
10448 * glyphs-widget.c (layout_query_geometry):
10449 (layout_layout): Use correct types for gheight, gwidth.
10451 2000-01-24 Martin Buchholz <martin@xemacs.org>
10453 * EmacsManager.c (QueryGeometry): Purified.
10455 2000-01-23 Martin Buchholz <martin@xemacs.org>
10457 * alloc.c (make_float): Make sure entire object is initialized, to
10458 avoid Purify warnings.
10459 (pdump_register_sub): Remove useless assignment.
10460 (pdump): Use xmalloc, not malloc.
10461 (pdump_load): Use xmalloc, not malloc.
10463 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10470 * sysdep.c: Removed redundant #include <windows.h>
10472 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10474 * frame.c (delete_frame_internal): Do not delete device when its
10475 implementation so declares.
10476 (delete_frame_internal): Set device selected frame to nil when
10477 last frame goes away.
10479 * device-msw.c (msprinter_device_system_metrics): Implemented.
10480 (mswindows_device_system_metrics): Added 'device-dpi property.
10482 * device.c: (Fdevice_printer_p): Added.
10483 Added 'offset-workspace device metric.
10485 * console.h (device_metrics): Declared DM_offset_workspace.
10487 2000-01-23 Martin Buchholz <martin@xemacs.org>
10489 * fileio.c (Ffile_truename): Remove pointless and confusing
10490 initialization of elen.
10492 * glyphs-widget.c: Compiler warning fixes.
10494 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
10496 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
10497 instead of a Lisp_Object as argument to make it consistent with
10498 the other LIVE_P macros.
10499 (CHECK_LIVE_PROCESS): New macro.
10501 * process.c: Declare Qprocess_live_p.
10502 (Fprocess_live_p): New function.
10503 (create_process): Use PROCESS_LIVE_P.
10504 (read_process_output): Ditto.
10505 (set_process_filter): Ditto.
10506 (Fdelete_process): Ditto.
10507 (kill_buffer_processes): Ditto
10508 (process_send_signal): Use CHECK_LIVE_PROCESS.
10509 (Fprocess_input_coding_system): Check whether process is still
10510 alive (fix PR#1061).
10511 (Fprocess_output_coding_system): Ditto.
10512 (Fprocess_coding_system): Ditto.
10513 (Fset_process_input_coding_system): Ditto.
10514 (Fset_process_output_coding_system): Ditto.
10516 2000-01-23 Andy Piper <andy@xemacs.org>
10518 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
10521 * glyphs.c (mark_image_instance): take into account changed
10522 image_instance format.
10523 (image_instance_equal): ditto.
10524 (image_instance_hash): ditto.
10526 * glyphs-widget.c (widget_instantiate): Incorporate layout
10527 instantiation here. Delay layout of the layout until later.
10528 (layout_instantiate): deleted.
10529 (layout_query_geometry): new function. get the geometry of a
10531 (layout_layout): layout a layout dynamically.
10532 (image_instantiator_widget): New function - splitting up
10533 image_instantiator_format_create_glyphs_widget for netwinder
10535 (image_instantiator_buttons):
10536 (image_instantiator_edit_fields):
10537 (image_instantiator_combo_box):
10538 (image_instantiator_scrollbar):
10539 (image_instantiator_progress_guage):
10540 (image_instantiator_tree_view):
10541 (image_instantiator_tab_control):
10542 (image_instantiator_labels):
10543 (image_instantiator_layout): ditto.
10544 (image_instantiator_format_create_glyphs_widget): Call preceding
10547 2000-01-22 Martin Buchholz <martin@xemacs.org>
10549 * process.c (Fset_process_coding_system):
10550 * device-x.c (Fx_keysym_hash_table):
10553 * lstream.c (Lstream_write): Return documented value, not 0.
10555 * fileio.c (directory_file_name):
10556 (Fsubstitute_in_file_name):
10557 (Fsubstitute_insert_file_contents_internal):
10558 (Fwrite_region_internal):
10563 Remove vestigial APOLLO-conditional code.
10565 2000-01-21 Martin Buchholz <martin@xemacs.org>
10567 * getpagesize.h: Add guard macros.
10568 * libsst.h: Add guard macros.
10569 * libst.h: Add guard macros.
10570 * line-number.h: Add guard macros.
10571 * ndir.h: Add guard macros.
10572 * sysfloat.h: Add guard macros.
10573 * sysfile.h: Add guard macros.
10574 * sysproc.h: Add guard macros.
10575 * syswait.h: Add guard macros.
10576 * xintrinsic.h: Add guard macros.
10577 * xintrinsicp.h: Add guard macros.
10578 * xmmanager.h: Add guard macros.
10579 * xmmanagerp.h: Add guard macros.
10580 * xmprimitive.h: Add guard macros.
10581 * xmu.h: Add guard macros.
10582 * gpmevent.h: Add copyright statement. Add guard macros.
10583 * miscplay.h: Add guard macros.
10584 * *.h: Use consistent C-standards-approved guard macro names.
10586 * opaque.c (make_opaque): Switch parameter order.
10587 * opaque.h (make_opaque): Switch parameter order.
10588 Update all callers.
10589 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
10591 * config.h.in (type_checking_assert): Added.
10592 (bufpos_checking_assert): Added.
10594 2000-01-21 Martin Buchholz <martin@xemacs.org>
10596 * alloc.c: Harmless pdump changes.
10598 - spell alignment correctly.
10599 * sysdep.c: Use countof()
10601 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10603 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
10604 initially_selected_for_input() console method, default to 0.
10605 (semi_canonicalize_console_connection): Try to delegate to
10606 canonicalize_console_connection if no such console method.
10607 (canonicalize_console_connection): Vice versa.
10608 (print_console): Do not print nil connection.
10610 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
10611 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
10612 (XDEVIMPF_FRAMELESS_OK): Added.
10613 (CONSOLE_INHERITS_METHOD): Added.
10615 * console-msw.c (mswindows_canonicalize_console_connection):
10617 (mswindows_canonicalize_device_connection): Added.
10619 * console-msw.h (struct msprinter_device): Added this struct and
10621 (mswindows_device): Made fontlist a lisp object.
10623 * device.c (semi_canonicalize_device_connection): Try to delegate
10624 to canonicalize_device_connection if no such console method.
10625 (canonicalize_device_connection): Vice versa.
10626 (print_device): Do not print nil connection.
10628 * device-msw.c (mswindows_init_device): Call InitCommonControls
10630 (mswindows_delete_device): Removed fontlist deallocation.
10631 (mswindows_mark_device): Added.
10633 * events.c (event_equal): Added abort() at unreached code.
10634 (event_hash): Ditto.
10636 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
10637 fallback tags of Windows devices.
10639 * general.c (syms_of_general): Initialized Qmsprinter.
10641 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
10642 of fallback tags of Windows devices.
10644 * lisp.h: Declared Qmsprinter.
10646 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
10648 (mswindows_list_fonts): Ditto.
10649 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
10650 that it can be used by both mswindows and msprinter devices.
10651 (initialize_font_instance): Added.
10652 (mswindows_initialize_font_instance): Use it.
10653 (msprinter_initialize_font_instance): Added.
10655 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
10656 and implementation flags check.
10657 (redisplay_without_hooks): Changed the call to the above.
10658 (Fredraw_device): Ditto.
10659 (Fredisplay_device): Ditto.
10661 * redisplay-msw.c (get_frame_dc): Implemented.
10662 (get_frame_compdc): Implemented.
10663 (many functions): Use the two functions above to get device
10664 contexts, ether for a window or a printer.
10666 2000-01-21 Olivier Galibert <galibert@pobox.com>
10668 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
10669 initialization here.
10670 (init_symbols_once_early): Call it.
10671 * emacs.c (main_1): Call it.
10672 * symsinit.h: Declare it.
10674 2000-01-19 Olivier Galibert <galibert@pobox.com>
10676 * alloc.c: Use a lrecord_header * in the backtrace instead of a
10678 (pdump_backtrace): Ditto.
10679 (pdump_register_object): Ditto. Cleanup use of the pointers.
10680 (pdump_get_entry): Abort if trying to register a null pointer.
10681 (pdump_dump_data): Cleanup types when relocating.
10682 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
10683 (pdump_dump_rtables): Remove bad casts.
10684 (pdump_load): Cleanup relocation w.r.t union type. Use a
10685 Lisp_Object instead of a EMACS_INT for the hashtable
10688 2000-01-20 Martin Buchholz <martin@xemacs.org>
10690 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
10692 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
10694 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
10696 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
10698 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10700 * faces.h (FACE_STRIKETHRU_P): Added.
10702 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
10705 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
10706 (mswindows_set_dc_font): New function, aware of font variants,
10707 separated from mswindows_update_dc.
10709 * objects-msw.h (struct mswindows_font_instance_data): Added
10712 * objects-msw.c (mswindows_finalize_font_instance): Delete all
10713 cached fonts and the data structure.
10714 (mswindows_initialize_font_instance): Added creation of font data
10716 (mswindows_print_font_instance): Print at least something.
10717 (mswindows_create_font_variant): Implemented.
10718 (mswindows_get_hfont): Implemented.
10720 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
10722 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
10723 prototyping problem with msvc.
10725 * emacs.c (main_1): added syms_of_gui_mswindows() call
10727 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
10728 syms_of_gui_mswindows() function
10730 * symsinit.h: added the prototype for syms_of_gui_mswindows()
10732 2000-01-18 Martin Buchholz <martin@xemacs.org>
10734 * XEmacs 21.2.27 is released.
10736 2000-01-18 Martin Buchholz <martin@xemacs.org>
10738 * glyphs-eimage.c (struct tiff_error_struct):
10740 (tiff_warning_func):
10741 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
10746 * unexec.c: Remove vestigial Lucid C code.
10750 * libsst.c: Ansify.
10751 Remove declarations of errno and strerror().
10753 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
10755 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
10757 2000-01-16 Martin Buchholz <martin@xemacs.org>
10759 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
10762 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10767 Change enum eol_type to eol_type_t.
10769 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10771 * gui.c (get_gui_callback): Check cons before accessing car.
10773 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10775 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
10776 (XSETSPECIFIER_TYPE): Ditto.
10778 2000-01-17 Didier Verna <didier@xemacs.org>
10780 * redisplay.c (generate_fstring_runes): compute string size in
10781 characters, not bytes.
10783 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
10785 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
10787 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
10789 * print.c (print_error_message): Call print_prepare().
10791 2000-01-14 Martin Buchholz <martin@xemacs.org>
10793 * .dbxrc: Renamed from dbxrc.
10795 * events.c (event_to_character):
10796 Use `assert (foo)' instead of `if (!foo) abort()'
10798 * .gdbinit (xtype): Add documentation.
10799 * .gdbinit (check-temacs): New function.
10800 * .gdbinit (check-xemacs): New function.
10801 * dbxrc (check-xemacs): New function.
10802 * dbxrc (check-xemacs): New function.
10804 2000-01-14 Andy Piper <andy@xemacs.org>
10806 * glyphs-widget.c (widget_query_geometry): Make sure that we
10807 calculate default dimensions correctly.
10809 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10811 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
10813 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
10814 pdump_wire'd variable.
10816 * emacs.c: (main_1): Conditionalized calls to
10817 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
10819 2000-01-13 Martin Buchholz <martin@xemacs.org>
10821 * window.c (Fset_window_configuration):
10822 * sysdep.c (_start):
10823 * input-method-motif.c (res):
10824 * event-Xt.c (Xt_process_to_emacs_event):
10825 Simple compiler warning fixes.
10827 * bytecode.c (funcall_compiled_function): Use the original
10828 function symbol on the backtrace list in preference to the
10829 compiled_function object in error messages.
10831 2000-01-13 Andy Piper <andy@xemacs.org>
10833 * glyphs-x.c (update_widget_face): Make sure we update the widget
10834 background as well as foreground.
10836 2000-01-13 Andy Piper <andy@xemacs.org>
10838 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
10839 fields to subwindow.
10840 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
10841 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
10842 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
10843 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
10845 * glyphs-widget.c (check_valid_tab_orientation): new function.
10846 (initialize_widget_image_instance): zero orientation and
10848 (widget_instantiate): pick up orientation.
10849 (tab_control_query_geometry): return appropriate values for
10852 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
10853 appropriate creation flags for left, right and bottom tabs.
10855 * s/cygwin32.h: add tab definitions.
10857 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10859 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
10860 frame upon hiding a subwindow.
10861 (mswindows_button_instantiate): Changed the push button style to
10863 (mswindows_button_instantiate): Removed button BS_NOTIFY
10865 (mswindows_button_instantiate): Removed redundant check for
10866 a disabled gui item.
10867 (mswindows_button_instantiate): Made use of WS_TABSTOP
10868 consistent: "operable" controls (edit, button, tree, scroll) have
10869 this style, "display-only" ones (static, progress gauge) do
10870 not. This style is currently ignored by XEmacs though. Also,
10871 removed the WS_EX_CONTROLPARENT style - it is not for children,
10872 it is for their parents!
10873 (mswindows_edit_field_instantiate): Ditto.
10874 (mswindows_progress_gauge_instantiate): Ditto.
10875 (mswindows_tree_view_instantiate): Ditto.
10876 (mswindows_tab_control_instantiate): Ditto.
10877 (mswindows_scrollbar_instantiate): Ditto.
10878 (mswindows_combo_box_instantiate): Ditto.
10879 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
10880 style to the "clip" window.
10881 (mswindows_button_instantiate): Removed compilation warning by
10882 equally typing terms of the ?: operator.
10884 2000-01-12 Didier Verna <didier@xemacs.org>
10886 * redisplay.c (generate_fstring_runes): new parameter holding the
10887 last modeline-format extent.
10888 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
10889 extent, fill the glyph block with it.
10890 (generate_fstring_runes): handle these parameters.
10891 (generate_formatted_string_db): ditto.
10893 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
10894 glyphs'extents in the modeline.
10896 1999-01-11 Mike Woolley <mike@bulsara.com>
10898 * ntheap.c: Reduced the reserved heap space from 1Gb down to
10899 256Mb, as a workaround for the non-starting problem many people
10902 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
10904 * console-tty.c (Fset_console_tty_output_coding_system):
10905 Force redrawing tty frame.
10907 2000-01-10 Didier Verna <didier@xemacs.org>
10909 * redisplay.c (generate_fstring_runes): fix size computation bug.
10911 2000-01-09 William M. Perry <wmperry@aventail.com>
10913 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
10915 2000-01-09 Andy Piper <andy@xemacs.org>
10917 * glyphs-msw.c: index -> i to avoid shadows.
10918 (xbm_create_bitmap_from_data): make static.
10919 (check_valid_string_or_int): deleted.
10920 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
10922 * glyphs-x.c (x_update_subwindow): remove unused args.
10924 * glyphs.c (glyph_image_instance): return the thing. Don't set the
10925 back pointer - this is done in allocate_image_instance.
10926 (query_string_font): return Qnil to make the compiler happy.
10927 (unmap_subwindow): set to ~0 to make the compiler happy.
10928 (glyph_query_geometry): comment out until used.
10929 (glyph_layout): ditto.
10931 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
10933 * insdel.c (signal_after_change): Remove extraneous unbind_to().